/* ============================================================
   STOCK SCHOLARS — Universal Stylesheet
   style.css · Shared across all pages
   ============================================================ */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --bg-primary: #F0EDE5;
  --bg-secondary: #F7F7FE;
  --brand: #004643;
  --brand-light: #005c58;
  --amber: #f9bc60;
  --coral: #e16162;
  --purple: #7c5cbf;
  --text-dark: #1a1a1a;
  --text-muted: #5a6a69;
  --white: #ffffff;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --shadow-soft: 0 8px 40px rgba(0, 70, 67, .12);
  --shadow-card: 0 4px 24px rgba(0, 70, 67, .08);
  --mono: 'JetBrains Mono', monospace;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--bg-primary);
  color: var(--text-dark);
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  color: var(--brand);
}

h4,
h5,
h6 {
  font-family: 'Lato', sans-serif;
  color: var(--brand);
}

/* ── Utilities ──────────────────────────────────────────────── */
.section-pad {
  padding: 100px 0;
}

/* Default reveal: visible. GSAP adds .gsap-ready to animate in. */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

.reveal.gsap-ready {
  opacity: 0;
  transform: translateY(40px);
}

.eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: .65rem;
  display: block;
}

.sec-h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

/* ── Scroll Progress Bar ────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--amber), var(--coral));
  z-index: 9999;
  width: 0%;
  pointer-events: none;
}

/* ── Buttons ────────────────────────────────────────────────── */
/* Primary: Amber fill */
.btn-primary-custom,
.btn-amber {
  background: var(--amber);
  color: var(--brand);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: .85rem 2rem;
  border-radius: 3rem;
  border: none;
  cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .25s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.btn-primary-custom:hover,
.btn-amber:hover {
  background: #f5ad40;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(249, 188, 96, .4);
  color: var(--brand);
}

/* Outline: Brand border */
.btn-outline-custom,
.btn-outline-brand {
  background: transparent;
  color: var(--brand);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: .8rem 1.75rem;
  border-radius: 3rem;
  border: 2px solid var(--brand);
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.btn-outline-custom:hover,
.btn-outline-brand:hover {
  background: var(--brand);
  color: var(--white);
  transform: translateY(-2px);
}

/* Solid: Brand fill */
.btn-brand {
  background: var(--brand);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: .8rem 1.75rem;
  border-radius: 3rem;
  border: none;
  cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .25s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.btn-brand:hover {
  background: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 70, 67, .3);
  color: var(--white);
}

/* Solid: Coral fill */
.btn-coral {
  background: var(--coral);
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: .8rem 1.75rem;
  border-radius: 3rem;
  border: none;
  cursor: pointer;
  transition: background .25s, transform .2s, box-shadow .25s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.btn-coral:hover {
  background: #c94e4f;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(225, 97, 98, .35);
  color: var(--white);
}

/* Ghost: White outline (used on dark bg) */
.btn-ghost-white {
  background: transparent;
  color: rgba(255, 255, 255, .85);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  padding: .8rem 1.75rem;
  border-radius: 3rem;
  border: 2px solid rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.btn-ghost-white:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar-custom {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
    background-color: var(--bg-primary);
  transition: background .4s, box-shadow .4s, padding .4s;
}

.navbar-custom.scrolled {
  background: rgba(240, 237, 229, .96);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 70, 67, .08);
  padding: .65rem 0;
}

.navbar-brand-text {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--brand);
  text-decoration: none;
}

.navbar-brand-text span {
  color: var(--amber);
}

.nav-link-custom {
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  color: var(--brand) !important;
  letter-spacing: .04em;
  padding: .4rem .9rem !important;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: color .2s;
}

.nav-link-custom::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: .9rem;
  right: .9rem;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}

.nav-link-custom.active-page::after,
.nav-link-custom:hover::after {
  transform: scaleX(1);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
  transition: color .2s;
}

.mobile-menu a:hover {
  color: var(--amber);
}

@media(max-width:991px) {
  .hamburger {
    display: flex;
  }

  .desktop-nav {
    display: none !important;
  }
}

/* ── Ticker / Trust Bar ─────────────────────────────────────── */
.ticker-section {
  background: var(--brand);
  padding: .9rem 0;
  overflow: hidden;
}

.ticker-track {
  display: flex;
  animation: ticker 30s linear infinite;
  width: max-content;
}

@keyframes ticker {
  0% {
    transform: translateX(0)
  }

  100% {
    transform: translateX(-50%)
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: 0 2.25rem;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
  white-space: nowrap;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  flex-shrink: 0;
}

/* ── Course Cards (shared index + courses listing) ──────────── */
.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0, 70, 67, .14);
}

.course-accent {
  height: 4px;
}

.course-body {
  padding: 2rem 2rem 1.25rem;
  flex: 1;
}

.c-badge {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .28rem .8rem;
  border-radius: 3rem;
  margin-bottom: .85rem;
}

.ba {
  background: rgba(249, 188, 96, .2);
  color: #8a5f0a;
}

.bc {
  background: rgba(225, 97, 98, .14);
  color: #8a2323;
}

.bg {
  background: rgba(0, 70, 67, .1);
  color: var(--brand);
}

.bp {
  background: rgba(124, 92, 191, .12);
  color: #4b2fa0;
}

.c-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: .85rem;
}

.course-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: .55rem;
}

.course-card p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.course-foot {
  padding: 1.25rem 2rem 2rem;
  border-top: 1px solid rgba(0, 70, 67, .07);
}

.learn-link {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .88rem;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap .25s, color .25s;
}

