:root {
    --bg-primary: #020314;
    --bg-secondary: #0a0e27;
    --accent-1: #5932e6;
    --accent-2: #8632e6;
    --accent-3: #b332e6;
    --accent-4: #e032e6;
    --text-primary: #ffffff;
    --text-secondary: 50px;
    --header-height: 15px;
}

body.light-mode {
    --bg-primary: #f5f5f7;
    --bg-secondary: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
}

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

/* 1) Load local fonts */
@font-face {
    font-family: 'MyFont';
    src: url('fonts/woff2/Vazir.woff2') format('woff2'),
        url('fonts/woff/Vazir.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'MyFont', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0 !important;
    margin: 0 !important;
}

/* AI-Themed Neural Network Pattern Background - Smaller Nodes */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.2 !important;
    background-image: url("assets/images/bg.svg");
    background-size: 1000px 1000px;
    pointer-events: none;
    animation: moveBackground 200s linear infinite;
}

body.light-mode::before {
    opacity: 0.15 !important;
}

@keyframes moveBackground {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 4000px 4000px;
    }
}

body.light-mode::before {
    opacity: 0.3;
}

/* All content above pattern */
body>* {
    position: relative;
    z-index: 1;
}

/* iOS-Style Glass Morphism - Ultra Smooth */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

body.light-mode .glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 0.5px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.8);
}

.glass-strong {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
}

body.light-mode .glass-strong {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(40px);
    -webkit-backdrop-filter: saturate(180%) blur(40px);
    border: 0.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.1),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.9);
}

/* Smooth Theme Transition */
* {
    transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image Filter for Light Mode */
body.light-mode img {
    filter: brightness(0.95) contrast(1.05);
}


body.light-mode .mobile-menu .mobile-menu-header {
    background: rgba(2, 3, 20, 0.9);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.15);
}

/* Loader */
.loader-wrapper {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #020314 0%, #1a0a3e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

.loader-wrapper.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(89, 50, 230, 0.1);
    border-top-color: #5932e6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: 20px;
    font-size: 18px;
    color: white;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #5932e6, #e032e6);
    z-index: 9998;
    transition: width 0.1s;
}

/* Theme Toggle - iOS Style */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 32px;
    background: rgba(120, 120, 128, 0.16);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
}

.theme-toggle::after {
    content: '🌙';
    position: absolute;
    top: 2px;
    right: 2px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #5932e6, #8632e6);
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

body.light-mode .theme-toggle {
    background: rgba(255, 204, 0, 0.2);
}

body.light-mode .theme-toggle::after {
    content: '☀️';
    transform: translateX(-28px);
    background: linear-gradient(135deg, #fbbf24, #f59e0b);

}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
}

/* Navbar Styles - iOS Glass Effect */
.top-navbar {
    top: -70px !important;
    background: rgba(10, 14, 39, 0.72);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    position: sticky;
    z-index: 50;
}

body.light-mode .top-navbar {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
}

/* Main Navbar - iOS Glass Effect with Rounded Hover */
.main-navbar {
    background: linear-gradient(135deg, rgba(89, 50, 230, 0.85) 0%, rgba(134, 50, 230, 0.85) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: 0 4px 20px rgba(89, 50, 230, 0.3);
    position: sticky;
    top: 0px;
    z-index: 100;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.2);
}

body.light-mode .main-navbar {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
}

.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 500;
    color: var(--text-primary);
}

body.light-mode .nav-link {
    color: #1d1d1f;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transform: translateY(-2px);
}

/* Main Nav Link with Rounded Hover */
.main-nav-link {
    position: relative;
    padding: 16px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    display: block;
    border-radius: 16px;
    margin: 8px 4px;
}

