/* =====================================================
   FISHER EDUCATION - GLOBAL STYLE SHEET
   ===================================================== */

/* ---------- RESET ---------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #001b3f;
  background: #f3f7fc;
  font-size: 16px;
  line-height: 1.5;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

/* ---------- HEADER ---------- */

.site-header {
  min-height: 90px;
  padding: 10px 7%;
  display: flex;
  align-items: center;
  gap: 34px;
  background: #ffffff;
  border-bottom: 1px solid #dce4f0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-wrap a {
  display: inline-flex;
  align-items: center;
}

.site-logo {
  height: 90px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  flex: 1;
}

.main-nav a {
  text-decoration: none;
  color: #001b3f;
  font-size: 1rem;
  font-weight: 700;
}

.main-nav a:hover {
  color: #1479ff;
}

.search-box input {
  width: 310px;
  padding: 12px 18px;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  font-size: 0.95rem;
}

/* ---------- BUTTONS ---------- */

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.btn.primary {
  background: #1479ff;
  color: #ffffff;
}

.btn.secondary {
  border: 1px solid #1479ff;
  color: #ffffff;
}

/* ---------- HOME HERO ROTATING BANNER ---------- */

.hero-banner {
  position: relative;
  width: 100%;
  height: 500px;
  background: #020b1f;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease-in-out;
}

.banner-slide.active {
  opacity: 1;
}

.banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- STANDARD PAGE HERO ---------- */

