/* ============================================================
   BGCA NAVBAR — mobile + iPad: always above hero carousel
   Breakpoint 1024px covers phones and iPads (incl. landscape)
   ============================================================ */
@media (max-width: 1024px) {
  header.header,
  .header {
    position: sticky !important;
    top: 0 !important;
    z-index: 10050 !important;
    background: rgba(255,255,255,0.98) !important;
    isolation: isolate !important;
    overflow: visible !important;
  }

  .header .container.nav,
  .header .nav,
  .header .container {
    position: relative !important;
    overflow: visible !important;
    z-index: 10051 !important;
  }

  .nav-row-top {
    position: relative !important;
    z-index: 10052 !important;
    overflow: visible !important;
  }

  /* Hamburger always visible on tablet/phone */
  #menu,
  button.menu,
  .menu,
  .nav-row-top .menu,
  .nav-row-top #menu {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 10070 !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    min-height: 44px !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  /* Closed menu panel hidden; open panel fixed above everything */
  .navlinks,
  #navlinks,
  header.header .navlinks,
  .header .navlinks {
    display: none !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    top: 0 !important;
    width: 100% !important;
    max-height: min(75vh, 560px) !important;
    margin: 0 !important;
    padding: 12px 4% 18px !important;
    padding-top: calc(12px + env(safe-area-inset-top, 0px)) !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 6px !important;
    background: #ffffff !important;
    border-bottom: 3px solid #061b9a !important;
    box-shadow: 0 18px 40px rgba(6,27,154,0.22) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 10060 !important;
  }

  .navlinks.open,
  #navlinks.open,
  header.header .navlinks.open,
  .header .navlinks.open {
    display: flex !important;
  }

  .navlinks a,
  #navlinks a {
    display: flex !important;
    width: 100% !important;
    min-height: 48px !important;
    align-items: center !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    
    text-decoration: none !important;
    border-radius: 10px !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
    
  }
  .navlinks a:active,
  .navlinks a:hover {
    background: #e8ecff !important;
  }

  /* Hero must stay UNDER navbar */
  .hero,
  .hero-full,
  .hero-carousel,
  .hero-full .hero-carousel {
    position: relative !important;
    z-index: 1 !important;
    transform: none !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .slide-overlay { z-index: 2 !important; }
  .carousel-btn { z-index: 3 !important; }
  .carousel-dots,
  .hero-progress { z-index: 4 !important; }

  /* Flash banner stays below sticky header when scrolling */
  .flash-banner {
    position: relative !important;
    z-index: 10040 !important;
  }
}

/* Desktop: hide hamburger (unchanged behaviour) */
@media (min-width: 1025px) {
  #menu,
  button.menu,
  .menu {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .navlinks,
  #navlinks {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    max-height: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-bottom: 0 !important;
    overflow: visible !important;
  }
  .navlinks a,
  #navlinks a {
    width: auto !important;
    min-height: 0 !important;
    
  }
}


/* Ensure mobile menu always above page sections */
header.header, .header { z-index: 10050 !important; }
@media (max-width: 900px) {
  #navlinks.open, .navlinks.open {
    position: fixed !important;
    inset: 0 !important;
    z-index: 10060 !important;
    background: #fff !important;
  }
  #menu, button.menu, .menu { z-index: 10070 !important; }
}

/* Desktop: hide ☰ — Mobile: show ☰ */
@media (min-width: 901px) {
  #menu, button.menu, .menu, .nav-row-top .menu, .nav-row-top #menu {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  #navlinks, .navlinks, header.header .navlinks, .header .navlinks {
    display: flex !important;
    position: static !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
  }
}
@media (max-width: 900px) {
  #menu, button.menu, .menu, .nav-row-top .menu, .nav-row-top #menu {
    display: inline-flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    opacity: 1 !important;
  }
}

/* =========================================================
   BGCA Mobile Compatibility Fix + Brand name (2026-09-11c)
   ========================================================= */

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, video, iframe, svg {
  max-width: 100%;
  height: auto;
}

header.header,
.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10050 !important;
  width: 100% !important;
  background: rgba(255,255,255,.98) !important;
}
.header .nav,
.header .container.nav {
  position: relative !important;
}

