


/* ================================================================
   DY PATIL EDUCATION SOCIETY — style.css
   Stanford Brand System Applied
   ─────────────────────────────────────────────────────────────
   PRIMARY PALETTE
     Cardinal Red   #8C1515   (Pantone 201C)
     White          #FFFFFF
     Black          #2E2D29   (Pantone Process Black)
     Cool Gray      #4D4F53   (Pantone Cool Gray 11)

   ACCENT PALETTE (selected)
     Stone          #7F7776
     Fog            #DAD7CB
     Fog Light      #F4F4F4
     Archway        #5D4B3C
     Poppy          #E98300
     Illuminating   #FEDD5C
     Palo Alto      #175E54
     Sky            #4298B5
     Lagunita       #007C92

   WEB INTERACTIVE
     Digital Red    #B1040E   (dark variant for text links)
     Digital Red Hi #820000
     Digital Blue   #006CB8   (links on light bg)
     Digital Blue H #00548F   (hover)

   TYPOGRAPHY (Stanford-prescribed)
     Headings    : Source Serif 4 (Google Fonts)
     Body / UI   : Source Sans 3  (Google Fonts)
     Accent serif: Crimson Text   (Google Fonts)
   ================================================================ */

/* ── CSS CUSTOM PROPERTIES ── */
/*- my code-*/




/*--   --*/
:root {
  /* Primary */
  --cardinal:       #8C1515;
  --cardinal-dark:  #820000;
  --cardinal-hover: #6e1010;
  --white:          #FFFFFF;
  --black:          #2E2D29;
  --cool-gray:      #4D4F53;

  /* Accent */
  --stone:          #7F7776;
  --fog:            #DAD7CB;
  --fog-light:      #F4F4F4;
  --fog-dark:       #B6B1A9;
  --archway:        #5D4B3C;
  --poppy:          #E98300;
  --illuminating:   #FEDD5C;
  --palo-alto:      #175E54;
  --sky:            #4298B5;
  --lagunita:       #007C92;

  /* Web Interactive */
  --digital-red:    #B1040E;
  --digital-blue:   #006CB8;
  --digital-blue-h: #00548F;

  /* Typography */
  --font-serif:   'Source Serif 4', 'Georgia', serif;
  --font-sans:    'Source Sans 3', 'Calibri', 'Arial', sans-serif;
  --font-crimson: 'Crimson Text', 'Georgia', serif;

  /* Spacing */
  --identity-bar-h: 32px;
  /*--nav-h:          64px;*/
  --nav-h:          100px;
  --hero-h:         max(600px, calc(100vh - var(--identity-bar-h) - var(--nav-h)));
  --section-pad:    4.5rem;

  /* Borders */
  --border-light:   #E8E4DF;
  --border-mid:     var(--fog-dark);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--digital-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--digital-blue-h); }
img { display: block; max-width: 100%; }

/* ── UTILITY ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 2rem; }

/* ─────────────────────────────────────────────
   STANFORD IDENTITY BAR
   (Mandatory 30–32px cardinal top bar per brand guide)
───────────────────────────────────────────── */


/* Embedded Lead Form */
.hero-right {
  background: transparent;
  border-left: 3px solid var(--cardinal);
  padding: 0;
  min-height: var(--hero-h);
}

.hero-form-card {
  background: transparent;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
}

