/* ==========================================================================
   Olistar School - Custom Harvard Editorial Stylesheet & Visual Effects
   ========================================================================== */

:root {
    --olistar-evergreen: #0F5B4B;
    --olistar-deep: #083E35;
    --olistar-red: #B92E36;
    --olistar-crimson: var(--olistar-evergreen);
    --olistar-crimson-dark: var(--olistar-deep);
    --olistar-gold: #F2BE37;
    --olistar-gold-dark: #8A6200;
    --olistar-dark: #1F2C28;
    --olistar-light-bg: #F6F7F3;
    --font-serif: "Georgia", "Times New Roman", serif;
    --font-sans: "Segoe UI", system-ui, -apple-system, sans-serif;
    --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --box-shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.06);
    --box-shadow-hover: 0 12px 30px rgba(8, 62, 53, 0.16);
}

:root {
    --olistar-ivory: #F6F7F3;
    --olistar-ivory-deep: #E9EFEA;
    --olistar-panel: #FCFDFC;
    --olistar-gold-soft: rgba(242, 190, 55, 0.18);
    --olistar-gold-strong: #A67600;
    --olistar-shadow-lux: 0 18px 40px rgba(8, 62, 53, 0.1);
    --olistar-shadow-card: 0 12px 26px rgba(31, 44, 40, 0.07);
}

body {
    font-family: var(--font-sans);
    color: var(--olistar-dark);
    overflow-x: hidden;
    position: relative;
    background:
        radial-gradient(circle at 8% 0%, rgba(15, 91, 75, 0.055), transparent 24%),
        radial-gradient(circle at 92% 8%, rgba(242, 190, 55, 0.12), transparent 24%),
        linear-gradient(180deg, #FFFFFF 0%, #F6F7F3 58%, #EFF3EF 100%);
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,0.22), rgba(255,255,255,0.22)),
        repeating-linear-gradient(
            0deg,
            rgba(8, 62, 53, 0.012),
            rgba(8, 62, 53, 0.012) 1px,
            transparent 1px,
            transparent 7px
        );
    opacity: 0.9;
    z-index: -1;
}

h1, h2, h3, h4, .font-serif {
    font-family: var(--font-serif);
}

.category-tag,
.badge {
    letter-spacing: 0.12rem;
    border-radius: 0 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}

/* --- Sticky Navbar & Utility Bar Effects --- */
.utility-bar {
    background-color: var(--olistar-dark);
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-bar a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.utility-bar a:hover {
    color: var(--olistar-gold) !important;
}

.navbar-harvard {
    background-color: #ffffff;
    border-bottom: 2px solid var(--olistar-dark);
    transition: all var(--transition-medium);
}

.navbar-harvard .navbar-collapse {
    flex-grow: 1;
}

.navbar-harvard.scrolled {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    padding-top: 0.4rem !important;
    padding-bottom: 0.4rem !important;
}

.navbar-harvard .navbar-toggler {
    display: none;
}

.navbar-harvard .navbar-nav {
    align-items: center;
}

.navbar-harvard .dropdown-menu {
    --bs-dropdown-link-color: var(--olistar-dark);
    --bs-dropdown-link-hover-color: var(--olistar-evergreen);
    --bs-dropdown-link-hover-bg: rgba(15, 91, 75, 0.08);
    --bs-dropdown-link-active-color: #ffffff;
    --bs-dropdown-link-active-bg: var(--olistar-evergreen);
    --bs-dropdown-divider-bg: rgba(8, 62, 53, 0.14);
}

.navbar-harvard .dropdown-item:hover,
.navbar-harvard .dropdown-item:focus {
    color: var(--olistar-evergreen);
    background-color: rgba(15, 91, 75, 0.08);
}

.navbar-harvard .dropdown-item.active,
.navbar-harvard .dropdown-item:active {
    color: #ffffff !important;
    background-color: var(--olistar-evergreen);
}

.nav-link-harvard {
    font-weight: 600;
    color: var(--olistar-dark) !important;
    position: relative;
    padding: 0.5rem 1rem !important;
    transition: color var(--transition-fast);
}

.nav-link-harvard::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--olistar-crimson);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link-harvard:hover::after,
.nav-link-harvard.active::after {
    width: 80%;
}

.nav-link-harvard:hover,
.nav-link-harvard.active {
    color: var(--olistar-crimson) !important;
}

@media (max-width: 1199.98px) {
    .navbar-harvard > .container {
        justify-content: space-between;
    }

    .navbar-harvard .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 4.5rem);
        margin-right: 0.5rem;
    }

    .navbar-harvard .navbar-brand > div {
        min-width: 0;
    }

    .navbar-harvard .school-motto-tag {
        font-size: 0.625rem;
        letter-spacing: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-harvard .navbar-toggler {
        display: block;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .navbar-harvard .navbar-collapse {
        display: none;
        flex-basis: 100%;
        width: 100%;
    }

    .navbar-harvard .navbar-collapse.show,
    .navbar-harvard .navbar-collapse.collapsing {
        display: block;
    }

    .navbar-harvard .navbar-collapse.collapsing {
        transition: height 0.14s ease-out;
    }

    .navbar-harvard .navbar-nav {
        align-items: stretch;
        width: 100%;
    }

    .navbar-harvard .nav-link-harvard {
        padding: 0.65rem 0.25rem !important;
    }
}

@media (min-width: 1200px) {
    .navbar-harvard .navbar-collapse {
        display: flex !important;
    }
}

/* --- Header & Banner Ambient Glows --- */
header, .editorial-hero {
    background: linear-gradient(135deg, var(--olistar-evergreen) 0%, var(--olistar-deep) 100%);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

header::before, .editorial-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(242, 190, 55, 0.2) 0%, rgba(255, 255, 255, 0) 72%);
    pointer-events: none;
    animation: floatGlow 8s ease-in-out infinite alternate;
}

