/* CSS Variables for consistent theming */
:root {
    --primary-blue: #1a5f7a;
    --primary-blue-light: #2a7a9a;
    --primary-green: #2a7a5a;
    --primary-green-light: #3a9a7a;
    --neutral-gray: #f8f9fa;
    --neutral-gray-medium: #e9ecef;
    --neutral-gray-dark: #6c757d;
    --neutral-gray-text: #495057;
    --white: #ffffff;
    --border-radius: 20px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --max-width: 1280px;
  }

  /* Reset and base styles */
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: "Segoe UI", "Inter", "Roboto", Tahoma, Geneva, Verdana,
      sans-serif;
    line-height: 1.6;
    color: var(--neutral-gray-text);
    background-color: var(--white);
    /* background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.25) 0%,
      rgba(0,0,0,0.12) 30%,
      rgba(255,255,255,0.6) 70%,
      rgba(255,255,255,1) 100%
      ); */
    -webkit-font-smoothing: antialiased;
  }

  section {
    scroll-margin-top: 120px; /* adjust to your header height */
  }

  .container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
  }
  

  /* Typography */
  h1,
  h2,
  h3,
  h4 {
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--primary-blue);
  }

  h1 {
    font-size: 2.25rem;
    font-weight: 800;
  }

  h2 {
    font-size: 2rem;
    margin-top: 2.5rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.25rem;
    color: var(--neutral-gray-text);
  }

  p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }

  a {
    color: var(--primary-blue-light);
    text-decoration: none;
    transition: var(--transition);
  }

  a:hover {
    color: var(--primary-green);
  }

  /* Header and Navigation */
  header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  /* .header-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 1.2rem 0;
    gap: 30px;
  } */
  .header-content{
    display: grid;
    grid-template-columns: 24% 65% 10%;
    align-items: center;
    padding: 1.2rem 0;
    justify-items: start;
  }

  .logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0px 10px;
  }

  .logo {
    height: 65px;
    display: flex;
    align-items: center;
  }
  .logo img{
    width: 70px;
    height: 70px;
  }

  .logo-icon {
    font-size: 2.8rem;
    color: var(--primary-blue);
  }

  .logo-text {
    display: flex;
    flex-direction: column;
  }

  .logo-main {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1.1;
    letter-spacing: -0.5px;
  }

  .logo-sub {
    font-size: 0.72rem;
    color: var(--neutral-gray-dark);
    letter-spacing: 0.3px;
    max-width: 210px;
  }

/* Header Social Icons */
.socials-div{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 5px;

}



.socials-div a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.social-icon {
  /* width: 40px;  
  height: 40px; */
  object-fit: contain;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.socials-div a:hover .social-icon {
  transform: translateY(-3px);
  opacity: 0.8;
}


  #mainNav{
    padding: 0px 40px;
  }
/* Nav Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--white);
  min-width: 190px;
  list-style: none;
  padding: 0.5rem 0;
  box-shadow: var(--box-shadow);
  border-radius: var(--border-radius);
  display: none;
  z-index: 1500;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 1.2rem;
  color: var(--neutral-gray-text);
  font-size: 0.95rem;
}

.dropdown-menu a:hover {
  background-color: var(--neutral-gray);
  color: var(--primary-blue);
}

/* Show dropdown on hover (desktop) */
.nav-dropdown:hover .dropdown-menu {
  display: block;
}

