/* D-International SAS — public site styles */
:root {
  --primary: #1e3a8a;
  --primary-dark: #16295e;
  --accent: #d63c3c;
  --accent-dark: #b52e2e;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --text: #1f2937;
  --text-muted: #5b6472;
  --border: #e2e6ee;
  --radius: 10px;
  --shadow: 0 2px 12px rgba(30, 58, 138, 0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.65;
}
img { max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 1.25rem; }
.center { text-align: center; }

/* header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.topbar { background: var(--primary); color: #dbe3f7; font-size: 0.82rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 0.35rem; padding-bottom: 0.35rem; }
.lang-switch { font-weight: 600; }
.lang-link { color: #9db0dd; padding: 0 0.35rem; }
.lang-link.active { color: #fff; }
.lang-switch .sep { color: #5b6f9e; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 0.7rem; padding-bottom: 0.7rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; }
.brand-logo { height: 44px; width: auto; }
.brand-name { font-size: 1.25rem; font-weight: 800; color: var(--primary); letter-spacing: 0.02em; }
.main-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.main-nav > a, .nav-dropdown > a { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.main-nav > a:hover, .nav-dropdown > a:hover { color: var(--primary); text-decoration: none; }
.nav-dropdown { position: relative; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 200px; padding: 0.5rem 0; }
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.45rem 1rem; color: var(--text); font-size: 0.92rem; }
.dropdown-menu a:hover { background: var(--bg-alt); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }

/* buttons */
.btn { display: inline-block; padding: 0.6rem 1.4rem; border-radius: 8px; font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 2px solid transparent; transition: all 0.15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-light { background: #fff; color: var(--primary); }
.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.85rem; }
.btn-lg { padding: 0.8rem 1.8rem; font-size: 1.05rem; }
.btn-block { display: block; text-align: center; width: 100%; }

/* hero */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #2d4fa5 100%); color: #fff; padding: 5.5rem 0; }
.hero-inner { max-width: 860px; }
.hero h1 { font-size: 2.6rem; line-height: 1.2; margin-bottom: 1.1rem; font-weight: 800; }
.hero-sub { font-size: 1.15rem; color: #ccd7f2; margin-bottom: 2rem; max-width: 640px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

/* stats */
.stats-strip { background: #fff; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.6rem 1.25rem; }
.stat { text-align: center; }
.stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); }
.stat-label { color: var(--text-muted); font-size: 0.9rem; }

/* sections */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 1.9rem; color: var(--primary); text-align: center; margin-bottom: 0.6rem; font-weight: 800; }
.section-sub { text-align: center; color: var(--text-muted); max-width: 720px; margin: 0 auto 2.2rem; }

/* degree cards */
.two-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2rem; }
.degree-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); display: block; color: var(--text); transition: transform 0.15s; }
.degree-card:hover { text-decoration: none; transform: translateY(-3px); }
.degree-card h3 { color: var(--primary); margin: 0.6rem 0; }
.degree-badge { display: inline-block; background: var(--primary); color: #fff; font-weight: 800; padding: 0.25rem 0.8rem; border-radius: 6px; letter-spacing: 0.05em; }
.degree-card-alt .degree-badge { background: var(--accent); }

/* program cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 1.5rem 0 2rem; }
.program-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.5rem; }
.program-card h3 { font-size: 1.05rem; color: var(--primary); }
.program-summary { color: var(--text-muted); font-size: 0.92rem; flex: 1; }
.program-card-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.badge { font-size: 0.72rem; font-weight: 800; padding: 0.15rem 0.55rem; border-radius: 999px; letter-spacing: 0.04em; }
.badge-mba { background: #e3ebfb; color: var(--primary); }
.badge-dba { background: #fde7e7; color: var(--accent); }
.program-school { font-size: 0.85rem; color: var(--text-muted); }
.link-arrow { font-weight: 700; font-size: 0.92rem; }

/* schools */
.school-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.school-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.1rem; transition: all 0.15s; color: var(--text); }
.school-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.school-card h3 { font-size: 0.98rem; color: var(--primary); margin-top: 0.4rem; }
.school-country { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* why */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 1.5rem; }
.why-item h3 { color: var(--primary); font-size: 1.02rem; margin-bottom: 0.5rem; }
.why-item p { color: var(--text-muted); font-size: 0.92rem; }

