/**
 * Main stylesheet for Design Template
 * Contains merged styles from:
 * - style.css (base)
 * - article-page.css
 * - card-effects.css
 * - carousel-fix.css
 * - hero-styles.css
 * - hover-effects.css
 * - no-animations.css
 * - touch-fixes.css
 */

/* ============================================
   SECTION: Base styles
   ============================================ */
:root {
  --primary-color: #800000;
  --secondary-color: #6c757d;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --transition: all 0.3s ease;
  --border-radius: 0.25rem;
  --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --button-hover-bg: #a30000;
  --button-hover-border: #a30000;
}

body {
  color: #333;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

.btn {
  padding: 0.6rem 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #d5edeb!important; /* Explicitly setting text color to white */
}

.btn-primary:hover {
  background-color: #a30000;
  border-color: #a30000;
  color: #ffffff!important; /* Maintaining white text on hover */
}

.btn-outline-primary {
  color: var(--button-outline-text);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--button-outline-active-text);
}

/* New styles for btn-outline-primary with active state */
.btn-outline-primary.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--button-outline-active-text);
}

/* Fix for btn-group filters specifically */
.btn-group .btn-outline-primary {
  color: var(--button-outline-text);
  border-color: var(--primary-color);
}

.btn-group .btn-outline-primary:hover,
.btn-group .btn-outline-primary.active {
  background-color: var(--primary-color);
  color: var(--button-outline-active-text);
  border-color: var(--primary-color);
}

.section-title {
  font-weight: 700;
  position: relative;
  margin-bottom: 2rem;
  display: inline-block;
}

.section-title:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  background-color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
}

.object-fit-cover {
  object-fit: cover;
}

/* ============================================
   SECTION: Header & Navigation
   ============================================ */
header {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar {
  padding: 1rem 0;
  background-color: var(--primary-color) !important;
}

.navbar-brand img {
  max-height: 40px;
}

.nav-link {
  font-weight: 500;
  margin-right: 0.5rem;
  color: white !important;
  position: relative;
}

.nav-link:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: white;
  bottom: 0;
  left: 0;
  transition: width 0.3s;
}

.nav-link:hover:after, .nav-link.active:after {
  width: 100%;
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  transition: color 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.9) !important;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  margin-left: 0.5rem;
  transition: background-color 0.3s ease;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.4);
  color: white !important;
}

/* ============================================
   SECTION: Hero Section Styles
   ============================================ */
.hero-section {
  padding: 5rem 0;
  background-color: #121212;
  background-image: 
    linear-gradient(135deg, rgba(40, 40, 45, 0.6) 0%, rgba(25, 25, 30, 0.8) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

/* Add subtle animated gradient overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, 
                rgba(128, 0, 0, 0.25) 0%, 
                rgba(0, 0, 0, 0) 50%, 
                rgba(128, 0, 0, 0.15) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Ensure content sits above the overlay */
.hero-section .container {
  position: relative;
  z-index: 2;
}

/* Dark theme styling for hero section */
.hero-section.hero-dark {
  color: #ffffff;
}

.hero-section.hero-light {
  color: #333333;
}

/* Enhanced carousel styling */
.hero-section #heroCarousel {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  height: 500px;
}

/* Improve carousel indicators alignment */
.hero-section .carousel-indicators {
  bottom: 20px;
  z-index: 5;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 5px 10px;
  margin-bottom: 0;
  width: auto;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-section .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.7);
  margin: 0 5px;
  transition: all 0.3s ease;
  position: relative;
}

.hero-section .carousel-indicators button.active {
  background-color: var(--primary-color);
  border-color: white;
  transform: scale(1.2);
}

/* Fix positioning for carousel controls */
.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
  z-index: 10;
  width: 15%;
  opacity: 0.7;
}

/* Z-index for carousel elements */
.carousel-item > a {
  position: relative;
  cursor: pointer;
  text-decoration: none;
  color: white;
  z-index: 2;
}

.carousel-item > a::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

/* Style updates for carousel captions */
.hero-section .carousel-caption {
  background: rgba(0, 0, 0, 0.5);  
  border-radius: 8px;
  padding: 15px;
  bottom: 45px;
  z-index: 5 !important;
}

