/* ===== DEEP INFO NEWS - COMPLETE CSS FOR ALL TEMPLATES ===== */

/* ===== Global Variables ===== */
:root {
  --primary-color: #1e3a8a;
  --secondary-color: #6c757d;
  --accent-color: #dc2626;
  --dark-color: #1e293b;
  --light-color: #f8fafc;
  --white: #ffffff;
  --black: #000000;
  --gray-light: #f1f5f9;
  --gray-medium: #64748b;
  --gray-dark: #334155;
  
  /* News Theme Colors */
  --news-navy: #1e3a8a;
  --news-red: #dc2626;
  --news-red-muted: #fef2f2;
  --news-blue: #2563eb;
  --news-gray: #64748b;
  --news-gray-light: #f8fafc;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.12);
  --shadow-deep: 0 8px 32px rgba(0, 0, 0, 0.15);
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
  direction: ltr;
  text-align: left;
  font-weight: 400;
}

.hiddenHeader {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===== Header Styles (header.php) ===== */
.header-top {
  background: linear-gradient(135deg, var(--news-navy) 0%, #3730a3 100%);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-date {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.header-main {
  background: var(--white);
  padding: 1rem 0;
  box-shadow: var(--shadow-soft);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-logo img {
  height: 75px;
  width: auto;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.site-logo:hover img {
  transform: scale(1.05);
}

/* Navigation */
.main-navigation {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.main-menu li a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
  position: relative;
}

.main-menu li a:hover,
.main-menu li .active {
  color: var(--news-red);
}

.main-menu li a::after,
.main-menu li .active::after{
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--news-red);
  transition: width 0.3s ease;
}

.main-menu li a:hover::after,
.main-menu li .active::after {
  width: 100%;
}

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

/* Search */
.search-container {
  position: relative;
}

.search-toggle {
  background: none;
  border: none;
  color: var(--dark-color);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.search-toggle:hover {
  background: var(--gray-light);
  color: var(--news-red);
}

.search-form {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  min-width: 320px;
  display: none;
  z-index: 1000;
  border: 1px solid var(--gray-light);
}

.search-form.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-form input:focus {
  outline: none;
  border-color: var(--news-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Breaking News Bar */
.breaking-news-bar {
  background: linear-gradient(135deg, var(--news-red) 0%, #b91c1c 100%);
  color: var(--white);
  padding: 0.75rem 0;
  position: relative;
  overflow: hidden;
}

.breaking-news-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.breaking-label {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.breaking-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.breaking-slider {
  display: flex;
  animation: scrollBreaking 40s linear infinite;
  gap: 2rem;
}

.breaking-item {
  flex-shrink: 0;
  padding: 0 1rem;
}

.breaking-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.3s ease;
  display: block;
  opacity: 0.9;
}

.breaking-link:hover {
  opacity: 1;
  color: var(--white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes scrollBreaking {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* ===== Front Page (front-page.php) ===== */
.hero-section {
  background: linear-gradient(135deg, var(--news-gray-light) 0%, #f1f5f9 100%);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(30, 58, 138, 0.03) 100%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 500px;
  margin:auto;
}

.hero-badge {
  display: inline-block;
  background: var(--news-red-muted);
  color: var(--news-red);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  color: var(--news-navy);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--news-gray);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: var(--news-gray);
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--news-red);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.hero-button:hover {
  background: transparent;
  color: var(--news-red);
  border-color: var(--news-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  line-height:0;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Featured Stories */
.featured-stories {
  background: var(--white);
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--news-navy);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--news-red);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--news-gray);
  max-width: 600px;
  margin: 0 auto;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.story-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-light);
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-deep);
  border-color: var(--news-red);
}

.story-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.story-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.story-card:hover .story-image img {
  transform: scale(1.1);
}

.story-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--news-red);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.story-content {
  padding: 1.5rem;
}

.story-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--news-navy);
  line-height: 1.4;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.story-excerpt {
  color: var(--news-gray);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--news-gray);
  padding-top: 1rem;
  border-top: 1px solid var(--gray-light);
}

.story-author, .story-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

/* Category Sections */
.category-section {
  padding: 4rem 0;
  background: var(--white);
}


.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--news-navy);
  position: relative;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--news-red);
  border-radius: 2px;
}

.category-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--news-red);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}

