:root {
    --primary-red: #ff1e1e;
    --primary-green: #00ff6a;
    --bg-dark: #050505;
    --glass-bg: rgba(20, 20, 20, 0.85);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
    --font-main: 'Outfit', sans-serif;
    --font-tamil: 'Noto Sans Tamil', sans-serif;
    --font-sinhala: 'Noto Sans Sinhala', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Ambient Glow Effects */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.red-glow {
    top: -100px;
    left: -100px;
    background: var(--primary-red);
}

.green-glow {
    bottom: -100px;
    right: -100px;
    background: var(--primary-green);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}




/* General Layout Fixes */
/* Main Content Area */
main#app {
    margin-top: 120px;
    /* Increased from 100px to accommodate Google Translate banner space */
    margin-bottom: 100px;
    min-height: 80vh;
    display: block;
    padding-top: 20px;
    transition: margin-top 0.3s ease;
}

/* When Google Translate is active AND language is NOT Tamil */
body.translate-active:not(.lang-ta) main#app {
    margin-top: 140px;
}

/* Glass Navbar - Ultra Modern Animated Design */
.glass-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 4px 0;
    /* Reduced for slim look */
    margin: 0 !important;
    overflow: visible !important;

    /* Multi-layered Background System - Official Brand Colors */
    background:
        /* Animated gradient overlay - Red to Green with transparency */
        linear-gradient(120deg,
            rgba(255, 30, 30, 0.45) 0%,
            rgba(200, 20, 20, 0.40) 20%,
            rgba(100, 60, 30, 0.35) 40%,
            rgba(30, 100, 40, 0.35) 60%,
            rgba(0, 202, 34, 0.40) 80%,
            rgba(255, 30, 30, 0.45) 100%);
    background-size: 300% 300%;
    animation: navGradientFlow 12s ease infinite;

    /* Premium Foggy Glassmorphism */
    backdrop-filter: blur(40px) saturate(180%) brightness(1.1);
    -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(1.1);

    /* Layered Shadows for Depth */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.15);

    /* Foggy border effect */
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);

    transition: top 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;

    /* Subtle floating animation */
    animation: navGradientFlow 12s ease infinite, navFloat 4s ease-in-out infinite;
}

/* Animated Gradient Flow */
@keyframes navGradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Floating Effect */
@keyframes navFloat {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-2px);
    }
}

/* Subtle Foggy Shimmer Effect Overlay */
.glass-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.15) 50%,
            transparent 100%);
    animation: navShimmer 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes navShimmer {
    0% {
        left: -100%;
    }

    50% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}

/* Decorative Particles */
.glass-nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 1px, transparent 1px),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 60% 90%, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px, 120px 120px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
    opacity: 0.6;
    z-index: 0;
}

@keyframes particleFloat {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 0% 0%;
    }

    100% {
        background-position: 100% 100%, -100% 100%, 50% -50%, -50% 50%;
    }
}

/* When Google Translate banner is active AND language is NOT Tamil */
body.translate-active:not(.lang-ta) .glass-nav {
    top: 40px !important;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    /* Default desktop behavior: normal flex, no scroll */
    overflow: visible;
    /* Ensure nav items are above animated layers */
    position: relative;
    z-index: 10;
}

/* Ensure all direct children don't shrink */
.nav-container>* {
    flex-shrink: 0;
}

/* Default state: Hide mobile dropdown on desktop */
.mobile-only {
    display: none !important;
}

/* Fix for 1440px and below (Scrollable Navbar) */
@media (max-width: 1440px) {
    .nav-container {
        gap: 5px;
        justify-content: flex-start;
        /* Ensure items start from left */
        max-width: 100% !important;
        /* Force full width for scrolling */
        width: 100%;
        width: 100%;
        padding-left: 0px;
        /* Reduced left margin for logo on mobile */
        padding-right: 40px;
        /* add scroll padding to see last item */

        /* Enable scrolling only for smaller screens */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        white-space: nowrap;
        /* Prevent wrapping */
        scroll-behavior: smooth;
    }

    /* Hide scrollbar for Chrome/Safari/Opera */
    .nav-container::-webkit-scrollbar {
        display: none;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-actions {
        margin-left: 20px;
        /* Don't auto push to right, keep near links for scroll */
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    /* Mobile Interaction Optimization */
    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: block !important;
    }
}



/* Logo Container with Animated Stroke */
.logo-container {
    position: relative;
    display: inline-block;
    padding: 6px;
    /* Reduced for slim navbar */
    /* Solid gray glass background - more opaque to hide red navbar */
    background:
        linear-gradient(135deg,
            rgba(12, 12, 12, 0.95) 0%,
            rgba(22, 22, 22, 0.95) 50%,
            rgba(24, 24, 24, 0.95) 100%);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    border-radius: 10px;
    /* Slightly smaller radius for slim look */
    border: 1px solid rgba(22, 22, 22, 0.2);
    /* Stronger border */
}

.logo-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(45deg,
            #ff1e1e,
            #00ff6a,
            #ffeb3b,
            #ff1e1e,
            #00ff6a);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: rotate-gradient 3s linear infinite;
    pointer-events: none;
}

@keyframes rotate-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.main-logo {
    height: 32px;
    /* Reduced for slim navbar */
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 30, 30, 0.3));
    display: block;
    position: relative;
    z-index: 1;
}


.nav-links {
    display: flex;
    gap: 25px;
    /* Reduced gap for compact look */
    list-style: none;
    align-items: center;
    overflow: visible;
    /* Allow dropdowns to show */
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    /* White text for red background */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    /* Slightly smaller for slim navbar */
    transition: 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    /* Pure white on hover/active */
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.4),
        0 0 30px rgba(255, 235, 59, 0.3);
    /* Yellowish glow */
    transform: scale(1.05);
    /* Slight zoom for active/hover */
}

/* Removed ::after underline to fix user request */
.nav-links a.active::after {
    display: none;
    /* Ensure no underline */
}

.special-link {
    color: #ffffff !important;
    /* White text */
    border: 2px solid rgba(255, 255, 255, 0.9);
    /* White border */
    padding: 5px 15px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    /* Subtle white background */
    transition: all 0.3s ease;
}

.special-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
    /* Push Search to right */
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.lang-switch select {
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    outline: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.lang-switch select option {
    background: #111;
}

/* Compact Date Filter - Icon Only */
.date-filter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: rgba(255, 255, 255, 0.15);
    /* White tint */
    width: 36px;
    height: 36px;
    /* Reduced for slim navbar */
    padding: 0;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    /* White border */
    transition: 0.3s;
    position: relative;
}

.date-filter:hover,
.date-filter.active {
    border-color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.date-filter i {
    color: #ffffff;
    /* White icon */
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

.date-filter input[type="date"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* Invisible but clickable */
    cursor: pointer;
    z-index: 2;
}

.date-filter input[type="date"]::-webkit-calendar-picker-indicator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    opacity: 0;
}

.clear-filter-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-red);
    color: white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 0.7rem;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 2px solid #111;
    /* Contrast border */
    cursor: pointer;
    padding: 0;
    transition: 0.3s;
}

.clear-filter-btn:hover {
    transform: scale(1.1);
    background: #ff4444;
}

.date-filter.active .clear-filter-btn {
    display: flex;
}

.date-trigger input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 8px 12px;
    border-radius: 10px;
    font-family: inherit;
    color-scheme: dark;
}

/* Floating Social Follow Buttons */
.floating-social-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: floatBounce 3s ease-in-out infinite;
}

