@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,600;0,700;1,400&family=Inter:wght@400;500;600&display=swap');

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; background: #FDFAF5; color: #1A1A2E; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── CSS Variables ─── */
:root {
  --primary:     #2D1B69;
  --primary-mid: #534AB7;
  --accent:      #F5A623;
  --bg-cream:    #FDFAF5;
  --bg-hero:     #F3EEFF;
  --bg-card:     #FFFFFF;
  --text-main:   #1A1A2E;
  --text-muted:  #6B5E9E;
  --text-hint:   #9E94C0;
  --border:      #E4DDD0;
  --border-light:#EDE8F8;
  --r-sm:        8px;
  --r-md:        12px;
  --r-lg:        20px;
  --r-pill:      28px;
  --shadow:      0 2px 16px rgba(45,27,105,0.08);
}

/* ─── Typography ─── */
h1,h2,h3 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.2; color: var(--primary); }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 700; }
h2 { font-size: clamp(24px, 3.5vw, 38px); font-weight: 600; }
h3 { font-size: clamp(18px, 2.5vw, 24px); font-weight: 600; }
p { font-size: 16px; color: var(--text-main); line-height: 1.75; }

/* ─── Navbar ─── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: white; border-bottom: 0.5px solid var(--border);
  padding: 0 60px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow 0.2s;
}
.navbar.scrolled { box-shadow: 0 2px 16px rgba(45,27,105,0.08); }
.navbar-brand { display: flex; align-items: center; gap: 10px; }
.navbar-brand-text .brand-name {
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700;
  color: var(--primary); letter-spacing: 0.08em; line-height: 1;
}
.navbar-brand-text .brand-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-links a { font-size: 14px; color: #4A4060; font-weight: 500; transition: color 0.15s; }
.navbar-links a:hover { color: var(--primary); }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.navbar-hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.navbar-hamburger span { width: 22px; height: 2px; background: var(--primary); border-radius: 2px; transition: 0.2s; }
.navbar-mobile { display: none; flex-direction: column; background: white; border-top: 0.5px solid var(--border); padding: 16px 24px; gap: 12px; }
.navbar-mobile.open { display: flex; }
.navbar-mobile a { font-size: 15px; color: var(--primary); padding: 8px 0; border-bottom: 0.5px solid var(--border-light); }

/* ─── Buttons ─── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: var(--r-pill); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; transition: opacity 0.15s, transform 0.1s; border: none; padding: 11px 28px; }
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: white; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-accent { background: var(--accent); color: var(--primary); font-weight: 600; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 16px; }
.btn-full { width: 100%; }

/* ─── Badge / Pill ─── */
.badge { display: inline-block; font-size: 12px; font-weight: 500; padding: 5px 16px; border-radius: 24px; letter-spacing: 0.05em; }
.badge-indigo { background: #E4D9FC; color: #4A3B99; }
.badge-saffron { background: #FEF0D5; color: #7A4F00; }
.badge-green { background: #E8F5E9; color: #2E7D32; }

/* ─── Hero Section ─── */
.hero {
  background: var(--bg-hero); padding: 80px 60px;
  display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: center; min-height: 560px;
}
.hero-badge { margin-bottom: 20px; }
.hero-title { margin-bottom: 18px; }
.hero-sub { font-size: 17px; color: var(--text-muted); line-height: 1.75; max-width: 460px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-hint); }
.hero-trust-sep { color: var(--border); margin: 0 4px; }
.hero-visual { display: flex; align-items: center; justify-content: center; }

/* ─── Feature Strip ─── */
.features {
  background: white; border-top: 0.5px solid var(--border);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.feature-cell, a.feature-cell { padding: 24px 32px; display: flex; align-items: center; gap: 16px; border-right: 0.5px solid var(--border); }
a.feature-cell { text-decoration: none; color: inherit; cursor: pointer; transition: background 0.15s; }
a.feature-cell:hover { background: #F3EEFF; }
.feature-cell:last-child { border-right: none; }
.feature-icon { width: 42px; height: 42px; background: #EDE8F8; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; color: var(--primary); }
.feature-title { font-size: 14px; font-weight: 600; color: var(--primary); margin-bottom: 4px; }
.feature-desc { font-size: 12px; color: var(--text-hint); line-height: 1.5; }

/* ─── Section wrapper ─── */
.section { padding: 80px 60px; }
.section-sm { padding: 48px 60px; }
.section-bg { background: var(--bg-hero); }
.section-dark { background: var(--primary); }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header p { color: var(--text-muted); max-width: 520px; margin: 12px auto 0; }

/* ─── Cards ─── */
.card { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--r-md); padding: 24px; }
.card-grid { display: grid; gap: 20px; }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ─── Course Cards ─── */
.course-card { background: var(--bg-card); border: 0.5px solid var(--border); border-radius: var(--r-md); padding: 24px; transition: border-color 0.2s; }
.course-card:hover { border-color: var(--primary-mid); }
.course-icon { font-size: 28px; margin-bottom: 12px; }
.course-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.course-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }
.course-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-hint); margin-bottom: 16px; }
.course-enroll { font-size: 13px; font-weight: 500; color: var(--primary); display: flex; align-items: center; gap: 4px; }

/* ─── About / Philosophy teaser ─── */
.about-teaser { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-quote { font-family: 'Playfair Display', serif; font-size: clamp(22px, 3vw, 32px); color: var(--primary); line-height: 1.3; border-left: 3px solid var(--accent); padding-left: 24px; }
.about-source { font-size: 13px; color: var(--text-hint); margin-top: 10px; padding-left: 24px; }
.about-link { color: var(--accent); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; margin-top: 20px; }

/* ─── Testimonials ─── */
.testimonial-card { background: white; border: 0.5px solid var(--border); border-radius: var(--r-md); padding: 28px; }
.testimonial-text { font-size: 15px; color: var(--text-main); line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: #EDE8F8; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; color: var(--primary); }
.author-name { font-size: 14px; font-weight: 600; color: var(--primary); }
.author-role { font-size: 12px; color: var(--text-hint); }

/* ─── CTA Strip ─── */
.cta-strip { background: var(--primary); padding: 64px 60px; text-align: center; }
.cta-strip h2 { color: white; margin-bottom: 12px; }
.cta-strip p { color: rgba(255,255,255,0.70); margin-bottom: 28px; }

/* ─── Page Hero (inner pages) ─── */
.page-hero { background: var(--bg-hero); padding: 60px 60px 48px; position: relative; overflow: hidden; }
.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--text-muted); max-width: 560px; font-size: 17px; }
.page-hero-watermark { position: absolute; right: 60px; top: 50%; transform: translateY(-50%); opacity: 0.06; pointer-events: none; }

/* ─── Auth Pages ─── */
.auth-wrapper { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 42% 58%; }
.auth-panel-left { background: var(--primary); padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-panel-right { background: white; padding: 48px 48px; display: flex; flex-direction: column; justify-content: center; }
.auth-form-wrap { max-width: 420px; width: 100%; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.auth-logo .brand-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: white; letter-spacing: 0.08em; }
.auth-logo .brand-sub { font-size: 11px; color: rgba(255,255,255,0.55); }
.auth-heading { font-family: 'Playfair Display', serif; font-size: 26px; color: white; margin-bottom: 10px; }
.auth-sub { font-size: 14px; color: rgba(255,255,255,0.65); line-height: 1.6; margin-bottom: 24px; max-width: 320px; }
.auth-quote { border-left: 2px solid var(--accent); padding-left: 14px; margin-bottom: 28px; }
.auth-quote .quote-text { font-size: 14px; color: var(--accent); margin-bottom: 3px; }
.auth-quote .quote-trans { font-size: 12px; color: rgba(255,255,255,0.50); font-style: italic; }
.auth-register-prompt { font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.auth-register-btn { display: inline-block; border: 0.5px solid rgba(255,255,255,0.30); color: rgba(255,255,255,0.85); font-size: 13px; padding: 8px 20px; border-radius: var(--r-pill); }
.auth-watermark { position: absolute; right: -60px; bottom: -60px; opacity: 0.06; pointer-events: none; }
.auth-form-heading { font-family: 'Playfair Display', serif; font-size: 28px; color: var(--primary); margin-bottom: 4px; }
.auth-form-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.auth-alert { border-radius: var(--r-sm); padding: 12px 16px; font-size: 13px; display: none; align-items: center; gap: 10px; margin-bottom: 16px; }
.auth-alert.show { display: flex; }
.auth-alert-error { background: #FFF0F0; border: 0.5px solid #FFCDD2; color: #C62828; }
.auth-alert-success { background: #F0FBF4; border: 0.5px solid #C6F0D4; color: #1E6B3C; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 0.5px; background: var(--border); }
.auth-divider span { font-size: 12px; color: var(--text-hint); }
.auth-footer-link { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.auth-footer-link a { color: var(--primary); font-weight: 500; }

/* ─── Forms ─── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 500; color: var(--primary); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 10px 14px; font-size: 14px; font-family: 'Inter', sans-serif;
  background: white; border: 1px solid var(--border); border-radius: var(--r-sm);
  color: var(--text-main); transition: border-color 0.15s;
}
.form-control:focus { outline: none; border-color: var(--primary-mid); }
.form-control.error { border-color: #E53935; }
.form-error { font-size: 12px; color: #C62828; margin-top: 4px; display: none; }
.form-error.show { display: block; }
.pwd-wrap { position: relative; }
.pwd-wrap .form-control { padding-right: 42px; }
.pwd-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-hint); font-size: 18px; padding: 0; }
.form-check-group { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.form-check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-main); cursor: pointer; }
.form-check input { accent-color: var(--primary); width: 16px; height: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }
.forgot-link { font-size: 12px; color: var(--primary-mid); text-align: right; display: block; margin-top: 4px; }

/* ─── Values ─── */
.value-card { background: white; border: 0.5px solid var(--border); border-radius: var(--r-md); padding: 28px 24px; text-align: center; }
.value-icon { font-size: 32px; margin-bottom: 12px; }
.value-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--primary); margin-bottom: 8px; }
.value-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ─── Team card ─── */
.team-card { background: white; border: 0.5px solid var(--border); border-radius: var(--r-md); padding: 28px 24px; text-align: center; }
.team-avatar { width: 72px; height: 72px; background: var(--bg-hero); border: 2px solid var(--border-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-size: 24px; color: var(--primary); margin: 0 auto 14px; }
.team-name { font-family: 'Playfair Display', serif; font-size: 17px; color: var(--primary); margin-bottom: 4px; }
.team-role { font-size: 12px; color: var(--text-hint); }

/* ─── Timeline ─── */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--border-light); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before { content: ''; position: absolute; left: -37px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid white; box-shadow: 0 0 0 2px var(--accent); }
.timeline-year { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 4px; }
.timeline-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--primary); margin-bottom: 6px; }
.timeline-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ─── Footer ─── */
.footer { background: var(--primary); color: white; padding: 56px 60px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer-brand .brand-name { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; letter-spacing: 0.08em; color: white; margin: 12px 0 8px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.60); line-height: 1.6; max-width: 260px; }
.footer-col h4 { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; color: rgba(255,255,255,0.50); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 14px; color: rgba(255,255,255,0.75); transition: color 0.15s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom { border-top: 0.5px solid rgba(255,255,255,0.12); padding: 20px 0; text-align: center; font-size: 12px; color: rgba(255,255,255,0.40); }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-info-icon { width: 42px; height: 42px; background: var(--bg-hero); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; color: var(--primary); }
.contact-info-label { font-size: 12px; color: var(--text-hint); margin-bottom: 3px; }
.contact-info-value { font-size: 14px; color: var(--text-main); font-weight: 500; }

/* ─── Utility ─── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.container { max-width: 1200px; margin: 0 auto; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-btn { padding: 8px 20px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; cursor: pointer; border: 1px solid var(--border); background: white; color: var(--text-muted); transition: all 0.15s; }
.filter-btn.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .navbar { padding: 0 32px; }
  .hero { padding: 60px 32px; }
  .section { padding: 60px 32px; }
  .section-sm { padding: 40px 32px; }
  .cta-strip { padding: 48px 32px; }
  .footer { padding: 48px 32px 0; }
  .page-hero { padding: 48px 32px 40px; }
}
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .navbar-links, .navbar-actions { display: none; }
  .navbar-hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; padding: 48px 20px; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { margin-top: 16px; }
  .features { grid-template-columns: 1fr; }
  .feature-cell { border-right: none; border-bottom: 0.5px solid var(--border); }
  .feature-cell:last-child { border-bottom: none; }
  .section { padding: 48px 20px; }
  .section-sm { padding: 32px 20px; }
  .about-teaser { grid-template-columns: 1fr; }
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-panel-left { display: none; }
  .auth-panel-right { padding: 32px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer { padding: 40px 20px 0; }
  .cta-strip { padding: 40px 20px; }
  .contact-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 40px 20px 32px; }
  .page-hero-watermark { display: none; }
}
