/* ==========================================================================
   BHARANI INTERNATIONAL MODERN SCHOOL (CBSE)
   News & Events Master Stylesheet (news.css)
   Editorial Design System for news-events.html & news-detail.html
   ========================================================================== */

/* --------------------------------------------------------------------------
   01. DETAIL HERO METADATA (Harmonized with .page-hero-header)
   -------------------------------------------------------------------------- */
/* Detail Hero Metadata */
.news-detail-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.15rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-gold-light, #FEF3C7);
  position: relative;
  z-index: 2;
}

.news-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #FEF3C7;
}

.news-meta-item svg {
  color: var(--color-gold-bright, #F59E0B);
}

.news-meta-sep {
  opacity: 0.5;
  color: var(--color-gold, #F59E0B);
}

.news-consent-tag-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #FDE68A;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.news-consent-tag-dark svg {
  color: #F59E0B;
}

/* --------------------------------------------------------------------------
   02. LIVE URGENT MARQUEE TICKER
   -------------------------------------------------------------------------- */
.news-ticker-strip {
  background: #1C0F07;
  border-bottom: 2px solid #D97706;
  padding: 0.75rem 0;
  color: #FFFDF5;
  position: relative;
  z-index: 5;
}

.news-ticker-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.news-ticker-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #1C0F07;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  flex-shrink: 0;
}

.news-pulse-circle {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1C0F07;
  animation: pulseAnim 1.4s infinite ease-in-out;
}

@keyframes pulseAnim {
  0% {
    transform: scale(0.85);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.4;
  }

  100% {
    transform: scale(0.85);
    opacity: 1;
  }
}

.news-ticker-track {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.news-ticker-msg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.news-ticker-msg strong {
  color: #FBBF24;
}

.news-ticker-dot {
  opacity: 0.35;
}

/* --------------------------------------------------------------------------
   02. WHAT'S HAPPENING AT BHARANI (INTRO OVERVIEW)
   -------------------------------------------------------------------------- */
.news-intro-section {
  margin-bottom: 2.25rem;
}

.news-intro-lead {
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--color-text-main, #374151);
  max-width: 960px;
  margin: 0;
}

/* --------------------------------------------------------------------------
   03. CATEGORY NAVIGATION & SEARCH TOOLBAR
   -------------------------------------------------------------------------- */
.news-toolbar-section {
  padding: 0 0 1.5rem 0;
}

.news-toolbar-box {
  background: #FFFFFF;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 6px 20px rgba(28, 15, 7, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.news-toolbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.news-search-group {
  position: relative;
  flex: 1 1 340px;
  max-width: 480px;
}

.news-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #D97706;
  pointer-events: none;
}

.news-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1C0F07;
  background: #FFFDF9;
  border: 1.5px solid rgba(217, 119, 6, 0.25);
  border-radius: 12px;
  outline: none;
  transition: all 0.25s ease;
}

.news-search-input:focus {
  border-color: #D97706;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.news-counter-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #78350F;
}

.news-counter-badge {
  background: #FEF3C7;
  color: #92400E;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(217, 119, 6, 0.25);
  font-size: 0.82rem;
}

/* Category Filter Bar */
.news-filter-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 119, 6, 0.3) transparent;
  padding-bottom: 0.35rem;
}

.news-filter-scroll-wrapper::-webkit-scrollbar {
  height: 4px;
}

.news-filter-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(217, 119, 6, 0.35);
  border-radius: 4px;
}

.news-filter-nav {
  display: flex;
  gap: 0.6rem;
  white-space: nowrap;
  min-width: max-content;
}

.news-filter-pill {
  background: #FFFDF9;
  border: 1.5px solid rgba(217, 119, 6, 0.22);
  color: #57463A;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: 9999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-filter-pill:hover {
  background: #FEF3C7;
  color: #92400E;
  border-color: #D97706;
  transform: translateY(-2px);
}

.news-filter-pill.active {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%);
  color: #FFFFFF;
  border-color: #B45309;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.3);
}

.news-pill-count {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
}

.news-filter-pill.active .news-pill-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   04. FEATURED STORY / ASYMMETRIC HERO EVENT
   -------------------------------------------------------------------------- */
.news-featured-section {
  margin-top: 1.5rem;
  margin-bottom: 3.5rem;
}

.news-featured-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(217, 119, 6, 0.25);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 40px -8px rgba(28, 15, 7, 0.08);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  transition: all 0.35s ease;
  position: relative;
}

