/* ApnaJhelum Government Directory */

/* Archive Layout */
.aj-gd-layout{display:-webkit-flex;display:flex;gap:2rem;align-items:flex-start}
.aj-gd-main{-webkit-flex:1;flex:1;min-width:0}
.aj-gd-sidebar{width:300px;min-width:300px;display:-webkit-flex;display:flex;flex-direction:column;gap:1.25rem}
@media(max-width:900px){.aj-gd-layout{flex-direction:column}.aj-gd-sidebar{width:100%;min-width:0}}

/* Emergency Banner */
.aj-gd-emergency{background:linear-gradient(135deg,#8B0000,#C4654A);border-radius:14px;padding:1.5rem;margin-bottom:1.5rem;color:#fff}
.aj-gd-emergency h3{margin:0 0 .75rem;font-size:1rem;font-weight:800}
.aj-gd-emer-grid{display:-webkit-flex;display:flex;flex-wrap:wrap;gap:.5rem}
.aj-gd-emer-item{display:-webkit-flex;display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.1);border-radius:8px;padding:.5rem .85rem;-webkit-flex:1;flex:1;min-width:180px}
.aj-gd-emer-item .name{font-size:.78rem;font-weight:600;color:rgba(255,255,255,.9)}
.aj-gd-emer-item .num{font-size:1.1rem;font-weight:900;color:#fff;font-family:'Playfair Display',serif}
.aj-gd-emer-item a{color:#fff;text-decoration:none}

/* Category Filters */
.aj-gd-filters{display:-webkit-flex;display:flex;gap:.4rem;flex-wrap:wrap;margin-bottom:1.5rem}
.aj-gd-filter{padding:.45rem .85rem;font-size:.72rem;border:1px solid #ddd;border-radius:100px;background:#fff;color:var(--aj-charcoal);cursor:pointer;transition:all .2s;text-decoration:none;font-weight:500}
.aj-gd-filter:hover,.aj-gd-filter.active{background:var(--aj-green-deep);color:#fff;border-color:var(--aj-green-deep)}

/* Search */
.aj-gd-search{width:100%;padding:.65rem 1rem;border:1px solid #ddd;border-radius:10px;font-size:.85rem;margin-bottom:1.25rem;transition:border-color .2s}
.aj-gd-search:focus{border-color:var(--aj-gold);outline:none}

/* Office Card */
.aj-gd-card{background:#fff;border:1px solid var(--aj-gray-100,#eee);border-radius:12px;padding:1.25rem;margin-bottom:.65rem;transition:all .15s}
.aj-gd-card:hover{box-shadow:0 2px 12px rgba(0,0,0,.05);border-color:rgba(212,168,75,.25)}
.aj-gd-card.emergency{border-left:4px solid #C4654A;background:linear-gradient(135deg,#fff,#FFF5F5)}
.aj-gd-card.featured{border-left:4px solid #D4A84B}
.aj-gd-card-header{display:-webkit-flex;display:flex;justify-content:space-between;align-items:flex-start;gap:.75rem;margin-bottom:.5rem}
.aj-gd-card h3{font-size:.92rem;font-weight:700;margin:0;line-height:1.35;color:var(--aj-charcoal)}
.aj-gd-card h3 a{color:inherit;text-decoration:none}.aj-gd-card h3 a:hover{color:var(--aj-gold)}
.aj-gd-type-badge{font-size:.58rem;font-weight:700;padding:3px 10px;border-radius:100px;white-space:nowrap;flex-shrink:0}
.aj-gd-type-badge.emergency-badge{background:#C4654A;color:#fff}
.aj-gd-type-badge.police-badge{background:#1A3A2A;color:#fff}
.aj-gd-type-badge.hospital-badge{background:#3A7CA5;color:#fff}
.aj-gd-type-badge.utility-badge{background:#D4A84B;color:#fff}
.aj-gd-type-badge.gov-badge{background:#7B5EA7;color:#fff}
.aj-gd-type-badge.other-badge{background:var(--aj-gray-400);color:#fff}
.aj-gd-person{font-size:.78rem;color:var(--aj-gray-400);margin:0 0 .5rem}
.aj-gd-card-info{display:-webkit-flex;display:flex;flex-wrap:wrap;gap:.75rem;font-size:.78rem;color:var(--aj-gray-500)}
.aj-gd-card-info span{display:inline-flex;align-items:center;gap:4px}
.aj-gd-card-phones{display:-webkit-flex;display:flex;gap:.4rem;flex-wrap:wrap;margin-top:.5rem}
.aj-gd-phone-btn{display:inline-flex;align-items:center;gap:4px;padding:6px 14px;border-radius:6px;font-size:.75rem;font-weight:600;text-decoration:none;transition:all .15s}
.aj-gd-phone-btn.call{background:var(--aj-green-deep,#1A3A2A);color:#fff}
.aj-gd-phone-btn.call:hover{background:#0D2818}
.aj-gd-phone-btn.emer{background:#C4654A;color:#fff}
.aj-gd-phone-btn.wa{background:#25D366;color:#fff}

/* Sidebar Widget */
.aj-gd-widget{background:#fff;border:1px solid #eee;border-radius:14px;overflow:hidden}
.aj-gd-widget-head{padding:.85rem 1.25rem;font-size:.72rem;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--aj-green-deep);border-bottom:1px solid #eee;background:var(--aj-cream-light)}
.aj-gd-widget-link{display:block;padding:.6rem 1.25rem;border-bottom:1px solid #f5f5f0;text-decoration:none;font-size:.78rem;color:var(--aj-charcoal);transition:all .15s}
.aj-gd-widget-link:last-child{border:none}.aj-gd-widget-link:hover{background:var(--aj-cream-light);color:var(--aj-gold)}
.aj-gd-widget-link .cnt{float:right;font-size:.68rem;color:var(--aj-gray-400);background:var(--aj-cream-light);padding:1px 8px;border-radius:100px}

/* Single Page */
.aj-gd-single-layout{display:-webkit-flex;display:flex;gap:2rem;align-items:flex-start}
.aj-gd-single-main{-webkit-flex:1;flex:1;min-width:0}
.aj-gd-single-sidebar{width:320px;min-width:320px;display:-webkit-flex;display:flex;flex-direction:column;gap:1.25rem}
@media(max-width:900px){.aj-gd-single-layout{flex-direction:column}.aj-gd-single-sidebar{width:100%;min-width:0}}
.aj-gd-detail-grid{display:-webkit-flex;display:flex;flex-wrap:wrap;gap:.75rem;margin:1.5rem 0}
.aj-gd-detail{background:var(--aj-cream-light);border-radius:10px;padding:.85rem 1rem;border:1px solid var(--aj-gray-100);-webkit-flex:1;flex:1;min-width:180px}
.aj-gd-detail-label{font-size:.6rem;letter-spacing:1.5px;text-transform:uppercase;color:var(--aj-gray-400);margin-bottom:2px}
.aj-gd-detail-val{font-size:.88rem;font-weight:600;color:var(--aj-charcoal)}
.aj-gd-contact-card{background:linear-gradient(135deg,#0B2118,#1A3A2A);border-radius:16px;padding:1.5rem;color:#fff}
.aj-gd-contact-card h3{font-size:1rem;margin:0 0 1rem;color:#D4A84B}
.aj-gd-contact-btn{display:block;text-align:center;padding:.7rem;border-radius:8px;text-decoration:none;font-size:.85rem;font-weight:700;margin-bottom:.5rem;transition:opacity .2s}
.aj-gd-contact-btn:hover{opacity:.9}
.aj-gd-contact-btn.phone{background:#fff;color:#1A3A2A}
.aj-gd-contact-btn.emer{background:#C4654A;color:#fff}
.aj-gd-contact-btn.wa{background:#25D366;color:#fff}