/* Update hero section image styling */
.hero-section .carousel-item img {
  filter: brightness(0.9) contrast(1.1);
  transition: filter 0.5s ease;
  object-position: center;
}

/* Update hero articles container */
.hero-articles-container {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.05);
  overflow-y: auto;
  overflow-x: hidden;
  height: 500px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 15px;
  -ms-overflow-style: auto;
}

/* WebKit and Chromium browsers */
.hero-articles-container::-webkit-scrollbar {
  width: 6px;
}

.hero-articles-container::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
}

.hero-articles-container::-webkit-scrollbar-thumb {
  background-color: var(--primary-color);
  border-radius: 10px;
}

/* Card styles for hero section dark theme */
.hero-section .card {
  background-color: rgba(255, 255, 255, 0.85);
  transition: all 0.3s ease;
  margin-bottom: 15px;
  height: 110px;
}

.hero-section .card:hover {
  background-color: rgba(255, 255, 255, 0.95);
}

.hero-section h1 {
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  margin-bottom: 2rem;
  font-size: 1.25rem;
}

/* ============================================
   SECTION: Carousel Fixes 
   ============================================ */
/* Increase the z-index of carousel indicators and center them properly */
.carousel-indicators {
  z-index: 15 !important;
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  width: auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  bottom: 20px !important;
  padding: 5px 10px !important;
  background-color: rgba(0, 0, 0, 0.3) !important;
  border-radius: 20px !important;
}

/* Make carousel controls higher z-index than links */
.carousel-control-next, 
.carousel-control-prev {
  z-index: 20 !important;
}

/* Fix carousel item structure to ensure proper stacking */
.carousel-item {
  position: relative !important;
}

/* Position the link properly within the carousel item */
.carousel-item > a {
  position: relative !important;
  z-index: 1 !important;
}

/* Make sure indicators buttons are clickable */
.carousel-indicators button {
  cursor: pointer !important;
  z-index: 20 !important;
  position: relative !important;
  margin: 0 4px !important;
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
}

/* Ensure carousel caption is displayed on all devices */
.carousel-caption.d-none.d-md-block {
  display: block !important;
}

/* Add visual highlight to indicators when hovered */
.carousel-indicators button:hover {
  background-color: rgba(255, 255, 255, 0.8) !important;
  transform: scale(1.1) !important;
}

/* Specific positioning for #heroCarousel indicators */
#heroCarousel .carousel-indicators {
  left: 50% !important;
  transform: translateX(-50%) !important;
  margin: 0 auto !important;
  bottom: 20px !important;
  width: auto !important;
  padding: 5px 15px !important;
}

/* Make indicators more visible */
#heroCarousel .carousel-indicators button {
  box-shadow: 0 0 3px rgba(0,0,0,0.5) !important;
}

/* ============================================
   SECTION: Card Effects
   ============================================ */
/* Card base styles - no animations */
.card {
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: none;
  backface-visibility: visible;
  transform: none;
}

/* Enhance card hover effect with shadow only - no transform */
.card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  transform: none;
}

/* Card titles - instant color change without animation */
.card h3,
.card .h4,
.card .h5,
.card .card-title {
  transition: none;
  will-change: auto;
}

/* Apply color change to headings without animation */
.card:hover h3,
.card:hover .h4,
.card:hover .h5,
.card:hover .card-title {
  color: var(--primary-color);
}

/* Content - no effects */
.card .card-body {
  transition: none;
  padding: 1.25rem;
}

