:root {
  --brand-pink: #d90078;
  --brand-pink-deep: #87004b;
  --brand-green: #8dc63f;
  --ivory: #f8faf8;
  --cream: #edf5e8;
  --charcoal: #25222a;
  --brand-blue: #00a8df;
  --rose: #f4c8df;
  --muted: #655c63;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(31, 31, 31, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: var(--ivory);
  color: var(--charcoal);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button, input, textarea, select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-header {
  margin-bottom: 48px;
  max-width: 720px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-pink);
  margin-bottom: 14px;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  line-height: 1.15;
  margin: 0 0 18px;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2.6rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(2.1rem, 3vw, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 1.7vw, 2rem);
}

p {
  margin: 0 0 18px;
  color: rgba(31, 31, 31, 0.8);
}

.lead {
  font-size: 1.1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 244, 239, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(217, 0, 120, 0.1);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 3px 12px rgba(37, 34, 42, 0.08);
}

.brand-icon {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-name {
  color: var(--brand-pink);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.brand-logo {
  display: block;
  width: 224px;
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu a {
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.96rem;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a.active {
  color: var(--brand-pink);
}

.btn,
.button,
button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 999px;
  padding: 0 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  font-weight: 700;
}

.btn:hover,
.button:hover,
button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(217, 0, 120, 0.16);
}

.btn-primary,
button[type="submit"] {
  background: linear-gradient(135deg, var(--brand-pink), #a8005e);
  color: var(--white);
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: rgba(217, 0, 120, 0.28);
  color: var(--brand-pink);
}

.btn-ghost {
  background: rgba(217, 0, 120, 0.07);
  color: var(--brand-pink);
}

.mobile-toggle {
  display: none;
  border: 1px solid var(--brand-pink);
  background: transparent;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  padding: 0;
}

.mobile-toggle span,
.mobile-toggle::before,
.mobile-toggle::after {
  display: block;
  content: "";
  width: 22px;
  height: 2px;
  background: var(--brand-pink);
  margin: 0 auto 5px;
  border-radius: 4px;
}

.hero {
  position: relative;
  min-height: 700px;
  display: grid;
  align-items: center;
  background: url('Img/new-slide2.png') center/cover no-repeat;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: 700px;
  color: var(--white);
  padding: 64px 0;
}

.hero-inner h1,
.hero-inner p,
.hero-inner .eyebrow {
  color: var(--white);
}

.hero-inner .eyebrow {
  color: rgba(255,255,255,0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 32px;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-meta span::before {
  content: "•";
  color: var(--brand-green);
  font-size: 1.4rem;
}

.grid-2,
.grid-3,
.grid-4,
.focus-grid,
.story-grid,
.event-grid,
.gallery-grid,
.partner-grid,
.news-grid,
.info-grid {
  display: grid;
  gap: 28px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(217, 0, 120, 0.08);
}

.card-media {
  position: relative;
  overflow: hidden;
  min-height: 230px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 26px 24px 24px;
}

.card-body h3 {
  margin-bottom: 10px;
}

.card-link {
  color: var(--brand-pink);
  font-weight: 700;
}

.welcome-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
}

.welcome-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 520px;
}

.welcome-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-portrait {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.founder-portrait img {
  width: 100%;
  aspect-ratio: 1056 / 1536;
  object-fit: cover;
}

.founder-awards {
  padding-left: 22px;
}

.founder-awards li {
  margin-bottom: 8px;
}

.accent-box {
  background: linear-gradient(135deg, rgba(135, 0, 75, 0.97), rgba(217, 0, 120, 0.84));
  color: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  margin-top: 24px;
}

.accent-box p,
.accent-box h3 {
  color: var(--white);
}

.mission-grid,
.focus-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.mission-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(217, 0, 120, 0.08);
}

.mission-card.primary {
  background: linear-gradient(135deg, var(--brand-pink-deep), var(--brand-pink) 60%, var(--brand-blue) 100%);
  color: var(--white);
}

.mission-card.primary p,
.mission-card.primary h3 {
  color: var(--white);
}

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(141, 198, 63, 0.16);
  color: var(--brand-pink);
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.focus-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.team-section-header {
  margin-top: 64px;
}

.team-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.focus-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(217, 0, 120, 0.08);
}

.focus-card .card-body {
  padding: 22px 22px 26px;
}

.stats-section {
  background: linear-gradient(135deg, var(--brand-pink-deep), var(--brand-pink));
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.stat-box {
  background: rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.08);
}

.stat-box strong {
  display: block;
  font-size: clamp(2rem, 2.4vw, 2.7rem);
  font-family: Georgia, "Times New Roman", serif;
  margin-bottom: 8px;
}

.stat-box span {
  color: rgba(255,255,255,0.82);
}

.event-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.event-image-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.event-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(217, 0, 120, 0.08);
}

.event-details {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.93rem;
  margin: 16px 0;
}

.event-date {
  min-width: 60px;
  background: rgba(141, 198, 63, 0.16);
  border-radius: 12px;
  padding: 12px 8px;
  color: var(--brand-pink);
  text-align: center;
  font-weight: 700;
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 300px;
  cursor: pointer;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item .caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  background: rgba(31, 31, 31, 0.48);
  color: var(--white);
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
}

.story-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

.story-card .person {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.story-card .person img {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: 50%;
}

.get-involved-panel {
  background: linear-gradient(135deg, var(--cream), rgba(255,255,255,0.6));
  border: 1px solid rgba(217, 0, 120, 0.09);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.partner-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.partner-box {
  display: grid;
  place-items: center;
  min-height: 110px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(217, 0, 120, 0.1);
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.partner-box img {
  display: block;
  max-width: 100%;
  max-height: 100px;
  object-fit: contain;
  object-position: center;
}

.newsletter {
  background: linear-gradient(135deg, var(--cream), rgba(255,255,255,0.7));
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(217, 0, 120, 0.1);
}

.newsletter-form,
.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

input,
textarea,
select {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(217, 0, 120, 0.16);
  background: rgba(255,255,255,0.8);
  padding: 14px 16px;
  color: var(--charcoal);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--charcoal);
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.alert {
  display: none;
  margin-top: 18px;
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
}

.alert.success {
  display: block;
  background: rgba(25, 109, 69, 0.08);
  border: 1px solid rgba(25,109,69,0.18);
  color: #1f5a2f;
}

.alert.error {
  display: block;
  background: rgba(168, 40, 40, 0.08);
  border: 1px solid rgba(168,40,40,0.18);
  color: #8f2d2d;
}

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(135,0,75,0.82), rgba(217,0,120,0.62));
  color: var(--white);
  padding: 110px 0 65px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 0 0;
  background: url('Img/school-768x576.jpg') center/cover no-repeat;
  opacity: 0.32;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1,
.page-hero p,
.page-hero .breadcrumb {
  color: var(--white);
}

.breadcrumb {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.breadcrumb span::after {
  content: "/";
  padding-left: 10px;
  opacity: 0.7;
}

.page-content {
  padding: 80px 0;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.feature-list li {
  background: rgba(255,255,255,0.7);
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(217, 0, 120, 0.1);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.feature-list li::before {
  content: "✓";
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(141,198,63,0.16);
  color: var(--brand-pink);
  font-weight: 700;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.filter-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(217, 0, 120, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--charcoal);
  font-weight: 700;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--brand-pink);
  color: var(--white);
  border-color: var(--brand-pink);
}

.list-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.8);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.8fr 0.8fr 1.2fr;
  gap: 32px;
}

.site-footer h4,
.site-footer p,
.site-footer a,
.site-footer li {
  color: rgba(255,255,255,0.8);
}

.site-footer h4 {
  color: var(--white);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.footer-bottom {
  margin-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0 32px;
  color: rgba(255,255,255,0.7);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.social-links a {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(17, 17, 17, 0.85);
  z-index: 30;
  padding: 24px;
}

.lightbox.active {
  display: grid;
}

.lightbox-inner {
  max-width: 980px;
  width: min(90vw, 980px);
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.lightbox-inner img {
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255,255,255,0.9);
  font-size: 1.4rem;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .grid-3,
  .event-grid,
  .event-image-grid,
  .focus-grid,
  .team-grid,
  .partner-grid,
  .gallery-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .welcome-wrap,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    background: rgba(248,250,248,0.98);
    border: 1px solid rgba(217,0,120,0.1);
    border-radius: 18px;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
  }

  .brand-logo {
    width: 200px;
  }

  .nav-menu.open {
    display: flex;
  }

  .mobile-toggle {
    display: inline-block;
  }

  .grid-3,
  .grid-4,
  .focus-grid,
  .team-grid,
  .partner-grid,
  .gallery-grid,
  .stats-grid,
  .event-grid,
  .event-image-grid,
  .footer-grid,
  .form-grid,
  .mission-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: 620px;
  }

  .nav-action {
    display: none;
  }
}
