/* Base & Reset Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  :root {
    /* Primary Colors */
    --primary-color: #00ffea;
    --secondary-color: #ff00dd;
    --accent-color: #ffd700;
    
    /* Background Colors */
    --bg-dark: #0f0f1a;
    --bg-light: #f5f7fa;
    
    /* Text Colors */
    --text-dark: #121212;
    --text-light: #f8f9fa;
    --text-muted: rgba(255, 255, 255, 0.7);
    
    /* Glass Effect */
    --glass-bg-dark: rgba(15, 15, 25, 0.7);
    --glass-bg-light: rgba(255, 255, 255, 0.7);
    --glass-border-dark: rgba(255, 255, 255, 0.1);
    --glass-border-light: rgba(0, 0, 0, 0.1);
    
    /* Shadow */
    --shadow-dark: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-speed: 0.3s;
    
    /* Other */
    --border-radius: 12px;
    --glow-spread: 15px;
    
    /* Category Colors */
    --category-general: #00ffea;
    --category-business: #ffb700;
    --category-technology: #0088ff;
    --category-science: #00ff88;
    --category-health: #ff5e85;
    --category-sports: #ffa500;
    --category-entertainment: #ff00dd;
    --category-politics: #8855ff;
    --category-world: #1ebbff;
  }
  
  /* Base Layout */
  body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color var(--transition-speed) ease;
  }
  
  /* Reading Mode */
  body.reading-mode {
    background-color: #0a0a15;
  }
  
  body.reading-mode.light-mode {
    background-color: #f0f2f5;
  }
  
  body.reading-mode .news-card {
    background: rgba(15, 15, 25, 0.85);
  }
  
  body.reading-mode.light-mode .news-card {
    background: rgba(255, 255, 255, 0.9);
  }
  
  body.reading-mode .news-text {
    font-size: 1rem;
    line-height: 1.8;
  }
  
  /* Light Mode */
  body.light-mode {
    background-color: var(--bg-light);
    color: var(--text-dark);
  }
  
  /* Background Elements */
  .background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
  }
  
  .neon-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    transition: opacity var(--transition-speed) ease;
  }
  
  /* Reduce opacity in reading mode */
  body.reading-mode .neon-circle {
    opacity: 0.15;
  }
  
  .circle-1 {
    background-color: var(--primary-color);
    width: 400px;
    height: 400px;
    top: -150px;
    left: -150px;
    animation: float 15s ease-in-out infinite;
  }
  
  .circle-2 {
    background-color: var(--secondary-color);
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -200px;
    animation: float 18s ease-in-out infinite reverse;
  }
  
  .circle-3 {
    background-color: var(--accent-color);
    width: 300px;
    height: 300px;
    top: 40%;
    left: 60%;
    animation: float 20s ease-in-out infinite 2s;
  }
  
  @keyframes float {
    0% { transform: translate(0, 0); }
    33% { transform: translate(40px, 20px); }
    66% { transform: translate(20px, 40px); }
    100% { transform: translate(0, 0); }
  }
  
  /* Breaking News Banner */
  .breaking-news-banner {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    padding: 10px 0;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: none; /* Hidden by default, shown when content is added */
  }
  
  .breaking-news-content {
    display: flex;
    align-items: center;
  }
  
  .breaking-label {
    background: var(--text-dark);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 20px;
    margin-right: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex-shrink: 0;
  }
  
  .breaking-news-text {
    overflow: hidden;
    white-space: nowrap;
    flex-grow: 1;
  }
  
  .breaking-marquee {
    display: inline-block;
    animation: marquee 20s linear infinite;
    padding-right: 50px;
  }
  
  @keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
  }
  
  .close-breaking {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
    padding: 0 8px;
    transition: all 0.2s ease;
  }
  
  .close-breaking:hover {
    transform: scale(1.1);
  }
  
  /* Glassmorphism Elements */
  .glass-nav {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border-dark);
    box-shadow: var(--shadow-dark);
    transition: all var(--transition-speed) ease;
    z-index: 1000;
  }
  
  .glass-card {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-dark);
    transition: all var(--transition-speed) ease;
    overflow: hidden;
    height: fit-content;
  }
  
  .glass-dropdown {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border-dark);
    box-shadow: var(--shadow-dark);
    border-radius: var(--border-radius);
    padding: 0.5rem;
  }
  
  .glass-section {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border-dark);
    border-bottom: 1px solid var(--glass-border-dark);
    padding: 60px 0;
    margin: 40px 0;
  }
  
  .glass-footer {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border-dark);
    padding: 60px 0 30px;
  }
  
  .glass-input {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border-dark);
    border-radius: var(--border-radius);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    transition: all var(--transition-speed) ease;
  }
  
  .glass-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 234, 0.3);
  }
  
  .glass-text {
    color: var(--text-muted);
  }
  
  /* Light Mode Adjustments */
  body.light-mode .glass-nav,
  body.light-mode .glass-card,
  body.light-mode .glass-dropdown,
  body.light-mode .glass-section,
  body.light-mode .glass-footer,
  body.light-mode .modal-content {
    background: var(--glass-bg-light);
    border-color: var(--glass-border-light);
    box-shadow: var(--shadow-light);
  }
  
  body.light-mode .glass-input {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--glass-border-light);
    color: var(--text-dark);
  }
  
  body.light-mode .glass-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 255, 234, 0.2);
  }
  
  body.light-mode .glass-text {
    color: rgba(0, 0, 0, 0.7);
  }
  
  /* Neon Text Elements - Fixed for light mode */
  .neon-text {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
  }
  
  .neon-heading {
    color: var(--primary-color);
    text-shadow: 0 0 5px var(--primary-color), 0 0 15px var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
  }
  
  .neon-subheading {
    color: var(--secondary-color);
    text-shadow: 0 0 5px var(--secondary-color), 0 0 10px var(--secondary-color);
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
  }
  
  /* Fix for glowing text in light mode */
  body.light-mode .neon-text {
    color: var(--primary-color);
    text-shadow: none;
  }
  
  body.light-mode .neon-heading {
    color: var(--primary-color);
    text-shadow: none;
  }
  
  body.light-mode .neon-subheading {
    color: var(--secondary-color);
    text-shadow: none;
  }
  
  .neon-underline {
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    width: 100px;
    margin: 0 auto 2rem;
    position: relative;
  }
  
  .neon-underline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    filter: blur(8px);
    opacity: 0.8;
  }
  
  /* Remove glow effect in light mode */
  body.light-mode .neon-underline::before {
    opacity: 0;
    filter: none;
  }
  
  .section-heading {
    text-align: center;
    margin-bottom: 2.5rem;
  }
  
  .section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: 25px;
    font-family: 'Orbitron', sans-serif;
    color: var(--text-light);
  }
  
  body.light-mode .section-title {
    color: var(--text-dark);
  }
  
  .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
  }
  
  .neon-button {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.6rem 1.8rem;
    border-radius: var(--border-radius);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px var(--primary-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
  }
  
  /* Adjust button styles for light mode */
  body.light-mode .neon-button {
    box-shadow: none;
    background-color: rgba(0, 255, 234, 0.1);
  }
  
  .neon-button:hover {
    color: var(--text-dark);
    box-shadow: 0 0 20px var(--primary-color);
  }
  
  body.light-mode .neon-button:hover {
    color: var(--text-dark);
    box-shadow: none;
    background-color: rgba(0, 255, 234, 0.2);
  }
  
  .neon-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.4s ease;
    z-index: -1;
  }
  
  .neon-button:hover::before {
    left: 0;
  }
  
  /* Navbar Styles */
  .navbar-brand {
    font-size: 1.5rem;
  }
  
  .navbar-nav .nav-link {
    color: var(--text-light);
    margin: 0 8px;
    padding: 0.5rem 0.8rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
  }
  
  .navbar-nav .nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.05);
  }
  
  .navbar-nav .nav-link.active {
    color: var(--primary-color);
    background: rgba(0, 255, 234, 0.05);
    box-shadow: 0 0 10px rgba(0, 255, 234, 0.2);
  }
  
  body.light-mode .navbar-nav .nav-link {
    color: var(--text-dark);
  }
  
  body.light-mode .navbar-nav .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
  }
  
  body.light-mode .navbar-nav .nav-link.active {
    background: rgba(0, 255, 234, 0.1);
    box-shadow: none;
  }
  
  .navbar-toggler {
    border: none;
    color: var(--text-light);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.8rem;
  }
  
  body.light-mode .navbar-toggler {
    color: var(--text-dark);
    background: rgba(0, 0, 0, 0.05);
  }
  
  .dropdown-menu {
    border-radius: var(--border-radius);
    padding: 0.5rem;
    min-width: 180px;
  }
  
  .dropdown-item {
    border-radius: calc(var(--border-radius) - 4px);
    padding: 0.6rem 1rem;
    color: var(--text-light);
    transition: all var(--transition-speed) ease;
    margin-bottom: 2px;
  }
  
  .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
  }
  
  body.light-mode .dropdown-item {
    color: var(--text-dark);
  }
  
  body.light-mode .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
  }
  
  /* Search Form */
  .search-form {
    max-width: 250px;
    position: relative;
  }
  
  .search-btn {
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding: 0.375rem 0.75rem;
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    transition: all var(--transition-speed) ease;
  }
  
  .search-btn:hover {
    background: var(--primary-color);
    filter: brightness(1.2);
  }
  
  /* Reading Mode Toggle */
  .reading-mode-toggle button {
    border-color: var(--text-light);
    color: var(--text-light);
    transition: all var(--transition-speed) ease;
  }
  
  .reading-mode-toggle button:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  body.reading-mode .reading-mode-toggle button {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
  }
  
  body.light-mode .reading-mode-toggle button {
    border-color: var(--text-dark);
    color: var(--text-dark);
  }
  
  body.light-mode .reading-mode-toggle button:hover {
    background: rgba(0, 0, 0, 0.05);
  }
  
  body.light-mode.reading-mode .reading-mode-toggle button {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
  }
  
  /* Theme Toggle */
  .theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    margin-left: 15px;
  }
  
  .theme-input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  .theme-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    transition: var(--transition-speed);
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .theme-label .fa-sun {
    color: var(--accent-color);
    font-size: 14px;
    margin-left: 5px;
  }
  
  .theme-label .fa-moon {
    color: #eaeaea;
    font-size: 14px;
    margin-right: 5px;
  }
  
  .toggle-ball {
    position: absolute;
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: var(--transition-speed);
  }
  
  .theme-input:checked + .theme-label {
    background-color: rgba(0, 0, 0, 0.1);
  }
  
  .theme-input:checked + .theme-label .toggle-ball {
    transform: translateX(30px);
  }
  
  /* Hero Section */
  .hero-section {
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
  }
  
  .date-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    margin-top: 1.5rem;
    font-size: 0.9rem;
  }
  
  body.light-mode .date-badge {
    background: rgba(0, 0, 0, 0.05);
  }
  
  /* Featured Carousel */
  .featured-carousel {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-dark);
  }
  
  .carousel-item {
    height: 400px;
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
  }
  
  .carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  .carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    padding: 30px 20px 20px;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
  }
  
  .carousel-category {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-color);
    color: var(--text-dark);
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 5px;
    text-transform: uppercase;
  }
  
  .carousel-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .featured-carousel .carousel-control-prev,
  .featured-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: all 0.3s ease;
  }
  
  .featured-carousel:hover .carousel-control-prev,
  .featured-carousel:hover .carousel-control-next {
    opacity: 0.8;
  }
  
  .featured-carousel .carousel-control-prev {
    left: 15px;
  }
  
  .featured-carousel .carousel-control-next {
    right: 15px;
  }
  
  .featured-carousel .carousel-control-prev-icon,
  .featured-carousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
  }
  
  /* Placeholder Content */
  .placeholder-content {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .placeholder-image {
    height: 180px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
  }
  
  body.light-mode .placeholder-image {
    background: linear-gradient(90deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.05) 100%);
    background-size: 200% 100%;
  }
  
  .placeholder-text {
    padding: 1.5rem;
    flex-grow: 1;
  }
  
  .placeholder-line {
    height: 15px;
    margin-bottom: 10px;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
  }
  
  body.light-mode .placeholder-line {
    background: linear-gradient(90deg, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.05) 100%);
    background-size: 200% 100%;
  }
  
  .placeholder-line:last-child {
    width: 60%;
  }
  
  @keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
  }
  
  /* Most Read Section */
  .most-read-section {
    margin-bottom: 40px;
    animation: fadeIn 0.8s ease;
    display: none; /* Hidden initially, shown when there's data */
  }
  
  .most-read-card {
    height: 130px;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    padding: 15px;
    display: flex;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .most-read-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  }
  
  .most-read-img {
    width: 100px;
    height: 100%;
    border-radius: calc(var(--border-radius) - 4px);
    object-fit: cover;
    flex-shrink: 0;
  }
  
  .most-read-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .most-read-category {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    margin-bottom: 5px;
  }
  
  .most-read-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  .most-read-info {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: auto;
    display: flex;
    justify-content: space-between;
  }
  
  body.light-mode .most-read-info {
    color: rgba(0, 0, 0, 0.6);
  }
  
  .views-count {
    display: flex;
    align-items: center;
  }
  
  .views-count i {
    margin-right: 4px;
  }
  
  /* Main Content */
  .main-content {
    padding: 40px 0 60px;
  }
  
  /* Category Pills */
  .category-pills {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    margin-bottom: 2rem;
  }
  
  .category-pills::-webkit-scrollbar {
    height: 6px;
  }
  
  .category-pills::-webkit-scrollbar-track {
    background: transparent;
  }
  
  .category-pills::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 6px;
  }
  
  .pills-wrapper {
    display: inline-flex;
    gap: 12px;
    padding: 5px;
  }
  
  .pill {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50px;
    padding: 8px 20px;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
  }
  
  .pill:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }
  
  .pill.active {
    background: var(--primary-color);
    color: var(--text-dark);
    box-shadow: 0 0 10px var(--primary-color);
  }
  
  body.light-mode .pill {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
  }
  
  body.light-mode .pill:hover {
    background: rgba(0, 0, 0, 0.1);
  }
  
  body.light-mode .pill.active {
    background: var(--primary-color);
    color: var(--text-dark);
    box-shadow: none;
  }
  
  /* Category specific pills */
  .pill[data-category="general"].active { background: var(--category-general); }
  .pill[data-category="business"].active { background: var(--category-business); }
  .pill[data-category="technology"].active { background: var(--category-technology); }
  .pill[data-category="science"].active { background: var(--category-science); }
  .pill[data-category="health"].active { background: var(--category-health); }
  .pill[data-category="sports"].active { background: var(--category-sports); }
  .pill[data-category="entertainment"].active { background: var(--category-entertainment); }
  .pill[data-category="politics"].active { background: var(--category-politics); }
  .pill[data-category="world"].active { background: var(--category-world); }
  
  /* News Cards */
  .news-card {
    height: 580px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.6s ease;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  .news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
  }
  
  body.light-mode .news-card:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  }
  
  .news-img-container {
    height: 200px;
    overflow: hidden;
    position: relative;
  }
  
  .news-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Category specific colors */
  .news-category.general { background: var(--category-general); }
  .news-category.business { background: var(--category-business); }
  .news-category.technology { background: var(--category-technology); }
  .news-category.science { background: var(--category-science); }
  .news-category.health { background: var(--category-health); }
  .news-category.sports { background: var(--category-sports); }
  .news-category.entertainment { background: var(--category-entertainment); }
  .news-category.politics { background: var(--category-politics); }
  .news-category.world { background: var(--category-world); }
  
  .news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-speed) ease;
  }
  
  .news-card:hover .news-img {
    transform: scale(1.08);
  }
  
  .news-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    height: calc(100% - 200px);
  }
  
  .news-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
  }
  
  body.light-mode .news-date {
    color: rgba(0, 0, 0, 0.6);
  }
  
  .news-date i {
    margin-right: 5px;
    font-size: 0.75rem;
  }
  
  .news-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
  }
  
  .news-text {
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1.2rem;
    flex-grow: 1;
    line-height: 1.6;
    opacity: 0.85;
  }
  
  .news-source {
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
  }
  
  .news-source i {
    margin-right: 5px;
    font-size: 0.8rem;
  }
  
  .news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
  }
  
  body.light-mode .news-meta {
    color: rgba(0, 0, 0, 0.6);
  }
  
  .read-time {
    display: flex;
    align-items: center;
  }
  
  .read-time i {
    margin-right: 5px;
  }
  
  .news-actions {
    display: flex;
    gap: 10px;
  }
  
  .action-icon {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: all 0.2s ease;
  }
  
  .action-icon:hover {
    background: var(--primary-color);
    color: var(--text-dark);
  }
  
  .action-icon.active {
    background: var(--primary-color);
    color: var(--text-dark);
  }
  
  body.light-mode .action-icon {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
  }
  
  body.light-mode .action-icon:hover,
  body.light-mode .action-icon.active {
    background: var(--primary-color);
    color: var(--text-dark);
  }
  
  .read-more {
    display: inline-block;
    padding: 1.0rem 1.2rem;
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
  }
  
  .read-more::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.4s ease;
    z-index: -1;
  }
  
  .read-more:hover {
    color: var(--text-dark);
  }
  
  .read-more:hover::before {
    left: 0;
  }
  
  /* Loading Spinner */
  .spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
  }
  
  .neon-spinner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .spinner-ring {
    width: 80px;
    height: 80px;
    border: 4px solid transparent;
    border-top: 4px solid var(--primary-color);
    border-right: 4px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    margin-bottom: 15px;
    box-shadow: 0 0 15px rgba(0, 255, 234, 0.5);
  }
  
  body.light-mode .spinner-ring {
    box-shadow: none;
  }
  
  .neon-spinner span {
    color: var(--primary-color);
    font-family: 'Orbitron', sans-serif;
    text-shadow: 0 0 5px var(--primary-color);
    font-size: 1rem;
    letter-spacing: 2px;
  }
  
  body.light-mode .neon-spinner span {
    text-shadow: none;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  /* Modal Styles */
  .modal-content {
    overflow: hidden;
  }
  
  #articleModalBody {
    max-height: 70vh;
    overflow-y: auto;
  }
  
  .article-modal-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    margin-bottom: 20px;
  }
  
  .article-modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
  }
  
  .article-modal-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
  }
  
  body.light-mode .article-modal-meta {
    color: rgba(0, 0, 0, 0.6);
  }
  
  .article-modal-source {
    display: flex;
    align-items: center;
  }
  
  .article-modal-source i {
    margin-right: 5px;
  }
  
  .article-modal-date {
    display: flex;
    align-items: center;
  }
  
  .article-modal-date i {
    margin-right: 5px;
  }
  
  .article-modal-content {
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 25px;
  }
  
  .article-actions {
    display: flex;
    gap: 15px;
  }
  
  .action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
  }
  
  .action-btn:hover {
    background: var(--primary-color);
    color: var(--text-dark);
  }
  
  .action-btn.active {
    background: var(--primary-color);
    color: var(--text-dark);
  }
  
  body.light-mode .action-btn {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
  }
  
  body.light-mode .action-btn:hover,
  body.light-mode .action-btn.active {
    background: var(--primary-color);
    color: var(--text-dark);
  }
  
  /* Share Modal */
  .share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
  }
  
  .share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    color: var(--text-light);
  }
  
  .twitter-share {
    background: #1DA1F2;
  }
  
  .facebook-share {
    background: #4267B2;
  }
  
  .linkedin-share {
    background: #0077B5;
  }
  
  .whatsapp-share {
    background: #25D366;
  }
  
  .copy-link-btn {
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
  }
  
  .copy-link-btn:hover {
    filter: brightness(1.1);
  }
  
  /* Toast Notification */
  .toast {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(15, 15, 25, 0.8);
    color: var(--text-light);
    border: 1px solid var(--glass-border-dark);
  }
  
  body.light-mode .toast {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    border: 1px solid var(--glass-border-light);
  }
  
  .toast-header {
    background: transparent;
    color: inherit;
    border-bottom: 1px solid var(--glass-border-dark);
  }
  
  body.light-mode .toast-header {
    border-bottom: 1px solid var(--glass-border-light);
  }
  
  /* Newsletter Section */
  .newsletter-section {
    margin: 60px 0;
  }
  
  .newsletter-form {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .newsletter-form .input-group {
    height: 50px;
  }
  
  /* Footer Styles */
  .footer-links {
    list-style: none;
    padding: 0;
  }
  
  .footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    display: block;
    padding: 5px 0;
  }
  
  .footer-links a:hover {
    color: var(--primary-color);
  }
  
  body.light-mode .footer-links a {
    color: var(--text-dark);
  }
  
  .contact-info {
    list-style: none;
    padding: 0;
  }
  
  .contact-info li {
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
  }
  
  .contact-info li i {
    margin-right: 10px;
    margin-top: 5px;
  }
  
  .contact-info li a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
  }
  
  .contact-info li a:hover {
    color: var(--primary-color);
  }
  
  .social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
  }
  
  .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: all var(--transition-speed) ease;
  }
  
  .social-icon:hover {
    background: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
  }
  
  body.light-mode .social-icon {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-dark);
  }
  
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 20px;
  }
  
  body.light-mode .footer-bottom {
    border-color: rgba(0, 0, 0, 0.1);
  }
  
  .copyright {
    font-size: 0.9rem;
    opacity: 0.7;
  }
  
  /* Error Message */
  .error-message {
    background: rgba(255, 0, 0, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: var(--border-radius);
    padding: 15px;
    margin: 20px 0;
    text-align: center;
  }
  
  body.light-mode .error-message {
    background: rgba(255, 0, 0, 0.05);
  }
  
  /* Responsive Adjustments */
  @media (max-width: 991.98px) {
    .neon-heading {
      font-size: 2.5rem;
    }
    
    .hero-section {
      padding: 80px 0 40px;
    }
    
    .featured-carousel {
      margin-top: 30px;
    }
    
    .carousel-title {
      font-size: 1.3rem;
    }
    
    .most-read-section .col-md-6 {
      margin-bottom: 15px;
    }
  }
  
  @media (max-width: 767.98px) {
    .neon-heading {
      font-size: 2rem;
    }
    
    .featured-carousel {
      height: 350px;
    }
    
    .carousel-item {
      height: 350px;
    }
    
    .news-card {
      height: 520px;
    }
    
    .news-img-container {
      height: 180px;
    }
    
    .most-read-card {
      height: auto;
    }
    
    .share-buttons {
      grid-template-columns: 1fr;
    }
  }
  
  @media (max-width: 575.98px) {
    .hero-section {
      padding: 60px 0 30px;
    }
    
    .neon-heading {
      font-size: 1.8rem;
    }
    
    .featured-carousel {
      height: 300px;
    }
    
    .carousel-item {
      height: 300px;
    }
    
    .carousel-title {
      font-size: 1.1rem;
      -webkit-line-clamp: 2;
    }
    
    .news-card {
      height: auto;
      min-height: 500px;
    }
    
    .news-img-container {
      height: 160px;
    }
    
    .pill {
      padding: 6px 15px;
      font-size: 0.9rem;
    }
    
    .article-actions {
      gap: 10px;
    }
  }
  
  /* Animations */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeInDown {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Utility Classes */
  .fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
  }
  
  .fade-in-down {
    animation: fadeInDown 0.5s ease forwards;
  }
  
  /* Accessibility */
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  :focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }
  