/* Mobile handling */
@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
  }

  .nav-dropdown:hover .dropdown-menu {
    display: none;
  }

  nav.active .nav-dropdown .dropdown-menu {
    display: block;
  }
}

  .mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
    padding: 0.5rem;
  }

  nav ul {
    display: flex;
    list-style: none;
    gap: 2.8rem;
  }

  nav a {
    font-weight: 500;
    color: var(--neutral-gray-text);

    position: relative;
    font-size: 1.05rem;
  }

  nav a:hover,
  nav a.active {
    color: var(--primary-blue);
  }

  nav a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
  }
  nav a:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--primary-blue);
  border-radius: 4px;
}

  /* Hero Section */
  .hero {
    
    background:
    linear-gradient(
    90deg,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.65) 40%,
    rgba(0,0,0,0.05) 100%
    ),
     url('/wp-content/themes/themeWASHNet/images/back.jpg') center/cover no-repeat;
     /* background-position: 100px 0px; */

    padding: 5rem 0 4rem;
    padding-top:0;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    min-height: 40rem;
    /* background: linear-gradient(to bottom, rgba(26,95,122,0.4), #fff); */
  }

  .ha-sc{
    display: flex;
    flex-direction: column;
    gap:50px

  }
  .stats-in-header{
    display: flex;
    flex-direction: row;
    gap: 30px;
  }

  .stats-in-header .stat-card{
    background-color: #00000080;
    max-width: 160px;
    max-height: 110px;
    padding-top: 15px;
  }

  .stats-in-header .stat-card .stat-value{
    font-size: 1.1rem;
    color: #9febff;
  }
  .stats-in-header .stat-card .stat-label{
    font-size: 0.6rem;
    color: #d8d8d8;
  }
  

  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(
      90deg,
      var(--primary-blue) 0%,
      var(--primary-green) 100%
    );
  }
  .hero::after {
    content: "";
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    height: 15px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-green) 100%);}

  /* .hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 450px; 
    background: linear-gradient(to bottom, #00000000, #00000000, #00000000, #ffffff00, rgb(255 255 255), #fff);
    z-index: 2;
} */

  .hero-content {
    max-width: 850px;
    position: relative;
    z-index: 3;
  }
  

  .hero h1 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #9febff;
    margin-top: 1.5rem;
  }

  .hero p {
    font-size: 1.3rem;
    color: white;
    max-width: 800px;
  }

  /* Hero Actions */
  .hero-actions {
    display: flex;
    gap: 1.2rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
  }
  .hero-actions .btn-outline{
    color: #9febff;
    border: solid 1px #9febff;
  }

  .hero-actions .btn{
    color: #ffffff;

  }

  

  /* Stats Section */
  .stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
  }

  .stat-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--box-shadow);
    border-top: 5px solid var(--primary-green);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
  }

  .stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
      135deg,
      rgba(26, 95, 122, 0.03) 0%,
      rgba(42, 122, 90, 0.03) 100%
    );
    z-index: 0;
  }

  .stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  }

  .stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
  }

  .stat-label {
    color: var(--neutral-gray-dark);
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
  }

  /* Content Sections */
  .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--neutral-gray-medium);
  }

  .section-title h2 {
    margin-bottom: 0;
  }

  .section-link {
    font-size: 1rem;
    color: var(--primary-blue-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
  }

  .card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    border: 1px solid var(--neutral-gray-medium);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  

  .card-end {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    overflow: hidden;
    border-radius: var(--border-radius);
    border: 1px solid var(--neutral-gray-medium);
  }

  .card-end .card-header{
    position: relative;
    z-index:2;
  }
  .card-end .card-date{
    color: #f8f9fa;
  }
  .card-end .card-title{
    color: #c4e2ff;
    font-weight: 600;
  }
  .card-end .card-text{
    color: #ffffff;
  }
  .box-for-body{
    min-height: 122px;
  }

  .card-end .btn-outline{
    color: #c4e2ff;
    border: 2px solid #c4e2ff;
  }
  .card-end .card-content a i{
    color: #c4e2ff;
  }
  .card-end .card-content{
    position: relative;
    z-index:2;
  }
  
  /* Dark overlay */
  /* Overlay sits ABOVE image but BELOW content */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}
  

  .resource-type {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.type-policy-doc {
    background-color: rgba(26, 95, 122, 0.1);
    color: var(--primary-blue);
}

.type-guidelines {
    background-color: rgba(42, 122, 90, 0.1);
    color: var(--primary-green);
}

.type-meetings {
    background-color: rgba(156, 89, 182, 0.1);
    color: #9c59b6;
}

.type-manuals {
    background-color: rgba(231, 127, 10, 0.1);
    color: #e77f0a;
}

.type-training {
    background-color: rgba(41, 128, 185, 0.1);
    color: #2980b9;
}

.type-data-statistics {
    background-color: rgba(192, 57, 43, 0.1);
    color: #c0392b;
}

.resource-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

  .card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
    border-color: rgba(26, 95, 122, 0.2);
  }

  .card-header {
    padding: 2rem 2rem 0.5rem;
  }

  .card-content {
    padding: 1rem 2rem 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .card-date {
    font-size: 0.9rem;
    color: var(--neutral-gray-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .card-title {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
    line-height: 1.4;
  }

  .card-text {
    font-size: 1rem;
    color: var(--neutral-gray-text);
    margin-bottom: 0.5rem;
    flex-grow: 1;
    max-width: 90%;
  }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.3px;
  }

  .btn:hover {
    background-color: var(--primary-blue-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 95, 122, 0.2);
  }

  .btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
  }

  .btn-outline:hover {
    background-color: var(--primary-blue);
    color: var(--white);
  }

  .btn-green {
    background-color: var(--primary-green);
  }

  .btn-green:hover {
    background-color: var(--primary-green-light);
    box-shadow: 0 5px 15px rgba(42, 122, 90, 0.2);
  }

  /* Introduction Section */
  .intro-section {
    margin-bottom: 5rem;
  }

  .intro-section > p {
    max-width: 900px;
    font-size: 1rem;
    color: var(--neutral-gray-text);
    margin-bottom: 1rem;
  }

  .intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }

  .icon-large {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
    display: inline-block;
  }

  /* Governance Highlight */
  .governance-highlight {
    margin: 5rem 0;
  }

  .governance-highlight .card {
    padding: 3rem;
    border-left: 8px solid var(--primary-blue);
    background: linear-gradient(
      135deg,
      rgba(26, 95, 122, 0.04),
      rgba(42, 122, 90, 0.04)
    );
  }

  .governance-list {
    margin-top: 1.5rem;
    padding-left: 1.5rem;
    columns: 2;
    column-gap: 3rem;
  }

  .governance-list li {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--neutral-gray-text);
    break-inside: avoid;
  }

  /* CTA Section */
  .cta-section {
    margin: 6rem 0;
  }

  .cta-box {
    background: linear-gradient(
      135deg,
      var(--primary-blue) 0%,
      var(--primary-blue-light) 100%
    );
    color: var(--white);
    padding: 4rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
  }

  .cta-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none"/><path d="M0,50 Q25,40 50,50 T100,50" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>');
    opacity: 0.3;
  }

  .cta-box h2 {
    color: var(--white);
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
  }

  .cta-box p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 750px;
    margin: 0 auto 3rem;
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
  }

  .cta-box .btn-outline {
    border-color: var(--white);
    color: var(--white);
    background-color: transparent;
    position: relative;
    z-index: 1;
  }

  .cta-box .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-blue);
  }

  /* Partner Logos */
  .partners-before {
    position: relative;
    width: 100%;
    height: 15px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--primary-green) 100%);
}


  .partners {
    background-color: var(--neutral-gray);
    padding: 4rem 0;
    margin-bottom: 5rem;
  }
  .partners-container{
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .partner-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 0
  }
  
  .carousel-wrapper {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    will-change: transform;
    align-items: center;
  }
  
  .partner-logo {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
  }
  .partner-logo img{
    max-width:120px;
    max-height:70px;
    object-fit:contain;
  }
  
  .partner-logo i {
    font-size: 3.5rem;
    color: var(--primary-blue);
    transition: all 0.4s ease;
  }
  
  .partner-name {
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--neutral-gray-dark);
    font-size: 0.9rem;
  }
  
  .partner-logo.active {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.3);
    z-index: 2;
  }
  
  .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
  }
  .carousel-btn:hover {
    top: 50%;
    transform: translateY(-50%);
    border: 10px solid var(--neutral-gray-medium);
    padding: 0.5rem 1rem;
    font-size: 1.8rem;
    cursor: pointer;
    border-radius: 50%;
  }
  
  .carousel-btn.left {
    left: 0;
  }
  
  .carousel-btn.right {
    right: 0;
  }

  /* Footer */
  footer {
    background: linear-gradient(
      135deg,
      var(--primary-blue) 0%,
      #164a60 100%
    );
    color: var(--white);
    padding: 4rem 0 2rem;
  }

  .footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
  }

  .footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
  }

  .footer-section h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 1.8rem;
    position: relative;
    padding-bottom: 0.8rem;
  }

  .footer-section h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-green);
    border-radius: 2px;
  }

  .footer-links {
    list-style: none;
  }

  .footer-links li {
    margin-bottom: 0.9rem;
  }

  .footer-links a {
    color: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    gap: 0.7rem;
  }

  .footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
    transform: translateX(5px);
  }

  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
  }

  .footer-attribution {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  /* Login Modal */
  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
  }

  .modal-content {
    background-color: var(--white);
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 500px;
    padding: 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
  }

  @keyframes modalFadeIn {
    from {
      opacity: 0;
      transform: translateY(-30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .modal-header {
    text-align: center;
    margin-bottom: 2.5rem;
  }

  .modal-header h2 {
    margin-bottom: 0.8rem;
  }

  .modal-header p {
    color: var(--neutral-gray-dark);
  }

  .form-group {
    margin-bottom: 1.8rem;
  }

  .form-group label {
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 600;
    color: var(--neutral-gray-text);
  }

  .form-control {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--neutral-gray-medium);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--neutral-gray);
  }

  .form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(26, 95, 122, 0.15);
    background-color: var(--white);
  }

  .role-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
  }

  .role-option {
    padding: 1rem 0.5rem;
    text-align: center;
    border: 2px solid var(--neutral-gray-medium);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: var(--neutral-gray);
  }

  .role-option:hover {
    border-color: var(--primary-blue);
    background-color: rgba(26, 95, 122, 0.05);
  }

  .role-option.selected {
    background-color: rgba(26, 95, 122, 0.1);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    font-weight: 600;
  }

  .modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .close-modal {
    background: none;
    border: none;
    color: var(--neutral-gray-dark);
    cursor: pointer;
    font-size: 1.8rem;
    position: absolute;
    top: 1.5rem;
    right: 1.8rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
  }

  .close-modal:hover {
    background-color: var(--neutral-gray-medium);
    color: var(--primary-blue);
  }

  /* Breadcrumbs */
  .breadcrumbs {
    padding: 1.2rem 0;
    margin-bottom: 0;
  }

  .breadcrumbs ul {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
  }

  .breadcrumbs li {
    color: rgba(255, 255, 255, 0.652);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
  }

  .breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin-left: 0.8rem;
    font-weight: bold;
    color: var(--neutral-gray-medium);
  }

  .breadcrumbs a {
    color: rgba(255, 255, 255, 0.652);
  }

  .breadcrumbs a:hover {
    color: var(--primary-blue);
  }

  /* Document download styles */
  .doc-icon {
    color: var(--primary-blue);
    margin-right: 0.7rem;
  }

  .download-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 1.5rem;
  }

  /* Badge for updates */
  .update-badge {
    display: inline-block;
    background-color: var(--primary-green);
    color: var(--white);
    font-size: 0.8rem;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
    margin-left: 0.8rem;
    vertical-align: middle;
  }







