/* CSS Stylesheet untuk Waspada.id Remake */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,600;0,700;0,800;1,600&display=swap');

/* Reset & CSS Variables */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  
  /* Light Mode Colors - School Green Theme */
  --bg-primary: #f4fbf7;
  --bg-secondary: #ffffff;
  --bg-tertiary: #ecfdf5;
  --text-primary: #062f21;
  --text-secondary: #1e3f35;
  --text-muted: #86a398;
  --brand-red: #0d9488; /* Emerald Teal */
  --brand-red-hover: #0f766e;
  --brand-red-light: #f0fdf4;
  --border-color: #d1ebd8;
  --accent-color: #f59e0b; /* Orange for alerts */
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  /* Dark Mode Colors - Green Hue */
  --bg-primary: #022c22; /* Very deep green-slate */
  --bg-secondary: #064e3b;
  --bg-tertiary: #115e59;
  --text-primary: #f0fdf4;
  --text-secondary: #a7f3d0;
  --text-muted: #34d399;
  --brand-red: #10b981; /* Bright emerald */
  --brand-red-hover: #34d399;
  --brand-red-light: #022c22;
  --border-color: #047857;
  
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.5);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header & Top Bar */
.top-bar {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0;
  transition: var(--transition);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.running-news-label {
  background-color: var(--brand-red);
  color: #ffffff;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.7rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.6; }
  100% { opacity: 1; }
}

.running-news-container {
  width: 350px;
  overflow: hidden;
  position: relative;
  white-space: nowrap;
  display: inline-block;
}

.running-news-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 15s linear infinite;
}

.running-news-track:hover {
  animation-play-state: paused;
}

@keyframes ticker {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-100%, 0, 0); }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-links a:hover {
  color: var(--brand-red);
  transform: translateY(-2px);
}

.theme-switch {
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.theme-switch:hover {
  color: var(--brand-red);
  transform: rotate(15deg);
}

/* Main Header */
.main-header {
  background-color: var(--bg-secondary);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  width: 240px;
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px var(--brand-red-light);
  width: 280px;
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  width: 100%;
  margin-left: 0.5rem;
}

.search-box i {
  color: var(--text-muted);
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  flex: 2;
  justify-content: center;
}

.logo-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.5px;
  color: var(--brand-red);
  line-height: 1.1;
  text-transform: uppercase;
  text-shadow: none;
}

.logo-main span {
  color: var(--text-primary);
  font-weight: 400;
}

.logo-sub {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  font-weight: 600;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.logo-sub-motto {
  color: var(--brand-red);
  font-style: italic;
  font-weight: 700;
  padding-left: 0.5rem;
  border-left: 2px solid var(--border-color);
}

.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-ad {
  background: linear-gradient(135deg, var(--brand-red), #e11d48);
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  max-width: 320px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-ad span {
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
}

/* Navigation Menu */
.navbar {
  background-color: var(--bg-secondary);
  border-bottom: 2px solid var(--brand-red);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.navbar-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
}

.navbar-item {
  position: relative;
}

.navbar-link {
  display: block;
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.navbar-link:hover, 
.navbar-item.active .navbar-link {
  color: var(--brand-red);
}

.navbar-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 3px;
  background-color: var(--brand-red);
  transition: var(--transition);
}

.navbar-link:hover::after,
.navbar-item.active .navbar-link::after {
  transform: translateX(-50%) scaleX(1);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Hero Headline Grid with Carousel */
.hero-news {
  padding: 2rem 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.carousel-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 480px;
  box-shadow: var(--shadow-md);
  background-color: var(--bg-secondary);
}

.carousel-track-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  position: relative;
  cursor: pointer;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.carousel-slide:hover img {
  transform: scale(1.03);
}

.carousel-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 3.5rem 2rem 2.5rem 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0.45) 75%, transparent 100%);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
  z-index: 2;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(15, 23, 42, 0.4);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 5;
  transition: var(--transition);
  backdrop-filter: blur(2px);
}

.carousel-arrow:hover {
  background-color: var(--brand-red);
  transform: translateY(-50%) scale(1.08);
}

.carousel-arrow.prev {
  left: 1.2rem;
}

.carousel-arrow.next {
  right: 1.2rem;
}

.carousel-dots {
  position: absolute;
  bottom: 1.2rem;
  left: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active {
  background-color: var(--brand-red);
  width: 20px;
  border-radius: 4px;
}

.badge {
  background-color: var(--brand-red);
  color: #ffffff;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  width: fit-content;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}

.hero-main-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.hero-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.hero-side-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-side-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 232px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.hero-side-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.hero-side-card:hover img {
  transform: scale(1.05);
}

.hero-side-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem 1.2rem 1rem 1.2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 30%, transparent 100%);
  color: #ffffff;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-side-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

/* Content Layout */
.main-content-wrapper {
  padding-bottom: 4rem;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

/* Sections */
.section-header {
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  position: relative;
  text-transform: uppercase;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.6rem;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--brand-red);
}

.section-more {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-red);
  text-transform: uppercase;
}

.section-more:hover {
  color: var(--text-primary);
}

/* News Lists & Cards */
.news-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.news-card-horizontal {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.2rem;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.news-card-horizontal:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-red);
}

