/* DeepIQ — brand: navy #13204b + green #046b39 on white */
:root {
  --navy: #13204b;
  --navy-2: #1d3070;
  --green: #046b39;
  --green-2: #0b8a4c;
  --green-soft: #e7f4ec;
  --navy-soft: #eaeef8;
  --bg: #f4f6f9;
  --card: #ffffff;
  --text: #0f1733;
  --muted: #5d6680;
  --line: #e3e7ef;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(19, 32, 75, .05), 0 14px 40px rgba(19, 32, 75, .08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
html, body { margin: 0; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  /* faint blueprint grid, like a sheet of squared paper */
  background-image:
    linear-gradient(rgba(19, 32, 75, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 32, 75, .045) 1px, transparent 1px);
  background-size: 72px 72px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.12; margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hl { color: var(--green); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 13px 24px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 16px; }
.btn-dark { background: var(--navy); color: #fff; box-shadow: 0 8px 22px rgba(19, 32, 75, .25); }
.btn-dark:hover { background: var(--navy-2); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 10px 26px rgba(4, 107, 57, .3); }
.btn-green:hover { background: var(--green-2); }
.btn-ghost { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-white { background: #fff; color: var(--navy); }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(4px); }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); box-shadow: 0 0 0 4px rgba(11, 138, 76, .18); animation: pulse 2s infinite; }
.pill.light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(11, 138, 76, 0); } }

/* ---------- header ---------- */
.nav { position: sticky; top: 0; z-index: 50; padding: 14px 20px 0; }
.nav-in { max-width: 1200px; margin: 0 auto; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-radius: 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 28px; padding: 12px 14px 12px 22px; transition: padding .25s; }
.nav.scrolled .nav-in { padding-top: 8px; padding-bottom: 8px; }
.brand img { height: 46px; width: auto; transition: height .25s; }
.nav.scrolled .brand img { height: 38px; }
.menu { display: flex; gap: 24px; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--navy); position: relative; }
.menu a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--green); transform: scaleX(0); transition: transform .2s; }
.menu a:hover::after { transform: scaleX(1); }
.menu .menu-cv { color: var(--green); }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--navy-soft); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }

/* ---------- hero ---------- */
.hero { padding: 56px 0 30px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: clamp(150px, 15vw, 210px) 1.1fr .8fr; grid-template-areas: "peng text art"; gap: 36px; align-items: center; max-width: 1360px; }
.hero-in .mascot { grid-area: peng; }
.hero-in .hero-text { grid-area: text; }
.hero-in .hero-art { grid-area: art; }
.hero h1 { font-size: clamp(32px, 3.9vw, 54px); font-weight: 800; margin: 20px 0 18px; color: var(--navy); }
.lead { font-size: 18px; color: var(--muted); max-width: 560px; margin: 0 0 30px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--navy); font-weight: 600; font-size: 14.5px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: '✓'; width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-size: 12px; font-weight: 800; }

