/* Jagannath Tutorials - minimal, vibrant theme (colours taken from the official logo) */
:root {
  color-scheme: light only;
  supported-color-schemes: light;
  --blue: #1f3a9e;
  --blue-dark: #142a7a;
  --blue-deep: #0d1d5c;
  --yellow: #ffc81e;
  --orange: #ff5a1f;
  --pink: #e8336d;
  --purple: #6d28d9;
  --teal: #0891b2;
  --green: #12a150;
  --wa: #25d366;
  --ink: #14213d;
  --muted: #5b6477;
  --line: #e3e7f3;
  --soft: #f4f6ff;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 33, 61, 0.1);
  --head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: light only;
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color-scheme: light only;
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--head); font-weight: 600; font-size: 0.95rem;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--blue-deep); }
.btn-yellow:hover { box-shadow: 0 8px 20px rgba(255, 200, 30, .45); }
.btn-green { background: var(--wa); color: #06361a; }
.btn-green:hover { box-shadow: 0 8px 20px rgba(37, 211, 102, .4); }
.btn-outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--blue); }
.btn-block { width: 100%; padding: 14px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background-color: #ffffff;
  background: rgba(255,255,255,.98); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { border-radius: 50%; width: 46px; height: 46px; object-fit: cover; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-family: var(--head); font-size: 1.05rem; color: var(--blue); }
.brand small { font-size: .72rem; color: var(--muted); font-weight: 500; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; padding: 4px 0; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 3px;
  background: var(--orange); border-radius: 3px; transition: width .2s ease;
}
.nav a:hover::after { width: 100%; }
.header-call { padding: 10px 18px; font-size: .88rem; }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; margin-left: auto; }
.menu-btn span { display: block; width: 24px; height: 3px; background: var(--blue); border-radius: 3px; margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  background-color: var(--blue-dark);
  background-image:
    radial-gradient(600px 300px at 90% 10%, rgba(255, 200, 30, .22), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(232, 51, 109, .25), transparent 60%),
    linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: #fff;
  padding: 64px 0 72px;
  overflow: hidden;
}
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.pill {
  display: inline-block; background: var(--yellow); color: var(--blue-deep);
  font-family: var(--head); font-weight: 600; font-size: .8rem;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
.hl { color: var(--yellow); }
.lead { font-size: 1.1rem; color: rgba(255,255,255,.9); margin: 20px 0 28px; max-width: 520px; }
.lead strong { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; margin: 28px 0 0; font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.9); }
.hero-points li::before { content: '\2713'; color: var(--yellow); font-weight: 700; margin-right: 8px; }

.hero-photo { position: relative; max-width: 400px; width: 100%; margin: 0 auto; }
.photo-frame { position: relative; border-radius: 24px; }
.photo-frame::before {
  content: ''; position: absolute; inset: 18px -18px -18px 18px;
  background: var(--yellow); border-radius: 24px; z-index: 0;
}
.photo-frame img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover;
  object-position: center 30%; border-radius: 24px; box-shadow: 0 20px 40px rgba(0,0,0,.3);
}
.photo-badge {
  position: absolute; left: -14px; bottom: 22px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--ink); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow);
}
.photo-badge b { font-family: var(--head); font-size: 2.2rem; line-height: 1; color: var(--orange); }
.photo-badge span { font-size: .78rem; font-weight: 600; line-height: 1.3; }

/* Strip */
.strip { background: var(--yellow); }
.strip-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 22px; padding-bottom: 22px; text-align: center; }
.strip b { display: block; font-family: var(--head); font-size: 1.5rem; color: var(--blue-deep); }
.strip span { font-size: .85rem; font-weight: 500; color: #4a3b00; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--soft); }
.head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.head h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 700; color: var(--blue-deep); }
.head p { color: var(--muted); margin-top: 12px; }
.eyebrow {
  display: inline-block; font-family: var(--head); font-weight: 600; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}
.eyebrow.light { color: var(--yellow); }

