/* ===================================
   Responsive Design - Media Queries
   =================================== */

/* ========== TABLET (768px - 1024px) ========== */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  /* Header */
  .header-content {
    padding: 0 var(--spacing-lg);
  }

  /* Menu Overlay */
  .menu-overlay {
    padding: 20px 2rem;
  }

  .menu-container {
    flex-direction: column;
    gap: 30px;
  }

  .menu-container .menu-image-section {
    width: 100%;
    height: 300px;
  }

  .menu-container .menu-list {
    text-align: center;
  }

  .menu-container .menu-list li {
    font-size: 20px;
  }

  /* Hero Slider */
  .hero-slide-content {
    flex-direction: column;
    padding: 80px 20px 20px;
  }

  .hero-slide-text {
    width: 100%;
    padding: var(--spacing-lg);
    text-align: center;
  }

  .hero-slide-title {
    font-size: 36px;
    line-height: 44px;
  }

  .hero-slide-image {
    width: 100%;
    height: auto;
    margin-top: 20px;
    justify-content: center;
  }

  .hero-slide-image img {
    max-height: 300px;
  }

  .hero-slider-controls {
    top: auto;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
  }

  /* Story Section */
  .story-section .story-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .story-section .story-bg-image {
    width: 200px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Impact Section */
  .impact-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .impact-text {
    padding-right: 0;
  }

  .impact-stats {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer {
    padding: 60px 30px 30px;
  }

  .footer-bottom-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    text-align: center;
  }

  .footer-bottom-right {
    justify-content: center;
  }

  /* Knowledge Base */
  .kb-section-card .kb-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }

  /* About Us Page */
  .page-main-banner {
    height: 300px;
    margin-top: 80px;
  }

  .page-main-banner .banner-title {
    font-size: 32px;
    line-height: 48px;
  }

  .aboutus-content-container {
    flex-direction: column;
    gap: 30px;
    padding-top: 40px;
  }

  img.aboutus-content-bg {
    height: 350px;
  }

  .aboutus-story-title {
    font-size: 32px;
  }

  .aboutus-story-intro p,
  .aboutus-story-content p {
    font-size: 16px;
    line-height: 26px;
  }

  .aboutus-carousel-container {
    height: 350px;
  }

  .aboutus-slider-controls .hero-slider-btn {
    font-size: 25px;
  }

  .aboutus-slider-controls .hero-slider-btn.prev {
    left: 20px;
  }

  .aboutus-slider-controls .hero-slider-btn.next {
    right: 20px;
  }

  .aboutus-values-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .aboutus-value-section {
    padding: 40px 1.5rem;
  }

  /* Teams Page */
  .teams-section .members-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .teams-section .text {
    font-size: 32px;
  }

  .contact-grid {
    display: block;
  }

  .contact-map {
    min-height: 350px;
  }

  .reports-grid,
  .financial-list-container,
  .fcra-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========== MOBILE (max-width: 767px) ========== */