.category-more:hover {
  background: var(--news-red);
  color: var(--white);
  transform: translateX(5px);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.category-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-light);
}

.category-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--news-red);
}

.category-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.category-item-image {
  overflow: hidden;
  aspect-ratio: 16/9;
}

.category-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-item:hover .category-item-image img {
  transform: scale(1.1);
}

.category-item-content {
  padding: 1.5rem;
}

.category-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--news-navy);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.category-item-meta {
  font-size: 0.8rem;
  color: var(--news-gray);
  font-weight: 500;
}

/* ===== Archive & Category Pages (archive.php) ===== */
.archive-page {
  padding: 2rem 0;
  background: var(--news-gray-light);
  min-height: 60vh;
}

.archive-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 1rem 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  margin: 0 20px 3rem;
  max-width: 1200px;
}

.archive-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--news-navy);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.archive-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--news-red);
  border-radius: 2px;
}

.archive-description {
  font-size: 1.125rem;
  color: var(--news-gray);
  max-width: 600px;
  margin: 0 auto;
}

.archive-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.posts-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.posts-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-light);
}

.post-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-deep);
  border-color: var(--news-red);
}

.post-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.post-image {
  overflow: hidden;
  aspect-ratio: 16/9;
}

.post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-image img {
  transform: scale(1.1);
}

.post-content {
  padding: 1.5rem;
}

.post-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.8rem;
}

.post-category {
  background: var(--news-red);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.post-date {
  color: var(--news-gray);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

.post-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--news-navy);
  line-height: 1.4;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-excerpt {
  color: var(--news-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--news-gray);
  padding-top: 1rem;
  border-top: 1px solid var(--gray-light);
}

/* ===== Single Post (single.php) ===== */
.single-post-page {
  padding: 2rem 0;
  background: var(--news-gray-light);
  min-height: 80vh;
}

.single-post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.single-article {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-light);
}

.featured-media {
  margin-bottom: 2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.video-container {
  margin-bottom: 2rem;
}

.embed-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.embed-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.article-header {
  margin-bottom: 2rem;
}

.breadcrumb {
  color: var(--news-gray);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: var(--news-red);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb .separator {
  margin: 0 0.5rem;
  color: var(--gray-medium);
}

.article-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--news-navy);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--gray-light);
}

.meta-left,
.meta-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-badge {
  background: var(--news-red);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
}

.publish-date,
.reading-time,
.last-read {
  color: var(--news-gray);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-content {
  line-height: 1.8;
  font-size: 1.125rem;
  color: var(--dark-color);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  color: var(--news-navy);
  margin: 2rem 0 1rem 0;
  font-weight: 700;
}

.article-content h2 {
  font-size: 1.75rem;
}

.article-content h3 {
  font-size: 1.5rem;
}

.article-content h4 {
  font-size: 1.25rem;
}

.source-info {
  background: var(--news-gray-light);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  border-left: 4px solid var(--news-red);
}

.source-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--news-navy);
}

.source-link {
  color: var(--news-red);
  text-decoration: none;
  font-weight: 500;
}

.article-tags {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.tags-title {
  color: var(--news-navy);
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--gray-light);
  color: var(--news-gray);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tag:hover {
  background: var(--news-red);
  color: white;
}

.social-share-section {
  margin: 2rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--gray-light);
}