.float-btn:hover {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.float-btn.facebook-float {
    background: linear-gradient(135deg, #1877f2, #145dbf);
    color: white;
    animation-delay: 0s;
}

.float-btn.youtube-float {
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: white;
    animation-delay: 0.2s;
}

.float-btn.instagram-float {
    background: linear-gradient(135deg, #e1306c, #fd1d1d, #f77737);
    color: white;
    animation-delay: 0.4s;
}

.float-btn.tiktok-float {
    background: linear-gradient(135deg, #000000, #333333);
    color: #00f2ea;
    animation-delay: 0.6s;
}

.float-btn.twitter-float {
    background: linear-gradient(135deg, #1da1f2, #1a8cd8);
    color: white;
    animation-delay: 0.8s;
}

.float-btn.whatsapp-float {
    background: linear-gradient(135deg, #25d366, #1faa52);
    color: white;
    animation-delay: 1s;
}

@keyframes floatBounce {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Hide on mobile */
@media (max-width: 768px) {
    .floating-social-buttons {
        display: none;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Container */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(20, 20, 20, 0.98) 0%,
            rgba(30, 10, 10, 0.98) 50%,
            rgba(10, 30, 10, 0.98) 100%);
    backdrop-filter: blur(20px);
    z-index: 1101;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu.active {
    right: 0;
}

/* Mobile Menu Header */
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 30, 30, 0.3));
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.mobile-menu-close:active {
    transform: rotate(90deg);
}

/* Mobile Menu Links */
.mobile-menu-links {
    list-style: none;
    padding: 20px 0;
}

.mobile-menu-links li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu-links a {
    display: block;
    padding: 16px 20px;
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-menu-links a:active {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-menu-links a.active {
    color: var(--primary-green);
    background: rgba(0, 255, 106, 0.05);
}

.mobile-menu-links a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-green);
}

/* Mobile Dropdown */
.mobile-menu-links .dropdown>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-links .dropdown-content {
    display: none;
    background: rgba(0, 0, 0, 0.3);
    padding: 0;
}

.mobile-menu-links .dropdown-content.show {
    display: block;
}

.mobile-menu-links .dropdown-content a {
    padding-left: 40px;
    font-size: 0.9rem;
    text-transform: none;
}

/* Mobile Menu Actions */
.mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-footer .date-filter-mobile,
.mobile-menu-footer .lang-switch-mobile {
    margin-bottom: 15px;
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    transition: 0.3s;
}

.mobile-menu-footer .date-filter-mobile:hover,
.mobile-menu-footer .lang-switch-mobile:hover {
    border-color: var(--primary-green);
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-footer .date-filter-mobile i {
    color: var(--primary-green);
    margin-right: 10px;
    font-size: 1.1rem;
}

.mobile-menu-footer .date-filter-mobile input,
.mobile-menu-footer .lang-switch-mobile select {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    padding: 12px 0;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
}

.mobile-menu-footer .lang-switch-mobile select option {
    background: #111;
    color: white;
}

.mobile-menu-footer .date-filter-mobile input::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
    opacity: 0.7;
}

.mobile-menu-footer .date-filter-mobile input::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    margin-left: auto;
    transition: transform 0.3s ease;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
}

.mobile-menu-btn:active {
    transform: scale(0.9);
}


/* Hero Showcase - New Slideshow Design */
.hero-showcase {
    display: block;
    margin-bottom: 60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: start;
}

/* Main Slideshow */
.hero-slideshow {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.slideshow-container {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    cursor: pointer;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

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

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7), transparent);
    z-index: 2;
}

.slide-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    color: #fff;
}

.slide-meta {
    font-size: 0.9rem;
    opacity: 0.9;
    color: var(--text-gray);
}

.slide-meta i {
    margin-right: 5px;
}

/* Category Badges */
.category-badge {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.category-badge-small {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-red);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.category-badge-card {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-red);
    color: white;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Slideshow Controls */
.slideshow-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 3;
    pointer-events: none;
}

.slide-arrow {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.slide-arrow:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.1);
}

/* Slideshow Dots */
.slideshow-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: 0.3s;
}

.dot-indicator.active {
    background: var(--primary-red);
    width: 30px;
    border-radius: 5px;
}

/* Side News Cards */
.hero-side-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-card {
    background: #0a0a0a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    cursor: pointer;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.side-card:hover {
    border-color: var(--primary-green);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 255, 106, 0.1);
}

.side-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.side-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.side-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.side-card-meta {
    font-size: 0.8rem;
    color: var(--text-gray);
    margin-top: 12px;
}

.side-card-meta i {
    margin-right: 5px;
}

.side-card {
    position: relative;
}



/* Feed Header */
.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
}

.feed-header h2 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary-red);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 2px;
    animation: pulse 2s infinite;
    padding: 5px 15px;
    border: 1px solid rgba(255, 30, 30, 0.3);
    border-radius: 20px;
    background: rgba(255, 30, 30, 0.1);
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-red);
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Masonry Grid Fixes */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    /* Wider cards */
    gap: 35px;
    margin-bottom: 80px;
}

.news-card {
    background: #0a0a0a;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    /* For anchor tag support */
    color: inherit;
    /* For anchor tag support */
    cursor: pointer;
}

.news-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 255, 106, 0.1);
}

.nc-thumb {
    height: 240px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.nc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s;
}

.news-card:hover .nc-thumb img {
    transform: scale(1.1);
}

.nc-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nc-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #fff;
    transition: 0.3s;
}

.news-card:hover .nc-title {
    color: var(--primary-green);
}

.nc-excerpt {
    font-size: 1rem;
    color: #888;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.nc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #555;
    text-transform: uppercase;
    font-weight: 700;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.time-badge {
    background: rgba(0, 255, 106, 0.1);
    color: var(--primary-green);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(0, 255, 106, 0.3);
}

.time-badge i {
    margin-right: 5px;
}

.time-badge.recent {
    background: rgba(255, 30, 30, 0.1);
    color: var(--primary-red);
    border-color: rgba(255, 30, 30, 0.3);
}

.nc-thumb {
    position: relative;
}


/* Single News View */
.single-news-view {
    padding: 40px 0;
}

.single-news-view.hidden {
    display: none;
}

.single-news-layout {
    display: block !important;
    max-width: 1200px;
    /* Centered readable width */
    margin: 0 auto;
}

.single-news-main {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 20px;
    padding: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.single-news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: fit-content;
    position: sticky;
    top: 140px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-red) rgba(255, 255, 255, 0.05);
}

.single-news-sidebar::-webkit-scrollbar {
    width: 6px;
}

.single-news-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.single-news-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-red);
    border-radius: 10px;
}

.single-news-sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

.sidebar-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-white);
    border-bottom: 2px solid var(--primary-red);
    padding-bottom: 10px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.sidebar-news-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(255, 255, 255, 0.02);
    padding: 0;
    /* Reset padding */
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    transition: 0.3s;
    overflow: hidden;
}

.sidebar-news-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-green);
}

.sidebar-news-img {
    width: 100%;
    height: 180px;
    /* Larger height */
    border-radius: 0;
    /* Remove inner radius as it fills top */
    object-fit: cover;
}

.sidebar-news-content {
    display: flex;
    flex-direction: column;
    padding: 0 20px 20px 20px;
}

.sidebar-news-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-news-date {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 5px;
}

@media (max-width: 900px) {
    .single-news-layout {
        grid-template-columns: 1fr;
    }

    .single-news-sidebar {
        margin-top: 30px;
    }
}

.single-news-header {
    margin-bottom: 30px;
}

.single-news-category {
    display: inline-block;
    background: var(--primary-red);
    color: white;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.single-news-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.5px;
}

.whatsapp-channel-container {
    margin: 15px 0 25px 0;
}

.whatsapp-channel-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-channel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: #20bd5a;
    color: #fff;
}

.whatsapp-channel-btn i {
    font-size: 1.2rem;
}

.single-news-meta {
    display: flex;
    align-items: center;
    gap: 35px;
    font-size: 1rem;
    color: var(--text-gray);
    padding: 15px 0;
}

.single-news-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-news-meta i {
    color: var(--primary-green);
    font-size: 1.1rem;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Facebook Follow Popup */
.fb-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.fb-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fb-popup-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.fb-popup-overlay.active .fb-popup-content {
    transform: translateY(0);
}

.fb-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.fb-popup-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.fb-popup-header {
    margin-bottom: 20px;
}

.fb-popup-header h3 {
    color: #1877F2;
    margin: 0 0 5px 0;
    font-size: 24px;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fb-popup-header p {
    color: #bbb;
    margin: 0;
    font-size: 14px;
}

.fb-popup-body {
    background: white;
    padding: 20px;
    /* Increased for better margins on left and right */
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center vertically */
}

.fb-popup-body iframe {
    display: block;
    margin: 0 auto;
    /* Extra centering for iframe */
}

.share-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-gray);
    margin-right: 5px;
}

.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-size: 1.15rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.share-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.share-btn.facebook:hover {
    background: #145dbf;
    transform: translateY(-3px);
}

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

.share-btn.twitter:hover {
    background: #1a8cd8;
    transform: translateY(-3px);
}

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

.share-btn.whatsapp:hover {
    background: #1faa52;
    transform: translateY(-3px);
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.linkedin:hover {
    background: #005885;
    transform: translateY(-3px);
}

.share-btn.telegram {
    background: #0088cc;
    color: white;
}

.share-btn.telegram:hover {
    background: #006699;
    transform: translateY(-3px);
}

.share-btn.copy {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-green);
    border: 1px solid var(--primary-green);
}