.news-featured-card:hover {
  border-color: #D97706;
  box-shadow: 0 22px 50px -10px rgba(217, 119, 6, 0.18);
  transform: translateY(-4px);
}

.news-featured-media {
  position: relative;
  background: #1C0F07;
  overflow: hidden;
  min-height: 380px;
}

.news-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-featured-card:hover .news-featured-img {
  transform: scale(1.05);
}

.news-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 15, 7, 0.8) 0%, rgba(28, 15, 7, 0.1) 60%, transparent 100%);
  pointer-events: none;
}

.news-featured-badge-top {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: flex;
  gap: 0.5rem;
  z-index: 2;
}

.news-badge-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #1C0F07;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.news-badge-demo {
  background: rgba(28, 15, 7, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FDE68A;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.news-featured-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1.25rem;
  background: rgba(28, 15, 7, 0.88);
  backdrop-filter: blur(4px);
  color: #FFFDF5;
  font-size: 0.8rem;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  z-index: 2;
}

.news-featured-caption-bar svg {
  width: 15px;
  height: 15px;
  color: #FBBF24;
  flex-shrink: 0;
}

.news-featured-content {
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
}

.news-card-category-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #D97706;
}

.news-meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #D97706;
}

.news-featured-title {
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 800;
  color: var(--color-brown-dark, #1C0F07);
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin: 0;
}

.news-featured-desc {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #4A3B32;
  margin: 0;
}

.news-featured-logistics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: #FFFDF8;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 12px;
}

.news-log-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #57463A;
}

.news-log-item svg {
  width: 16px;
  height: 16px;
  color: #D97706;
  flex-shrink: 0;
}

.news-log-item strong {
  color: #1C0F07;
}

.news-featured-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   05. EDITORIAL NEWS & ANNOUNCEMENT CARDS GRID
   -------------------------------------------------------------------------- */
.news-grid-section {
  /* margin-bottom: 4.5rem; */
}

.news-editorial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.news-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(217, 119, 6, 0.2);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 20px rgba(28, 15, 7, 0.04);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.news-card:hover {
  transform: translateY(-5px);
  border-color: #D97706;
  box-shadow: 0 18px 40px -8px rgba(217, 119, 6, 0.14);
}

/* Important Announcement Card Special Variation */
.news-card-announcement {
  border-color: rgba(217, 119, 6, 0.4);
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFDF9 100%);
  border-top: 4px solid #D97706;
}

.news-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #1C0F07;
}

.news-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.news-card:hover .news-card-img {
  transform: scale(1.06);
}

.news-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28, 15, 7, 0.75) 0%, rgba(28, 15, 7, 0.05) 60%, transparent 100%);
  pointer-events: none;
}

.news-card-badges-top {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.news-category-badge {
  background: rgba(28, 15, 7, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #FBBF24;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 9999px;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.news-card-announcement .news-category-badge {
  background: #B45309;
  color: #FFFFFF;
  border-color: #F59E0B;
}

.news-demo-tag {
  background: rgba(28, 15, 7, 0.7);
  backdrop-filter: blur(4px);
  color: #FDE68A;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.news-card-caption-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.6rem 1rem;
  background: rgba(28, 15, 7, 0.85);
  backdrop-filter: blur(4px);
  color: #FFFDF5;
  font-size: 0.76rem;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  z-index: 2;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
}

.news-card-caption-strip svg {
  width: 14px;
  height: 14px;
  color: #FBBF24;
  flex-shrink: 0;
}

.news-card-body {
  padding: 1.65rem 1.65rem 1.25rem 1.65rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-card-meta-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.8rem;
  color: #78350F;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.news-card-meta-line svg {
  width: 14px;
  height: 14px;
  color: #D97706;
}

.news-card-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-brown-dark, #1C0F07);
  line-height: 1.35;
  margin: 0 0 0.75rem 0;
}

.news-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-card-title a:hover {
  color: #D97706;
}

.news-card-desc {
  font-size: 0.93rem;
  line-height: 1.7;
  color: #4A3B32;
  margin: 0 0 1.1rem 0;
  flex-grow: 1;
}

/* Announcement Callout Inside Card (Rule 5) */
.news-announcement-callout {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  border-radius: 0 8px 8px 0;
  padding: 0.85rem 1rem;
  margin-bottom: 1.1rem;
}

.news-callout-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #92400E;
  margin-bottom: 0.25rem;
}