.share-title {
  color: var(--news-navy);
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.share-btn.facebook {
  background: #1877f2;
  color: white;
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.whatsapp {
  background: #25d366;
  color: white;
}

.share-btn.linkedin {
  background: #0a66c2;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.author-box {
  background: var(--news-gray-light);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--gray-light);
}

.author-header h4 {
  color: var(--news-navy);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.author-content {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.author-avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--news-red);
}

.author-info {
  flex: 1;
}

.author-name {
  color: var(--news-navy);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.author-title {
  color: var(--news-red);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.author-bio {
  color: var(--news-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.author-social {
  display: flex;
  gap: 0.5rem;
}

.author-social-link {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--news-navy);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-light);
}

.author-social-link:hover {
  background: var(--news-red);
  color: white;
  border-color: var(--news-red);
}

.related-posts {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--gray-light);
}

.related-title {
  color: var(--news-navy);
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.related-post {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
  border: 1px solid var(--gray-light);
}

.related-post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.related-post a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.related-image {
  overflow: hidden;
  aspect-ratio: 16/9;
}

.related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-post:hover .related-image img {
  transform: scale(1.05);
}

.related-content {
  padding: 1rem;
}

.related-post-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--news-navy);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-meta {
  font-size: 0.875rem;
  color: var(--news-gray);
}

/* ===== Search Results (search.php) ===== */
.search-results-page {
  padding: 2rem 0;
  background: var(--news-gray-light);
  min-height: 60vh;
}

.search-header {
  text-align: center;
  margin-bottom: 3rem;
  padding: 2rem 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  margin: 0 20px 3rem;
  max-width: 1200px;
}

.search-title {
  font-size: 2.5rem;
  color: var(--news-navy);
  margin-bottom: 1rem;
  font-weight: 800;
}

.search-query {
  font-size: 1.125rem;
  color: var(--news-gray);
}

.search-content {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.results-count {
  margin-bottom: 2rem;
  color: var(--news-gray);
  font-size: 1rem;
  font-weight: 500;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-result {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
  border: 1px solid var(--gray-light);
}

.search-result:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.result-link {
  display: flex;
  text-decoration: none;
  color: inherit;
  min-height: 150px;
}

.result-image {
  width: 200px;
  flex-shrink: 0;
  overflow: hidden;
}

.result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.result-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.result-category {
  background: var(--news-red);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.75rem;
}

.result-date {
  color: var(--news-gray);
  font-weight: 500;
}

.result-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--news-navy);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-excerpt {
  color: var(--news-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.result-footer {
  font-size: 0.875rem;
  color: var(--news-gray);
  font-weight: 500;
}

.no-results {
  text-align: center;
  padding: 2rem 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

.no-results-icon {
  font-size: 3rem;
  color: var(--news-gray);
  margin-bottom: 1.5rem;
}

.no-results h3 {
  color: var(--news-navy);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.no-results p {
  color: var(--news-gray);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.search-form-large {
  display: flex;
  max-width: 500px;
  margin: 0 auto 2rem;
  gap: 0;
}

.search-form-large input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--gray-light);
  border-radius: 6px 0 0 6px;
  font-size: 1rem;
  border-right: none;
}

.search-form-large button {
  background: var(--news-red);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.search-form-large button:hover {
  background: #b91c1c;
}

.search-suggestions {
  margin-top: 2rem;
}

.search-suggestions h4 {
  color: var(--news-navy);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.search-suggestions ul {
  list-style: none;
  color: var(--news-gray);
}

.search-suggestions li {
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.search-suggestions li:before {
  content: "•";
  color: var(--news-red);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ===== 404 Page (404.php) ===== */
.error-404-page {
  padding: 4rem 0;
  background: var(--news-gray-light);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
}

.error-icon {
  font-size: 4rem;
  color: var(--news-red);
  margin-bottom: 2rem;
}

.error-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--news-navy);
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.125rem;
  color: var(--news-gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-family: inherit;
}

.btn-primary {
  background: var(--news-red);
  color: var(--white);
}

.btn-primary:hover {
  background: #b91c1c;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background: var(--news-navy);
  color: var(--white);
}

.btn-secondary:hover {
  background: #1e40af;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.search-suggestions-404 {
  margin-bottom: 2rem;
}

.search-suggestions-404 h3 {
  margin-bottom: 1rem;
  color: var(--news-navy);
  font-size: 1.25rem;
}

.search-form-404 {
  display: flex;
  max-width: 400px;
  margin: 0 auto;
  gap: 0;
}

.search-form-404 input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid var(--gray-light);
  border-radius: 6px 0 0 6px;
  font-size: 1rem;
  border-right: none;
}

.search-form-404 button {
  background: var(--news-red);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.search-form-404 button:hover {
  background: #b91c1c;
}

.recent-news-404 {
  margin-top: 2rem;
}

.recent-news-404 h3 {
  margin-bottom: 1.5rem;
  color: var(--news-navy);
  font-size: 1.25rem;
}

.recent-posts-grid-404 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.recent-post-404 {
  background: var(--news-gray-light);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
  border: 1px solid var(--gray-light);
}

.recent-post-404:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.recent-post-404 .post-image {
  overflow: hidden;
  aspect-ratio: 16/9;
}

.recent-post-404 .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.recent-post-404:hover .post-image img {
  transform: scale(1.05);
}

.recent-post-404 .post-content {
  padding: 1rem;
}

.recent-post-404 .post-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--news-navy);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post-404 .post-date {
  font-size: 0.8rem;
  color: var(--news-gray);
  font-weight: 500;
}

/* ===== Contact Page (page-contact.php) ===== */
.contact-page {
  padding: 2rem 0;
  background: var(--news-gray-light);
  min-height: 70vh;
}

.page-header {
  text-align: center;
  padding: 2rem 0;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  margin: 0 20px 3rem;
  max-width: 1200px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--news-navy);
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.25rem;
  color: var(--news-gray);
  max-width: 600px;
  margin: 0 auto;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

.contact-info{
    margin:auto;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--news-navy);
  margin-bottom: 1.5rem;
  position: relative;
}

.contact-info h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--news-red);
  border-radius: 2px;
}

.contact-info p {
  color: var(--news-gray);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.contact-details {
  margin-bottom: 3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-light);
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--news-red);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--news-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
  background: var(--news-navy);
  transform: scale(1.1);
}

.contact-icon i {
  color: var(--white);
  font-size: 1.25rem;
}

.contact-text h4 {
  color: var(--news-navy);
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

.contact-text p {
  color: var(--news-gray);
  margin: 0;
  font-size: 1rem;
}

.contact-social h4 {
  color: var(--news-navy);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

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

.social-link-contact {
  width: 45px;
  height: 45px;
  background: var(--news-navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link-contact:hover {
  background: var(--news-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Contact Form */
.contact-form-container {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-light);
}

.contact-form-container h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--news-navy);
  margin-bottom: 1.5rem;
  position: relative;
}

.contact-form-container h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--news-red);
  border-radius: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--news-navy);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--news-red);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 1rem;
}

/* ===== Page Template (page.php) ===== */
.page-template {
  padding: 2rem 0;
  background: var(--news-gray-light);
  min-height: 70vh;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-article {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-light);
}

.page-content-wrapper {
  line-height: 1.8;
}

.page-text-content {
  line-height: 1.8;
  font-size: 1.125rem;
  color: var(--dark-color);
}

.page-text-content p {
  margin-bottom: 1.5rem;
}

.page-text-content h2 {
  font-size: 2rem;
  color: var(--news-navy);
  margin: 2rem 0 1rem 0;
  font-weight: 700;
}

.page-text-content h3 {
  font-size: 1.5rem;
  color: var(--news-navy);
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

.page-text-content h4 {
  font-size: 1.25rem;
  color: var(--news-navy);
  margin: 1.5rem 0 1rem 0;
  font-weight: 600;
}

.page-text-content ul,
.page-text-content ol {
  margin: 1rem 0;
  padding-left: 2rem;
}

.page-text-content li {
  margin-bottom: 0.5rem;
}

.page-text-content blockquote {
  border-left: 4px solid var(--news-red);
  background: var(--news-gray-light);
  padding: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  border-radius: 0 8px 8px 0;
  color: var(--news-gray);
}

.page-text-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.page-text-content table th,
.page-text-content table td {
  padding: 12px;
  border: 1px solid var(--gray-light);
  text-align: left;
}

.page-text-content table th {
  background: var(--news-gray-light);
  font-weight: 600;
  color: var(--news-navy);
}

/* ===== Privacy Policy (page-privacy.php) ===== */
.privacy-page {
  padding: 2rem 0;
  background: var(--news-gray-light);
  min-height: 70vh;
}

.privacy-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.privacy-section {
  margin-bottom: 3rem;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-light);
}

.privacy-section h2 {
  color: var(--news-navy);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  position: relative;
  padding-bottom: 0.5rem;
}

.privacy-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--news-red);
  border-radius: 2px;
}

.privacy-section p {
  color: var(--news-gray);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.privacy-section ul {
  color: var(--news-gray);
  line-height: 1.7;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.privacy-section li {
  margin-bottom: 0.5rem;
  position: relative;
}

.privacy-section li::before {
  content: '•';
  color: var(--news-red);
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

/* ===== Sidebar (sidebar.php) ===== */
.archive-sidebar,
.blog-sidebar,
.search-sidebar,
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Popular Posts Widget */
.popular-posts {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 0;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-light);
  overflow: hidden;
}

.sidebar-section {
  width: 100%;
}

.sidebar-title {
  color: var(--news-navy);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0;
  padding: 1.5rem 1.5rem 1rem;
  position: relative;
  background: linear-gradient(135deg, var(--news-gray-light) 0%, transparent 100%);
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.5rem;
  width: 40px;
  height: 3px;
  background: var(--news-red);
  border-radius: 2px;
}

.popular-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.popular-post {
  background: var(--white);
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--gray-light);
}

.popular-post:last-child {
  border-bottom: none;
}

.popular-post:hover {
  background: var(--news-gray-light);
  transform: translateX(5px);
}

.popular-post a {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.post-number {
  background: var(--gray-light);
  color: var(--news-gray);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.popular-post:hover .post-number {
  background: var(--news-red);
  color: var(--white);
  transform: scale(1.1);
}

/* Top 3 posts get special colors */
.popular-post:nth-child(1) .post-number {
  background: linear-gradient(135deg, var(--news-red) 0%, #b91c1c 100%);
  color: var(--white);
}

.popular-post:nth-child(2) .post-number {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: var(--white);
}

.popular-post:nth-child(3) .post-number {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: var(--white);
}

.popular-post .post-content {
  flex: 1;
  min-width: 0;
  padding: 0;
}

.popular-post .post-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark-color);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.popular-post:hover .post-title {
  color: var(--news-red);
}

.popular-post .post-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--news-gray);
  margin: 0;
  padding: 0;
  border: none;
}

.popular-post .views {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}

/* Categories Widget */
.widget_categories {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-light);
}

.widget_categories h4 {
  color: var(--news-navy);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--news-red);
  position: relative;
}

