/* HERO SECTION */
.city-hero {
  position: relative;
  width: 100%;
  height: 320px;
  background: url('../images/city-heads-hero.jpg') center/cover no-repeat;
}

.city-hero .hero-overlay {
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55); /* Dark overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.city-hero .hero-content h1 {
  color: #fff;
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.city-hero .hero-content p {
  color: #f5f5f5;
  font-size: 18px;
  max-width: 650px;
  margin: 0 auto;
}

/* Responsive Hero */
@media (max-width: 768px) {
  .city-hero {
    height: 220px;
  }
  .city-hero .hero-content h1 {
    font-size: 32px;
  }
  .city-hero .hero-content p {
    font-size: 15px;
  }
}





.city-heads {
  padding: 60px 20px;
  background: #f8f8f8;
}

.cityHeads-wrapper {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.cityHeads-wrapper .title h4 {
  font-size: 32px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.cityHeads-wrapper .title p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 16px;
  color: #555;
  line-height: 1.6;
}

.cityHeads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  justify-items: center;
}

.cityHeads-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  transition: 0.3s;
   width: 260px;      /* Fixed card width */
    max-width: 100%;
}

.cityHeads-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 22px rgba(0,0,0,0.15);
}

.cityHeads-card .imgBx img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.cityHeads-card .content {
  padding: 18px;
}

.cityHeads-card .content h3 {
  font-size: 20px;
  line-height: 1.3;
}

.cityHeads-card .content span {
  font-size: 14px;
  color: #777;
}

.cityHeads-card .detail {
  margin-top: 10px;
  font-size: 14px;
  color: #444;
}








/* Background Overlay */
.layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Popup Box */
.layer-content {
  background: #fff;
  width: 90%;
  max-width: 450px;
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  position: relative;
  animation: popupAnim 0.3s ease;
}

/* Close Button */
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
}

/* Profile Image */
.popup-img {
  width: 160px;
  height: 160px;
  border-radius: 15px;
  object-fit: cover;
  margin-bottom: 15px;
}

/* Text */
.layer-content h2 {
  margin-bottom: 5px;
}

.layer-content h4 {
  color: #777;
  margin-bottom: 15px;
}

.popup-info p {
  margin: 6px 0;
  font-size: 15px;
}

@keyframes popupAnim {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}







.social-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.social-buttons .btn {
  padding: 10px 15px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: 0.2s;
}

.social-buttons .btn:hover {
  transform: translateY(-3px);
}

/* Colors */
.btn.whatsapp { background: #25D366; }
.btn.facebook { background: #1877F2; }
.btn.instagram { background: #E4405F; }
.btn.twitter { background: #000000; } /* X (Twitter) */






.search-box {
  text-align: center;
  margin-bottom: 25px;
}

.search-box input {
  width: 80%;
  max-width: 400px;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 16px;
  outline: none;
  transition: 0.2s;
}

.search-box input:focus {
  border-color: #2c7dff;
  box-shadow: 0 0 5px rgba(44,125,255,0.4);
}



.cityHeads-card.hidden {
  display: none !important;
}




/* ===========================================
   GLOBAL HEAD SECTIONS (Same design for all)
=========================================== */

.heads-wrapper {
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.heads-wrapper .title h4 {
    font-size: 32px;
    font-weight: 700;
    color: #222;
    margin-bottom: 10px;
}

.heads-wrapper .title p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.heads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.heads-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    transition: 0.3s;
    cursor: pointer;
}

.heads-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 22px rgba(0,0,0,0.15);
}

.heads-card .imgBx img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.heads-card .content {
    padding: 18px;
}

.heads-card h3 {
    font-size: 20px;
    line-height: 1.3;
}

.heads-card span {
    font-size: 14px;
    color: #777;
}

/* Hide with search filter (works for all sections) */
.heads-card.hidden {
    display: none !important;
}

/* ===========================================
   INDIVIDUAL SECTION COLOR BLOCKS
   (All same background like city heads)
=========================================== */

.country-heads-section,
.provincial-heads-section,
.divisional-heads-section,
.district-heads-section,
.members-section {
    padding: 60px 20px;
    background: #f8f8f8;
}

.heads-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.heads-card {
    width: 260px;      /* Fixed card width */
    max-width: 100%;
}
.heads-card .imgBx img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Provincial Heads Section Background */
.provincial-heads-section {
    padding: 60px 20px;
    background: #F9F7F4 !important;
}

/* District Heads Section Background */
.district-heads-section {
    padding: 60px 20px;
    background: #F9F7F4 !important;
}


.heads-wrapper .title h4 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.heads-wrapper .title h4::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #DAC0A3; /* Gold line */
    border-radius: 6px;
}



.country-heads-section {
    background: #ffffff;
}

.provincial-heads-section {
    background: #F9F7F4;
}

.divisional-heads-section {
    background: #ffffff;
}

.district-heads-section {
    background: #F9F7F4;
}

.members-section {
    background: #ffffff;
}

/* Premium Gold Border + Soft Shadow */
.heads-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.35s ease-in-out;
    
    /* GOLD BORDER */
    border: 2px solid rgba(218, 192, 163, 0.7); /* #DAC0A3 */
    
    /* Premium Shadow */
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* Hover Effect */
.heads-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(218, 192, 163, 0.4);
    border-color: #DAC0A3; /* stronger gold on hover */
}


/* ===== GLOBAL HEAD SECTIONS (4 cards per row like City Heads) ===== */
.heads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 cards per row */
    gap: 25px;
    justify-items: center; /* center cards inside columns */
}

/* Make sure cards have same fixed width */
.heads-card {
    width: 260px;      /* same as city heads */
    max-width: 100%;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1024px) {
    .heads-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cards per row on tablets */
    }
}

@media (max-width: 768px) {
    .heads-grid {
        grid-template-columns: 1fr; /* 1 card per row on mobile */
    }
}