/* POPUP Overlay */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}



.popup-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Main popup box */
.popup-box {
  width: 800px;
  max-width: 92%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 70px rgba(0,0,0,0.3);
  position: relative;
}

/* Layout split */
.popup-content {
  display: flex;
  min-height: 320px;
}

/* LEFT IMAGE */
.popup-image {
  flex: 1;
  background-size: cover;
  background-position: center;
  max-width:30%;
}

/* RIGHT TEXT */
.popup-text {
  flex: 1;
  padding: 10px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.popup-text h2 {
  margin-top: 0rem;
  font-size: 13px;
  letter-spacing: 1px;
  color: #777;
  margin-bottom: 10px;
}

.popup-text h3 {
  font-size: 22px;
  margin-bottom: 12px;
  color: #111;
}

.popup-text p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Button */
.popup-btn {
  display: inline-block;
  background: #0b5ed7;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  width: fit-content;
  transition: 0.3s;
}

.popup-btn:hover {
  background: #0849b2;
}

/* Close button */
.popup-close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 28px;
  border: none;
  background: none;
  cursor: pointer;
}
































  /* =========================
   MOBILE HEADER
========================= */

@media (max-width: 900px) {

  header {
    position: sticky;
    top: 0;
    z-index: 999;
  }

  .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
  }

  /* Logo */
  .logo-container {
    display: flex;
    align-items: center;
    gap: 0.6rem;
  }

  .logo img {
    width: 40px;
    height: auto;
  }

  .logo-main {
    font-size: 1rem;
    font-weight: 700;
  }

  .logo-sub {
    display: none; /* hide long subtitle on mobile */
  }

  /* Mobile Menu Button */
  .mobile-toggle {
    display: block;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* Navigation */
  #mainNav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border-top: 1px solid #eee;

    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  #mainNav.active {
    max-height: 600px;
    overflow-y: auto;
    border-bottom: 7px solid #03669e;
  }

  #mainNav ul {
    flex-direction: column;
    gap:0;
  }

  #mainNav li {
    border-bottom: 1px solid #eee;
  }

  #mainNav a {
    display: block;
    padding: 1rem;
  }

  /* Dropdowns */
  .dropdown-menu {
    position: static;
    display: none;
    background: #f7f7f7;
  }

  .nav-dropdown.active .dropdown-menu {
    display: block;
  }



  
}




