/* ===================================
   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;
    align-items: center;
  }

  .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;
    font-size: 0;
  }


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

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

  .core-values-group {
    gap: 0;
    margin: 0 -10px;
  }

  .core-values-group .left-side,
  .core-values-group .right-side {
    width: 37.5%;
    padding: 0 10px;
  }

  .core-values-group .top-side {
    padding: 0 10px;
  }

  .core-values-group .center-flower {
    width: 25%;
  }

  .core-values-group .aboutus-value-card .aboutus-card-title {
    font-size: 25px;
    line-height: 30px;

  }

  html {
    overflow-x: hidden;
  }


}


@media screen and (max-width:991px) {
  .core-values-group .top-side {
    gap: 40px;
    margin-bottom: 20px;
  }

  .core-values-group .bottom-side {
    margin-top: 20px;
  }
}

/* ========== 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: 6px 42px 6px 12px;
  }

  .menu-button::before,
  .menu-button::after {
    right: 10px;
  }

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

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

  .menu-container {
    padding: 10px;
    overflow: auto;
    justify-content: start;
    height: 100vh;
    padding-bottom: 50px;
  }

  .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;
    margin: auto;
  }

  .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: 0;
    padding-top: var(--spacing-lg);
  }

  .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;
  }

  .impact-section .impact-right {
    padding: 0px 0px 0px 0;
  }

  .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: repeat(2, 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 60px;
  }

  .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: -35px;
    background-size: cover;
  }

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

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

  .footer-nav ul {
    gap: 10px 15px;
    align-items: center;
    margin-bottom: 20px;
  }

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

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

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

  .footer-social {
    width: 100%;
    justify-content: center;
  }

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

  .kb-section-card .kb-image-wrapper {
    padding-top: 130%;
  }

  .contactus-content .section-title {
    font-size: 20px;
    padding-top: 40px;
  }

  /* 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-right,
  .page-main-banner .banner-bg-image-left {
    width: auto;
    height: 100px;
  }

  #book-container {
    min-height: 64vh;
  }

  .flipbook-menuBottom {
    bottom: 40px !important;
  }

  .book-btns {
    margin-top: -30px;
    position: relative;
  }

  .aboutus-content-story {
    margin-top: 0;
    margin-bottom: 40px;
  }

  #knowledgebase .aboutus-content-story {
    margin-top: 40px;
    margin-bottom: -50px;
    position: relative;
    z-index: 1;
  }

  .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;
  }

  .covid {
    padding-bottom: 0;
  }

  .kb-section-card .kb-title {
    line-height: 20px;
    font-size: 16px;
  }

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

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

  .aboutus-story-title {
    font-size: 20px;
    line-height: 26px;
    padding: 0 15px;
  }

  .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 0;
  }

  .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;
  }

  .compliance-content .text-content .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 {
    width: 220px;
    top: -200px;
  }

  .footer-with-img {
    margin-top: 200px;
  }

  .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 35px 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: 20px 0px 25px;
  }

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

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

  .footer-bottom-right a {
    font-size: 13px;
  }

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

  /* 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;
  }

  .compliance-content .text-content .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;
  }

  .sticky-title {
    top: 55px;
  }
}

@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(3, 1fr) !important;
    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 !important;
    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;
  }

  html {
    overflow-x: hidden;
  }

  .footer .bg-round-image {
    top: -50px;
    right: -45px;
    width: 85px;
  }

  .vrutti-story-line .vrutti-story-line-content .story-img {
    border-right: 0;
    padding-top: 0;
    width: 100%;
  }

  .vrutti-story-line .vrutti-story-line-content .story-info {
    width: 100%;

  }

  .vrutti-story-line .vrutti-story-line-content .story-info p {
    font-size: 14px;
    line-height: 22px;
  }

  .vrutti-story-line .vrutti-story-line-content .story-info img {
    margin-bottom: 16px;
    width: 45px;
  }

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

  .vrutti-story-line .vrutti-story-line-content:nth-child(even) .story-info img {
    margin-left: 0;
  }

  .vrutti-story-line .vrutti-story-line-content:nth-child(even) .story-info p {
    text-align: left;
  }

  .core-values-group .top-side,
  .core-values-group {
    flex-direction: column;
  }

  .core-values-group .left-side,
  .core-values-group .right-side {
    width: 100%;
  }

  .core-values-group .aboutus-value-card:not(:last-of-type) {
    margin-bottom: 20px;
  }

  .core-values-group .center-flower {
    width: 100%;
    order: -1;
  }

  .core-values-group .center-flower img {
    margin: 0 auto 20px;
    display: block;
    max-width: 150px;
  }

  .core-values-group .right-side {
    margin-top: 20px;
  }

  .vrutti-story-line .vrutti-story-line-content:not(:last-of-type) {
    border-bottom: 1px solid #005745;
    margin-bottom: 20px;
  }

  .aboutus-content.mt-40 {
    margin-top: 40px;
  }

  .book-stand .book-row {
    flex-direction: column;
  }

  .book-info {
    flex-shrink: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .bottom-books .book-row-mini .book-shell-small {
    max-width: 50%;
    width: 100%;
    padding: 0 10px;
  }

  .bottom-books .book-row-mini {
    flex-wrap: wrap;
    margin: 0 -10px;
    gap: 20px 0px;
    justify-content: center;
  }

  .playbooks-lists {
    padding: 50px 0 250px;
  }
}

/* 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;
  }
}