@media (max-width: 900px) {
  .header .container.nav,
  .header .nav,
  .header .container {
    width: min(1160px, 94%) !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .nav-row-top {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    grid-template-rows: auto auto !important;
    gap: 6px 8px !important;
    min-height: 0 !important;
    align-items: center !important;
    padding: 6px 0 !important;
  }

  .nav-row-top .brand {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    height: auto !important;
    padding-right: 4px !important;
  }

  .nav-row-top .brand-logo-frame,
  .nav-row-top .brand-logo {
    width: 34px !important;
    height: 34px !important;
    flex: 0 0 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
  }

  .nav-row-top .brand-name {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }

  .nav-row-top .brand-name strong {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    font-weight: 900 !important;
    letter-spacing: -0.4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
  }

  .nav-row-top .brand-name small,
  .nav-row-top .brand-name .brand-tagline {
    display: block !important;
    font-size: 7px !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    max-width: 100% !important;
  }

  .nav-row-top .menu,
  .nav-row-top #menu {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 42px !important;
    min-height: 42px !important;
    z-index: 10060 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    border: 0 !important;
    background: #eef2ff !important;
    color: #061b9a !important;
    border-radius: 10px !important;
    font-size: 22px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
  }

  .nav-row-top .site-search {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: none !important;
    height: 40px !important;
  }

  .nav-row-top .bgca-language {
    display: none !important;
  }

  .navlinks,
  #navlinks,
  header.header .navlinks,
  .header .navlinks {
    display: none !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    top: 100% !important;
    width: 100% !important;
    max-height: min(70vh, 520px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 10px 4% 16px !important;
    margin: 0 !important;
    background: #fff !important;
    border-top: 1px solid #e9edfb !important;
    border-bottom: 3px solid #061b9a !important;
    box-shadow: 0 16px 32px rgba(6,27,154,.16) !important;
    z-index: 10055 !important;
  }

  .navlinks.open,
  #navlinks.open,
  header.header .navlinks.open,
  .header .navlinks.open {
    display: flex !important;
  }

  .navlinks a,
  #navlinks a {
    display: flex !important;
    width: 100% !important;
    min-height: 46px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
  }

  .container,
  .media-container,
  .home-wrap {
    width: min(1200px, calc(100% - 24px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .hero-full .hero-carousel,
  .hero-carousel {
    width: 100% !important;
    max-width: 100vw !important;
    margin-left: 0 !important;
    transform: none !important;
    min-height: 280px !important;
    height: min(56vh, 440px) !important;
    overflow: hidden !important;
  }
  .slide-overlay {
    bottom: 22% !important;
    padding-bottom: 8px !important;
    overflow: visible !important;
  }
  .hero-title.no-wrap {
    white-space: normal !important;
    overflow: visible !important;
  }

  .pathbar .container {
    overflow-x: auto !important;
    white-space: nowrap !important;
  }

  .media-program-grid,
  .bgca-glimpses,
  .home-grid-3,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .navlinks a,
  #navlinks a {
    font-size: 15px !important;
    min-height: 48px !important;
  }
  .nav-row-top .brand-logo-frame,
  .nav-row-top .brand-logo {
    width: 30px !important;
    height: 30px !important;
    flex: 0 0 30px !important;
  }
  .nav-row-top .brand-name strong {
    font-size: 10px !important;
    letter-spacing: -0.35px !important;
  }
  .media-filters-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 400px) {
  .nav-row-top .brand-logo-frame,
  .nav-row-top .brand-logo {
    width: 28px !important;
    height: 28px !important;
    flex: 0 0 28px !important;
  }
  .nav-row-top .brand-name strong {
    font-size: 9px !important;
    letter-spacing: -0.3px !important;
  }
  .nav-row-top .brand-name small,
  .nav-row-top .brand-name .brand-tagline {
    font-size: 6.5px !important;
  }
}

@media (max-width: 340px) {
  .nav-row-top .brand-name strong {
    font-size: 8px !important;
  }
}

body.bgca-nav-open {
  overflow: hidden !important;
  /* do not set touch-action:none — it blocks the open menu links on some phones */
}

/* =========================================================
   Mobile footer — refined layout (compact form, balanced cols)
   ========================================================= */
@media (max-width: 760px) {
  /* Show full heritage banner (was max-height:64px which clipped ~40% on phones) */
  .footer-integrated-art {
    max-height: none !important;
    overflow: hidden !important;
    line-height: 0 !important;
  }
  .footer-integrated-viewport {
    width: 100% !important;
    overflow: hidden !important;
  }
  .footer-integrated-image {
    width: max(900px, 180vw) !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    display: block !important;
  }
  .footer-integrated-track {
    animation: bgcaIntegratedRTL 36s linear infinite !important;
    -webkit-animation: bgcaIntegratedRTL 36s linear infinite !important;
  }

  .site-footer .footer-main {
    padding: 22px 0 18px !important;
  }

  .site-footer .footer-main .container,
  .site-footer .footer-newsletter .container,
  .site-footer .footer-bottom .container {
    width: min(1160px, calc(100% - 24px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Brand full width */
  .site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px 12px !important;
    align-items: start !important;
  }

  .site-footer .footer-about {
    grid-column: 1 / -1 !important;
    text-align: center !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    margin-bottom: 4px !important;
  }

  .site-footer .footer-brand {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 8px !important;
  }

  .site-footer .footer-logo-wrap {
    width: 52px !important;
    height: 52px !important;
    flex: 0 0 52px !important;
  }

  .site-footer .footer-brand-text {
    text-align: center !important;
  }

  .site-footer .footer-brand-text strong {
    font-size: 14px !important;
    line-height: 1.25 !important;
  }

  .site-footer .footer-brand-text small {
    font-size: 10px !important;
  }

  .site-footer .footer-intro {
    font-size: 12px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    max-width: 36em !important;
    margin: 0 auto 12px !important;
  }

  .site-footer .social-links {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .site-footer .social-links a {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
  }

  /* ABOUT / PROGRAMMES / EXPLORE — equal 3 columns, neat lists */
  .site-footer .footer-col {
    grid-column: auto !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  .site-footer .footer-col h4 {
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
    margin: 0 0 10px !important;
    text-align: center !important;
  }

  .site-footer .footer-col a {
    display: block !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    text-align: center !important;
  }

  /* CONNECT full width, compact */
  .site-footer .footer-connect {
    grid-column: 1 / -1 !important;
    margin-top: 6px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
    text-align: center !important;
  }

  .site-footer .footer-connect h4 {
    text-align: center !important;
    margin: 0 0 10px !important;
    font-size: 11px !important;
  }

  .site-footer .footer-connect .contact-item {
    justify-content: center !important;
    margin: 6px 0 !important;
    gap: 8px !important;
  }

  .site-footer .footer-connect .contact-details {
    align-items: center !important;
  }

  .site-footer .footer-connect .contact-details a,
  .site-footer .footer-connect .office-line {
    font-size: 12.5px !important;
    text-align: center !important;
  }

  /* Newsletter — compact height */
  .site-footer .footer-newsletter {
    padding: 14px 0 !important;
  }

  .site-footer .newsletter-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 0 !important;
  }

  .site-footer .newsletter-label {
    font-size: 9px !important;
  }

  .site-footer .newsletter-copy h3 {
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin: 2px 0 0 !important;
  }

  .site-footer .newsletter-form {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .site-footer .newsletter-form input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    line-height: 36px !important;
    box-sizing: border-box !important;
  }

  .site-footer .newsletter-form button {
    flex: 0 0 auto !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 12px !important;
    font-size: 12px !important;
    line-height: 36px !important;
    box-sizing: border-box !important;
  }

  /* Bottom bar */
  .site-footer .footer-bottom {
    padding: 12px 0 6px !important;
  }

  .site-footer .footer-bottom-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 4px 0 !important;
  }

  .site-footer .footer-copy {
    font-size: 11px !important;
    text-align: center !important;
    margin: 0 !important;
  }

  .site-footer .footer-legal {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 8px 14px !important;
  }

  .site-footer .footer-legal a {
    font-size: 11.5px !important;
    margin: 0 !important;
  }

  .site-footer .footer-bottom > div {
    width: 100% !important;
    text-align: center !important;
    padding: 2px 12px 10px !important;
  }

  .site-footer .footer-bottom > div strong {
    font-size: 12px !important;
    color: #c5d0e8 !important;
  }

  .site-footer .footer-bottom > div a {
    color: #ffd900 !important;
  }
}

/* Very small phones: stack link columns */
@media (max-width: 400px) {
  .site-footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .site-footer .footer-col {
    text-align: left !important;
    padding: 0 4px !important;
  }

  .site-footer .footer-col h4 {
    text-align: left !important;
    border-bottom: 1px solid rgba(255,255,255,.1) !important;
    padding-bottom: 6px !important;
  }

  .site-footer .footer-col a {
    text-align: left !important;
  }

  .site-footer .newsletter-form {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .site-footer .newsletter-form input,
  .site-footer .newsletter-form button {
    width: 100% !important;
  }
}


/* ===== Panchsheel navbar colours — ALL devices ===== */
.navlinks a,
#navlinks a,
.bgca-navlinks a {
  border: 0 !important;
  border-radius: 8px !important;
  font-weight: 900 !important;
  transition: filter .15s, transform .15s;
}
.navlinks a:nth-child(1), #navlinks a:nth-child(1), .bgca-navlinks a:nth-child(1) { background: #ffd900 !important; color: #07144f !important; }
.navlinks a:nth-child(2), #navlinks a:nth-child(2), .bgca-navlinks a:nth-child(2) { background: #ed1c24 !important; color: #fff !important; }
.navlinks a:nth-child(3), #navlinks a:nth-child(3), .bgca-navlinks a:nth-child(3) { background: #f59e0b !important; color: #07144f !important; }
.navlinks a:nth-child(4), #navlinks a:nth-child(4), .bgca-navlinks a:nth-child(4) { background: #138a4b !important; color: #fff !important; }
.navlinks a:nth-child(5), #navlinks a:nth-child(5), .bgca-navlinks a:nth-child(5) { background: #ffd900 !important; color: #07144f !important; }
.navlinks a:nth-child(6), #navlinks a:nth-child(6), .bgca-navlinks a:nth-child(6) { background: #061b9a !important; color: #fff !important; }
.navlinks a:nth-child(7), #navlinks a:nth-child(7), .bgca-navlinks a:nth-child(7) { background: #f59e0b !important; color: #07144f !important; }
.navlinks a:nth-child(8), #navlinks a:nth-child(8), .bgca-navlinks a:nth-child(8) { background: #138a4b !important; color: #fff !important; }
.navlinks a:nth-child(9), #navlinks a:nth-child(9), .bgca-navlinks a:nth-child(9) { background: #061b9a !important; color: #fff !important; }
.navlinks a:nth-child(10), #navlinks a:nth-child(10), .bgca-navlinks a:nth-child(10) { background: #ed1c24 !important; color: #fff !important; }
.navlinks a:hover, .navlinks a.active,
#navlinks a:hover, #navlinks a.active,
.bgca-navlinks a:hover, .bgca-navlinks a.active {
  filter: brightness(0.94);
  transform: translateY(-1px);
  color: inherit !important;
}
/* Mobile sheet menu (Oppo / Android) */
#bgca-mobile-sheet a:nth-child(2) { background: #ffd900 !important; color: #07144f !important; }
#bgca-mobile-sheet a:nth-child(3) { background: #ed1c24 !important; color: #fff !important; }
#bgca-mobile-sheet a:nth-child(4) { background: #f59e0b !important; color: #07144f !important; }
#bgca-mobile-sheet a:nth-child(5) { background: #138a4b !important; color: #fff !important; }
#bgca-mobile-sheet a:nth-child(6) { background: #ffd900 !important; color: #07144f !important; }
#bgca-mobile-sheet a:nth-child(7) { background: #061b9a !important; color: #fff !important; }
#bgca-mobile-sheet a:nth-child(8) { background: #f59e0b !important; color: #07144f !important; }
#bgca-mobile-sheet a:nth-child(9) { background: #138a4b !important; color: #fff !important; }
#bgca-mobile-sheet a:nth-child(10) { background: #061b9a !important; color: #fff !important; }
#bgca-mobile-sheet a:nth-child(11) { background: #ed1c24 !important; color: #fff !important; }


/* =========================================================
   iPad / tablet footer running banners
   ========================================================= */
@media (min-width: 761px) and (max-width: 1024px) {
  .footer-integrated-art {
    max-height: none !important;
    overflow: hidden !important;
  }
  .footer-integrated-image {
    width: max(1100px, 100vw) !important;
    height: auto !important;
  }
  .footer-art-strip {
    overflow: hidden !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .footer-art-track {
    animation: footerArtMarquee 40s linear infinite !important;
    -webkit-animation: footerArtMarquee 40s linear infinite !important;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
}

/* Phones: keep bottom photo strip fully visible + animating */
@media (max-width: 760px) {
  .footer-art-strip {
    overflow: hidden !important;
    padding: 10px 0 8px !important;
  }
  .footer-art-track {
    animation: footerArtMarquee 38s linear infinite !important;
    -webkit-animation: footerArtMarquee 38s linear infinite !important;
    will-change: transform;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  .footer-art-item img {
    height: 72px !important;
    object-fit: cover !important;
  }
}

/* HERO TEXT FIX v2 mobile */
@media (max-width: 1024px) {
  .slide-overlay {
    bottom: 20% !important;
    overflow: visible !important;
    max-height: none !important;
  }
  .hero-title,
  .hero-title.no-wrap {
    white-space: normal !important;
    overflow: visible !important;
  }
  .hero-description {
    white-space: normal !important;
    overflow: visible !important;
  }
  .hero-slide {
    overflow: visible !important;
  }
}


/* =========================================================
   HERO TEXT — SHIFT UPWARD (final)
   ========================================================= */
.slide-overlay,
.hero-full .slide-overlay {
  bottom: auto !important;
  top: auto !important;
  /* push block up from bottom edge */
  bottom: 18% !important;
  left: 5% !important;
  right: 5% !important;
  max-width: min(760px, 90%) !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
  overflow: visible !important;
  z-index: 5 !important;
}

@media (max-width: 900px) {
  .slide-overlay,
  .hero-full .slide-overlay {
    bottom: 20% !important;
  }
}

@media (max-width: 600px) {
  .slide-overlay,
  .hero-full .slide-overlay {
    bottom: 22% !important;
    left: 4% !important;
    right: 4% !important;
  }
}
