﻿/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors inspired by Bangladesh flag - Enhanced */
  --primary-green: #006a4e;
  --primary-red: #f42a41;
  --dark-green: #004d38;
  --light-green: #00a86b;
  --vibrant-green: #00d084;

  /* Neutral colors */
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #e9ecef;
  --gray: #6c757d;
  --dark-gray: #2c3e50;
  --black: #1a1a1a;

  /* Accent colors */
  --gold: #ffd700;
  --light-gold: #fff4cc;
  --orange: #ff6b35;
  --blue: #4a90e2;

  /* Typography */
  --font-primary: "Hind Siliguri", sans-serif;
  --font-serif: "Noto Serif Bengali", serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Border radius */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;

  /* Shadows */
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.16);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.2);
}

/* Dark Mode Variables */
body.dark-mode {
  --white: #1a1a1a;
  --off-white: #2c2c2c;
  --light-gray: #3a3a3a;
  --gray: #b0b0b0;
  --dark-gray: #e0e0e0;
  --black: #f0f0f0;

  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.6);
}

body.dark-mode {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}

body.dark-mode .header {
  background: rgba(20, 20, 20, 0.98);
  border-bottom: 1px solid rgba(0, 168, 107, 0.3);
}

/* Hero section - darkest with subtle green tint */
body.dark-mode .hero {
  background: linear-gradient(135deg, #0d1410 0%, #1a1f1c 100%);
}

/* About section - dark with slight variation */
body.dark-mode .about {
  background: linear-gradient(135deg, #1a1a1a 0%, #252525 100%);
}

/* Categories section - medium dark with green tint */
body.dark-mode .categories {
  background: linear-gradient(135deg, #1c2420 0%, #283028 100%);
}

/* Explore section - dark with subtle variation */
body.dark-mode .explore {
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
}

/* Featured articles - medium with slight green */
body.dark-mode .featured-articles {
  background: linear-gradient(135deg, #202520 0%, #2c322c 100%);
}

/* News section - dark neutral */
body.dark-mode .news-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #242424 100%);
}

/* Quick links - medium dark */
body.dark-mode .quick-links {
  background: linear-gradient(135deg, #1f241f 0%, #2b302b 100%);
}

/* Stats section keeps its green gradient */
body.dark-mode .stats {
  background: linear-gradient(135deg, #004d38 0%, #003829 100%);
}

body.dark-mode .about-card,
body.dark-mode .category-card,
body.dark-mode .explore-card,
body.dark-mode .article-card,
body.dark-mode .news-card,
body.dark-mode .quick-link-card {
  background: rgba(40, 45, 42, 0.6);
  border-color: rgba(0, 168, 107, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body.dark-mode .about-card:hover,
body.dark-mode .category-card:hover,
body.dark-mode .explore-card:hover,
body.dark-mode .article-card:hover,
body.dark-mode .news-card:hover,
body.dark-mode .quick-link-card:hover {
  background: rgba(45, 52, 48, 0.8);
  border-color: rgba(0, 168, 107, 0.4);
}

body.dark-mode .search-box {
  background: rgba(35, 40, 37, 0.8);
  border-color: rgba(0, 168, 107, 0.3);
}

body.dark-mode .search-input {
  color: #f0f0f0;
  background: transparent;
}

body.dark-mode .newsletter {
  background: linear-gradient(135deg, #004d38 0%, #003829 100%);
}

body.dark-mode .newsletter-input {
  background: rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .footer {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  border-top-color: rgba(0, 168, 107, 0.3);
}

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--black);
  background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Header - Enhanced */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 106, 78, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--vibrant-green) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-domain {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-red) 0%, #ff4757 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-green),
    var(--vibrant-green)
  );
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-menu a:hover {
  color: var(--primary-green);
}

.nav-menu a:hover::after {
  width: 100%;
}

/* Hero Section - Premium Design */
.hero {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl) var(--spacing-md);
  width: 100%;
  background: radial-gradient(
      circle at 30% 40%,
      rgba(0, 168, 107, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 60%,
      rgba(244, 42, 65, 0.08) 0%,
      transparent 50%
    ),
    linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(0,106,78,0.03)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.5;
  pointer-events: none;
}

.hero-content,
.hero-content-centered {
  max-width: 900px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-title-main {
  display: block;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--vibrant-green) 50%,
    var(--primary-green) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: var(--spacing-xs);
  letter-spacing: -1px;
}

.hero-title-sub {
  display: block;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--primary-red) 0%, #ff4757 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: var(--spacing-md);
  line-height: 1.8;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Search Container - Google-inspired */
.search-container {
  margin-bottom: var(--spacing-lg);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 50px;
  padding: 1rem 1.75rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
  transition: all 0.4s ease;
  margin-bottom: var(--spacing-sm);
}

.search-box:focus-within {
  border-color: var(--primary-green);
  box-shadow: 0 8px 32px rgba(0, 106, 78, 0.2);
  transform: translateY(-2px);
}

.search-icon {
  color: var(--primary-green);
  margin-right: var(--spacing-sm);
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.1rem;
  font-family: var(--font-primary);
  color: var(--black);
  font-weight: 500;
}

.search-input::placeholder {
  color: var(--gray);
  font-weight: 400;
}

.search-btn {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--vibrant-green) 100%
  );
  color: var(--white);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-left: var(--spacing-sm);
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.3);
}

.search-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 106, 78, 0.4);
}

.search-suggestions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.suggestion-tag {
  background: linear-gradient(
    135deg,
    rgba(0, 106, 78, 0.08) 0%,
    rgba(0, 168, 107, 0.08) 100%
  );
  color: var(--primary-green);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.suggestion-tag:hover {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--vibrant-green) 100%
  );
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.3);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-top: var(--spacing-md);
}

