/* Modern News Website CSS - Mobile First Design */

/* CSS Variables for consistent theming */
:root {
  /* Colors */
  --primary-color: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #3b82f6;
  --primary-color-rgb: 37, 99, 235;
  
  --secondary-color: #f59e0b;
  --secondary-dark: #d97706;
  --secondary-light: #fbbf24;
  
  --success-color: #10b981;
  --success-dark: #059669;
  --success-light: #34d399;
  
  --danger-color: #ef4444;
  --danger-dark: #dc2626;
  --danger-light: #f87171;
  
  --warning-color: #f59e0b;
  --warning-dark: #d97706;
  --warning-light: #fbbf24;
  
  --info-color: #3b82f6;
  --info-dark: #2563eb;
  --info-light: #60a5fa;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-light: #f8fafc;
  --bg-dark: #1e293b;
  
  /* Text Colors */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  /* Border Colors */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Transitions */
  --transition: all 0.3s ease;
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* Container and Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.col, .col-1, .col-2, .col-3, .col-4, .col-6, .col-8, .col-12 {
  padding: 0 0.75rem;
  flex: 1;
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-6 { flex: 0 0 50%; }
.col-8 { flex: 0 0 66.666667%; }
.col-12 { flex: 0 0 100%; }

/* Fix for Bootstrap column spacing */
.col-lg-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.col-lg-4 {
  flex: 0 0 33.333333%;
  max-width: fit-content;
}

/* Top Bar Styling */
.top-bar {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #2d3748 100%) !important;
  border-bottom: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.top-bar .small {
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2e8f0;
}

.top-bar .text-primary {
  color: var(--primary-color) !important;
}

.social-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid transparent;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.social-link i {
  font-size: 0.9rem;
}

/* Header */
.header {
  background: var(--bg-primary);
  padding: 1.5rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
}

.header .logo {
  max-height: 82px;
  width: auto;
}

.header .banner {
  max-height: 80px;
  width: auto;
  object-fit: contain;
  float: right;
  display: block;
}

/* Ensure proper alignment for banner container */
.header .col-md-8.col-6.text-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header .banner.float-end {
  margin-left: auto;
  max-width: 100%;
  height: auto;
}

/* Additional banner positioning fixes */
.header .row .col-md-8 {
  text-align: right;
}

.header .banner {
  display: inline-block;
  vertical-align: middle;
}

/* Responsive banner adjustments */
@media (max-width: 768px) {
  .header .banner {
    max-height: 60px;
    float: none;
    margin: 0 auto;
  }
  
  .header .col-md-8.col-6.text-end {
    justify-content: center;
    text-align: center;
  }
}

/* Breaking News */
.break-news {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.break-news h6 {
  display: inline;
  margin-right: 1rem;
  font-weight: 600;
}

.break-news .fa-bolt {
  color: var(--secondary-color);
  margin-right: 0.5rem;
}

.break-news span.news {
  display: none;
  animation: slideIn 0.5s ease-in-out;
}

.break-news span.news.active {
  display: inline;
}

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

/* Navigation */
nav {
  background: var(--bg-primary);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-lg);
  margin: 1rem 0;
  overflow: visible;
}

/* Bootstrap Navbar Overrides */
.navbar-nav {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.navbar-nav .nav-item {
  position: relative;
}

.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  background: none;
  border: none;
  font-size: 1rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .dropdown-toggle:hover {
  background: var(--primary-color);
  color: white;
  border-bottom-color: var(--secondary-color);
  text-decoration: none;
}

/* Subcategory Dropdown - Hover Based */
.nav-item.dropdown {
  position: relative;
}

.nav-item.dropdown .subcat {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 1000;
  display: none;
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Show dropdown on hover */
.nav-item.dropdown:hover .subcat {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.subcat li {
  position: relative;
}

.subcat li a {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  text-align: left;
  background: transparent;
  border-bottom-color: transparent;
  display: block;
  text-decoration: none;
  transition: var(--transition);
}

.subcat li a:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
  border-bottom-color: var(--border-color);
}

.subcat li:last-child a {
  border-bottom: none;
}

/* Arrow indicator for dropdown items */
.nav-item.dropdown .dropdown-toggle::after {
  content: '▼';
  margin-left: 0.5rem;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

/* Ensure proper container positioning */
.navbar .container-fluid {
  position: relative;
}

/* Debug styles - remove after testing */
.nav-item.dropdown {
  border: 1px solid transparent;
}

.nav-item.dropdown:hover {
  border-color: var(--primary-color);
}

.nav-item.dropdown .subcat {
  border: 2px solid var(--primary-color);
}

/* Legacy nav styles for backward compatibility */
nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
}

nav ul li a,
nav ul li span {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

nav ul li a:hover,
nav ul li span:hover {
  background: var(--primary-color);
  color: white;
  border-bottom-color: var(--secondary-color);
}

/* Legacy subcategory styles */
nav ul li .subcat {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 1000;
  display: none;
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

nav ul li:hover .subcat {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

nav ul li .subcat ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li .subcat ul li {
  position: relative;
}

nav ul li .subcat ul li a {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  text-align: left;
  background: transparent;
  border-bottom-color: transparent;
}

nav ul li .subcat ul li a:hover {
  background: var(--bg-tertiary);
  color: var(--primary-color);
  border-bottom-color: var(--border-color);
}

nav ul li .subcat ul li:last-child a {
  border-bottom: none;
}

nav ul li span::after {
  content: '▼';
  margin-left: 0.5rem;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

nav ul li:hover span::after {
  transform: rotate(180deg);
}

/* Mobile Menu */
.menu {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
}

.menu span {
  display: block;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.menu span:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.menu .menu-close {
  display: none;
}

/* Search Form */
.search-form {
  display: flex;
  align-items: center;
  max-width: 300px;
  margin: 0 auto;
}

.search-form span {
  position: absolute;
  right: 1rem;
  color: var(--text-light);
  cursor: pointer;
  z-index: 10;
}

.search-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-primary);
}

.search-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.1);
}

/* Main Content Layout */
main, aside {
  margin-bottom: 2rem;
}

/* Ensure proper spacing between main content and sidebar */
main.col-lg-8 {
  padding-right: 1rem;
}

aside.col-lg-4 {
  padding-left: 1rem;
}

/* Hero Slider */
.hero-slider {
  margin: 2rem 0;
}

.hero-main {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.slider-item {
  display: none;
  position: relative;
}

.slider-item.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.hero-article {
  display: block;
  text-decoration: none;
  color: inherit;
}

.hero-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.hero-meta {
  color: var(--text-light);
  font-size: 0.875rem;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  pointer-events: none;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  cursor: pointer;
  transition: var(--transition);
  pointer-events: auto;
}

.slider-btn:hover {
  background: var(--primary-color);
  transform: scale(1.1);
}

/* Hero Sidebar */
.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-sidebar-item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.hero-sidebar-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-sidebar-content {
  padding: 1rem;
}

.hero-sidebar-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.hero-sidebar-meta {
  color: var(--text-light);
  font-size: 0.75rem;
}

/* Section Headers */
.section-header {
  margin: 2rem 0 1rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.section-title {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
  margin-left: 1rem;
}

/* Article Cards */
.article-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.article-card.featured {
  grid-column: span 2;
}

.article-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.article-card.featured .article-image {
  height: 250px;
}

.article-card.small .article-image {
  height: 150px;
}

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

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

.article-content {
  padding: 1rem;
}

.article-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.article-card.featured .article-title {
  font-size: 1.25rem;
}

.article-card.small .article-title {
  font-size: 0.875rem;
}

/* Article Excerpt Styling */
.article-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.75rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-wrap: break-word;
  hyphens: auto;
}

.article-card.small .article-excerpt {
  font-size: 0.85rem;
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

.article-card.compact .article-excerpt {
  font-size: 0.8rem;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  margin: 0.5rem 0;
}

/* Ensure excerpts don't show HTML tags */
.article-excerpt:empty::before {
  content: 'No excerpt available';
  color: var(--text-muted);
  font-style: italic;
}

.article-meta {
  color: var(--text-light);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.view-count {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
}

/* Video Cards */
.video-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.video-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}

.video-card:hover .play-button {
  background: var(--primary-color);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-content {
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.video-meta {
  color: var(--text-light);
  font-size: 0.75rem;
}

/* Sidebar */
.sidebar-section {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  width: 100%;
}

.sidebar-header {
  margin-bottom: 1rem;
}

.sidebar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0;
}

.sidebar-article {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.sidebar-article:last-child {
  border-bottom: none;
}

.sidebar-article:hover {
  transform: translateX(4px);
}

.sidebar-article-image {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

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

.sidebar-article-content {
  flex: 1;
}

.sidebar-article-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.sidebar-article-meta {
  color: var(--text-light);
  font-size: 0.75rem;
}

/* Notification Card */
.notification-card {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.notification-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: white;
}

.notification-text {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  color: white;
  line-height: 1.5;
}

.notification-card .btn {
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: none;
  transition: var(--transition);
}

.notification-card .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Categories */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.category-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateX(4px);
}

.category-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.category-count {
  background: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.category-arrow {
  color: var(--text-light);
  transition: var(--transition);
}

.category-item:hover .category-arrow {
  color: white;
}

/* Newsletter Card */
.newsletter-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.newsletter-title {
  color: var(--text-primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.newsletter-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.newsletter-form {
  width: 100%;
}

.newsletter-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: var(--transition);
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.1);
  background: var(--bg-primary);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form .btn {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: var(--transition);
  margin-top: 0.5rem;
}

.newsletter-form .btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Ad Card */
.ad-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

.ad-card:hover {
  box-shadow: var(--shadow-md);
}

.ad-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.ad-text {
  color: var(--text-light);
  font-size: 0.875rem;
  margin: 0;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: 3rem 0 1rem 0;
  margin-top: 3rem;
}

.footer-section {
  margin-bottom: 1.5rem;
}

.footer-title {
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
}

.footer-text {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-link {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.875rem;
}

.footer-link:hover {
  color: var(--primary-color);
}

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--secondary-color);
  transform: scale(1.1);
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.copyright {
  color: var(--text-light);
  font-size: 0.875rem;
}

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

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }

.me-1 { margin-right: 0.25rem; }
.me-2 { margin-right: 0.5rem; }
.me-3 { margin-right: 1rem; }

.ms-1 { margin-left: 0.25rem; }
.ms-2 { margin-left: 0.5rem; }
.ms-3 { margin-left: 1rem; }

.g-0 { gap: 0; }
.g-1 { gap: 0.25rem; }
.g-2 { gap: 0.5rem; }
.g-3 { gap: 1rem; }

/* Bootstrap Overrides */
.btn-primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-warning {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
}

.btn-warning:hover {
  background: #d97706;
  border-color: #d97706;
  color: white;
}

.badge.bg-primary {
  background: var(--primary-color) !important;
}

.badge.bg-secondary {
  background: var(--secondary-color) !important;
}

/* Categories Section Styling */
.categories-section {
  margin-bottom: 1.5rem;
}

.categories-section:last-child {
  margin-bottom: 0;
}

.section-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.section-subtitle.text-primary {
  color: var(--primary-color) !important;
}

.section-subtitle.text-success {
  color: var(--success-color) !important;
}

.categories-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.category-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.category-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary-color);
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.category-item.main-category {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
  border-left: 4px solid var(--primary-color);
}

.category-item.sub-category {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-light));
  border-left: 4px solid var(--success-color);
  margin-left: 1rem;
  position: relative;
}

.category-item.sub-category::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 50%;
  width: 0.5rem;
  height: 1px;
  background: var(--success-color);
  transform: translateY(-50%);
}

.category-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.category-name {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.category-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.category-count {
  background: var(--primary-color);
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 1.5rem;
  text-align: center;
}

.parent-category {
  color: var(--text-muted);
  font-style: italic;
  font-size: 0.75rem;
}

.category-arrow {
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: var(--transition);
}

.category-item:hover .category-arrow {
  color: var(--primary-color);
  transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .category-item.sub-category {
    margin-left: 0.5rem;
  }
  
  .category-item.sub-category::before {
    left: -0.5rem;
    width: 0.25rem;
  }
  
  .category-name {
    font-size: 0.9rem;
  }
  
  .category-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 0.5rem;
  }
  
  .header img {
    max-height: 50px;
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li a,
  nav ul li span {
    padding: 0.75rem 1rem;
  }
  
  /* Mobile dropdown behavior */
  .subcat {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    background: var(--bg-tertiary);
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  
  /* Show dropdown on mobile when parent is active */
  nav ul li.active .subcat {
    display: block;
  }
  
  .subcat ul li a {
    padding: 0.5rem 1rem;
    border-left: 3px solid var(--primary-color);
    margin-left: 1rem;
  }
  
  .subcat ul li a:hover {
    background: var(--primary-color);
    color: white;
  }
  
  .menu {
    display: block;
  }
  
  nav {
    display: none;
  }
  
  .col-4, .col-6, .col-8 {
    flex: 0 0 100%;
  }
  
  .col-lg-8, .col-lg-4 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 0.75rem;
  }
  
  .article-card.featured {
    grid-column: span 1;
  }
  
  .hero-image {
    height: 250px;
  }
  
  .hero-title {
    font-size: 1.25rem;
  }
  
  .slider-nav {
    padding: 0 0.5rem;
  }
  
  .slider-btn {
    width: 40px;
    height: 40px;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }
  
  .header {
    padding: 0.5rem 0;
  }
  
  .break-news {
    padding: 0.5rem;
    margin: 0.5rem 0;
  }
  
  .article-content {
    padding: 0.75rem;
  }
  
  .article-title {
    font-size: 1rem;
  }
  
  .sidebar-section {
    padding: 1rem;
  }
  
  .footer {
    padding: 2rem 0 1rem 0;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

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

/* Focus States */
button:focus,
input:focus,
a:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .menu,
  .slider-nav,
  .newsletter-form button {
    display: none !important;
  }
  
  .article-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }
}

/* ===== NEW PAGE STYLES ===== */

/* Contact Page Styles */
.contact-page .page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.contact-page .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-page .page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.contact-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.contact-card i {
  color: var(--primary-color);
}

.contact-form-section {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* Privacy & Terms Page Styles */
.privacy-page .page-header,
.terms-page .page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.privacy-page .page-title,
.terms-page .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.privacy-page .page-subtitle,
.terms-page .page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.section-title {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.section ul {
  padding-left: 1.5rem;
}

.section ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.contact-info {
  background: var(--light-bg) !important;
  border: 1px solid var(--border-color);
}

/* News Page Styles */
.news-page .page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.news-page .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.news-page .page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.article-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.article-category .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

/* Videos Page Styles */
.videos-page .page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.videos-page .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.videos-page .page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.news-video {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.news-video:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.video-thumbnail {
  position: relative;
  overflow: hidden;
}

.play-button-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.news-video:hover .play-button-overlay {
  opacity: 1;
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
}

/* Newsletter Page Styles */
.newsletter-page .page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.newsletter-page .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.newsletter-page .page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.info-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.newsletter-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.newsletter-form input {
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.newsletter-form button {
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.benefit-item {
  margin-bottom: 1.5rem;
}

.benefit-item h5 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-card {
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: scale(1.05);
}

/* Popular Page Styles */
.popular-page .page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.popular-page .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.popular-page .page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.popular-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.popular-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.popular-badge .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
}

.category-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Breaking News Page Styles */
.breaking-news-page .page-header {
  background: linear-gradient(135deg, var(--danger-color, #dc3545), var(--warning-color, #ffc107));
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.breaking-news-page .page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.breaking-news-page .page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.breaking-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid var(--danger-color, #dc3545);
}

.breaking-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.breaking-badge {
  position: absolute;
  top: 10px;
  left: 10px;
}

.breaking-badge .badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  background: var(--danger-color, #dc3545) !important;
}

.emergency-card {
  transition: transform 0.3s ease;
}

.emergency-card:hover {
  transform: scale(1.02);
}

/* Common Page Elements */
.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

.no-news,
.no-videos,
.no-popular,
.no-breaking-news {
  padding: 3rem 1rem;
}

.no-news i,
.no-videos i,
.no-popular i,
.no-breaking-news i {
  color: var(--muted-color);
  margin-bottom: 1rem;
}

.news-navigation,
.videos-navigation,
.popular-navigation,
.breaking-news-navigation {
  padding: 1rem;
  background: var(--light-bg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

/* Responsive Design for New Pages */
@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }
  
  .page-subtitle {
    font-size: 1rem;
  }
  
  .contact-info .row > div {
    margin-bottom: 1rem;
  }
  
  .newsletter-form .row > div {
    margin-bottom: 1rem;
  }
  
  .emergency-contacts .row > div {
    margin-bottom: 1rem;
  }
}

@media (max-width: 576px) {
  .page-header {
    padding: 1.5rem;
  }
  
  .page-title {
    font-size: 1.75rem;
  }
  
  .contact-form-section,
  .newsletter-form-section {
    padding: 1.5rem;
  }
  
  .info-card,
  .contact-card,
  .emergency-card {
    padding: 1rem !important;
  }
}

/* ===== END NEW PAGE STYLES ===== */