.share-btn.copy:hover {
    background: var(--primary-green);
    color: #000;
    transform: translateY(-3px);
}

/* Read News Button */
/* Read News Button Group */
.read-news-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

/* Base Button Style */
.read-news-btn {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.read-news-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.read-news-btn:active {
    transform: translateY(-1px);
}

/* 1. Read Button - Enhanced Pill Shape */
#readNewsBtn {
    width: auto;
    height: auto;
    padding: 12px 24px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--primary-red), #ff4444);
    color: white;
    font-weight: 600;
    gap: 10px;
}



#readNewsBtn i {
    pointer-events: none;
    /* Prevent click issues on icon */
}

/* Playing Animation State */
#readNewsBtn.playing {
    background: linear-gradient(135deg, #E91E63, #9C27B0);
    animation: bounce-pulse 1.5s infinite;
}

@keyframes bounce-pulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.7);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 15px rgba(233, 30, 99, 0);
    }
}

/* 2. Summary Button - Glassmorphic with Animated Border */
#shortenNewsBtn {
    padding: 14px 35px;
    min-width: 140px;
    /* Ensure it fits "SUMMARY" text */
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(243, 33, 33, 0.15), rgba(243, 100, 33, 0.15));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #f32121;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 10px rgba(243, 33, 33, 0.5);
}

/* Animated Gradient Border */
#shortenNewsBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(90deg,
            #f32121,
            #f32121,
            #d43c00,
            #f34121);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: border-flow 3s linear infinite;
    z-index: -1;
}

/* Shimmer Effect */
#shortenNewsBtn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 100%);
    animation: shimmer 2.5s infinite;
}

@keyframes border-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Hover State */
#shortenNewsBtn:hover {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.25), rgba(33, 203, 243, 0.25));
    color: #fff;
    text-shadow: 0 0 15px rgba(33, 203, 243, 0.8), 0 0 30px rgba(33, 203, 243, 0.4);
    transform: translateY(-3px) scale(1.02);
}

/* Active/Loading State */
#shortenNewsBtn.active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2), rgba(139, 195, 74, 0.2));
    color: #8BC34A;
    text-shadow: 0 0 10px rgba(139, 195, 74, 0.5);
    animation: pulse-glow 1.5s infinite;
}

#shortenNewsBtn.active::before {
    background: linear-gradient(90deg,
            #4CAF50,
            #8BC34A,
            #CDDC39,
            #4CAF50);
    background-size: 300% 300%;
    animation: border-flow 2s linear infinite;
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(139, 195, 74, 0.4);
    }

    50% {
        box-shadow: 0 0 30px rgba(139, 195, 74, 0.6), 0 0 40px rgba(139, 195, 74, 0.3);
    }
}

/* Content Container Animation during Summarization */
.single-news-content.summarizing {
    animation: content-dissolve 0.8s ease-out forwards;
}

.single-news-content.summary-appear {
    animation: summary-materialize 1s ease-out forwards;
}

@keyframes content-dissolve {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }

    50% {
        opacity: 0.3;
        transform: translateY(-20px) scale(0.98);
        filter: blur(5px);
    }

    100% {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
        filter: blur(10px);
    }
}

@keyframes summary-materialize {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
        filter: blur(10px);
    }

    50% {
        opacity: 0.5;
        transform: translateY(20px) scale(0.95);
        filter: blur(5px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(233, 30, 99, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(233, 30, 99, 0);
    }
}

.single-news-image {
    margin: 35px 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.single-news-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.single-news-image:hover img {
    transform: scale(1.02);
}

.single-news-content {
    font-size: 1.15rem;
    line-height: 1.9;
    color: #e5e5e5;
    margin-bottom: 40px;
    position: relative;
    transition: max-height 0.5s ease;
}

.single-news-content p {
    margin-bottom: 20px;
}

.single-news-content h1,
.single-news-content h2,
.single-news-content h3 {
    margin: 30px 0 15px;
    color: #fff;
}

.single-news-content a {
    color: var(--primary-green);
    text-decoration: underline;
}

.single-news-content a:hover {
    color: var(--primary-red);
}

.single-news-content.collapsed {
    max-height: 650px;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.read-more-container {
    text-align: center;
    margin-top: -20px;
    position: relative;
    z-index: 10;
    margin-bottom: 30px;
}

.read-more-btn {
    background: var(--primary-green);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.read-more-btn:hover {
    background: #00994d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 136, 0.3);
}

.single-news-content p {
    margin-bottom: 20px;
}

.single-news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.youtube-embed {
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    width: 100%;
}

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

.single-news-author-card {
    display: flex;
    align-items: center;
    gap: 25px;
    background: linear-gradient(135deg, rgba(0, 255, 106, 0.08) 0%, rgba(0, 255, 106, 0.03) 100%);
    border: 1px solid rgba(0, 255, 106, 0.25);
    border-radius: 20px;
    padding: 30px;
    margin-top: 40px;
}

.single-news-author-card i {
    font-size: 4rem;
    color: var(--primary-green);
    background: rgba(0, 255, 106, 0.1);
    padding: 20px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-label {
    font-size: 0.9rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.author-name-large {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

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

.recommendations-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
}

.recommendations-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #fff;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.recommendation-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.3s;
    text-decoration: none;
    /* Anchor Reset */
    color: inherit;
    /* Anchor Reset */
    display: block;
    /* Ensure it behaves like a box */
}

.recommendation-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 106, 0.1);
}

.recommendation-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.rec-content {
    padding: 15px;
}

.rec-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-date {
    font-size: 0.75rem;
    color: var(--text-gray);
}


/* Awards Section */
.hidden-section {
    display: none;
    animation: fadeIn 0.6s ease;
    padding: 60px 0;
}

/* Footer */
/* Footer Main */
.modern-footer {
    background: #000;
    border-top: 1px solid #111;
    padding: 20px 0 20px;
    text-align: center;
    position: relative;
    z-index: 10;
}

/* Footer Copyright & Credits (Consolidated) */
.copyright-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 50px;
}

.copyright-text {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.8;
    text-align: center !important;
    margin: 0 auto;
    width: 100%;
    display: block;
}

.developer-credit {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 106, 0.2);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 20px rgba(0, 255, 106, 0.1);
    z-index: 10;
}

.developer-credit::before {
    content: '</>';
    color: #00ff66;
    font-family: monospace;
    font-weight: bold;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgba(0, 255, 106, 0.5);
}

.developer-credit span {
    font-weight: 800;
    background: linear-gradient(90deg, #fff, #bbb);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.developer-credit:hover {
    background: rgba(0, 255, 106, 0.08);
    border-color: #00ff66;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 255, 106, 0.25);
}

.developer-credit:hover::before {
    text-shadow: 0 0 15px rgba(0, 255, 106, 0.8);
}

.developer-credit:hover span {
    background: linear-gradient(90deg, #00ff66, #00ccff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 900px) {
    .copyright-container {
        flex-direction: column;
        justify-content: center;
        gap: 20px;
        padding: 25px 20px;
    }

    .developer-credit {
        position: relative;
        right: auto;
        width: auto;
    }

    .copyright-text {
        order: 1;
        font-size: 0.8rem;
    }

    .developer-credit {
        order: 2;
    }
}

/* Responsive */
/* Responsive Styles */
/* ========================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ======================================== */

/* Tablet Landscape & Small Laptops (1024px and below) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    .hero-showcase {
        margin-bottom: 40px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
    }

    .slideshow-container {
        height: 500px;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .hero-side-cards {
        flex-direction: row;
        gap: 15px;
    }

    .side-card {
        flex: 1;
    }

    .side-card-img {
        height: 180px;
    }

    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }

    /* .single-news-layout was here, removed to inherit block display */

    .recommendations-sidebar {
        order: 2;
    }
}

/* Tablets & Mobile Devices (768px and below) */
@media (max-width: 768px) {

    /* Hide desktop navigation, show mobile menu */
    .nav-links {
        display: none;
    }

    .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-container {
        padding: 0 15px;
        gap: 15px;
    }

    .main-logo {
        height: 35px;
    }

    main#app {
        margin-top: 100px;
        padding-top: 15px;
    }

    /* Hero Section Adjustments */
    .hero-showcase {
        margin-bottom: 30px;
    }

    .slideshow-container {
        height: 400px;
    }

    .slide-title {
        font-size: 1.5rem;
        padding: 0 20px;
    }

    .slide-overlay {
        padding: 20px;
    }

    .hero-side-cards {
        flex-direction: column;
    }

    .side-card-img {
        height: 160px;
    }

    .side-card-title {
        font-size: 1rem;
    }

    /* News Grid - Single Column */
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-card {
        max-width: 100%;
    }

    .nc-thumb {
        height: 220px;
    }

    .nc-title {
        font-size: 1.3rem;
    }

    /* Feed Header */
    .feed-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .feed-header h2 {
        font-size: 1.5rem;
    }

    /* Single News View */
    .single-news-layout {
        grid-template-columns: 1fr;
        max-width: 1500px;
    }

    .single-news-main {
        padding: 25px;
    }

    .single-news-title {
        font-size: 2.2rem;
    }

    .share-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .share-btn {
        min-width: 44px;
        min-height: 44px;
        font-size: 1.2rem;
    }

    /* Footer */
    .modern-footer {
        padding: 60px 0 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .socials {
        justify-content: center;
    }

    /* About Section */
    .about-hero {
        padding: 50px 0;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-subtitle {
        font-size: 1.2rem;
    }

    .about-card {
        padding: 25px;
    }

    /* Ensure all touch targets are minimum 44x44px */
    button,
    .float-btn,
    .share-btn,
    .slide-arrow {
        min-width: 44px;
        min-height: 44px;
    }
}

/* Small Mobile Devices (600px and below) */
@media (max-width: 600px) {
    .slideshow-container {
        height: 350px;
    }

    .slide-title {
        font-size: 1.3rem;
    }

    .category-badge {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .nc-title {
        font-size: 1.2rem;
    }

    .nc-excerpt {
        font-size: 0.95rem;
        -webkit-line-clamp: 2;
    }

    .feed-header h2 {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }

    .live-indicator {
        font-size: 0.8rem;
        padding: 4px 12px;
    }

    .single-news-main {
        padding: 20px;
    }

    .single-news-title {
        font-size: 1.6rem;
    }

    .ambient-glow {
        width: 400px;
        height: 400px;
    }
}

/* Extra Small Mobile Devices (480px and below) */
@media (max-width: 480px) {
    .main-logo {
        height: 30px;
    }

    .glass-nav {
        padding: 12px 0;
    }

    .slideshow-container {
        height: 300px;
    }

    .slide-title {
        font-size: 1.1rem;
        line-height: 1.3;
    }

    .slide-meta {
        font-size: 0.8rem;
    }

    .slide-overlay {
        padding: 15px;
    }

    .hero-side-cards {
        gap: 15px;
    }

    .side-card-img {
        height: 140px;
    }

    .side-card-title {
        font-size: 0.95rem;
    }

    .nc-thumb {
        height: 200px;
    }

    .nc-content {
        padding: 20px;
    }

    .nc-title {
        font-size: 1.1rem;
    }

    .feed-header h2 {
        font-size: 1.2rem;
    }

    .single-news-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .share-btn {
        width: 44px;
        height: 44px;
    }

    .container {
        padding: 0 12px;
    }

    main#app {
        margin-top: 90px;
    }

    .modern-footer {
        padding: 40px 0 20px;
    }
}

/* Very Small Mobile Devices (375px and below) */
@media (max-width: 375px) {
    .slideshow-container {
        height: 280px;
    }

    .slide-title {
        font-size: 1rem;
    }

    .nc-title {
        font-size: 1rem;
    }

    .feed-header h2 {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .single-news-title {
        font-size: 1.3rem;
    }

    .side-card-img {
        height: 120px;
    }

    .container {
        padding: 0 10px;
    }
}




* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Ambient Glow Effects */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.red-glow {
    top: -100px;
    left: -100px;
    background: var(--primary-red);
}

.green-glow {
    bottom: -100px;
    right: -100px;
    background: var(--primary-green);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* General Layout Fixes */
/* --- Unified Layout Fixes --- */
main#app {
    margin-bottom: 100px;
    min-height: 80vh;
    display: block;
}

.news-detail-wrapper {}

.glass-nav.nav-shifted {
    transition: top 0.3s ease;
}

body[style*="top"],
body.translated-ltr,
body.translated-rtl {}






/* Single Hero Styles */
.hero-main {
    width: 100%;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #111;
    transition: transform 0.3s ease;
}

.hero-main:hover {
    transform: translateY(-5px);
}

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

.hero-main:hover .hero-img,

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.6), transparent);
    z-index: 2;
    pointer-events: none;
}

.badge {
    background: var(--primary-red);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: inline-block;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}


.hero-meta {
    font-size: 0.9rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Feed Header */
.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
    margin-top: 20px;
}

.feed-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-red);
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