.learn-link:hover {
  gap: .75rem;
  color: var(--coral);
}

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-section {
  background: var(--bg-secondary);
}

.faq-item {
  border-bottom: 1px solid rgba(0, 70, 67, .1);
}

.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.35rem 0;
  cursor: pointer;
  gap: 1rem;
}

.faq-q h4 {
  font-family: 'Lato', sans-serif;
  font-size: .98rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0;
}

.faq-ico {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-size: 1.2rem;
  font-weight: 300;
  transition: transform .3s;
  line-height: 1;
}

.faq-item.open .faq-ico {
  transform: rotate(45deg);
}

.faq-ans {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}

.faq-ans-inner {
  padding-bottom: 1.25rem;
  font-size: .93rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Form Styles ────────────────────────────────────────────── */
.f-label {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .4rem;
  display: block;
}

.f-input {
  width: 100%;
  padding: .78rem 1rem;
  border: 1.5px solid rgba(0, 70, 67, .15);
  border-radius: .65rem;
  font-family: 'Lato', sans-serif;
  font-size: .88rem;
  color: var(--text-dark);
  background: var(--bg-primary);
  outline: none;
  transition: border-color .25s, box-shadow .25s;
  appearance: none;
}

.f-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 70, 67, .1);
}

.f-grp {
  margin-bottom: 1.1rem;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  justify-content: center;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #011e1c;
  color: rgba(255, 255, 255, .62);
  padding: 5rem 0 0;
}

.f-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--white);
}

.f-brand span {
  color: var(--amber);
}

.f-tagline {
  font-size: .88rem;
  line-height: 1.7;
  margin-top: .7rem;
  max-width: 290px;
}

.f-head {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.1rem;
}

.f-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.f-links a {
  color: rgba(255, 255, 255, .62);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
}

.f-links a:hover {
  color: var(--white);
}

.f-contact {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .86rem;
  margin-bottom: .8rem;
}

.f-contact-icon {
  width: 22px;
  height: 22px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Aliases used in toolkit.html */
.f-contact-row {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: .86rem;
  margin-bottom: .8rem;
}

.f-cico {
  width: 22px;
  height: 22px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.f-bottom {
  border-top: 1px solid rgba(255, 255, 255, .07);
  margin-top: 3.5rem;
  padding: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: .8rem;
}

.socials {
  display: flex;
  gap: .65rem;
}

.soc-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, .55);
  font-size: .8rem;
  text-decoration: none;
  transition: background .25s, color .25s;
}

.soc-link:hover {
  background: var(--amber);
  color: var(--brand);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media(max-width:767px) {
  .section-pad {
    padding: 72px 0;
  }
}

/* ── Final CTA (shared: index, toolkit, courses) ────────────── */
.final-cta {
  background: var(--bg-primary);
}

.cta-inner {
  background: linear-gradient(135deg, var(--brand) 0%, #005c58 100%);
  border-radius: var(--radius-xl);
  padding: 5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: rgba(249, 188, 96, .07);
  top: -200px;
  right: -80px;
}

.cta-inner h2 {
  color: var(--white) !important;
  font-size: clamp(1.8rem, 3.2vw, 2.7rem);
  position: relative;
  margin-bottom: 1rem;
}

.cta-inner p {
  color: rgba(255, 255, 255, .7);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
  position: relative;
}

@media(max-width:767px) {
  .cta-inner {
    padding: 3.5rem 1.75rem;
  }
}

/* ── Scroll Hint (shared: courses, toolkit) ─────────────────── */
.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-family: 'Lato', sans-serif;
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .28);
}

.scroll-hint-arrow {
  width: 22px;
  height: 22px;
  border-right: 2px solid rgba(255, 255, 255, .25);
  border-bottom: 2px solid rgba(255, 255, 255, .25);
  transform: rotate(45deg);
  animation: scroll-hint-bounce .9s ease-in-out infinite alternate;
}

@keyframes scroll-hint-bounce {
  from {
    transform: rotate(45deg) translate(-2px, -2px);
  }

  to {
    transform: rotate(45deg) translate(2px, 2px);
  }
}

/* ── Value Cards (shared: index, about) ─────────────────────── */
.value-section {
  background: var(--bg-secondary);
}

.val-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
  height: 100%;
}

.val-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 70, 67, .12);
}

.val-ico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  margin: 0 auto 1.2rem;
}

.val-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .55rem;
}

.val-card p {
  font-size: .87rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── Page Hero Banner (shared dark hero: about, contact, courses, toolkit) ── */
.page-hero {
  background: var(--brand);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.page-hero::before {
  content: '';
  position: absolute;
  width: 650px;
  height: 650px;
  border-radius: 50%;
  background: rgba(249, 188, 96, .07);
  top: -200px;
  right: -180px;
}

.page-hero::after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(249, 188, 96, .05);
  bottom: -100px;
  left: -80px;
}

.page-hero-eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.page-hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--amber);
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 1.5rem;
}

.page-hero h1 em {
  font-style: italic;
  color: var(--amber);
}

.page-hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .7);
  line-height: 1.85;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

/* ── Hero Eyebrow (line-accent variant used on dark heroes) ─── */
.hero-eyebrow {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--amber);
}

/* ── Philosophy Section (shared: index, about) ──────────────── */
.philosophy-section {
  background: var(--bg-secondary);
}

.philo-ico {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: .75rem;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* ── Form Card + Form Section (shared: courses, contact) ─────── */
.form-section {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.form-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(0, 70, 67, .04);
  top: -150px;
  right: -150px;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  z-index: 1;
}