/* =========================
   MOBILE FOOTER
   ========================= */
   @media (max-width: 768px) {

    footer {
      padding: 2rem 0 1rem;
    }
  
    .footer-content {
      grid-template-columns: 1fr 1fr;
      gap: 1.5rem;
      margin-bottom: 1.5rem;
    }
  
    .footer-logo {
      font-size: 1.4rem;
      margin-bottom: 0.7rem;
    }
  
    .footer-section h3 {
      font-size: 1rem;
      margin-bottom: 0.8rem;
      padding-bottom: 0.4rem;
    }
  
    .footer-section h3::after {
      width: 30px;
      height: 2px;
    }
  
    .footer-links li {
      margin-bottom: 0.45rem;
    }
  
    .footer-links a {
      font-size: 0.85rem;
      gap: 0.4rem;
    }
  
    /* Bottom bar */
    .footer-bottom {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 0.5rem;
      padding-top: 1rem;
      font-size: 0.8rem;
    }
  
    .footer-attribution {
      gap: 0.7rem;
      justify-content: center;
      font-size: 0.8rem;
    }
  
  }








/* =========================
   MOBILE STYLES
   ========================= */
   @media (max-width: 768px) {


    

    .hero {
      
      background:
      linear-gradient(
        180deg,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.65) 40%,
        rgba(0,0,0,0.45) 100%
      ),
      url('/wp-content/themes/themeWASHNet/images/back.jpg') center center / cover no-repeat;

      background-position: -600px 0px;

  
    }
  
    .stats-in-header{
      gap:10px
    }

    .stats-in-header .stat-card{
      flex: 0 0 70px;
        padding: 1.5rem 1.2rem;
        padding-top: 0.7rem;
        max-height: 95px;
        min-width: 70px;
    }
    .stats-in-header .stat-card .stat-value{
      font-size: 0.8rem;
      color: #9febff;
    }
    .stats-in-header .stat-card .stat-label{
      font-size: 0.3rem;
      color: #d8d8d8;
    }
    
    
   

    /* Hero */
    .hero {
      padding: 3rem 1rem 2.5rem;
      margin-bottom: 2rem;
    }
  
    .hero h1 {
      font-size: 1.4rem;
    }
  
    .hero p {
      font-size: 1rem;
      margin-bottom: 1rem;
    }
  
    .hero-actions {
      gap: 0.7rem;
    }
  
    .hero-actions a{
      width:150px;
      font-size: 9px;
    }


    .hero-actions a:nth-child(3) {
      display: none;
    }
  




    /* Stats */
    .stats {
      display: flex;
      overflow-x: auto;
      gap: 1rem;
      padding-bottom: 10px;
    }

    .stats::-webkit-scrollbar{
      display:none;
    }
    
  
   
  
    /* Section titles */
    .section-title {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.4rem;
    }
  
    .section-title h2 {
      font-size: 1.4rem;
    }
  
    /* Cards horizontal scroll */
    .content-grid {
      display: flex;
      overflow-x: auto;
      gap: 1rem;
      padding-bottom: 12px;
    }

    .content-grid::-webkit-scrollbar{
      display:none;
    }
  
    .card {
      flex: 0 0 260px;
    }
    .card-end{
      flex: 0 0 260px;
    }
    .box-for-body{
      min-height: 122px;
    }
  
    .card-header {
      padding: 1.2rem 1.2rem 0.3rem;
    }
  



    .card-content {
      padding: 0.8rem 1.2rem 1rem;
    }
    .card-content p{
      font-size: 0.75rem;
    }
    .card-content h3{
      font-size: 1rem;
    }
    .card-content i{
      font-size: 1.5rem;
    }
  
