/* Responsive design rules */
@media (max-width: 1180px) {
  .container {
    width: min(1200px, calc(100% - 48px));
  }

  .nav-card-grid {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }

  .image-stage {
    min-height: auto;
    padding-top: 28px;
  }

  .maharaj-gallery {
    gap: 16px;
  }

  .senior-image {
    width: clamp(210px, 34vw, 310px);
  }

  .junior-image {
    width: clamp(170px, 24vw, 220px);
  }
}

@media (max-width: 780px) {
  .site-header {
    background: linear-gradient(180deg, var(--maroon) 0%, #7B211C 100%);
  }

  .nav-wrapper {
    min-height: auto;
    padding: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand {
    justify-content: center;
  }

  .main-nav {
    display: none;
  }

  .hero-section {
    padding-top: 24px;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .two-column-layout,
  .grid-two {
    grid-template-columns: 1fr;
  }

  .hero-image-panel {
    order: 1;
  }

  .hero-copy {
    order: 2;
  }

  .image-stage.image-stage-dual {
    min-height: auto;
    padding: 18px;
  }

  .maharaj-gallery {
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
  }

  .senior-image {
    width: min(230px, 34vw);
  }

  .junior-image {
    width: min(190px, 28vw);
  }

  .nameplate {
    width: 100%;
  }

  .nameplate-title {
    font-size: 1rem;
    line-height: 1.36;
  }

  .nav-card-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  .nav-card {
    min-height: 160px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-copy {
    text-align: center;
  }

  .event-eyebrow {
    justify-content: center;
  }

  .highlight-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .highlight-row .value {
    text-align: left;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-layout {
    gap: 30px;
  }

  .hero-image-panel {
    width: 100%;
  }

  .image-stage {
    min-height: auto;
    border-radius: 28px;
    padding: 14px;
  }

  .maharaj-image {
    width: min(370px, 96%);
    max-height: none;
  }

  .nameplate-title {
    font-size: 1.30rem;
    line-height: 1.4;
  }

  .hero-copy .hero-title {
    font-size: clamp(1.80rem, 8vw, 2.80rem);
    line-height: 1.18;
  }

  .hero-copy .location-block .location-name {
    font-size: 1.22rem;
  }

  .nav-card-title {
    font-size: 1.04rem;
  }

  .nav-card-subtitle {
    font-size: 0.72rem;
  }

  .nav-card,
  .content-panel,
  .highlight-card {
    min-height: auto;
  }

  /* =========================================================
   FIXED BOTTOM NAVIGATION
   ========================================================= */

  .mobile-bottom-nav {
    position: fixed !important;

    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    width: 100% !important;

    height: 64px;

    display: flex !important;

    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 6px 12px;

    box-sizing: border-box;

    background: #741c16;

    border-top: 1px solid #a64a2d;

    box-shadow:
      0 -4px 15px rgba(0, 0, 0, 0.18);

    z-index: 999999 !important;

    /* Very important */
    transform: none !important;

    visibility: visible !important;
    opacity: 1 !important;
  }


  /* =========================================================
   NAVIGATION LINK
   ========================================================= */

  .mobile-bottom-nav .bottom-nav-link {
    min-width: 82px;

    display: flex !important;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 3px;

    padding: 5px 12px;

    box-sizing: border-box;

    color: #fff8ec !important;

    background: transparent;

    text-decoration: none;

    border-radius: 8px;

    font-family:
      "Noto Sans Devanagari",
      "Noto Sans",
      sans-serif;

    transition:
      background 0.2s ease,
      color 0.2s ease;
  }


  /* =========================================================
   ICON
   ========================================================= */

  .mobile-bottom-nav .bottom-nav-icon {
    display: block;

    color: #fff8ec !important;

    font-size: 18px;

    line-height: 1;
  }


  /* =========================================================
   TEXT
   ========================================================= */

  .mobile-bottom-nav .bottom-nav-label {
    display: block;

    color: #fff8ec !important;

    font-size: 12px;

    font-weight: 700;

    line-height: 1.2;

    white-space: nowrap;
  }


  /* =========================================================
   ACTIVE
   ========================================================= */

  .mobile-bottom-nav .bottom-nav-link.active {
    color: #fff8ec !important;

    background: #9a3a24 !important;
  }

  .mobile-bottom-nav .bottom-nav-link.active .bottom-nav-icon,

  .mobile-bottom-nav .bottom-nav-link.active .bottom-nav-label {
    color: #fff8ec !important;
  }


  /* =========================================================
   HOVER
   ========================================================= */

  .mobile-bottom-nav .bottom-nav-link:hover {
    background: #8d2b1d;

    color: #fff8ec !important;
  }


  /* =========================================================
   DESKTOP
   ========================================================= */

  @media (min-width: 901px) {

    .mobile-bottom-nav {
      height: 62px;

      gap: 24px;

      padding: 6px 24px;
    }

    .mobile-bottom-nav .bottom-nav-link {
      min-width: 90px;

      padding: 6px 16px;
    }

    .mobile-bottom-nav .bottom-nav-icon {
      font-size: 19px;
    }

    .mobile-bottom-nav .bottom-nav-label {
      font-size: 13px;
    }

  }


  /* =========================================================
   MOBILE
   ========================================================= */

  @media (max-width: 600px) {

    .mobile-bottom-nav {
      height: 64px;

      gap: 2px;

      padding:
        5px 3px calc(5px + env(safe-area-inset-bottom));
    }

    .mobile-bottom-nav .bottom-nav-link {
      min-width: 0;

      flex: 1;

      padding: 5px 2px;
    }

    .mobile-bottom-nav .bottom-nav-icon {
      font-size: 17px;
    }

    .mobile-bottom-nav .bottom-nav-label {
      font-size: 10px;
    }

  }


  /* =========================================================
   DON'T HIDE PAGE CONTENT BEHIND NAV
   ========================================================= */

  body {
    padding-bottom: 74px !important;
  }

  @media (max-width: 600px) {

    body {
      padding-bottom: 78px !important;
    }

  }

  .bottom-nav-link {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    color: rgba(255, 255, 255, 0.90);
    font-size: 0.70rem;
    font-weight: 700;
    border-radius: 12px;
  }

  .bottom-nav-link.active {
    background: var(--saffron);
    color: var(--maroon-dark);
  }

  .bottom-nav-icon {
    line-height: 1;
    font-size: 1.20rem;
  }

  .bottom-nav-label {
    font-family: 'Noto Sans Devanagari', serif;
    line-height: 1.1;
    letter-spacing: 0.02em;
  }

  body {
    padding-bottom: 84px;
  }

  .site-main {
    min-height: auto;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(100%, calc(100% - 28px));
  }

  .hero-layout {
    gap: 24px;
  }

  .hero-copy {
    padding: 0;
  }

  .image-stage {
    border-radius: 24px;
  }

  .nameplate-title {
    font-size: 1.24rem;
  }

  .highlight-card {
    padding: 18px;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .section-heading.centered {
    margin-bottom: 14px;
  }

  .nav-card-grid {
    gap: 14px;
  }

  .nav-card {
    padding: 22px 14px;
  }

  .timeline-list {
    gap: 12px;
  }

  .timeline-item {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}