/* ==========================================================
   drparveen.site — shared styles
   All brand colours live here. To change the palette,
   edit only the values in :root.
   ========================================================== */
:root {
  --teal: #0e7c7b;        /* primary: headings, links, menu */
  --teal-dark: #0a5f5e;   /* hover state */
  --teal-soft: #e6f5f4;   /* card / alternate section background */
  --navy: #1b2a3a;        /* main text */
  --slate: #33475b;       /* secondary text */
  --cream: #fffdf7;       /* page background */
  --yellow: #ffc845;      /* highlight labels (background only, never text) */
  --red: #c62828;         /* REGISTER button (darkened from #e03e3e for readability) */
  --red-dark: #a51f1f;
  --white: #ffffff;
  --line: #d5e6e4;

  --font: "Nunito", "Segoe UI", Arial, sans-serif;
  --max: 1120px;
  --text-max: 68ch;
  --radius-lg: 28px;
  --radius-sm: 12px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;          /* 18px base: easy to read on phones */
  line-height: 1.7;
  color: var(--navy);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; font-weight: 900; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); color: var(--teal); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--navy); }
h3 { font-size: 1.35rem; color: var(--navy); font-weight: 800; }
p { margin: 0 0 1.1em; max-width: var(--text-max); }

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header ---------- */
.topbar { height: 10px; background: var(--teal); }
.site-header { background: var(--cream); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { text-decoration: none; color: var(--navy); font-weight: 900; font-size: 1.2rem; line-height: 1.2; }
.brand span { display: block; color: var(--teal); font-size: .85rem; font-weight: 800; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; align-items: center; }
.nav a { display: block; padding: .55rem .85rem; border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.02rem; }
.nav a:hover { background: var(--teal-soft); color: var(--teal-dark); }
.nav a[aria-current="page"] { background: var(--teal-soft); color: var(--teal); }
.nav .nav-cta a { background: var(--red); color: var(--white); padding-inline: 1.15rem; }
.nav .nav-cta a:hover { background: var(--red-dark); color: var(--white); }
.menu-btn { display: none; background: none; border: 2px solid var(--navy); border-radius: 10px; padding: .45rem .8rem; font: inherit; font-weight: 800; color: var(--navy); cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .75rem 1.25rem 1.25rem; gap: .35rem; }
  .nav a { font-size: 1.15rem; padding: .8rem 1rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 60px; padding: .9rem 2.2rem; border-radius: 999px;
  font: inherit; font-weight: 900; font-size: 1.25rem; letter-spacing: .02em;
  text-decoration: none; cursor: pointer; border: 0;
}
.btn-register { background: var(--red); color: var(--white); box-shadow: 0 6px 0 var(--red-dark); }
.btn-register:hover { background: var(--red-dark); color: var(--white); }
.btn-register:active { transform: translateY(3px); box-shadow: 0 3px 0 var(--red-dark); }
.btn-ghost { background: transparent; color: var(--teal); border: 3px solid var(--teal); min-height: 56px; font-size: 1.1rem; }
.btn-ghost:hover { background: var(--teal-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.5rem; }
@media (max-width: 560px) { .btn { width: 100%; } }

/* ---------- Brand label (the yellow pill from the slides) ---------- */
.label {
  display: inline-block; background: var(--yellow); color: var(--navy);
  font-weight: 900; font-size: clamp(1.05rem, 2.2vw, 1.4rem); line-height: 1.3;
  padding: .45rem 1.2rem; border-radius: 999px; margin: 0 0 1.1rem;
}

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-soft { background: var(--teal-soft); }
.lead { font-size: clamp(1.2rem, 2.4vw, 1.45rem); color: var(--slate); }
.muted { color: var(--slate); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero .free { color: var(--red); }
.hero .by { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 800; color: var(--navy); margin-bottom: 1.6rem; }
.event {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  background: var(--white); border: 2px solid var(--teal); border-radius: var(--radius-lg);
  overflow: hidden; max-width: 900px;
}
.event div { padding: 1.2rem 1.4rem; border-right: 2px solid var(--teal-soft); }
.event div:last-child { border-right: 0; }
.event dt { font-size: .95rem; font-weight: 800; color: var(--teal); }
.event dd { margin: .15rem 0 0; font-size: 1.2rem; font-weight: 900; line-height: 1.35; }
.event small { display: block; font-weight: 700; color: var(--slate); font-size: .92rem; }
@media (max-width: 760px) {
  .event { grid-template-columns: 1fr; }
  .event div { border-right: 0; border-bottom: 2px solid var(--teal-soft); }
  .event div:last-child { border-bottom: 0; }
}

/* ---------- Intro with photo ---------- */
.intro-grid { display: grid; grid-template-columns: 300px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 820px) { .intro-grid { grid-template-columns: 1fr; } }
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); background: var(--teal);
  display: grid; place-items: center; color: var(--white); overflow: hidden;
  max-width: 300px;
}
.portrait span { font-size: 5rem; font-weight: 900; opacity: .9; }
.portrait img { width: 100%; height: 100%; object-fit: cover; }

.creds { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .7rem; }
.creds li { padding-left: 1.6rem; position: relative; font-weight: 700; line-height: 1.45; }
.creds li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7rem; height: .7rem; border-radius: 50%; background: var(--teal); }