section:not(.page-hero):not(.editorial-hero):not(.olistar-cta) {
    background-image:
        radial-gradient(circle at top left, rgba(15, 91, 75, 0.025), transparent 22%),
        radial-gradient(circle at bottom right, rgba(242, 190, 55, 0.05), transparent 18%);
    background-repeat: no-repeat;
    background-size: cover;
}

@keyframes floatGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-30px, 30px) scale(1.15); }
}

/* --- Interactive Card & Tile Hover Effects --- */
.tile-card,
.bg-white.border,
.p-4.border,
.p-5.border,
.card {
    background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
    border: 1px solid rgba(184, 140, 29, 0.35) !important;
    box-shadow: var(--olistar-shadow-card);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium), border-color var(--transition-fast), background var(--transition-fast);
    will-change: transform, box-shadow;
    position: relative;
}

.primary-testimonials {
    background-image: none !important;
}

.tile-card::before,
.bg-white.border::before,
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(212, 175, 55, 0.4);
    pointer-events: none;
    opacity: 0.7;
}

.tile-card:hover,
.bg-white.border:hover,
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--olistar-shadow-lux) !important;
    border-color: rgba(15, 91, 75, 0.45) !important;
}

.tile-card:hover::before,
.bg-white.border:hover::before,
.card:hover::before {
    border-color: rgba(15, 91, 75, 0.45);
}

/* --- Gallery & Image Zoom Effects --- */
.tile-img-container {
    overflow: hidden;
    position: relative;
    background-color: #111;
}

.tile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}

.tile-card:hover .tile-img {
    transform: scale(1.08);
    opacity: 0.92;
}

/* --- Button Micro-Interactions --- */
.btn {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-danger {
    background-color: var(--olistar-red) !important;
    border-color: var(--olistar-red) !important;
}

.btn-danger:hover {
    background-color: #8E202A !important;
    border-color: #8E202A !important;
}

.btn-warning:hover {
    background-color: var(--olistar-gold-dark) !important;
    border-color: var(--olistar-gold-dark) !important;
    color: #fff !important;
}

/* --- Form Field Glow & Focus States --- */
.form-control, .form-select {
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    background-color: #fdfdfd;
}

.form-control:focus, .form-select:focus {
    border-color: var(--olistar-evergreen) !important;
    box-shadow: 0 0 0 0.25rem rgba(15, 91, 75, 0.18) !important;
    background-color: #ffffff;
}

/* --- Filter Button Active State Animation --- */
#galleryFilters .btn {
    transition: all var(--transition-fast);
}

#galleryFilters .btn.active-filter {
    background-color: var(--olistar-evergreen) !important;
    color: #ffffff !important;
    border-color: var(--olistar-evergreen) !important;
    box-shadow: 0 4px 12px rgba(15, 91, 75, 0.3);
}

/* --- Scroll Reveal Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, var(--reveal-offset, 20px), 0) scale(0.99);
    transition: opacity 0.55s cubic-bezier(0.2, 0.7, 0.25, 1) var(--reveal-delay, 0ms), transform 0.55s cubic-bezier(0.2, 0.7, 0.25, 1) var(--reveal-delay, 0ms);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

html {
    scroll-behavior: smooth;
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1040;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 0;
    background-color: var(--olistar-evergreen);
    color: var(--olistar-gold);
    font-size: 1.1rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background-color 0.2s ease;
    cursor: pointer;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--olistar-gold);
    color: var(--olistar-deep);
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .navbar-harvard .navbar-collapse.collapsing {
        transition: none;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .navbar-harvard .navbar-brand.brand-reveal img,
    .navbar-harvard .navbar-brand.brand-reveal > div {
        animation: none;
    }

    .page-hero::after,
    .editorial-hero-overlay::before,
    .editorial-hero-slide.hero-image-ready {
        animation: none !important;
        transition: none !important;
    }
}

/* --- Footer Link Interactions --- */
footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

footer a:hover {
    color: var(--olistar-gold) !important;
    padding-left: 4px;
}

/* ==========================================================================
   1. Theme Variables & Reset
   ========================================================================== */
