:root {
  --navy:  #1C3664;
  --orange: #F26D20;
  --rose-white: #FCF1ED;
  --white: #ffffff;
  --muted: #4b5563;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: 'Poppins', system-ui, sans-serif; line-height: 1.6; color: #111; background: #fff; }
img { max-width: 100%; display: block; }
h2 { margin: 0; font-size: clamp(1.9rem, 2.5vw, 2.7rem); line-height: 1.1; color: var(--navy); font-weight: 700; }

.container { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; }

/* ─── Header ─── */
.site-header {
  background: #fff;
  border-bottom: 1px solid rgba(28,54,100,.09);
  position: sticky; top: 0; z-index: 10;
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem; padding: 0.8rem 0;
}
.brand { justify-self: start; display: inline-flex; align-items: center; }
.brand img { height: 42px; width: auto; }
.site-nav { display: flex; gap: 2rem; align-items: center; justify-self: center; }
.site-nav a {
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: .95rem;
  position: relative; padding: .45rem .05rem;
  transition: color 140ms;
}
.site-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; border-radius: 999px;
  background: var(--orange);
  transform: scaleX(0); transform-origin: center;
  transition: transform 160ms ease;
}
.site-nav a:hover { color: var(--orange); }
body[data-page="home"] .site-nav a[href="index.html"],
body[data-page="events"] .site-nav a[href="events.html"] {
  color: var(--orange);
}
body[data-page="home"] .site-nav a[href="index.html"]::after,
body[data-page="events"] .site-nav a[href="events.html"]::after,
.site-nav a:hover::after {
  transform: scaleX(1);
}

/* ─── Hero ─── */
.hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 6.5rem 0 5.5rem;
  display: flex; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center; display: none;
}
.hero-bg.active { display: block; }
.hero-bg.active::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,28,55,.78) 0%, rgba(14,28,55,.58) 48%, rgba(14,28,55,.34) 100%),
    linear-gradient(180deg, rgba(14,28,55,.18) 0%, rgba(14,28,55,.52) 100%);
}
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.hero-deco-a {
  position: absolute; top: -170px; right: -150px;
  width: 580px; height: 580px; border-radius: 50%;
  border: 88px solid rgba(242,109,32,.1);
}
.hero-deco-b {
  position: absolute; bottom: -100px; left: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  border: 58px solid rgba(255,255,255,.04);
}
.hero-deco-c {
  position: absolute; top: 50%; right: 7%;
  transform: translateY(-50%);
  width: 190px; height: 190px; border-radius: 50%;
  background: rgba(242,109,32,.09);
}
.hero-deco-d {
  position: absolute; top: 28%; right: 14%;
  width: 80px; height: 80px; border-radius: 50%;
  border: 18px solid rgba(255,255,255,.07);
}
.hero-content { max-width: 680px; position: relative; z-index: 2; }
.eyebrow {
  margin: 0 0 1rem; color: var(--orange);
  letter-spacing: .16em; text-transform: uppercase;
  font-size: .76rem; font-weight: 600;
}
.hero h1 {
  margin: 0 0 1.3rem;
  font-size: clamp(2.4rem, 3.6vw, 4.1rem);
  line-height: 1.08; letter-spacing: -.025em;
  font-weight: 800; color: var(--white);
  text-shadow: 0 14px 34px rgba(8,17,34,.28);
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-description {
  margin: 0 0 2.4rem; max-width: 38rem;
  color: rgba(255,255,255,.78); font-size: 1.03rem; line-height: 1.76;
}
.hero-tagline {
  display: inline-flex; align-items: center; gap: .7rem;
  color: rgba(255,255,255,.48); font-size: .8rem;
  font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
}
.hero-tagline::before {
  content: ''; display: inline-block;
  width: 28px; height: 2px; background: var(--orange); flex-shrink: 0;
}

/* ─── About ─── */
.about-section { padding: 5.5rem 0; }
.about-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4.5rem; align-items: center;
}
.section-label {
  margin: 0 0 .5rem; color: var(--orange);
  font-size: .75rem; text-transform: uppercase;
  letter-spacing: .18em; font-weight: 600;
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-body { color: var(--muted); font-size: 1rem; line-height: 1.82; margin: 0; }
.about-visual { position: relative; }
.about-img-frame {
  aspect-ratio: 4 / 3; border-radius: 1.75rem;
  overflow: hidden; background: var(--rose-white); position: relative;
}
.about-img-frame img { width: 100%; height: 100%; object-fit: cover; display: none; }
.about-img-frame img.visible { display: block; }
.about-deco-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.about-c1 {
  width: 220px; height: 220px; border-radius: 50%;
  border: 38px solid rgba(28,54,100,.12);
}
.about-c2 {
  position: absolute; bottom: 24px; right: 24px;
  width: 90px; height: 90px; border-radius: 50%;
  background: var(--orange); opacity: .2;
}
.about-c3 {
  position: absolute; top: 20px; left: 20px;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--navy); opacity: .12;
}
.about-c4 {
  position: absolute; bottom: 50px; left: 36px;
  width: 32px; height: 32px; border-radius: 50%;
  border: 6px solid rgba(242,109,32,.3);
}
.about-accent {
  position: absolute; bottom: -1.75rem; right: -1.75rem;
  width: 4.5rem; height: 4.5rem; border-radius: 50%;
  background: var(--orange); z-index: -1; opacity: .85;
}
.about-accent-2 {
  position: absolute; top: -1rem; left: -1rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 5px solid var(--navy); opacity: .15; z-index: -1;
}