.widget_categories ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_categories li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--gray-light);
}

.widget_categories li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.widget_categories a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.widget_categories a:hover {
  color: var(--news-red);
}

.widget_categories .count {
  background: var(--news-red);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Recent Posts Widget */
.widget_recent_entries {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-light);
}

.widget_recent_entries h4 {
  color: var(--news-navy);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--news-red);
}

.widget_recent_entries ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget_recent_entries li {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.widget_recent_entries li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.widget_recent_entries a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  display: block;
  line-height: 1.4;
  font-size: 0.9rem;
}

.widget_recent_entries a:hover {
  color: var(--news-red);
}

.widget_recent_entries .post-date {
  display: block;
  font-size: 0.75rem;
  color: var(--news-gray);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ===== Footer (footer.php) ===== */
.site-footer {
  background: linear-gradient(135deg, var(--news-navy) 0%, #3730a3 100%);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 0rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand {
  max-width: 400px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 70px;
  width: auto;
  border-radius: var(--radius-md);
  padding: 10px;
  background:var(--white);
}

.footer-logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social .social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social .social-link:hover {
  background: var(--news-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.footer-column h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--white);
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--news-red);
  border-radius: 1px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--news-red);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--news-red);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .hero-image{
      order: -1;
  }

  .archive-content,
  .blog-content,
  .search-content,
  .single-post-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .archive-sidebar,
  .blog-sidebar,
  .search-sidebar,
  .post-sidebar {
    order: 10;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .posts-list {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .archive-title,
  .blog-title,
  .search-title,
  .page-title {
    font-size: 1.75rem;
  }
  
  .article-title {
    font-size: 1.75rem;
  }
  
  .single-article {
    padding: 1.25rem;
  }
  
  .search-form {
    min-width: 280px;
    right: -20px;
  }
  
  .error-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .error-actions .btn {
    width: 200px;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
  }
  
  .contact-icon {
    align-self: center;
  }
}

/* ===== Utility Classes ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

/* Ensure all images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Basic link styles */
a {
  color: var(--news-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #b91c1c;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 0px solid var(--news-red);
  outline-offset: 0px;
}

/* Loading animation */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.loading {
  animation: pulse 2s infinite;
}

/* Sticky sidebar */
@media (min-width: 1025px) {
  .archive-sidebar,
  .blog-sidebar,
  .search-sidebar,
  .post-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}


/* ===== 404 PAGE SPECIFIC FIXES ===== */
.error-404-page {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--news-gray-light) 0%, #f1f5f9 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem;
    text-align: center;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-deep);
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
}

