:root {
    --primary: #ff6b00;
    --secondary: #0066ff;
    --accent: #ffd700;
    --dark: #1a1a2e;
    --light: #ffffff;
    --bg: #ffffff;
    --card-bg: #ffffff;
    --text: #333333;
}

[data-theme="dark"] {
    --bg: #0f0f1e;
    --card-bg: #1a1a2e;
    --text: #e0e0e0;
    --light: #2a2a3e;
}

[data-theme="neon"] {
    --primary: #ff00ff;
    --secondary: #00ffff;
    --bg: #0a0a0f;
    --card-bg: #1a1a2e;
    --text: #e0e0e0;
}

[data-theme="nature"] {
    --primary: #2ecc71;
    --secondary: #27ae60;
    --bg: #f0f8f0;
    --card-bg: #ffffff;
    --text: #2c3e50;
}

[data-theme="sunset"] {
    --primary: #ff6b6b;
    --secondary: #ffa500;
    --bg: #fff5e6;
    --card-bg: #ffffff;
    --text: #2c3e50;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}

.top-bar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 10px 0;
    font-size: 14px;
    overflow: hidden;
}

.top-bar a {
    color: white;
    text-decoration: none;
    margin-left: 15px;
    transition: 0.3s;
}

.top-bar a:hover {
    transform: scale(1.2);
}

.main-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 800;
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: white !important;
    font-weight: 600;
    margin: 0 10px;
    transition: 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.theme-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.theme-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 3px solid white;
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.theme-btn:hover {
    transform: scale(1.2);
}

.theme-default {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.theme-dark {
    background: linear-gradient(135deg, #0f0f1e, #1a1a2e);
}

.theme-neon {
    background: linear-gradient(135deg, #ff00ff, #00ffff);
}

.theme-nature {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.theme-sunset {
    background: linear-gradient(135deg, #ff6b6b, #ffa500);
}

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-section h1 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    animation: fadeInUp 1s;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 22px;
    margin-bottom: 30px;
    animation: fadeInUp 1s 0.2s both;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-btn {
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 50px;
    margin: 10px;
    border: none;
    transition: 0.3s;
    animation: fadeInUp 1s 0.4s both;
    position: relative;
    z-index: 1;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.hero-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.stat-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 25px 35px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s;
}

.stat-box:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 40px;
    font-weight: 900;
    color: var(--accent);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.ticker {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 15px 0;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.ticker-content {
    display: flex;
    animation: scroll 30s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.ticker-item {
    white-space: nowrap;
    padding: 0 50px;
    color: white;
    font-weight: 600;
}

.category-card {
    background: var(--card-bg);
    border-radius: 25px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: 0.4s;
    margin-bottom: 30px;
    border: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
}

.category-card:hover::before {
    left: 100%;
}

.category-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.category-icon {
    font-size: 70px;
    margin-bottom: 20px;
    transition: 0.5s;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.category-card:hover .category-icon {
    transform: scale(1.3) rotate(360deg);
}

.category-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.badge-hot {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.update-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-left: 6px solid var(--primary);
    transition: 0.3s;
}

.update-card:hover {
    transform: translateX(15px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.badge-custom {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.update-title {
    font-size: 22px;
    font-weight: 700;
    margin: 15px 0;
    color: var(--text);
}

.read-more {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    color: white;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.read-more:hover {
    transform: translateX(10px) scale(1.05);
    color: white;
}

.sidebar-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.05);
}

.sidebar-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 4px solid var(--primary);
    color: var(--text);
}

.link-list {
    list-style: none;
    padding: 0;
}

.link-list li {
    padding: 15px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    margin-bottom: 12px;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
    transition: 0.3s;
}

.link-list li:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateX(15px) scale(1.02);
}

.link-list a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    display: flex;
    justify-content: space-between;
}

.link-list li:hover a {
    color: white;
}

footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 20px;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    display: block;
    margin-bottom: 12px;
    transition: 0.3s;
}

footer a:hover {
    color: white;
    padding-left: 10px;
}

.social-links a {
    display: inline-flex;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-8px) rotate(360deg);
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    z-index: 999;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

#backToTop:hover {
    transform: translateY(-10px) scale(1.1);
}

.disclaimer {
    background: linear-gradient(135deg, rgba(255, 243, 205, 0.8), rgba(255, 232, 161, 0.8));
    border: 4px solid #ffc107;
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
    font-weight: 600;
    color: #856404;
    box-shadow: 0 5px 20px rgba(255, 193, 7, 0.3);
}

[data-theme="dark"] .disclaimer,
[data-theme="neon"] .disclaimer {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), rgba(255, 152, 0, 0.2));
    border-color: #ffc107;
    color: #ffc107;
}

.search-box input {
    border-radius: 50px;
    padding: 18px 30px;
    border: 3px solid #ddd;
    font-size: 16px;
    transition: 0.3s;
    background: var(--card-bg);
    color: var(--text);
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    outline: none;
}

.search-box input::placeholder {
    color: var(--gray);
    opacity: 0.7;
}

.search-box button {
    border-radius: 50px;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    color: white;
    font-weight: 700;
    font-size: 16px;
    transition: 0.3s;
}

.search-box button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.section-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
    color: var(--text);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 3px;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 32px;
    }

    .theme-selector {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }
}

/* Footer Bottom Styles */
.hover-glow {
    transition: 0.3s;
    text-shadow: 0 0 0px #fff;
}

.hover-glow:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    opacity: 1 !important;
}

.trust-badge {
    transition: 0.3s;
}

.trust-badge:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* Dark Mode Accordion Fixes */
[data-theme="dark"] .accordion-item,
[data-theme="neon"] .accordion-item {
    background-color: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

[data-theme="dark"] .accordion-button,
[data-theme="neon"] .accordion-button {
    background-color: var(--card-bg);
    color: var(--text);
    box-shadow: none;
}

[data-theme="dark"] .accordion-button:not(.collapsed),
[data-theme="neon"] .accordion-button:not(.collapsed) {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .accordion-button::after,
[data-theme="neon"] .accordion-button::after {
    filter: invert(1);
}

/* Dark Mode List Group Fixes */
[data-theme="dark"] .list-group-item,
[data-theme="neon"] .list-group-item {
    background-color: var(--card-bg);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

[data-theme="dark"] .list-group-item-action:hover,
[data-theme="neon"] .list-group-item-action:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

/* Dark Mode bg-light Fix */
[data-theme="dark"] .bg-light,
[data-theme="neon"] .bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: var(--text) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.copyright-text a {
    display: inline !important;
    padding: 0 !important;
    margin: 0 !important;
}

.copyright-text a:hover {
    padding-left: 0 !important;
}