/* Cards horizontal scroll */
.intro-section .intro-grid {
  display: flex;
  overflow-x: auto;
  padding-bottom: 12px;
}

.intro-section .intro-grid::-webkit-scrollbar{
  display:none;
}











    .card-title {
      font-size: 1.1rem;
    }
    
  
    .card-text {
      font-size: 0.9rem;
    }
  
    .resource-title {
      font-size: 1.05rem;
    }
  
    .resource-type {
      font-size: 0.85rem;
    }
  
    /* Intro section */
    .intro-grid {
      grid-template-columns: 1fr;
    }
  
    .intro-section > p {
      font-size: 0.95rem;
    }
  
    /* Governance */
    .governance-list {
      columns: 1;
    }
  
    .governance-list li {
      font-size: 0.95rem;
    }
  
    /* CTA */
    .cta-box {
      padding: 2rem 1.5rem;
    }
  
    .cta-box h2 {
      font-size: 1.5rem;
    }
  
    .cta-box p {
      font-size: 0.95rem;
    }
  
    /* Buttons */
    .btn {
      padding: 0.7rem 1.2rem;
      font-size: 0.9rem;
    }
  
    /* Partners */
    .partner-carousel {
      padding: 15px 0;
    }
  
    .partner-logo {
      flex: 0 0 90px;
    }
  
    .partner-logo img {
      max-width: 90px;
      max-height: 55px;
    }
    .breadcrumbs ul {
      flex-wrap: wrap;
      font-size: 0.9rem;
    }
  
  }