/* ==========================================================================
   NEWS AND EVENTS STYLESHEET
   Replicating media_1792044901464.png for Basharat Higher Secondary School
   ========================================================================== */

.news-page .subpage-hero {
  position: relative;
  width: 100%;
  height: 420px;
  background-color: var(--color-navy-dark, #040D1D);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.news-page .subpage-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.news-page .subpage-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(4, 13, 29, 0.45) 0%,
    rgba(8, 27, 58, 0.3) 40%,
    rgba(4, 13, 29, 0.88) 100%
  );
}

.news-page .subpage-hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  padding-bottom: 24px;
}

.news-page .subpage-title {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  font-weight: 700;
  color: transparent !important;
  -webkit-text-stroke: 1.8px #EAA023;
  letter-spacing: 4px;
  text-transform: uppercase;
  line-height: 1.15;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.7);
}

.news-page .breadcrumb-bar {
  background: #EAA023;
  padding: 8px 0;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1E293B;
}

.news-page .breadcrumb-bar a {
  color: #1E293B;
  text-decoration: none;
  font-weight: 600;
}

.news-page .breadcrumb-bar a:hover {
  text-decoration: underline;
}

.news-page .breadcrumb-separator {
  margin: 0 6px;
  color: #334155;
}

/* News Main Section */
.news-section {
  padding: 50px 0 80px;
  background-color: #F8FAFC;
}

.news-layout-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 36px;
  align-items: start;
}

@media (max-width: 1024px) {
  .news-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* News 2-Column Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 680px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* News Article Card */
.news-article-card {
  background: #FFFFFF;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(8, 27, 58, 0.06);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.news-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(8, 27, 58, 0.14);
}

.news-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #E2E8F0;
  overflow: hidden;
  position: relative;
}

.news-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.news-article-card:hover .news-card-img-wrap img {
  transform: scale(1.05);
}

.news-card-content {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card-date {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  color: #64748B;
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card-title {
  font-family: 'Cinzel', 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: #081B3A;
  margin: 0 0 10px;
  transition: color 0.2s ease;
}

.news-article-card:hover .news-card-title {
  color: #0F52BA;
}

.news-card-excerpt {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 14px;
  flex: 1;
}

.news-card-readmore {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #EAA023;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Sidebar Feature Highlight Card */
.sidebar-highlight-card {
  background: #FFFFFF;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 12px rgba(8, 27, 58, 0.05);
}

.sidebar-highlight-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.sidebar-highlight-body {
  padding: 16px;
}

.sidebar-highlight-date {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 6px;
}

.sidebar-highlight-title {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #081B3A;
  line-height: 1.35;
  margin: 0;
}

.sidebar-highlight-title a {
  color: #081B3A;
  text-decoration: none;
}

.sidebar-highlight-title a:hover {
  color: #EAA023;
}

/* Interactive News Modal */
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.news-modal.open {
  opacity: 1;
  visibility: visible;
}

.news-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 13, 29, 0.82);
  backdrop-filter: blur(4px);
}

.news-modal-container {
  position: relative;
  z-index: 10;
  background: #FFFFFF;
  width: 100%;
  max-width: 820px;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.news-modal-header {
  padding: 20px 24px;
  background: #081B3A;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #EAA023;
}

.news-modal-header h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: #FFFFFF;
  margin: 0;
  line-height: 1.3;
}

.news-modal-close {
  background: transparent;
  border: none;
  color: #EAA023;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  transition: transform 0.2s ease;
}

.news-modal-close:hover {
  transform: rotate(90deg);
  color: #FFFFFF;
}

.news-modal-body {
  padding: 28px 24px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #334155;
  line-height: 1.7;
}

.news-modal-date {
  font-size: 0.85rem;
  color: #64748B;
  font-weight: 600;
  margin-bottom: 14px;
}

.news-modal-img-wrap {
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
  max-height: 380px;
}

.news-modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
