/* =========================
   Global reset & base
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "BR Segma", system-ui, -apple-system, BlinkMacSystemFont,
    "SF Pro Text", "Segoe UI", sans-serif;
  color: #111827;
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   HEADER – Ellen / OKA-style
   ========================= */

/* Transparent header over hero */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255,255,255,0.15);
  color: #ffffff;                /* white text over hero */
  transition: background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  backdrop-filter: blur(6px);    /* subtle glass effect */
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

/* Logo */
.site-logo a {
  display: inline-flex;
  align-items: center;
}

.site-logo img {
  height: 40px;
}

/* Desktop nav */

.main-nav {
  margin-left: 40px;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
  align-items: center;
}

.menu > li > a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 0;
  position: relative;
  color: inherit;   /* from header: white initially, dark on scroll */
  opacity: 0.9;
}

.menu > li > a:hover {
  opacity: 1;
}

.menu > li > a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #fa394a;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.menu > li:hover > a::after {
  transform: scaleX(1);
}

/* Dropdowns */

.has-sub {
  position: relative;
}

.sub-menu {
  list-style: none;
  margin: 0;
  padding: 10px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  color: #111827;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border-radius: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.18s ease;
  z-index: 40;
}

.has-sub:hover > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sub-menu li {
  position: relative;
}

.sub-menu > li > a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.sub-menu > li > a:hover {
  background: #f3f4f6;
}

/* Nested fly-out submenus */
.sub-menu .has-sub > .sub-menu {
  top: 0;
  left: 100%;
}

/* Header actions (Apply button + burger) */

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.btn-apply {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(135deg, #ff445e, #ff6a2a);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(250, 57, 74, 0.55);
  border: none;
}

.btn-apply:hover {
  background: linear-gradient(135deg, #ff304a, #ff5a17);
}

/* Mobile toggle button */

.nav-toggle {
  display: none;
  width: 32px;
  height: 24px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: currentColor; /* follows header text color */
  border-radius: 999px;
}

/* ===== Sticky / scrolled state – turns white ===== */

/* (optional older class you may use somewhere) */
.site-header.is-solid {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Active class we’ll use from JS */
.site-header.scrolled {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

/* Switch menu text to dark when sticky */
.site-header.scrolled .menu > li > a {
  color: #111827;
}

.site-header.scrolled .btn-apply {
  color: #ffffff;
  background: #fa394a;
  box-shadow: 0 16px 32px rgba(250, 57, 74, 0.35);
}

.site-header.scrolled .nav-toggle span {
  background: #111827;
}

/* =========================
   MAIN & FOOTER
   ========================= */

/* No top padding so hero image starts behind header */
.site-main {
  padding: 0 0 40px;
}

.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 18px 0 24px;
  font-size: 13px;
  color: #6b7280;
}

/* =========================
   Responsive – header & nav
   ========================= */

@media (max-width: 1024px) {
  .header-inner {
    padding-inline: 16px;
    min-height: 64px;
  }

  /* MOBILE NAV PANEL (right slide-in) */
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 280px;

    background: #ffffff;             /* ✅ solid white */
    color: #111827;

    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 88px 24px 32px;
    box-shadow: -18px 0 40px rgba(15, 23, 42, 0.18);

    z-index: 2100;                   /* ✅ above overlay & hero */
    overflow-y: auto;
  }

  /* When nav-open is set by JS, show the panel */
  body.nav-open .main-nav {
    transform: translateX(0);
  }

  /* MOBILE MENU STRUCTURE */
  .menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .menu > li {
    width: 100%;
  }

  .menu > li > a {
    width: 100%;
    padding: 8px 0;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #111827;
  }

  .menu > li > a::after {
    display: none; /* no underline animation on mobile */
  }

  .sub-menu {
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 4px 0 8px 12px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    color: #374151;
  }

  .sub-menu > li > a {
    padding: 5px 0;
    font-size: 12px;
    color: #374151;
  }

  /* Hamburger visible on mobile */
  .nav-toggle {
    display: flex;
  }

  /* Slightly reduce main content top padding on mobile */
  .site-main {
    padding-top: 84px;
  }
}

/* DARK OVERLAY BEHIND MOBILE NAV */
body.nav-open {
  overflow: hidden;  /* prevent page scroll behind menu */
}

body.nav-open::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 2050;      /* between hero and nav panel */
}



@media (max-width: 640px) {
  .btn-apply {
    padding-inline: 18px;
  }

  .main-nav {
    width: 240px;
  }
}

/* ===================== HERO SECTION ===================== */

.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 80px; /* extra top because of fixed header */

  /* background image */
  background: url("https://ellenschool.digitalmandeep.com/assets/images/hero_image.jpeg")
    center/cover no-repeat;

  color: #ffffff;
}

/* subtle dark overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38); /* increase/decrease for more/less darkness */
  backdrop-filter: blur(1px);
}

.hero-inner {
  position: relative;
  max-width: 800px;
  text-align: center;
  z-index: 2;
}

/* text styles */
.hero-pretitle {
  letter-spacing: 0.15em;
  font-size: 13px;
  opacity: 0.9;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.hero-title {
  font-size: 48px;
  line-height: 1.2;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero-title span {
  color: #ff4b5c;
}

.hero-text {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 32px;
  opacity: 0.9;
}

/* buttons */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 24px;
}

.btn-primary {
  background: #fa394a;
  color: #fff;
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(250, 57, 74, 0.3);
}

.btn-primary:hover {
  background: #e41e38;
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.7);
  padding: 12px 26px;
  border-radius: 50px;
  font-weight: 600;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.06);
}

.affiliation {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0.85;
}