.embedded-lead-form {
  display: block;
  width: calc(100% + 48px);
  height: 100%;
  min-height: inherit;
  margin: 0 0 0 -24px;
  border: none;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.embedded-form-fallback {
  margin-top: 10px;
  font-size: 14px;
  color: var(--cool-gray);
  text-align: center;
}

.embedded-form-fallback a {
  color: var(--cardinal);
  font-weight: 600;
}

.embedded-form-fallback a:hover {
  color: var(--cardinal-hover);
}

/* Mobile Responsive */
@media (max-width: 992px) {

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-right {
    border-left: none;
    border-top: 3px solid var(--cardinal);
    min-height: 500px;
  }

  .embedded-lead-form {
    width: 100%;
    margin-left: 0;
    min-height: 500px;
  }
}


.identity-bar {
  background: var(--cardinal);
  height: var(--identity-bar-h);
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 300;
}
.identity-bar__name {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
}
.identity-bar__sub {
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
  border-left: 1px solid rgba(255,255,255,.3);
  padding-left: 1.2rem;
}

/* ─────────────────────────────────────────────
   MAIN NAV
───────────────────────────────────────────── */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  height: var(--nav-h);
  position: sticky;
  top: var(--identity-bar-h);
  z-index: 200;
  box-shadow: 0 1px 0 var(--border-light), 0 4px 16px rgba(46,45,41,.05);
}
.main-nav__inner {
  /*max-width: 1120px;*/
  max-width: 100%;
  /*margin: 0 auto;*/
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: .5rem;
}
.nav-logo__primary {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: .92rem;
  color: var(--cardinal);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.nav-logo__sub {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 500;
  color: var(--cool-gray);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 0;
  list-style: none;
  flex: 1;
}
.nav-link {
  display: inline-block;
  padding: 0 1rem;
  font-family: var(--font-sans);
  font-size: .84rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  height: var(--nav-h);
  line-height: var(--nav-h);
  border-bottom: 3px solid transparent;
  transition: color .18s, border-color .18s;
}
.nav-link:hover   { color: var(--cardinal); border-bottom-color: var(--cardinal); }
.nav-link.active  { color: var(--cardinal); border-bottom-color: var(--cardinal); font-weight: 600; }

.nav-actions {
  display: flex;
  gap: .7rem;
  flex-shrink: 0;
}

/* BUTTONS — Stanford-style */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .55rem 1.3rem;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover   { transform: translateY(-1px); }
.btn:active  { transform: none; }

/* Cardinal (primary CTA — per brand guide: cardinal bg, white text) */
.btn--cardinal {
  background: var(--cardinal);
  color: var(--white);
  border-color: var(--cardinal);
}
.btn--cardinal:hover { background: var(--cardinal-hover); border-color: var(--cardinal-hover); color: var(--white); }

/* Outline in nav */
.btn--outline-nav {
  background: transparent;
  color: var(--cardinal);
  border-color: var(--cardinal);
}
.btn--outline-nav:hover { background: var(--cardinal); color: var(--white); }

/* White (on cardinal bg) */
.btn--white {
  background: var(--white);
  color: var(--cardinal);
  border-color: var(--white);
}
.btn--white:hover { background: var(--fog-light); }

/* Outline white (on cardinal bg) */
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn--outline-white:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* Full-width */
.btn--full { width: 100%; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--black); border-radius: 2px;
  transition: all .3s ease;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: calc(var(--identity-bar-h) + var(--nav-h));
  left: 0; right: 0;
  background: var(--white);
  border-bottom: 3px solid var(--cardinal);
  box-shadow: 0 8px 32px rgba(46,45,41,.12);
  z-index: 199;
  display: flex;
  flex-direction: column;
  padding: .5rem 0 1rem;
  transform: translateY(-6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}
.mobile-drawer:not([hidden]) {
  transform: none;
  opacity: 1;
  pointer-events: all;
}
.drawer-link {
  padding: .75rem 2rem;
  font-family: var(--font-sans);
  font-size: .92rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  transition: color .18s, background .18s;
}
.drawer-link:hover { color: var(--cardinal); background: var(--fog-light); }
.drawer-cta {
  margin: .8rem 2rem 0;
  display: block;
  text-align: center;
  background: var(--cardinal);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .7rem;
  text-decoration: none;
  transition: background .2s;
}
.drawer-cta:hover { background: var(--cardinal-hover); }

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(440px, 34vw, 540px);
  min-height: var(--hero-h);
  align-items: stretch;
}

