/* ================= NEWS HERO ================= */

.news-hero {
  background: url("images/hero.jpeg") center/cover no-repeat;
  min-height: 90vh;
  position: relative;
}

.news-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

.news-hero .hero-overlay {
  position: absolute;
  left: 70px;
  bottom: 60px;
  z-index: 2;
  color: white;
}

.news-hero h1 {
  font-size: 52px;
  font-weight: 400;
}

/* ================= MAIN LAYOUT ================= */

.about-content-section {
  background: #f4f4f4;
  padding: 110px 60px;
}

.about-content-wrapper {
  max-width: 1450px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.6fr 0.8fr;
  gap: 70px;
  align-items: start;
}

.about-main {
  background: white;
  padding: 60px;
  width: 100%;
  overflow: visible;
}
/* ================= INTRO ================= */

.about-intro h2 {
  font-size: 38px;
  color: #0d2d5c;
  margin-bottom: 25px;
}

.about-bold {
  font-size: 20px;
  color: #0d2d5c;
  font-weight: 500;
  margin-bottom: 18px;
}

.about-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
}

/* ================= FEATURE NEWS ================= */

.news-feature {
  margin: 60px 0;
}

.news-feature img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  margin-bottom: 25px;
  display: block;
}

.news-feature h3 {
  font-size: 30px;
  color: #0d2d5c;
  font-weight: 400;
  margin-bottom: 12px;
}

.news-feature p {
  color: #444;
  line-height: 1.7;
}

/* ================= NEWS GRID ================= */

.news-showcase-section {
  width: 100%;
  margin: 90px auto;
}

.news-showcase-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.news-card {
  background: #f7f7f7;
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: 0.45s ease;
}

.news-card:hover img {
  transform: scale(1.06);
}

.news-card h4 {
  padding: 24px;
  min-height: 100px;
  font-size: 18px;
  line-height: 1.4;
  color: #0d2d5c;
  font-weight: 500;
}

/* ================= LIVE NEWS ================= */

.live-news-section {
  width: 100%;
  margin: 110px auto;
}

.live-news-heading {
  margin-bottom: 45px;
}

.live-news-heading h2 {
  font-size: 42px;
  margin-bottom: 10px;
  color: #222;
}

.live-news-heading p {
  color: #666;
  font-size: 17px;
}

.news-loading {
  color: #777;
  font-size: 18px;
}

/* ================= FIREBASE NEWS CARD ================= */

#newsList {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
  align-items: start;
}

.firebase-news-card {
  background: white;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: 0.4s;
  border-radius: 12px;
  width: 100%;
}

.firebase-news-card:hover {
  transform: translateY(-8px);
}

