/* ==========================================================================
   LANDSCAPE HERO SLIDER (Bright, No Shadows, Small Text)
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  /* This keeps it short and wide (landscape), not full screen */
  aspect-ratio: 21 / 9; 
  max-height: 700px;
  background-color: var(--color-bg);
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* Background Image (Slow, elegant pan) */
.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
  z-index: 0;
}

.slide.active .slide-bg {
  transform: scale(1);
}

/* Content Container (Pushed to bottom) */
.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2.5rem 3rem 2.5rem; /* Padding from bottom edge */
  display: flex;
  align-items: flex-end; /* Aligns text to bottom */
  z-index: 2;
}

/* Crisp, elegant text block (Zero shadows) */
.text-minimal {
  background-color: var(--color-surface); /* Solid White */
  padding: 1.25rem 2rem;
  border-radius: 4px; /* Slight rounding for a premium feel */
  border-left: 4px solid var(--color-primary); /* Classy Navy accent line */
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.6s ease 0.4s;
}

.slide.active .text-minimal {
  transform: translateY(0);
  opacity: 1;
}

.slide-title-small {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.btn-text-link {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color var(--transition-speed) ease;
}

.btn-text-link:hover {
  color: var(--color-primary);
}

.btn-text-link.highlight {
  color: var(--color-accent); /* Crimson Red */
}

/* Slider Dots */
.slider-controls {
  position: absolute;
  bottom: 1rem;
  right: 2.5rem; /* Placed bottom right, opposite the text */
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5); /* Solid, no shadow */
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.dot.active {
  background-color: var(--color-surface);
  transform: scale(1.5);
}

/* ==========================================================================
   MOBILE ADJUSTMENTS (Forcing Landscape)
   ========================================================================== */
@media (max-width: 768px) {
  .hero-slider {
    aspect-ratio: 16 / 9; /* Still firmly landscape on small screens */
  }
  
  .slide-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
  }
  
  .text-minimal {
    padding: 1rem 1.25rem;
  }
  
  .slide-title-small {
    font-size: 1.1rem; /* Smaller text for mobile */
  }

  .btn-text-link {
    font-size: 0.75rem;
  }

  .slider-controls {
    right: 1.5rem;
  }
}

/* ==========================================================================
   STORY & CAMPAIGN SECTION (School/Editorial Style)
   ========================================================================== */
.story-section {
  position: relative;
  background-color: var(--color-surface); /* Pure White */
  padding: 8rem 0;
  overflow: hidden;
}

/* Subtle Notebook Dot Pattern for an educational vibe */
.bg-pattern-dots {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--color-border) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  opacity: 0.4;
  z-index: 0;
}

.story-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* --- LEFT COLUMN: VISUALS --- */
.story-visuals {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

/* Arch shaped main image (Classy, institutional feel) */
.img-arch {
  width: 85%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 200px 200px 0 0; /* Creates the perfect arch */
  border: 1px solid var(--color-border); /* Sharp, crisp edge instead of shadow */
}

/* Overlapping circle image to break the grid */
.img-circle {
  position: absolute;
  bottom: -10%;
  right: 0;
  width: 45%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 12px solid var(--color-surface); /* Thick white border to cut into the arch image */
}

/* Soft organic color blob behind the images for liveliness */
.decorative-blob {
  position: absolute;
  top: -5%;
  left: -10%;
  width: 60%;
  aspect-ratio: 1 / 1;
  background-color: #FEE2E2; /* Very pale Crimson/Pink wash */
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; /* Organic shape */
  z-index: -1;
  opacity: 0.7;
}

/* --- RIGHT COLUMN: THE NARRATIVE --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.story-heading {
  font-family: var(--font-heading);
  font-size: 3rem;
  line-height: 1.1;
  color: var(--color-primary);
  margin-bottom: 2rem;
}

/* The Drop-Cap (Classic Storybook Element) */
.drop-cap {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-main);
  margin-bottom: 2rem;
}

