/* =============================
   SilverMyth Global Pathways
   Vibrant Energetic UI — Flexbox Only
   Author: Senior CSS Dev & UI Designer
   ============================= */

/* --------- CSS Reset & Normalize --------- */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Trebuchet MS", Arial, sans-serif; color: #0A2235; background: #FFFFFF; }
h1, h2, h3, h4, h5, h6, p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px 20px; padding: 0; }
a { color: #0A3D62; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; background: none; border: none; cursor: pointer; }
:focus { outline: 2px solid #00B7E6; outline-offset: 2px; }

/* --------- Root Theme Tokens --------- */
:root {
  --brand-primary: #0A3D62; /* deep blue */
  --brand-secondary: #1B5E20; /* deep green */
  --brand-accent: #F5F7FA; /* light neutral */
  --ink-strong: #0A2235; /* rich ink */
  --ink: #16364D;
  --muted: #5D6B7A;
  --surface: #FFFFFF;
  --surface-elev: #FFFFFF;
  --line: #E3E8EF;
  /* Energetic highlights (used sparingly for vibrancy, maintain brand-first palette) */
  --energy-cyan: #00D1FF;
  --energy-pink: #FF2D55;
  --shadow-sm: 0 2px 10px rgba(10, 61, 98, 0.08);
  --shadow-md: 0 8px 24px rgba(10, 61, 98, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
}

/* --------- Global Typography --------- */
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; color: #0A3D62; }
h1 { font-size: 40px; line-height: 1.15; letter-spacing: -0.5px; }
h2 { font-size: 28px; line-height: 1.2; margin-bottom: 16px; }
h3 { font-size: 20px; line-height: 1.3; color: #0A2235; }
p, li { font-size: 16px; line-height: 1.7; color: var(--ink); }
small, .small { font-size: 14px; color: var(--muted); }
strong { color: var(--ink-strong); }

/* --------- Layout Helpers (Flex-only) --------- */
.container {
  display: flex; flex-direction: column; gap: 20px;
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.content-wrapper { display: flex; flex-direction: column; gap: 20px; }
.section { margin-bottom: 60px; padding: 40px 20px; } /* mandatory */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; } /* mandatory */
.card { margin-bottom: 20px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); } /* mandatory */
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; } /* mandatory */
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; } /* mandatory */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); color: var(--ink-strong); } /* mandatory */
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; } /* mandatory */

/* Support for classes used in HTML */
.feature-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.text-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow-sm); flex: 1 1 260px; min-width: 240px; }
.text-section h3 { border-left: 6px solid var(--brand-secondary); padding-left: 10px; }