.firebase-news-card img {
  width: 100%;
  height: 290px;
  object-fit: contain;
  object-position: center center;
  display: block;
  background: #fff;
  padding: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.news-card-content {
  padding: 35px 28px;
  text-align: center;
}

.news-category {
  display: inline-block;
  background: #7a1c2e;
  color: white;
  padding: 7px 18px;
  border-radius: 30px;
  font-size: 12px;
  margin-bottom: 22px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.firebase-title {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 18px;
  color: #002b5c;
  font-weight: 600;
  text-align: center;
}

.firebase-text {
  color: #555;
  line-height: 1.8;
  font-size: 16px;
}

.news-date {
  margin-top: 25px;
  color: #888;
  font-size: 14px;
}

/* ================= RIGHT PANEL ================= */

.section-panel {
  background: #0d2d5c;
  color: white;
  padding: 40px 35px;
  position: sticky;
  top: 120px;
}

.panel-header,
.panel-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.panel-logo {
  margin-bottom: 20px;
}

.panel-logo img {
  width: 55px;
  display: block;
  margin: 0 auto;
}

.panel-title {
  text-align: center;
  font-weight: 400;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.panel-links a {
  display: block;
  color: white;
  text-decoration: none;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: 0.3s;
}

.panel-links a:hover {
  color: #ffd700;
  padding-left: 6px;
}

.panel-links a.active {
  color: #ffd700;
  font-weight: 500;
}

/* ================= ADMISSION SECTION ================= */

.admission-section {
  background: #0d2d5c;
  color: white;
  padding: 55px;
  text-align: center;
}

.admission-section h2 {
  font-size: 34px;
  font-weight: 400;
  margin-bottom: 15px;
}

.admission-section p {
  margin-bottom: 25px;
}

.admission-section .discover-btn {
  display: inline-block;
  color: #0d2d5c;
  background: white;
  padding: 13px 30px;
  text-decoration: none;
  border-radius: 30px;
}

/* ================= BEAUSOLEIL SOCIAL GALLERY ================= */

.beau-social-section {
  width: 100%;
  margin: 120px auto 0;
  background: #f7f7f7;
}

.beau-social-top {
  text-align: center;
  padding: 80px 20px 40px;
}

.beau-social-top h2 {
  font-family: Georgia, serif;
  font-size: 38px;
  font-weight: 400;
  color: #002b5c;
  margin-bottom: 35px;
}

.beau-social-stats {
  display: flex;
  justify-content: center;
  gap: 35px;
}

.beau-social-stats div {
  text-align: center;
}

.beau-social-stats strong {
  display: block;
  font-size: 15px;
  color: #000;
  font-weight: 700;
}

.beau-social-stats span {
  display: block;
  font-size: 12px;
  color: #888;
}

.beau-social-strip {
  max-width: 1450px;
  margin: 0 auto 20px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.beau-social-strip img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.last-strip {
  grid-template-columns: repeat(5, 1fr);
}

.last-strip img {
  grid-column: 3 / 4;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1000px) {

  .about-content-section {
    padding: 70px 22px;
  }

  .about-content-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-main {
    padding: 35px 22px;
  }

  .section-panel {
    position: relative;
    top: 0;
    width: 100%;
  }

  .news-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .news-card img {
    height: 240px;
  }

  #newsList {
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .news-hero .hero-overlay {
    left: 22px;
    right: 22px;
    bottom: 35px;
  }

  .news-hero h1 {
    font-size: 34px;
    line-height: 1.2;
  }

  .about-intro h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  .live-news-heading h2 {
    font-size: 32px;
    line-height: 1.2;
  }

  .beau-social-top h2 {
    font-size: 30px;
    line-height: 1.2;
  }

  .beau-social-strip {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .beau-social-strip img {
    min-width: 82%;
    height: 330px;
    object-fit: cover;
    scroll-snap-align: center;
    flex-shrink: 0;
  }

  .last-strip img {
    grid-column: auto;
  }

  .news-showcase-grid {
    grid-template-columns: 1fr;
  }

  .news-card img {
    height: 300px;
  }

  #newsList {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .firebase-news-card img {
    height: 300px;
    object-fit: contain;
    object-position: center center;
    padding: 10px;
  }

  .firebase-title {
    font-size: 21px;
  }

  .news-card-content {
    padding: 30px 22px;
  }

  .admission-section {
    padding: 40px 22px;
  }

  .admission-section h2 {
    font-size: 28px;
  }
}

/* ================= CENTER NEWS CARDS ================= */

#newsList {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
  justify-content: center;
}

.live-news-section {
  max-width: 1200px;
  margin: 110px auto;
}

/* ================= FINAL NEWS PAGE ALIGNMENT FIX ================= */

.news-showcase-section,
.live-news-section,
.beau-social-section {
  width: min(100% - 40px, 1450px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.beau-social-section {
  background: #f7f7f7 !important;
  margin-top: 90px !important;
}

.beau-social-strip {
  width: 100% !important;
  max-width: 1450px !important;
  margin: 0 auto 20px !important;
  padding: 0 !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 16px !important;
}

.beau-social-strip img {
  width: 100% !important;
  height: 280px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 8px !important;
}

.last-strip {
  display: flex !important;
  justify-content: center !important;
}

.last-strip img {
  width: 20% !important;
  grid-column: auto !important;
}

#newsContainer,
#newsList {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  justify-content: center !important;
}

.live-news-heading {
  text-align: center !important;
}

/* ================= MOBILE ================= */

@media (max-width: 768px) {

  .news-showcase-section,
  .live-news-section,
  .beau-social-section {
    width: calc(100% - 32px) !important;
  }

  .beau-social-strip {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .beau-social-strip img {
    height: 250px !important;
  }

  .last-strip {
    display: grid !important;
  }

  .last-strip img {
    width: 100% !important;
  }
}