.dot {
    width: 10px;
    height: 10px;
    background: var(--primary-red);
    border-radius: 50%;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Masonry Grid Fixes */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    clear: both;
    /* Ensure no overlapping float issues */
}

.news-card {
    background: #111;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #222;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Equal height cards */
}

.news-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.nc-thumb {
    height: 220px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.nc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.news-card:hover .nc-thumb img {
    transform: scale(1.1);
}

.nc-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.nc-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: #fff;
}

.nc-excerpt {
    font-size: 0.95rem;
    color: #999;
    margin-bottom: 20px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.nc-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #222;
}

/* Awards Section */
.hidden-section {
    display: none;
    animation: fadeIn 0.5s ease;
    padding: 40px 0;
}

.awards-hero {
    text-align: center;
    padding: 60px 0;
}

.glow-icon {
    font-size: 5rem;
    color: #ffd700;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.4));
}

.awards-form-container {
    max-width: 650px;
    margin: 0 auto 60px;
    background: var(--glass-bg);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(30px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    outline: none;
    transition: 0.3s;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-green);
    background: rgba(0, 0, 0, 0.8);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-red), #990000);
    border: none;
    color: white;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    font-size: 1rem;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(229, 9, 20, 0.4);
}

/* Footer */
.modern-footer {
    background: #020202;
    border-top: 1px solid #222;
    padding: 80px 0 30px;
    margin-top: 0;
    /* Reset */
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-content h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 15px;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.socials {
    margin: 40px 0;
}

.socials a {
    color: var(--text-gray);
    font-size: 1.8rem;
    margin: 0 20px;
    transition: 0.3s;
    display: inline-block;
}

.socials a:hover {
    color: var(--primary-red);
    transform: scale(1.2) rotate(5deg);
}

.copyright p {
    color: #444;
    font-size: 0.9rem;
}

/* Response Media Queries */
@media (max-width: 900px) {
    .hero-showcase {
        grid-template-columns: 1fr;
        height: auto;
    }

    .hero-main {
        height: 400px;
    }

}

@media (max-width: 600px) {
    .hero-main {
        height: 250px;
    }
}

/* --- Search Bar Fixes --- */
.search-bar-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 50px !important;
    padding: 5px 15px;
    margin-right: 20px;
    width: 250px;
    transition: 0.3s;
}

.search-bar-container:focus-within {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--primary-green) !important;
    width: 300px;
}

.search-bar-container input {
    background: transparent !important;
    border: none !important;
    color: white !important;
    font-size: 0.9rem;
    padding: 8px;
    width: 100%;
    outline: none;
}

.search-bar-container button {
    background: transparent !important;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 5px;
    cursor: pointer;
}

.search-bar-container button:hover {
    color: var(--primary-green);
    transform: scale(1.1);
}

/* --- Improved Pagination --- */
.pagination-controls {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 60px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 45px;
    height: 45px;
    padding: 0 15px;
    border-radius: 12px;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.page-btn:hover:not(.disabled) {
    background: var(--primary-green);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 255, 106, 0.2);
    border-color: var(--primary-green);
}

.page-btn.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 10px 20px rgba(255, 30, 30, 0.3);
}

.page-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-btn.prev-next {
    padding: 0 20px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* ========================================
   NEWS DETAIL PAGE - PHASE 6 REDESIGN
======================================== */

.news-detail-wrapper {
    padding-top: 150px !important;
}

.loading-state {
    text-align: center;
    padding: 150px 20px;
    color: var(--primary-green);
}

.loading-state i {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
}

.loading-state p {
    font-size: 1.1rem;
    color: #999;
}

.news-detail-grid {
    display: block !important;
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeIn 0.6s ease;
}

/* ===== MAIN ARTICLE COLUMN ===== */
.article-main {
    max-width: 900px;
}

.article-header {
    margin-bottom: 40px;
}

.article-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 30px;
    margin-top: 20px;
    letter-spacing: -0.02em;
}

/* Author Meta Card */
.author-meta-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-green));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #000;
    flex-shrink: 0;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.author-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
}