/* Course cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 22px; border-top: 6px solid var(--c); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.c-blue { --c: var(--blue); }
.c-orange { --c: var(--orange); }
.c-pink { --c: var(--pink); }
.c-green { --c: var(--green); }
.tag {
  display: inline-block; font-family: var(--head); font-size: .75rem; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; color: #fff; background: var(--c); margin-bottom: 14px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--ink); }
.card p { font-size: .93rem; color: var(--muted); }

/* Subjects bar */
.subjects-bar {
  margin-top: 28px; padding: 18px 24px; border-radius: var(--radius);
  background: var(--soft); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.subjects-label { font-family: var(--head); font-weight: 700; font-size: .9rem; color: var(--blue-deep); }
.subjects-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.subjects-pills span {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: .84rem; font-weight: 600; color: var(--blue);
}

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why > div { background: #fff; border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); }
.why i {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px;
  font-style: normal; font-family: var(--head); font-weight: 700; color: #fff; margin-bottom: 14px;
  background: var(--blue);
}
.why > div:nth-child(2) i { background: var(--orange); }
.why > div:nth-child(3) i { background: var(--pink); }
.why > div:nth-child(4) i { background: var(--green); }
.why > div:nth-child(5) i { background: var(--purple); }
.why > div:nth-child(6) i { background: var(--teal); }
.why h3 { font-size: 1.05rem; margin-bottom: 6px; }
.why p { font-size: .92rem; color: var(--muted); }

/* Faculty */
.faculty { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.teacher {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.teacher.featured {
  grid-column: 1 / -1; align-items: center; gap: 28px; padding: 28px;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; border: 0;
}
.teacher.featured img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: center 25%; border: 4px solid var(--yellow); flex-shrink: 0; }
.teacher.featured h3 { font-size: 1.5rem; }
.teacher.featured .role { color: var(--yellow); }
.teacher.featured p:last-child { color: rgba(255,255,255,.9); max-width: 580px; }
.teacher h3 { font-size: 1.1rem; }
.role { font-family: var(--head); font-weight: 600; font-size: .85rem; color: var(--orange); margin: 2px 0 8px; }
.teacher p:last-child { font-size: .92rem; color: var(--muted); }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--head); font-weight: 700; color: #fff; font-size: 1.05rem;
}
.a-orange { background: var(--orange); }
.a-pink { background: var(--pink); }
.a-purple { background: var(--purple); }
.a-green { background: var(--green); }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); border-left: 6px solid var(--yellow); }
.stars { color: #f5a300; letter-spacing: 3px; font-size: 1.1rem; margin-bottom: 10px; }
.review blockquote { margin: 0 0 14px; font-size: .98rem; color: var(--ink); }
.review figcaption { font-size: .85rem; font-weight: 600; color: var(--blue); }

/* Flyers */
.flyers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.flyer {
  padding: 0; border: 1px solid var(--line); background: #fff; border-radius: 14px; overflow: hidden; cursor: zoom-in;
  transition: transform .2s ease, box-shadow .2s ease;
}
.flyer:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.flyer img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }

/* FAQ */
.faq-wrap { max-width: 780px; }
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px;
}
.faq-item summary {
  font-family: var(--head); font-weight: 600; font-size: .98rem; color: var(--ink);
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 1.35rem; font-weight: 600; color: var(--orange); line-height: 1; flex-shrink: 0;
}
.faq-item[open] summary::after { content: '\2212'; color: var(--blue); }
.faq-item p { margin-top: 10px; font-size: .93rem; color: var(--muted); padding-right: 24px; }

/* Contact */
.contact { background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark)); color: #fff; }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 10px; }
.contact-info > p { color: rgba(255,255,255,.85); margin-bottom: 26px; }
.centre { padding: 16px 0; border-top: 1px solid rgba(255,255,255,.18); }
.centre h3 { font-size: 1.05rem; color: var(--yellow); margin-bottom: 4px; }
.centre p { font-size: .93rem; color: rgba(255,255,255,.88); }
.centre a { display: inline-block; margin-top: 6px; font-weight: 600; font-size: .9rem; color: var(--yellow); }
.centre a:hover { text-decoration: underline; }
.reach { list-style: none; padding: 18px 0 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255,255,255,.18); }
.reach a { display: inline-block; background: rgba(255,255,255,.12); padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: .92rem; }
.reach a:hover { background: var(--yellow); color: var(--blue-deep); }

