/* ====== Header & Footer: identical layout to main-menu ====== */
body {
  margin: 0;
  font-family: Arial, Tahoma, Geneva, Verdana, sans-serif;
  background-color: rgba(3, 3, 3, 0.9);
  padding-top: 60px;            /* room for fixed header */
  overflow-x: hidden;
  color: #b0b0b0;
}
html, body { height: 100%; display: flex; flex-direction: column; }
header, footer { width: 100%; box-sizing: border-box; }

header {
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 2rem;
  background-color: #1e1e1e; border-bottom: 1px solid #333; z-index: 1000; gap: 1rem;
}
header h1 {
  margin: 0; font-size: 21px; font-weight: 100; color: #00B8FF;
  flex: 1; text-align: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2;
}
.logo { height: 40px; width: auto; flex-shrink: 0; opacity: 42%; transform: translateY(3px); }
.logo:hover { filter: brightness(2); }
.hamburger { font-size: 2rem; background: none; border: none; color: #ccc; cursor: pointer; flex-shrink: 0; transform: translateY(-3px); }

nav {
  position: absolute; top: 100%; right: 2rem; width: 200px;
  overflow: hidden; max-height: 0; display: flex; flex-direction: column;
  background-color: rgba(30,30,30,0.9); border-radius: 8px;
  transition: max-height .4s ease-in-out, padding .3s ease-in-out, opacity .3s ease-in-out;
  padding: 0; margin: 0; box-shadow: 0 4px 10px rgba(0,0,0,.6); z-index: 1500; opacity: 0;
}
nav.show { padding: 1rem; opacity: 1; }
nav a { color: #ccc; text-decoration: none; margin: .4rem 0; text-align: right; padding-right: .5rem; }
nav a:hover { color: #00B8FF; }

footer {
  text-align: center; padding: 1rem; background-color: #1a1a1a;
  border-top: 1px solid #333; font-size: .8rem; color: #828181;
}

/* ====== Page wrapper ====== */
main.main-menu-page {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

/* ====== Intro text ====== */
.intro { text-align: center; color: #828181; line-height: 1.3rem;}


/* India page card grid */
.card-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 2rem;
  justify-content: center;   /* centers 3 fixed-width columns */
  align-items: start;
  padding: 0 2rem;
}

@media (max-width: 980px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}


/* ====== Card ====== */
.card {
  display: block;
  background: #222;
  border-radius: 10px;
  padding: .75rem;
  text-align: center;
  margin: .75rem 0 0;
  font-size: 1rem;
  line-height: .5;
  color: #0084AA;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.card:hover {
  transform: scale(1.05);
  background: #333;
  color: #00B8FF;
}
.card img {
  width: 100%;
  display: block;
  border-radius: 8px;
}
.card .note {
  margin: 0 0;
  font-size: 1rem;
  color: #98a2ad;
  min-height: 1em;
  font-variant-caps: all-small-caps;
}


/* kill underlines on block-link cards (Chrome) */
.card,
.card:link,
.card:visited,
.card:hover,
.card:active {
  text-decoration: none;
}

/* belt & braces for inner text nodes */
.card .title,
.card .note {
  text-decoration: none;
}


/* ====== Modal overlay video ====== */
body.no-scroll { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 2000;                 /* above header/nav (1000/1500) */
  display: grid;
  place-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);

  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.modal.show { opacity: 1; visibility: visible; }

.modal-content {
  position: relative;
  width: min(90vw, 800px);
}
.modal-content video {
  width: 100%;
  border-radius: 8px;
  display: block;
  outline: none;
}

/* activa / deactivate Close button (top-right) */
.modal-close { display: none !important; }

/* Close button (top-right) */
.modal-close {
  position: absolute;
  top: -10px; right: -10px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 22px;
  line-height: 34px;
  text-align: center;
  cursor: pointer;
}


.modal-close:hover { background: rgba(0,0,0,0.8); }


/* Mobile: fully hide the page behind the modal */
@media (max-width: 768px) {
  .modal {
    /* kill transparency so the page isn't visible */
    background-color: rgba(0,0,0,1) !important;
    backdrop-filter: none !important;       /* remove blur on phones */
    /* optional: if you had -webkit-backdrop-filter, drop that too */
    -webkit-backdrop-filter: none !important;
  }

  /* keep the video nicely contained */
  .modal .modal-content {
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
  }
}

/* Make sure the page can't scroll behind the modal on iOS */
body.no-scroll {
  overflow: hidden;
  height: 100dvh;
  overscroll-behavior: contain;
}


