@media (min-width: 1400px) {
  .hero-content {
    max-width: 1000px;
  }
}
@media (min-width: 992px) and (max-width: 1200px) {

.btn-pill-3d {
    padding: 6px 30px;
    font-size: var(--fs-small);
}
.custom-navbar .nav-link {
  font-size: var(--fs-small);
}
.resource-icon {
  width: 140px;
  height: 140px;
}
}
/* =====================================
   TABLET (≤ 991px)
===================================== */
@media (max-width: 991px) {
:root {
    --logo-width: 160px;
  }
  
  /* Header height adjustments for tablet */
  nav .container {
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .custom-navbar.scrolled .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  
  /* Right side group - show on tablet */
  .custom-navbar .navbar-header-right {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
  }
  
  /* Mobile CTA button - show on tablet */
  .mobile-cta-btn {
    display: inline-flex !important;
    padding: 6px 20px;
    font-size: var(--fs-button);
    margin: 0;
  }
  
  /* Desktop CTA button - hide on tablet */
  .desktop-cta-btn {
    display: none !important;
  }
  
  /* Navbar toggler - aligned with button */
  .custom-navbar .navbar-toggler {
    margin: 0;
  }
  
  /* Tablet header background */
  .custom-navbar {
    background: var(--dark);
    position: relative;
  }
  
  /* Tablet dropdown menu - solid background (same as mobile) */
  .custom-navbar .navbar-collapse {
    background-color: var(--dark);
    padding: 1.5rem 1rem 0 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: absolute;
    width: 100%;
    left: 0;
    top: 94px;
    border-top: 1px solid rgba(255, 255, 255, 0.19);
  }
  
  /* Nav links in tablet dropdown (same as mobile) */
  .custom-navbar .navbar-nav {
    margin: 0;
  }
  
  .custom-navbar .nav-item {
    margin-bottom: 0.75rem;
  }
  
  .custom-navbar .nav-item:last-child {
    margin-bottom: 0;
  }
  
  .custom-navbar .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .custom-navbar .nav-item:last-child .nav-link {
    border-bottom: none;
  }
  .navbar-nav .nav-link.active, .navbar-nav .nav-link.show{
    color: var(--primary);
  }
  .dropdown-menu li{
    padding-left: 12px;
  }
  /* Tablet dropdown menu - click-based (Bootstrap default) - same as mobile */
  .custom-navbar .dropdown-menu {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    margin-left: 0rem;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .custom-navbar .dropdown-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
  }

 
  .custom-navbar .dropdown-divider {
    display: none;
  }
  
  /* Hero section padding for tablet */
  .hero-section {
    padding: 0 70px;
  }
  
  /* Swiper arrows for tablet */
  .hero-section .swiper-button-prev {
    left: 15px;
  }

  .hero-section .swiper-button-next {
    right: 15px;
  }
  
  .hero-content {
    padding-top: 28vh;
  }

  .hero-content h1 {
    font-size: var(--fs-h1);
  }

  .feature-card {
    padding: 2.75rem 2rem;
  }
   .impact-images {
    height:auto;
  }

   /* Explainer section - maintain equal heights on tablet */
   .explainer-section .row {
     display: flex;
     align-items: stretch;
   }
   
   .explainer-section .row > [class*="col-"] {
     display: flex;
     flex-direction: column;
   }
   
   .explainer-card {
     display: flex;
     flex-direction: column;
     width: 100%;
     height: 100%;
   }
   
   .explainer-media {
     flex: 1 1 0;
     min-height: auto;
     display: flex;
     align-items: center;
     justify-content: center;
   }
   .resource-icon {
    width: 140px;
    height: 140px;
  }
  .resource-card {
    padding: 2.5rem 2rem 2.5rem;
  }
  .resource-card h4 {
    font-size: var(--fs-h6);
  }
  .impact-lead,
  .impact-text {
    width: 100%;
    max-width: 100%;
  }
  .footer-content{
    margin:20px auto;
  }
}

/* =====================================
   MOBILE (≤ 767px)
===================================== */
@media (max-width: 767px) {
:root {
    --logo-width: 140px;
    --fs-p: 1rem;  
  }
  
  /* Header height adjustments for mobile */
  nav .container {
    padding-top: 18px;
    padding-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .custom-navbar.scrolled .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  
  /* Right side group - show on mobile */
  .custom-navbar .navbar-header-right {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
  }
  
  /* Mobile CTA button - show on mobile, positioned next to toggler */
  .mobile-cta-btn {
    display: inline-flex !important;
    padding: 6px 20px;
    font-size: var(--fs-button);
    margin: 0;
  }
  
  /* Desktop CTA button - hide on mobile */
  .desktop-cta-btn {
    display: none !important;
  }
  
  /* Navbar toggler - aligned with button */
  .custom-navbar .navbar-toggler {
    margin: 0;
  }
  .custom-navbar{
    background: var(--dark);
  }
  /* Mobile dropdown menu - solid background */
  .custom-navbar .navbar-collapse {
    background-color: var(--dark);
    padding: 1.5rem 1rem 0 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: absolute;
    width: 100%;
    left: 0;
    top: 86px;
    border-top: 1px solid rgba(255, 255, 255, 0.19);
  }
  
  /* Nav links in mobile dropdown */
  .custom-navbar .navbar-nav {
    margin: 0;
  }
  
  .custom-navbar .nav-item {
    margin-bottom: 0.75rem;
  }
  
  .custom-navbar .nav-item:last-child {
    margin-bottom: 0;
  }
  
  .custom-navbar .nav-link {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .custom-navbar .nav-item:last-child .nav-link {
    border-bottom: none;
  }

  /* Mobile dropdown menu - click-based (Bootstrap default) */
  .custom-navbar .dropdown-menu {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    margin-left: 0rem;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .custom-navbar .dropdown-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
  }


  .custom-navbar .dropdown-divider {
    display: none;
  }

  /* HERO */
  .hero-content {
    padding-top: 0;
    padding-inline: 1rem;
  }

  .hero-content h1 {
    font-size: var(--fs-h1);
  }

  .hero-content p {
    font-size: var(--fs-p);
  }

  /* MISSION */
  .mission-section {
    padding: 4rem 0;
  }

  .mission-text {
    font-size: var(--fs-p);
  }

  .mission-highlight {
    font-size: var(--fs-h5);
    margin-bottom: 2.5rem;
  }

  /* CARDS */
  .feature-card {
    padding: 2.5rem 2rem;
  }

  .feature-card h3 {
    font-size: var(--fs-h2);
  }

  .icon-circle {
    width: 110px;
    height: 110px;
  }

  .icon-circle i {
    font-size: var(--fs-h2);
  }

    .resources-section {
    padding:0 0 4rem 0;
  }

  .resource-card {
    border-radius: 80px 80px 24px 24px;
    padding: 2.5rem 1.5rem;
  }

  .resource-icon {
    width: 80px;
    height: 80px;
  }

  .resource-icon i {
    font-size: var(--fs-h3);
  }

  .impact-section {
    text-align: center;
  }

  .impact-lead,
  .impact-text {
    margin-left: auto;
    margin-right: auto;
  }

  .impact-images {
    height:auto;
    margin-top: 0rem;
  }

  .explainer-section {
    padding: 4rem 0;
  }
  
  /* Explainer section - maintain equal heights on mobile */
  .explainer-section .row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  
  .explainer-section .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  
  .explainer-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
  }

  .explainer-media {
    padding: 1rem;
    flex: 1 1 0;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .polaroid {
    position: static;
    transform: none;
    margin: 0 auto 1rem;
  }

  .explainer-text {
    text-align: center;    
    font-size: var(--fs-p);
  }
  .footer-cta {
    text-align: center;
  }

  .footer-content {
    margin: 0 auto;
  }

  .footer-links a {
    display: inline-block;
    margin: 0 10px;
  }
  /* Hero section padding for mobile */
  .hero-section {
    padding: 0 12px;
  }
  
  /* Swiper arrows for mobile */
  .hero-section .swiper-button-next,
  .hero-section .swiper-button-prev {
    width: 48px;
    height: 48px;
  }

  .hero-section .swiper-button-prev {
    left: 10px;
  }

  .hero-section .swiper-button-next {
    right: 10px;
  }

  .hero-section .swiper-button-next i,
  .hero-section .swiper-button-prev i {
    font-size: var(--fs-p);
  }
  .section-desc {
    font-size: var(--fs-small);
  }
  .impact-lead {
    font-size: var(--fs-p);
  }
  .impact-text {
    font-size: var(--fs-small);
  }
  .hero-section {
    position: relative;
    height: 80vh;
  }
  .hero-section .swiper-button-next, .hero-section .swiper-button-prev{
    top:75%;
  }
  .explainer-media .polaroid img {
    margin-top: 36px;
  }
  
  .impact-section {
    padding-bottom: 10px;
  }
  
  .footer-icon-wrap img {
    width: 210px;
  }
}