/* SLHE: shared typography and compact visual rhythm, including the student portal.
   Fonts are self-hosted, subset by script, and distributed with their OFL licenses. */
@font-face {
  font-family: 'SLHE Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('./fonts/inter-latin-ext-v5.3.0.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'SLHE Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('./fonts/inter-latin-v5.3.0.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'SLHE Bengali'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('./fonts/noto-sans-bengali-v5.3.0.woff2') format('woff2');
  unicode-range: U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1;
}
:root {
  --radius: 12px;
  --shadow: 0 3px 14px rgba(16,45,70,.035);
  --line: #e0e8eb;
  --muted: #566973;
}
body {
  font-family: 'SLHE Inter','SLHE Bengali',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
  font-size: .9375rem;
  line-height: 1.6;
  font-weight: 400;
}
button,input,select,textarea { font-family: inherit; }
h1,h2,h3,h4 { font-weight: 600; letter-spacing: -.025em; }
strong,b { font-weight: 600; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }
li + li { margin-top: 5px; }
[lang='bn'] { line-height: 1.8; letter-spacing: normal; }
[lang='bn'] h1,[lang='bn'] h2,[lang='bn'] h3 { letter-spacing: normal; }
section { padding: 42px 0; }
section h2 { font-size: clamp(1.4rem,2.6vw,1.9rem); line-height: 1.25; margin-bottom: 14px; }
header .nav { min-height: 72px; gap: 12px; }
.brand { font-weight: 600; gap: 10px; }
.brand b { font-weight: 650; line-height: 1.4; letter-spacing: .015em; }
.brand img { width: 52px; max-height: 46px; }
.nav nav > a:not(.btn) { font-weight: 500; font-size: .875rem; }
.btn { min-height: 44px; padding: 10px 16px; border-radius: 9px; font-weight: 600; font-size: .875rem; line-height: 1.35; gap: 6px; }
.btn:hover { background: #106a70; }
.btn.alt:hover { background: var(--pale); }
.btn:focus-visible,a:focus-visible,button:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.header-login { padding: 9px 14px; }
.menu-btn { border-radius: 9px; }
.hero { padding: 48px 0; background: var(--pale); }
.hero h1 { font-size: clamp(1.9rem,4.1vw,3.25rem); line-height: 1.15; margin: 12px 0 16px; max-width: 800px; }
.hero.home-hero { padding: 28px 0 32px; background: #fff; }
.hero.home-hero h1 { font-size: clamp(1.9rem,3.8vw,3.1rem); line-height: 1.16; max-width: 740px; }
.hero p,.pagehero p { font-size: .96875rem; line-height: 1.6; max-width: 720px; }
.home-hero .hero-layout { gap: 24px; }
.home-hero .hero-roadmap { width: 100%; max-width: 860px; align-self: center; }
.home-hero .hero-actions { margin-top: 18px; }
.pagehero { padding: 32px 0 26px; background: #f5f8f9; }
.pagehero h1 { font-size: clamp(1.7rem,3.5vw,2.65rem); line-height: 1.2; max-width: 960px; margin: 10px 0 14px; }
.eyebrow { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; }
.grid { gap: 16px; }
.grid > *, .details > *, .filters > * { min-width: 0; }
.card { padding: 20px; border-radius: 12px; box-shadow: var(--shadow); }
.card h2 { font-size: clamp(1.2rem,2vw,1.5rem); line-height: 1.3; }
.card h3 { font-size: 1rem; line-height: 1.4; margin: 0 0 8px; }
.card p { line-height: 1.6; }
.card label { font-weight: 500; font-size: .8125rem; margin-bottom: 12px; }
.card input:not([type='checkbox']),.card select,.card textarea,.filters input,.filters select,#profile-course-search {
  font-size: 16px; line-height: 1.35; min-height: 44px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 8px; max-width: 100%; color: var(--ink); background: #fff;
}
.card textarea { width: 100%; resize: vertical; }
input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
input::placeholder,textarea::placeholder { color: var(--muted); opacity: 1; }
.card input[type='checkbox'] { accent-color: var(--teal); }
.filters { gap: 10px; margin: 18px 0; }
.details { grid-template-columns: minmax(0,2fr) minmax(260px,1fr); gap: 20px; align-items: start; }
.details article { gap: 16px; }
.stack { gap: 14px; }
.facts { gap: 10px; margin-top: 14px; }
.fact { padding: 12px; border-radius: 9px; font-size: .875rem; line-height: 1.5; }
.fact b { font-weight: 600; margin-bottom: 3px; }
.notice { border-left-width: 3px; border-radius: 9px; padding: 14px 16px; margin: 16px 0; font-size: .875rem; line-height: 1.6; }
.notice p { margin: 8px 0; }
.notice p:last-child { margin-bottom: 0; }
.course-item { margin-bottom: 12px; }
.chips { gap: 6px; margin: 9px 0; }
.chips span { padding: 4px 8px; border-radius: 6px; font-size: .75rem; line-height: 1.5; }
#pagination { gap: 8px; margin-top: 18px; font-size: .875rem; }
#pagination button { min-height: 44px; padding: 8px 12px; border-radius: 8px; }
.catalogue-course .facts { margin-bottom: 18px; }
.catalogue-course .details { margin-top: 22px; }
.catalogue-fees { margin: 18px 0; }
.catalogue-fees h2 { font-size: 1.2rem; }
.fee-scroll { border-radius: 9px; }
.fee-table { font-size: .875rem; line-height: 1.5; }
.fee-table th,.fee-table td { padding: 10px 12px; }
.fee-table th { font-weight: 600; }
.fee-table td:last-child { font-variant-numeric: tabular-nums; }
.source-note { font-size: .8125rem; line-height: 1.55; }
.search-empty { padding: 22px; border-radius: 10px; }
#checklist-output { padding: 16px; border-radius: 10px; }
#checklist-output h3 { font-size: 1.125rem; }
.home-services { padding: 30px 0; }
.home-services h2,#universities h2 { font-size: clamp(1.4rem,2.6vw,1.9rem); }
.services-grid { border-radius: 12px; }
.services-grid > .card { box-shadow: none; border-radius: 0; padding: 16px; }
.services-grid > .card h3 { font-size: .9375rem; font-weight: 600; }
.services-grid > .card p { font-size: .84375rem; line-height: 1.55; }
#universities .uni-card { box-shadow: none; border-radius: 10px; }
#universities .uni-card h3 { font-weight: 550; font-size: .875rem; }
#universities .uni-card p { line-height: 1.45; }
.study-finder { border-radius: 12px; box-shadow: var(--shadow); }
.study-finder h2 { font-size: clamp(1.25rem,2.4vw,1.65rem); }
.study-finder label { font-weight: 500; }
.finder-result h3 { font-size: 1rem; }
.finder-result-actions .btn { min-height: 44px; }
main .roadmap-guides { padding: 30px 0 38px; }
main .roadmap-guides-grid { gap: 20px; }
.roadmap-guide { padding: 0; border-radius: 0; box-shadow: none; }
main .roadmap-guide figcaption h3 { font-size: .9375rem; font-weight: 550; }
.roadmap-toolbar h2 { letter-spacing: -.015em; }
.roadmap-help { line-height: 1.5; }
footer { font-size: .8125rem; line-height: 1.6; }
.foot b { font-size: .8125rem; font-weight: 600; letter-spacing: .015em; }
.foot p { margin: 5px 0; }
.credit { font-size: .75rem; }
/* Preserve the portal's compact form rhythm, with the shared new typeface. */
.portal-main .card label { font-weight: 500; margin: 0; }
.portal-main .card .portal-consent { font-weight: 400; margin: 12px 0; }
.portal-main .card h3 { font-size: 1rem; line-height: 1.35; }
.portal-main .card p { line-height: 1.45; }
.portal-main .document-row input { font-family: inherit; }
.portal-main .btn { font-weight: 550; }
@media (max-width: 900px) {
  .details { grid-template-columns: minmax(0,1fr); }
  .nav nav { top: 100%; padding: 14px 20px; gap: 6px; box-shadow: 0 8px 18px rgba(16,45,70,.04); }
  .nav nav > a { min-height: 44px; display: inline-flex; align-items: center; }
  .nav nav > .btn { margin-top: 4px; }
  .hero.home-hero h1 { max-width: 640px; }
}
@media (max-width: 700px) {
  main .roadmap-guides-grid { gap: 16px; }
}
@media (max-width: 600px) {
  body { font-size: .875rem; line-height: 1.6; }
  section { padding: 30px 0; }
  .hero.home-hero { padding: 20px 0 26px; }
  .hero.home-hero h1 { font-size: clamp(1.75rem,7.4vw,2rem); line-height: 1.18; }
  .hero p,.pagehero p { font-size: .875rem; line-height: 1.6; }
  .home-hero .hero-layout { gap: 18px; }
  .pagehero { padding: 24px 0 20px; }
  .pagehero h1 { font-size: clamp(1.5rem,6.6vw,1.9rem); line-height: 1.25; }
  section h2 { font-size: 1.35rem; }
  .card { padding: 16px; border-radius: 10px; }
  .card h2 { font-size: 1.15rem; }
  .grid { gap: 12px; }
  .details { gap: 14px; }
  .details article { gap: 12px; }
  .fact { padding: 11px; font-size: .8125rem; }
  .btn { padding: 10px 13px; font-size: .8125rem; }
  .brand img { width: 42px; }
  header .nav { gap: 8px; }
  .header-login { font-size: .75rem; padding: 9px 11px; }
  .notice { padding: 12px 13px; font-size: .8125rem; }
  .fee-table th,.fee-table td { padding: 9px 10px; }
  .fee-table { font-size: .8125rem; }
  .source-note { font-size: .75rem; }
  .home-services { padding: 26px 0; }
  .services-grid > .card { padding: 13px 14px; }
  #universities .uni-card h3 { font-size: .8125rem; }
  .study-finder { padding: 16px; }
  main .roadmap-guides { padding: 26px 0 30px; }
}

/* The study-plan form also uses the same typeface and compact rhythm. */
.home-journey { padding: 30px 0; }
.home-journey > .wrap { gap: 18px; }
.home-journey h2 { font-size: clamp(1.4rem,2.6vw,1.9rem); }
.home-journey .card { padding: 18px; box-shadow: var(--shadow); }
.home-journey .card > h3 { font-size: 1rem; }
#study-plan-form input,#study-plan-form select,#study-plan-form textarea { font-family: inherit; line-height: 1.35; }
#study-plan-form summary { font-size: .8125rem; font-weight: 550; }
#study-plan-form label { font-size: .8125rem; font-weight: 500; }
#study-plan-form .btn { font-size: .8125rem; font-weight: 600; }
@media (max-width: 600px) {
  .home-journey { padding: 26px 0; }
  .home-journey .card { padding: 16px; border-radius: 10px; }
}

/* Paired programme actions stay adjacent and wrap on narrow screens. */
.programme-actions { display:flex; flex-wrap:wrap; gap:10px; align-items:center; }
.programme-actions .btn { min-height:44px; }

/* Contact office address: keep the normal (non-italic) body style. */
address { font-style: normal; margin: 0 0 8px; }

/* Header logo: the logo image already shows the brand name, so it is shown larger
   and the duplicate text label is kept for screen readers only. */
.brand img { width: 160px; max-height: none; height: auto; aspect-ratio: 280 / 104; }
.brand b { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 900px) { .brand img { width: 136px; } }
@media (max-width: 600px) { .brand img { width: 120px; } }

/* Header and footer without divider lines. */
header { border-bottom: 0; }
@media (max-width: 900px) { .nav nav { border-bottom: 0; box-shadow: 0 16px 28px rgba(16, 45, 70, .08); } }
.credit { border-top: 0; }

/* Round social buttons (Facebook, Instagram, WhatsApp) in the footer and on the contact page.
   Footer colours use the logo teal (#137C83); text and outlines on the dark footer use a lighter
   tint of the same teal (#3FB0B6) so they stay easy to read. */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(63, 176, 182, .8); color: #3FB0B6; text-decoration: none; transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease; }
.social a:hover, .social a:focus-visible { background: var(--teal); border-color: var(--teal); color: #fff; transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; fill: currentColor; }
main .social a { border-color: rgba(19, 124, 131, .4); color: var(--teal); }
main .social a:hover, main .social a:focus-visible { background: var(--teal); border-color: var(--teal); color: #fff; }
@media (prefers-reduced-motion: reduce) { .social a { transition: none; } .social a:hover, .social a:focus-visible { transform: none; } }

/* Course finder: taller suggestion list with counts, subject groups first, related-subject chips. */
#finder-suggestions { max-height: min(60vh, 420px); }
#finder-suggestions li { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; }
#finder-suggestions li small { grid-column: 1; margin-top: 2px; }
#finder-suggestions .finder-option-count { grid-column: 2; grid-row: 1 / span 2; font-size: .75rem; font-weight: 600; color: var(--teal); background: var(--pale); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
#finder-suggestions .finder-option-group { font-weight: 600; color: var(--navy); }
#finder-suggestions .finder-option-group small { color: var(--teal); font-weight: 500; }
.finder-related { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 16px; }
.finder-related[hidden] { display: none; }
.finder-related-label { font-size: .8125rem; color: var(--muted); margin-right: 2px; }
.finder-chip { font: inherit; font-size: .8125rem; line-height: 1.2; min-height: 36px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(19, 124, 131, .35); background: #fff; color: var(--navy); cursor: pointer; transition: background-color .2s ease, border-color .2s ease; }
.finder-chip span { color: var(--teal); font-weight: 600; margin-left: 4px; }
.finder-chip:hover, .finder-chip:focus-visible { background: var(--pale); border-color: var(--teal); }
/* Compact rows: course areas show name and count (the "Course area" label stays for screen readers). */
#finder-suggestions li { padding: 9px 10px; }
#finder-suggestions li:not(.finder-option-group) small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#finder-suggestions li:not(.finder-option-group) .finder-option-count { grid-row: 1; }

/* Compact footer: brand | contact details with icons | social buttons, then one line of legal links. */
footer { padding: 26px 0 14px; }
.foot.foot-compact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; gap: 18px 32px; align-items: center; }
.foot-brand b { display: block; font-size: .9375rem; letter-spacing: .02em; }
.foot-brand p { margin: 2px 0 0; color: #3FB0B6; font-size: .8125rem; }
.foot-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.foot-contact li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.foot-contact a { color: #dfe9ef; text-decoration: none; overflow-wrap: anywhere; }
.foot-contact a:hover, .foot-contact a:focus-visible { color: #fff; text-decoration: underline; }
.foot-icon { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: #fff; }
.foot-icon svg { width: 14px; height: 14px; fill: currentColor; }
.foot-social .social { margin-top: 0; justify-content: flex-end; }
footer .credit { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 18px; padding-top: 12px; font-size: .75rem; color: rgba(223, 233, 239, .75); }
footer .credit a { color: rgba(223, 233, 239, .9); text-decoration: none; }
footer .credit a:hover, footer .credit a:focus-visible { color: #fff; text-decoration: underline; }
@media (max-width: 900px) {
  .foot.foot-compact { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; }
  .foot-contact { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: 8px 24px; }
  .foot-contact li { align-items: center; }
  .foot-brand p { margin-top: 0; }
  footer .credit { gap: 2px 14px; margin-top: 14px; padding-top: 8px; font-size: .7rem; }
}
@media (max-width: 560px) {
  footer { padding: 20px 0 12px; }
  .foot.foot-compact { gap: 12px 12px; align-items: start; }
  .foot-brand b { font-size: .875rem; }
  .foot-brand p { font-size: .75rem; }
  .foot-contact { flex-direction: column; gap: 6px; font-size: .8125rem; }
  .foot-contact li { align-items: flex-start; gap: 8px; }
  .foot-icon { flex-basis: 22px; width: 22px; height: 22px; }
  .foot-icon svg { width: 12px; height: 12px; }
  .foot-social .social { gap: 6px; }
  .foot-social .social a { width: 34px; height: 34px; }
  .foot-social .social svg { width: 16px; height: 16px; }
  footer .credit { justify-content: flex-start; gap: 2px 12px; margin-top: 14px; padding-top: 10px; font-size: .6875rem; }
}

/* ---------------------------------------------------------------------------
   Warm Ivory theme (owner's choice, 22 November 2026).
   Page canvas: warm ivory. Cards and panels: a lighter ivory, so they stand out.
   Form fields, university logos and the roadmap viewer stay white for clarity.
   The footer and the Privacy page heading stay navy. Text colours are unchanged.
   Screen only: printed pages stay white.
   --------------------------------------------------------------------------- */
@media screen {
:root { --canvas: #F8F4EC; --surface: #FFFDF8; --soft: #F1EADD; --pale: #F3ECDF; --line: #E6DCCB; }
body,
.hero.home-hero,
section.roadmap-guides,
section.portal-main { background: var(--canvas); }
header { background: rgba(248, 244, 236, .96); }
.nav nav { background: var(--canvas); }
.soft,
.pagehero,
section.portal-heading,
.hero:not(.home-hero) { background: var(--soft); }
.card,
.services-grid,
.legal-principles,
.legal-contents,
.legal-document,
.btn.alt,
.menu-btn,
#pagination button,
#finder-suggestions,
.finder-chip,
.skip:focus { background: var(--surface); }
.btn.alt:hover { background: var(--pale); }
.uni-logo, .uni-logo.sunway-logo { background: #fff; }
}