.error-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--news-red) 0%, var(--news-navy) 100%);
}

.error-icon {
    font-size: 5rem;
    color: var(--news-red);
    margin-bottom: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.error-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--news-navy);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--news-navy) 0%, var(--news-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.error-message {
    font-size: 1.25rem;
    color: var(--news-gray);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Improved Button Styles */
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.error-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: inherit;
    min-width: 160px;
    position: relative;
    overflow: hidden;
}

.error-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.error-actions .btn:hover::before {
    left: 100%;
}

.error-actions .btn-primary {
    background: linear-gradient(135deg, var(--news-red) 0%, #b91c1c 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.error-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c 0%, var(--news-red) 100%);
}

.error-actions .btn-secondary {
    background: linear-gradient(135deg, var(--news-navy) 0%, #3730a3 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3);
}

.error-actions .btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
    background: linear-gradient(135deg, #3730a3 0%, var(--news-navy) 100%);
}

/* Search Form in 404 */
.search-suggestions-404 {
    margin-bottom: 2.5rem;
}

.search-suggestions-404 h3 {
    margin-bottom: 1.5rem;
    color: var(--news-navy);
    font-size: 1.5rem;
    font-weight: 700;
}

.search-form-404 {
    display: flex;
    max-width: 400px;
    margin: 0 auto;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--gray-light);
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-form-404:focus-within {
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.15);
    border-color: var(--news-red);
}

.search-form-404 input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    font-size: 1rem;
    background: transparent;
    outline: none;
    color: var(--dark-color);
}

.search-form-404 input::placeholder {
    color: var(--news-gray);
}

.search-form-404 button {
    background: linear-gradient(135deg, var(--news-red) 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-form-404 button:hover {
    background: linear-gradient(135deg, #b91c1c 0%, var(--news-red) 100%);
    padding-right: 1.75rem;
}

/* Recent News in 404 */
.recent-news-404 {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--gray-light);
}

.recent-news-404 h3 {
    margin-bottom: 1.5rem;
    color: var(--news-navy);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.recent-posts-grid-404 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.recent-post-404 {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
    position: relative;
}

.recent-post-404::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--news-red) 0%, var(--news-navy) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.recent-post-404:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep);
}

.recent-post-404:hover::before {
    transform: scaleX(1);
}

.recent-post-404 a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.recent-post-404 .post-image {
    overflow: hidden;
    aspect-ratio: 16/9;
    position: relative;
}

.recent-post-404 .post-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recent-post-404:hover .post-image::after {
    opacity: 1;
}

.recent-post-404 .post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.recent-post-404:hover .post-image img {
    transform: scale(1.1);
}

.recent-post-404 .post-content {
    padding: 1.5rem;
}

.recent-post-404 .post-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--news-navy);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.recent-post-404:hover .post-title {
    color: var(--news-red);
}