.article-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #999;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.article-date i {
    color: var(--primary-red);
}

/* YouTube Embed */
.yt-embed-container {
    margin-bottom: 50px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.yt-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.yt-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hero Image Container - FIXED SIZING */
.article-hero-container {
    width: 100%;
    max-height: 600px;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 50px;
    background: #0a0a0a;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.article-hero-img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

/* Article Content - ENHANCED TYPOGRAPHY */
.article-content {
    font-size: 1.35rem;
    line-height: 2.0;
    color: #e8e8e8;
    font-weight: 400;
}

.article-content p {
    margin-bottom: 30px;
}

.article-content h2,
.article-content h3 {
    color: #fff;
    margin-top: 50px;
    margin-bottom: 25px;
    font-weight: 700;
}

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

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

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 40px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.article-content a {
    color: var(--primary-green);
    text-decoration: underline;
    transition: color 0.3s;
}

.article-content a:hover {
    color: var(--primary-red);
}

.article-content ul,
.article-content ol {
    margin: 25px 0;
    padding-left: 30px;
}

.article-content li {
    margin-bottom: 12px;
}

/* ===== SIDEBAR ===== */
.article-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
}

.sidebar-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-title i {
    color: var(--primary-green);
    font-size: 1.2rem;
}

/* Related News Grid - CARD DESIGN */
.recommendations-bottom {
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.recommendations-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--primary-green);
}

.recommendations-list.bottom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.related-news-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.related-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    overflow: hidden;
}

.related-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-green);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(0, 255, 106, 0.1);
}

.related-card-img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    overflow: hidden;
    background: #0a0a0a;
    flex-shrink: 0;
    position: relative;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 2rem;
}

.related-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.related-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.related-card-date {
    font-size: 0.8rem;
    color: var(--primary-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.no-related {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-size: 0.95rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .news-detail-grid {
        grid-template-columns: 1fr 320px;
        gap: 40px;
    }

    .article-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 1024px) {
    .news-detail-grid {
        display: block !important;
        gap: 60px;
    }

    .sidebar-sticky {
        position: static;
    }

    .article-title {
        font-size: 2.2rem;
    }

    .article-content {
        font-size: 1.25rem;
        line-height: 1.9;
    }
}

@media (max-width: 768px) {
    .news-detail-wrapper {
        padding-top: 150px !important;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .author-meta-card {
        flex-wrap: wrap;
    }

    .article-date {
        padding-left: 0;
        border-left: none;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .article-content {
        font-size: 1.15rem;
        line-height: 1.8;
    }

    .related-card-img {
        width: 80px;
        height: 80px;
    }
}


/* --- Google Translate Fixes --- */

/* Google Translate Compatibility */
.nav-shifted {
    top: 60px !important;
}

/* Hide the top banner */
.goog-te-banner-frame.skiptranslate {
    display: none !important;
}

/* Restore body top position */
body {
    top: 0px !important;
}

/* Hide the widget itself if requested, but user wants it 'not appear in top', usually implies the banner. */
/* If they want it hidden completely but functional, we can keep the widget hidden. */
#google_translate_element {
    /* display: none; */
    /* Keep it potentially visible in footer if they want to verify, or hide if completely automated */
}

/* Hide tooltips */
.goog-tooltip {
    display: none !important;
}

.goog-te-balloon-frame {
    display: none !important;
}

/* --- Author Data Extensions --- */
.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-footer {
    margin-top: 60px;
    padding-top: 40px;
}

.bio-divider {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, var(--primary-red), var(--primary-green), transparent);
    margin-bottom: 40px;
    opacity: 0.3;
}

.bio-content {
    display: flex;
    gap: 30px;
    background: rgba(255, 255, 255, 0.02);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.bio-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #111;
    border: 2px solid var(--primary-green);
}

.bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-text h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
}

.bio-text p {
    font-size: 1rem;
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 600px) {
    .bio-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
}

/* --- Modern YouTube Video Container --- */
.yt-video-modern-wrapper {
    margin-top: 60px;
    margin-bottom: 60px;
    animation: fadeInUp 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.video-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-section-header i {
    color: #ff0000;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.4));
}

.yt-wrapper.modern-glow {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.yt-wrapper.modern-glow:hover {
    transform: scale(1.01);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 30, 30, 0.1);
    border-color: rgba(255, 30, 30, 0.2);
}

.yt-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Entry Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Dropdown Navbar Styling --- */
.nav-links .dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
    padding-bottom: 30px;
    /* Increased padding to bridge gap to dropdown */
    position: relative;
    z-index: 10002;
}

/* Invisible bridge to prevent dropdown from closing when moving mouse */
.dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 40px;
    /* Bridge space between link and fixed dropdown */
    background: transparent;
    z-index: 10000;
}

.dropdown-content {
    display: none;
    position: fixed;
    /* Changed to fixed for better positioning control */
    top: 70px;
    /* Below navbar */
    background: linear-gradient(135deg,
            rgba(20, 20, 20, 0.98) 0%,
            rgba(30, 10, 10, 0.98) 50%,
            rgba(20, 20, 20, 0.98) 100%);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    min-width: 220px;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    z-index: 99999;
    overflow: hidden;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    color: var(--text-gray);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-transform: none;
    font-size: 0.95rem;
    transition: 0.2s;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary-green);
    padding-left: 25px;
}

/* Ensure Dropdown stays open on mobile or adjustments */
@media (max-width: 900px) {
    .dropdown-content {
        position: static;
        background: transparent;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }
}

/* ========================================
   ABOUT PAGE STYLES
   ======================================== */

/* About Section */
.about-section {
    padding: 40px 0 80px;
}

.about-hero {
    background: linear-gradient(135deg, rgba(255, 30, 30, 0.1) 0%, rgba(0, 255, 106, 0.1) 100%);
    padding: 80px 0;
    margin-bottom: 60px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 30, 30, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.about-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-green));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.about-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    font-weight: 300;
    position: relative;
    z-index: 1;
}

/* About Cards */
.about-card {
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 40px rgba(0, 255, 106, 0.1);
}

.about-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-green));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-bottom: 25px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.about-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: white;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 15px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-red), var(--primary-green));
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 30px;
}

.timeline-dot {
    position: absolute;
    left: -43px;
    top: 5px;
    width: 15px;
    height: 15px;
    background: var(--primary-green);
    border-radius: 50%;
    border: 3px solid var(--bg-dark);
    box-shadow: 0 0 20px var(--primary-green);
    animation: pulse 2s infinite;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.timeline-content p {
    font-size: 1rem;
    color: var(--text-gray);
}

/* Location Grid */
.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.location-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.location-item:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 106, 0.1);
}

.location-item i {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 15px;
    display: block;
}

.location-item h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

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

/* CEO Card */
.ceo-card {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
}

.ceo-image {
    width: 250px;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--primary-green);
    box-shadow: 0 10px 40px rgba(0, 255, 106, 0.2);
}

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

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

.ceo-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin-bottom: 5px;
}

.ceo-info h4 {
    font-size: 1.2rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.ceo-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-gray);
    line-height: 1.8;
    padding: 20px;
    border-left: 4px solid var(--primary-red);
    background: rgba(255, 30, 30, 0.05);
    border-radius: 10px;
    margin-bottom: 25px;
}

.ceo-stats {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 106, 0.1);
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 106, 0.2);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary-green);
}

.stat-item span {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

/* Team Grid */
.team-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
}

.team-member:hover {
    border-color: var(--primary-red);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 30, 30, 0.2);
}

.member-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-red);
    transition: all 0.3s ease;
}

.team-member:hover .member-image {
    border-color: var(--primary-green);
    transform: rotate(360deg);
}

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

.team-member h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.team-member p {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 15px;
}

.member-count {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-red), var(--primary-green));
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Values Grid */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.value-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.value-item:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 255, 106, 0.15);
}

