/* ============================================================
   index.php — homepage-only stylesheet
   Loaded ONLY on the homepage via $page_css set in index.php
   (see the $page_css loop in header.php)
   ============================================================ */

/* Video tour section */
.video_tour {
    margin: 50px auto;
    padding: 0;
    display: flex;
    justify-content: center;
}

.vt_inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2em;
    width: 100%;
    align-items: center;
}

.vt_h3 {
    font-size: 3em;
    letter-spacing: -2px;
    font-family: "Merriweather, serif";
    font-weight: 300;
}

/* <!-- Modal -->     */
/* Main modal box */
.modern-condolence {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

/* Left panel */
.condolence-left {
  background: linear-gradient(135deg, #324c7e, #1f2c46);
  color: #fff;
  text-align: center;
}

.bg-blue-pattern {
  position: relative;
  background-color: #0d3b66;
  overflow: hidden;
}

.bg-blue-pattern::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/moons.png");
  background-repeat: repeat;
  background-size: auto;
  opacity: 0.1; /* adjust transparency here */
  pointer-events: none; /* so clicks pass through */
}

/* Right panel */
.condolence-right {
  background: #fff;
  color: #333;
  line-height: 1.7;
}

/* Title */
.modal-title {
  font-size: 1.25rem;
  letter-spacing: 1px;
  color: #2c2c2c;
}

/* Body text */
.condolence-right p {
  margin-bottom: 1rem;
  font-size: 2rem;
}

/* Emphasized closing line */
.condolence-right em {
  display: block;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Close button */
.btn-close {
  background-color: #fff !important;
  border-radius: 50%;
  padding: 0.6rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.btn-close:hover {
  background-color: #eee !important;
}

/* ============================================================
   News & Events section (replaces legacy .section-news)
   Design source: deepseek-news.html (2026-08-17)
   Fonts follow site theme: Merriweather (headings), Lato (UI)
   ============================================================ */

.sjdefi-section {
  max-width: 1300px;
  width: 100%;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: 'Lato', sans-serif;
  /* Base font-size: 16px — all font sizes below use em (1em = 16px) */
  font-size: 16px;
}

/* ─────────────── HEADER / THEME BANNER ─────────────── */
.theme-banner {
  background: linear-gradient(145deg, #1a3a4a 0%, #0f2835 100%);
  border-radius: 28px;
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 40px rgba(15, 40, 53, 0.25);
  position: relative;
  overflow: hidden;
}

.theme-banner::before {
  content: "☀️";
  position: absolute;
  right: -20px;
  top: -20px;
  font-size: 10rem;
  opacity: 0.06;
  transform: rotate(15deg);
}

.theme-banner .text-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  z-index: 1;
}

.theme-banner .label {
  font-family: 'Lato', sans-serif;
  font-size: 0.875em; /* 14px */
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #b8cfda;
  font-weight: 500;
}

.theme-banner h1 {
  font-family: 'Merriweather', serif;
  font-size: 1.75em; /* 28px */
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.theme-banner h1 span {
  color: #f5d78e;
  font-style: italic;
  font-weight: 300;
}

.theme-banner .sub {
  font-family: 'Lato', sans-serif;
  font-size: 1em; /* 16px */
  color: #c9dde6;
  margin-top: 0.2rem;
}

.theme-banner .watch-btn {
  font-family: 'Lato', sans-serif;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.8rem 2rem;
  border-radius: 60px;
  color: #fff;
  font-weight: 600;
  font-size: 1em; /* 16px — matches .sub date size */
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
  z-index: 1;
  white-space: nowrap;
  margin-left: auto; /* keep button on the right on desktop */
}

.theme-banner .watch-btn i {
  font-size: 1.2em; /* 19.2px */
  color: #f5d78e;
}

.theme-banner .watch-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.02);
  border-color: #f5d78e;
}

/* ─────────────── SECTION TITLE ─────────────── */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-head h2 {
  font-family: 'Merriweather', serif;
  font-size: 1.75em; /* 28px */
  font-weight: 700;
  color: #1a3a4a;
  letter-spacing: -0.3px;
}

.section-head h2 i {
  color: #b58a4b;
  margin-right: 0.5rem;
}

.section-head .view-all {
  font-family: 'Lato', sans-serif;
  color: #1a3a4a;
  font-weight: 500;
  text-decoration: none;
  font-size: 1em; /* 16px */
  border-bottom: 2px solid transparent;
  transition: 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.section-head .view-all:hover {
  border-bottom-color: #b58a4b;
  color: #b58a4b;
}

/* ─────────────── NEWS GRID ─────────────── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ─────────────── CARD ─────────────── */
.news-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.8rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
  border: 1px solid rgba(26, 58, 74, 0.06);
  display: flex;
  flex-direction: column;
  position: relative;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(26, 58, 74, 0.25);
  border-color: rgba(181, 138, 75, 0.4);
  background: linear-gradient(145deg, #1a3a4a 0%, #0f2835 100%);
}

/* hover — dark background, light foreground */
.news-card:hover .badge {
  color: #f5d78e;
}

.news-card:hover .title,
.news-card:hover .title a {
  color: #ffffff;
}

/* hover — title band becomes a translucent white overlay on the dark card */
.news-card:hover .title {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.news-card:hover .title a:hover {
  color: #f5d78e;
}

.news-card:hover .meta {
  color: #c9dde6;
  border-top-color: rgba(255, 255, 255, 0.15);
}

.news-card:hover .meta i {
  color: #f5d78e;
}

/* badge / tag — neutralize Bootstrap 5 .badge defaults */
.news-card .badge {
  font-family: 'Lato', sans-serif;
  font-size: 0.875em; /* 14px */
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #b58a4b;
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  padding: 0;
  border-radius: 0;
  line-height: inherit;
  white-space: normal;
  vertical-align: baseline;
}

.news-card .badge i {
  font-size: 0.75em; /* 12px */
}

.news-card .title {
  font-family: 'Lato', sans-serif;
  font-size: 0.9em; /* 14.4px — matches .course-card__desc (1.45rem @ 10px base) */
  font-weight: 400;
  color: #4b5563;
  line-height: 1.78;
  letter-spacing: 0.01em;
  flex: 1;
  margin-bottom: 0.6rem;
  /* distinct title band — soft navy tint so the card stands out */
  background: rgba(26, 58, 74, 0.06);
  border: 1px solid rgba(26, 58, 74, 0.08);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.news-card .title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.news-card .title a:hover {
  color: #b58a4b;
}

.news-card .meta {
  font-family: 'Lato', sans-serif;
  font-size: 1em; /* 16px */
  color: #6e7f89;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.3rem;
  border-top: 1px solid #f0ede6;
  padding-top: 0.9rem;
}

.news-card .meta i {
  color: #b58a4b;
  width: 1.1rem;
  font-size: 1em; /* 16px */
}

.news-card .meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* highlight / featured card */
.news-card.featured {
  background: linear-gradient(145deg, #fffdf7, #fcf8f0);
  border-left: 4px solid #b58a4b;
}

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 800px) {
  .theme-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.8rem 1.8rem;
  }

  .theme-banner h1 {
    font-size: 1.7em; /* 27.2px */
  }

  .theme-banner .watch-btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  .section-head h2 {
    font-size: 1.3em; /* 20.8px */
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .theme-banner h1 {
    font-size: 1.4em; /* 22.4px */
  }

  .theme-banner .sub {
    font-size: 0.9em; /* 14.4px */
  }

  .news-card {
    padding: 1.2rem;
  }
}