.recent-post-404 .post-date {
    font-size: 0.875rem;
    color: var(--news-gray);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recent-post-404 .post-date::before {
    content: '📅';
    font-size: 0.75rem;
}

/* ===== HEADER SEARCH SPECIFIC FIXES ===== */
.search-container {
    position: relative;
}

.search-toggle {
    background: none;
    border: none;
    color: var(--dark-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
}

.search-toggle:hover {
    background: var(--news-red);
    color: var(--white);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.search-toggle.active {
    background: var(--news-red);
    color: var(--white);
}

.search-form {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-deep);
    min-width: 380px;
    display: none;
    z-index: 1000;
    border: 1px solid var(--gray-light);
    transform-origin: top right;
    animation: searchSlideDown 0.3s ease;
}

@keyframes searchSlideDown {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.search-form.active {
    display: block;
}

.search-form::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: var(--white);
    transform: rotate(45deg);
    border-left: 1px solid var(--gray-light);
    border-top: 1px solid var(--gray-light);
}

.search-form .search-field {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--dark-color);
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--news-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background: var(--white);
}

.search-form .search-field::placeholder {
    color: var(--news-gray);
}

.search-form .search-submit {
    display: none; /* Hide default submit button */
}

/* Search suggestions dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-deep);
    border: 1px solid var(--gray-light);
    margin-top: 0.5rem;
    display: none;
    z-index: 1001;
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestions.active {
    display: block;
    animation: searchSlideDown 0.2s ease;
}

.search-suggestion-item {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-light);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-suggestion-item:last-child {
    border-bottom: none;
}

.search-suggestion-item:hover {
    background: var(--news-gray-light);
    padding-left: 1.5rem;
}

.search-suggestion-item::before {
    content: '🔍';
    font-size: 0.875rem;
    opacity: 0.7;
}

.search-suggestion-text {
    flex: 1;
    color: var(--dark-color);
    font-weight: 500;
}

.search-suggestion-category {
    font-size: 0.75rem;
    color: var(--news-gray);
    background: var(--gray-light);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

/* Mobile search improvements */
@media (max-width: 1024px) {
    .search-form {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        min-width: auto;
        border-radius: 0;
        padding: 2rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: none;
        z-index: 9999;
    }
    
    .search-form.active {
        display: flex;
        flex-direction: column;
    }
    
    .search-form::before {
        display: none;
    }
    
    .search-form .search-field {
        font-size: 1.125rem;
        padding: 1.25rem;
        border-width: 2px;
    }
    
    .close-search {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--news-gray);
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        transition: all 0.3s ease;
    }
    
    .close-search:hover {
        background: var(--news-red);
        color: var(--white);
    }
    
    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .error-actions .btn {
        min-width: auto;
        width: 100%;
    }
    
    .recent-posts-grid-404 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .search-form {
        padding: 1.5rem;
    }
    
    .search-form .search-field {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .error-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .error-title {
        font-size: 2.5rem;
    }
    
    .error-message {
        font-size: 1.125rem;
    }
}

/* Enhanced focus states */
.search-toggle:focus,
.search-form .search-field:focus,
.error-actions .btn:focus {
    outline: 2px solid var(--news-red);
    outline-offset: 2px;
}

/* Loading state for search */
.search-loading .search-field {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 11-6.219-8.56'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== NO POSTS FOUND STYLES ===== */
.no-posts {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--gray-light);
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.no-posts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--news-red) 0%, var(--news-navy) 100%);
}

