/* =========================================================
   OXFORD SCHOOLS
   Main stylesheet
   ========================================================= */

:root {
  --navy: #082b63;
  --navy-dark: #031b43;
  --blue: #0b3c82;
  --gold: #e7a900;
  --gold-light: #ffc83d;
  --text: #263448;
  --muted: #647084;
  --border: #e4e8ee;
  --white: #fff;
  --section: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1380px, calc(100% - 48px));
  margin: 0 auto;
}

/* Top bar */
.topbar {
  height: 38px;
  background: var(--navy-dark);
  color: #fff;
  font-size: 13px;
}

.topbar-inner,
.top-links {
  height: 100%;
  display: flex;
  align-items: center;
}

.topbar-inner {
  justify-content: space-between;
}

.top-links {
  gap: 27px;
}

.top-links a {
  opacity: .95;
}

/* Header */
.header {
  height: 94px;
  background: #fff;
  border-bottom: 1px solid #edf0f4;
  position: relative;
  z-index: 20;
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 290px;
}

.brand-mark {
  width: 64px;
  height: 70px;
  border: 3px solid var(--gold);
  border-radius: 10px 10px 28px 28px;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 800;
  margin-right: 12px;
}

.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--navy);
  font-size: 32px;
  line-height: .9;
  letter-spacing: 2px;
}

.brand-sub {
  color: var(--navy);
  font-size: 17px;
  letter-spacing: 5px;
  margin-top: 5px;
}

.brand-tag {
  color: var(--gold);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-top: 4px;
}

nav {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 29px;
  flex: 1;
  height: 100%;
}

nav a {
  display: flex;
  align-items: center;
  position: relative;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 500;
}

nav a.active {
  color: var(--gold);
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

nav small {
  font-size: 14px;
  margin-left: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 5px;
  font-weight: 700;
  font-size: 14px;
  transition: .2s ease;
  border: 1px solid transparent;
}

.btn span {
  font-size: 20px;
  line-height: 0;
}

.btn-dark {
  background: var(--navy);
  color: #fff;
}

.btn-dark:hover {
  background: var(--navy-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: #f2f6fc;
}

.btn-gold {
  background: var(--gold-light);
  color: var(--navy-dark);
}

.btn-gold:hover {
  background: #ffd45f;
  transform: translateY(-1px);
}

.enquire {
  flex-shrink: 0;
}

/* Hero */
.hero {
  height: 500px;
  position: relative;
  overflow: hidden;
  background: #edf2f6;
}

.hero-slides {
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: heroSlide 15s infinite;
  background-size: cover;
  background-position: center;
}

.slide-one {
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.91) 37%, rgba(255,255,255,.15) 68%, rgba(255,255,255,0) 100%),
    url("https://images.unsplash.com/photo-1509062522246-3755977927d7?auto=format&fit=crop&w=2200&q=85");
}

.slide-two {
  animation-delay: 5s;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.90) 37%, rgba(255,255,255,.15) 68%, rgba(255,255,255,0) 100%),
    url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=2200&q=85");
}

.slide-three {
  animation-delay: 10s;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.90) 37%, rgba(255,255,255,.15) 68%, rgba(255,255,255,0) 100%),
    url("https://images.unsplash.com/photo-1577896851231-70ef18881754?auto=format&fit=crop&w=2200&q=85");
}

@keyframes heroSlide {
  0%, 30% { opacity: 1; }
  33%, 97% { opacity: 0; }
  100% { opacity: 1; }
}

.hero-content {
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: 610px;
  padding-bottom: 10px;
}

.eyebrow {
  color: #c58b00;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.hero h1 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 4.2vw, 67px);
  line-height: .98;
  margin: 0 0 20px;
  letter-spacing: -1.5px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
}

.hero-copy p {
  max-width: 535px;
  font-size: 17px;
  line-height: 1.65;
  color: #344154;
  margin: 0 0 28px;
}

.hero-buttons {
  display: flex;
  gap: 24px;
}

.slider-dots {
  position: absolute;
  bottom: 17px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 9px;
}

.slider-dots span {
  width: 10px;
  height: 10px;
  background: rgba(255,255,255,.75);
  border: 2px solid var(--navy);
  border-radius: 50%;
}

.slider-dots span:first-child {
  background: var(--navy);
}

/* Admissions */
.admissions-wrap {
  padding: 8px 0 0;
  position: relative;
  z-index: 5;
}

