/* ===============================================================
   NIRJA VIKAS VARDHINI — MOBILE RESPONSIVE ENHANCEMENTS
   Mobile-first responsive design for index.html
   Does not affect other pages or existing global styles
   =============================================================== */

/* ===============================================================
   MOBILE FIRST: Extra Small Screens (320px - 480px)
   =============================================================== */
@media (max-width: 480px) {
  /* --------- HERO SECTION --------- */
  .hero {
    height: auto;
    min-height: 60vh;
    max-height: none;
    padding-top: calc(52px + 37px);
  }

  .hero__content {
    padding: 50px 16px;
    max-width: 100%;
  }

  .hero__title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
    line-height: 1.2;
    margin-bottom: 12px;
  }

  .hero__marathi {
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin-bottom: 20px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.85rem;
  }

  /* --------- HERO CONTROLS --------- */
  .hero__controls {
    bottom: 40px;
    gap: 10px;
  }

  .hero__btn {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  .hero__dot {
    width: 6px;
    height: 6px;
  }

  .hero__dot.active {
    width: 18px;
  }

  /* --------- NEWS BAR --------- */
  .news-bar {
    flex-direction: column;
  }

  .news-bar__label {
    min-width: auto;
    padding: 12px 16px;
    text-align: center;
  }

  .news-bar__label strong {
    font-size: 1rem;
  }

  .news-bar__label span {
    font-size: 0.7rem;
  }

  .news-bar__marquee {
    padding: 10px;
  }

  .news-bar__track {
    gap: 30px;
  }

  .news-bar__track a {
    font-size: 0.85rem;
  }

  /* --------- WELCOME SECTION --------- */
  .welcome__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .welcome__visual {
    padding: 0 0 30px 0;
  }

  .welcome__img-main {
    aspect-ratio: 1;
  }

  .welcome__content {
    text-align: center;
  }

  .story-container {
    padding: 0;
  }

  .story-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
  }

  .story-tabs-nav {
    flex-direction: column;
    gap: 10px;
    border-bottom: none;
    padding: 0 10px;
    margin-bottom: 20px;
  }

  .story-tab-btn {
    font-size: 1rem;
    padding: 10px 15px;
    background: var(--primary-light);
    border-radius: 8px;
    width: 100%;
    border: 2px solid transparent;
  }

  .story-tab-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
  }

  .story-tab-btn::after {
    display: none;
  }

  .story-text {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  /* --------- PROGRAMS SECTION --------- */
  .programs-alt {
    padding: 60px 0 80px;
  }

  .programs-alt__grid {
    grid-template-columns: 1fr;
    gap: 30px 20px;
  }

  .program-alt-card {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .program-alt-card__icon {
    width: 220px;
    height: 160px;
    margin: 0 auto 16px;
  }

  .program-alt-card h3 {
    font-size: 1.2rem;
  }

  .program-alt-card p {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .programs-alt__lead {
    font-size: 0.95rem;
  }

  /* --------- GALLERY SECTION --------- */
  .gallery-section {
    padding: 60px 0 40px;
  }

  .gallery-item {
    width: 280px;
    flex-shrink: 0;
  }

  @keyframes galleryScroll {
    from {
      transform: translateX(0);
    }
    25% {
      transform: translateX(calc(-280px * 1 - 20px * 1));
    }
    50% {
      transform: translateX(calc(-280px * 2 - 20px * 2));
    }
    75% {
      transform: translateX(calc(-280px * 3 - 20px * 3));
    }
    to {
      transform: translateX(calc(-280px * 5 - 20px * 5));
    }
  }

  .section-header {
    margin: 0 auto 40px;
  }

  /* --------- TESTIMONIALS SECTION --------- */
  .testimonials {
    padding: 60px 0;
  }

  .testimonials__inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .testimonials__head {
    text-align: center;
  }

  .testimonials__head h2 {
    font-size: clamp(1.6rem, 4vw, 2rem);
  }

  .testi-slide {
    position: relative !important;
    opacity: 1 !important;
    pointer-events: all !important;
    margin-bottom: 20px;
  }

  .testi-slide:last-child {
    margin-bottom: 0;
  }

  .testi-card {
    padding: 24px 18px;
    border-radius: 12px;
  }

  .testi-card p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 18px;
  }

  .testi-card__quote {
    font-size: 1.6rem;
  }

  .testi-card__author {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .testi-card__img {
    width: 48px;
    height: 48px;
  }

  .testi-card__author h4 {
    font-size: 0.95rem;
  }

  .testi-card__author span {
    font-size: 0.75rem;
  }

  .testi-controls {
    display: none;
  }

  .testi-btn {
    width: 36px;
    height: 36px;
    font-size: 0.8rem;
  }

  /* --------- GET INVOLVED SECTION --------- */
  .get-involved {
    padding: 60px 0;
  }

  .get-involved__top {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
  }

  .get-involved__text h2 {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    text-align: center;
  }

  .get-involved__play {
    width: 100%;
  }

  .get-involved__play-btn {
    width: 60px;
    height: 60px;
    font-size: 1.2rem;
  }

  .get-involved__cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .get-involved__card {
    padding: 24px 20px;
  }

  .get-involved__card h3 {
    font-size: 1.1rem;
  }

  .get-involved__card p {
    font-size: 0.85rem;
  }

  /* --------- BOARD SECTION --------- */
  .board-alt {
    padding: 60px 0 80px;
    margin-top: 30px;
  }

  .board-alt__grid {
    gap: 40px 20px;
    flex-direction: column;
    align-items: center;
  }

  .board-alt-card {
    width: 100%;
    max-width: 200px;
  }

  .board-alt-card__img-wrap {
    width: 110px;
    height: 110px;
    margin-bottom: 16px;
  }

  .board-alt-card h3 {
    font-size: 1.05rem;
  }

  /* --------- IMPACT RING SECTION --------- */
  .impact-ring-section {
    padding: 40px 0 50px;
  }

  .impact-ring-wrapper {
    max-width: 280px;
    height: 280px;
  }

  .ring-item {
    width: 45px;
    height: 45px;
    margin: -22.5px 0 0 -22.5px;
    font-size: 1rem;
    border-width: 1px;
  }

  .ring-center {
    width: 170px;
  }

  .ring-center h3 {
    font-size: 1.1rem;
  }

  .ring-center p {
    font-size: 0.8rem;
  }

  /* --------- SECTION TITLES --------- */
  .section-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
  }

  .section-lead {
    font-size: 0.95rem;
  }

  .chip {
    padding: 5px 12px;
    font-size: 0.7rem;
  }

  /* --------- FOOTER --------- */
  /* .footer__top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 30px;
  }

  .footer__col {
    padding-right: 0;
  }

  .footer__col p {
    font-size: 0.85rem;
  }

  .footer__col-title {
    font-size: 0.8rem;
  }

  .footer__links li a {
    font-size: 0.85rem;
  }

  .footer__contact {
    gap: 14px;
  }

  .footer__contact li {
    gap: 10px;
    font-size: 0.8rem;
  }

  .footer__newsletter {
    flex-direction: column;
  }

  .footer__newsletter input,
  .footer__newsletter button {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.85rem;
  }

  .footer__bottom {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  } */

  /* --------- HEADER ADJUSTMENTS --------- */
  .header__brand-logo {
    gap: 10px;
  }

  .header__brand-logo-img img {
    height: 48px;
  }

  .header__brand-text {
    gap: 0;
  }

  .header__brand-name-mr {
    font-size: 0.95rem;
  }

  .header__brand-name-en {
    font-size: 0.85rem;
  }

  .header__brand-tagline {
    font-size: 0.6rem;
  }

  .header__brand-right {
    display: none;
  }

  .nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* ===============================================================
   SMALL SCREENS (481px - 768px)
   =============================================================== */
@media (min-width: 481px) and (max-width: 768px) {
  /* --------- HERO SECTION --------- */
  .hero {
    height: auto;
    min-height: 70vh;
    max-height: none;
  }

  .hero__content {
    padding: 60px 24px;
  }

  .hero__title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .hero__marathi {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: 24px;
  }

  .hero__actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  /* --------- NEWS BAR --------- */
  .news-bar {
    flex-direction: column;
  }

  .news-bar__marquee {
    padding: 12px;
  }

  .news-bar__track a {
    font-size: 0.9rem;
  }

  /* --------- WELCOME SECTION --------- */
  .welcome__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .welcome {
    padding: 80px 0;
  }

  /* --------- PROGRAMS SECTION --------- */
  .programs-alt__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .program-alt-card__icon {
    width: 240px;
    height: 180px;
  }

  /* --------- GALLERY SECTION --------- */
  .gallery-item {
    width: 300px;
  }

  @keyframes galleryScroll {
    from {
      transform: translateX(0);
    }
    25% {
      transform: translateX(calc(-300px * 1 - 20px * 1));
    }
    50% {
      transform: translateX(calc(-300px * 2 - 20px * 2));
    }
    75% {
      transform: translateX(calc(-300px * 3 - 20px * 3));
    }
    to {
      transform: translateX(calc(-300px * 5 - 20px * 5));
    }
  }

  /* --------- TESTIMONIALS SECTION --------- */
  .testimonials__inner {
    grid-template-columns: 1fr;
  }

  .testi-card {
    padding: 28px 24px;
  }

  /* --------- GET INVOLVED SECTION --------- */
  .get-involved__cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .get-involved__top {
    flex-direction: column;
    margin-bottom: 48px;
  }

  /* --------- BOARD SECTION --------- */
  .board-alt__grid {
    gap: 40px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .board-alt-card {
    width: 220px;
  }

  /* --------- FOOTER --------- */
  .footer__top {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

/* ===============================================================
   MEDIUM SCREENS (769px - 1024px)
   =============================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
  /* --------- HERO SECTION --------- */
  .hero {
    height: auto;
    min-height: 75vh;
  }

  .hero__content {
    padding: 70px 40px;
  }

  .hero__title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  /* --------- NEWS BAR --------- */
  .news-bar {
    flex-direction: row;
  }

  /* --------- WELCOME SECTION --------- */
  .welcome__grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }

  /* --------- PROGRAMS SECTION --------- */
  .programs-alt__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  /* --------- GALLERY SECTION --------- */
  .gallery-item {
    width: 320px;
  }

  /* --------- TESTIMONIALS SECTION --------- */
  .testimonials__inner {
    grid-template-columns: 320px 1fr;
    gap: 48px;
  }

  /* --------- GET INVOLVED SECTION --------- */
  .get-involved__cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }

  .get-involved__top {
    flex-direction: row;
    align-items: center;
    margin-bottom: 52px;
  }

  /* --------- BOARD SECTION --------- */
  .board-alt__grid {
    gap: 45px;
  }

  /* --------- FOOTER --------- */
  .footer__top {
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
  }
}

/* ===============================================================
   LANDSCAPE MODE ADJUSTMENTS
   =============================================================== */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    height: calc(100vh - 120px);
    min-height: 450px;
    padding-top: 72px;
  }

  .hero__content {
    padding: 40px 24px;
  }

  .hero__title {
    font-size: 1.8rem;
    margin-bottom: 10px;
  }

  .hero__actions {
    gap: 8px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.8rem;
  }

  .hero__wave {
    height: 30px;
  }

  .hero__controls {
    bottom: 20px;
  }
}