.main-nav-link:hover {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.main-nav-link:active {
    transform: translateY(0) scale(1);
}

/* Logo */
.sticky-logo {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
}

.sticky-logo-subtitle {
    font-size: 9px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    margin-top: -2px;
}

.loader-logo {
    width: 280px;
    /* adjust as needed */
    height: auto;
    margin-bottom: 12px;
}

.logo-text {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #5932e6 0%, #8632e6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo-text:hover {
    transform: scale(1.05);
    filter: brightness(1.3);
}

.logo-subtitle {
    font-size: 10px;
    font-weight: 400;
    color: rgba(89, 50, 230, 0.7);
    letter-spacing: 2px;
    margin-top: -4px;
}

body.light-mode .logo-subtitle {
    color: rgba(102, 126, 234, 0.7);
}

/* Breaking News Ticker - iOS Glass */
/* .breaking-news {
    background: rgba(89, 50, 230, 0.08);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .breaking-news {
    background: rgba(102, 126, 234, 0.12);
} */

/* .breaking-news-label {
    background: linear-gradient(135deg, #5932e6, #8632e6);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 11px;
    animation: breathing 3s ease-in-out infinite;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(89, 50, 230, 0.3);
} */

@keyframes breathing {

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

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.news-ticker-single {
    position: relative;
    height: 30px;
    display: flex;
    align-items: center;
    flex: 1;
    overflow: hidden;
}

.news-ticker-item-single {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    color: var(--text-primary);
    font-size: 14px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.news-ticker-item-single.active {
    opacity: 1;
    z-index: 2;
    animation: smoothFade 5s ease-in-out;
}

@keyframes smoothFade {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Search Box - iOS Glass */
.search-container {
    position: relative;
}

.search-box-top {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 20px;
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 8px 16px;
}

body.light-mode .search-box-top {
    background: rgba(255, 255, 255, 0.6);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.search-box-top:hover,
.search-box-top:focus-within {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(89, 50, 230, 0.2);
    transform: scale(1.02);
}

body.light-mode .search-box-top:hover,
body.light-mode .search-box-top:focus-within {
    background: rgba(255, 255, 255, 0.8);
}

.search-box-top input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 13px;
    width: 150px;
}

.search-box-top input::placeholder {
    color: var(--text-secondary);
}

/* Search Suggestions - iOS Glass */
.search-suggestions {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
}

body.light-mode .search-suggestions {
    background: rgba(255, 255, 255, 0.85);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.search-suggestions.active {
    display: block;
    animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

.suggestion-item>div {
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

body.light-mode .suggestion-item>div {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
}

.suggestion-item:hover>div {
    background: rgba(89, 50, 230, 0.12);
    padding-right: 20px;
}

.suggestion-item:last-child>div {
    border-bottom: none;
}

/* Search Box Main - iOS Glass */
.search-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-radius: 20px;
    border: 0.5px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 10px 20px;
}

.search-box:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 14px;
    width: 180px;
}

.search-box input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    transition: transform 0.3s ease;
}

.search-box:hover .search-icon,
.search-box-top:hover .search-icon {
    transform: scale(1.1);
}

/* Login Button - iOS Style */
.login-btn {
    background: linear-gradient(135deg, #5932e6 0%, #8632e6 100%);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(89, 50, 230, 0.3);
    color: white;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(89, 50, 230, 0.5);
}

.login-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Filter Bar - iOS Glass - Hidden on Mobile */
.filter-bar {
    display: flex;
    gap: 12px;
    padding: 20px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .filter-bar {
        display: none;
    }
}

.filter-btn {
    padding: 10px 24px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light-mode .filter-btn {
    background: rgba(255, 255, 255, 0.6);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.filter-btn:hover {
    background: rgba(89, 50, 230, 0.15);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(89, 50, 230, 0.2);
}

body.light-mode .filter-btn:hover {
    background: rgba(102, 126, 234, 0.2);
}

.filter-btn.active {
    background: linear-gradient(135deg, #5932e6, #8632e6);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(89, 50, 230, 0.4);
}

.filter-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg,
            rgba(89, 50, 230, 0.05) 25%,
            rgba(89, 50, 230, 0.15) 50%,
            rgba(89, 50, 230, 0.05) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

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

.skeleton-title {
    height: 24px;
    width: 80%;
    margin: 12px 0;
}

.skeleton-text {
    height: 16px;
    width: 100%;
    margin: 8px 0;
}

.skeleton-text-short {
    height: 16px;
    width: 60%;
    margin: 8px 0;
}

.skeleton-image {
    height: 250px;
    width: 100%;
    border-radius: 12px 12px 0 0;
}

/* Bookmark Button - iOS Style */
.bookmark-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: saturate(180%) blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bookmark-btn:hover {
    background: rgba(89, 50, 230, 0.8);
    transform: scale(1.1);
}

.bookmark-btn.active {
    background: linear-gradient(135deg, #5932e6, #8632e6);
}

.bookmark-btn:active {
    transform: scale(0.95);
}

/* View Counter */
.view-counter {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Daily News Section - iOS Glass with 3 Columns */
.daily-news-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border-radius: 20px;
    padding: 24px;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-mode .daily-news-section {
    background: rgba(255, 255, 255, 0.72);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.daily-news-grid-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
}

@media (max-width: 1024px) {
    .daily-news-grid-container {
        grid-template-columns: 1fr;
    }
}

.daily-news-video-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

body.light-mode .daily-news-video-box {
    background: rgba(255, 255, 255, 0.6);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.daily-news-video-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #5932e6, #8632e6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.daily-news-video-placeholder:hover {
    transform: scale(1.02);
}

.daily-news-video-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

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

.daily-news-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 20px;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    gap: 24px;
    min-height: 160px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

body.light-mode .daily-news-card {
    background: rgba(255, 255, 255, 0.6);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}

.daily-news-card:hover {
    background: rgba(89, 50, 230, 0.1);
    transform: translateX(0px) scale(1.02);
    box-shadow: 0 12px 32px rgba(89, 50, 230, 0.25);
}

.daily-news-card:active {
    transform: translateX(-6px) scale(1);
}

body.light-mode .daily-news-card:hover {
    background: rgba(102, 126, 234, 0.15);
}

.daily-news-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.daily-news-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.daily-news-number {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #5932e6, #8632e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    min-width: 50px;
    flex-shrink: 0;
}

.daily-news-title {
    font-weight: 700;
    font-size: 18px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.daily-news-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.daily-news-badge {
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.daily-news-image {
    width: 150px;
    height: 200px;
    margin: 20px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.2);
}

/* Related News - iOS Glass */
.related-news {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border-radius: 20px;
    padding: 24px;
    margin-top: 32px;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

body.light-mode .related-news {
    background: rgba(255, 255, 255, 0.72);
    border: 0.5px solid rgba(0, 0, 0, 0.08);
}



/* Mobile menu list container */
.mobile-menu ul {
    background-color: #020314;
}

/* Each menu item */
.mobile-menu li a {
    display: block;
    padding: 12px 14px;
    color: #ffffff;
    background-color: #020314;
    border-radius: 10px;
    transition: background-color 0.25s ease;
}

/* Hover state */
.mobile-menu li a:hover {
    background-color: rgb(56, 8, 8);
}

/* Mobile search icon */
.search-box {
    display: flex;
    align-items: center;
}

.search-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
}

.search-icon {
    width: 22px;
    height: 22px;
    display: block;
}

body .mobile-menu {
    background: #000;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 18rem;
    filter: none !important;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #020314;
    backdrop-filter: none;
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border-left: 0.5px solid rgba(89, 50, 230, 0.3);
    z-index: 2147483647 !important;
    isolation: isolate;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-link {
    padding: 15px 20px;
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    margin: 4px 0;
    color: var(--text-primary);
}

body.light-mode .mobile-menu-link {
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu-link:hover {
    background: rgba(89, 50, 230, 0.15);
    backdrop-filter: blur(10px);
    padding-right: 30px;
    color: #8632e6;
}

body.light-mode .mobile-menu-link:hover {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

/* Hamburger */
.hamburger {
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.active {
    opacity: 1;
    transform: scale(1);
}

/* Hover Effects - iOS Style */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(156, 133, 228, 0.4);
}

.hover-lift:active {
    transform: translateY(-5px) scale(1);
}

body.light-mode .hover-lift:hover {
    box-shadow: 0 20px 40px rgba(80, 108, 233, 0.3);
}

.hover-glow {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, #5932e6, #e032e6);
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    filter: blur(10px);
}

.hover-glow:hover::before {
    opacity: 0.85;
}

/* Light mode tuning */
body.light-mode .hover-glow::before {
    filter: blur(6px);
}

body.light-mode .hover-glow:hover::before {
    opacity: 0.15;
}

/* Card Styles - iOS Glass */
.card-shadow {
    box-shadow: 0 4px 20px rgba(89, 50, 230, 0.15);
}

body.light-mode .card-shadow {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.border-gradient {
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    position: relative;
}

body.light-mode .border-gradient {
    border-color: rgba(0, 0, 0, 0.08);
}

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

/* Custom Scrollbar - iOS Style */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #5932e6, #e032e6);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8632e6, #e032e6);
}

/* Responsive Categories */
@media (max-width: 640px) {

    .category-card-1,
    .category-card-2,
    .category-card-3,
    .category-card-4,
    .category-card-5,
    .category-card-6 {
        padding: 16px 12px !important;
    }

    .category-card-1 div:first-child,
    .category-card-2 div:first-child,
    .category-card-3 div:first-child,
    .category-card-4 div:first-child,
    .category-card-5 div:first-child,
    .category-card-6 div:first-child {
        font-size: 24px !important;
        margin-bottom: 8px !important;
    }

    .category-card-1 div:last-child,
    .category-card-2 div:last-child,
    .category-card-3 div:last-child,
    .category-card-4 div:last-child,
    .category-card-5 div:last-child,
    .category-card-6 div:last-child {
        font-size: 11px !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.25rem !important;
    }

    .sticky-logo {
        font-size: 20px;
    }

    .search-box input,
    .search-box-top input {
        width: 100px;
    }

    .news-ticker-item-single {
        font-size: 12px;
    }

    .daily-news-card {
        flex-direction: column;
        padding: 16px;
        gap: 16px;
        min-height: auto;
    }

    .daily-news-image {
        width: 100%;
        height: 180px;
        order: -1;
    }

    .daily-news-number {
        font-size: 28px;
        min-width: 40px;
    }

    .daily-news-title {
        font-size: 16px;
    }

    .daily-news-meta {
        font-size: 12px;
    }

    .daily-news-video-box {
        position: relative;
        top: 0;
    }
}

/* Pulse Animation */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Floating Animation */
@keyframes float {

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

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

.float {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #5932e6 0%, #8e3a91e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge-new {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-trending {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.badge-hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

/* Category Cards - Glass with Gradient from #7845EA to #6539E7 */
.category-card-1 {
    background: linear-gradient(135deg, rgba(120, 69, 234, 0.3) 0%, rgba(120, 69, 234, 0.5) 100%);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(120, 69, 234, 0.3);
}

.category-card-2 {
    background: linear-gradient(135deg, rgba(115, 65, 233, 0.3) 0%, rgba(115, 65, 233, 0.5) 100%);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(115, 65, 233, 0.3);
}

.category-card-3 {
    background: linear-gradient(135deg, rgba(110, 61, 232, 0.3) 0%, rgba(110, 61, 232, 0.5) 100%);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(110, 61, 232, 0.3);
}

.category-card-4 {
    background: linear-gradient(135deg, rgba(105, 57, 231, 0.3) 0%, rgba(105, 57, 231, 0.5) 100%);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(105, 57, 231, 0.3);
}

.category-card-5 {
    background: linear-gradient(135deg, rgba(107, 60, 229, 0.3) 0%, rgba(107, 60, 229, 0.5) 100%);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(107, 60, 229, 0.3);
}

.category-card-6 {
    background: linear-gradient(135deg, rgba(101, 57, 231, 0.3) 0%, rgba(101, 57, 231, 0.5) 100%);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(101, 57, 231, 0.3);
}

body.light-mode .category-card-1,
body.light-mode .category-card-2,
body.light-mode .category-card-3,
body.light-mode .category-card-4,
body.light-mode .category-card-5,
body.light-mode .category-card-6 {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    border: 0.5px solid rgba(120, 69, 234, 0.3);
}

/* Accent Colors */
.bg-accent1 {
    background-color: #5932e6;
}

.bg-accent2 {
    background-color: #8632e6;
}

.bg-accent3 {
    background-color: #b332e6;
}

.bg-accent4 {
    background-color: #f1eef1;
}

.text-accent1 {
    color: #b061ff;
}

.text-accent2 {
    color: #ec5ee1;
}

/* PWA Install Button - iOS Style */
.pwa-install-btn {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    border: 0.5px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 9997;
    animation: bounce 2s infinite;
    backdrop-filter: blur(20px);
}

.pwa-install-btn.show {
    display: flex;
}

@keyframes bounce {

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

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

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Particle Effect */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #5932e6;
    border-radius: 50%;
    pointer-events: none;
    animation: particle-float 2s ease-out forwards;
}

@keyframes particle-float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

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

/* Light Mode Text Colors Fix */
body.light-mode .text-gray-300,
body.light-mode .text-gray-400,
body.light-mode .text-gray-500 {
    color: #6e6e73 !important;
}

/* body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6 {
    color: #f4f4f7 !important;
} */


.star-link {
    position: relative;
    padding: 6px 2px;
    color: #cbd5f5;
    font-weight: 600;
    transition: color 0.25s ease;
}

.star-link:hover,
.star-link.active {
    color: #ffffff;
}

#star-line {
    position: absolute;
    bottom: -6px;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 999px;
    transition:
        left 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.single-container {
    line-height: 2.5rem !important;
    color: var(--text-primary) !important;
}

.single-container img {
    margin: 0 auto !important;
}

.single-container article {
    padding: 70px;
    background-color: #17172c96;
    margin-top: 50px;
    border-radius: 10px;
    border: 1px solid #333;
}


/* Base font and general header styling */
.single-container h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 2rem 0 0.5rem 0 !important;
    line-height: 2.5rem !important;
    position: relative;
    word-break: break-word;
    color: var(--text-primary);
}


body.light-mode .single-container article {
    background-color: rgba(255, 255, 255, 0.507);
    border-color: #eee;
}



/* Center all headers if needed */
.header-center {
    text-align: center;
}

.single-container h1 {
    font-size: 2.2rem !important;
}

.single-container h2 {
    font-size: 2rem !important;
}

.single-container h3 {
    font-size: 1.75rem !important;
}

.single-container h4 {
    font-size: 1.5rem !important;
}

.single-container h5 {
    font-size: 1.2rem !important;
}

.single-container h6 {
    font-size: 1rem !important;
}


/* Global code styling */
code {
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    /* Monospaced font */
    background-color: #f5f5f5;
    /* Light gray background */
    color: #d6336c;
    /* Distinct code color */
    padding: 0.2em 0.4em;
    /* Small padding around text */
    border-radius: 4px;
    /* Rounded corners */
    font-size: 0.95em;
    /* Slightly smaller than regular text */
    line-height: 1.4;
    white-space: pre-wrap;
    /* Preserve spacing and wrap long lines */
    word-break: break-word;
    /* Prevent overflow on long code strings */
}

/* For code blocks specifically (pre > code) */
pre code {
    display: block;
    background-color: #1e1e1e;
    /* Dark background for blocks */
    color: #f8f8f2;
    /* Light text color */
    padding: 1em;
    /* Larger padding */
    overflow-x: auto;
    /* Scroll if too wide */
    font-size: 0.9em;
    line-height: 1.5;
    border-radius: 6px;
}

/* Optional: subtle shadow to make code blocks stand out */
pre code {
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}




.single-container a {
    color: #2575fc;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    cursor: pointer;
}

.single-container a:hover,
.single-container a:focus {
    color: #e074ce;
}

.single-container a:active {
    color: #d6336c;
    transform: scale(0.98);
}

.single-container a.underline-hover {
    position: relative;
}

.single-container a.underline-hover::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -2px;
    background-color: #2575fc;
    transition: width 0.3s ease;
}

.single-container a.underline-hover:hover::after {
    width: 100%;
}

.footer-glow-menu li a {
    display: inline-block;
    position: relative;
    color: #9ca3af;
    /* gray-400 */
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
}

.footer-glow-menu li a:hover {
    color: #9ca3af;
    text-shadow:
        0 0 6px rgba(168, 85, 247, 0.8),
        0 0 12px rgba(168, 85, 247, 0.6),
        0 0 24px rgba(168, 85, 247, 0.4);
    transform: translateX(4px);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(140,82,255,.6); }
    70% { box-shadow: 0 0 0 22px rgba(140,82,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(140,82,255,0); }
}

.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.video-modal.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.video-modal video {
    max-width: 90%;
    max-height: 90%;
    border-radius: 16px;
}

.video-overlay {
    background: rgba(109,40,217,.85);
}

.modal-open {
    overflow: hidden;
}

.video-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
}


.video-thumb {
    display: block;
    background: #000;
}


.video-thumb.has-fallback-poster {
    filter: brightness(0.9);
}