.form { background: #fff; color: var(--ink); border-radius: 20px; padding: 30px; box-shadow: 0 20px 50px rgba(0,0,0,.3); border-top: 6px solid var(--yellow); }
.form h3 { font-size: 1.35rem; margin-bottom: 18px; color: var(--blue-deep); }
.form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.form input, .form select {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--ink);
}
.form input:focus, .form select:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(31,58,158,.15); }
.err { color: #c62828; font-size: .85rem; min-height: 1.2em; margin-bottom: 8px; font-weight: 500; }
.note { text-align: center; font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* Footer */
.footer { background: var(--blue-deep); color: rgba(255,255,255,.75); padding: 26px 0; font-size: .85rem; }
.footer-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand.light strong { color: #fff; font-size: .98rem; }
.brand.light small { color: rgba(255,255,255,.65); }
.brand.light img { width: 40px; height: 40px; }

/* Mobile action bar */
.mobile-bar { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; background: rgba(8,14,40,.92); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 92vw; border-radius: 10px; }
.lb-close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }

/* Responsive */
@media (max-width: 960px) {
  .cards, .why, .flyers { grid-template-columns: repeat(2, 1fr); }
  .faculty { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
  .contact-in { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .hero { padding: 44px 0 56px; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .hero-photo { max-width: 320px; margin-right: 30px; }
  .header-call { display: none; }
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0;
    padding: 8px 20px 16px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; margin: 0;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
}
@media (max-width: 600px) {
  body { padding-bottom: 68px; }
  .section { padding: 56px 0; }
  .cards, .why, .faculty { grid-template-columns: 1fr; }
  .flyers { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .strip-in { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .teacher.featured { flex-direction: column; text-align: center; }
  .cta-row .btn { flex: 1 1 100%; }
  .photo-badge { left: -8px; }
  .form { padding: 22px; }
  .footer-in { flex-direction: column; text-align: center; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 14px; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Prevent mobile browser dark-mode color inversion */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light only;
  }
  html, body {
    background-color: #ffffff !important;
    color: #14213d !important;
    color-scheme: light only !important;
  }
  .header {
    background-color: #ffffff !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid #e3e7f3 !important;
  }
  .brand strong {
    color: #1f3a9e !important;
  }
  .brand small {
    color: #5b6477 !important;
  }
  .menu-btn span {
    background: #1f3a9e !important;
  }
  .nav {
    background: #ffffff !important;
    border-color: #e3e7f3 !important;
  }
  .nav a {
    color: #14213d !important;
  }
  .hero {
    background-color: #142a7a !important;
    background-image:
      radial-gradient(600px 300px at 90% 10%, rgba(255, 200, 30, .22), transparent 60%),
      radial-gradient(500px 300px at 0% 100%, rgba(232, 51, 109, .25), transparent 60%),
      linear-gradient(135deg, #142a7a, #1f3a9e) !important;
    color: #ffffff !important;
  }
  .hero h1 {
    color: #ffffff !important;
  }
  .hero h1 .hl {
    color: #ffc81e !important;
  }
  .pill {
    background: #ffc81e !important;
    color: #0d1d5c !important;
  }
  .lead {
    color: rgba(255, 255, 255, 0.92) !important;
  }
  .lead strong {
    color: #ffffff !important;
  }
  .btn-yellow {
    background: #ffc81e !important;
    color: #0d1d5c !important;
  }
  .btn-green {
    background: #25d366 !important;
    color: #06361a !important;
  }
  .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.7) !important;
    color: #ffffff !important;
    background: transparent !important;
  }
  .hero-points {
    color: rgba(255, 255, 255, 0.9) !important;
  }
  .hero-points li::before {
    color: #ffc81e !important;
  }
  .photo-badge {
    background: #ffffff !important;
    color: #14213d !important;
  }
  .photo-frame::before {
    background: #ffc81e !important;
  }
  .strip {
    background: #ffc81e !important;
    color: #0d1d5c !important;
  }
  .section.alt {
    background: #f4f6ff !important;
  }
  .cards .card, .why > div, .review, .teacher, .faq-item {
    background: #ffffff !important;
    border-color: #e3e7f3 !important;
    color: #14213d !important;
  }
  .teacher.featured {
    background-color: #142a7a !important;
    background-image: linear-gradient(135deg, #142a7a, #1f3a9e) !important;
    color: #ffffff !important;
  }
  .teacher.featured .role {
    color: #ffc81e !important;
  }
  .teacher.featured p:last-child {
    color: rgba(255, 255, 255, 0.9) !important;
  }
  .contact {
    background-color: #0d1d5c !important;
    background-image: linear-gradient(135deg, #0d1d5c, #142a7a) !important;
    color: #ffffff !important;
  }
  .centre h3 {
    color: #ffc81e !important;
  }
  .centre a {
    color: #ffc81e !important;
  }
  .form {
    background: #ffffff !important;
    color: #14213d !important;
    border-top-color: #ffc81e !important;
  }
  .form input, .form select {
    background: #f4f6ff !important;
    color: #14213d !important;
    border-color: #e3e7f3 !important;
  }
  .footer {
    background: #0d1d5c !important;
    color: rgba(255, 255, 255, 0.8) !important;
  }
  .mobile-bar {
    background: rgba(255, 255, 255, 0.98) !important;
    border-top: 1px solid #e3e7f3 !important;
  }
}