/* HERO – mobile */
@media (max-width: 768px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: 34px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }
}

/* =========================================================
   Ellen – Site Visit & Workshop (News grid)
   ========================================================= */

.ellen-news {
  padding: 70px 0 60px;
  background: #ffffff;
}

.ellen-news__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header row */
.ellen-news__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.ellen-news__title {
  margin: 0;
  font-size: 24px;
}

.ellen-news__link {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #111827;
  border-bottom: 1px solid rgba(17, 24, 39, 0.3);
  padding-bottom: 2px;
}

/* GRID LAYOUT */
.ellen-news__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* BASE CARD */
.ellen-news__item {
  position: relative;
  background: #f9fafb;
  overflow: hidden;
  border-radius: 4px;
  min-height: 230px;
}

.ellen-news__card-link {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

/* Fixed image height for all cards */
.ellen-news__image-wrap {
  width: 100%;
  height: 210px;
  overflow: hidden;
}

.ellen-news__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Content */
.ellen-news__content {
  padding: 14px 16px 18px;
  background: #ffffff;
}

.ellen-news__content--light {
  color: #f9fafb;
  background: transparent;
}

.ellen-news__meta {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.ellen-news__headline {
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 6px;
}

.ellen-news__excerpt {
  font-size: 13px;
  line-height: 1.55;
  color: #6b7280;
  margin: 0;
}

/* Accent / dark cards */
.ellen-news__item--accent,
.ellen-news__item--dark {
  color: #f9fafb;
}

.ellen-news__overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.ellen-news__overlay--accent {
  background: #ef4444;
}

.ellen-news__overlay--dark {
  background: linear-gradient(
    160deg,
    rgba(15, 23, 42, 0.15),
    rgba(15, 23, 42, 0.9)
  );
}

/* For accent/dark cards, make image fill card and text sit at bottom */
.ellen-news__item--accent .ellen-news__image-wrap,
.ellen-news__item--dark .ellen-news__image-wrap {
  height: 100%;
}

.ellen-news__item--accent .ellen-news__content,
.ellen-news__item--dark .ellen-news__content {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
}

/* Hover interaction */
.ellen-news__item:hover img {
  transform: scale(1.05);
  transition: transform 0.35s ease;
}

.ellen-news__item:hover {
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

/* News – responsive */
@media (max-width: 1024px) {
  .ellen-news__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .ellen-news {
    padding: 50px 0;
  }

  .ellen-news__grid {
    grid-template-columns: 1fr;
  }

  .ellen-news__item--accent .ellen-news__image-wrap,
  .ellen-news__item--dark .ellen-news__image-wrap {
    height: 260px;
  }
}

/* =========================================================
   Ellen – Upcoming Events
   ========================================================= */

.ellen-events {
  padding: 70px 0 80px;
  background: #ffffff;
}

.ellen-events__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.ellen-events__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.ellen-events__title {
  margin: 0;
  font-size: 24px;
}

.ellen-events__link {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #111827;
  border-bottom: 1px solid rgba(17, 24, 39, 0.4);
  padding-bottom: 2px;
}

/* Layout */
.ellen-events__layout {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* Slider wrapper */
.ellen-events__slider-wrap {
  position: relative;
}

/* Swiper container */
.ellen-events__slider {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

/* Slide / image */
.ellen-events__slide {
  height: 100%;
}

.ellen-events__image {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  border-radius: 4px;
}

.ellen-events__image img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center;
  display: block;
}

.ellen-events__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(0, 0, 0, 0.12),
    rgba(15, 23, 42, 0.45)
  );
}

/* Date badge */
.ellen-events__date-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  width: 66px;
  height: 84px;
  border-radius: 4px;
  border: 1px solid #ffffff;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  text-transform: uppercase;
}

.ellen-events__date-day {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.ellen-events__date-month {
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* Pagination dots */
.ellen-events__pagination.swiper-pagination-bullets {
  position: absolute;
  bottom: 16px;
  left: 24px;
  right: auto;
  text-align: left;
}

.ellen-events__pagination .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.7);
  opacity: 1;
}

.ellen-events__pagination .swiper-pagination-bullet-active {
  background: #ffffff;
}

/* Arrows */
.ellen-events__arrow {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.3);
  border: none;
}

.ellen-events__arrow::after {
  font-size: 16px;
  color: #111827;
}

.ellen-events__arrow--left {
  left: 16px;
  right: auto;
}

.ellen-events__arrow--right {
  right: 16px;
  left: auto;
}

/* RIGHT COLUMN – Details Card */
.ellen-events__details {
  position: relative;
}

.ellen-events__details-inner {
  background: #f9fafb;
  border-radius: 4px;
  padding: 26px 24px;
  border: 1px solid #e5e7eb;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ellen-events__details-title {
  font-size: 18px;
  margin: 0 0 10px;
}

.ellen-events__details-text {
  font-size: 14px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0 0 14px;
}

.ellen-events__details-meta {
  margin: 0 0 16px;
  padding-left: 18px;
  font-size: 13px;
  color: #4b5563;
}

.ellen-events__details-meta li + li {
  margin-top: 4px;
}

.ellen-events__btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: #111827;
  color: #f9fafb;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ellen-events__btn:hover {
  background: #000000;
  transform: translateY(-1px);
}

/* Events – responsive */
@media (max-width: 1024px) {
  .ellen-events__layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .ellen-events {
    padding: 60px 0 70px;
  }

  .ellen-events__layout {
    grid-template-columns: 1fr;
  }

  .ellen-events__details-inner {
    margin-top: 10px;
  }

  .ellen-events__image {
    min-height: 240px;
  }
}