/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 15px 0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0;
  padding-bottom: 0;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Transparent for homepage */
body.home .site-header {
  background: transparent;
  box-shadow: none;
}

/* Solid white for all other pages */
body:not(.home) .site-header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Brand (logo + name) */
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.logo {
  height: 42px;
  width: auto;
  transition: filter 0.3s ease;
}

/* White logo on homepage header */
body.home .logo {
  filter: brightness(0) invert(1);
}

/* Normal colored logo + black text on white header */
body:not(.home) .brand {
  color: #111;
}
body:not(.home) .logo {
  filter: brightness(1) invert(0);
}
main {
  padding-top: 60px; /* adjust based on header height */
}

/* Navigation */
.menu a {
  color: #fff;
  margin-left: 24px;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #ffd700;
  transition: width 0.3s ease;
}

.menu a:hover::after,
.menu a.active::after {
  width: 100%;
}

.menu a.active {
  color: #ffd700;
}

/* Dark text for inner pages */
body:not(.home) .menu a {
  color: #222;
}
body:not(.home) .menu a:hover,
body:not(.home) .menu a.active {
  color: #c59f00;
}

/* Header layout */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 6px;
  cursor: pointer;
}

.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
}

body:not(.home) .menu-toggle .bar {
  background: #111;
}

.mobile-drawer,
.drawer-backdrop {
  display: none;
}

/* ========== HERO ========== */
.hero.with-bg {
  position: relative;
  height: 82vh;
  background-image: url('../img/HerobannerHomepage.png');
  background-size: cover; /* fills full width */
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  margin-top: 0 !important;
  padding-top: 0 !important;
}


@media (max-width: 768px) {
  .hero.with-bg {
    height: 64vh;
    margin-top: 60px;
    background-size: cover;
    background-position: center top;
  }
}

.hero.with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 0;
}

.hero-box {
  position: relative;
  z-index: 1;
  max-width: 800px;
  background: rgba(0, 0, 0, 0.35);
  padding: 30px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
}

.hero-box h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-box p {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* Desktop only: keep dialog lower (below faces) */
@media (min-width: 901px) {
  .hero.with-bg {
    align-items: flex-end;
    padding-bottom: 42px;
  }

  .hero.with-bg::before {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06) 0%,
      rgba(0, 0, 0, 0.18) 55%,
      rgba(0, 0, 0, 0.22) 100%
    );
  }
}

/* ===== HERO LOGO OVERLAY ===== */
.hero-logo-overlay {
  position: absolute;
  top: 10%;
  right: 6%; /* moved to the right side */
  width: 160px;
  height: auto;
  opacity: 0.85;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

/* Responsive adjustment */
@media (max-width: 768px) {
  .hero-logo-overlay {
    top: 5%;
    right: 50%;
    transform: translateX(50%);
    width: 120px;
    opacity: 0.8;
  }
}


.cta-row {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* ---------- Eligibility CTA ---------- */
.eligibility-cta {
  background: linear-gradient(90deg, #d4af37, #ffda44);
  color: #111;
  text-align: center;
  padding: 25px 10px;
  font-size: 1.2rem;
  font-weight: 500;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.eligibility-cta p {
  margin: 0;
  line-height: 1.6;
}

.eligibility-btn {
  display: inline-block;
  margin-left: 10px;
  background: #111;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.eligibility-btn:hover {
  background: transparent;
  color: #111;
  border: 2px solid #111;
  transform: translateY(-2px);
}


.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
  font-weight: 600;
}

.btn.primary {
  background: #ffd700;
  color: #000;
}

.btn.secondary {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
}

.btn.primary:hover {
  background: #ffcc00;
}

/* ========== SECTIONS ========== */
.section {
  padding: 30px 0; /* reduced from 80px to 50px */
}

.section.light {
  padding: 60px 0; /* optional, for lighter sections */
}

h2 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 40px;
}

.grid.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.card h3 {
  margin-bottom: 10px;
}

.card .link {
  display: inline-block;
  margin-top: 10px;
  color: #0078ff;
  text-decoration: none;
  font-weight: 500;
}

/* ========== ABOUT PAGE ========== */
.about-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  text-align: center;
}

.logo-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 350px;
  height: 350px;
  background: url('../img/meru-aviation.jpeg') no-repeat center center;
  background-size: contain;
  opacity: 0.07;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
}

.about-hero h1,
.about-hero p {
  position: relative;
  z-index: 1;
}

.about-intro {
  padding-bottom: 28px;
}

.about-wrap {
  position: relative;
  z-index: 1;
}

