/* ============================================================
   Daily News Portal - Main Stylesheet
   Modern, responsive, mobile-first news portal design
   ============================================================ */

/* --- CSS Custom Properties (Light Theme) --- */
:root {
  --primary: #c41e3a;
  --primary-dark: #9a1830;
  --secondary: #1a1a2e;
  --accent: #e94560;
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --text: #212529;
  --text-muted: #6c757d;
  --text-light: #adb5bd;
  --border: #dee2e6;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
  --header-height: 70px;
  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --whatsapp: #25d366;
  --progress-bar: var(--primary);
}

/* --- Dark Theme --- */
[data-theme="dark"] {
  --bg: #0d1117;
  --bg-card: #161b22;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-light: #6e7681;
  --border: #30363d;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
  --secondary: #e6edf3;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* --- Reading Progress Bar --- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--progress-bar);
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
}

/* --- Advertisement Banners --- */
.ad-banner {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  padding: 12px 20px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.ad-banner--sidebar {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  padding: 40px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-banner--inline {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  padding: 30px;
  border-radius: var(--radius);
  margin: 32px 0;
}

.ad-banner--footer {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  padding: 20px;
  margin-top: 32px;
}

.ad-banner span {
  opacity: 0.8;
  font-size: 0.7rem;
  display: block;
  margin-bottom: 4px;
}

/* --- Top Bar --- */
.top-bar {
  background: var(--secondary);
  color: #fff;
  padding: 6px 0;
  font-size: 0.8rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.top-bar__date {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar__social {
  display: flex;
  gap: 12px;
}

.top-bar__social a {
  color: #fff;
  opacity: 0.8;
  transition: opacity var(--transition);
}

.top-bar__social a:hover {
  opacity: 1;
}

/* --- Breaking News Ticker --- */
.breaking-ticker {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 36px;
}

.breaking-ticker__label {
  background: var(--primary-dark);
  padding: 0 16px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  height: 100%;
  display: flex;
  align-items: center;
  z-index: 2;
  flex-shrink: 0;
}

.breaking-ticker__content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.breaking-ticker__track {
  display: flex;
  animation: tickerScroll 30s linear infinite;
  white-space: nowrap;
}

.breaking-ticker__item {
  padding: 0 40px;
  font-size: 0.85rem;
  display: inline-block;
}

.breaking-ticker__item::before {
  content: '⚡';
  margin-right: 8px;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Header --- */
.site-header {
  background: var(--bg-card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 16px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo__icon {
  width: 42px;
  height: 42px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
}

.site-logo__text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1.2;
}

[data-theme="dark"] .site-logo__text {
  color: var(--text);
}

.site-logo__tagline {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* --- Search Bar --- */
.search-bar {
  flex: 1;
  max-width: 400px;
  position: relative;
}

.search-bar__input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
  outline: none;
}

.search-bar__input:focus {
  border-color: var(--primary);
}

.search-bar__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-bar__results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 350px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}

.search-bar__results.active {
  display: block;
}

.search-bar__result-item {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition);
}

.search-bar__result-item:hover {
  background: var(--bg);
}

.search-bar__result-item:last-child {
  border-bottom: none;
}

.search-bar__result-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.search-bar__result-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* --- Header Actions --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Navigation --- */
.main-nav {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 3px solid var(--primary);
}

.main-nav .container {
  display: flex;
  align-items: center;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.main-nav .container::-webkit-scrollbar {
  display: none;
}

.main-nav__list {
  display: flex;
  gap: 0;
}

.main-nav__link {
  display: block;
  padding: 12px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
  white-space: nowrap;
  position: relative;
  transition: color var(--transition);
}

.main-nav__link:hover,
.main-nav__link.active {
  color: var(--primary);
}

.main-nav__link.active::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--primary);
}

/* --- Hero Slider --- */
.hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 24px 0;
  height: 450px;
}

.hero-slider__track {
  display: flex;
  transition: transform 0.6s ease;
  height: 100%;
}

.hero-slider__slide {
  min-width: 100%;
  position: relative;
  height: 100%;
}

.hero-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slider__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px 30px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
}

.hero-slider__category {
  display: inline-block;
  background: var(--primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-slider__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
}

.hero-slider__desc {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slider__meta {
  font-size: 0.8rem;
  opacity: 0.7;
}

.hero-slider__controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-slider__btn {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.hero-slider__btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.hero-slider__dots {
  position: absolute;
  bottom: 20px;
  left: 30px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.hero-slider__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-slider__dot.active {
  background: #fff;
  width: 28px;
  border-radius: 5px;
}

/* --- Section Titles --- */
.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
  position: relative;
}

.section-title i {
  color: var(--primary);
  margin-right: 8px;
}

/* --- News Cards Grid --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.news-card__image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card__image img {
  transform: scale(1.05);
}

.news-card__category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.news-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__title a:hover {
  color: var(--primary);
}

.news-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.news-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-read-more:hover {
  background: var(--primary-dark);
}

/* --- Layout: Main + Sidebar --- */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin: 32px 0;
}

.main-content {
  min-width: 0;
}

/* --- Sidebar --- */
.sidebar-widget {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.sidebar-widget__title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}

/* Most Read List */
.most-read-list {
  counter-reset: mostread;
}

.most-read-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: mostread;
}

.most-read-item:last-child {
  border-bottom: none;
}

.most-read-item::before {
  content: counter(mostread);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  opacity: 0.5;
  min-width: 30px;
  line-height: 1.2;
}

.most-read-item__title {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
}

.most-read-item__title a:hover {
  color: var(--primary);
}

.most-read-item__views {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Recent Posts */
.recent-post {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.recent-post:last-child {
  border-bottom: none;
}

.recent-post__thumb {
  width: 70px;
  height: 55px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.recent-post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-post__title {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
}

.recent-post__date {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Trending List */
.trending-list {
  counter-reset: trending;
}

.trending-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  counter-increment: trending;
}

.trending-item:last-child {
  border-bottom: none;
}

.trending-item__rank {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.3;
  min-width: 36px;
  line-height: 1;
}

.trending-item__info {
  flex: 1;
}

.trending-item__title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}

.trending-item__title a:hover {
  color: var(--primary);
}

.trending-item__meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Popular Tags */
.tags-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: all var(--transition);
  cursor: pointer;
}

.tag:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* --- Newsletter Form --- */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.newsletter-form input {
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input:focus {
  border-color: var(--primary);
}

.btn-subscribe {
  padding: 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-subscribe:hover {
  background: var(--primary-dark);
}

.newsletter-success {
  color: #28a745;
  font-size: 0.85rem;
  display: none;
}

/* --- Article Detail Page --- */
.article-header {
  margin-bottom: 24px;
}

.article-header__category {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 14px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.article-header__title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.article-header__meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.article-featured-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.article-content {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.article-content p {
  margin-bottom: 16px;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.share-buttons__label {
  font-weight: 600;
  font-size: 0.9rem;
}

.share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: transform var(--transition);
}

.share-btn:hover {
  transform: scale(1.1);
}

.share-btn--whatsapp { background: #25d366; }
.share-btn--facebook { background: #1877f2; }
.share-btn--twitter { background: #1da1f2; }
.share-btn--telegram { background: #0088cc; }

/* Article Navigation */
.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.article-nav__item {
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition);
}

.article-nav__item:hover {
  box-shadow: var(--shadow-lg);
}

.article-nav__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.article-nav__title {
  font-weight: 600;
  font-size: 0.9rem;
}

.article-nav__item--next {
  text-align: right;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition);
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--primary-dark);
}

.contact-info__item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.contact-info__icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__text h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-info__text p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.map-placeholder {
  width: 100%;
  height: 300px;
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  margin-top: 24px;
}

/* --- Search Results Page --- */
.search-header {
  margin: 32px 0 24px;
}

.search-header__query {
  color: var(--primary);
}

.search-count {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}

/* --- Category Page --- */
.category-header {
  margin: 32px 0 24px;
  text-align: center;
}

.category-header__title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 8px;
}

.category-header__count {
  color: var(--text-muted);
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  justify-content: center;
}

.category-filter-btn {
  padding: 8px 18px;
  border: 2px solid var(--border);
  border-radius: 50px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.category-filter-btn:hover,
.category-filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* --- Skeleton Loading --- */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, var(--bg) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

.skeleton-card {
  height: 350px;
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform var(--transition);
  animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  color: #fff;
}

.whatsapp-float::before {
  content: 'Chat with Us on WhatsApp';
  position: absolute;
  right: 68px;
  background: #333;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  font-family: var(--font-main);
}

.whatsapp-float:hover::before {
  opacity: 1;
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.7); }
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 9998;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary);
}

/* --- Footer --- */
.site-footer {
  background: var(--secondary);
  color: #ccc;
  padding: 48px 0 0;
  margin-top: 48px;
}

[data-theme="dark"] .site-footer {
  background: #010409;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-about__logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer-about p {
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.footer-links__title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 0.85rem;
  color: #ccc;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 40px 0;
  margin-bottom: 32px;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: 2rem;
}

.page-header p {
  opacity: 0.8;
  margin-top: 8px;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.breadcrumb a:hover {
  color: var(--primary);
}

.breadcrumb__sep {
  opacity: 0.5;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .page-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-slider {
    height: 350px;
  }

  .hero-slider__title {
    font-size: 1.4rem;
  }
}

@media (max-width: 768px) {
  .search-bar {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    z-index: 999;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.active {
    display: block;
  }

  .main-nav__list {
    flex-direction: column;
  }

  .main-nav__link {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
  }

  .hero-slider {
    height: 280px;
    margin: 16px 0;
  }

  .hero-slider__title {
    font-size: 1.1rem;
  }

  .hero-slider__overlay {
    padding: 20px 16px 16px;
  }

  .article-header__title {
    font-size: 1.6rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-nav {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .share-buttons {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .site-logo__text {
    font-size: 1.1rem;
  }

  .top-bar {
    font-size: 0.7rem;
  }

  .hero-slider {
    height: 220px;
    border-radius: 0;
    margin: 0 -16px;
  }
}

/* --- Utility Classes --- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.hidden { display: none !important; }