:root {
  --font-serif: 'Georgia', 'Times New Roman', serif;
    --olistar-burgundy: var(--olistar-evergreen);
    --olistar-gold: #F2BE37;
    --olistar-dark: #1F2C28;
    --olistar-darker: #083E35;
    --olistar-light-bg: #F6F7F3;
    --bs-primary: #0F5B4B;
    --bs-primary-rgb: 15, 91, 75;
    --bs-danger: #B92E36;
    --bs-danger-rgb: 185, 46, 54;
    --bs-secondary: #52635D;
    --bs-secondary-rgb: 82, 99, 93;
    --bs-secondary-color: #52635D;
    --bs-secondary-color-rgb: 82, 99, 93;
    --bs-warning: #F2BE37;
    --bs-warning-rgb: 242, 190, 55;
    --bs-success: #0F5B4B;
    --bs-success-rgb: 15, 91, 75;
    --bs-dark: #1F2C28;
    --bs-dark-rgb: 31, 44, 40;
    --bs-light: #F6F7F3;
    --bs-light-rgb: 246, 247, 243;
    --bs-link-color: #0F5B4B;
    --bs-link-hover-color: #083E35;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1F2C28;
    background-color: #F6F7F3;
  overflow-x: hidden;
}

.font-serif {
  font-family: var(--font-serif) !important;
}

.max-w-700 {
  max-width: 700px;
}

/* ==========================================================================
   2. Utility Bar & Header Navigation
   ========================================================================== */
.utility-bar {
  background-color: var(--olistar-darker);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.utility-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.utility-links a:hover {
  color: var(--olistar-gold);
}

.navbar-harvard {
  background-color: #ffffff;
  border-bottom: 3px solid var(--olistar-burgundy);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.school-motto-tag {
  font-size: 0.725rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.nav-link-harvard {
  color: #1e293b;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 0.75rem 1rem !important;
  transition: color 0.2s ease;
}

.nav-link-harvard:hover,
.nav-link-harvard.active {
  color: var(--olistar-burgundy);
}

/* ==========================================================================
   3. Editorial Hero Section & Background Slider
   ========================================================================== */
.editorial-hero {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background-color: var(--olistar-darker);
  min-height: 520px;
  display: flex;
  align-items: center;
}

/* Sliding Background Container */
.editorial-hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 300%; /* 3 slides = 300% width */
  height: 100%;
  display: flex;
  z-index: 0;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual Slides */
.editorial-hero-slide {
    position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.78;
  transform: scale(1.04);
  transition: opacity 0.8s ease, transform 1.1s ease;
}

/* Tint Overlay to guarantee text contrast */
.editorial-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 62, 53, 0.5);
  z-index: 1;
  pointer-events: none;
}

.editorial-hero-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(110deg, transparent 24%, rgba(242, 190, 55, 0.15) 46%, rgba(255, 255, 255, 0.08) 52%, transparent 74%);
    background-size: 240% 100%;
    pointer-events: none;
}

.editorial-hero.hero-image-pending .editorial-hero-overlay::before {
    opacity: 1;
    animation: heroImageSweep 1.9s ease-in-out infinite;
}

.editorial-hero.hero-image-ready .editorial-hero-overlay::before {
    opacity: 0;
    animation: none;
    transition: opacity 800ms ease-out;
}

.editorial-hero-slide.hero-image-ready {
    opacity: 1;
    transform: scale(1);
    animation: heroImageReveal 1100ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

@keyframes heroImageSweep {
    from { background-position: 100% 50%; }
    to { background-position: -100% 50%; }
}

@keyframes heroImageReveal {
    from { opacity: 0.62; transform: scale(1.035); }
    to { opacity: 1; transform: scale(1); }
}

/* Navigation Arrows */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-arrow:hover {
  background: var(--olistar-gold);
  color: var(--olistar-darker);
  border-color: var(--olistar-gold);
}

.hero-arrow.prev { left: 1.25rem; }
.hero-arrow.next { right: 1.25rem; }

/* Navigation Dots */
.hero-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 0.6rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: var(--olistar-gold);
  width: 26px;
  border-radius: 5px;
}

/* ==========================================================================
   4. Tiles, Cards & Academic Grid
   ========================================================================== */
.tile-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.tile-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1) !important;
}

.tile-img-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

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

.tile-card:hover .tile-img {
  transform: scale(1.05);
}

/* ==========================================================================
   5. Dark Harvard Footer
   ========================================================================== */
.footer-harvard {
  background-color: var(--olistar-darker);
  color: #94a3b8;
  border-top: 4px solid var(--olistar-gold);
}

.footer-harvard .text-secondary,
.footer-harvard .text-muted {
    color: #B9C6C0 !important;
}

.footer-harvard h5,
.footer-harvard h6 {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-harvard p,
.footer-harvard li,
.footer-harvard a {
  line-height: 1.75;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--olistar-gold);
}

/* Hide navigation arrows on smaller mobile screens */
@media (max-width: 768px) {
  .hero-arrow {
    display: none;
  }
}

/* Card and Hover Styles */
.news-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

#homeNewsGrid {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.home-news-feature {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    min-height: 360px;
    overflow: hidden;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    border: 1px solid rgba(15, 91, 75, 0.16);
    border-radius: 4px;
    background: #ffffff;
    box-shadow: var(--olistar-shadow-card);
}

.home-news-feature[hidden] {
    display: none;
}

.home-news-stage {
    display: grid;
    perspective: 1400px;
}

.home-news-feature.is-flipping-out-forward {
    transform-origin: left center;
    animation: homeNewsFlipOutForward 480ms cubic-bezier(0.42, 0, 0.6, 1) both;
}