.btn {
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--vibrant-green) 100%
  );
  color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 106, 78, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 106, 78, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-green);
  border: 2px solid var(--primary-green);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 106, 78, 0.3);
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  position: relative;
}

.flag-colors {
  position: relative;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.flag-green {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--vibrant-green) 0%,
    var(--primary-green) 50%,
    var(--dark-green) 100%
  );
}

.flag-red {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 270px;
  height: 270px;
  background: linear-gradient(
    135deg,
    #ff4757 0%,
    var(--primary-red) 50%,
    #d91e36 100%
  );
  border-radius: 50%;
  box-shadow: 0 8px 32px rgba(244, 42, 65, 0.4);
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--vibrant-green) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  letter-spacing: -0.5px;
}

/* About Section */
.about {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.about-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: all 0.4s ease;
  border: 2px solid transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.about-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 48px rgba(0, 106, 78, 0.15);
  border-color: var(--primary-green);
}

.about-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.about-card h3 {
  font-size: 1.75rem;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.about-card p {
  color: var(--gray);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Categories Section */
.categories {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.category-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-green),
    var(--vibrant-green)
  );
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.category-card:hover::before {
  transform: scaleX(1);
}

.category-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0, 106, 78, 0.2);
  border-color: var(--primary-green);
}

.category-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.category-card h3 {
  font-size: 1.75rem;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.category-card p {
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.category-link {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.category-link:hover {
  transform: translateX(8px);
  color: var(--dark-green);
}

/* Explore Section */
.explore {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.explore-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.explore-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.explore-image {
  width: 100%;
  height: 260px;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
  position: relative;
}

.explore-card:hover .explore-image {
  transform: scale(1.1);
}

.explore-img-1 {
  background: linear-gradient(
      135deg,
      rgba(0, 106, 78, 0.8),
      rgba(0, 168, 107, 0.8)
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 260"><rect fill="%23006a4e" width="400" height="260"/><text x="50%" y="50%" font-size="60" fill="white" text-anchor="middle" dominant-baseline="middle">ðŸŒ³</text></svg>');
}

.explore-img-2 {
  background: linear-gradient(
      135deg,
      rgba(244, 42, 65, 0.8),
      rgba(255, 71, 87, 0.8)
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 260"><rect fill="%23f42a41" width="400" height="260"/><text x="50%" y="50%" font-size="60" fill="white" text-anchor="middle" dominant-baseline="middle">ðŸ–ï¸</text></svg>');
}

.explore-img-3 {
  background: linear-gradient(
      135deg,
      rgba(0, 106, 78, 0.8),
      rgba(244, 42, 65, 0.8)
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 260"><rect fill="%23006a4e" width="400" height="260"/><text x="50%" y="50%" font-size="60" fill="white" text-anchor="middle" dominant-baseline="middle">ðŸ›ï¸</text></svg>');
}

.explore-content {
  padding: 1.75rem;
}

.explore-content h3 {
  font-size: 1.75rem;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.explore-content p {
  color: var(--gray);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Stats Section */
.stats {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.stat-card {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-8px);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-label {
  font-size: 1.25rem;
  color: var(--white);
  opacity: 0.95;
  font-weight: 600;
}

/* Featured Articles Section */
.featured-articles {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
}

.article-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.article-card.featured {
  grid-column: span 2;
}

.article-image {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
}

.article-img-1 {
  background: linear-gradient(
      135deg,
      rgba(0, 106, 78, 0.85),
      rgba(0, 168, 107, 0.85)
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 220"><rect fill="%23006a4e" width="400" height="220"/><text x="50%" y="50%" font-size="50" fill="white" text-anchor="middle" dominant-baseline="middle">ðŸ›ï¸</text></svg>');
}

.article-img-2 {
  background: linear-gradient(
      135deg,
      rgba(0, 106, 78, 0.85),
      rgba(0, 168, 107, 0.85)
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 220"><rect fill="%23006a4e" width="400" height="220"/><text x="50%" y="50%" font-size="50" fill="white" text-anchor="middle" dominant-baseline="middle">ðŸŒ³</text></svg>');
}

.article-img-3 {
  background: linear-gradient(
      135deg,
      rgba(244, 42, 65, 0.85),
      rgba(255, 71, 87, 0.85)
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 220"><rect fill="%23f42a41" width="400" height="220"/><text x="50%" y="50%" font-size="50" fill="white" text-anchor="middle" dominant-baseline="middle">ðŸŒ‰</text></svg>');
}

.article-img-4 {
  background: linear-gradient(
      135deg,
      rgba(0, 106, 78, 0.85),
      rgba(244, 42, 65, 0.85)
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 220"><rect fill="%23006a4e" width="400" height="220"/><text x="50%" y="50%" font-size="50" fill="white" text-anchor="middle" dominant-baseline="middle">ðŸŽ­</text></svg>');
}

.article-content {
  padding: 1.75rem;
}

.article-category {
  display: inline-block;
  background: linear-gradient(
    135deg,
    var(--vibrant-green) 0%,
    var(--primary-green) 100%
  );
  color: var(--white);
  padding: 0.375rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.article-content h3 {
  font-size: 1.4rem;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}

.article-content p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.article-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 600;
}

/* News Section */
.news-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border-left: 5px solid var(--primary-green);
  transition: all 0.4s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.news-card:hover {
  transform: translateX(12px);
  box-shadow: 0 12px 40px rgba(0, 106, 78, 0.15);
  border-left-width: 8px;
}

.news-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-red) 0%, #ff4757 100%);
  color: var(--white);
  padding: 0.375rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 8px rgba(244, 42, 65, 0.3);
}

.news-card h4 {
  font-size: 1.3rem;
  color: var(--primary-green);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.news-card p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.news-time {
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 600;
}

/* Newsletter Section */
.newsletter {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--vibrant-green) 100%
  );
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.newsletter-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.newsletter-text h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.newsletter-text p {
  font-size: 1.2rem;
  opacity: 0.95;
  line-height: 1.7;
}

.newsletter-form {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.5rem;
  border-radius: 50px;
  backdrop-filter: blur(10px);
}

.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  font-size: 1.05rem;
  font-family: var(--font-primary);
  font-weight: 500;
}

.newsletter-btn {
  background: linear-gradient(135deg, var(--primary-red) 0%, #ff4757 100%);
  color: var(--white);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(244, 42, 65, 0.4);
}

.newsletter-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(244, 42, 65, 0.5);
}

/* Quick Links Section */
.quick-links {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.quick-link-card {
  background: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  text-decoration: none;
  color: var(--dark-gray);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border: 2px solid transparent;
}

.quick-link-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 106, 78, 0.15);
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.quick-link-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.quick-link-card span {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, var(--dark-gray) 0%, #1a252f 100%);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-about {
  max-width: 320px;
}

.footer-section h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--gold) 0%, #ffed4e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  font-weight: 800;
}

.footer-section h4 {
  font-size: 1.2rem;
  color: var(--light-gray);
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.footer-section a:hover {
  color: var(--gold);
  transform: translateX(4px);
  display: inline-block;
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--white);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover {
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--vibrant-green)
  );
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 168, 107, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Contact Info */
.contact-info li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.contact-info svg {
  flex-shrink: 0;
  color: var(--gold);
}

/* Footer Divider */
.footer-divider {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  margin: 2.5rem 0;
}

/* Footer Bottom */
.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-links span {
  color: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-title-main {
    font-size: 3.5rem;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .flag-colors {
    width: 350px;
    height: 350px;
  }

  .flag-red {
    width: 210px;
    height: 210px;
  }

  .nav-menu {
    gap: 1rem;
    font-size: 0.95rem;
  }

  .article-card.featured {
    grid-column: span 1;
  }

  .newsletter-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-about {
    grid-column: span 2;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-title-main {
    font-size: 2.75rem;
  }

  .hero-title-sub {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 2.25rem;
  }

  .nav-menu {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .flag-colors {
    width: 280px;
    height: 280px;
  }

  .flag-red {
    width: 168px;
    height: 168px;
  }

  .search-box {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .search-btn {
    margin-left: 0;
    margin-top: 0.75rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-about {
    grid-column: span 1;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-text h2 {
    font-size: 2rem;
  }
}
/* Menu Toggle Button */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--primary-green),
    var(--vibrant-green)
  );
  border-radius: 3px;
  transition: all 0.3s ease;
}

.menu-toggle:hover span {
  background: linear-gradient(
    90deg,
    var(--vibrant-green),
    var(--primary-green)
  );
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100vh;
  background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 1002;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow-y: auto;
}

.sidebar.active {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--vibrant-green) 100%
  );
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 10;
}

.sidebar-header h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 800;
}

.sidebar-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sidebar-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.sidebar-content {
  padding: 1.5rem 2rem 2rem;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section h3 {
  font-size: 1.2rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-weight: 700;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--light-gray);
}

.sidebar-section ul {
  list-style: none;
}

.sidebar-section ul li {
  margin-bottom: 0.5rem;
}

.sidebar-section a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--dark-gray);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1.05rem;
}

.sidebar-section a:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 106, 78, 0.1) 0%,
    rgba(0, 168, 107, 0.1) 100%
  );
  color: var(--primary-green);
  transform: translateX(8px);
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Styles - Premium Design */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: rgba(255, 255, 255, 0.95);
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  transform: scale(0.9) translateY(20px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--dark-gray);
}

.modal-close:hover {
  background: var(--primary-red);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: inline-block;
  filter: drop-shadow(0 8px 16px rgba(0, 106, 78, 0.2));
  animation: float 4s ease-in-out infinite;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--vibrant-green) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.modal-body {
  text-align: center;
}

.detail-item {
  background: rgba(0, 106, 78, 0.04);
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  color: var(--dark-gray);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.detail-item:hover {
  background: rgba(0, 106, 78, 0.08);
  transform: translateX(4px);
}

.detail-item i {
  color: var(--primary-green);
  font-size: 1.2rem;
}

/* Dark Mode Modal */
body.dark-mode .modal-container {
  background: rgba(30, 35, 33, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .modal-close {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

body.dark-mode .detail-item {
  background: rgba(255, 255, 255, 0.05);
  color: var(--light-gray);
}

body.dark-mode .detail-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Mobile responsive for menu */
@media (max-width: 968px) {
  .sidebar {
    width: 320px;
    right: -340px;
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    display: flex !important;
  }
}

/* ============================================
   ADVANCED FEATURES STYLES
   ============================================ */

/* Live Widgets Section */
.live-widgets {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-md);
}

.live-clock,
.live-weather {
  background: linear-gradient(
    135deg,
    rgba(0, 106, 78, 0.1) 0%,
    rgba(0, 168, 107, 0.1) 100%
  );
  padding: 1.5rem 2.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--primary-green);
  box-shadow: 0 4px 16px rgba(0, 106, 78, 0.15);
  transition: all 0.3s ease;
}

.live-clock:hover,
.live-weather:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 106, 78, 0.25);
}

.live-clock h3,
.live-weather h3 {
  font-size: 0.9rem;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.clock-display {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--vibrant-green) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-serif);
}

.clock-date {
  font-size: 1rem;
  color: var(--gray);
  margin-top: 0.25rem;
}

.weather-display {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.weather-icon {
  font-size: 3rem;
}

.weather-info {
  display: flex;
  flex-direction: column;
}

.weather-temp {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-green);
}

.weather-condition {
  font-size: 0.95rem;
  color: var(--gray);
}

/* Interactive Bangladesh Map */
.interactive-map-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 5rem 0;
}

.map-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.map-svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
}

.division-path {
  fill: var(--primary-green);
  stroke: var(--white);
  stroke-width: 2;
  transition: all 0.3s ease;
  cursor: pointer;
}

.division-path:hover {
  fill: var(--vibrant-green);
  filter: brightness(1.1);
  transform: scale(1.02);
}

.division-path:nth-child(2n) {
  fill: var(--light-green);
}

.division-label {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 700;
  fill: var(--white);
  pointer-events: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.map-info {
  margin-top: 2rem;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(0, 106, 78, 0.05) 0%,
    rgba(0, 168, 107, 0.05) 100%
  );
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary-green);
  min-height: 100px;
}