.news-card-img-wrapper {
  overflow: hidden;
  height: 160px;
}

.news-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.news-card-horizontal:hover .news-card-img-wrapper img {
  transform: scale(1.05);
}

.news-card-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card-info {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.news-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.news-card-horizontal:hover .news-card-title {
  color: var(--brand-red);
}

.news-card-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.8rem;
}

.news-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Regional News Section */
.regional-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background-color: var(--bg-tertiary);
  padding: 0.3rem;
  border-radius: var(--radius-md);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 1.2rem;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  flex: 1;
}

.tab-btn:hover {
  color: var(--brand-red);
}

.tab-btn.active {
  background-color: var(--bg-secondary);
  color: var(--brand-red);
  box-shadow: var(--shadow-sm);
}

/* Sidebar Widgets */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.widget {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.widget-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.2rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.4rem;
  position: relative;
  text-transform: uppercase;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--brand-red);
}

/* Trending Widget */
.trending-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trending-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  cursor: pointer;
}

.trending-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-muted);
  line-height: 1;
  width: 30px;
  opacity: 0.6;
}

.trending-item:hover .trending-number {
  color: var(--brand-red);
  opacity: 1;
}

.trending-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trending-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
}

.trending-item:hover .trending-title {
  color: var(--brand-red);
}

.trending-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Weather & Prayer Widget */
.weather-prayer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  text-align: center;
}