.hero-art { position: relative; height: 560px; }
.teacher-card { position: absolute; right: 0; top: 0; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, var(--green) 130%); box-shadow: 0 30px 60px rgba(19, 32, 75, .25); }
.teacher-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 260px at 80% 10%, rgba(255, 255, 255, .18), transparent 60%); }
.teacher { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; mix-blend-mode: normal; }
/* sound toggle on the hero video (video always starts muted — browsers block autoplay with sound) */
.sound { position: absolute; left: 16px; top: 16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); box-shadow: 0 8px 20px rgba(19, 32, 75, .2); font-size: 19px; cursor: pointer; display: grid; place-items: center; transition: transform .2s; }
.sound:hover { transform: scale(1.08); }
.sound .on { display: none; }
.sound[aria-pressed="true"] .on { display: inline; }
.sound[aria-pressed="true"] .off { display: none; }
.float { position: absolute; background: #fff; border-radius: 16px; padding: 10px 16px; box-shadow: 0 14px 30px rgba(19, 32, 75, .18); display: flex; flex-direction: column; line-height: 1.2; animation: bob 5s ease-in-out infinite; }
.float b { color: var(--green); font-size: 20px; font-weight: 800; }
.float span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.f1 { right: 18px; top: 26px; }
.f2 { right: 22px; bottom: 30px; animation-delay: -2.5s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* mascot: body + separately rotating arm */
.mascot { position: relative; cursor: pointer; align-self: end; margin-bottom: 20px; }
/* Frameless penguin: the video has a white background (MP4 has no transparency). Multiply-blending the whole
   column with the page makes white invisible, so only the penguin shows. The blend sits on .peng-card itself
   because its bob animation creates a stacking context that would otherwise isolate the video.
   A fixed-height speech area on top keeps the column from jumping when the text changes. */
.hero-crest { display: block; width: 58%; max-width: 120px; height: auto; margin: 0 auto 14px; filter: drop-shadow(0 6px 14px rgba(19,32,75,.18)); }
.peng-card { background: #fff; mix-blend-mode: multiply; animation: bob 5s ease-in-out infinite; display: flex; flex-direction: column; }
.peng-card video { width: 100%; aspect-ratio: 9 / 13; object-fit: cover; object-position: 50% 100%; display: block; /* empty white top of the video cropped away so the speech sits right above the head */ filter: brightness(1.016); /* the video's white is ~252 → push it to 255 so no faint rectangle shows */ }
.say { height: 7.4em; padding: 12px 12px 0; display: flex; align-items: center; justify-content: center; font-size: 13.5px; }
.peng-card .bubble { position: relative; right: auto; bottom: auto; max-width: 100%; width: auto; text-align: center; font-size: 1em; padding: 9px 12px; border-radius: 14px; background: var(--navy); color: #fff; box-shadow: 0 8px 18px rgba(19, 32, 75, .18); transform-origin: center bottom; }
.peng-card .bubble::after { content: ''; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: var(--navy); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
/* 3D feel: the whole penguin turns toward the cursor (JS sets --ry/--rx), breathes and sways on its own */
.tilt { transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.peng {
  position: relative; width: 100%; aspect-ratio: 400 / 540; transform-origin: 50% 100%;
  /* soft shadows for volume */
  filter: drop-shadow(10px 18px 14px rgba(19, 32, 75, .22)) drop-shadow(-4px 4px 6px rgba(19, 32, 75, .12));
  animation: breathe 4.2s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: translateY(0) rotate(-1.2deg) scale(1, 1); }
  50% { transform: translateY(-7px) rotate(1.2deg) scale(1.01, .99); }
}
@media (hover: none) { .tilt { animation: sway 7s ease-in-out infinite; } }
@keyframes sway { 0%, 100% { transform: rotateY(-10deg); } 50% { transform: rotateY(10deg); } }
.peng img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* waving: only the arm layer turns, around the shoulder, and only inward (turning outward opened a gap).
   The body underneath keeps its own pixels at the shoulder, so there is never a seam. */
.peng-arm { transform-origin: 65.4% 51.6%; }
.mascot.waving .peng-arm { animation: wave 1.9s ease-in-out; }
@keyframes wave {
  0%, 100% { transform: rotate(0); }
  12% { transform: rotate(-13deg); } 26% { transform: rotate(-1deg); }
  40% { transform: rotate(-13deg); } 54% { transform: rotate(-1deg); }
  68% { transform: rotate(-11deg); } 84% { transform: rotate(-2deg); }
}
/* a small happy bounce of the whole penguin while it waves */
.mascot.waving .peng { animation: hop 1.9s ease-in-out; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 20%, 48% { transform: translateY(-6px); } 34%, 62% { transform: translateY(0); } }
.bubble { position: absolute; right: 0; bottom: calc(100% + 6px); width: max-content; max-width: 100%; line-height: 1.35; background: #fff; color: var(--navy); font-weight: 700; font-size: 13.5px; padding: 10px 14px; border-radius: 16px 16px 4px 16px; box-shadow: 0 12px 28px rgba(19, 32, 75, .2); white-space: normal; opacity: 0; transform: translateY(8px) scale(.9); transform-origin: right bottom; transition: opacity .35s, transform .35s; z-index: 4; }
.bubble.show { opacity: 1; transform: none; }

/* ---------- sections ---------- */
.section { padding: 90px 0 0; }
.head { margin-bottom: 36px; }
.head h2 { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; color: var(--navy); }
.head p { color: var(--muted); font-size: 17px; margin: 10px 0 0; }
.head.center { text-align: center; }
.head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }

/* courses: card with notch + arrow (Handex-like layout, DeepIQ style) */
.courses { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 22px; }
.course { position: relative; background: var(--card); border-radius: var(--radius); padding: 22px 20px 22px; box-shadow: var(--shadow); text-decoration: none; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; min-height: 330px; }
.course:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(19, 32, 75, .06), 0 24px 50px rgba(19, 32, 75, .14); }
.course h3 { font-size: 19px; color: var(--navy); padding-right: 56px; min-height: 46px; }
.course p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }
.course .meta { margin-top: auto; padding-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--green); }
.course .go { position: absolute; right: -10px; top: -10px; width: 58px; height: 58px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; box-shadow: 0 0 0 8px var(--bg); transition: background .25s, transform .25s; }
.course .go span { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--navy); font-size: 18px; font-weight: 700; box-shadow: var(--shadow); transition: background .25s, color .25s, transform .25s; }
.course:hover .go span { background: var(--green); color: #fff; transform: rotate(45deg); }
.app { margin: 18px auto 4px; width: 100%; max-width: 210px; aspect-ratio: 1.25; border-radius: 16px; background: linear-gradient(180deg, #fff, #eef1f6); box-shadow: inset 0 0 0 1px var(--line), 0 10px 22px rgba(19, 32, 75, .1); position: relative; overflow: hidden; transform: perspective(600px) rotateX(6deg) rotateY(-8deg); transition: transform .35s; }
.course:hover .app { transform: perspective(600px) rotateX(0) rotateY(0); }
.app .dots { position: absolute; left: 12px; top: 11px; display: flex; gap: 5px; }
.app .dots i { width: 9px; height: 9px; border-radius: 50%; background: #ef5350; }
.app .dots i:nth-child(2) { background: #ffb300; } .app .dots i:nth-child(3) { background: #43a047; }
.app .bar { position: absolute; right: 12px; top: 10px; width: 56px; height: 10px; border-radius: 6px; }
.app .tile { position: absolute; left: 50%; top: 56%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 20px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 38px; box-shadow: 0 12px 20px rgba(0, 0, 0, .18), inset 0 -6px 0 rgba(0, 0, 0, .15), inset 0 2px 0 rgba(255, 255, 255, .25); }
.app .tile small { position: absolute; right: -8px; bottom: -8px; background: var(--navy); color: #fff; font-size: 11px; border-radius: 8px; padding: 2px 6px; box-shadow: 0 4px 8px rgba(0, 0, 0, .2); }

/* reviews marquee: tilted cards drifting sideways */
.marquee { overflow: hidden; padding: 30px 0 40px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 28px; width: max-content; animation: drift 60s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.review { width: 330px; background: #fff; border-radius: 20px; padding: 22px 22px 24px; box-shadow: var(--shadow); flex: none; transition: transform .3s; }
.review:nth-child(odd) { transform: rotate(-3deg); }
.review:nth-child(even) { transform: rotate(2.5deg) translateY(14px); }
.review:hover { transform: rotate(0) scale(1.03); }
.review .who { display: flex; gap: 12px; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.avatar { width: 76px; height: 76px; border-radius: 14px; font-size: 20px; background: linear-gradient(135deg, var(--navy), var(--green)); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.review .who img.uni { margin-left: auto; width: 44px; height: 44px; object-fit: contain; flex: none; }
.review b { display: block; color: var(--navy); font-size: 15px; }
.review small { color: var(--muted); font-size: 12.5px; }
.review { cursor: pointer; }
.review p { margin: 0; font-size: 14.5px; color: #2a3350; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review .more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--green); }
.review:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.stars { color: #f5b301; letter-spacing: 2px; font-size: 13px; margin-bottom: 6px; }

/* stats */
.stats { background: #fff; border-radius: 28px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; padding: 46px; align-items: center; overflow: hidden; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 20px; text-align: center; }
.stat b { display: block; font-size: clamp(42px, 5vw, 64px); font-weight: 800; color: var(--navy); line-height: 1; letter-spacing: -.03em; }
.stat b em { font-style: normal; color: var(--green); }
.stat span { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.stats-claim { position: relative; }
.stats-claim h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; color: var(--navy); max-width: 440px; }
.stats-peng { width: 120px; margin-top: 18px; transform: rotate(-6deg); }

/* graduates slider */
.arrows { display: flex; gap: 10px; }
.arrow { width: 54px; height: 54px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); transition: transform .2s; }
.arrow:hover { transform: scale(1.08); }
.arrow.dark { background: var(--navy); color: #fff; }
.slider { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 66px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
.slider::-webkit-scrollbar { display: none; }
.grad { margin: 0; scroll-snap-align: start; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: linear-gradient(160deg, #dfe5f1, #c9d3e6); box-shadow: var(--shadow); }
.grad img, .grad svg.ph { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.grad:hover img, .grad:hover svg.ph { transform: scale(1.05); }
.grad .tag { position: absolute; left: 14px; right: 14px; bottom: 14px; background: rgba(19, 32, 75, .55); backdrop-filter: blur(10px); color: #fff; border-radius: 14px; padding: 10px 14px; }
.grad .tag b { display: block; font-size: 15px; }
.grad .tag small { display: block; margin-top: 2px; opacity: .85; font-size: 12.5px; line-height: 1.35; }

/* certificates */
.certs .track { animation-duration: 45s; animation-direction: reverse; }
.cert { width: 300px; flex: none; background: #fff; border-radius: 16px; padding: 10px; box-shadow: var(--shadow); cursor: zoom-in; transition: transform .3s; }
.cert:hover { transform: translateY(-6px) rotate(-1deg); }
.cert img, .cert svg { width: 100%; aspect-ratio: 1.414; border-radius: 10px; display: block; object-fit: cover; object-position: top; }
.cert figcaption { padding: 10px 6px 4px; font-size: 13.5px; color: var(--muted); }
.cert figcaption b { color: var(--navy); }
.cert figcaption .score { color: var(--green, #046b39); font-weight: 700; white-space: nowrap; }

/* about teacher */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 30px; align-items: center; }
.about-photo { border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; }
.about-text h2 { font-size: clamp(30px, 3.4vw, 44px); color: var(--navy); margin: 16px 0 6px; font-weight: 800; }
.about-text h2 small { font-size: 12px; vertical-align: middle; background: #fff4d6; color: #8a5a00; border-radius: 6px; padding: 2px 8px; letter-spacing: 0; }
.about-text .role { color: var(--green); font-weight: 700; margin: 0 0 14px; }
.about-text p { color: #39425e; }
.badges { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { background: var(--navy-soft); color: var(--navy); font-weight: 700; font-size: 13.5px; border-radius: 10px; padding: 8px 14px; }
.badges li::before { content: '🏅 '; }

/* CV band */
.cv-band { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-2) 55%, var(--green) 140%); color: #fff; border-radius: 28px; padding: 44px 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cv-band::after { content: 'CV'; position: absolute; right: 230px; top: -40px; font-size: 200px; font-weight: 800; color: rgba(255, 255, 255, .05); pointer-events: none; }
.cv-band h2 { font-size: clamp(26px, 3vw, 38px); margin: 14px 0 8px; }
.cv-band p { margin: 0; color: #cfd6ec; max-width: 560px; }

/* international certificate emblems */
.badges-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.badges-grid .badge { flex: 0 1 calc((100% - 100px) / 6); min-width: 150px; }
.badge { background: #fff; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 14px 20px; cursor: pointer; font: inherit; color: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.badge.in { transition: opacity .7s ease, transform .25s, box-shadow .25s; }
.badge:hover { transform: translateY(-6px); box-shadow: 0 2px 4px rgba(19, 32, 75, .06), 0 24px 50px rgba(19, 32, 75, .14); }
.badge-img { width: 104px; height: 104px; margin-bottom: 10px; display: grid; place-items: center; transition: transform .35s; }
.badge:hover .badge-img { transform: scale(1.08) rotate(-4deg); }
.badge-img img, .badge-img svg { width: 100%; height: 100%; object-fit: contain; }
.badge-img img { width: auto; height: 104px; max-width: 100%; }
.badge b { font-size: 14.5px; line-height: 1.3; }
.badge small { color: var(--green); font-weight: 700; font-size: 12.5px; }
.lb-head { display: flex; align-items: center; gap: 14px; padding: 8px 8px 16px; }
.lb-body .lb-head img, .lb-body .lb-head svg { width: 64px; height: 64px; object-fit: contain; flex: none; }
.lb-head h3 { color: var(--navy); font-size: 22px; }
.lb-head p { margin: 2px 0 0; color: var(--muted); }
.lb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; max-height: 70vh; overflow: auto; padding: 0 8px 8px; }
.lb-grid figure { margin: 0; }
.lb-body .lb-grid img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
.lb-grid a { display: block; cursor: zoom-in; }
.lb-body .lb-grid svg { width: 100%; aspect-ratio: 1.414; object-fit: contain; border-radius: 10px; background: #f4f6f9; display: block; }
.lb-grid figcaption { font-size: 13.5px; color: var(--muted); padding: 6px 2px 0; }

/* contact */
.contact { background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: 46px; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; }
.contact h2 { font-size: clamp(28px, 3.2vw, 40px); color: var(--navy); font-weight: 800; }
.contact p { color: var(--muted); font-size: 17px; max-width: 520px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.contact-peng { width: 190px; flex: none; transform: rotate(4deg); }

/* footer */
.footer { margin-top: 90px; background: #fff; border-top: 1px solid var(--line); }
.footer-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 30px; padding-top: 50px; padding-bottom: 30px; }
.f-brand img { height: 52px; width: auto; }
.f-brand p { color: var(--muted); font-size: 14.5px; }
.f-col { display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.f-col h4 { margin: 4px 0 8px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.f-col a { text-decoration: none; color: var(--navy); font-weight: 500; }
.f-col a:hover { color: var(--green); }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: var(--navy-soft); display: grid; place-items: center; color: var(--navy); transition: background .2s, color .2s; }
.socials a:hover { background: var(--navy); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.copy { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 26px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.totop { width: 50px; height: 50px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 20px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10, 16, 40, .8); z-index: 100; display: grid; place-items: center; padding: 20px; }
.lightbox button { position: absolute; top: 16px; right: 20px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: #fff; font-size: 28px; cursor: pointer; }
.lb-body { max-width: min(900px, 100%); width: 100%; background: #fff; border-radius: 16px; padding: 12px; }
.lb-body img, .lb-body svg { width: 100%; height: auto; border-radius: 10px; }
/* rəy pəncərəsi */
.lightbox.is-review .lb-body { max-width: 640px; padding: 34px 36px 36px; border-radius: 24px; max-height: calc(100vh - 40px); overflow-y: auto; animation: lbPop .25s ease; }
@keyframes lbPop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.review-full .who { display: flex; gap: 16px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.review-full .avatar { width: 96px; height: 96px; border-radius: 18px; font-size: 26px; }
.review-full .avatar img { border-radius: 0; }
.review-full b { display: block; color: var(--navy); font-size: 20px; }
.review-full small { color: var(--muted); font-size: 14px; }
.review-full img.uni { margin-left: auto; width: 60px; height: 60px; object-fit: contain; flex: none; border-radius: 0; }
.review-full .stars { font-size: 18px; }
.review-full p { margin: 10px 0 0; font-size: 17px; line-height: 1.7; color: #2a3350; }
@media (max-width: 560px) { .lightbox.is-review .lb-body { padding: 24px 20px; } .review-full .avatar { width: 72px; height: 72px; } .review-full p { font-size: 15.5px; } .review-full img.uni { width: 44px; height: 44px; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
/* once revealed, cards get their quick hover lift back */
.reveal.in.course, .reveal.in.post { transition: opacity .7s ease, transform .25s, box-shadow .25s; }
.reveal.in.course:hover, .reveal.in.post:hover { transform: translateY(-6px); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .courses { grid-template-columns: repeat(2, 1fr); }
  .slider { grid-auto-columns: calc((100% - 22px) / 2); }
  .menu { gap: 16px; }
  .nav-cta { display: none; }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .menu { position: absolute; top: calc(100% + 8px); left: 20px; right: 20px; flex-direction: column; gap: 0; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 8px; display: none; }
  .menu.open { display: flex; }
  .menu a { padding: 12px 14px; border-radius: 10px; }
  .menu a:hover { background: var(--navy-soft); }
  .menu a::after { display: none; }
  /* text on top; penguin and teacher video side by side below it */
  .hero-in { grid-template-columns: 32% 1fr; grid-template-areas: "text text" "peng art"; gap: 24px 16px; }
  .hero-art { height: 480px; width: 100%; margin: 10px 0 0; }
  .mascot { margin-bottom: 0; width: 100%; max-width: 200px; justify-self: end; }
  .stats { grid-template-columns: 1fr; padding: 32px 24px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
  .about-photo { max-height: 420px; aspect-ratio: auto; }
  .badges-grid .badge { flex-basis: calc((100% - 40px) / 3); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .contact { flex-direction: column; align-items: flex-start; padding: 32px 24px; }
  .contact-peng { width: 140px; align-self: flex-end; margin-top: -40px; }
}
@media (max-width: 600px) {
  .badges-grid { gap: 12px; }
  .badges-grid .badge { flex-basis: calc((100% - 12px) / 2); min-width: 0; }
  .badge-img { width: 84px; height: 84px; }
  .badge-img img { height: 84px; }
  body { font-size: 15px; }
  .nav { padding: 10px 12px 0; }
  .brand img { height: 38px; }
  .hero { padding-top: 30px; }
  .lead { font-size: 16px; }
  .hero-art { height: 420px; }
  .say { font-size: 11px; padding: 8px 7px 0; height: 8.4em; }
  .peng-card .bubble { padding: 6px 7px; border-radius: 10px; }

  .sound { top: auto; bottom: 12px; left: 12px; width: 38px; height: 38px; font-size: 16px; }
  .f1 { right: 10px; top: 12px; padding: 7px 11px; }
  .f1 b { font-size: 16px; } .f1 span { font-size: 11px; }
  .courses { grid-template-columns: 1fr; }
  .course { min-height: 0; }
  .slider { grid-auto-columns: 78%; }
  .head.row { align-items: flex-start; flex-direction: column; }
  .review { width: 280px; }
  .cv-band { padding: 32px 24px; }
  .footer-in { grid-template-columns: 1fr; }
  .section { padding-top: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}