.home-news-feature.is-flipping-in-forward {
    transform-origin: right center;
    animation: homeNewsFlipInForward 480ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.home-news-feature.is-flipping-out-backward {
    transform-origin: right center;
    animation: homeNewsFlipOutBackward 480ms cubic-bezier(0.42, 0, 0.6, 1) both;
}

.home-news-feature.is-flipping-in-backward {
    transform-origin: left center;
    animation: homeNewsFlipInBackward 480ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

@keyframes homeNewsFlipOutForward {
    to { opacity: 0; transform: rotateY(-38deg) translateX(-1%); }
}

@keyframes homeNewsFlipInForward {
    from { opacity: 0; transform: rotateY(38deg) translateX(1%); }
    to { opacity: 1; transform: rotateY(0) translateX(0); }
}

@keyframes homeNewsFlipOutBackward {
    to { opacity: 0; transform: rotateY(38deg) translateX(1%); }
}

@keyframes homeNewsFlipInBackward {
    from { opacity: 0; transform: rotateY(-38deg) translateX(-1%); }
    to { opacity: 1; transform: rotateY(0) translateX(0); }
}

.home-news-photo {
    position: relative;
    min-width: 0;
    min-height: 360px;
    overflow: hidden;
    background: var(--olistar-ivory-deep);
}

.home-news-photo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-news-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 2.25rem;
}

.home-news-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    color: #53645d;
    font-size: 0.8rem;
}

.home-news-title {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    margin: 0 0 0.85rem;
    color: var(--olistar-dark);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.16;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-news-summary {
    display: -webkit-box;
    max-width: 100%;
    overflow: hidden;
    color: #53645d;
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
}

.home-news-summary p,
.home-news-summary h2,
.home-news-summary h3,
.home-news-summary h4,
.home-news-summary blockquote {
    margin: 0 0 0.35rem;
}

.home-news-summary h2,
.home-news-summary h3,
.home-news-summary h4 {
    color: inherit;
    font-size: 1.05em !important;
    line-height: 1.35;
}

.home-news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 1rem;
    color: var(--olistar-evergreen);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
}

.home-news-link:hover,
.home-news-link:focus-visible {
    color: var(--olistar-deep);
    text-decoration: underline;
}

.home-news-controls {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.75rem;
}

.home-news-arrow {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border: 1px solid rgba(15, 91, 75, 0.3);
    border-radius: 50%;
    background: #ffffff;
    color: var(--olistar-evergreen);
    cursor: pointer;
}

.home-news-arrow:hover:not(:disabled),
.home-news-arrow:focus-visible {
    background: var(--olistar-evergreen);
    color: #ffffff;
}

.home-news-arrow:disabled {
    cursor: default;
    opacity: 0.45;
}

.home-news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-left: auto;
}

.home-news-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 12px;
    padding: 0;
    border: 1px solid #7d8a84;
    border-radius: 50%;
    background: #ffffff;
    cursor: pointer;
}

.home-news-dot[aria-pressed="true"] {
    border-color: var(--olistar-evergreen);
    background: var(--olistar-evergreen);
}

.home-news-status {
    min-width: 6.5rem;
    color: #53645d;
    font-size: 0.8rem;
    text-align: right;
}