.admissions-banner {
  min-height: 153px;
  background: linear-gradient(105deg, #0a3d86, #092e69);
  border-radius: 18px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 27px;
  padding: 24px 30px;
  box-shadow: 0 15px 35px rgba(4, 36, 82, .12);
}

.megaphone {
  font-size: 54px;
  width: 85px;
  text-align: center;
}

.admission-title {
  display: flex;
  flex-direction: column;
  min-width: 390px;
}

.admission-title strong {
  font-size: 37px;
  line-height: 1;
}

.admission-title b {
  color: var(--gold-light);
  font-size: 32px;
  margin-top: 5px;
}

.admission-divider {
  height: 82px;
  width: 2px;
  background: rgba(255,255,255,.75);
}

.admission-copy {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.admission-copy strong {
  color: var(--gold-light);
  font-size: 22px;
  margin-bottom: 9px;
}

.admission-copy span {
  font-size: 18px;
  line-height: 1.4;
}

.admission-banner .btn {
  min-width: 145px;
  flex-shrink: 0;
}

.enroll-badge {
  width: 86px;
  height: 86px;
  border: 5px solid var(--gold-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--navy-dark);
  background: #fff5c7;
  font-size: 13px;
  font-weight: 900;
  transform: rotate(-7deg);
}

/* Why */
.why {
  padding: 48px 0 70px;
}

.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading .eyebrow {
  margin-bottom: 8px;
}

.section-heading h2 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  margin: 0;
}

.gold-line {
  width: 58px;
  height: 3px;
  background: var(--gold);
  margin: 14px auto 0;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.feature {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 27px 20px;
  display: flex;
  gap: 17px;
  min-height: 135px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(12, 35, 70, .035);
}

.feature-icon {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 25px;
}

.feature h3 {
  color: var(--navy);
  font-size: 17px;
  margin: 3px 0 9px;
}

.feature p {
  color: #4f5b6b;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Academics */
.info-section {
  padding: 90px 0;
  background: var(--section);
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.two-column h2 {
  color: var(--navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  line-height: 1.1;
  margin: 0 0 20px;
}

.two-column > div:first-child p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 28px;
}

.info-card {
  background: #fff;
  border-radius: 15px;
  padding: 32px;
  box-shadow: 0 15px 40px rgba(10, 40, 80, .08);
}

.info-card h3 {
  color: var(--navy);
  margin: 5px 0 8px;
}

.info-card p {
  color: var(--muted);
  margin: 0 0 20px;
}

.info-card hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

.card-number {
  color: var(--gold);
  font-weight: 900;
}

/* Campus */
.campus {
  min-height: 350px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(4,30,70,.88), rgba(4,30,70,.88)),
    url("https://images.unsplash.com/photo-1523050854058-8df90110c9f1?auto=format&fit=crop&w=1800&q=85")
    center / cover;
}

.section-heading.light {
  color: #fff;
}

.section-heading.light h2 {
  color: #fff;
  max-width: 800px;
  margin: auto;
}

.section-heading.light p {
  color: rgba(255,255,255,.75);
  margin-top: 18px;
}

/* Contact */
.contact-section {
  padding: 70px 0;
  background: #fff;
}

.contact-box {
  background: var(--navy);
  color: #fff;
  border-radius: 18px;
  padding: 45px 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.contact-box h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  margin: 0 0 12px;
}

.contact-box p {
  color: rgba(255,255,255,.75);
  margin: 0;
}

/* Footer */
footer {
  background: #031b43;
  color: #fff;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-inner strong {
  letter-spacing: 2px;
}

.footer-inner p {
  margin: 6px 0 0;
  color: rgba(255,255,255,.65);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 1180px) {
  .top-links {
    display: none;
  }

  .brand {
    min-width: 230px;
  }

  nav {
    gap: 17px;
  }

  nav a {
    font-size: 13px;
  }

  .enquire {
    display: none;
  }

  .admission-title {
    min-width: 300px;
  }

  .admission-title strong {
    font-size: 29px;
  }

  .admission-title b {
    font-size: 25px;
  }

  .admission-copy strong {
    font-size: 18px;
  }

  .admission-copy span {
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .header {
    height: auto;
  }

  .nav {
    min-height: 82px;
  }

  nav {
    display: none;
  }

  .hero {
    height: 590px;
  }

  .hero-slide {
    background-position: 65% center;
  }

  .hero-copy {
    width: 58%;
  }

  .hero h1 {
    font-size: 43px;
  }

  .admissions-banner {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .admission-title,
  .admission-copy {
    min-width: 0;
    flex: none;
  }

  .admission-divider {
    display: none;
  }

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

  .two-column {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .container {
    width: min(100% - 28px, 1380px);
  }

  .topbar {
    display: none;
  }

  .brand-name {
    font-size: 25px;
  }

  .brand-sub {
    font-size: 13px;
  }

  .brand-mark {
    width: 52px;
    height: 58px;
  }

  .hero {
    height: 570px;
  }

  .hero-slide {
    background-position: 72% center;
  }

  .hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.48);
  }

  .hero-content {
    position: relative;
    z-index: 2;
    align-items: flex-start;
    padding-top: 65px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero-buttons {
    flex-wrap: wrap;
    gap: 12px;
  }

  .admissions-banner {
    border-radius: 12px;
    padding: 24px 18px;
    gap: 15px;
  }

  .megaphone {
    display: none;
  }

  .admission-title strong {
    font-size: 27px;
  }

  .admission-title b {
    font-size: 25px;
  }

  .admission-copy {
    width: 100%;
  }

  .enroll-badge {
    display: none;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .two-column h2,
  .contact-box h2 {
    font-size: 31px;
  }

  .contact-box {
    padding: 32px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