/* Image - add zoom effect on hover ONLY */
.card .card-img-top {
  transition: transform 0.5s ease;
  transform: scale(1);
  will-change: transform;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

/* Article cards specific zoom behavior */
.article-related .card .card-img-top,
.featured-articles .card .card-img-top,
.latest-articles .card .card-img-top,
article .card .card-img-top {
  transition: transform 0.5s ease;
}

.article-related .card:hover .card-img-top,
.featured-articles .card:hover .card-img-top,
.latest-articles .card:hover .card-img-top,
article .card:hover .card-img-top {
  transform: scale(1.05);
}

/* Fix issue with nested links in cards */
.card a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Special styles for article cards specifically */
.article-related .card,
.featured-articles .card,
.latest-articles .card {
  transition: none;
}

.article-related .card:hover,
.featured-articles .card:hover,
.latest-articles .card:hover {
  transform: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.card-title {
  margin-bottom: 0.75rem;
}

/* ============================================
   SECTION: Hover Effects
   ============================================ */
/* Primary link hover effect */
a:not(.btn):not(.navbar-brand):not(.nav-link):not(.badge):not(.footer a):not(.social-link) {
  transition: color 0.3s ease;
}

a:not(.btn):not(.navbar-brand):not(.nav-link):not(.badge):not(.footer a):not(.social-link):hover {
  color: var(--primary-color) !important;
}

/* Button hover effects */
.btn-primary:hover, 
.btn-primary:focus, 
.btn-primary:active {
  background-color: var(--button-hover-bg) !important;
  border-color: var(--button-hover-border) !important;
}

.btn-outline-primary:hover, 
.btn-outline-primary:focus, 
.btn-outline-primary:active {
  background-color: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

/* Card link hover effects - simplified without animations */
.card a:hover .card-title {
  color: var(--primary-color);
}

/* Tag hover effects */
.article-tags a.badge:hover {
  background-color: var(--primary-color) !important;
  color: white !important;
  border-color: var(--primary-color) !important;
  transition: all 0.3s ease;
}

/* Breadcrumb hover effects */
.breadcrumb a:hover {
  color: var(--primary-color) !important;
  text-decoration: underline;
}

/* Author bio link hover effects */
.author-bio a:hover {
  color: var(--primary-color) !important;
  text-decoration: underline;
}

/* Table of contents hover effects */
.article-toc a:hover {
  color: var(--primary-color) !important;
  text-decoration: underline;
  padding-left: 3px;
  transition: padding-left 0.3s ease;
}

/* Footer links hover effects */
.footer a.text-white:hover {
  color: rgba(255, 255, 255, 0.8) !important;
  text-decoration: underline;
}

/* Make sure specific hover effects take precedence */
.article-content a:not(.badge):hover {
  border-bottom-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

/* ============================================
   SECTION: Article Page Styles
   ============================================ */

/* Article share buttons fix */
.article-share .btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.article-share .btn i {
  font-size: 0.9rem;
  line-height: 1;
}

.article-share .btn:hover {
  color: white !important;
}

.article-share .btn-outline-primary:hover {
  background-color: var(--primary-color);
}

.article-share .btn-outline-info:hover {
  background-color: #0dcaf0;
}

.article-share .btn-outline-secondary:hover {
  background-color: #6c757d;
}

.article-share .btn-outline-success:hover {
  background-color: #198754;
}

.article-header {
  padding: 3rem 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
}

.article-content {
  padding: 2rem 0 4rem;
}

.article-body {
  font-size: 1.1rem;
  line-height: 1.8;
}

.article-body h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.article-body h3 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-body p {
  margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.article-body img {
  max-width: 100%;
  height: auto;
}

.article-body blockquote {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-left: 4px solid var(--primary-color);
  margin: 2rem 0;
}

.article-body blockquote p {
  font-style: italic;
  margin-bottom: 0;
}

.article-tags {
  margin: 3rem 0 2rem;
}

.related-articles {
  padding: 4rem 0;
}

.author-img {
  object-fit: cover;
}

/* ============================================
   SECTION: Touch Device Fixes
   ============================================ */
/* Disable all card hover effects on touch devices */
.touch-device .card {
  transform: none !important;
  transition: none !important;
}

.touch-device .card:hover {
  transform: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.touch-device .card .card-img-top {
  transform: none !important;
  transition: none !important;
}

.touch-device .card:hover .card-img-top {
  transform: none !important;
}

/* For touch devices, only change color on tap */
.touch-device .card-touch-hover .card-title {
  color: var(--primary-color) !important;
}

/* Remove all transitions for better performance on touch */
.touch-device .card * {
  transition: none !important;
}

/* Improve tap target sizes on mobile */
.touch-device .card-body {
  padding: 1rem;
}

/* Only apply hover effects on actual hover for non-touch devices */
@media (hover: hover) and (pointer: fine) {
  .card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  }
  
  .card:hover .card-title {
    color: var(--primary-color);
  }
}

/* ============================================
   SECTION: No Animations Override
   ============================================ */
/* For users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  
  .card:hover {
    transform: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
  }
}

/* Class-based animation disabling */
.no-animations * {
  animation: none !important;
  transition: none !important;
  transform: none !important;
}

.no-animations .card:hover {
  transform: none !important;
  transition: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.no-animations .card:hover .card-title,
.no-animations .card:hover h3,
.no-animations .card:hover .h4,
.no-animations .card:hover .h5 {
  color: var(--primary-color) !important;
}

.no-animations .card .card-img-top {
  transition: none !important;
  transform: none !important;
}

.no-animations .card:hover .card-img-top {
  transform: none !important;
}

.no-animations img {
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

.no-animations .btn {
  transition: none !important;
}

.no-animations a:hover {
  color: var(--primary-color) !important;
  transition: none !important;
}

/* ============================================
   SECTION: Layout & Content Sections
   ============================================ */
.featured-articles, 
.latest-articles {
  padding: 4rem 0;
}

.newsletter {
  padding: 5rem 0;
  background-color: #f9f9fa;
}

.newsletter-form .form-control {
  height: 3.5rem;
  padding: 0 1.5rem;
}

.newsletter-form .btn {
  padding: 0 1.5rem;
  height: 3.5rem;
  font-weight: 500;
}

/* ============================================
   SECTION: Footer
   ============================================ */
.footer {
  background-color: #222;
}

.footer h5 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer p {
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer .social-links a {
  color: white;
  font-size: 1.2rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer .social-links a:hover {
  opacity: 1;
}

.footer hr {
  background-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   SECTION: Custom Component Styles
   ============================================ */
/* Custom Badge Styles */
.badge-outline-primary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.badge-outline-success {
  background-color: transparent;
  color: #198754;
  border: 1px solid #198754;
}

.badge-outline-info {
  background-color: transparent;
  color: #0dcaf0;
  border: 1px solid #0dcaf0;
}

.badge-outline-warning {
  background-color: transparent;
  color: #ffc107;
  border: 1px solid #ffc107;
}

.badge-outline-danger {
  background-color: transparent;
  color: #dc3545;
  border: 1px solid #dc3545;
}

.badge-outline-secondary {
  background-color: transparent;
  color: #6c757d;
  border: 1px solid #6c757d;
}

.badge {
  padding: 0.35em 0.65em;
  font-weight: 500;
}

/* Pagination styles - ensure light text color on active state */
.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #ffffff !important; /* Ensure text is white on active state */
}

.pagination .page-link.active {
  color: #ffffff !important; /* Additional selector for the active class we added */
}

/* Pagination styles - adding new styles */
.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination .page-link {
  color: var(--primary-color);
}

.pagination .page-link:hover {
  color: var(--primary-color);
  background-color: rgba(128, 0, 0, 0.08);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero-section {
    text-align: center;
    padding: 3rem 0;
  }
  
  .hero-section .col-lg-6:first-child {
    margin-bottom: 2rem;
  }
  
  .featured-main {
    margin-bottom: 2rem;
  }
}

@media (max-width: 767.98px) {
  .section-title {
    text-align: center;
  }
  
  .newsletter-form .btn {
    width: 100%;
    margin-top: 1rem;
  }
  
  .article-header, .article-content {
    padding: 2rem 0;
  }
  
  .article-body {
    font-size: 1rem;
  }
  
  .article-body h2 {
    font-size: 1.5rem;
  }
  
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-section .col-md-6:first-child {
    margin-bottom: 2rem;
  }
  
  .hero-articles-container {
    max-height: 400px !important;
  }
  
  .hero-section .col-md-8,
  .hero-section .col-md-4 {
    margin-bottom: 2rem;
  }
  
  #heroCarousel,
  .hero-articles-container {
    height: 350px !important;
  }
  
  .hero-articles-container .card {
    height: auto;
  }
}

/* Animation Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated {
  animation: fadeIn 0.6s ease forwards;
}