.value-item i {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    display: block;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.value-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

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

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for About Page */
@media (max-width: 768px) {
    .about-title {
        font-size: 2.5rem;
    }

    .about-subtitle {
        font-size: 1.2rem;
    }

    .ceo-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ceo-image {
        margin: 0 auto;
    }

    .ceo-stats {
        justify-content: center;
    }

    .team-grid,
    .values-grid,
    .location-grid {
        grid-template-columns: 1fr;
    }
}

/* Facebook Embed Card */
.fb-embed-card iframe {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 900px) {
    .fb-embed-card {
        grid-row: auto !important;
        height: 500px !important;
    }
}

/* YouTube Embed Card */
.yt-embed-card iframe {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 900px) {
    .yt-embed-card {
        grid-row: auto !important;
        height: 400px !important;
    }
}

/* Ensure Embed Cards Center Content */
.fb-embed-card,
.yt-embed-card {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* YouTube Playlist Custom Styles */
.yt-video-item:hover {
    background-color: #f5f5f5 !important;
}

.loader-small {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #cc0000;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Dark Theme Playlist Hover */
.dark-theme-item:hover {
    background-color: #2a2a2a !important;
}

/* Custom Scrollbar for Playlist */
#yt-playlist-container::-webkit-scrollbar {
    width: 6px;
}

#yt-playlist-container::-webkit-scrollbar-track {
    background: #121212;
}

#yt-playlist-container::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

#yt-playlist-container::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

/* --- New Modern Styles for Static Pages --- */

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    /* JS will trigger this or we keep it simple */
    animation-fill-mode: forwards;
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

/* Static Page Structure */
.static-page-view {
    padding: 40px 0;
    min-height: 60vh;
}

.static-page-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 20px;
}

.static-page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-red);
    border-radius: 2px;
}

.static-page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.static-page-header .subtitle {
    color: var(--text-gray);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Modern Card Style */
.modern-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.modern-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), transparent);
    opacity: 0;
    transition: 0.4s;
}

.modern-card:hover::before {
    opacity: 1;
}

/* About Page */
.about-hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.about-logo-large img {
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 20px rgba(255, 30, 30, 0.4));
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin: 15px 0;
    color: var(--primary-green);
}

.card-icon {
    font-size: 2rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.about-footer {
    text-align: center;
    font-size: 1.1rem;
    padding: 40px;
    background: linear-gradient(45deg, rgba(20, 20, 20, 0.8), rgba(40, 20, 20, 0.8));
    border-radius: 20px;
    border: 1px solid rgba(255, 30, 30, 0.2);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    padding: 20px;
}

.member-img-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.team-card:hover .member-img-wrapper {
    border-color: var(--primary-red);
}

.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.team-card:hover .member-img {
    transform: scale(1.1);
    filter: grayscale(1);
}

.social-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transition: 0.3s;
}

.team-card:hover .social-overlay {
    opacity: 1;
}

.social-overlay a {
    color: white;
    font-size: 1.2rem;
    transition: 0.3s;
}

.social-overlay a:hover {
    color: var(--primary-red);
    transform: scale(1.2);
}

.member-info h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.role {
    color: var(--primary-red);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Contact Page */
.contact-hero {
    text-align: center;
    margin-bottom: 50px;
    font-size: 1.2rem;
    color: var(--text-gray);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.contact-card {
    text-decoration: none;
    color: white;
    text-align: center;
    display: block;
}

.contact-card:hover p {
    color: var(--primary-green);
}

/* Privacy Policy */
.privacy-content {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-content h3 {
    color: var(--primary-red);
    margin: 30px 0 15px;
    font-size: 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.privacy-content h3:first-child {
    margin-top: 0;
}

.privacy-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: var(--text-gray);
}

/* About Gallery */
.gallery-title {
    text-align: center;
    font-size: 2rem;
    margin: 40px 0 30px;
    color: var(--text-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 0 20px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    height: 200px;
    position: relative;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    height: 415px;
    /* Adjust based on gap */
}

/* Read News Button */
/* Read News Button */
.read-news-btn {
    background: linear-gradient(135deg, var(--primary-red), #ff4444);
    color: white;
    border: none;
    width: auto;
    height: auto;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 30, 30, 0.3);
    gap: 10px;
}

.read-news-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 30, 30, 0.5);
    background: linear-gradient(135deg, #ff4444, var(--primary-red));
}

.read-news-btn i {
    font-size: 1.1rem;
    animation: none;
}

.read-news-btn.playing {
    background: linear-gradient(135deg, var(--primary-green), #00ff6a);
    box-shadow: 0 4px 15px rgba(0, 255, 106, 0.3);
}

.read-news-btn.playing i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

/* Mobile App Promo Popup - Fullscreen Android Style */


/* =========================================
   NOTIFICATION TOAST
   ========================================= */
.notification-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary-green);
    box-shadow: 0 10px 40px rgba(0, 255, 106, 0.2);
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.notification-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    visibility: visible;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.toast-title {
    font-weight: 700;
    color: white;
    font-size: 0.9rem;
}

.toast-msg {
    color: var(--text-gray);
    font-size: 0.75rem;
}

.bounce-icon {
    color: var(--primary-green);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

.toast-refresh-btn {
    background: var(--primary-green);
    border: none;
    color: black;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.toast-refresh-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 255, 106, 0.4);
}

.toast-close-btn {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 5px;
}

.toast-close-btn:hover {
    color: white;
}

/* =========================================
   FESTIVE THEMES
   ========================================= */

/* --- Christmas Theme --- */
.theme-christmas {
    --primary-red: #ff0f0f;
    --primary-green: #0f9b0f;
    /* darker festive green */
}

/* Snow Effect */
#snow-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    top: -10px;
    color: #fff;
    font-size: 1em;
    font-family: Arial, sans-serif;
    text-shadow: 0 0 5px #000;
    user-select: none;
    z-index: 9999;
    pointer-events: none;
    cursor: default;
    animation-name: snowfall;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
    display: block;
}

@keyframes snowfall {
    0% {
        transform: translateY(-10px) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.2;
    }
}

/* Santa Decoration */
.christmas-santa {
    position: fixed;
    bottom: -50px;
    left: -10px;
    width: 200px;
    height: 200px;
    background-image: url('https://cdn-icons-png.flaticon.com/512/375/375354.png');
    /* Simple placeholder icon */
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 100;
    opacity: 0.8;
    pointer-events: none;
    /* transition: transform 0.5s; */
    /* animation: peekSanta 10s infinite; */
}

@media (max-width: 768px) {
    .notification-toast {
        width: 90%;
        bottom: 80px;
        /* Above mobile nav */
    }
}

/* Facebook Follow Popup */
.fb-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.fb-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.fb-popup-content {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 15px;
    padding: 25px;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.fb-popup-overlay.active .fb-popup-content {
    transform: translateY(0);
}

.fb-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.fb-popup-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.fb-popup-header {
    margin-bottom: 20px;
}

.fb-popup-header h3 {
    color: #1877F2;
    margin: 0 0 5px 0;
    font-size: 24px;
    font-family: 'Outfit', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.fb-popup-header p {
    color: #bbb;
    margin: 0;
    font-size: 14px;
}

.fb-popup-body {
    background: white;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
}

/* Recommendations & Recent News Card Fixes */
.recommendation-card {
    position: relative;
    /* CRITICAL: Ensures absolute badges stay inside */
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.recommendation-card:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.recommendation-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.rec-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rec-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rec-date {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Single News Navigation - Home Button */
.single-news-nav {
    margin: 20px 0;
}

.single-news-nav .home-btn {
    background: var(--primary-green);
    /* Fallback */
    background: linear-gradient(135deg, var(--primary-green) 0%, #00b359 100%);
    color: #ffffff !important;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 106, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.single-news-nav .home-btn:hover {
    background: linear-gradient(135deg, #00b359 0%, var(--primary-green) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 106, 0.4);
}

.single-news-nav .home-btn i {
    font-size: 1.1rem;
}

/* =========================================
   Moved Inline Styles from index.php
   ========================================= */

/* Visually Hidden (Reader Only) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Universal Slidable Navbar: Active only when needed */
/* Universal Slidable Navbar: Active only when needed */
/* Ensure overflow is visible on Desktop so dropdowns work */
.glass-nav {
    overflow: visible;
}

/* Enable scrolling only on smaller screens */
@media (max-width: 1440px) {
    .glass-nav {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .glass-nav::-webkit-scrollbar {
        display: none;
    }
}

/* Ensure container expands to fit content on smaller screens, triggering scroll */
@media (max-width: 1440px) {
    .nav-container {
        width: max-content !important;
        /* Force width to fit content */
        min-width: 100%;
        padding-right: 30px;
        /* Right padding for visual comfort */
    }
}

/* Mobile App Popup Styles */
.app-promo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 99999;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    backdrop-filter: blur(10px);
}

.app-promo-content {
    background: #1a1a1a;
    padding: 30px;
    border-radius: 20px;
    width: 85%;
    max-width: 350px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: popupSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.app-logo {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.app-promo-content h2 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.app-promo-content p {
    color: #aaa;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.install-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF0000 0%, #cc0000 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    transition: transform 0.2s;
    box-shadow: 0 4px 12px rgba(255, 0, 0, 0.3);
}

.install-btn:active {
    transform: scale(0.98);
}

.close-popup-btn {
    background: none;
    border: none;
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 8px;
    transition: color 0.2s;
}

.close-popup-btn:active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* =========================================
   Footer Updates (Copyright & Developer Credit)
   ========================================= */
.copyright-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright-text {
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.9rem;
    opacity: 0.9;
    text-align: left;
    margin: 0;
}

.developer-credit {
    font-size: 0.9rem;
    color: #888;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.developer-credit span {
    font-weight: 900;
    background: linear-gradient(45deg, #00ff6a, #00d4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.developer-credit:hover {
    transform: translateX(-5px);
}

.developer-credit:hover span {
    text-shadow: 0 0 15px rgba(0, 255, 106, 0.6);
    filter: brightness(1.2);
}

@media (max-width: 768px) {
    .copyright-container {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .copyright-text {
        text-align: center;
        font-size: 0.8rem;
    }
}

/* ========================================
   Festival Effects Animations
   ======================================== */

/* Fireworks Effect */
#fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
}

.firework {
    position: absolute;
    width: 4px;
    height: 4px;
    background: gold;
    border-radius: 50%;
    box-shadow: 0 0 20px 10px rgba(255, 215, 0, 0.8);
    animation: explode 1s ease-out forwards;
}

@keyframes explode {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(30);
        opacity: 0;
    }
}

/* Confetti Effect */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: confettiFall linear infinite;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh) rotateZ(720deg);
        opacity: 0.3;
    }
}

/* Flowers Effect */
#flowers-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
}

.falling-flower {
    position: absolute;
    top: -50px;
    animation: flowerFall linear infinite;
}

@keyframes flowerFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.5;
    }
}

/* Hearts Effect */
#hearts-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
}

.floating-heart {
    position: absolute;
    bottom: -50px;
    animation: heartFloat linear infinite;
}

@keyframes heartFloat {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-110vh) scale(1.5);
        opacity: 0;
    }
}

/* Eid Stars Twinkle */
.eid-star {
    position: absolute;
    pointer-events: none;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* --- Sub Images Carousel (Public View) --- */
.sub-images-container {
    position: relative;
    margin: 30px 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    /* Removed aspect-ratio to allow natural image height */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    background: #000;
    /* Dark background better for variable aspect ratios */
}

.sub-images-track {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 0;
    padding: 0;
    width: 100%;
    height: auto;
    /* Allow track to adapt to image height */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    align-items: center;
}

.sub-images-track::-webkit-scrollbar {
    display: none;
}

.sub-img-card {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    /* Natural height */
    border-radius: 0;
    overflow: hidden;
    cursor: pointer;
    box-shadow: none;
    border: none;
    position: relative;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hover effect on image instead of card */
.sub-img-card img {
    width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    max-height: 80vh;
    /* Prevent excessive height on large screens */
    object-fit: contain;
    transition: transform 0.5s ease;
}

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

.sub-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    opacity: 1;
    /* Always visible based on user request */
}

.sub-images-container:hover .sub-nav-btn {
    opacity: 1;
}

.sub-nav-btn:hover {
    background: var(--primary-green);
    color: #000;
    transform: translateY(-50%) scale(1.1);
    border-color: var(--primary-green);
}

.sub-nav-btn.prev {
    left: 15px;
}

.sub-nav-btn.next {
    right: 15px;
}

@media (max-width: 768px) {
    .sub-nav-btn {
        opacity: 1;
    }

    .sub-images-container {
        margin: 20px 0;
    }
}

/* Bounce animation for Pongal pot */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   ENHANCED FESTIVAL EFFECTS - ADVANCED ANIMATIONS
   ======================================== */

/* Firework Particles (New Year) */
.firework-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    animation: fireworkExplode 1.5s ease-out forwards;
    box-shadow: 0 0 10px currentColor;
}

@keyframes fireworkExplode {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(var(--tx), var(--ty)) scale(0);
        opacity: 0;
    }
}