.page-hero {
  padding: 80px 7%;
  background:
    radial-gradient(circle at 75% 30%, rgba(86, 224, 223, 0.14), transparent 36%),
    linear-gradient(120deg, #020b1f, #06356b);
  color: #ffffff;
}

.page-hero .intro {
  color: #56e0df;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
}

.page-hero h1 {
  font-size: clamp(3rem, 5vw, 4.8rem);
  line-height: 1;
  margin: 0 0 22px;
}

.page-hero p {
  max-width: 780px;
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- STANDARD CONTENT PAGE ---------- */

.content-page {
  padding: 56px 7%;
  background: #f3f7fc;
}

.content-card {
  background: #ffffff;
  border: 1px solid #d7e1ee;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 28px;
  max-width: 1100px;
}

.content-card h2 {
  font-size: 1.7rem;
  margin: 0 0 20px;
  color: #001b3f;
}

.content-card h3 {
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.content-card p,
.content-card li {
  font-size: 1rem;
  line-height: 1.5;
}

/* ---------- PROFILE / TEACHER PAGE ---------- */

.profile-layout {
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 28px;
  align-items: start;
}

.profile-layout .content-card {
  margin-bottom: 0;
}

.profile-photo-card {
  background: #ffffff;
  border: 1px solid #d7e1ee;
  border-radius: 16px;
  padding: 18px;
}

.profile-photo-card img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

.teacher-section {
  padding: 56px 7%;
  background: #eef4fb;
}

.teacher-section h2 {
  max-width: 1100px;
  font-size: 1.7rem;
  margin: 0 0 24px;
}

.teacher-grid {
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.teacher-card {
  background: #ffffff;
  border: 1px solid #d7e1ee;
  border-radius: 16px;
  padding: 24px;
}

.teacher-card h3 {
  font-size: 1.15rem;
  margin: 0 0 12px;
}

.teacher-card p {
  font-size: 1rem;
  margin: 0;
}

/* ---------- SUBJECTS SECTION ---------- */

.subjects-section {
  padding: 42px 7%;
  background: #ffffff;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.section-heading h2 {
  font-size: 2rem;
  margin: 0;
}

.section-heading p {
  margin: 6px 0 0;
}

.view-all {
  border: 1px solid #1479ff;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  color: #1479ff;
  font-weight: 700;
}

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

.subject-card {
  display: block;
  min-height: 220px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #d7e1ee;
  border-radius: 16px;
  text-decoration: none;
  color: #001b3f;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(7, 27, 61, 0.12);
}

.subject-card .icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.subject-card h3 {
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.subject-card p {
  font-size: 0.95rem;
}

.subject-card span {
  font-weight: 700;
}

.subject-card.blue { border-top: 4px solid #1479ff; }
.subject-card.teal { border-top: 4px solid #19b8b4; }
.subject-card.purple { border-top: 4px solid #7b4dff; }
.subject-card.orange { border-top: 4px solid #ff7a1a; }

/* ---------- QUICK LINKS ---------- */

.quick-links {
  margin: 0 7% 40px;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: #eef4fb;
  border-radius: 16px;
}

.quick-links a {
  text-decoration: none;
  color: #001b3f;
}

.quick-links strong {
  display: block;
  margin-bottom: 8px;
}

.quick-links span {
  font-size: 0.95rem;
}

/* ---------- FOOTER ---------- */

footer {
  padding: 28px 7%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #020b1f;
  color: #ffffff;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  gap: 28px;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
  .search-box {
    display: none;
  }

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

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

  .hero-banner {
    height: 360px;
  }
}

@media (max-width: 800px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 18px;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 56px 7%;
  }

  .content-page,
  .teacher-section {
    padding: 40px 7%;
  }

  footer {
    flex-direction: column;
    gap: 18px;
    text-align: center;
  }

  footer nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .site-logo {
    height: 54px;
  }

  .main-nav a {
    font-size: 0.95rem;
  }

  .hero-banner {
    height: 260px;
  }

  .page-hero h1 {
    font-size: 2.8rem;
  }

  .page-hero p {
    font-size: 1.1rem;
  }

  .subject-grid,
  .quick-links,
  .teacher-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    padding: 24px;
  }
}
/* ================= TERM / LESSON LISTS ================= */

.term-list {
  max-width: 1100px;
  display: grid;
  gap: 18px;
}

.term-card {
  background: #ffffff;
  border: 1px solid #d7e1ee;
  border-radius: 16px;
  overflow: hidden;
}

.term-card summary {
  cursor: pointer;
  padding: 22px 28px;
  font-size: 1.25rem;
  font-weight: 700;
  color: #001b3f;
  background: #ffffff;
}

.term-card summary:hover {
  background: #eef4fb;
}

.lesson-list {
  display: grid;
  gap: 10px;
  padding: 0 28px 28px;
}

.lesson-list a {
  display: block;
  padding: 14px 18px;
  background: #f3f7fc;
  border: 1px solid #d7e1ee;
  border-radius: 10px;
  text-decoration: none;
  color: #001b3f;
}

.lesson-list a:hover {
  background: #e8f1ff;
  border-color: #1479ff;
}

/* ================= VIDEO INTERACTIVE ================= */

.video-grid {
  max-width: 1100px;
  display: grid;
  gap: 24px;
}

.video-card {
  background: #ffffff;
  border: 1px solid #d7e1ee;
  border-radius: 16px;
  padding: 24px;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.video-placeholder img {
  width: 100%;
  display: block;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  padding: 16px 22px;
}

.video-info {
  margin-top: 16px;
}

.video-info h3 {
  margin: 0 0 10px;
}
/* ================= UPGRADED VIDEO SYSTEM ================= */

.video-controls {
  max-width: 1100px;
  background: #ffffff;
  border: 1px solid #d7e1ee;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
}

.video-controls input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  font-size: 1rem;
  margin-bottom: 16px;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-filters button {
  border: 1px solid #1479ff;
  background: #ffffff;
  color: #1479ff;
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 700;
  cursor: pointer;
}

.category-filters button.active,
.category-filters button:hover {
  background: #1479ff;
  color: #ffffff;
}

.video-count {
  margin: 16px 0 0;
  font-weight: 700;
  color: #001b3f;
}

.video-category-group {
  max-width: 1100px;
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.video-category-group h2 {
  margin: 0;
  color: #001b3f;
}

.lesson-nav {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  gap: 1rem;
}

.lesson-nav-btn {
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: #12355b;
  color: white;
  transition: 0.2s;
}

.lesson-nav-btn:hover {
  background: #1b6ca8;
}

.lesson-nav-btn.prev {
  background: #e8eef7;
  color: #12355b;
}