.about-kicker {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.about-wrap h1 {
  text-align: left;
  margin-bottom: 14px;
}

.about-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #202020;
  margin-bottom: 18px;
  max-width: 68ch;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.about-stat {
  background: linear-gradient(180deg, #fff, #f7f7f7);
  border: 1px solid #ececec;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.about-stat strong {
  display: block;
  font-size: 1rem;
  color: #111;
  margin-bottom: 2px;
}

.about-stat span {
  display: block;
  font-size: 0.86rem;
  color: #5a5a5a;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.about-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.06);
}

.about-card h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
  color: #111;
}

.about-card p {
  color: #333;
  line-height: 1.75;
}

/* ========== QR CARDS (ABOUT & CONTACT) ========== */
.qr-section {
  margin-top: 40px;
  gap: 40px;
  align-items: flex-start;
}

.qr-card {
  background: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.qr-card h3 {
  margin-bottom: 10px;
  color: #111;
}

.qr-card p {
  margin-bottom: 15px;
  color: #444;
}

.qr-image {
  width: 260px;
  height: auto;
  border-radius: 6px;
  border: 1px solid #ddd;
  transition: transform 0.3s ease;
}

.qr-image:hover {
  transform: scale(1.05);
}

/* ========== CONTACT PAGE SECTION ========== */
.contact-section {
  background: linear-gradient(to right, #fffef5, #fffdf0);
  border-top: 2px solid #e8d06b;
  padding: 80px 0;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 50px;
}

.contact-info {
  flex: 1 1 420px;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 15px;
  position: relative;
}

.contact-info h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #d4af37;
  margin-top: 8px;
}

.contact-info p {
  font-size: 1.05rem;
  color: #444;
  margin-bottom: 15px;
}

.contact-details {
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.icon {
  font-size: 1.2rem;
  margin-right: 8px;
}

.contact-link {
  color: #111;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #c59f00;
}

/* WhatsApp Button */
.whatsapp-btn {
  display: inline-block;
  background: #25d366;
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}

.whatsapp-btn:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
}

/* QR Right Side */
.contact-qr {
  flex: 0 0 280px;
  text-align: center;
}

.qr-frame {
  background: #fff;
  padding: 15px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qr-frame:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.qr-caption {
  margin-top: 15px;
  font-size: 1rem;
  font-weight: 500;
  color: #555;
}

/* ========== FOOTER ========== */
.site-footer {
  text-align: center;
  padding: 30px 0;
  background: #111;
  color: #ccc;
}

/* ---------- Gallery Section ---------- */
.gallery-section {
  background: #fafafa;
  text-align: center;
  padding: 50px 0;
}

.gallery-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.gallery-subtext {
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
}

.gallery-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 8px;
}

.gallery-grid::-webkit-scrollbar {
  height: 8px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: #c8c8c8;
  border-radius: 999px;
}

.gallery-item {
  flex: 0 0 clamp(250px, 28vw, 360px);
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 3 / 4;
  background: #fff;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item.wide {
  aspect-ratio: 16 / 9;
}

.gallery-item.wide img {
  object-fit: contain;
  background: #fff;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ---------- Testimonials Section ---------- */
.testimonials-section {
  background: #f6f7fa;
  padding: 50px 0;
}

/* ---------- Why Us Highlight ---------- */
.why-us-section {
  padding-top: 26px;
  padding-bottom: 18px;
  background: #f6f7fa;
}

.why-us-box {
  background: linear-gradient(135deg, #ffd84d 0%, #e2bf3f 45%, #caa52c 100%);
  border-radius: 14px;
  padding: 22px 22px 20px;
  box-shadow: 0 10px 28px rgba(156, 123, 8, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.why-us-box h2 {
  margin-bottom: 14px;
  color: #151515;
  text-align: left;
}

.why-us-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.why-us-points span {
  background: rgba(17, 17, 17, 0.9);
  color: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.why-us-box p {
  margin: 0;
  color: #181818;
  font-size: 1.03rem;
  font-weight: 600;
}

.testimonial-grid {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 6px;
}

.testimonial-grid::-webkit-scrollbar {
  height: 8px;
}

.testimonial-grid::-webkit-scrollbar-thumb {
  background: #c8c8c8;
  border-radius: 999px;
}

.testimonial-hint {
  font-size: 0.95rem;
  color: #7a7a7a;
  text-align: right;
  margin: -6px 0 12px;
}

.testimonial-card {
  flex: 0 0 min(46%, 560px);
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e7e7e7;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.testimonial-media {
  position: relative;
  background: #f2f2f2;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.testimonial-media::before {
  content: "";
  position: absolute;
  inset: -14px;
  background-image: var(--media-bg, url('../img/meru-aviation.jpeg'));
  background-size: cover;
  background-position: center;
  filter: blur(14px);
  transform: scale(1.12);
  opacity: 0.9;
}

.testimonial-media img,
.testimonial-media video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

.testimonial-media.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}

.testimonial-media.video video {
  object-fit: contain;
  background: #111;
}

.testimonial-media.video {
  aspect-ratio: 3 / 4;
}

.testimonial-media.photo {
  aspect-ratio: 3 / 4;
}

.testimonial-body {
  padding: 16px 18px 20px;
}

.testimonial-body p {
  color: #333;
  margin-bottom: 10px;
}

.testimonial-body h4 {
  margin: 0;
  font-size: 1rem;
  color: #111;
}

/* ======= POPULAR COURSES SMALL LOGO ======= */
.popular-courses-section .courses-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 35px;
}

.popular-courses-section .courses-logo-small {
  width: 120px; /* QR-code-like size */
  height: auto;
  opacity: 0.95;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.popular-courses-section .card {
  text-align: left;
}

.popular-courses-section .card p {
  margin-bottom: 10px;
}

.popular-courses-section .courses-logo-small:hover {
  transform: scale(1.05);
  opacity: 1;
}

.popular-courses-section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111;
}

/* Optional: for smaller screens */
@media (max-width: 768px) {
  .popular-courses-section .courses-header {
    flex-direction: column;
    gap: 10px;
  }

  .popular-courses-section .courses-logo-small {
    width: 100px;
  }

  .popular-courses-section h2 {
    text-align: center;
  }
}

/* ========== MOBILE OPTIMIZATION ========== */
@media (max-width: 900px) {
  .container {
    width: 92%;
  }

  .site-header {
    padding: 10px 0;
  }

  body.home .site-header {
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
  }

  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .brand {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 14px;
    gap: 6px;
    margin-bottom: 0;
    white-space: nowrap;
    text-align: left;
  }

  .logo {
    height: 26px;
  }

  .menu {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 130;
  }

  .mobile-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 78vw);
    height: 100vh;
    background: #fff;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.2);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 140;
    padding: 18px 18px 22px;
  }

  .mobile-drawer nav {
    display: grid;
    gap: 6px;
    margin-top: 18px;
  }

  .mobile-drawer a {
    display: block;
    padding: 12px 8px;
    text-decoration: none;
    color: #111;
    font-weight: 600;
    border-bottom: 1px solid #eee;
  }

  .drawer-close {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #333;
  }

  .drawer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

  .drawer-title {
    font-weight: 700;
    color: #111;
  }

  body.drawer-open {
    overflow: hidden;
  }

  body.drawer-open .drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  body.drawer-open .mobile-drawer {
    transform: translateX(0);
  }

  main {
    padding-top: 76px;
  }

  .hero.with-bg {
    height: auto;
    min-height: 64vh;
    padding: 24px 16px;
    background-position: center;
  }

  .hero-box {
    width: 100%;
    max-width: 100%;
    padding: 18px;
  }

  .hero-box h1 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .hero-box p {
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero-logo-overlay {
    display: none;
  }

  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .cta-row .btn {
    width: 100%;
    text-align: center;
  }

  .section,
  .section.light,
  .gallery-section,
  .contact-section {
    padding: 38px 0;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .card {
    padding: 18px;
    text-align: left;
  }

  .card h2,
  .card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
  }

  .gallery-grid {
    gap: 14px;
  }

  .gallery-item {
    flex-basis: min(76vw, 340px);
  }

  .contact-grid {
    gap: 24px;
  }

  .contact-info,
  .contact-qr {
    flex: 1 1 100%;
  }

  .qr-image {
    width: min(260px, 100%);
  }

  .testimonial-card {
    flex-basis: min(82%, 420px);
  }

  .why-us-box {
    padding: 18px 16px;
  }

  .why-us-points span {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  main {
    padding-top: 74px;
  }

  .hero.with-bg {
    min-height: 58vh;
  }

  .hero-box {
    padding: 14px;
    border-radius: 8px;
  }

  .hero-box h1 {
    font-size: 1.25rem;
  }

  .eligibility-cta {
    font-size: 1rem;
    padding: 18px 8px;
  }

  .eligibility-btn {
    display: block;
    margin: 10px auto 0;
    width: fit-content;
  }

  .about-wrap h1 {
    font-size: 2rem;
  }

  .about-lead {
    font-size: 1.02rem;
    line-height: 1.7;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item {
    flex-basis: 86vw;
    aspect-ratio: 4 / 5;
  }

  .testimonial-hint {
    text-align: left;
  }

  .testimonial-card {
    flex-basis: 92%;
  }

  .testimonial-media.video,
  .testimonial-media.photo {
    aspect-ratio: 3 / 4;
  }
}