/* ---------- Service card ---------- */
.service-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem; align-items: center;
  background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2.2rem); text-decoration: none; color: var(--navy); max-width: 900px;
}
.service-card:hover { border-color: var(--teal); color: var(--navy); }
.service-card .num { width: 64px; height: 64px; border-radius: 50%; background: var(--teal); color: var(--white); display: grid; place-items: center; font-size: 1.8rem; font-weight: 900; }
.service-card h3 { margin: 0 0 .2rem; font-size: clamp(1.35rem, 3vw, 1.7rem); }
.service-card p { margin: 0; color: var(--slate); }
.service-card .go { font-weight: 900; color: var(--teal); white-space: nowrap; }
@media (max-width: 640px) { .service-card { grid-template-columns: auto 1fr; } .service-card .go { grid-column: 1 / -1; } }

/* ---------- Feature list (thesis page) ---------- */
.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.features li { background: var(--white); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; font-weight: 800; border-left: 6px solid var(--teal); }

/* ---------- Chapters (a real sequence, so numbered) ---------- */
.chapters { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; counter-reset: ch; }
.chapters li { background: var(--white); border-radius: var(--radius-sm); padding: 1.4rem 1.4rem 1.5rem; counter-increment: ch; border: 2px solid var(--line); }
.chapters li::before { content: counter(ch, decimal-leading-zero); display: block; font-size: 2.2rem; font-weight: 900; color: var(--teal); line-height: 1; margin-bottom: .6rem; }
.chapters strong { display: block; font-size: 1.2rem; font-weight: 900; }
@media (max-width: 860px) { .chapters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .chapters { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-top: 1.5rem; }
.faq details { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius-sm); margin-bottom: .8rem; }
.faq details[open] { border-color: var(--teal); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 3rem 1.1rem 1.3rem; font-weight: 900; font-size: 1.15rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--teal); }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 1.3rem 1.2rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- Bahasa Melayu block ---------- */
.bm { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.5rem); border: 2px dashed var(--teal); max-width: 900px; }

/* ---------- Two-column lists (about) ---------- */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.plain-list { margin: 0; padding-left: 1.2rem; }
.plain-list li { margin-bottom: .55rem; }

.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.certs figure { margin: 0; background: var(--white); border-radius: var(--radius-sm); padding: 1rem; border: 2px solid var(--line); }
.certs img { margin-inline: auto; max-height: 440px; width: auto; }
.certs figcaption { margin-top: .8rem; font-weight: 800; font-size: 1rem; text-align: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.contact-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.8rem; border: 2px solid var(--line); text-align: center; }
.contact-card h3 { margin-bottom: .3rem; }
.contact-card img { width: 200px; height: 200px; object-fit: contain; margin: 1rem auto; }
.contact-card a { font-weight: 900; font-size: 1.15rem; word-break: break-word; }

/* ---------- Closing CTA ---------- */
.cta-band { background: var(--teal); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { margin-inline: auto; color: #eafaf8; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d9e3ea; padding: 2.5rem 0; font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--white); }
.site-footer .domain { font-weight: 900; font-size: 1.2rem; color: var(--white); }

/* ---------- Award photo (about) ---------- */
.award-grid { display: grid; grid-template-columns: 1fr minmax(240px, 380px); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 760px) { .award-grid { grid-template-columns: 1fr; } }
.award-photo { margin: 0; }
.award-photo img { border-radius: var(--radius-lg); width: 100%; }
.award-photo figcaption { margin-top: .7rem; font-weight: 800; color: var(--slate); font-size: 1rem; }

/* ---------- Embedded Google Form (contact) ---------- */
.form-embed { background: var(--white); border-radius: var(--radius-lg); border: 2px solid var(--line); overflow: hidden; max-width: 760px; margin-top: 1.5rem; }
.form-embed iframe { display: block; width: 100%; height: 1350px; border: 0; }
@media (max-width: 560px) { .form-embed iframe { height: 1650px; } }
