@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Manrope:wght@700;800&display=swap");

:root {
  --bg: #fff;
  --surface: #fff;
  --surface-soft: #f7f5fb;
  --border: rgba(92, 43, 130, .14);
  --text: #1f2544;
  --muted: #4f5878;
  --primary: #5c2b82;
  --primary-dark: #3f1c62;
  --teal: #138b98;
  --blue: #2f4aa0;
  --accent: #d7a441;
  --shadow: 0 18px 40px rgba(31, 37, 68, .08);
  --shadow-hover: 0 24px 52px rgba(47, 74, 160, .14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --container: 1280px;
  --gutter: 48px;
  --heading: "Manrope", "Avenir Next", sans-serif;
  --body: "Inter", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--body); -webkit-font-smoothing: antialiased; }
body, button, input { font-family: var(--body); }
h1, h2, h3, .eyebrow, .nav-links, .button, .filter-button, .course-link, .event-date, .course-kicker { font-family: var(--heading); }
h1, h2, h3, p { margin-top: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
.container { width: min(calc(100% - var(--gutter)), var(--container)); margin: 0 auto; }
.site-shell { overflow: hidden; }
.section { position: relative; padding: 96px 0; }
.section-soft { background: var(--surface-soft); }
.eyebrow { display: inline-block; margin-bottom: 15px; color: var(--primary); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin-bottom: 24px; color: var(--primary); font-size: clamp(3.4rem, 6.2vw, 5.9rem); line-height: .97; letter-spacing: -.065em; }
h2 { margin-bottom: 20px; color: var(--primary); font-size: clamp(2.15rem, 4vw, 3.45rem); line-height: 1.04; letter-spacing: -.055em; }
h3 { letter-spacing: -.035em; }
p { color: var(--muted); line-height: 1.75; }
.section-heading { max-width: 750px; margin-bottom: 44px; }
.section-heading.center { margin-right: auto; margin-left: auto; text-align: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 1px solid transparent; border-radius: 12px; font-weight: 700; letter-spacing: -.02em; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; cursor: pointer; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(31, 37, 68, .12); }
.button-primary { color: #fff; background: var(--primary); }
.button-secondary { color: var(--primary); border-color: var(--primary); background: #fff; }

.topbar, .site-header { position: relative; z-index: 20; padding: 30px 0 18px; background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.65)); backdrop-filter: blur(8px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 90px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; color: var(--text); font-size: .96rem; font-weight: 600; letter-spacing: -.02em; }
.nav-links > a { position: relative; padding-bottom: 12px; }
.nav-links > a.active::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 999px; background: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 14px; }

.training-hero { position: relative; min-height: 690px; display: grid; align-items: center; overflow: hidden; background: linear-gradient(115deg, #f8f6fc, #fff 58%, #edf8f8); }
.training-hero::before { content: ""; position: absolute; top: -140px; right: -120px; width: 590px; height: 590px; border-radius: 50%; background: radial-gradient(circle, rgba(47,74,160,.15), transparent 67%); }
.training-hero::after { content: ""; position: absolute; bottom: -190px; left: 38%; width: 460px; height: 460px; border-radius: 50%; background: radial-gradient(circle, rgba(19,139,152,.12), transparent 68%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 72px; padding: 78px 0 100px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--muted); font-size: .9rem; }
.breadcrumb a { color: var(--primary); font-weight: 700; }
.hero-copy p { max-width: 600px; font-size: 1.13rem; }
.hero-art { position: relative; min-height: 390px; display: grid; place-items: center; }
.hero-art-card { position: relative; width: 100%; overflow: hidden; border: 1px solid rgba(92,43,130,.12); border-radius: 30px; background: #71328e; box-shadow: 0 30px 65px rgba(47, 32, 81, .2); transform: rotate(1.5deg); }
.hero-art-card img { width: 100%; min-height: 310px; object-fit: cover; }
.hero-chip { position: absolute; right: -18px; bottom: 18px; max-width: 230px; padding: 20px 24px; border: 1px solid rgba(255,255,255,.7); border-radius: 18px; color: var(--text); background: rgba(255,255,255,.9); box-shadow: var(--shadow); backdrop-filter: blur(12px); font-weight: 700; line-height: 1.45; }

.intro-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: start; gap: 84px; }
.intro-copy .lead { color: var(--text); font-size: 1.22rem; line-height: 1.7; }
.training-points { display: grid; gap: 15px; }
.training-point { display: grid; grid-template-columns: 46px 1fr; gap: 17px; padding: 21px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(31,37,68,.045); }
.point-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--blue)); font: 800 .85rem var(--heading); }
.training-point strong { display: block; margin-bottom: 5px; color: var(--text); font-family: var(--heading); }
.training-point span { color: var(--muted); font-size: .89rem; line-height: 1.5; }