/* Confetti Shapes */
.confetti.square {
    width: 10px;
    height: 10px;
}

.confetti.circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.confetti.triangle {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 10px solid;
    border-bottom-color: inherit;
    background: transparent !important;
}

/* SVG Flowers */
.svg-flower {
    position: absolute;
    top: -50px;
    animation: flowerFall linear infinite;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes flowerFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0.3;
    }
}

/* SVG Hearts */
.svg-heart {
    position: absolute;
    bottom: -50px;
    animation: heartFloat linear infinite;
    filter: drop-shadow(0 2px 6px rgba(255, 20, 147, 0.4));
}

@keyframes heartFloat {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-110vh) scale(1.3) rotate(15deg);
        opacity: 0;
    }
}

/* ========================================
   PONGAL POT ANIMATION
   ======================================== */
.pongal-pot {
    position: fixed;
    bottom: 50px;
    right: 50px;
    z-index: 9998;
}

.pongal-pot-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.pot-body {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 100px;
    background: linear-gradient(180deg, #8B4513 0%, #654321 100%);
    border-radius: 0 0 50% 50%;
    border: 4px solid #5C3317;
    box-shadow: inset 0 -20px 40px rgba(0, 0, 0, 0.3);
    overflow: visible;
}

.rice-overflow {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 30px;
    background: radial-gradient(ellipse, #fff 0%, #f5deb3 100%);
    border-radius: 50%;
    animation: overflow 2s ease-in-out infinite;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.4);
}

.rice-overflow.delay-1 {
    animation-delay: 0.3s;
    left: 35%;
    width: 60px;
}

.rice-overflow.delay-2 {
    animation-delay: 0.6s;
    left: 65%;
    width: 50px;
}

@keyframes overflow {

    0%,
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateX(-50%) translateY(-10px) scale(1.1);
        opacity: 1;
    }
}

.bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.bubble {
    position: absolute;
    bottom: 10px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: bubble-rise 2s infinite;
}

.bubble:nth-child(1) {
    left: 30%;
    animation-delay: 0s;
}

.bubble:nth-child(2) {
    left: 45%;
    animation-delay: 0.4s;
}

.bubble:nth-child(3) {
    left: 55%;
    animation-delay: 0.8s;
}

.bubble:nth-child(4) {
    left: 65%;
    animation-delay: 1.2s;
}

.bubble:nth-child(5) {
    left: 75%;
    animation-delay: 1.6s;
}

@keyframes bubble-rise {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-80px) scale(1.5);
        opacity: 0;
    }
}

.fire {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
}

.flame {
    width: 30px;
    height: 40px;
    background: linear-gradient(180deg, #ff4500 0%, #ffa500 50%, #ffff00 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: flame-dance 0.5s ease-in-out infinite alternate;
    box-shadow: 0 0 20px #ff4500, 0 0 40px #ffa500;
}

.flame:nth-child(1) {
    animation-delay: 0s;
}

.flame:nth-child(2) {
    animation-delay: 0.15s;
    height: 45px;
}

.flame:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes flame-dance {
    0% {
        transform: scale(1, 1) translateY(0);
        border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    }

    100% {
        transform: scale(1.1, 0.9) translateY(-5px);
        border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    }
}

.sugarcane {
    position: absolute;
    width: 15px;
    height: 120px;
    background: linear-gradient(90deg, #90EE90 0%, #228B22 50%, #006400 100%);
    border-radius: 8px;
    bottom: 60px;
    box-shadow: inset -5px 0 10px rgba(0, 0, 0, 0.3);
}

.sugarcane.left {
    left: -30px;
    transform: rotate(-15deg);
}

.sugarcane.right {
    right: -30px;
    transform: rotate(15deg);
}

/* ========================================
   TAMIL/SINHALA NEW YEAR - OIL LAMPS
   ======================================== */
.newyear-deco {
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
}

.newyear-container {
    position: relative;
    width: 200px;
    height: 150px;
}

.oil-lamp {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    justify-content: center;
}

.lamp-flame {
    width: 20px;
    height: 30px;
    background: linear-gradient(180deg, #ff6347 0%, #ffd700 50%, #ffff00 100%);
    border-radius: 50% 50% 50% 50% / 70% 70% 30% 30%;
    animation: lamp-flicker 1s ease-in-out infinite;
    box-shadow: 0 0 30px #ffd700, 0 0 60px #ffa500;
    position: relative;
}

.lamp-flame::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 15px;
    background: #8B4513;
    border-radius: 50%;
}

.lamp-flame:nth-child(1) {
    animation-delay: 0s;
}

.lamp-flame:nth-child(2) {
    animation-delay: 0.3s;
}

.lamp-flame:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes lamp-flicker {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1) translateY(-3px);
        opacity: 0.9;
    }
}