.map-info h3 {
  color: var(--primary-green);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.map-info p {
  color: var(--gray);
  line-height: 1.7;
}

/* Image Gallery/Slider */
.gallery-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 5rem 0;
}

.gallery-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.gallery-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.gallery-slide {
  min-width: 100%;
  position: relative;
}

.gallery-slide img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  color: var(--white);
  padding: 3rem 2rem 2rem;
}

.gallery-caption h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.gallery-caption p {
  font-size: 1.1rem;
  opacity: 0.95;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.gallery-btn {
  pointer-events: all;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-green);
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.gallery-btn:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: scale(1.1);
}

.gallery-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
}

.gallery-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* Interactive Timeline */
.timeline-section {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  padding: 5rem 0;
}

.timeline-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    var(--primary-green),
    var(--vibrant-green)
  );
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 4rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  flex: 1;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  margin: 0 2rem;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 106, 78, 0.2);
}

.timeline-year {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(
    135deg,
    var(--primary-green),
    var(--vibrant-green)
  );
  color: var(--white);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 106, 78, 0.3);
  border: 4px solid var(--white);
}

.timeline-content h3 {
  color: var(--primary-green);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.timeline-content p {
  color: var(--gray);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Search Results */
.search-results {
  display: none;
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.search-results.active {
  display: block;
  animation: slideDown 0.4s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   DARK MODE - ADDITIONAL FIXES
   ============================================ */

/* Search Results Dark Mode */
body.dark-mode .search-results {
  background: rgba(26, 26, 26, 0.98);
  border-top: 1px solid rgba(0, 168, 107, 0.3);
}

body.dark-mode .search-results h3 {
  color: #f0f0f0;
}

body.dark-mode .search-result-item {
  background: rgba(40, 45, 42, 0.6);
  border-color: rgba(0, 168, 107, 0.2);
}

body.dark-mode .search-result-item:hover {
  background: rgba(45, 52, 48, 0.8);
  border-color: rgba(0, 168, 107, 0.4);
}

body.dark-mode .search-result-item h4 {
  color: #f0f0f0;
}

body.dark-mode .search-result-item p {
  color: #b0b0b0;
}

body.dark-mode .search-highlight {
  background: rgba(0, 168, 107, 0.3);
  color: var(--vibrant-green);
}

body.dark-mode .no-results {
  color: #b0b0b0;
}

body.dark-mode .no-results i {
  color: rgba(0, 168, 107, 0.5);
}

/* Loading Overlay Dark Mode */
body.dark-mode .loading-overlay {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}

body.dark-mode .loading-text {
  color: #f0f0f0;
}

/* Ensure all headings are visible in dark mode */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
  color: #f0f0f0;
}

/* Ensure all paragraphs are visible in dark mode */
body.dark-mode p {
  color: #d0d0d0;
}

/* Ensure all links are visible in dark mode */
body.dark-mode a {
  color: var(--vibrant-green);
}

/* Article meta text in dark mode */
body.dark-mode .article-meta {
  color: #b0b0b0;
}

body.dark-mode .article-date,
body.dark-mode .article-read {
  color: #b0b0b0;
}

/* Category badges in dark mode */
body.dark-mode .article-category {
  background: rgba(0, 168, 107, 0.2);
  color: var(--vibrant-green);
}

/* News badges in dark mode */
body.dark-mode .news-badge {
  background: var(--primary-red);
  color: white;
}

/* Footer in dark mode */
body.dark-mode .footer {
  background: #1a1a1a;
  border-top: 1px solid rgba(0, 168, 107, 0.2);
}

body.dark-mode .footer-links a {
  color: #d0d0d0;
}

body.dark-mode .footer-links a:hover {
  color: var(--vibrant-green);
}

/* Footer contact info in dark mode */
body.dark-mode .contact-info {
  color: #d0d0d0;
}

body.dark-mode .contact-info li {
  color: #d0d0d0;
}

body.dark-mode .contact-info span {
  color: #d0d0d0;
}

body.dark-mode .contact-info svg {
  stroke: var(--vibrant-green);
}

body.dark-mode .footer-section h4 {
  color: #f0f0f0;
}

body.dark-mode .footer-section ul li a {
  color: #d0d0d0;
}

body.dark-mode .footer-section ul li a:hover {
  color: var(--vibrant-green);
}

/* Stats in dark mode - ensure text is visible */
body.dark-mode .stat-number {
  color: white;
}

body.dark-mode .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* Quick links in dark mode */
body.dark-mode .quick-link-card h4 {
  color: #f0f0f0;
}

body.dark-mode .quick-link-card p {
  color: #b0b0b0;
}

/* Newsletter in dark mode */
body.dark-mode .newsletter h2 {
  color: white;
}

body.dark-mode .newsletter p {
  color: rgba(255, 255, 255, 0.9);
}

body.dark-mode .newsletter-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

body.dark-mode .newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Ensure sidebar text is visible */
body.dark-mode .sidebar h2 {
  color: #f0f0f0;
}

body.dark-mode .sidebar-nav a {
  color: #d0d0d0;
}

body.dark-mode .sidebar-nav a:hover {
  color: var(--vibrant-green);
}

/* Footer hover effects - minimal animation */
.footer-section ul li a {
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-section ul li a:hover {
  color: var(--vibrant-green);
  transform: translateX(3px);
}

.contact-info li {
  transition: all 0.2s ease;
}

.contact-info li:hover {
  transform: translateX(3px);
}

.contact-info li:hover svg {
  transform: scale(1.1);
}

.footer-links a {
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--vibrant-green);
  transform: none;
}

.search-results h3 {
  color: var(--primary-green);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.search-result-item {
  padding: 1.5rem;
  border-bottom: 1px solid var(--light-gray);
  transition: all 0.3s ease;
  cursor: pointer;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: linear-gradient(
    135deg,
    rgba(0, 106, 78, 0.05) 0%,
    rgba(0, 168, 107, 0.05) 100%
  );
  transform: translateX(8px);
}

.search-result-item h4 {
  color: var(--primary-green);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.search-result-item p {
  color: var(--gray);
  line-height: 1.7;
}

.search-highlight {
  background: linear-gradient(
    135deg,
    rgba(255, 215, 0, 0.3),
    rgba(255, 215, 0, 0.5)
  );
  padding: 0 4px;
  border-radius: 3px;
  font-weight: 700;
}

.no-results {
  text-align: center;
  padding: 3rem;
  color: var(--gray);
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Parallax Effects */
.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  right: 0;
  bottom: -20%;
  background-size: cover;
  background-position: center;
  transform: translateZ(0);
  will-change: transform;
}

/* 3D Card Effects */
.card-3d {
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}

.card-3d:hover {
  transform: perspective(1000px) rotateX(var(--rotate-x, 0deg))
    rotateY(var(--rotate-y, 0deg));
}

/* Loading Animation */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--vibrant-green) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner {
  width: 80px;
  height: 80px;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.5rem;
  font-family: var(--font-serif);
}

/* Smooth Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive for Advanced Features */
@media (max-width: 968px) {
  .timeline-line {
    left: 30px;
  }

  .timeline-item {
    flex-direction: column !important;
    padding-left: 80px;
  }

  .timeline-year {
    left: 30px;
  }

  .timeline-content {
    margin: 0;
  }

  .gallery-slide img {
    height: 400px;
  }

  .gallery-caption h3 {
    font-size: 1.5rem;
  }

  .live-widgets {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .gallery-slide img {
    height: 300px;
  }

  .gallery-btn {
    width: 45px;
    height: 45px;
    font-size: 1.2rem;
  }

  .clock-display {
    font-size: 2rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .map-container {
    padding: 1.5rem;
  }
}

/* Subpage Styles */
.page-header {
  background: linear-gradient(
    135deg,
    var(--primary-green) 0%,
    var(--dark-green) 100%
  );
  color: var(--white);
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.page-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-breadcrumb {
  font-size: 1.1rem;
  opacity: 0.9;
}

.page-breadcrumb a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

.page-content {
  padding: 4rem 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  min-height: 60vh;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
}

@media (max-width: 900px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.main-article {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.article-image-large {
  width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
}

.article-content h2 {
  font-family: var(--font-serif);
  color: var(--primary-green);
  font-size: 2rem;
  margin: 2rem 0 1rem;
}

.article-content p {
  margin-bottom: 1.25rem;
  font-size: 1.1rem;
  color: var(--dark-gray);
  line-height: 1.8;
}

/* Sidebar Widgets for Subpages */
.widget {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(0, 168, 107, 0.1);
}

.widget-links {
  list-style: none;
}

.widget-links li {
  margin-bottom: 0.75rem;
}

.widget-links a {
  color: var(--gray);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.widget-links a:hover {
  color: var(--primary-green);
  transform: translateX(5px);
}

/* Dark Mode for Subpages */
body.dark-mode .page-header {
  background: linear-gradient(135deg, #0d1410 0%, #1a1f1c 100%);
}

body.dark-mode .page-content {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
}

body.dark-mode .main-article,
body.dark-mode .widget {
  background: rgba(40, 45, 42, 0.6);
  border-color: rgba(0, 168, 107, 0.2);
}

body.dark-mode .page-title {
  color: var(--white);
}

body.dark-mode .article-content h2,
body.dark-mode .widget-title {
  color: var(--vibrant-green);
  border-bottom-color: rgba(0, 168, 107, 0.3);
}

body.dark-mode .article-content p,
body.dark-mode .widget-links a {
  color: var(--gray);
}

body.dark-mode .widget-links a:hover {
  color: var(--vibrant-green);
}