/* ─── Sectors ─── */
.sectors-section { padding: 0 0 6.5rem; }
.section-header { margin-bottom: 2rem; }
.sector-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.sector-card {
  display: flex; flex-direction: column;
  border-radius: 8px; overflow: hidden;
  text-decoration: none; color: var(--white);
  min-height: 360px; position: relative;
  isolation: isolate;
  box-shadow: 0 18px 50px rgba(15,23,42,.12);
  transition: box-shadow 220ms ease, transform 220ms ease;
}
.sector-card:hover { box-shadow: 0 30px 70px rgba(15,23,42,.2); transform: translateY(-2px); }
.card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 420ms ease;
}
.sector-card:hover .card-bg { transform: scale(1.045); }
.card-overlay {
  position: absolute; inset: 0; z-index: 1;
}
.sector-card.business .card-overlay {
  background:
    linear-gradient(180deg, rgba(8,17,34,.06) 0%, rgba(8,17,34,.72) 100%),
    linear-gradient(135deg, rgba(28,54,100,.78) 0%, rgba(28,54,100,.42) 56%, rgba(28,54,100,.18) 100%);
}
.sector-card.courses .card-overlay {
  background:
    linear-gradient(180deg, rgba(49,22,7,.05) 0%, rgba(64,26,7,.7) 100%),
    linear-gradient(135deg, rgba(242,109,32,.72) 0%, rgba(242,109,32,.42) 56%, rgba(242,109,32,.16) 100%);
}
.card-deco {
  position: absolute; bottom: -90px; right: -90px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255,255,255,.035); z-index: 2; pointer-events: none;
}
.card-deco-b {
  position: absolute; top: -50px; right: 50px;
  width: 170px; height: 170px; border-radius: 50%;
  border: 34px solid rgba(255,255,255,.035); z-index: 2; pointer-events: none;
}
.card-content {
  position: relative; z-index: 3;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  gap: .85rem; padding: 2.25rem; min-height: 360px; height: 100%;
  max-width: 35rem;
}
.sector-kicker {
  color: rgba(255,255,255,.72);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}
.card-content h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.55rem, 2.1vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
}
.card-content p {
  margin: 0; color: rgba(255,255,255,.82);
  font-size: .96rem; line-height: 1.68;
  max-width: 31rem;
}
.sector-link {
  display: inline-flex; align-items: center; gap: .5rem;
  color: #fff; font-weight: 700; font-size: .84rem;
  padding: .68rem 1.15rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.38);
  background: rgba(255,255,255,.08);
  align-self: flex-start; margin-top: .65rem;
  transition: background 180ms, border-color 180ms;
}
.sector-link::after { content: '→'; transition: transform 150ms; }
.sector-card:hover .sector-link { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); }
.sector-card:hover .sector-link::after { transform: translateX(4px); }