.featured-event { display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.featured-image { min-height: 370px; background: #f2edf7; }
.featured-image img { width: 100%; height: 100%; object-fit: cover; }
.featured-content { position: relative; padding: 50px; }
.event-date { width: 76px; min-height: 83px; display: grid; align-content: center; margin-bottom: 30px; border-radius: 16px; color: #fff; background: var(--primary); text-align: center; text-transform: uppercase; }
.event-date span { font-size: .72rem; letter-spacing: .1em; }
.event-date strong { font-size: 1.8rem; line-height: 1; }
.featured-content h3 { margin-bottom: 14px; color: var(--text); font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.1; }
.event-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin: 24px 0 30px; color: var(--muted); font-size: .92rem; }
.event-meta span::before { content: "•"; margin-right: 9px; color: var(--teal); }

.catalogue-header { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.catalogue-header .section-heading { margin-bottom: 0; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.filter-button { min-height: 42px; padding: 0 17px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: #fff; font-size: .8rem; font-weight: 700; cursor: pointer; }
.filter-button:hover, .filter-button.active { border-color: var(--primary); color: #fff; background: var(--primary); }
.courses-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.course-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(31,37,68,.055); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.course-card:hover { transform: translateY(-6px); border-color: rgba(92,43,130,.28); box-shadow: var(--shadow-hover); }
.course-card[hidden] { display: none; }
.course-image { position: relative; height: 240px; overflow: hidden; background: linear-gradient(135deg, #f6f2fa, #eef7f7); }
.course-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.course-card:hover .course-image img { transform: scale(1.035); }
.course-tag { position: absolute; top: 16px; left: 16px; padding: 7px 11px; border-radius: 999px; color: var(--primary); background: rgba(255,255,255,.92); box-shadow: 0 8px 20px rgba(31,37,68,.08); font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.course-content { min-height: 235px; display: flex; flex-direction: column; padding: 25px; }
.course-content h3 { margin-bottom: 13px; color: var(--text); font-size: 1.25rem; line-height: 1.25; }
.course-content p { margin-bottom: 23px; font-size: .9rem; line-height: 1.62; }
.course-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; color: var(--primary); font-size: .82rem; font-weight: 800; }
.course-link::after { content: "→"; transition: transform .18s ease; }
.course-card:hover .course-link::after { transform: translateX(4px); }

.credential-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; }
.credential-card, .consultancy-card { padding: 40px; border-radius: var(--radius-lg); }
.credential-card { color: #fff; background: linear-gradient(135deg, #2d174d, #263967 62%, #174f64); }
.credential-card h2, .credential-card h3 { color: #fff; }
.credential-card p { color: rgba(255,255,255,.75); }
.credential-list { display: grid; gap: 13px; margin-top: 28px; }
.credential-list div { display: flex; gap: 12px; color: rgba(255,255,255,.9); line-height: 1.5; }
.credential-list div::before { content: "✓"; color: #78d0d6; font-weight: 800; }
.consultancy-card { border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
.consultancy-card h3 { color: var(--primary); font-size: 1.65rem; }

/* Single-course page */
.course-detail-hero { padding: 64px 0 76px; background: linear-gradient(135deg, #f7f5fb, #fff 60%, #edf8f8); }
.course-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 70px; }
.course-kicker { display: inline-flex; margin-bottom: 18px; color: var(--teal); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.course-detail-hero h1 { max-width: 900px; margin-bottom: 0; font-size: clamp(3rem, 5.2vw, 4.7rem); }
.course-detail-image { overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.course-detail-image img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 70px; }
.detail-copy .lead { color: var(--text); font-size: 1.2rem; line-height: 1.7; }
.detail-copy h2 { margin-top: 46px; font-size: 2.2rem; }
.detail-copy ul { display: grid; gap: 13px; padding-left: 22px; color: var(--muted); line-height: 1.65; }
.detail-sidebar { position: sticky; top: 28px; padding: 30px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface-soft); }
.detail-sidebar h3 { margin-bottom: 20px; color: var(--primary); font-size: 1.25rem; }
.detail-fact { padding: 16px 0; border-top: 1px solid var(--border); }
.detail-fact:first-of-type { border-top: 0; padding-top: 0; }
.detail-fact strong { display: block; margin-bottom: 6px; color: var(--text); font-size: .82rem; }
.detail-fact span, .detail-fact a { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.detail-sidebar .button { width: 100%; margin-top: 14px; }
.other-courses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mini-course { display: flex; align-items: center; gap: 18px; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: #fff; }
.mini-course img { width: 82px; height: 82px; flex: 0 0 auto; border-radius: 12px; object-fit: cover; }
.mini-course strong { display: block; margin-bottom: 5px; font-family: var(--heading); line-height: 1.25; }
.mini-course span { color: var(--primary); font-size: .78rem; font-weight: 700; }

.site-footer { width: 100vw; max-width: none; margin-right: calc(50% - 50vw); margin-left: calc(50% - 50vw); padding: 36px max(32px, calc((100vw - var(--container)) / 2)) 28px; color: rgba(255,255,255,.88); background: linear-gradient(90deg, #26124b 0%, #2e1960 45%, #341f72 100%); }
.footer-grid { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1fr 1.12fr; gap: 28px; }
.footer-column { display: flex; flex-direction: column; gap: 12px; }
.footer-brand img { width: 122px; height: auto; margin-bottom: 14px; }
.footer-title { margin-bottom: 2px; color: #fff; font-size: 1rem; font-weight: 700; }
.footer-links { display: grid; gap: 8px; }
.footer-links a, .footer-contact a, .footer-meta a { color: rgba(255,255,255,.86); }
.footer-contact { display: grid; gap: 8px; color: rgba(255,255,255,.86); }
.footer-social { display: flex; gap: 14px; margin-top: 6px; }
.footer-social a { display: inline-flex; color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-meta { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-top: 30px; margin-top: 28px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.68); font-size: .92rem; }
.footer-meta-links { display: inline-flex; align-items: center; gap: 12px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .courses-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .course-detail-grid, .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .other-courses { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .nav { flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding-top: 8px; }
  .nav-links > a { width: 100%; min-height: 42px; padding: 9px 4px; }
  .nav-links > a.active::after { right: auto; bottom: 3px; left: 4px; width: 34px; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 840px) {
  .hero-grid, .intro-grid, .featured-event, .credential-grid, .course-detail-grid, .detail-layout { grid-template-columns: 1fr; gap: 45px; }
  .training-hero { min-height: auto; }
  .hero-art { min-height: 0; }
  .catalogue-header { align-items: flex-start; flex-direction: column; }
  .filters { justify-content: flex-start; }
  .detail-sidebar { position: static; }
  .course-detail-image { max-width: 360px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  :root { --gutter: 28px; }
  .section { padding: 70px 0; }
  .topbar { padding: 16px 0 12px; }
  .brand { width: 100%; justify-content: center; }
  .brand img { width: 82px; }
  .nav-actions { width: 100%; margin-left: 0; }
  .nav-actions .button { width: 100%; }
  .hero-grid { padding: 54px 0 75px; }
  .hero-chip { right: 12px; bottom: -20px; }
  .courses-grid { grid-template-columns: 1fr; }
  .course-image { height: 220px; }
  .featured-content, .credential-card, .consultancy-card { padding: 30px; }
  .footer-meta { align-items: flex-start; flex-direction: column; }
  .site-footer { padding-right: 14px; padding-left: 14px; }
}
