:root {
  --primary: #0b3c74;
  --secondary: #ffffff;
  --accent: #e6f0fb;
  --dark: #0a1f33;
  --muted: #6b7c93;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

body {
  background: var(--secondary);
  color: var(--dark);
  line-height: 1.6;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 760px;
  overflow: hidden;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 60, 116, 0.85);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  z-index: 0;
}

.hero-bg.active {
  opacity: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 140px 90px;
  max-width: 900px;
}

.hero h2 {
  font-size: 3.5rem;
  max-width: 700px;
  margin-bottom: 16px;
}

.hero p {
  max-width: 600px;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

/* BUTTONS */
.btn {
  background: #fff;
  color: var(--primary);
  padding: 12px 22px;
  text-decoration: none;
  font-weight: 700;
  border-radius: 4px;
  margin-right: 12px;
  display: inline-block;
}

.btn.alt {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

/* ===== SECTIONS ===== */
section {
  padding: 70px 40px;
}

.section-title {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 30px;
  font-weight: 700;
}

/* ===== CARDS ===== */
.card {
  background: #fff;
  padding: 24px;
  border: 1px solid #e5e5e5;
}

.card h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.card p {
  font-size: 0.9rem;
  color: #333;
}

/* ===== ANNOUNCEMENTS ===== */
.announcements {
  background: var(--accent);
}

.announcement-viewport {
  max-height: 330px;
  overflow: hidden;
}

.announcement-track {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: scrollAnnouncements 20s linear infinite;
}

.announcements .card {
  min-height: 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.announcement-viewport:hover .announcement-track {
  animation-play-state: paused;
}

@keyframes scrollAnnouncements {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

/* ===== ANNOUNCEMENTS GRID ===== */
.announcements-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 32px;
  align-items: start;
}

.announcements-col .column-title {
  margin-bottom: 20px;
}

.announcements-divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.15);
}

/* ===== NEWS CAROUSEL ===== */
.news-carousel {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
}

.news-track {
  display: flex;
  transition: transform 0.6s ease;
}

.news-card {
  min-width: 100%;
  display: none;
  flex-direction: column;
}

.news-card.active {
  display: flex;
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 18px;
}

.news-content h3 {
  color: var(--primary);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.news-content p {
  font-size: 0.9rem;
  color: #333;
}

/* NAVIGATION */
.news-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(11, 60, 116, 0.8);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

.news-nav.prev {
  left: 10px;
}

.news-nav.next {
  right: 10px;
}

/* INDICATORS */
.news-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
}

.news-indicators span {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
}

.news-indicators span.active {
  background: var(--primary);
}

@media (max-width: 900px) {
  .announcements-grid {
    grid-template-columns: 1fr;
  }

  .announcements-divider {
    display: none;
  }
}


/* ===== ACADEMICS ===== */
.academics {
  position: relative;
  background: url("../images/school.jpg") center / cover no-repeat fixed;
  color: #fff;
  overflow: hidden;
}

.academics::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 60, 116, 0.53);
  z-index: 0;
}

.academics * {
  position: relative;
  z-index: 1;
}

.academics-grid {
  display: grid;
  grid-template-columns: 1fr auto 1.2fr;
  gap: 32px;
}

.academics .card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  border: none;
}

.column-title {
  font-size: 1.6rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.academics-divider {
  width: 1px;
  background: rgba(255, 255, 255, 0.4);
}

.academics-offerings {
  display: grid;
  gap: 24px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .academics-grid {
    grid-template-columns: 1fr;
  }

  .academics-divider {
    display: none;
  }

  .hero-content {
    padding: 180px 40px;
  }

  .hero h2 {
    font-size: 2.5rem;
  }
}