.kolam-pattern {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #fff 2px, transparent 2px);
    background-size: 20px 20px;
    opacity: 0.6;
    animation: kolam-glow 3s ease-in-out infinite;
}

@keyframes kolam-glow {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 0.8;
    }
}

/* ========================================
   EID MUBARAK EFFECTS
   ======================================== */
.mosque-silhouette {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.8;
    animation: mosque-glow 3s ease-in-out infinite;
}

@keyframes mosque-glow {

    0%,
    100% {
        opacity: 0.6;
        filter: drop-shadow(0 0 20px #f39c12);
    }

    50% {
        opacity: 0.9;
        filter: drop-shadow(0 0 40px #f39c12);
    }
}

.crescent-glow {
    animation: crescent-shine 2s ease-in-out infinite;
}

@keyframes crescent-shine {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
        filter: drop-shadow(0 0 15px #f39c12);
    }
}

.eid-star-animated {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #ffd700;
    border-radius: 50%;
    box-shadow: 0 0 10px #ffd700, 0 0 20px #ffa500;
    animation: eid-star-twinkle 2s ease-in-out infinite;
}

@keyframes eid-star-twinkle {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 10px #ffd700, 0 0 20px #ffa500;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
        box-shadow: 0 0 20px #ffd700, 0 0 40px #ffa500;
    }
}

/* Mobile Responsiveness for Festival Effects */
@media (max-width: 768px) {
    .pongal-pot-container {
        width: 150px;
        height: 150px;
    }

    .pot-body {
        width: 90px;
        height: 75px;
    }

    .newyear-container {
        width: 150px;
        height: 100px;
    }

    .mosque-silhouette svg {
        width: 200px;
        height: 150px;
    }
}

/* ========================================
   SIMPLIFIED FESTIVAL EFFECTS (Snow Pattern)
   ======================================== */

/* Universal Festival Container */
#fireworks-container,
#confetti-container,
#flowers-container,
#hearts-container,
#pongal-container,
#newyear-container,
#eid-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* Firework Burst */
.firework-burst {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: fireworkBurst 1s ease-out forwards;
    opacity: 1;
}

@keyframes fireworkBurst {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(50);
        opacity: 0;
    }
}

/* Confetti Pieces */
.confetti-piece {
    position: absolute;
    top: -10px;
    user-select: none;
    pointer-events: none;
    animation: confettiFall linear infinite;
    text-shadow: 0 0 5px currentColor;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotateZ(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotateZ(720deg);
        opacity: 0.3;
    }
}

/* Flower Petals */
.flower-petal {
    position: absolute;
    top: -50px;
    user-select: none;
    pointer-events: none;
    animation: petalFall linear infinite;
    filter: drop-shadow(0 2px 4px rgba(255, 105, 180, 0.3));
}

@keyframes petalFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(360deg);
        opacity: 0.5;
    }
}

/* Floating Hearts */
.heart-float {
    position: absolute;
    bottom: -50px;
    user-select: none;
    pointer-events: none;
    animation: heartRise linear infinite;
    filter: drop-shadow(0 2px 6px rgba(255, 20, 147, 0.4));
}

@keyframes heartRise {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-110vh) scale(1.3);
        opacity: 0;
    }
}

/* Pongal Steam */
.pongal-steam {
    position: absolute;
    bottom: 100px;
    color: rgba(255, 255, 255, 0.7);
    user-select: none;
    pointer-events: none;
    animation: steamRise linear infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

@keyframes steamRise {
    0% {
        transform: translateY(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-110vh) scale(2);
        opacity: 0;
    }
}

/* New Year Sparkles */
.newyear-sparkle {
    position: absolute;
    top: -50px;
    user-select: none;
    pointer-events: none;
    animation: sparkleFall linear infinite;
    filter: drop-shadow(0 0 5px gold);
}

@keyframes sparkleFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: translateY(110vh) rotate(720deg);
        opacity: 0.4;
    }
}

/* Eid Celestial */
.eid-celestial {
    position: absolute;
    user-select: none;
    pointer-events: none;
    animation: twinkleStar linear infinite;
    filter: drop-shadow(0 0 8px gold);
}

@keyframes twinkleStar {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

/* ============================================
   SINGLE NEWS PAGE AD CONTAINERS
   Hidden until Google AdSense fills the ad slot
   ============================================ */

/* Ad Container Base - Hidden by default */
.single-news-ad-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    /* Allow AdSense to probe dimensions but hide content visually */
    min-height: 90px;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
}

/* When ad is loaded successfully, show the container */
.single-news-ad-container[data-ad-status="loaded"] {
    max-height: 400px;
    /* Generous height for various ad sizes */
    opacity: 1;
    visibility: visible;
}

/* Top Ad Container - Spacing */
.single-news-ad-top[data-ad-status="loaded"] {
    margin-bottom: 25px;
}

/* Bottom Ad Container - Spacing */
.single-news-ad-bottom[data-ad-status="loaded"] {
    margin-top: 25px;
}

/* Ensure AdSense ins element is properly visible */
.single-news-ad-container .adsbygoogle {
    display: block;
    width: 100%;
    min-height: 90px;
    /* Minimum height for ad detection */
}

/* Hide unfilled adsbygoogle elements (Google adds data-ad-status attribute) */
.single-news-ad-container ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}

/* Collapse container when ad is unfilled */
.single-news-ad-container:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
    max-height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    margin: 0 !important;
}

/* Mobile responsiveness for ads */
@media (max-width: 768px) {
    .single-news-ad-container[data-ad-status="loaded"] {
        max-height: 350px;
    }

    .single-news-ad-top[data-ad-status="loaded"] {
        margin-bottom: 20px;
    }

    .single-news-ad-bottom[data-ad-status="loaded"] {
        margin-top: 20px;
    }
}

/* ============================================
   BOTTOM AD SECTION (Below Single News Container)
   Only visible when single news is shown and ad loads
   ============================================ */

/* Hide by default - Only show when single news view is visible */
.single-news-bottom-ad-section {
    display: none;
    padding: 0;
    margin: 0;
}

/* Show when single news view is active (not hidden) */
.single-news-view:not(.hidden)~.single-news-bottom-ad-section {
    display: block;
}

/* Spacing for the after-content ad container */
.single-news-ad-after-content[data-ad-status="loaded"] {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Spacing for ad above recommendations */
.single-news-ad-above-recommendations[data-ad-status="loaded"] {
    margin-top: 30px;
    margin-bottom: 30px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .single-news-ad-after-content[data-ad-status="loaded"] {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .single-news-ad-above-recommendations[data-ad-status="loaded"] {
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

/* ============================================
   SIDEBAR ADS (Left & Right - Desktop Only)
   Fixed positioned vertical ads on screen edges
   ============================================ */

/* Sidebar Ad Base Styles - Fixed positioning */
.single-news-sidebar-ad {
    display: none;
    /* Hidden by default on all screens */
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    height: auto;
    max-height: 600px;
    z-index: 100;
    overflow: hidden;
}

/* Left sidebar - fixed to left edge */
.single-news-sidebar-left {
    left: 10px;
}

/* Right sidebar - fixed to right edge */
.single-news-sidebar-right {
    right: 10px;
}

/* Show sidebar ads only on very large screens (when there's enough space) */
@media (min-width: 1700px) {
    .single-news-sidebar-ad[data-ad-status="loaded"] {
        display: block;
    }
}

/* Sticky container for sidebar ads */
.sidebar-ad-sticky {
    width: 160px;
}

/* Sidebar ad ins element */
.single-news-sidebar-ad .adsbygoogle {
    display: block;
    width: 160px;
    min-height: 300px;
}

/* Hide unfilled sidebar ads */
.single-news-sidebar-ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
    display: none !important;
}

/* Adjust floating social buttons when right sidebar ad is visible */
@media (min-width: 1700px) {
    body:has(.single-news-sidebar-right[data-ad-status="loaded"]) .floating-social-buttons {
        right: 180px;
    }
}

/* Hide sidebar ads on smaller screens */
@media (max-width: 1699px) {
    .single-news-sidebar-ad {
        display: none !important;
    }
}

/* Hero Side Cards Fix */
.hero-side-cards a,
.side-card {
    text-decoration: none !important;
    color: inherit;
}