@media (max-width: 767.98px) {
    .home-news-stage {
        perspective: 900px;
    }

    .home-news-feature {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .home-news-photo {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .home-news-content {
        padding: 1.25rem;
    }

    .home-news-title {
        margin-bottom: 0.65rem;
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .home-news-summary {
        -webkit-line-clamp: 4;
    }

    .home-news-controls {
        gap: 0.6rem;
    }

    .home-news-pagination {
        gap: 0.4rem;
    }

    .home-news-status {
        min-width: 4.8rem;
        font-size: 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-news-feature.is-flipping-out-forward,
    .home-news-feature.is-flipping-in-forward,
    .home-news-feature.is-flipping-out-backward,
    .home-news-feature.is-flipping-in-backward {
        animation: none;
    }
}

.tile-card.h-100,
.news-card.h-100,
.card.h-100 {
    height: auto !important;
}

.website-rich-summary {
    overflow-wrap: anywhere;
    font-size: 0.875rem;
    line-height: 1.5;
}

.website-rich-summary p,
.website-rich-summary h2,
.website-rich-summary h3,
.website-rich-summary h4,
.website-rich-summary blockquote {
    margin: 0 0 0.35rem;
}

.website-rich-summary h2,
.website-rich-summary h3,
.website-rich-summary h4 {
    color: inherit;
    font-size: 1.1em !important;
    font-weight: 600;
    line-height: 1.35;
}

.website-rich-summary li[data-list="bullet"] {
    list-style-type: disc;
}

.website-rich-summary li[data-list="ordered"] {
    list-style-type: decimal;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08) !important;
}

.news-img {
    height: 200px;
    object-fit: cover;
}

/* Event Badges */
.event-card {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.event-card:hover {
    transform: translateX(4px);
    border-color: var(--olistar-evergreen) !important;
}

.event-date-badge {
    min-width: 65px;
}

.olistar-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 3.25rem 0 2.5rem;
    color: #ffffff;
    text-align: center;
    background-color: var(--olistar-deep);
    background-image:
        linear-gradient(180deg, rgba(15, 91, 75, 0.84), rgba(8, 62, 53, 0.92)),
        url("../assets/images/hero1.jpg");
    background-position: center 46%;
    background-size: cover;
}

.olistar-cta-content {
    max-width: 760px;
}

.olistar-cta-icon {
    display: inline-block;
    margin-bottom: 0.5rem;
    color: var(--olistar-gold);
    font-size: 2rem;
}

.olistar-cta-eyebrow {
    margin-bottom: 0.5rem;
    color: #ffe08a;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.olistar-cta h2 {
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
}

.olistar-cta-description {
    max-width: 620px;
    margin: 0 auto 1rem;
    color: rgba(255, 255, 255, 0.88);
}

.olistar-cta-facts {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin: 0 auto 1.1rem;
    padding: 0.65rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(255, 255, 255, 0.28);
    color: #ffffff;
    font-size: 0.875rem;
}

.olistar-cta-facts i {
    margin-right: 0.4rem;
    color: #ffe08a;
}

.olistar-cta-button {
    padding: 0.65rem 1.35rem;
    border: 0;
    border-radius: 2px;
    background: var(--olistar-gold);
    color: #1e1e1e;
    font-weight: 700;
}

.olistar-cta-button:hover,
.olistar-cta-button:focus-visible {
    background: #ffda54;
    color: #1e1e1e;
}

.olistar-cta-note {
    margin: 0.9rem 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.75rem;
}

@media (max-width: 575.98px) {
    .olistar-cta {
        background-position: 52% center;
        padding: 2rem 0 1.5rem;
    }

    .olistar-cta-icon {
        margin-bottom: 0.25rem;
        font-size: 1.5rem;
    }

    .olistar-cta h2 {
        margin-bottom: 0.4rem;
        font-size: 1.55rem;
        line-height: 1.2;
    }

    .olistar-cta-description {
        margin-bottom: 0.65rem;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .olistar-cta-facts {
        gap: 0.35rem 0.75rem;
        margin-bottom: 0.75rem;
        padding: 0.45rem 0;
        font-size: 0.8rem;
    }

    .olistar-cta-note {
        margin-top: 0.6rem;
    }
}

.leading-none {
    line-height: 1;
}

/* Uniform Soft Badge */
.bg-primary-soft {
    background-color: rgba(15, 91, 75, 0.1);
}

.tracking-wider {
    letter-spacing: 0.08em;
}

.hover-primary:hover {
    color: var(--olistar-evergreen) !important;
}

/* ==========================================
   HARVARD BRAND COLOR PALETTE OVERRIDES
   ========================================== */
:root {
    --bs-primary: #0F5B4B;
    --bs-primary-rgb: 15, 91, 75;
    --harvard-crimson: #0F5B4B;
    --harvard-crimson-dark: #083E35;
    --harvard-ink: #1F2C28;
}

/* Primary Buttons */
.btn-primary {
    background-color: var(--harvard-crimson) !important;
    border-color: var(--harvard-crimson) !important;
    color: #ffffff !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--harvard-crimson-dark) !important;
    border-color: var(--harvard-crimson-dark) !important;
}

/* Outline Buttons */
.btn-outline-primary {
    color: var(--harvard-crimson) !important;
    border-color: var(--harvard-crimson) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--harvard-crimson) !important;
    border-color: var(--harvard-crimson) !important;
    color: #ffffff !important;
}

/* Text & Background Utilities */
.text-primary {
    color: var(--harvard-crimson) !important;
}

.bg-primary {
    background-color: var(--harvard-crimson) !important;
}

.bg-primary-soft {
    background-color: rgba(15, 91, 75, 0.1) !important;
}

/* Interactive Hover States */
.event-card:hover {
    border-color: var(--olistar-evergreen) !important;
}

.hover-primary:hover {
    color: var(--harvard-crimson) !important;
}

.border-dashed {
    border-style: dashed !important;
}

.tracking-wider {
    letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------ */
/* Shared Page Hero (all portal pages except admin)                    */
/* ------------------------------------------------------------------ */
.page-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--olistar-evergreen);
    border-bottom: 4px solid var(--olistar-gold);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
    background: linear-gradient(135deg, rgba(15, 91, 75, 0.92) 0%, rgba(8, 62, 53, 0.84) 100%);
    pointer-events: none;
    z-index: 0;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    background: linear-gradient(110deg, transparent 24%, rgba(242, 190, 55, 0.14) 46%, rgba(255, 255, 255, 0.07) 52%, transparent 74%);
    background-size: 240% 100%;
    pointer-events: none;
}

.page-hero.hero-image-pending::after {
    opacity: 1;
    animation: heroImageSweep 1.9s ease-in-out infinite;
}

.page-hero.hero-image-ready::after {
    opacity: 0;
    animation: none;
    transition: opacity 800ms ease-out;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero .container,
.editorial-hero .container {
    opacity: 1;
    transform: translateY(0);
}

.page-hero .text-white-50,
.editorial-hero .text-white-50 {
    color: rgba(255, 255, 255, 0.86) !important;
}

.page-hero .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
    --bs-breadcrumb-item-active-color: var(--olistar-gold);
    margin-bottom: 0.5rem;
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.page-hero .breadcrumb a:hover {
    color: var(--olistar-gold);
}

/* ------------------------------------------------------------------ */
/* Admissions page polish                                                */
/* ------------------------------------------------------------------ */
.admissions-form-panel {
    border: 2px solid rgba(17, 17, 17, 0.9) !important;
    border-radius: 0.75rem;
    box-shadow: 0 14px 35px rgba(17, 17, 17, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #fffdfb 100%);
}

.admissions-step {
    position: relative;
    padding: 1.25rem 1rem 0.25rem;
    background: rgba(248, 249, 250, 0.42);
    border: 1px solid rgba(15, 91, 75, 0.12);
    border-radius: 0.9rem;
}

.admissions-step .form-label,
.admissions-step .form-check-label {
    letter-spacing: 0.04em;
}

.admissions-step .form-control,
.admissions-step .form-select,
.admissions-step textarea {
    border: 1.5px solid rgba(17, 17, 17, 0.7);
    border-radius: 0.7rem;
    background: #fff;
    padding: 0.72rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admissions-step .form-control:focus,
.admissions-step .form-select:focus,
.admissions-step textarea:focus {
    border-color: var(--olistar-evergreen);
    box-shadow: 0 0 0 0.18rem rgba(15, 91, 75, 0.14);
    transform: translateY(-1px);
}

.admissions-step input[type="file"] {
    padding: 0.7rem 0.8rem;
    border-radius: 0.7rem;
    background: linear-gradient(180deg, #fff 0%, #fffaf9 100%);
}

.admissions-side-panel {
    position: sticky;
    top: 96px;
    border-radius: 0.9rem;
    box-shadow: 0 14px 30px rgba(17, 17, 17, 0.06);
    background: linear-gradient(180deg, #ffffff 0%, #fffdf9 100%);
}

.admissions-side-panel .category-tag {
    display: inline-block;
    letter-spacing: 0.12em;
    font-size: 0.7rem;
    margin-bottom: 0.5rem;
}

.admissions-side-panel .p-3.bg-light {
    border-radius: 0.8rem;
}

@media (max-width: 991.98px) {
    .admissions-side-panel {
        position: static;
    }
}

/* ------------------------------------------------------------------
   Olistar public-site design system
   Warm paper, campus green and brass details unify every public page.
   ------------------------------------------------------------------ */
:root {
    --olistar-evergreen: #145447;
    --olistar-deep: #103d35;
    --olistar-red: #9d3936;
    --olistar-crimson: var(--olistar-evergreen);
    --olistar-crimson-dark: var(--olistar-deep);
    --olistar-gold: #e8b84b;
    --olistar-gold-dark: #936817;
    --olistar-dark: #20312c;
    --olistar-light-bg: #f5f3eb;
    --olistar-ivory: #f5f3eb;
    --olistar-ivory-deep: #e8e7dc;
    --olistar-panel: #fffefa;
    --olistar-shadow-lux: 0 22px 54px rgba(20, 54, 45, 0.14);
    --olistar-shadow-card: 0 10px 28px rgba(32, 49, 44, 0.08);
    --bs-primary: #145447;
    --bs-primary-rgb: 20, 84, 71;
    --bs-dark: #20312c;
    --bs-dark-rgb: 32, 49, 44;
    --bs-warning: #e8b84b;
    --bs-warning-rgb: 232, 184, 75;
    --bs-link-color: #145447;
    --bs-link-hover-color: #103d35;
    --harvard-crimson: #145447;
    --harvard-crimson-dark: #103d35;
    --harvard-ink: #20312c;
}

body {
    color: var(--olistar-dark);
    background: #f5f3eb;
    font-size: 1rem;
    line-height: 1.68;
}

body::before {
    display: none;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--olistar-dark);
    line-height: 1.16;
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

section:not(.page-hero):not(.editorial-hero):not(.olistar-cta) {
    background-image: none;
}

.utility-bar {
    background: var(--olistar-deep);
    border: 0;
    font-size: 0.76rem;
    letter-spacing: 0.025em;
}

.utility-bar .text-warning,
.utility-links a.text-warning {
    color: #f4ce72 !important;
}

.navbar-harvard {
    min-height: 82px;
    background: rgba(255, 254, 250, 0.98);
    border-bottom: 1px solid rgba(20, 84, 71, 0.15);
    box-shadow: 0 5px 18px rgba(32, 49, 44, 0.055);
}

.navbar-harvard .navbar-brand img {
    object-fit: contain;
}

.navbar-harvard .navbar-brand.brand-reveal img {
    animation: crest-reveal 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.navbar-harvard .navbar-brand.brand-reveal > div {
    animation: wordmark-reveal 700ms 180ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

@keyframes crest-reveal {
    from {
        clip-path: inset(50% 50% 50% 50% round 50%);
        opacity: 0;
        transform: scale(0.78) rotate(-12deg);
    }
    to {
        clip-path: inset(0 0 0 0 round 0);
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes wordmark-reveal {
    from {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        clip-path: inset(0 0 0 0);
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .navbar-harvard .navbar-brand.brand-reveal img,
    .navbar-harvard .navbar-brand.brand-reveal > div {
        animation: none;
    }
}

.navbar-harvard .navbar-brand > div > span:first-child {
    font-size: clamp(0.9rem, 1.4vw, 1.25rem) !important;
    letter-spacing: 0.035em !important;
}

.school-motto-tag {
    color: #697871;
    font-size: 0.66rem;
    letter-spacing: 0.105em;
}

.nav-link-harvard {
    padding: 0.7rem 0.7rem !important;
    color: #34453f !important;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.nav-link-harvard::after {
    bottom: 0.12rem;
    height: 2px;
    background: var(--olistar-gold);
}

.nav-link-harvard:hover,
.nav-link-harvard.active {
    color: var(--olistar-evergreen) !important;
}

.navbar-harvard .navbar-toggler {
    border: 1px solid rgba(20, 84, 71, 0.2) !important;
    border-radius: 0.35rem;
    padding: 0.45rem 0.6rem;
}

.navbar-harvard .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(20, 84, 71, 0.16);
}

.navbar-harvard .dropdown-menu {
    padding: 0.55rem;
    border: 1px solid rgba(20, 84, 71, 0.12) !important;
    border-radius: 0.5rem !important;
    box-shadow: 0 16px 36px rgba(20, 54, 45, 0.15) !important;
}

.navbar-harvard .dropdown-item {
    border-radius: 0.25rem;
}

header.page-hero {
    min-height: clamp(350px, 40vw, 490px);
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 4px solid var(--olistar-gold);
    background-position: center 48%;
}

.page-hero::before {
    background:
        linear-gradient(90deg, rgba(12, 47, 40, 0.94) 0%, rgba(16, 61, 53, 0.84) 54%, rgba(16, 61, 53, 0.42) 100%),
        linear-gradient(0deg, rgba(13, 42, 36, 0.25), transparent 55%);
}

.page-hero .container {
    max-width: 1140px;
}

.page-hero .container > .row > div {
    max-width: 790px;
}

.page-hero h1,
.editorial-hero h1 {
    max-width: 760px;
    color: #fffefa;
    font-size: clamp(2.35rem, 5.4vw, 4.25rem);
    letter-spacing: -0.035em;
    line-height: 1.03;
}

.page-hero p.lead,
.editorial-hero p.lead {
    max-width: 660px;
    color: rgba(255, 254, 250, 0.88) !important;
    font-size: clamp(1rem, 1.45vw, 1.17rem) !important;
    line-height: 1.65;
}

.page-hero .text-warning,
.editorial-hero .text-warning {
    color: #f4ce72 !important;
}

.page-hero .breadcrumb {
    font-size: 0.78rem;
    letter-spacing: 0.035em;
}

.editorial-hero {
    min-height: min(720px, calc(100vh - 82px));
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
    background-color: var(--olistar-deep);
}

.editorial-hero-slider {
    filter: saturate(0.83);
}

.editorial-hero-slide {
    opacity: 0.68;
}

.editorial-hero-overlay {
    background:
        linear-gradient(90deg, rgba(12, 47, 40, 0.9) 0%, rgba(16, 61, 53, 0.74) 55%, rgba(16, 61, 53, 0.3) 100%),
        linear-gradient(0deg, rgba(11, 37, 32, 0.4), transparent 75%);
}

.editorial-hero .container {
    width: 100%;
}

.editorial-hero .container > .row {
    max-width: 1180px;
    margin-right: auto;
    margin-left: auto;
}

.editorial-hero .text-warning {
    display: inline-block;
    margin-bottom: 0.5rem;
    letter-spacing: 0.11em !important;
    line-height: 1.6;
}

.editorial-hero .tile-card {
    max-width: 390px;
    margin-left: auto;
    padding: 0.7rem !important;
    border: 1px solid rgba(255, 255, 255, 0.66) !important;
    border-radius: 0.7rem;
    background: #fffefa !important;
    box-shadow: 0 26px 64px rgba(7, 30, 25, 0.34) !important;
}

.editorial-hero .tile-img-container {
    border: 0 !important;
    border-radius: 0.38rem;
    background: #f2f0e9;
}

.editorial-hero .founder-portrait,
.editorial-hero .tile-card:hover .founder-portrait {
    object-fit: contain;
    transform: none;
}

.editorial-hero .tile-card .badge {
    border-radius: 0.2rem !important;
}

.hero-arrow {
    border-radius: 50%;
    background: rgba(12, 47, 40, 0.6);
    backdrop-filter: blur(6px);
}

.hero-dot.active {
    background: #f4ce72;
}

.category-tag,
.badge {
    border-radius: 0.2rem !important;
}

.category-tag.text-danger,
.text-danger {
    color: #91413b !important;
}

.bg-white .text-warning,
.bg-light .text-warning,
section[style*="background-color: var(--olistar-light-bg"] .text-warning {
    color: #87600e !important;
}

.navbar-harvard .btn-dark.text-warning,
.bg-dark .text-warning,
.text-white .text-warning,
.footer-harvard .text-warning,
.olistar-cta .text-warning {
    color: #f4ce72 !important;
}

.bg-danger {
    background-color: #91413b !important;
}

.bg-light,
.bg-white {
    --bs-bg-opacity: 1;
}

section.bg-white,
section[style*="background-color: var(--olistar-light-bg"] {
    padding-top: clamp(3rem, 6vw, 5.25rem) !important;
    padding-bottom: clamp(3rem, 6vw, 5.25rem) !important;
}

section.bg-white {
    background-color: #fffefa !important;
}

section[style*="background-color: var(--olistar-light-bg"] {
    background-color: #f5f3eb !important;
}

.border-dark {
    border-color: rgba(32, 49, 44, 0.16) !important;
}

.tile-card,
.news-card,
.event-card,
.card {
    overflow: hidden;
    border: 1px solid rgba(32, 49, 44, 0.12) !important;
    border-radius: 0.65rem;
    background: #fffefa;
    box-shadow: var(--olistar-shadow-card);
}

.tile-card::before,
.bg-white.border::before,
.card::before {
    display: none;
}

.tile-card:hover,
.news-card:hover,
.event-card:hover,
.card:hover {
    border-color: rgba(20, 84, 71, 0.28) !important;
    box-shadow: var(--olistar-shadow-lux) !important;
}

.tile-img-container,
.tile-img-container img,
.news-img {
    border-radius: 0.4rem;
}

.tile-img-container .tile-img,
.tile-img-container img {
    border-radius: inherit;
}

.btn {
    border-radius: 0.35rem !important;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-decoration: none;
}

.btn-warning {
    border-color: var(--olistar-gold) !important;
    background-color: var(--olistar-gold) !important;
    color: #26372f !important;
}

.btn-warning:hover,
.btn-warning:focus-visible {
    border-color: #f1ca70 !important;
    background-color: #f1ca70 !important;
    color: #20312c !important;
}

.btn-dark {
    border-color: var(--olistar-deep) !important;
    background-color: var(--olistar-deep) !important;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
    border-color: #fffefa !important;
    background-color: #fffefa !important;
    color: var(--olistar-deep) !important;
}

.form-control,
.form-select {
    border-color: #b9c3bb;
    border-radius: 0.35rem !important;
    background-color: #fffefa;
    color: var(--olistar-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--olistar-evergreen) !important;
    box-shadow: 0 0 0 0.2rem rgba(20, 84, 71, 0.15) !important;
}

.admissions-form-panel {
    border: 1px solid rgba(32, 49, 44, 0.13) !important;
    border-radius: 0.75rem;
    background: #fffefa;
    box-shadow: 0 16px 42px rgba(32, 49, 44, 0.08);
}

.admissions-step {
    border-radius: 0.55rem;
    background: #faf9f3;
}

.admissions-step .form-control,
.admissions-step .form-select,
.admissions-step textarea {
    border: 1px solid #aebbb3;
    border-radius: 0.35rem;
}

.footer-harvard {
    border-top: 4px solid var(--olistar-gold);
    background: var(--olistar-deep) !important;
    color: rgba(255, 254, 250, 0.76);
}

.footer-harvard h5,
.footer-harvard h6 {
    color: #fffefa;
    letter-spacing: 0.08em;
}

.footer-harvard .text-secondary,
.footer-harvard .text-muted {
    color: rgba(255, 254, 250, 0.69) !important;
}

.footer-harvard a {
    color: rgba(255, 254, 250, 0.76);
}

.footer-harvard a:hover {
    color: #f4ce72 !important;
}

.back-to-top {
    border-radius: 50%;
    background: var(--olistar-evergreen);
    color: #fffefa;
}

.leadership-section .container {
    max-width: 1440px;
}

.leadership-card {
    min-height: 450px;
    padding: 1.75rem !important;
}

.leadership-portrait {
    display: block;
    width: clamp(180px, 15vw, 200px);
    height: clamp(180px, 15vw, 200px);
    margin-right: auto;
    margin-left: auto;
    object-fit: cover;
}

.leadership-role-badge {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.4;
}

:focus-visible {
    outline: 3px solid #c18a22;
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .navbar-harvard {
        min-height: 70px;
    }

    .navbar-harvard .navbar-brand img {
        height: 44px;
        margin-right: 0.65rem !important;
    }

    .navbar-harvard .navbar-brand > div > span:first-child {
        font-size: 0.87rem !important;
        line-height: 1.2;
    }

    .navbar-harvard .navbar-collapse {
        padding: 0.4rem 0 0.8rem;
    }

    .navbar-harvard .nav-link-harvard {
        padding: 0.6rem 0.15rem !important;
    }

    header.page-hero {
        min-height: 355px;
        padding-top: 2.7rem;
        padding-bottom: 2.7rem;
        background-position: 62% center;
    }

    .page-hero::before {
        background: linear-gradient(90deg, rgba(12, 47, 40, 0.93), rgba(16, 61, 53, 0.72));
    }

    .editorial-hero {
        min-height: 0;
        padding-top: 2.7rem !important;
        padding-bottom: 3.6rem !important;
    }

    .editorial-hero .container > .row {
        row-gap: 1.8rem !important;
    }

    .editorial-hero .tile-card {
        max-width: 340px;
        margin: 0 auto;
    }

    .editorial-hero .tile-img-container {
        height: 320px;
    }

    .hero-dots {
        bottom: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .leadership-card {
        min-height: 0;
    }

    .leadership-portrait {
        width: 190px;
        height: 190px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .editorial-hero-slide,
    .tile-card,
    .news-card,
    .event-card,
    .btn,
    .form-control,
    .form-select {
        transition-duration: 0.01ms !important;
    }
}