.news-callout-header svg {
  width: 14px;
  height: 14px;
  color: #D97706;
}

.news-callout-text {
  font-size: 0.85rem;
  color: #78350F;
  line-height: 1.5;
  margin: 0;
}

/* Logistics Mini-Strip */
.news-card-logistics-mini {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.75rem 0.95rem;
  background: #FFFDF8;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: 8px;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  color: #57463A;
}

.news-log-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.news-log-row svg {
  width: 13px;
  height: 13px;
  color: #D97706;
  flex-shrink: 0;
}

.news-log-row strong {
  color: #1C0F07;
}

.news-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.95rem;
  border-top: 1px solid rgba(217, 119, 6, 0.15);
  margin-top: auto;
}

.news-consent-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #065F46;
  background: #ECFDF5;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  border: 1px solid #A7F3D0;
}

.news-consent-tag svg {
  width: 12px;
  height: 12px;
  color: #10B981;
}

.news-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #D97706;
  text-decoration: none;
  transition: all 0.2s ease;
}

.news-card-cta:hover {
  color: #92400E;
  transform: translateX(3px);
}

.news-card-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.news-card-cta:hover svg {
  transform: translateX(3px);
}



/* --------------------------------------------------------------------------
   07. EMPTY SEARCH STATE
   -------------------------------------------------------------------------- */
.news-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4.5rem 2rem;
  background: #FFFDF8;
  border: 2px dashed rgba(217, 119, 6, 0.25);
  border-radius: 20px;
  display: none;
}

.news-empty-state.active {
  display: block;
}

.news-empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FEF3C7;
  color: #92400E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.news-empty-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1C0F07;
  margin: 0 0 0.5rem 0;
}

.news-empty-text {
  font-size: 0.95rem;
  color: #57463A;
  margin: 0 0 1.5rem 0;
}

/* --------------------------------------------------------------------------
   08. EVENT DETAIL PAGE STYLES (news-detail.html)
   -------------------------------------------------------------------------- */
.news-detail-hero {
  background: linear-gradient(135deg, #FFFDF8 0%, #FEF9EE 100%);
  border-bottom: 1px solid rgba(217, 119, 6, 0.2);
  padding: 3rem 0 3.5rem 0;
}

.news-detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  margin-top: 3rem;
  margin-bottom: 4.5rem;
}

.news-detail-main {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-detail-media-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1.5px solid rgba(217, 119, 6, 0.25);
  box-shadow: 0 12px 35px -5px rgba(28, 15, 7, 0.1);
  background: #1C0F07;
}

.news-detail-main-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.news-detail-caption {
  padding: 0.85rem 1.25rem;
  background: #1C0F07;
  color: #FFFDF5;
  font-size: 0.85rem;
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-detail-caption svg {
  width: 16px;
  height: 16px;
  color: #FBBF24;
  flex-shrink: 0;
}

.news-detail-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: #374151;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.news-sidebar-box {
  background: #FFFFFF;
  border: 1.5px solid rgba(217, 119, 6, 0.25);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 6px 20px rgba(28, 15, 7, 0.04);
}

.news-sidebar-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-brown-dark, #1C0F07);
  margin: 0 0 1.25rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(217, 119, 6, 0.2);
}

.news-sidebar-facts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-fact-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.88rem;
}

.news-fact-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #92400E;
}

.news-fact-val {
  color: #1C0F07;
  font-weight: 600;
}

.news-sidebar-action-box {
  background: #FFFBEB;
  border: 1.5px solid #F59E0B;
  border-radius: 16px;
  padding: 1.5rem;
}

.news-related-section {
  padding-top: 3rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(217, 119, 6, 0.2);
  margin-bottom: 4rem;
}

/* --------------------------------------------------------------------------
   09. RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .news-featured-card {
    grid-template-columns: 1fr;
  }

  .news-featured-media {
    min-height: 300px;
    aspect-ratio: 16 / 9;
  }

  .news-featured-content {
    padding: 2rem;
  }

  .news-detail-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {

  .news-editorial-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .news-featured-logistics {
    grid-template-columns: 1fr;
  }

  .news-toolbar-box {
    padding: 1.25rem 1rem;
  }

  .news-ticker-track {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .news-card-body {
    padding: 1.25rem;
  }

  .news-featured-content {
    padding: 1.5rem 1.25rem;
  }
}