.drop-cap::first-letter {
  float: left;
  font-family: var(--font-heading);
  font-size: 4.5rem;
  line-height: 0.8;
  padding-top: 0.2rem;
  padding-right: 0.75rem;
  color: var(--color-primary);
  font-weight: 700;
}

/* The Notice (Editorial Line instead of a heavy box) */
.campaign-notice {
  border-left: 3px solid var(--color-accent); /* Crimson red line */
  padding-left: 1.5rem;
  margin: 2.5rem 0;
}

.notice-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.notice-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-main);
  font-style: italic; /* Emphasizes the pause */
}

/* Call to Action Area */
.story-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.btn-primary-solid {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--color-primary);
  color: var(--color-surface);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color var(--transition-speed) ease;
}

.btn-primary-solid:hover {
  background-color: var(--color-accent); /* Turns Crimson on hover */
  color: var(--color-surface);
}

.action-note {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1024px) {
  .story-container {
    gap: 4rem;
  }
  .story-heading {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .story-section {
    padding: 5rem 0;
  }
  .story-container {
    grid-template-columns: 1fr; /* Stacks text under photos */
    gap: 5rem;
  }
  
  .story-visuals {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .img-arch {
    width: 90%;
  }
  
  .img-circle {
    bottom: -15%;
    border-width: 8px;
  }

  .story-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* ==========================================================================
   ACADEMICS & FEATURES SECTION (Bright Editorial Style)
   ========================================================================== */
.features-section {
  background-color: var(--color-bg); /* Pure White */
  padding: 8rem 0;
  border-top: 1px solid var(--color-border);
}

.features-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 6rem auto;
}

.features-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.features-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-text-main);
  line-height: 1.7;
}

/* --- THE EDITORIAL GRID --- */
.features-grid {
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

.feature-block {
  display: flex;
  align-items: center;
  gap: 0; /* Elements will overlap manually */
  max-width: 1000px;
  margin: 0 auto;
}

/* Reverse the layout for the middle block */
.feature-block.reversed {
  flex-direction: row-reverse;
}

/* Image Box */
.feature-img-box {
  width: 55%;
  position: relative;
  z-index: 1;
}

.feature-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

/* Text Box (Overlaps the image) */
.feature-text-box {
  width: 50%;
  background-color: var(--color-surface); /* Solid white to cover the image */
  border: 1px solid var(--color-primary); /* Crisp Navy border */
  padding: 4rem 3rem;
  position: relative;
  z-index: 2;
  margin-left: -5%; /* Pulls it left over the image */
  border-radius: 4px;
}

/* Adjust overlap for the reversed block */
.feature-block.reversed .feature-text-box {
  margin-left: 0;
  margin-right: -5%; /* Pulls it right over the image */
}

.feature-number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-accent); /* Crimson Red */
  font-weight: 700;
  margin-bottom: 1rem;
}

.feature-number::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
  vertical-align: middle;
  margin-left: 10px;
}

.feature-heading {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.feature-text-box p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 1.8;
  margin: 0;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1024px) {
  .feature-text-box {
    padding: 3rem 2rem;
  }
}

@media (max-width: 768px) {
  .features-grid {
    gap: 4rem;
  }
  
  .feature-block, .feature-block.reversed {
    flex-direction: column;
    gap: 0;
  }
  
  .feature-img-box {
    width: 100%;
  }
  
  .feature-text-box {
    width: 90%;
    margin-left: 0;
    margin-right: 0;
    margin-top: -15%; /* Overlaps vertically on mobile */
    padding: 2.5rem 1.5rem;
    align-self: center; /* Centers the box */
  }
  
  .feature-block.reversed .feature-text-box {
    margin-top: -15%;
  }

  .features-title {
    font-size: 2.5rem;
  }
}

/* ==========================================================================
   CAMPUS GALLERY STYLES (Fixed Gaps & Added Milestone Box)
   ========================================================================== */
.campus-section {
  background-color: var(--color-surface);
  padding: 8rem 0;
  border-top: 1px solid var(--color-border);
}

.campus-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 5rem auto;
}

.campus-title {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.campus-subtitle {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--color-text-main);
  line-height: 1.7;
}