@media (max-width: 767px) {
  /* Typography Adjustments */
  .section-title {
    font-size: var(--font-size-2xl);
  }

  /* Header */
  .header-content {
    padding: 0 var(--spacing-md);
  }

  .header-logo img {
    width: 80px;
  }

  .menu-button {
    font-size: 14px;
    padding: 8px 15px;
  }

  .menu-button .icon {
    font-size: 14px;
  }

  /* Menu Overlay */
  .menu-overlay {
    padding: 20px 1rem;
  }

  .menu-container {
    padding: 10px;
  }

  .menu-container .menu-image-section {
    height: 200px;
  }

  .menu-container .menu-list li {
    font-size: 18px;
    margin-bottom: 8px;
  }

  /* Hero Slider */
  .hero-slider-section {
    min-height: 100vh;
  }

  .hero-slide-content {
    padding: 100px 15px 20px;
    justify-content: center;
  }

  .hero-slide-text {
    padding: var(--spacing-md);
  }

  .hero-slide-title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 15px;
  }

  .hero-slide-title br {
    display: none;
  }

  .hero-slide-image {
    margin-top: 20px;
  }

  .hero-slide-image img {
    max-height: 250px;
  }

  .hero-slider-controls {
    bottom: 5%;
  }

  .hero-slider-btn {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }

  .hero-bg {
    width: 100%;
    height: auto;
  }

  /* Logo Slider */
  .logo-slider {
    padding: 25px 0;
  }

  .logo-track img {
    height: 40px;
    margin: 0 30px;
  }

  /* Story Section */
  .story-section {
    padding: var(--spacing-lg) 0;
  }

  .story-section .story-grid {
    gap: var(--spacing-md);
  }

  .story-section .story-text {
    font-size: var(--font-size-sm);
    line-height: 1.6;
  }

  .story-section .story-bg-image {
    display: none;
  }

  .cta-button {
    font-size: 16px;
    padding: 8px 10px;
    width: 100%;
    max-width: 200px;
  }

  .cta-button .icon {
    font-size: 13px;
    padding: 5px 7px;
  }

  /* Gallery Section */
  .gallery-section {
    padding: var(--spacing-lg) 0;
  }

  .gallery-section .title-underline {
    width: 100px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 30px 0;
  }

  .gallery-frame {
    padding: 20px;
  }

  .gallery-frame p {
    font-size: 13px;
    padding: 20px 6px 12px 6px;
    bottom: 20px;
  }

  /* Impact Section */
  .impact-section {
    padding: 50px 0 40px;
  }

  .impact-section .impact-bg-image {
    display: none;
  }

  .impact-section .title-content .section-title {
    font-size: var(--font-size-2xl);
  }

  .impact-section .title-underline {
    width: 100px;
  }

  .impact-wrapper {
    gap: 20px;
  }

  .impact-right h2 {
    font-size: 28px;
  }

  .impact-text {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 20px;
  }

  .stat {
    font-size: 14px;
    line-height: 22px;
  }

  .stat span {
    font-size: 24px;
    padding-bottom: 10px;
  }

  /* Footer */
  .footer {
    padding: 50px 20px 30px;
  }

  .footer-grass {
    height: 50px;
    top: -30px;
  }

  .footer-logo img {
    width: 100px;
    margin-bottom: 20px;
  }

  .footer-desc {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 25px;
  }

  .footer-nav ul {
    gap: 15px;
    flex-direction: column;
    align-items: center;
  }

  .footer-nav li {
    font-size: 14px;
  }

  .footer-bottom-grid {
    font-size: 12px;
  }

  .footer-bottom-right {
    flex-direction: column;
    gap: 10px;
  }

  .footer-social a {
    margin-left: 5px;
    padding: 5px 8px;
    font-size: 12px;
  }

  /* Knowledge Base */
  .kb-section-card .kb-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 26px;
  }

  /* About Us Page */
  .page-main-banner {
    height: 250px;
    margin-top: 55px;
  }

  .page-main-banner .banner-title {
    font-size: 24px;
    line-height: 36px;
  }

  .page-main-banner .banner-para {
    font-size: 12px;
  }

  .page-main-banner .banner-title-underline {
    width: 120px;
  }

  .page-main-banner .banner-bg-image-left,
  .page-main-banner .banner-bg-image-right {
    display: none;
  }

  .aboutus-content-container {
    flex-direction: column;
    gap: 20px;
    padding-top: 30px;
  }

  img.aboutus-content-bg {
    height: 250px;
    opacity: 0.3;
  }

  .aboutus-head {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 15px;
  }

  .aboutus-description {
    font-size: 14px;
    line-height: 22px;
  }

  .aboutus-story-section {
    padding-top: 40px;
  }

  .aboutus-story-title {
    font-size: 24px;
  }

  .aboutus-title-underline {
    width: 100px;
  }

  .aboutus-story-intro p,
  .aboutus-story-content p {
    font-size: 14px;
    line-height: 22px;
    margin-bottom: 15px;
  }

  .aboutus-carousel-wrapper {
    margin: 20px 0;
  }

  .aboutus-carousel-container {
    height: 250px;
  }

  .aboutus-slider-controls .hero-slider-btn {
    font-size: 20px;
  }

  .aboutus-slider-controls .hero-slider-btn.prev {
    left: 10px;
  }

  .aboutus-slider-controls .hero-slider-btn.next {
    right: 10px;
  }

  .aboutus-value-section {
    padding: 40px 1rem;
  }

  .aboutus-value-section .bg-image {
    display: none;
  }

  .aboutus-values-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .aboutus-value-card {
    padding: 8px;
    gap: 8px;
  }

  .aboutus-card-icon {
    max-width: 50px;
    height: 50px;
  }

  .aboutus-icon {
    width: 50px;
    height: 50px;
  }

  .aboutus-card-title {
    font-size: 16px;
    padding-bottom: 8px;
  }

  .aboutus-card-description {
    font-size: 12px;
  }

  /* Teams Page */
  .teams-section .Governing-member,
  .teams-section .advisor,
  .teams-section .council {
    padding-bottom: 30px;
  }

  .Governing-member {
    padding-top: 40px;
  }

  .teams-section .our-team {
    padding-bottom: 40px;
  }

  .teams-section .text {
    font-size: 24px;
  }

  .teams-section .underline {
    width: 120px;
  }

  .teams-section .members-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 30px;
  }

  .teams-section .member-name {
    font-size: 18px;
    margin-top: 8px;
  }

  .teams-section .member-role {
    font-size: 14px;
  }

  .contact-main-form label,
  .contact-location {
    font-size: var(--font-size-base);
  }

  .footer .bg-flower-image {
    top: -320px;
  }

  .models-cards .cards {
    flex-direction: column;
    gap: 30px;
  }

  .models-cards .card-image img {
    min-width: 100%;
    height: auto;
  }

  .reports-grid,
  .financial-list-container,
  .fcra-grid {
    grid-template-columns: 1fr;
  }

  .compliance-tabs {
    top: 70px;
    gap: 10px;
  }
  .compliance-tabs .tab-btn {
    font-size: 14px;
    padding: 8px 12px;
  }

  .network-section .about-content {
    flex-direction: column;
    text-align: center;
    gap: 20px;
    padding: 0 16px;
  }

  .network-section .network-image {
    max-width: 360px;
    height: auto;
  }

  .network-section .cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 0 16px 40px;
  }

  .network-section .card {
    min-height: auto;
    padding: 20px;
  }

  .network-section .card-title {
    font-size: 20px;
  }

  .network-section .card-description {
    font-size: 16px;
    line-height: 24px;
    min-height: 196px;
    height: auto;
  }
}