/* Media side */
.hero__media {
  position: relative;
  overflow: hidden;
  min-height: var(--hero-h);
}
.hero-video,
.hero-video iframe {
  display: block;
  width: 100%;
  height: 100%;
  margin-top: -40px;
}
.hero__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 85%, rgba(92,35,20,.5) 0%, transparent 65%),
    linear-gradient(155deg, #1C0A08 0%, #3D1C10 35%, #5C2E16 65%, #180808 100%);
}
.hero__building {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 55%; height: 60%;
  background: linear-gradient(180deg, rgba(201,169,110,.12) 0%, rgba(140,21,21,.06) 100%);
  clip-path: polygon(8% 100%, 8% 42%, 15% 38%, 15% 15%, 22% 12%, 22% 38%, 50% 2%, 78% 38%, 78% 12%, 85% 15%, 85% 38%, 92% 42%, 92% 100%);
}
.hero__building--tower {
  width: 18%; height: 72%;
  clip-path: polygon(30% 100%, 30% 20%, 50% 0%, 70% 20%, 70% 100%);
  background: linear-gradient(180deg, rgba(201,169,110,.1) 0%, rgba(140,21,21,.04) 100%);
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,6,4,.8) 0%, rgba(20,6,4,.15) 55%, transparent 100%);
}
.hero__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35);
  cursor: pointer;
  transition: background .2s, transform .2s;
  display: flex; align-items: center; justify-content: center;
}
.hero__play:hover { background: rgba(255,255,255,.22); transform: translate(-50%,-50%) scale(1.1); }
.hero__play-icon {
  display: block;
  width: 0; height: 0;
  border-style: solid;
  border-width: 11px 0 11px 22px;
  border-color: transparent transparent transparent var(--white);
  margin-left: 5px;
}
.hero__caption {
  position: absolute;
  bottom: 2.4rem; left: 2.4rem; right: 2.4rem;
}
.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--illuminating);
  margin-bottom: .6rem;
}
.hero__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.18;
  text-shadow: 0 2px 20px rgba(0,0,0,.45);
}

/* Form aside */
.hero__form {
  background: var(--white);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-left: 3px solid var(--cardinal);
}
.form-title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--black);
}
.form-field { display: flex; flex-direction: column; gap: .32rem; }
.form-label {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cool-gray);
}
.form-input {
  padding: .6rem .85rem;
  border: 1.5px solid var(--border-mid);
  border-radius: 0;
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--black);
  background: var(--fog-light);
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus {
  border-color: var(--cardinal);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(140,21,21,.1);
}
.form-input::placeholder { color: var(--stone); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%234D4F53' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}
.form-feedback {
  font-family: var(--font-sans);
  font-size: .78rem;
  color: var(--cardinal);
  font-weight: 600;
  min-height: 1.1rem;
}

/* ─────────────────────────────────────────────
   TAGLINE STRIP
───────────────────────────────────────────── */
.tagline-strip {
  padding: .9rem 2rem;
  background: var(--fog);
  border-bottom: 1px solid var(--fog-dark);
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
}
.tagline-strip__lead {
  font-family: var(--font-crimson);
  font-size: 1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--archway);
  white-space: nowrap;
}
.tagline-strip__programs {
  font-family: var(--font-sans);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cool-gray);
  line-height: 1.8;
}

/* ─────────────────────────────────────────────
   SHARED SECTION TOKENS
───────────────────────────────────────────── */
.section { padding: var(--section-pad) 2rem; }
.section--white { background: var(--white); }
.section--fog   { background: var(--fog-light); }

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cardinal);
  margin-bottom: .5rem;
  display: block;
}
.section-eyebrow--light { color: rgba(255,255,255,.65); }
.section-eyebrow--gold  { color: var(--illuminating); }

.section-header { text-align: center; margin-bottom: 3rem; }
.section-header__ruled {
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
  margin-bottom: .3rem;
}
.section-ruled-bar {
  width: 3px; height: 24px;
  background: var(--cardinal);
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
  margin-bottom: .55rem;
}
.section-sub {
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--cool-gray);
  max-width: 580px;
  margin: 0 auto;
}
.section-sub--spaced { margin: 0 0 1.8rem; max-width: none; }