/* --- GRID LAYOUT --- */
.campus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 2.5rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
  align-items: start; /* Prevents vertical stretching */
}

/* Featured item spans 2 columns */
.featured-item {
  grid-column: span 2;
}

.campus-item {
  display: flex;
  flex-direction: column;
}

/* Image Wrappers */
.img-wrapper {
  position: relative;
  width: 100%;
  border: 1px solid var(--color-border); 
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
  aspect-ratio: 4 / 3;
}

.featured-item .img-wrapper {
  aspect-ratio: 16 / 9; 
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease; 
}

.campus-item:hover .gallery-img {
  transform: scale(1.05);
}

/* Captions */
.item-caption h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.campus-item:hover .item-caption h4 {
  color: var(--color-accent);
}

.item-caption p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.6;
  margin: 0;
}

/* --- NEW MILESTONE CARD (Fills the gap elegantly) --- */
.milestone-card-item {
  height: 100%;
}

.milestone-box {
  background-color: var(--color-bg); /* Soft light background */
  border: 1px solid var(--color-primary); /* Crisp Navy Border */
  border-radius: 4px;
  padding: 2.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.milestone-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent); /* Crimson Red */
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.milestone-box h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.milestone-box p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-main);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.btn-milestone {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.btn-milestone:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1024px) {
  .campus-grid {
    grid-template-columns: repeat(2, 1fr); 
  }
  .featured-item {
    grid-column: span 2; 
  }
}

@media (max-width: 768px) {
  .campus-grid {
    grid-template-columns: 1fr; 
    gap: 3rem;
  }
  .featured-item {
    grid-column: span 1;
  }
  .featured-item .img-wrapper {
    aspect-ratio: 4 / 3; 
  }
}



/* ==========================================================================
   LEADERSHIP / PRINCIPAL SECTION (Editorial Style)
   ========================================================================== */
.leadership-section {
  background-color: var(--color-surface); /* Soft light background */
  padding: 8rem 0;
  border-top: 1px solid var(--color-border);
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr; /* Text side is slightly wider */
  gap: 6rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

/* --- THE PORTRAIT (No Shadows) --- */
.leadership-visual {
  position: relative;
  padding-left: 1rem; /* Space for the offset frame */
}

.portrait-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.portrait-img {
  width: 100%;
  aspect-ratio: 3 / 4; /* Classic portrait ratio */
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  position: relative;
  z-index: 2;
}

/* Depth frame offset to the bottom-left */
.portrait-frame {
  position: absolute;
  bottom: -15px;
  left: -15px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-primary); /* Crisp Navy Border */
  border-radius: 4px;
  z-index: 1;
}

/* --- THE MESSAGE --- */
.leadership-content {
  position: relative;
}

/* Oversized decorative quote mark */
.quote-mark {
  font-family: var(--font-heading);
  font-size: 8rem;
  line-height: 0;
  color: var(--color-accent); /* Crimson Red */
  opacity: 0.15; /* Subtle and elegant behind the text */
  position: absolute;
  top: 3rem;
  left: -2rem;
  z-index: 0;
}

.leadership-quote {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  line-height: 1.4;
  color: var(--color-primary);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.leadership-text {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--color-text-main);
  line-height: 1.8;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

/* Signature Area */
.leadership-signature {
  position: relative;
  z-index: 1;
}

.signature-line {
  width: 50px;
  height: 2px;
  background-color: var(--color-accent); /* Crimson line */
  margin-bottom: 1rem;
}

.leader-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.leader-title {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */
@media (max-width: 1024px) {
  .leadership-grid {
    gap: 4rem;
  }
  .leadership-quote {
    font-size: 1.5rem;
  }
}

@media (max-width: 768px) {
  .leadership-section {
    padding: 5rem 0;
  }
  
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    text-align: center;
  }
  
  .portrait-frame {
    bottom: -10px;
    left: -10px; /* Tighter offset for mobile */
  }

  .quote-mark {
    left: 50%;
    transform: translateX(-50%);
    top: 2rem;
  }
  
  .leadership-signature {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}