/* ========== SMALL MOBILE (max-width: 480px) ========== */
@media (max-width: 480px) {
  /* Further reduce spacing */
  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Header */
  .header-logo img {
    width: 70px;
  }

  .menu-button {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Hero Slider */
  .hero-slide-title {
    font-size: 24px;
    line-height: 32px;
  }

  .hero-slide-content {
    padding: 80px 10px 20px;
  }

  /* Logo Slider */
  .logo-track img {
    height: 35px;
    margin: 0 20px;
  }

  /* Story Section */
  .story-section .story-text {
    font-size: 14px;
  }

  /* Gallery */
  .gallery-frame {
    padding: 15px;
  }

  .gallery-frame p {
    font-size: 12px;
    padding: 15px 5px 10px 5px;
  }

  /* Impact */
  .impact-right h2 {
    font-size: 24px;
  }

  .impact-text {
    font-size: 13px;
    line-height: 20px;
  }

  .stat span {
    font-size: 20px;
  }

  /* Footer */
  .footer {
    padding: 40px 15px 25px;
  }

  .footer-desc {
    font-size: 12px;
  }

  .footer-nav li {
    font-size: 13px;
  }

  /* About Us Page */
  .page-main-banner {
    height: 220px;
  }

  .page-main-banner .banner-title {
    font-size: 20px;
    line-height: 30px;
  }

  .aboutus-carousel-container {
    height: 200px;
  }

  .aboutus-slider-controls .hero-slider-btn {
    font-size: 18px;
  }

  .aboutus-slider-controls .hero-slider-btn.prev {
    left: 5px;
  }

  .aboutus-slider-controls .hero-slider-btn.next {
    right: 5px;
  }

  /* Teams Page */
  .teams-section .text {
    font-size: 20px;
  }

  .teams-section .member-name {
    font-size: 16px;
  }

  .teams-section .member-role {
    font-size: 12px;
  }
}

/* ========== LANDSCAPE MOBILE ========== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-slider-section {
    min-height: auto;
  }

  .hero-slider-container {
    height: auto;
    min-height: 100vh;
  }

  .hero-slide-content {
    padding: 60px 15px 15px;
  }

  .hero-slide-title {
    font-size: 24px;
    line-height: 30px;
  }
}

/* ========== UTILITY RESPONSIVE CLASSES ========== */
@media (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 768px) {
  .hide-desktop {
    display: none !important;
  }
}

/* ========== SCROLL ANIMATIONS - DISABLE ON MOBILE FOR PERFORMANCE ========== */
@media (max-width: 767px) {
  .fade-in {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* Resilience Page Responsive */

/* Tablet */
@media (max-width: 1024px) {
  .resilience-overview-grid {
    flex-direction: column;
    gap: 30px;
  }

  .resilience-overview-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }

  .resilience-section .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .resilience-stories {
    width: 95%;
    padding: 40px 20px;
  }

  .story-card-large {
    flex-direction: column;
    text-align: center;
  }

  .story-image-col {
    width: 100%;
    max-width: 500px;
  }

  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 767px) {
  .resilience-section .page-main-banner {
    margin-top: 55px;
  }

  .section-title-dark,
  .section-title-white {
    font-size: 32px;
  }

  .resilience-section .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .resilience-stories {
    width: 100%;
    border-radius: 0;
    padding: 40px 20px;
  }

  .resources-grid {
    grid-template-columns: 1fr;
  }

  .section-desc {
    font-size: 14px;
    padding: 0 10px;
  }

  .resilience-overview-text p {
    font-size: 14px;
  }

  .resilience-content {
    padding-top: 30px;
  }

  .story-content-col h3 {
    font-size: 24px;
  }

  .story-content-col p {
    font-size: 16px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .resilience-section .gallery-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .stat-number {
    font-size: 36px;
  }

  .section-title-dark,
  .section-title-white {
    font-size: 28px;
  }
}
