/* StudyNest Africa public homepage. Scoped to .sn-home to protect app layouts. */
.sn-home {
  --sn-ink: #103f32;
  --sn-paper: #fcfaf5;
  --sn-sage: #e0e7d7;
  --sn-gold: #efd094;
  margin: 0;
  color: var(--sn-ink);
  background: var(--sn-paper);
  font-family: 'Manrope', 'Noto Sans SC', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.sn-home *, .sn-home *::before, .sn-home *::after { box-sizing: border-box; }
.sn-home button, .sn-home input { font: inherit; }
.sn-home button, .sn-home summary { font-weight: 600; }
.sn-home .sn-language { font-size: 16px; }
.sn-home .sn-language button { font-weight: 600; }
html:lang(zh-Hans) body.sn-home { font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif; }
.sn-home button, .sn-home a { -webkit-tap-highlight-color: transparent; }
.sn-home button { cursor: pointer; }
.sn-home a { color: inherit; }
.sn-home :focus-visible { outline: 3px solid #b5812c; outline-offset: 5px; }
.sn-home [hidden] { display: none !important; }
.sn-home .sn-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sn-skip { position: fixed; top: -60px; left: 20px; z-index: 100; padding: 12px; background: white; }
.sn-skip:focus { top: 10px; }
.sn-header { min-height: 86px; border-bottom: 1px solid #e9e5dc; }
.sn-header-inner { padding-block: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 24px; }
.sn-brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.sn-brand-icon { width: 55px; height: 49px; display: block; }
.sn-brand-wordmark { font-family: Georgia, 'Times New Roman', serif; font-size: 28px; font-weight: 700; letter-spacing: -1.05px; white-space: nowrap; }
.sn-brand-wordmark span { color: #557061; font-weight: 400; }
.sn-desktop-nav { display: flex; align-items: center; gap: 28px; }
.sn-nav-link { padding: 12px 0; border: 0; background: none; color: #202b25; text-decoration: none; font-size: 17px; font-weight: 600; }
.sn-nav-link:hover { color: #668060; }
.sn-menu { position: relative; }
.sn-menu summary { display: flex; align-items: center; gap: 15px; cursor: pointer; list-style: none; }
.sn-menu summary::-webkit-details-marker { display: none; }
.sn-chevron { width: 13px; height: 13px; transition: transform .16s ease; }
.sn-menu[open] .sn-chevron { transform: rotate(180deg); }
.sn-menu-panel { position: absolute; z-index: 5; top: 46px; left: -22px; width: 230px; padding: 10px; border: 1px solid #e3e6dc; border-radius: 14px; background: #fffefb; box-shadow: 0 15px 45px #15382b15; }
.sn-menu-panel button, .sn-menu-panel a { display: block; width: 100%; padding: 11px 12px; text-align: left; text-decoration: none; border: 0; border-radius: 8px; color: var(--sn-ink); background: none; font-size: 16px; font-weight: 600; }
.sn-menu-panel button:hover, .sn-menu-panel a:hover { background: #eef1e8; }
.sn-header-actions { display: flex; align-items: center; gap: 10px; justify-self: end; min-width: 0; }
.sn-cta { display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 14px 20px; min-height: 44px; border: 1px solid var(--sn-ink); border-radius: 10px; color: #fff !important; background: var(--sn-ink); text-decoration: none; font-weight: 600; font-size: 17px; line-height: 1.35; }
.sn-cta:hover { background: #205543; }
.sn-arrow { width: 20px; height: 20px; flex-shrink: 0; }
.sn-mobile-nav { display: none; }
.sn-container { width: calc(100% - 74px); max-width: 1436px; margin: 0 auto; }
.sn-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 28px; align-items: center; padding: 48px 0 0; }
.sn-hero-copy { min-width: 0; padding-bottom: 6px; }
.sn-hero h1 { margin: 0 0 19px; font-size: clamp(40px, 4.25vw, 64px); font-weight: 700; line-height: 1.15; letter-spacing: -.04em; }
.sn-hero h1 span { display: block; }
.sn-hero-copy > p { margin: 0; max-width: 675px; color: #666864; font-size: clamp(19px, 1.4vw, 20px); line-height: 1.4; letter-spacing: -.4px; }
.sn-photo { display: block; width: 100%; overflow: hidden; }
.sn-choices { margin-top: 48px; scroll-margin-top: 24px; }
.sn-section-heading { padding: 0 16px; margin-bottom: 19px; }
.sn-section-heading h2 { margin: 0 0 2px; font-size: clamp(30px, 3.2vw, 42px); font-weight: 700; letter-spacing: -.035em; line-height: 1.2; }
.sn-section-heading p { margin: 0; font-size: 18px; color: #666864; line-height: 1.4; }
.sn-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sn-card { display: flex; flex-direction: column; min-width: 0; position: relative; overflow: hidden; padding: 0; border: 1px solid #e9e9e3; border-radius: 9px; background: #fff; color: #0a1711; text-decoration: none; text-align: left; box-shadow: 0 2px 3px #19312102; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.sn-card:hover { transform: translateY(-3px); border-color: #b1c1a7; box-shadow: 0 9px 24px #15382b12; }
.sn-card[aria-pressed="true"] { border-color: #416b49; box-shadow: 0 0 0 2px #416b49; }
.sn-card-photo { aspect-ratio: 326 / 164; height: auto; object-fit: cover; background: #e9e7de; }
.sn-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 73px; padding: 15px 23px 15px 21px; }
.sn-card-label { font-size: clamp(18px, 1.6vw, 24px); font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
/* Give the longer category name room without changing the card grid or its full label. */
.sn-card[data-category="consultancy"] { container: consultancy-card / inline-size; }
.sn-card[data-category="consultancy"] .sn-card-footer { padding-inline: 10px; gap: 4px; }
.sn-card[data-category="consultancy"] .sn-card-label { font-size: clamp(18px, calc(6.3cqi + 2px), 24px); }
html:lang(en) .sn-card[data-category="consultancy"] .sn-card-label { white-space: nowrap; }
.sn-card[data-category="consultancy"] .sn-circle { width: 36px; height: 36px; }
@container consultancy-card (max-width: 270px) {
  .sn-card[data-category="consultancy"] .sn-card-footer { padding-inline: 6px; }
  .sn-card[data-category="consultancy"] .sn-circle { width: 32px; height: 32px; }
}
@container consultancy-card (max-width: 243px) {
  html:lang(en) .sn-card[data-category="consultancy"] .sn-card-label { white-space: normal; }
}
.sn-circle { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; background: #e0e7d7; color: #153c2f; }
.sn-card:hover .sn-circle { background: #cbd9bd; }
.sn-multi-card { align-items: center; justify-content: center; background: #e1e8d8; border-color: #e1e8d8; text-align: center; padding: 22px 14px; }
.sn-multi-icon { width: 58px; height: 58px; margin-bottom: 19px; }
.sn-multi-card .sn-card-label { margin-bottom: 6px; }
.sn-multi-description { color: #656b62; font-size: 19px; line-height: 1.35; }
.sn-multi-card .sn-circle { margin-top: 14px; background: #d2dfc3; }
.sn-how { margin-top: 0; border-top: 1px solid #f5f2eb; background: #fffdf9; scroll-margin-top: 24px; }
.sn-step-number { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--sn-gold); color: #263b2c; font-size: 23px; font-weight: 700; }
.sn-selection-note { margin: 15px 0 0; padding: 13px 17px; border-radius: 10px; background: #e8eee0; font-size: 16px; }
.sn-selection-note button { margin-left: 12px; border: 0; padding: 0; color: var(--sn-ink); background: none; text-decoration: underline; }
.sn-dialog { width: min(510px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; padding: 30px; border: 1px solid #d4dccd; border-radius: 20px; background: #fcfaf5; color: #153c2f; box-shadow: 0 25px 100px #153c2f30; }
.sn-dialog::backdrop { background: #0e302970; backdrop-filter: blur(3px); }
.sn-dialog h2 { margin: 14px 0 12px; font-size: 30px; font-weight: 700; line-height: 1.25; }
.sn-dialog p { color: #62665d; font-size: 18px; line-height: 1.65; }
.sn-dialog-close { float: right; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: -9px -9px 0 10px; border: 1px solid #d5ddcf; border-radius: 50%; background: transparent; color: var(--sn-ink); font-size: 25px; line-height: 1.35; }
.sn-multi-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.sn-multi-options label { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid #d6decf; border-radius: 9px; font-size: 16px; line-height: 1.4; cursor: pointer; }
.sn-multi-options label:has(input:checked) { background: #e1e9d8; border-color: #527948; }
.sn-multi-options input { accent-color: var(--sn-ink); width: 17px; height: 17px; flex-shrink: 0; }
.sn-dialog .sn-cta { width: 100%; }
.sn-dialog .sn-cta:disabled { opacity: .45; cursor: default; }

/* Platform introduction: preserve the original palette, wordmark and photography. */
.sn-home h1, .sn-home h2, .sn-home h3, .sn-home p, .sn-home a, .sn-home button { overflow-wrap: anywhere; }
.sn-home .sn-brand-wordmark { overflow-wrap: normal; }
.sn-header .sn-nav-link { white-space: nowrap; }
.sn-desktop-nav { justify-self: center; }
.sn-login { gap: 8px; }
.sn-login-icon { width: 18px; height: 18px; flex-shrink: 0; }
.sn-login span { min-width: 0; }
.sn-menu-panel { width: 280px; max-width: calc(100vw - 32px); max-height: 70vh; overflow-y: auto; }
.sn-menu-panel a, .sn-menu-panel button { min-height: 44px; line-height: 1.5; }
.sn-mobile-nav summary { min-height: 44px; min-width: 44px; justify-content: center; border: 1px solid #d5decf; border-radius: 10px; }
.sn-hero-copy { min-width: 0; }
.sn-hero h1 { text-wrap: balance; }
.sn-hero p { line-height: 1.6; letter-spacing: 0; }
.sn-hero-cta { margin-top: 26px; }
.sn-hero-photo { min-width: 0; }
.sn-section { padding: 72px 0; scroll-margin-top: 24px; }
.sn-section-heading { padding: 0; }
.sn-section-heading h2 { margin-bottom: 16px; text-wrap: balance; }
.sn-section-heading p { max-width: 900px; line-height: 1.65; }
.sn-website-options { margin-top: 64px; background: #f1f0e7; border-block: 1px solid #e6e7dc; }
.sn-path-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
.sn-path-card { min-width: 0; padding: 28px; border: 1px solid #dce2d4; border-radius: 16px; background: #fcfaf5; display: grid; grid-template-rows: subgrid; grid-row: span 4; row-gap: 0; }
.sn-home h3 { margin: 18px 0 10px; font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -.025em; }
.sn-path-card p, .sn-tool p, .sn-journey p, .sn-resume-panel p, .sn-about p { margin: 0; font-size: 18px; line-height: 1.7; color: #576158; }
.sn-path-card .sn-path-tagline { color: var(--sn-ink); font-weight: 500; text-wrap: pretty; }
.sn-path-benefits { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid #e2e5d9; }
.sn-path-benefits li { display: flex; align-items: flex-start; gap: 10px; color: #576158; font-size: 17px; line-height: 1.65; }
.sn-path-benefits svg { width: 18px; height: 18px; margin-top: 3px; color: var(--sn-ink); flex-shrink: 0; }
.sn-path-benefits span { min-width: 0; overflow-wrap: anywhere; }
.sn-tool-icon { display: inline-flex; justify-content: center; align-items: center; width: 48px; height: 48px; border-radius: 14px; background: #e0e7d7; flex-shrink: 0; }
.sn-path-context { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 24px; }
.sn-path-context p { max-width: 850px; line-height: 1.7; font-size: 18px; }
.sn-text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-underline-offset: 5px; line-height: 1.5; }
.sn-text-link svg { flex-shrink: 0; width: 20px; height: 20px; }
.sn-path-context a { max-width: 240px; flex-shrink: 0; }
.sn-availability { display: flex; align-items: flex-start; gap: 10px; color: #53624f; font-size: 16px; line-height: 1.6; margin: 20px 0 0; }
.sn-availability svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; }
.sn-eyebrow { display: block; margin-bottom: 12px; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #6a713e; }
.sn-tools-status { font-size: 17px; line-height: 1.7; color: #596653; margin: 20px 0 32px; padding-left: 18px; border-left: 3px solid #dcb76c; }
.sn-tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 40px; }
.sn-tool { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.sn-tool h3 { margin-top: 3px; font-size: 23px; }
.sn-tool p { font-size: 17px; }
.sn-journey { list-style: none; padding: 0; margin: 36px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.sn-journey li { min-width: 0; }
.sn-resume-panel { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(160px, 240px); align-items: start; gap: 24px; padding: 28px; margin-top: 32px; border: 1px solid #d9e0d1; border-radius: 16px; background: #f0f3ea; }
.sn-resume-panel h3 { margin-top: 0; }
.sn-resume-panel .sn-resume-note { font-size: 16px; margin-top: 8px; }
.sn-resume-icon { margin-top: 2px; }
.sn-about { background: #e7ecdf; }
.sn-about-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.sn-about h2 { margin: 0; font-size: clamp(30px, 3.2vw, 42px); font-weight: 700; line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.sn-about .sn-text-link { margin-top: 18px; }
.sn-home a.sn-card { color: #0a1711; }
html:lang(zh-Hans) .sn-home h1, html:lang(zh-Hans) .sn-home h2, html:lang(zh-Hans) .sn-home h3, html:lang(zh-Hans) .sn-card-label { letter-spacing: 0; line-height: 1.35; }
@media (max-width: 1359px) {
  .sn-header-inner { grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; }
  .sn-desktop-nav { display: none; }
  .sn-mobile-nav { display: block; }
  .sn-mobile-nav .sn-menu-panel { left: auto; right: 0; top: 48px; }
  .sn-brand-wordmark { font-size: 26px; }
  .sn-brand-icon { width: 48px; }
}
@media (max-width: 1099px) {
  .sn-container { width: calc(100% - 48px); }
  .sn-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .sn-card-label { font-size: 25px; }
  .sn-tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sn-path-card { padding: 22px; }
  .sn-hero { gap: 28px; }
  .sn-hero h1 { font-size: 46px; }
  .sn-journey { gap: 24px; }
  .sn-about-inner { gap: 36px; }
}
@media (max-width: 800px) {
  .sn-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 32px; }
  .sn-hero h1 { font-size: clamp(38px, 6.5vw, 54px); max-width: 680px; }
  .sn-hero-copy > p { max-width: 650px; }
  .sn-section { padding: 48px 0; }
  .sn-path-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sn-path-card { grid-row: auto; grid-template-rows: auto; }
  .sn-path-context { flex-direction: column; align-items: start; gap: 4px; }
  .sn-path-context a { max-width: 100%; }
  .sn-journey { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .sn-resume-panel { grid-template-columns: auto minmax(0, 1fr); padding: 24px; gap: 16px; }
  .sn-resume-panel>a { grid-column: 2; }
  .sn-about-inner { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 700px) {
  .sn-header-inner { grid-template-columns: minmax(0, 1fr) auto; padding-block: 14px; gap: 12px; }
  .sn-header-actions { grid-row: 2; grid-column: 1 / -1; justify-self: stretch; justify-content: space-between; gap: 8px; }
  .sn-header-actions .sn-cta { font-size: 16px; padding: 12px; }
  .sn-header-actions .sn-language-options { left: 0; right: auto; }
  .sn-mobile-nav { grid-row: 1; grid-column: 2; }
  .sn-brand-wordmark { font-size: 25px; }
  .sn-brand { gap: 8px; }
  .sn-brand-icon { width: 42px; height: 42px; }
  .sn-tools-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 599px) {
  .sn-container { width: calc(100% - 36px); }
  .sn-card-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .sn-card-footer { min-height: 76px; padding: 18px 20px; }
  .sn-card-label { font-size: 24px; }
  .sn-multi-card { min-height: 235px; }
  .sn-multi-icon { margin-bottom: 12px; }
  .sn-hero h1 { font-size: clamp(36px, 9vw, 46px); letter-spacing: -1px; }
  .sn-hero-copy > p { font-size: 19px; }
  .sn-website-options { margin-top: 40px; }
  .sn-choices { margin-top: 36px; }
  .sn-multi-options { grid-template-columns: minmax(0, 1fr); }
  .sn-dialog { padding: 22px; }
  .sn-menu-panel { z-index: 20; }
}
@media (max-width: 359px) {
  .sn-brand-wordmark { font-size: 23px; }
  .sn-brand-icon { width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .sn-home *, .sn-home *::before, .sn-home *::after { transition: none !important; scroll-behavior: auto !important; } }
