/* Yunfillips Schools Styles */
:root {
  --primary: #1e3a8a;
  --primary-foreground: #f8fafc;
  --accent: #dc2626;
  --accent-foreground: #f8fafc;
  --gold: #fbbf24;
  --background: #fef7ed;
  --foreground: #1e293b;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --border: #e2e8f0;
  --card: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Manrope', system-ui, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header-top {
  background-color: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  padding: 0.5rem 0;
  display: none;
}

@media (min-width: 768px) {
  .header-top {
    display: block;
  }
}

.header-top-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-main {
  background-color: rgba(254, 247, 237, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 3rem;
  width: auto;
}

.logo-text {
  line-height: 1.2;
}

.logo-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-motto {
  font-size: 0.75rem;
  color: var(--accent);
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  text-decoration: none;
  color: rgba(30, 41, 59, 0.8);
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
}

.btn-accent {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid rgba(248, 250, 252, 0.4);
  color: var(--primary-foreground);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
}

@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  padding: 0.75rem 0;
}

.mobile-nav-link {
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--foreground);
  font-weight: 600;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide {
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(30, 58, 138, 0.92) 0%, rgba(30, 58, 138, 0.7) 50%, rgba(30, 58, 138, 0.2) 100%);
}

.hero-content {
  position: relative;
  padding: 7rem 0 10rem;
  color: var(--primary-foreground);
}

@media (min-width: 768px) {
  .hero-content {
    padding: 10rem 0 10rem;
  }
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-top: 1rem;
  max-width: 48rem;
  line-height: 1.05;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-text {
  font-size: 1.125rem;
  margin-top: 1.5rem;
  max-width: 36rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Page Hero */
.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero-content {
  position: relative;
  padding: 5rem 0 7rem;
  color: var(--primary-foreground);
}

@media (min-width: 768px) {
  .page-hero-content {
    padding: 7rem 0 7rem;
  }
}

.page-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0.75rem;
  max-width: 32rem;
}

@media (min-width: 768px) {
  .page-hero-title {
    font-size: 3rem;
  }
}

.page-hero-text {
  margin-top: 1rem;
  max-width: 36rem;
  opacity: 0.9;
}

/* Features bar */
.features-bar {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 2rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
}

.feature-text {
  font-weight: 600;
}

/* Section */
.section {
  padding: 5rem 0;
}

.section-muted {
  background-color: var(--muted);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 0.5rem;
  color: var(--primary);
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

.section-title-large {
  font-size: 3rem;
}

@media (min-width: 768px) {
  .section-title-large {
    font-size: 3rem;
  }
}

/* Cards */
.cards-grid {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 768px) {
  .cards-grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-image {
  width: 100%;
  height: 13rem;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 0.75rem;
  color: var(--primary);
}

.card-text {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
}

/* Grid layouts */
.grid-2 {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-2-equal {
  grid-template-columns: 1fr 280px;
}

.image-rounded {
  width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.logo-large {
  width: 15rem;
  margin: 0 auto;
  display: block;
}

/* Lists */
.list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.list-item {
  color: var(--muted-foreground);
  padding-left: 1rem;
}

.list-accent {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

/* Values */
.value-card {
  background-color: var(--card);
  border-top: 4px solid var(--accent);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.value-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.value-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Stages */
.stage {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .stage {
    grid-template-columns: repeat(2, 1fr);
  }
  .stage-reverse .stage-image {
    order: 2;
  }
}

.stage-image {
  width: 100%;
  height: 20rem;
  object-fit: cover;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stage-content .eyebrow {
  margin-bottom: 0.5rem;
}

.stage-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Admissions */
.steps-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 0.75rem;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--accent);
  color: var(--accent-foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1rem;
  color: var(--primary);
}

.step-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.info-box {
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 2.5rem;
  border-radius: 0.75rem;
  margin-top: 3.5rem;
}

.info-box-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.info-box-text {
  margin-top: 0.75rem;
  opacity: 0.9;
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.contact-card {
  background-color: var(--card);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: block;
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  color: var(--accent);
}

.contact-label {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1rem;
  color: var(--primary);
}

.contact-value {
  margin-top: 0.5rem;
  color: var(--muted-foreground);
  word-break: break-word;
}

.map {
  width: 100%;
  height: 24rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  margin-top: 3rem;
}

/* Footer */
.footer {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.footer-content {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo-img {
  height: 3.5rem;
  border-radius: 0.25rem;
  background-color: var(--card);
  padding: 0.25rem;
}

.footer-logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-desc {
  margin-top: 1rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--primary-foreground);
  text-decoration: none;
  font-size: 0.875rem;
  opacity: 0.9;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.footer-icon {
  width: 1rem;
  height: 1rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.footer-bottom {
  border-top: 1px solid rgba(248, 250, 252, 0.15);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Utilities */
.text-center {
  text-align: center;
}

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-14 { margin-top: 3.5rem; }

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-xl {
  max-width: 36rem;
}