.no-posts::after {
    content: '📰';
    font-size: 4rem;
    display: block;
    margin-bottom: 1.5rem;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.no-posts h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--news-navy);
    margin-bottom: 1rem;
    position: relative;
}

.no-posts h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--news-red);
    border-radius: 2px;
}

.no-posts p {
    font-size: 1.125rem;
    color: var(--news-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-posts .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--news-red) 0%, #b91c1c 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-width: 160px;
}

.no-posts .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.no-posts .btn:hover::before {
    left: 100%;
}

.no-posts .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.4);
    background: linear-gradient(135deg, #b91c1c 0%, var(--news-red) 100%);
}

.no-posts .btn:active {
    transform: translateY(-1px);
}

.no-posts .btn::after {
    content: '🏠';
    font-size: 1.1rem;
}

/* Alternative empty state styles */
.no-posts.alternative {
    background: linear-gradient(135deg, var(--news-gray-light) 0%, #f8fafc 100%);
    border: 2px dashed var(--gray-medium);
}

.no-posts.alternative::after {
    content: '🔍';
}

.no-posts.alternative .btn {
    background: linear-gradient(135deg, var(--news-navy) 0%, #3730a3 100%);
}

.no-posts.alternative .btn:hover {
    background: linear-gradient(135deg, #3730a3 0%, var(--news-navy) 100%);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.4);
}

/* Search-specific no results */
.search-results-page .no-posts {
    background: var(--white);
    border: 1px solid var(--gray-light);
}

.search-results-page .no-posts::after {
    content: '🔍';
}

.search-results-page .no-posts h3 {
    color: var(--news-navy);
}

/* Archive-specific no results */
.archive-page .no-posts::after {
    content: '📂';
}

.archive-page .no-posts h3 {
    color: var(--news-navy);
}

/* Category-specific no results */
.category-archive .no-posts::after {
    content: '🏷️';
}

/* Responsive design */
@media (max-width: 1024px) {
    .no-posts {
        padding: 3rem 1.5rem;
        margin: 1rem;
    }
    
    .no-posts h3 {
        font-size: 1.5rem;
    }
    
    .no-posts p {
        font-size: 1rem;
    }
    
    .no-posts .btn {
        padding: 0.875rem 1.75rem;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .no-posts {
        padding: 2.5rem 1.25rem;
    }
    
    .no-posts::after {
        font-size: 3rem;
        margin-bottom: 1rem;
    }
    
    .no-posts h3 {
        font-size: 1.375rem;
    }
    
    .no-posts p {
        font-size: 0.95rem;
    }
}

/* Animation for when the no-posts element appears */
.no-posts {
    animation: fadeInUp 0.6s ease;
}

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

/* Focus states for accessibility */
.no-posts .btn:focus {
    outline: 2px solid var(--news-red);
    outline-offset: 2px;
}

/* Dark mode support (optional) */
@media (prefers-color-scheme: dark) {
    .no-posts {
        background: var(--dark-color);
        color: var(--white);
        border-color: var(--gray-dark);
    }
    
    .no-posts h3 {
        color: var(--white);
    }
    
    .no-posts p {
        color: var(--gray-light);
    }
}


/* ===== MOBILE MENU FIXES ===== */
@media (max-width: 1024px) {
    .main-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 2rem 1.5rem;
        box-shadow: var(--shadow-deep);
        transition: left 0.3s ease;
        z-index: 9998;
        overflow-y: auto;
    }
    
    .main-menu.active {
        display: block;
        left: 0;
    }
    
    .main-menu li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .main-menu li:last-child {
        border-bottom: none;
    }
    
    .main-menu li a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        width: 100%;
    }
    
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
        position: relative;
    }
    
    .menu-toggle.active i::before {
        content: '\f00d'; /* FontAwesome X icon */
    }
    
    /* Overlay when menu is open */
    body.menu-open {
        overflow:hidden;
    }
}
    .close-search {
    display:none
        
    }
/* ===== MOBILE SEARCH FIXES ===== */
@media (max-width: 1024px) {
    .search-form {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        min-width: auto;
        border-radius: 0;
        padding: 2rem;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        display: none;
        z-index: 9999;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .search-form.active {
        display: block;
        max-height: 120px;
        align-content: center;
    }
    
    .search-form::before {
        display: none;
    }
    
    .search-form .search-field {
        font-size: 1.125rem;
        padding: 1.25rem;
        border-width: 2px;
        margin-bottom: 1rem;
    }
    
    .close-search {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--news-gray);
        cursor: pointer;
        padding: 0.5rem;
        border-radius: 50%;
        transition: all 0.3s ease;
        width: 48px;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        border:1px solid;
        background: white;
    }
    
    .close-search:hover {
        background: var(--news-red);
        color: var(--white);
    }
    
    /* Ensure search form is above menu */
    .search-form {
        z-index: 10000;
    }
}

/* ===== HEADER LAYOUT FIXES FOR MOBILE ===== */
@media (max-width: 1024px) {
    .header-main .container {
        position: relative;
    }
    
    .main-navigation {
        gap: 1rem;
    }
    
    .search-toggle {
        width: 48px;
        height: 48px;
    }
    
    .menu-toggle {
        width: 48px;
        height: 48px;
    }
}

/* ===== ENSURE PROPER Z-INDEX ORDER ===== */
.header-main {
    z-index: 1000;
}

.main-menu {
    z-index: 9998;
}

.menu-toggle {
    z-index: 9999;
}

.search-form {
    z-index: 10000;
}


.search-toggle {
    z-index: 10001;
}


/* Pagination Container */
.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
}

/* Page Numbers */
.nav-links .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

/* Current Page */
.nav-links .page-numbers.current {
  background-color: var(--news-red);
  color: #fff;
  border-color: var(--news-red);
  cursor: default;
}

/* Hover Effects */
.nav-links .page-numbers:hover {
  background-color: var(--news-red);
  color: #fff;
  border-color: var(--news-red);
}

/* Next Link Style */
.nav-links .next {
  font-weight: 500;
}

@media (max-width: 500px) {
.result-image {
  width: 100%;
}

.result-link {
  flex-direction: column;
}
}