.wp-card {
  background-color: var(--bg-tertiary);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.wp-icon {
  font-size: 2rem;
  color: var(--brand-red);
  margin-bottom: 0.5rem;
}

.wp-value {
  font-size: 1.2rem;
  font-weight: 800;
}

.wp-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Polling Widget */
.poll-question {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.poll-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.poll-option {
  position: relative;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
  overflow: hidden;
  transition: var(--transition);
}

.poll-option:hover {
  border-color: var(--brand-red);
}

.poll-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--brand-red-light);
  width: 0%;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.poll-text {
  position: relative;
  z-index: 2;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

/* News Submission Banner */
.submit-news-widget {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-left: 5px solid var(--brand-red);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.submit-news-widget h4 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.submit-news-widget p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.btn-primary {
  background-color: var(--brand-red);
  color: #ffffff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  display: inline-block;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--brand-red-hover);
  transform: translateY(-1px);
}

/* Modal Article Detail */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  z-index: 210;
  animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-color);
}

@keyframes modalSlideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: sticky;
  top: 1rem;
  left: 100%;
  margin-right: 1rem;
  background-color: var(--bg-tertiary);
  border: none;
  color: var(--text-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 220;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.modal-close:hover {
  background-color: var(--brand-red);
  color: #ffffff;
}

.modal-body {
  padding: 2.5rem;
}

.modal-news-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.modal-news-title {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.news-detail-title {
  font-family: 'Outfit', var(--font-serif);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.detail-wrapper {
  padding: 2rem 0;
}

.news-detail-container {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.news-detail-badge-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.modal-news-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.2rem;
  margin-bottom: 1.5rem;
}

.modal-news-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.modal-news-img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  max-height: 400px;
  object-fit: cover;
}

.news-detail-text,
.modal-news-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-primary);
}

.news-detail-text p,
.modal-news-text p {
  margin-bottom: 1.5rem;
}

.news-detail-text p:last-child,
.modal-news-text p:last-child {
  margin-bottom: 0;
}

.news-detail-text a,
.modal-news-text a {
  color: var(--brand-red);
  text-decoration: underline;
  font-weight: 600;
}

.news-detail-text a:hover,
.modal-news-text a:hover {
  color: var(--brand-red-hover);
}

.news-detail-text strong,
.news-detail-text b,
.modal-news-text strong,
.modal-news-text b {
  font-weight: 800;
  color: var(--text-primary);
}

.modal-news-text p {
  margin-bottom: 1.2rem;
}

.modal-news-text p:first-of-type::first-letter {
  font-family: var(--font-serif);
  float: left;
  font-size: 3.5rem;
  line-height: 0.8;
  padding-right: 0.5rem;
  padding-top: 0.2rem;
  font-weight: 800;
  color: var(--brand-red);
}

/* Footer */
.footer {
  background-color: #111827;
  color: #d1d5db;
  padding: 4rem 0 2rem 0;
  font-size: 0.9rem;
  border-top: 4px solid var(--brand-red);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-info h3 {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.footer-info h3 span {
  color: var(--brand-red);
}

.footer-info p {
  color: #9ca3af;
  margin-bottom: 1.5rem;
  max-width: 420px;
}

.footer-links-col h4 {
  color: #ffffff;
  font-size: 1rem;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.4rem;
}

.footer-links-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--brand-red);
}

.footer-links-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-links-col a {
  color: #9ca3af;
}

.footer-links-col a:hover {
  color: #ffffff;
  padding-left: 5px;
}

.footer-address p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-address i {
  color: var(--brand-red);
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-main {
    height: 380px;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .main-header .container {
    grid-template-columns: 1fr auto;
    gap: 1rem;
  }
  .header-left {
    display: none; /* Hide search box on tablet/mobile header, it can go in menu */
  }
  .header-ad {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-bar-left {
    display: none; /* Hide date and running text on mobile */
  }
  .navbar-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
  }
  .navbar-menu.active {
    display: flex;
  }
  .navbar-item {
    width: 100%;
    text-align: center;
  }
  .navbar-link {
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--border-color);
  }
  .navbar-link::after {
    display: none;
  }
  .menu-toggle {
    display: block;
    margin: 0.5rem auto;
  }
  .logo-main {
    font-size: 1.4rem;
  }
  .logo-sub {
    font-size: 0.65rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .logo-sub-motto {
    border-left: none;
    padding-left: 0;
  }
  .news-card-horizontal {
    grid-template-columns: 1fr;
  }
  .news-card-img-wrapper {
    height: 200px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .modal-body {
    padding: 1.5rem;
  }
  .modal-news-title,
  .news-detail-title {
    font-size: 1.6rem;
  }
  .detail-wrapper {
    padding: 1rem 0;
  }
  .news-detail-container {
    padding: 1.2rem;
  }
  .news-detail-badge-wrapper {
    margin-bottom: 0.5rem;
  }
  .hero-main-title {
    font-size: 1.6rem;
  }
  .hero-side-title {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .main-header {
    padding: 10px 0;
  }
  .main-header .container {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  .header-left {
    display: none !important;
  }
  .logo-container {
    flex-direction: column;
    gap: 5px;
  }
  .logo-text-wrapper {
    text-align: center;
  }
  .logo-main {
    font-size: 1.1rem;
  }
  .logo-sub {
    font-size: 0.75rem;
    flex-direction: column;
    gap: 2px;
  }
  .logo-sub-motto {
    border-left: none;
    padding-left: 0;
  }
  .header-right {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .header-ad {
    display: flex;
    font-size: 0.8rem;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .navbar-link {
    font-size: 0.8rem;
    padding: 0.8rem;
  }
  .hero-main-title {
    font-size: 1.25rem;
  }
  .hero-side-title {
    font-size: 0.95rem;
  }
  .modal-news-title,
  .news-detail-title {
    font-size: 1.3rem;
  }
  .detail-wrapper {
    padding: 0.5rem 0;
  }
  .news-detail-container {
    padding: 1rem;
    border-radius: var(--radius-md);
  }
  .news-detail-badge-wrapper {
    margin-bottom: 0.3rem;
  }
}

/* School Specific Styles */
.welcome-headmaster {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.headmaster-img-wrapper {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.headmaster-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.headmaster-info {
  margin-top: 0.2rem;
}

.headmaster-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.headmaster-title {
  font-size: 0.75rem;
  color: var(--brand-red);
  font-weight: 600;
  text-transform: uppercase;
}

.welcome-msg {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  font-style: italic;
}

/* Quick Links School */
.quick-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quick-link-btn {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-primary);
  transition: var(--transition);
}

.quick-link-btn:hover {
  background-color: var(--brand-red);
  color: #ffffff;
  border-color: var(--brand-red);
  transform: translateX(3px);
}

.quick-link-btn i {
  font-size: 1.1rem;
}

/* Agenda List */
.agenda-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agenda-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.8rem;
}

.agenda-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.agenda-date-box {
  background-color: var(--brand-red-light);
  border: 1.5px solid var(--border-color);
  color: var(--brand-red);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  font-weight: 800;
  flex-shrink: 0;
}

.agenda-date-day {
  font-size: 1.2rem;
  line-height: 1;
}

.agenda-date-month {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
}

.agenda-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.agenda-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.agenda-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