/* ===============================================================
   ACCESSIBILITY & TOUCH TARGETS
   =============================================================== */
@media (max-width: 768px) {
  /* Ensure touch targets are at least 44x44px */
  button,
  a,
  .btn,
  .nav__item > a,
  .story-tab-btn,
  .program-alt-card {
    min-height: 44px;
    min-width: 44px;
  }

  /* Improve button spacing for touch */
  .btn {
    padding: 14px 24px;
  }

  /* Disable hover states on touch devices */
  @media (hover: none) {
    button:hover,
    a:hover {
      background: initial;
      transform: none;
    }
  }
}

/* ===============================================================
   PRINT STYLES
   =============================================================== */
@media print {
  .header,
  .footer,
  .hero__controls,
  .news-bar,
  .hamburger,
  .scroll-top {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .hero {
    page-break-after: avoid;
  }

  section {
    page-break-inside: avoid;
  }
}

/* ===============================================================
   UTILITY CLASSES FOR RESPONSIVE CONTENT
   =============================================================== */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .show-mobile {
    display: block !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }

  .show-desktop {
    display: block !important;
  }
}

/* ===============================================================
   ORIENTATION-SPECIFIC ADJUSTMENTS
   =============================================================== */
@media (orientation: portrait) and (max-width: 480px) {
  .hero__content {
    padding: 45px 14px;
  }

  .section {
    padding: 50px 16px;
  }
}

@media (orientation: landscape) and (max-width: 768px) {
  section {
    padding: 40px 24px;
  }

  .welcome__grid,
  .testimonials__inner {
    gap: 32px;
  }
}