/* tour teaser */
.tour-teaser { background: linear-gradient(120deg, var(--accent-dark), var(--accent)); color: #fff; }
.tour-inner { max-width: 760px; }
.tour-teaser h2 { font-size: 1.9rem; margin-bottom: 0.7rem; }
.tour-teaser p { color: #ffe3e3; margin-bottom: 1.5rem; font-size: 1.05rem; }

/* posts */
.post-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.post-card h2, .post-card h3 { color: var(--primary); font-size: 1.08rem; margin: 0.4rem 0; }
.post-date { font-size: 0.8rem; color: var(--text-muted); }

/* page hero */
.page-hero { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 3rem 0 2.6rem; }
.page-hero h1 { font-size: 2.2rem; margin: 0.5rem 0; }
.page-hero-sub { color: #ccd7f2; max-width: 720px; }
.breadcrumb { font-size: 0.82rem; color: #9db0dd; }
.breadcrumb a { color: #9db0dd; }

/* filter tabs */
.filter-tabs { display: flex; gap: 0.6rem; margin-bottom: 2rem; flex-wrap: wrap; }
.filter-tab { padding: 0.4rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); font-weight: 600; color: var(--text); background: #fff; }
.filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filter-tab:hover { text-decoration: none; }

/* program rows */
.program-list { display: flex; flex-direction: column; gap: 1.1rem; }
.program-row { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); display: flex; gap: 1.5rem; align-items: flex-start; }
.program-row-main { flex: 1; }
.program-row h3 { color: var(--primary); margin: 0.5rem 0; }
.program-row p { color: var(--text-muted); font-size: 0.94rem; }
.program-row-side { padding-top: 1.6rem; }
.spec-tags { margin-top: 0.7rem; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.spec-tag { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; padding: 0.1rem 0.65rem; font-size: 0.78rem; color: var(--text-muted); }

/* program detail */
.program-detail { display: grid; grid-template-columns: 2fr 1fr; gap: 2.2rem; align-items: start; }
.program-detail h2 { color: var(--primary); font-size: 1.4rem; margin: 2rem 0 1rem; }
.facts-panel { background: var(--bg-alt); border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 1.5rem; }
.facts-panel h2 { margin: 0 0 1rem !important; }
.facts-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.5rem; }
.fact dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.fact dd { font-weight: 600; margin-top: 0.15rem; }
.check-list { list-style: none; }
.check-list li { padding: 0.35rem 0 0.35rem 1.7rem; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.spec-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.spec-card { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 0.7rem 0.9rem; font-size: 0.92rem; font-weight: 600; box-shadow: var(--shadow); }
.admission-box { background: #fff; border-left: 4px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 1.2rem 1.5rem; box-shadow: var(--shadow); }
.program-detail-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 1.2rem; }
.side-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.side-card h3 { color: var(--primary); font-size: 1.05rem; margin-bottom: 0.9rem; }
.side-label { font-size: 0.78rem; text-transform: uppercase; color: var(--text-muted); }
.side-links { list-style: none; }
.side-links li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.side-links li:last-child { border-bottom: none; }

/* markdown content */
.content-md { font-size: 1.02rem; }
.content-md h2, .content-md h3, .content-md h4 { color: var(--primary); margin: 1.6rem 0 0.8rem; }
.content-md h2 { font-size: 1.4rem; } .content-md h3 { font-size: 1.15rem; }
.content-md p { margin-bottom: 1rem; }
.content-md ul { margin: 0 0 1rem 1.4rem; }
.content-md li { margin-bottom: 0.4rem; }
.content-narrow { max-width: 820px; }
.contact-info { margin-top: 1.5rem; padding: 1rem 1.3rem; background: var(--bg-alt); border-radius: var(--radius); }

/* school list */
.school-list { display: flex; flex-direction: column; gap: 1.2rem; }
.school-row { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; gap: 1.5rem; }
.school-row-main { flex: 1; }
.school-row h2 { color: var(--primary); font-size: 1.3rem; margin: 0.4rem 0; }
.school-row p { color: var(--text-muted); font-size: 0.95rem; }
.school-row-side { padding-top: 1.4rem; }

/* inquiry form */
.inquiry-section { background: var(--bg-alt); }
.inquiry-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 2.5rem; align-items: center; }
.inquiry-text h2 { color: var(--primary); font-size: 1.7rem; margin-bottom: 0.6rem; }
.inquiry-text p { color: var(--text-muted); }
.inquiry-form { background: #fff; border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.8rem; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.inquiry-form input, .inquiry-form textarea {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; font-family: inherit;
}
.inquiry-form input:focus, .inquiry-form textarea:focus { outline: 2px solid var(--primary); border-color: transparent; }
.form-success { color: #15803d; font-weight: 600; font-size: 0.92rem; }

/* footer */
.site-footer { background: var(--primary-dark); color: #b9c6e8; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; padding: 3rem 1.25rem 2rem; }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; color: #fff; }
.footer-logo { height: 40px; background: #fff; border-radius: 6px; padding: 3px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; font-size: 0.9rem; }
.site-footer a { color: #b9c6e8; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 1rem 0; font-size: 0.82rem; }

/* responsive */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: flex-start; padding: 1rem 1.5rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .dropdown-menu { position: static; display: block; border: none; box-shadow: none; padding-left: 1rem; }
  .hero h1 { font-size: 1.9rem; }
  .two-cards, .card-grid, .why-grid { grid-template-columns: 1fr 1fr; }
  .school-grid, .spec-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .program-detail { grid-template-columns: 1fr; }
  .inquiry-inner { grid-template-columns: 1fr; }
  .program-row, .school-row { flex-direction: column; }
  .program-row-side, .school-row-side { padding-top: 0; }
}
@media (max-width: 560px) {
  .two-cards, .card-grid, .why-grid, .school-grid, .spec-grid, .facts-list, .form-row-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- specialization filter ---------- */
.spec-filter { background: var(--bg-alt); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1.8rem; }
.spec-filter-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.7rem; flex-wrap: wrap; gap: 0.4rem; }
.spec-filter-label { font-weight: 700; color: var(--primary); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em; }
.spec-count { font-size: 0.82rem; color: var(--text-muted); }
.spec-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.spec-chip { display: inline-flex; align-items: center; gap: 0.35rem; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 0.28rem 0.85rem; font-size: 0.84rem; color: var(--text); }
.spec-chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.spec-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-count { font-size: 0.7rem; opacity: 0.65; }
a.spec-tag:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.empty-state { text-align: center; padding: 3rem 1rem; background: var(--bg-alt); border-radius: var(--radius); margin-bottom: 2rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1rem; }

/* ---------- study tours ---------- */
.tour-intro-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; align-items: start; }
.media-title { color: var(--primary); font-size: 1rem; margin-bottom: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.media-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.8rem; }
.video-frame { position: relative; width: 100%; height: 0; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-frame iframe, .video-frame video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: 0; }
.video-frame.video-frame--plain { padding-top: 0; height: auto; background: #fff; }
.video-link-box { display: flex; align-items: center; gap: 0.8rem; padding: 1.2rem; color: #fff; background: var(--primary); }
.video-placeholder { min-height: 300px; background: linear-gradient(135deg, #e8edf9, #d7e0f3); border: 1px dashed #b9c7e6; border-radius: var(--radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; text-align: center; padding: 1rem; }
.video-placeholder p { color: var(--text-muted); font-size: 0.85rem; max-width: 260px; margin: 0; }
.play-icon { width: 54px; height: 54px; border-radius: 50%; background: #fff; color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem; padding-left: 4px; box-shadow: 0 4px 14px rgba(30,58,138,0.18); }
.side-card .video-frame { padding-top: 62.5%; }
.side-card .video-placeholder { min-height: 220px; }
.side-card hr { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }

.tour-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin: 1.5rem 0 2rem; }
.tour-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 0.55rem; }
.tour-card h3 { color: var(--primary); font-size: 1.05rem; line-height: 1.4; }
.tour-card-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.tour-days { background: var(--accent); color: #fff; font-weight: 800; font-size: 0.78rem; padding: 0.15rem 0.6rem; border-radius: 999px; }
.tour-theme { font-size: 0.76rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.tour-region { font-size: 0.85rem; color: var(--text-muted); }
.tour-summary { font-size: 0.92rem; color: var(--text-muted); flex: 1; }
.tour-highlights-mini { list-style: none; margin: 0.2rem 0 0.4rem; }
.tour-highlights-mini li { font-size: 0.84rem; padding-left: 1.1rem; position: relative; color: var(--text); }
.tour-highlights-mini li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.hero-badge { display: inline-block; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.35); color: #fff; font-size: 0.8rem; font-weight: 700; padding: 0.15rem 0.7rem; border-radius: 999px; }

/* itinerary */
.itinerary { list-style: none; counter-reset: day; display: flex; flex-direction: column; gap: 0.6rem; }
.itinerary li { counter-increment: day; position: relative; background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 0 8px 8px 0; padding: 0.75rem 1rem 0.75rem 3.2rem; font-size: 0.93rem; box-shadow: var(--shadow); }
.itinerary li::before { content: counter(day, decimal-leading-zero); position: absolute; left: 0.9rem; top: 0.75rem; font-weight: 800; color: var(--accent); font-size: 0.9rem; }

@media (max-width: 900px) {
  .tour-grid, .tour-intro-grid { grid-template-columns: 1fr; }
  .tour-grid { gap: 1rem; }
}

/* ---------- homepage hero slider ---------- */
.hero-slider { position: relative; height: 580px; overflow: hidden; background: var(--primary-dark); color: #fff; }
.hs-track { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.hs-slide { position: absolute; left: 0; top: 0; right: 0; bottom: 0; opacity: 0; transition: opacity 0.9s ease; pointer-events: none; }
.hs-slide.is-active { opacity: 1; pointer-events: auto; z-index: 2; }
.hs-bg { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background-size: cover; background-position: center; transform: scale(1.02); }
.hs-slide.is-active .hs-bg { animation: hsZoom 9s ease-out forwards; }
@keyframes hsZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.hs-overlay { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: linear-gradient(90deg, rgba(11,22,48,0.88) 0%, rgba(15,29,62,0.66) 45%, rgba(15,29,62,0.28) 100%); }
.hs-content { position: relative; z-index: 3; height: 100%; display: flex; flex-direction: column; justify-content: center; max-width: 760px; }
.hs-title { font-size: 2.7rem; line-height: 1.18; font-weight: 800; margin-bottom: 1.1rem; text-shadow: 0 2px 18px rgba(0,0,0,0.28); }
.hero-sub { font-size: 1.12rem; color: #dbe3f5; margin-bottom: 2rem; max-width: 620px; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hs-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.45); background: rgba(10,20,42,0.32); color: #fff; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); transition: background 0.2s, border-color 0.2s; }
.hs-arrow:hover { background: rgba(214,60,60,0.9); border-color: transparent; }
.hs-prev { left: 1.4rem; }
.hs-next { right: 1.4rem; }
.hs-dots { position: absolute; bottom: 1.5rem; left: 0; right: 0; display: flex; justify-content: center; gap: 0.5rem; z-index: 5; }
.hs-dot { width: 28px; height: 4px; border-radius: 999px; border: none; background: rgba(255,255,255,0.42); cursor: pointer; padding: 0; transition: background 0.2s, width 0.2s; }
.hs-dot.is-active { background: #fff; width: 44px; }
.hs-caption { position: absolute; right: 1.5rem; bottom: 1.5rem; z-index: 5; font-size: 0.78rem; color: rgba(255,255,255,0.75); letter-spacing: 0.04em; }

/* ---------- detail banners & galleries ---------- */
.detail-banner { max-width: 1140px; margin: -3.5rem auto 0; padding: 0 1.25rem; position: relative; z-index: 3; }
.detail-banner img { width: 100%; height: 380px; object-fit: cover; border-radius: var(--radius); box-shadow: 0 14px 40px rgba(15,29,62,0.22); display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin: 1rem 0 2rem; }
.gallery-item { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); cursor: zoom-in; background: #eef1f8; }
.gallery-item img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item::after { content: "⤢"; position: absolute; right: 8px; bottom: 6px; color: #fff; font-size: 0.9rem; text-shadow: 0 1px 4px rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.2s; }
.gallery-item:hover::after { opacity: 1; }
.lightbox { position: fixed; left: 0; top: 0; right: 0; bottom: 0; background: rgba(8,14,28,0.92); display: none; align-items: center; justify-content: center; z-index: 999; padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 1.2rem; right: 1.5rem; background: rgba(255,255,255,0.14); color: #fff; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; }
.gallery-scroll { display: flex; gap: 0.7rem; overflow-x: auto; padding-bottom: 0.4rem; margin: 0.8rem 0 1.6rem; }
.gallery-scroll img { width: 210px; height: 140px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; cursor: zoom-in; border: 1px solid var(--border); }

/* thumbnails inside listing cards */
.card-thumb { display: block; width: calc(100% + 2.8rem); height: 158px; object-fit: cover; margin: -1.4rem -1.4rem 0.4rem; border-radius: var(--radius) var(--radius) 0 0; }
.program-row-media { flex: 0 0 auto; display: block; line-height: 0; }
.program-row-thumb { width: 180px; height: 128px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }
.school-card-thumb { display: block; width: calc(100% + 2.2rem); height: 104px; object-fit: cover; margin: -1.2rem -1.1rem 0.6rem; border-radius: var(--radius) var(--radius) 0 0; }

@media (max-width: 900px) {
  .hero-slider { height: 460px; }
  .hs-title { font-size: 1.9rem; }
  .hs-arrow { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .detail-banner img { height: 230px; }
  .detail-banner { margin-top: -2rem; }
  .gallery-item img { height: 130px; }
}