/* ─── Event hero ─── */
.event-hero {
  background: var(--navy);
  position: relative; overflow: hidden;
  padding: 5.5rem 0 4.5rem; display: flex; align-items: center;
}
.event-hero .hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; display: none; }
.event-hero .hero-bg.active { display: block; }
.event-hero .hero-bg.active::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,28,55,.78) 0%, rgba(14,28,55,.56) 52%, rgba(14,28,55,.32) 100%),
    linear-gradient(180deg, rgba(14,28,55,.16) 0%, rgba(14,28,55,.5) 100%);
}
.event-hero::before {
  content: ''; position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  border: 68px solid rgba(242,109,32,.1); pointer-events: none; z-index: 1;
}
.event-hero::after {
  content: ''; position: absolute; bottom: -60px; left: -60px;
  width: 250px; height: 250px; border-radius: 50%;
  border: 40px solid rgba(255,255,255,.04); pointer-events: none; z-index: 1;
}
.event-hero .hero-content { position: relative; z-index: 2; }
.event-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  font-weight: 800; color: var(--white); letter-spacing: -.025em;
}
.event-hero .hero-description { color: rgba(255,255,255,.68); font-size: 1rem; margin: 0; }

/* ─── Events list ─── */
.events-list { padding: 5rem 0 6.5rem; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.event-card {
  display: flex; flex-direction: column;
  border-radius: 1.25rem; overflow: hidden;
  background: #fff; border: 1px solid rgba(28,54,100,.09);
  transition: transform 220ms, box-shadow 220ms;
}
.event-card::before {
  content: ''; display: block; height: 3px; flex-shrink: 0;
  background: linear-gradient(90deg, var(--navy), var(--orange));
}
.event-card:hover { transform: translateY(-7px); box-shadow: 0 22px 60px rgba(28,54,100,.12); }
.event-card-img { position: relative; height: 220px; overflow: hidden; flex-shrink: 0; }
.event-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 420ms ease; }
.event-card:hover .event-card-img img { transform: scale(1.06); }
.event-copy { padding: 1.4rem 1.5rem 1.75rem; }
.event-copy h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--navy); font-weight: 700; line-height: 1.35; }
.event-copy p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.65; }

/* ─── Event gallery ─── */
.event-card.has-gallery { cursor: pointer; }
.photo-badge {
  position: absolute; bottom: .55rem; right: .55rem;
  background: rgba(10,15,30,.82); color: #fff;
  font-size: .7rem; font-weight: 600;
  padding: .2rem .55rem .2rem .45rem; border-radius: 2rem;
  z-index: 1; pointer-events: none;
  backdrop-filter: blur(6px);
}
.gallery-cta {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--orange); font-size: .82rem; font-weight: 600;
  margin-top: .8rem;
}
.gallery-cta::after { content: '→'; transition: transform 140ms; }
.event-card.has-gallery:hover .gallery-cta::after { transform: translateX(3px); }

/* ─── Footer ─── */
.site-footer { background: var(--navy); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; padding: 1.5rem 0; font-size: .87rem;
  color: rgba(255,255,255,.52);
}
.footer-inner p { margin: 0; }
.footer-actions { display: flex; align-items: center; gap: 1rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; font-weight: 500; transition: color 140ms; }
.site-footer a:hover { color: var(--orange); }
.site-footer .footer-login {
  color: #fff;
  background: var(--orange);
  border-radius: 999px;
  padding: .52rem 1.05rem;
  font-weight: 700;
}
.site-footer .footer-login:hover {
  color: #fff;
  background: #d95e18;
}

/* ─── Responsive ─── */
@media (max-width: 960px) {
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { max-width: 480px; }
}
@media (max-width: 860px) {
  .sector-grid, .event-grid { grid-template-columns: 1fr; }
  .hero { padding: 4.5rem 0 4rem; }
}
@media (max-width: 680px) {
  .header-inner { grid-template-columns: 1fr; justify-items: center; }
  .brand { justify-self: center; }
  .site-nav { justify-self: center; gap: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-actions { width: 100%; justify-content: space-between; }
  .about-section { padding: 4rem 0; }
  .sectors-section { padding-bottom: 4.5rem; }
  .events-list { padding: 3.5rem 0 5rem; }
  .event-hero { padding: 3.5rem 0 3rem; }
}