/* ─────────────────────────────────────────────
   ACCREDITATIONS
───────────────────────────────────────────── */
.accred-grid {
  display: grid;
  /*grid-template-columns: repeat(4, 1fr);*/
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}
.accred-card {
  border: 1.5px solid var(--border-light);
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  cursor: default;
}
.accred-card:hover {
  border-color: var(--cardinal);
  box-shadow: 0 6px 24px rgba(140,21,21,.09);
  transform: translateY(-3px);
}
.accred-card__icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--fog-light);
  border: 1.5px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.1rem;
  font-size: 1.3rem;
  transition: border-color .2s, background .2s;
}
.accred-card:hover .accred-card__icon { border-color: var(--cardinal); background: #fff5f5; }
.accred-card__title {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: .45rem;
  height: 60px;
    padding: 4px;
}
.accred-card__body { font-size: .82rem; color: var(--cool-gray); line-height: 1.55; }

/* ─────────────────────────────────────────────
   ACADEMIC ECOSYSTEM (3 image cards)
───────────────────────────────────────────── */
.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.eco-card {
  position: relative;
  display: block;
  height: 280px;
  overflow: hidden;
  text-decoration: none;
}
.eco-card:hover .eco-card__img { transform: scale(1.05); }
.eco-card__img {
  width: 100%; height: 100%;
  transition: transform .4s ease;
}
.eco-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,6,4,.78) 0%, rgba(20,6,4,.06) 65%);
  transition: opacity .3s;
}
.eco-card:hover .eco-card__overlay { opacity: .85; }
.eco-card__label {
  position: absolute;
  bottom: 1.4rem; left: 1.4rem; right: 1.4rem;
}
.eco-card__title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: .5rem;
  line-height: 1.25;
}
.eco-card__cta {
  font-family: var(--font-sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--illuminating);
  border-bottom: 1px solid var(--illuminating);
  padding-bottom: 1px;
  display: inline-block;
  transition: opacity .2s;
}
.eco-card:hover .eco-card__cta { opacity: .85; }