/* --------- High-energy Buttons --------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease; border: 2px solid transparent; }
.btn.primary { background: var(--brand-secondary); color: #FFFFFF; box-shadow: 0 6px 20px rgba(27, 94, 32, 0.24), 0 0 0 0 rgba(0, 209, 255, 0); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(27, 94, 32, 0.28), 0 0 0 6px rgba(0, 209, 255, 0.12); }
.btn.primary:active { transform: translateY(0); }
.btn.secondary { background: #FFFFFF; color: var(--brand-primary); border-color: var(--brand-primary); box-shadow: 0 6px 20px rgba(10, 61, 98, 0.10); }
.btn.secondary:hover { background: var(--brand-primary); color: #FFFFFF; box-shadow: 0 10px 24px rgba(10, 61, 98, 0.18), 0 0 0 6px rgba(255, 45, 85, 0.10); }
.btn:focus-visible { outline: 3px solid var(--energy-cyan); outline-offset: 2px; }

/* --------- Header --------- */
.site-header { position: sticky; top: 0; z-index: 1000; background: #FFFFFF; border-bottom: 1px solid var(--line); box-shadow: 0 2px 10px rgba(10, 61, 98, 0.06); }
.site-header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; }
.main-nav { display: none; align-items: center; gap: 18px; }
.main-nav a { color: var(--ink); padding: 8px 10px; border-radius: 8px; transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease; font-weight: 600; }
.main-nav a:hover { color: #FFFFFF; background: var(--brand-primary); transform: translateY(-1px); }
.header-cta { display: none; align-items: center; gap: 10px; }

/* --------- Mobile Menu (Burger) --------- */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--brand-primary); color: #FFFFFF; box-shadow: var(--shadow-sm); }
.mobile-menu-toggle:hover { background: #0D4C7C; }
.mobile-menu { position: fixed; right: 0; top: 0; height: 100vh; width: 88%; max-width: 360px; background: #0A3D62; color: #FFFFFF; transform: translateX(100%); transition: transform 0.35s ease; box-shadow: -8px 0 24px rgba(10, 61, 62, 0.35); z-index: 1200; display: flex; flex-direction: column; gap: 16px; padding: 16px; }
.mobile-menu .mobile-menu-close { align-self: flex-end; width: 42px; height: 42px; border-radius: 10px; color: #0A3D62; background: #FFFFFF; }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 12px; border-radius: 10px; color: #FFFFFF; background: rgba(255,255,255,0.06); font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.mobile-nav a:hover { background: rgba(255,255,255,0.12); }
/* Open states supported for multiple JS approaches */
.mobile-menu.is-open, .mobile-menu.open, body.menu-open .mobile-menu { transform: translateX(0%); }
/* Optional dim overlay for body when menu open */
body.menu-open::before { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 1100; }

/* --------- Hero --------- */
.hero { position: relative; background: var(--brand-primary); color: #FFFFFF; overflow: hidden; }
.hero .container { padding-top: 40px; padding-bottom: 40px; }
.hero .content-wrapper { position: relative; z-index: 1; }
.hero h1, .hero p { color: #FFFFFF; }
.hero .cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
/* Energetic decorative bands */
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; }
.hero::before { top: -20px; right: -40px; width: 60%; height: 140px; background: var(--energy-cyan); opacity: 0.16; transform: rotate(8deg); }
.hero::after { bottom: -40px; left: -60px; width: 70%; height: 160px; background: var(--energy-pink); opacity: 0.14; transform: rotate(-6deg); }

/* --------- Utility groups --------- */
.supporting-points ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.supporting-points li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; color: #FFFFFF; }
.supporting-points img { width: 20px; height: 20px; filter: brightness(1000%); }
.language-switcher { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; color: #FFFFFF; width: fit-content; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trust-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; background: #FFFFFF; color: var(--brand-primary); border-radius: 999px; box-shadow: var(--shadow-sm); }
.trust-badges img { width: 16px; height: 16px; }

/* --------- Sections & Lists --------- */
main section { margin-bottom: 60px; }
section .container { gap: 24px; }
.benefit-list ul, .feature-grid, .stat-highlights, .cta-group { margin-top: 4px; }
.benefit-list ul { display: flex; flex-direction: column; gap: 8px; }
.benefit-list li { padding-left: 0; list-style: none; position: relative; display: flex; align-items: center; gap: 8px; }
.stat-highlights { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); }

/* --------- Testimonials (High Contrast) --------- */
.testimonial-card p { margin: 0; color: var(--ink); }
.testimonial-card strong { color: var(--ink-strong); }

/* --------- Footer --------- */
.site-footer { background: var(--brand-accent); border-top: 1px solid var(--line); }
.site-footer .container { padding-top: 32px; padding-bottom: 32px; }
.site-footer .content-wrapper { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer .text-section { flex: 1 1 240px; min-width: 220px; background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow-sm); }
.site-footer a { color: var(--brand-primary); }
.site-footer a:hover { text-decoration: underline; }

/* --------- Links & Micro-interactions --------- */
a { position: relative; transition: color 0.15s ease; }
a:hover { color: #0D4C7C; }
a:focus-visible { outline: 3px solid var(--energy-pink); outline-offset: 2px; }

/* --------- Breadcrumbs (where present) --------- */
nav[aria-label="Breadcrumbs"] { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: #E6F0F7; }
nav[aria-label="Breadcrumbs"] a { color: #E6F0F7; }
nav[aria-label="Breadcrumbs"] span { color: #FFFFFF; font-weight: 700; }

/* --------- Forms & Inputs (generic future-proof) --------- */
input, select, textarea { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); box-shadow: var(--shadow-sm); }
input:focus, select:focus, textarea:focus { border-color: var(--brand-primary); box-shadow: 0 0 0 4px rgba(0,209,255,0.12); outline: none; }
label { font-weight: 700; color: var(--ink-strong); margin-bottom: 6px; display: inline-flex; }

/* --------- Cards (generic) --------- */
.card .card-title { font-weight: 700; font-size: 18px; color: var(--ink-strong); }
.card .card-body { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }

/* --------- Tables (policy pages) --------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }
th { background: var(--brand-accent); color: var(--ink-strong); }

/* --------- Cookie Consent (Banner + Modal) --------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; display: flex; flex-direction: column; gap: 12px; background: #0A3D62; color: #FFFFFF; padding: 16px 18px; border-top: 4px solid var(--energy-cyan); transform: translateY(110%); transition: transform 0.35s ease; box-shadow: 0 -10px 24px rgba(0,0,0,0.18); }
.cookie-banner.is-visible, body.show-cookie-banner .cookie-banner { transform: translateY(0%); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-content p,.cookie-content strong {color: white;}
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .btn { padding: 10px 14px; border-radius: 12px; }
.cookie-accept { background: var(--brand-secondary); color: #FFFFFF; }
.cookie-reject { background: #FFFFFF; color: var(--brand-primary); border: 2px solid #FFFFFF; }
.cookie-settings { background: transparent; color: #FFFFFF; border: 2px solid rgba(255,255,255,0.7); }
.cookie-accept:hover { box-shadow: 0 8px 20px rgba(27,94,32,0.28); }
.cookie-reject:hover, .cookie-settings:hover { background: rgba(255,255,255,0.08); }

/* Cookie Preferences Modal */
.cookie-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1600; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; display: flex; align-items: center; justify-content: center; }
.cookie-modal { width: 92%; max-width: 560px; background: #FFFFFF; color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 20px; display: flex; flex-direction: column; gap: 14px; transform: translateY(10px); transition: transform 0.3s ease; border: 2px solid var(--brand-primary); }
.cookie-modal header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
/* Open state */
.cookie-modal-overlay.open, body.cookie-modal-open .cookie-modal-overlay { opacity: 1; pointer-events: auto; }
.cookie-modal-overlay.open .cookie-modal, body.cookie-modal-open .cookie-modal-overlay .cookie-modal { transform: translateY(0); }

/* --------- Responsive (Mobile-first) --------- */
@media (min-width: 540px) {
  h1 { font-size: 44px; }
}

@media (min-width: 768px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }
  .hero .container { padding-top: 60px; padding-bottom: 60px; }
  .content-wrapper { gap: 24px; }
  .text-image-section { flex-direction: row; }
  .hero::before { height: 180px; }
  .hero::after { height: 200px; }
}

@media (min-width: 992px) {
  h1 { font-size: 52px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
  .site-header .container { gap: 24px; }
  .feature-grid { justify-content: space-between; }
  .text-section { flex: 1 1 calc(50% - 12px); }
}

/* --------- Page-specific Touches --------- */
/* Hero breadcrumbs on programs/about/privacy/gdpr/cookies/terms */
.hero nav[aria-label="Breadcrumbs"] a:hover { text-decoration: underline; }
/* Index lists */
.stat-highlights strong { color: #0A3D62; }
/* Testimonials spacing */
.testimonial-card + .testimonial-card { margin-top: 10px; }

/* --------- Accessibility & Focus Visibility --------- */
.btn:focus-visible, .mobile-menu-toggle:focus-visible, .mobile-menu-close:focus-visible { outline: 3px solid var(--energy-cyan); outline-offset: 3px; }

/* --------- Safety Spacing Rules --------- */
main section .content-wrapper > * { margin-bottom: 0; }
/* Ensure minimum spacing between content blocks */
.content-wrapper > * + * { margin-top: 10px; }
/* Increase breathing room around cards */
.text-section, .testimonial-card, .card { margin-bottom: 20px; }

/* --------- Icons in text lines --------- */
.text-section p img, .text-section li img, .supporting-points img { flex: 0 0 auto; }
.text-section p a, .text-section li a { text-decoration: underline; }

/* --------- Admissions ordered lists styling --------- */
ol { padding-left: 20px; }
ol li { margin-bottom: 8px; }

/* --------- Subtle dividers for policy pages --------- */
.hero p em { opacity: 0.9; }

/* --------- Print adjustments (basic) --------- */
@media print {
  .site-header, .site-footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; }
  a { color: #000; text-decoration: underline; }
}

/* --------- Compliance Guardrails --------- */
/* No CSS Grid or Columns used. All layout containers rely on display:flex. */