/* Placeholder image colours (CSS art) */
.eco-img--medical {
  background:
    radial-gradient(ellipse 60% 80% at 50% 90%, rgba(92,35,20,.4) 0%, transparent 65%),
    linear-gradient(135deg, #1C2E3A 0%, #0D1E2A 100%);
}
.eco-img--engineering {
  background:
    radial-gradient(ellipse 50% 70% at 50% 85%, rgba(20,60,30,.5) 0%, transparent 65%),
    linear-gradient(135deg, #1A2E1A 0%, #0D1E0D 100%);
}
.eco-img--management {
  background:
    radial-gradient(ellipse 60% 70% at 50% 85%, rgba(60,35,15,.5) 0%, transparent 65%),
    linear-gradient(135deg, #3A2510 0%, #251808 100%);
}

/* ─────────────────────────────────────────────
   LIFE + RESEARCH SPLIT
───────────────────────────────────────────── */
.split-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.split-panel__col { padding: 3.5rem 3rem; }
.split-panel__col--life {
  background: var(--white);
  border-right: 1px solid var(--border-light);
}
.split-panel__col--research {
  background: var(--cardinal);
}

.split-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: .4rem;
}
.split-title--light { color: var(--white); }
.split-body { font-size: .88rem; color: var(--cool-gray); margin-bottom: 1.2rem; }
.split-body--light { color: rgba(255,255,255,.75); }

/* Tags */
.tag-group { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.tag {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border: 1.5px solid var(--border-mid);
  color: var(--cool-gray);
  cursor: pointer;
  transition: border-color .18s, color .18s, background .18s;
}
.tag:hover { border-color: var(--cardinal); color: var(--cardinal); background: #fff5f5; }

.life-photo {
  width: 100%; height: 200px;
  background: linear-gradient(135deg, #2A3A2A 0%, #1A2A1A 100%);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-light);
}
.life-photo span {
  font-family: var(--font-sans);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

/* Focus areas */
.focus-areas { display: flex; flex-direction: column; gap: 0; }
.focus-area {
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.focus-area:first-child { padding-top: .6rem; }
.focus-num {
  font-family: var(--font-sans);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: .25rem;
  display: block;
}
.focus-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

/* ─────────────────────────────────────────────
   ACADEMIC DISCIPLINES
───────────────────────────────────────────── */
.disciplines { background: var(--white); }
.disciplines .section-header { text-align: left; }
.disciplines .section-header__ruled { justify-content: flex-start; }
.disciplines .section-sub { margin: 0 0 2.8rem; max-width: 620px; }

.colleges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.college-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s, transform .22s;
  overflow: hidden;
}
.college-card:hover {
  box-shadow: 0 8px 36px rgba(46,45,41,.1);
  transform: translateY(-4px);
}

/* Card image area */
.college-card__media { position: relative; height: 190px; overflow: hidden; }
.college-card__img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .38s ease;
}
.college-card:hover .college-card__img { transform: scale(1.05); }
.college-card__emoji {
  font-size: 2.8rem;
  opacity: .3;
  display: block;
}

/* Image bg variants */
.img--medical     { background: linear-gradient(135deg, #EAE8E3 0%, #C8C5BE 100%); }
.img--nursing     { background: linear-gradient(135deg, #E4EFF5 0%, #B4D0E0 100%); }
.img--physio      { background: linear-gradient(135deg, #E0EAF5 0%, #B4C8E5 100%); }
.img--pharmacy    { background: linear-gradient(135deg, #1A2C3A 0%, #0D1C28 100%); }
.img--hospitality { background: linear-gradient(135deg, #2A1C10 0%, #1A100A 100%); }
.img--engineering { background: linear-gradient(135deg, #1A2C1A 0%, #0D1C0D 100%); }
.img--mgmt        { background: linear-gradient(135deg, #2C1C10 0%, #1C1008 100%); }
.img--research    { background: linear-gradient(135deg, #14152A 0%, #0A0B1A 100%); }
.img--hospital    { background: linear-gradient(135deg, #2A2A2A 0%, #1A1A1A 100%); }

/* College tag badge */
.college-tag {
  position: absolute;
  top: .8rem; left: .8rem;
  font-family: var(--font-sans);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .28rem .65rem;
  border-radius: 1px;
}
.college-tag--light { background: rgba(255,255,255,.92); color: var(--cool-gray); }
.college-tag--dark  { background: rgba(0,0,0,.45);        color: rgba(255,255,255,.85); }

/* Card body */
.college-card__body {
  padding: 1.4rem 1.4rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.college-card__title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: .55rem;
  line-height: 1.28;
}
.college-card__desc {
  font-family: var(--font-sans);
  font-size: .82rem;
  color: var(--cool-gray);
  line-height: 1.58;
  flex: 1;
  margin-bottom: 1rem;
}
.degree-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .9rem;
}
.degree-label {
  font-family: var(--font-sans);
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-right: .2rem;
}
.degree-badge {
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 600;
  color: var(--black);
  background: var(--fog-light);
  border: 1px solid var(--border-mid);
  padding: .18rem .5rem;
}
.college-link {
  font-family: var(--font-sans);
  font-size: .78rem;
  font-weight: 700;
  color: var(--digital-red);
  text-decoration: none;
  letter-spacing: .04em;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  display: inline-block;
  transition: border-color .18s, color .18s;
}
.college-link:hover {
  color: var(--cardinal);
  border-color: var(--cardinal);
}

/* ─────────────────────────────────────────────
   NEWS + ALUMNI
───────────────────────────────────────────── */
.news-alumni {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: var(--section-pad) 2rem;
  max-width: 100%;
}
.news-alumni .container { max-width: 1120px; margin: 0 auto; }
.news-alumni__col {
  padding: 0 3rem;
  border-right: 1px solid var(--border-light);
}
.news-alumni__col:last-child { border-right: none; }

.news-item {
  display: flex;
  gap: 1.1rem;
  padding-bottom: 1.4rem;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--border-light);
}
.news-item:last-child { border-bottom: none; margin-bottom: 0; }
.news-item__thumb {
  width: 68px; height: 68px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1A2A3A, #0A1A2A);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.news-item__date {
  font-family: var(--font-sans);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: .3rem;
  display: block;
}
.news-item__title {
  font-family: var(--font-serif);
  font-size: .97rem;
  font-weight: 700;
  color: var(--digital-red);
  margin-bottom: .3rem;
  line-height: 1.3;
  cursor: pointer;
  transition: color .18s;
}
.news-item__title:hover { color: var(--cardinal); }
.news-item__body {
  font-family: var(--font-sans);
  font-size: .8rem;
  color: var(--cool-gray);
}

/* Alumni quote */
.alumni-quote {
  background: var(--fog-light);
  border-left: 3px solid var(--cardinal);
  padding: 1.6rem 1.5rem 1.4rem;
  position: relative;
  margin-bottom: 1.2rem;
}
.alumni-quote::before {
  content: '\201C';
  font-family: var(--font-crimson);
  font-size: 5rem;
  color: var(--cardinal);
  opacity: .12;
  position: absolute;
  top: -.6rem; left: .6rem;
  line-height: 1;
  pointer-events: none;
}
.alumni-quote__text {
  font-family: var(--font-crimson);
  font-size: .97rem;
  color: var(--black);
  font-style: italic;
  line-height: 1.65;
  position: relative;
}
.alumni-quote__footer { margin-top: 1rem; }
.alumni-quote__name {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 700;
  color: var(--black);
  display: block;
  font-style: normal;
}
.alumni-quote__role {
  font-family: var(--font-sans);
  font-size: .76rem;
  color: var(--stone);
  display: block;
}
.text-link {
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  color: var(--digital-red);
  text-decoration: none;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--digital-red);
  padding-bottom: 1px;
  display: inline-block;
  transition: color .18s, border-color .18s;
}
.text-link:hover { color: var(--cardinal); border-color: var(--cardinal); }

/* ─────────────────────────────────────────────
   ADMISSIONS BANNER
───────────────────────────────────────────── */
.admissions-banner {
  background: var(--cardinal);
  padding: 4rem 2rem;
}
.admissions-banner__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.admissions-banner__title {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: .7rem;
  line-height: 1.2;
}
.admissions-banner__body {
  font-family: var(--font-sans);
  font-size: .92rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 2.2rem;
  line-height: 1.65;
}
.admissions-banner__btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─────────────────────────────────────────────
   FOOTER
   (Stanford: Cardinal red global footer bar)
───────────────────────────────────────────── */
.site-footer { background: var(--black); color: rgba(255,255,255,.7); }

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem;
}
.footer__logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: .95rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .85rem;
}
.footer__address {
  font-family: var(--font-sans);
  font-size: .78rem;
  line-height: 1.75;
  color: rgba(255,255,255,.5);
  font-style: normal;
}
.footer__col-title {
  font-family: var(--font-sans);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer__links { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.footer__link {
  font-family: var(--font-sans);
  font-size: .8rem;
  color: rgba(255,255,255,.5);
  text-decoration: none;
  transition: color .18s;
}
.footer__link:hover { color: var(--illuminating); }

/* Stanford-prescribed global footer bar — cardinal red */
.global-footer-bar {
  background: var(--cardinal);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .8rem;
  padding: .85rem 2rem;
}
.global-footer-bar__name {
  font-family: var(--font-sans);
  font-size: .75rem;
  color: rgba(255,255,255,.8);
  letter-spacing: .03em;
}
.global-footer-bar__links {
  display: flex; gap: 1.4rem; list-style: none;
}
.global-footer-bar__link {
  font-family: var(--font-sans);
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color .18s;
}
.global-footer-bar__link:hover { color: var(--white); }

/* ─────────────────────────────────────────────
   SCROLL FADE-IN
───────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ─────────────────────────────────────────────
   RESPONSIVE — 1024px
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .accred-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — 860px
───────────────────────────────────────────── */
@media (max-width: 860px) {
  :root { --section-pad: 3rem; }

  /* Nav collapse */
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero stacks */
  .hero { grid-template-columns: 1fr; }
  .hero__form { border-left: none; border-top: 3px solid var(--cardinal); }

  /* Life/research stacks */
  .split-panel { grid-template-columns: 1fr; }
  .split-panel__col--life { border-right: none; border-bottom: 1px solid var(--border-light); }

  /* 2-col grids */
  .eco-grid         { grid-template-columns: 1fr 1fr; }
  .colleges-grid    { grid-template-columns: 1fr 1fr; }
  .news-alumni      { grid-template-columns: 1fr; }
  .news-alumni__col { border-right: none; padding: 0; margin-bottom: 2.5rem; }
  .news-alumni__col:last-child { margin-bottom: 0; }
}

/* ─────────────────────────────────────────────
   RESPONSIVE — 560px
───────────────────────────────────────────── */
@media (max-width: 560px) {
  .identity-bar { padding: 0 1rem; }
  .main-nav__inner { padding: 0 1rem; }
  .section { padding: 2.4rem 1rem; }
  .tagline-strip { padding: .8rem 1rem; }

  .accred-grid   { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .eco-grid      { grid-template-columns: 1fr; }
  .colleges-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; padding: 2.5rem 1rem; }

  .news-alumni { padding: 2.4rem 1rem; }
  .admissions-banner { padding: 3rem 1rem; }

  .global-footer-bar { flex-direction: column; align-items: flex-start; gap: .6rem; }

  .hero__caption { left: 1.2rem; right: 1.2rem; bottom: 1.4rem; }
  .hero__form { padding: 1.8rem 1.2rem; }

  .split-panel__col { padding: 2.5rem 1.2rem; }
  .news-alumni__col { padding: 0 1rem; }
}

.life-video {
  /*width: 600px;*/
  height: 400px;
  margin-top: 24px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: #111;
}

.life-video iframe,
.life-video video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.video-slider {
  isolation: isolate;
}

.video-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px);
  transition: opacity .35s ease, transform .35s ease;
}

.video-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.video-slider__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  background: rgba(0,0,0,.38);
  color: var(--white);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  transition: background .2s, border-color .2s;
}

.video-slider__btn:hover {
  background: rgba(0,0,0,.58);
  border-color: var(--white);
}

.video-slider__btn--prev {
  left: 14px;
}

.video-slider__btn--next {
  right: 14px;
}

.video-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.video-slider__dot {
  width: 9px;
  height: 9px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.video-slider__dot.active {
  background: var(--white);
}

.main-nav {
  padding: 6px 0;
}

.main-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  max-width: 320px;
}

.nav-logo__img {
  /*height: 12px;*/
  /*width: 10%;*/
  object-fit: contain;
  display: block;
}
@media (max-width: 768px) {
  .nav-logo {
    max-width: 220px;
  }

  .nav-logo__img {
    height: 40px;
  }
}
.css-t2q1pp{
    padding: 0 !important;
}

.css-1pnlvaj{
    padding: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
}



.hero-slider {
  width: 100%;
  height: 600px;
  overflow: hidden;
  position: relative;
}

.slides {
  display: flex;
  width: 400%;
  height: 100%;
  animation: sliderMove 40s infinite;
}

.slide {
  width: 100%;
  flex: 0 0 100%;
}

.slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

/* Right to Left Slider with 10 sec gap */
@keyframes sliderMove {

  /* Slide 1 */
  0%,
  22% {
    transform: translateX(0%);
  }

  /* Slide 2 */
  25%,
  47% {
    transform: translateX(-100%);
  }

  /* Slide 3 */
  50%,
  72% {
    transform: translateX(-200%);
  }

  /* Slide 4 */
  75%,
  97% {
    transform: translateX(-300%);
  }

  100% {
    transform: translateX(0%);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-slider,
  .slide img {
    height: 300px;
  }
}


.research-slider {
  position: relative;
  overflow: hidden;
  min-height: 350px;
}

.research-slide {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: all 1s ease-in-out;
}

.research-slide.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}
