﻿/* News Detail Overlay - Compact Design */
.news-detail-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
}

.overlay-top {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

.news-category-badge {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    width: fit-content;
}

.news-date-red {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.news-detail-title-compact {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    color: white;
    margin: 0;
    padding: 10px 15px 10px 20px;
    border-left: 4px solid #000;
    background: rgba(0, 0, 0, 0.5);
    text-shadow: none;
    display: inline-block;
    backdrop-filter: blur(2px);
    border-radius: 0 4px 4px 0;
}

:root {
    --bg-color: #0c0c0c;
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #ff3b3b;
    --accent-hover: #e63535;
    --border-color: #222222;
    --ticker-bg: #1a1a1a;
    --nav-height: 70px;
    --container-width: 1200px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0d0d0d;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* Sidebar Ads */
.ad-sidebar {
    position: absolute;
    top: 180px;
    width: 170px;
    height: 600px;
    z-index: 10;
    /* Lower z-index so footer covers it */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ad-sidebar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
}

.ad-sidebar:hover {
    transform: translateY(-8px) scale(1.02);
}

.ad-left {
    left: calc(50% - (var(--container-width) / 2) - 200px);
}

.ad-right {
    right: calc(50% - (var(--container-width) / 2) - 200px);
}

.ad-content {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hide ads if screen is not wide enough for container + 2 ads */
@media (max-width: 1600px) {
    .ad-sidebar {
        display: none;
    }
}

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

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
}

/* Breaking News Ticker */
.breaking-news-ticker {
    background-color: var(--ticker-bg);
    height: 40px;
    border-bottom: 1px solid var(--border-color);
}

.ticker-container-flex {
    display: flex;
    align-items: center;
    height: 100%;
}

.ticker-label {
    background-color: var(--accent-color);
    color: white;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    z-index: 10;
    position: relative;
    box-shadow: 10px 0 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.ticker-wrapper {
    display: flex;
    align-items: center;
    white-space: nowrap;
    height: 100%;
    position: absolute;
    left: 100%;
    animation: ticker 120s linear infinite;
}

.ticker-wrapper:hover {
    animation-play-state: paused;
}

.ticker-item {
    padding: 0 40px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-item::after {
    content: "";
    position: absolute;
    right: 0;
    width: 1px;
    height: 14px;
    background-color: rgba(255, 255, 255, 0.15);
}

.ticker-item:hover {
    color: var(--accent-color);
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
        left: 0;
    }
}

/* Featured News Grid */
.featured-section {
    padding-top: 30px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.featured-slider {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 100%;
}

.slider-main {
    position: relative;
    width: 100%;
    height: 550px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.slider-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.slider-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
}

.slider-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 10s linear;
}

.slider-slide.active img {
    transform: scale(1.1);
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 80px 40px 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9) 70%);
    z-index: 2;
}

.slider-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    max-width: 900px;
    letter-spacing: -1px;
}

.slider-meta {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-arrow:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 30px;
}

.slider-arrow.next {
    right: 30px;
}

/* Thumbnails */
.slider-thumbs-wrapper {
    width: 100%;
    margin-top: 5px;
}

.slider-thumbs {
    display: flex;
    gap: 12px;
    padding: 10px 2px 15px;
    cursor: pointer;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.slider-thumbs::-webkit-scrollbar {
    display: none;
}

.thumb-item {
    flex: 0 0 190px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.45;
    position: relative;
    border-radius: 12px;
}

.thumb-item:hover {
    opacity: 0.85;
}

.thumb-item.active {
    opacity: 1;
    transform: translateY(-5px);
}

.thumb-img-box {
    width: 100%;
    height: 105px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.thumb-item.active .thumb-img-box {
    border-color: var(--accent-color);
    box-shadow: 0 12px 35px rgba(255, 59, 59, 0.2);
}

.thumb-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.thumb-title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
    transition: all 0.3s;
}

.thumb-item.active .thumb-title {
    color: #fff;
    font-weight: 800;
}


@media (max-width: 992px) {
    .slider-main {
        height: 450px;
    }

    .slider-title {
        font-size: 2rem;
    }

    .thumb-item {
        flex: 0 0 170px;
    }

    .thumb-img-box {
        height: 100px;
    }
}

@media (max-width: 768px) {
    .featured-section {
        padding-top: 15px;
    }

    .slider-main {
        height: 350px;
        border-radius: 8px;
        margin: 0;
    }

    .slider-slide.active img {
        transform: scale(1);
    }

    .slider-title {
        font-size: 1.5rem;
    }

    .slider-content {
        padding: 30px 15px 15px;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-arrow.prev {
        left: 10px;
    }

    .slider-arrow.next {
        right: 10px;
    }

    .thumb-item {
        flex: 0 0 140px;
    }

    .thumb-img-box {
        height: 80px;
    }

    .thumb-title {
        font-size: 0.75rem;
    }
}

/* Stories Section */
.stories-section {
    padding-top: 25px;
    background: var(--bg-color);
}

.stories-section .container {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 25px;
}

.stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stories-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.stories-view-all {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.stories-view-all:hover {
    opacity: 0.8;
}

.stories-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scrollbar-width: none;
}

.stories-container::-webkit-scrollbar {
    display: none;
}

.story-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.story-item:hover {
    /* transform removed */
    opacity: 0.9;
}

.story-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-preview {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--bg-color);
    background: #000;
}

.story-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-label {
    font-size: 0.75rem;
    color: var(--text-color);
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .stories-section {
        padding: 20px 0;
    }

    .story-ring {
        width: 70px;
        height: 70px;
    }

    .story-label {
        font-size: 0.7rem;
        max-width: 70px;
    }
}

/* Info Bar (Rates + Weather) */
.exchange-rates-bar {
    padding: 15px 0;
    margin-top: 10px;
}

.info-bar-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.exchange-flex {
    display: flex;
    gap: 20px;
    align-items: center;
}

.exchange-base {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-color);
    margin-right: 5px;
}

.exchange-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.exchange-item strong {
    color: var(--accent-color);
    margin-right: 5px;
}

.exchange-item span {
    color: var(--text-color);
    font-weight: 600;
}

.separator-v {
    width: 1px;
    height: 15px;
    background-color: var(--border-color);
}

.weather-item {
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    gap: 8px;
    align-items: center;
    transition: color 0.3s ease;
}

.weather-item .city {
    color: var(--accent-color);
    font-weight: 700;
}

.weather-item .temp {
    color: var(--text-color);
    font-weight: 600;
}

.weather-item .cond {
    color: var(--text-secondary);
}

.weather-item:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .exchange-rates-bar {
        padding: 10px 0;
        margin-top: 8px;
    }

    .info-bar-flex {
        flex-direction: row;
        gap: 10px;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .exchange-flex {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .exchange-base {
        font-size: 0.7rem;
        margin-right: 3px;
    }

    .exchange-item {
        font-size: 0.65rem;
        white-space: nowrap;
    }

    .exchange-item strong {
        margin-right: 2px;
        font-size: 0.7rem;
    }

    .separator-v {
        display: none;
    }

    .weather-item {
        font-size: 0.7rem;
        gap: 5px;
        width: 100%;
        justify-content: center;
        margin-top: 5px;
    }
}

@media (max-width: 480px) {
    .exchange-rates-bar {
        padding: 8px 0;
    }

    .exchange-base {
        font-size: 0.65rem;
    }

    .exchange-item {
        font-size: 0.6rem;
    }

    .exchange-item strong {
        font-size: 0.65rem;
    }

    .weather-item {
        font-size: 0.65rem;
    }
}

/* Weather Page V2 */
.weather-page-v2 {
    background-color: var(--bg-color);
}

.weather-container {
    padding-top: 40px;
    max-width: 900px !important;
}

.weather-current-header {
    text-align: center;
    margin-bottom: 50px;
}

.city-name {
    font-size: 2.5rem;
    font-weight: 500;
}

.main-temp {
    font-size: 5rem;
    font-weight: 700;
    margin: 10px 0;
}

.main-condition {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 5px;
}

.feels-like {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.weather-card {
    background-color: var(--ticker-bg);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.weather-card h3 {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
}

/* Hourly List */
.hourly-list {
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
    padding-bottom: 15px;
    gap: 20px;
}

.hour-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
}

.hour-item .time {
    font-size: 0.85rem;
    color: var(--text-color);
    margin-bottom: 12px;
}

.hour-item .icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.hour-item .temp {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Metrics Grid */
.weather-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 25px;
}

.forecast-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.forecast-item {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    align-items: center;
}

.forecast-item .day {
    font-size: 1rem;
    color: var(--text-color);
}

.forecast-item .range {
    text-align: right;
    font-size: 1rem;
    color: var(--text-secondary);
}

.forecast-item .range strong {
    color: var(--text-color);
}

.weather-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.metric-card {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.metric-card .m-icon {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.metric-card .m-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.metric-card .m-value {
    font-size: 1.8rem;
    font-weight: 600;
}

/* Regions Summary */
.regions-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    row-gap: 35px;
}

.region-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.region-item .r-name {
    font-size: 0.95rem;
    color: var(--text-secondary);
    min-width: 80px;
}

.region-item .r-icon {
    font-size: 1.2rem;
}

.region-item .r-temp {
    font-size: 1rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

@media (max-width: 768px) {
    .weather-metrics-grid {
        grid-template-columns: 1fr;
    }

    .regions-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .main-temp {
        font-size: 3.5rem;
    }

    .regions-list {
        grid-template-columns: 1fr;
    }
}

/* Weather Page V3 (Compact & Card-less) */
.weather-section-new {
    padding: 20px 0;
    max-width: 800px;
    margin: 0 auto;
}

.weather-search {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.weather-search form {
    display: flex;
    width: 100%;
    max-width: 400px;
    gap: 10px;
}

.weather-search input {
    flex: 1;
    background-color: var(--ticker-bg);
    border: 1px solid var(--border-color);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    font-family: 'Outfit', sans-serif;
    outline: none;
}

.weather-search input:focus {
    border-color: var(--accent-color);
}

.weather-search button {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.weather-search button:hover {
    background-color: var(--accent-hover);
}

.weather-brief {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.weather-brief h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.weather-brief p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.big-temp {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-color);
}

.weather-row-fixed {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.mini-hour {
    text-align: center;
    min-width: 60px;
}

.m-time {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.m-icon {
    font-size: 1.4rem;
    margin-bottom: 8px;
    display: block;
}

.m-temp {
    font-weight: 600;
    font-size: 1rem;
}

.weather-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.sect-title {
    font-size: 0.8rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin-bottom: 20px;
    font-weight: 700;
}

.forecast-line,
.metric-line {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.forecast-line:last-child,
.metric-line:last-child {
    border-bottom: none;
}

.regions-flex-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.r-mini-item {
    background-color: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.rn {
    color: var(--text-secondary);
    margin-right: 10px;
}

.rt {
    font-weight: 600;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .weather-brief h1 {
        font-size: 1.5rem;
    }

    .big-temp {
        font-size: 2.2rem;
    }

    .weather-row-fixed {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .weather-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .weather-brief {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .weather-search form {
        flex-direction: column;
    }

    .weather-search button {
        width: 100%;
    }

    .mini-hour {
        flex: 1 1 20%;
        /* 4 columns on mobile if possible, or 2 if too small */
        min-width: 60px;
    }

    .mini-hour .m-temp {
        font-size: 0.9rem;
    }

    .regions-flex-wrap {
        justify-content: center;
    }

    .r-mini-item {
        width: 100%;
        text-align: center;
    }
}

/* Navbar Update */
/* Navbar styles moved to bottom */

/* News Grid (3 Columns) */
.news-feed {
    padding: 40px 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
    max-width: 100%;
}

.news-item-grid {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    background: transparent;
}

.news-img-wrapper {
    width: 100%;
    height: 200px;
    background-color: #1a1a1a;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.news-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-item-grid:hover .news-img {
    transform: scale(1.08);
}

.news-img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    z-index: 2;
}

.news-meta-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.news-date-mini {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-date-mini::before {
    content: '|';
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

.news-grid-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
    transition: color 0.3s ease;
}

.news-item-grid:hover .news-grid-title {
    color: var(--accent-color);
}

.news-grid-content {
    padding: 12px 0 0 0;
}

.mini-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    vertical-align: middle;
}

/* Icon Colors using Filters (Forcing colors on dark PNGs) */
.icon-view {
    filter: brightness(0) invert(1);
    /* Forces pure White */
}

.icon-like {
    /* Precise Green (#4cd137) */
    filter: invert(61%) sepia(90%) saturate(1217%) hue-rotate(67deg) brightness(98%) contrast(85%);
}

.icon-dislike {
    /* Precise Red (#ff4757) */
    filter: invert(40%) sepia(94%) saturate(4156%) hue-rotate(338deg) brightness(101%) contrast(105%);
}

.news-view-count {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.fake-tag-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e60000;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(230, 0, 0, 0.3);
    text-transform: uppercase;
}

/* News Grid Content */
.news-grid-content {
    padding: 15px 0;
}

.news-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reaction-buttons {
    display: flex;
    gap: 15px;
}

.reaction-buttons button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    padding: 5px 8px;
    border-radius: 4px;
}

.btn-like:hover {
    color: #4cd137;
    background-color: rgba(76, 209, 55, 0.1);
}

.btn-dislike:hover {
    color: #ff4757;
    background-color: rgba(255, 71, 87, 0.1);
}

.btn-like.active {
    color: #4cd137;
}

.btn-dislike.active {
    color: #ff4757;
}

.reaction-buttons .count {
    font-weight: 600;
}

.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--text-color);
}

.read-more:hover::after {
    transform: translateX(4px);
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .news-feed {
        padding: 20px 0;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-img-wrapper {
        height: 220px;
    }
}

/* News Detail Page */
.news-detail-content {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-header {
    margin-bottom: 40px;
    text-align: center;
}

.news-meta-large {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.news-detail-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-color);
}

.news-detail-img-wrapper {
    width: 100%;
    height: 500px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

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

.news-article-body {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.lead-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 30px;
}

.article-text p {
    margin-bottom: 25px;
}

.news-detail-actions {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.reaction-buttons.large button {
    font-size: 1.1rem;
    padding: 10px 20px;
    gap: 10px;
}

.other-news-section {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.section-title-alt {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    text-align: center;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .news-detail-title {
        font-size: 2rem;
    }

    .news-detail-img-wrapper {
        height: 300px;
    }
}

.news-detail-page main {
    padding-top: 40px;
}

.news-detail-page .ad-sidebar {
    display: none;
    /* Hide sidebar ads on detail page for better reading experience */
}

/* Footer Redesign - Extra Compact */
footer {
    padding: 20px 0 15px;
    background-color: #0d0d0d;
    border-top: 1px solid var(--border-color);
    margin-top: 30px;
    position: relative;
    z-index: 100;
    /* Higher than ads */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 20px;
}



.footer-col-about {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-about-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    /* White by default */
    margin-top: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    width: fit-content;
}

.footer-about-title:hover {
    color: var(--accent-color);
    /* Red on hover */
    text-decoration: none;
    /* No underline */
}

body.light-mode .footer-about-title {
    color: #fff;
    /* Keep white in light mode since footer is dark */
}

body.light-mode .footer-about-title:hover {
    color: var(--accent-color);
}



.footer-about-text {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.footer-col-left {
    display: flex;
    flex-direction: column;
    gap: 10px;
}


.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo span {
    color: var(--accent-color);
}

.copyright-text {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.footer-col-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.footer-slogan {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    line-height: 1.3;
}

.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-link img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 1;
    /* Always fully visible */
    transition: all 0.3s ease;
    filter: none;
    /* No grayscale by default */
}

/* Maintain White Twitter (X) icon in Dark Mode */
.social-link img[alt*="Twitter"],
.social-link img[src*="twitter"] {
    filter: brightness(0) invert(1);
}

/* Light Mode specific Twitter in Footer (Black) */
body.light-mode .social-link img[alt*="Twitter"],
body.light-mode .social-link img[src*="twitter"] {
    filter: brightness(0) !important;
    /* Black */
}

.social-link:hover img {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

/* Keep Twitter white on hover in Dark Mode */
.social-link:hover img[alt*="Twitter"],
.social-link:hover img[src*="twitter"] {
    filter: brightness(0) invert(1) contrast(1.2);
}

/* Keep Twitter black on hover in Light Mode */
body.light-mode .social-link:hover img[alt*="Twitter"],
body.light-mode .social-link:hover img[src*="twitter"] {
    filter: brightness(0) !important;
}






.footer-col-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: right;
}

.contact-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 2px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-value {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: var(--accent-color);
}

/* Admin Login */
.admin-login-body {
    background-color: var(--bg-color);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
}

.login-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-form {
    background-color: #111;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    margin-bottom: 20px;
}

.login-form h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.login-form p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.input-group {
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    outline: none;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: var(--accent-color);
}

.login-btn {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.login-btn:hover {
    background-color: var(--accent-hover);
}

.error-msg {
    color: var(--accent-color);
    background: rgba(255, 62, 62, 0.1);
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.back-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover {
    color: white;
}

/* Admin Dashboard */
.admin-panel-body {
    background-color: #050505;
}

.admin-header {
    background-color: #0d0d0d;
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.admin-nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.admin-menu-links {
    display: flex;
    gap: 25px;
}

.admin-menu-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 20px;
}

.admin-menu-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.admin-menu-links a.active {
    color: white;
    background: var(--accent-color);
}

.admin-user-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.admin-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.admin-link:hover {
    color: white;
}

.admin-badge {
    font-size: 0.65rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-left: 5px;
    position: relative;
    top: 1px;
    opacity: 0.8;
}

.admin-btn-logout {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.admin-btn-logout:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
}

.admin-main {
    padding: 40px 0;
}

.admin-card {
    background-color: #111;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
    font-size: 1.2rem;
    font-weight: 700;
}

.admin-form {
    padding: 25px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group select {
    padding: 12px;
    background: #1a1a1a;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: white;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent-color);
}

.submit-btn {
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: var(--accent-hover);
}

/* Admin News List */
.admin-news-list {
    padding: 10px 0;
}

.admin-news-item {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
    gap: 20px;
}

.admin-news-item:last-child {
    border-bottom: none;
}

.ani-img {
    width: 80px;
    height: 50px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.ani-info {
    flex-grow: 1;
}

.ani-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.ani-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.ani-actions {
    display: flex;
    gap: 10px;
}

.btn-edit,
.btn-delete {
    padding: 6px 12px;
    border-radius: 4px;
    border: none;
    font-size: 0.8rem;
    cursor: pointer;
}

.btn-edit {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid var(--border-color);
}

.btn-delete {
    background: rgba(255, 62, 62, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(255, 62, 62, 0.2);
}

.mt-40 {
    margin-top: 40px;
}

/* Custom Toggle Switch */
.fake-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-right: 15px;
}

.fake-toggle-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.fake-toggle-label.active {
    color: var(--accent-color);
}

.switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 18px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    transition: .3s;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: #888;
    transition: .3s;
    border-radius: 50%;
}

input:checked+.slider-round {
    background-color: rgba(230, 0, 0, 0.2);
    border-color: rgba(230, 0, 0, 0.5);
}

input:checked+.slider-round:before {
    transform: translateX(20px);
    background-color: #e60000;
}

/* Pin Toggle */
.pin-toggle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-right: 15px;
}

.pin-toggle-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pin-toggle-label.active {
    color: #ff9d00;
}

.pin-switch input:checked+.slider-round {
    background-color: rgba(255, 157, 0, 0.2);
    border-color: rgba(255, 157, 0, 0.5);
}

.pin-switch input:checked+.slider-round:before {
    background-color: #ff9d00;
}

/* Quill Dark Theme Customization */
.quill-dark .ql-toolbar.ql-snow {
    background-color: #1a1a1a;
    border-color: var(--border-color);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

.quill-dark .ql-container.ql-snow {
    background-color: #1a1a1a;
    border-color: var(--border-color) !important;
    color: white;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.quill-dark .ql-snow .ql-stroke {
    stroke: #ccc;
}

.quill-dark .ql-snow .ql-fill {
    fill: #ccc;
}

.quill-dark .ql-snow .ql-picker {
    color: #ccc;
}

.quill-dark .ql-snow .ql-picker-options {
    background-color: #222;
    border-color: var(--border-color);
}

.quill-dark .ql-snow.ql-toolbar button:hover,
.quill-dark .ql-snow.ql-toolbar button.ql-active,
.quill-dark .ql-snow.ql-toolbar .ql-picker-label:hover,
.quill-dark .ql-snow.ql-toolbar .ql-picker-label.ql-active,
.quill-dark .ql-snow.ql-toolbar .ql-picker-item:hover,
.quill-dark .ql-snow.ql-toolbar .ql-picker-item.ql-selected {
    color: var(--accent-color);
}

.quill-dark .ql-snow.ql-toolbar button:hover .ql-stroke,
.quill-dark .ql-snow.ql-toolbar button.ql-active .ql-stroke,
.quill-dark .ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,
.quill-dark .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,
.quill-dark .ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,
.quill-dark .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke {
    stroke: var(--accent-color);
}

.quill-dark .ql-snow.ql-toolbar button:hover .ql-fill,
.quill-dark .ql-snow.ql-toolbar button.ql-active .ql-fill,
.quill-dark .ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,
.quill-dark .ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,
.quill-dark .ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,
.quill-dark .ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill {
    fill: var(--accent-color);
}

.reaction-buttons button.disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.reaction-buttons button.active.disabled {
    opacity: 1;
}

/* News Detail Page Styles */
.news-detail-img-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

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

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

.news-detail-overlay .news-meta-large {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
}

.news-detail-overlay .news-detail-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    color: white;
    margin: 0;
}

.news-article-body {
    margin-top: 30px;
}

.lead-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 25px;
}

.lead-text p {
    margin-bottom: 15px;
}

.lead-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .footer-col-left,
    .footer-col-right,
    .footer-col-about {
        align-items: center;
        text-align: center;
    }

    .footer-col-left .theme-toggle-btn {
        margin: 10px auto;
    }
}


/* Mobile Menu */
/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    /* Flex on mobile via media query */
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    margin-left: 20px;
    z-index: 105;
    /* Above overlay */
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: 0.3s;
}

/* Responsive */
@media (max-width: 900px) {
    .news-item {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .news-img-wrapper {
        height: 300px;
    }

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

/* News Interaction Bar */
.news-interaction-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.reaction-buttons {
    display: flex;
    gap: 15px;
}

.reaction-buttons button {
    background: none;
    border: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px 10px;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.reaction-buttons button:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.reaction-buttons button.active {
    color: var(--accent-color);
    /* Default fallback */
}

/* Always colored icons */
.reaction-buttons .btn-like {
    color: #2ecc71;
}

.reaction-buttons .btn-dislike {
    color: #e74c3c;
}

.reaction-buttons .btn-like:hover {
    background: rgba(46, 204, 113, 0.1);
}

.reaction-buttons .btn-dislike:hover {
    background: rgba(231, 76, 60, 0.1);
}

.reaction-buttons .mini-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.reaction-buttons button:hover .mini-icon {
    opacity: 1;
}

@media (max-width: 600px) {
    .news-interaction-bar {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
}

.font-size-controls {
    display: flex;
    gap: 8px;
}

.btn-font-control {
    background: #2a2a2a;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.btn-font-control:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.news-detail-actions-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-listen {
    background: #e60000;
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.2);
}

.btn-listen:hover {
    transform: translateY(-2px);
    background: #ff1a1a;
    box-shadow: 0 6px 15px rgba(230, 0, 0, 0.3);
}

.btn-listen i {
    font-size: 0.8rem;
}

.btn-listen.playing {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.listen-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100%;
    background: rgba(230, 0, 0, 0.3);
    width: 0%;
    transition: width 0.1s linear;
    display: none;
    z-index: 0;
}

.btn-listen.playing .listen-progress {
    display: block;
    /* animation removed, handled by JS update */
}

.btn-listen span,
.btn-listen i {
    position: relative;
    z-index: 1;
}

@keyframes ttsProgress {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Video Embeds */
.video-container {
    position: relative;
    width: 100%;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
}

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

/* Audio Waveform Player */
.audio-player-wave {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #1e1e1e;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    height: 40px;
    /* Thinner */
    max-width: 350px;
}

.btn-control {
    background: var(--accent-color);
    border: none;
    width: 28px;
    /* Smaller button */
    height: 28px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.btn-control:hover {
    transform: scale(1.1);
}

.waveform-box {
    display: flex;
    align-items: center;
    gap: 2px;
    /* Tighter gap */
    height: 20px;
    flex: 1;
    min-width: 100px;
    cursor: pointer;
}

.wave-bar {
    width: 2px;
    /* Thinner bars */
    height: 4px;
    background: #444;
    border-radius: 1px;
    transition: background-color 0.1s;
    /* Only color transition */
}

.wave-bar.played {
    background: var(--accent-color);
}

/* No animation for movement, just static waveform filling up */
.audio-timer {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-feature-settings: "tnum";
    white-space: nowrap;
    min-width: 60px;
    text-align: right;
}

/* Consolidated Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links.active {
        display: flex !important;
        animation: slideDown 0.3s ease forwards;
    }
}


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

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

@media (max-width: 480px) {
    .ticker-label {
        padding: 0 10px;
        font-size: 0.7rem;
    }

    .news-img-wrapper {
        height: 200px;
    }

    .hero-slider {
        height: 350px;
    }

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

    .slide-content {
        padding: 30px 0;
    }
}


/* News Detail Overlay - Split Layout */
.news-detail-overlay-top {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-detail-overlay-bottom {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
}

/* Overlay Brand Logo - Flex Version */
.overlay-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    /* Space above title */
    margin-top: auto;
    /* Push it down if needed, but flex-end handles it */
}

.overlay-brand img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8));
}

.overlay-brand span {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 700;
    font-size: 0.85rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 1);
    letter-spacing: 0.5px;
}

/* Article Footer Actions (WhatsApp & Share) */
.article-footer-actions {
    margin-top: 40px;
    margin-bottom: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.whatsapp-channel-promo {
    display: flex;
    align-items: center;
    gap: 15px;
    background-color: transparent;
    padding: 15px 0;
    margin-bottom: 30px;
    text-decoration: none;
    border-left: 4px solid #25d366;
    /* WhatsApp Green Line */
    padding-left: 20px;
}

.whatsapp-channel-promo i {
    font-size: 2.5rem;
    color: #25d366;
}

.whatsapp-channel-promo span {
    font-size: 1.1rem;
    font-weight: 700;
    color: #25d366;
    /* Or generic text color, image uses green */
}

.whatsapp-channel-promo:hover span {
    text-decoration: underline;
}

.articles-share-container h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.share-box {
    background-color: #f3f4f6;
    /* Light gray bg from image */
    border-radius: 8px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

/* Dark mode adjustment for share box if needed, assuming dark theme primarily */
/* Overriding for dark mode consistency with existing site */
body:not(.light-mode) .share-box {
    background-color: var(--ticker-bg);
    /* Use existing dark accent */
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-fb {
    background-color: #3b5998;
}

.btn-x {
    background-color: #000;
    border: 1px solid #333;
}

.btn-tg {
    background-color: #0088cc;
}

.btn-wa {
    background-color: #25d366;
}

.btn-vk {
    background-color: #4c75a3;
}

.btn-print {
    background-color: #f1c40f;
    color: #333;
}

.btn-copy {
    background-color: #f1c40f;
    color: #333;
}

/* Note: Image shows yellow for print/copy */

.hotline-box {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-color);
    /* Dark text on light, Light on dark */
}

body:not(.light-mode) .hotline-box {
    color: white;
    /* Force white on dark mode */
}

body.light-mode .hotline-box {
    color: #333;
}


.hotline-box i {
    font-size: 1.5rem;
    color: #555;
    /* Icon color */
}

body:not(.light-mode) .hotline-box i {
    color: #aaa;
}

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

.hotline-text span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hotline-text strong {
    font-size: 1.1rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    .share-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .hotline-box {
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
}

/* Print Styles */
@media print {

    /* Hide everything by default */
    body>* {
        display: none !important;
    }

    /* Show only the news content */
    body>.container,
    .news-detail-content,
    .news-detail-content * {
        display: block !important;
        visibility: visible !important;
    }

    /* Hide specific elements within the content that we don't want */
    header,
    footer,
    .breaking-news-ticker,
    .navbar,
    .ad-sidebar,
    .article-footer-actions,
    .other-news-section,
    .font-size-controls,
    .reaction-buttons,
    .news-view-count {
        display: none !important;
    }

    /* Reset Layout for Print */
    body,
    html {
        background-color: white !important;
        color: black !important;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
    }

    /* Clean up the article appearance */
    .news-detail-content {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        background: white !important;
    }

    /* Typography adjustments for paper */
    .news-detail-title-compact {
        color: black !important;
        text-shadow: none !important;
        font-size: 24pt !important;
        background: none !important;
        border-left: 5px solid black !important;
        padding-left: 15px !important;
        margin-bottom: 20px;
    }

    .news-article-body {
        font-size: 12pt !important;
        line-height: 1.5;
        color: black !important;
    }

    .news-article-body * {
        color: black !important;
    }

    /* Image adjustments */
    .news-detail-img-wrapper {
        page-break-inside: avoid;
        margin-bottom: 20px;
        height: auto !important;
        max-height: 400px;
    }

    .news-detail-img {
        object-fit: contain !important;
        height: auto !important;
        max-height: 400px !important;
    }

    /* Hide Overlays that might obscure image */
    .news-detail-overlay-bottom {
        position: static !important;
        margin-top: 10px;
    }

    .news-detail-overlay-top {
        display: none !important;
        /* Duplicate info */
    }

    /* Add Source Header */
    .news-detail-content::before {
        content: "Default.az - Xəbərin Standartı";
        display: block;
        text-align: center;
        font-weight: bold;
        border-bottom: 2px solid #000;
        margin-bottom: 20px;
        padding-bottom: 10px;
        font-size: 14pt;
    }

    /* Ensure links are readable */
    a {
        text-decoration: none !important;
        color: black !important;
    }
}


.whatsapp-channel-promo:hover span {
    text-decoration: none !important;
}


body.light-mode {
    --bg-color: #f4f4f4;
    --text-color: #1a1a1a;
    --text-secondary: #666666;
    --border-color: #d1d1d1;
    --ticker-bg: #e0e0e0;
}

body.light-mode .news-card,
body.light-mode .weather-card,
body.light-mode footer,
body.light-mode .navbar,
body.light-mode .news-detail-content {
    background-color: #ffffff;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .category-card {
    background-color: #ffffff;
    border-color: #eee;
}

body.light-mode .add-cat-form {
    background-color: #ffffff;
    border-color: #eee;
}

body.light-mode .add-cat-input {
    background-color: #f9f9f9;
    color: #333;
    border-color: #ddd;
}

body.light-mode .ticker-content {
    color: var(--text-color);
}

/* Theme Toggle Button */
/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    /* Prevent stretching */
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 12px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.theme-toggle-btn:active {
    transform: translateY(0);
}

.theme-toggle-btn i {
    font-size: 1.1rem;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:hover i {
    transform: rotate(360deg);
}

/* Light Mode Specifics for Button */
body.light-mode .theme-toggle-btn {
    background: #ffffff;
    border-color: #e0e0e0;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

body.light-mode .theme-toggle-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Search Feature Styles */
/* Search Feature Styles */
/* Final Navbar Implementation */
.navbar {
    background-color: #000;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    /* Allow drop-downs to show */
}

.navbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 20px;
    position: relative;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .navbar-top {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .navbar-top {
        padding: 0 10px;
    }
}

.navbar-top .logo {
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-color);
    letter-spacing: -1.5px;
    margin-right: 40px;
}

.navbar-top .logo span {
    color: var(--accent-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    justify-content: flex-end;
}

.nav-socials {
    display: flex;
    gap: 10px;
}

.nav-socials a {
    color: var(--text-color);
    width: 28px;
    /* Slightly narrower since no background */
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    /* Card/Circle removed */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-socials a img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* Make Twitter (X) icon white specifically in Dark Mode */
.nav-socials a img[alt*="Twitter"],
.nav-socials a img[src*="twitter"] {
    filter: brightness(0) invert(1);
}

/* Light Mode specific Twitter (Black) */
body.light-mode .nav-socials a img[alt*="Twitter"],
body.light-mode .nav-socials a img[src*="twitter"] {
    filter: brightness(0);
    /* Black */
}


.nav-socials a:hover {
    background: transparent;
    transform: translateY(-3px);
}

.nav-socials a:hover img {
    filter: brightness(1.2);
}

/* Ensure Twitter stays white on hover */
.nav-socials a:hover img[alt*="Twitter"],
.nav-socials a:hover img[src*="twitter"] {
    filter: brightness(0) invert(1) contrast(1.2);
}


.nav-live {
    background: rgba(255, 59, 59, 0.08);
    /* Slightly softer */
    color: var(--accent-color);
    padding: 7px 18px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 59, 59, 0.25);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    animation: live-breathing 2s infinite ease-in-out;
}

/* Shimmer/Light Sweep Effect */
.nav-live::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transform: rotate(30deg);
    animation: live-shimmer 3s infinite;
}

.nav-live i {
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

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

    30% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}

@keyframes live-breathing {
    0% {
        box-shadow: 0 0 0px rgba(255, 59, 59, 0.2);
        border-color: rgba(255, 59, 59, 0.25);
    }

    50% {
        box-shadow: 0 0 12px rgba(255, 59, 59, 0.4);
        border-color: rgba(255, 59, 59, 0.6);
    }

    100% {
        box-shadow: 0 0 0px rgba(255, 59, 59, 0.2);
        border-color: rgba(255, 59, 59, 0.25);
    }
}

.nav-live:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 59, 59, 0.4) !important;
}




.nav-icons-group {
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 12px;
}

.nav-theme-toggle,
.nav-search-trigger {
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.nav-theme-toggle:hover,
.nav-search-trigger:hover {
    color: var(--accent-color);
}

.nav-search-trigger.hidden {
    opacity: 0;
    pointer-events: none;
}

.nav-fake-news-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-fake-news-link img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.nav-fake-news-link:hover {
    transform: translateY(-2px);
}

.nav-fake-news-link:hover img {
    filter: drop-shadow(0 0 5px rgba(255, 59, 59, 0.4));
}


.navbar-bottom {
    background-color: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    height: 44px;
    width: 100%;
}

.navbar-bottom .container {
    height: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 10px;
    height: 100%;
    margin: 0;
    padding: 0;
}

.nav-links li {
    height: 100%;
}

.nav-links li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 15px;
    height: 100%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.03);
}

.nav-links li a.active {
    color: var(--accent-color);
}

/* Mobile Adjustments */
@media (max-width: 992px) {
    .navbar-top {
        height: 60px;
    }

    .nav-socials {
        display: none;
    }

    .nav-live {
        display: flex !important;
        padding: 6px 10px;
        font-size: 0.7rem;
        border-radius: 6px;
        gap: 5px;
        margin-right: 12px;
        height: 32px;
        align-items: center;
        background: rgba(255, 59, 59, 0.15) !important;
        border: 1px solid rgba(255, 59, 59, 0.3);
    }

    .nav-live i {
        font-size: 0.8rem;
    }

    .nav-live span {
        font-weight: 800;
    }

    .navbar-bottom {
        display: block;
        height: 0;
        border: none !important;
        /* Remove border */
        position: relative;
    }

    .nav-icons-group {
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        padding-left: 12px;
        margin-left: 0;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px;
        /* Smaller width */
        height: 16px;
        /* Smaller height */
        cursor: pointer;
        z-index: 1003;
        /* Highest z-index to be always clickable */
        order: 10;
        margin-left: 15px;
        padding: 0;
        background: transparent;
        border: none;
    }

    .mobile-menu-btn span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: var(--text-color);
        border-radius: 2px;
        transition: all 0.3s ease-in-out;
        transform-origin: center;
        /* Change to center for easier X */
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        /* Move to center and rotate */
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        /* Move to center and rotate */
    }

    /* Prevent Search Overlap on Mobile */
    .search-overlay.active {
        width: auto !important;
        left: 15px !important;
        right: 60px !important;
        /* Leave space for menu button (24px + 15px + buffer) */
        max-width: none !important;
    }

    .no-scroll {
        overflow: hidden !important;
    }

    .nav-links {
        position: fixed !important;
        top: 60px !important;
        /* Below navbar-top */
        left: 0 !important;
        width: 100% !important;
        height: 0 !important;
        background: var(--bg-color) !important;
        /* Match theme background */
        display: flex !important;
        /* Ensure flex is applied */
        flex-direction: column !important;
        align-items: stretch !important;
        /* Stretch items to full width */
        overflow: hidden !important;
        transition: height 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
        /* Smooth height transition */
        z-index: 1002 !important;
        /* Above everything except button */
        padding: 0 !important;
        margin: 0 !important;
        /* Reset margin */
        gap: 0 !important;
        /* Remove gap */
        list-style: none !important;
        /* Ensure no bullets */
        border-top: none !important;
    }

    .nav-links.active {
        height: calc(100vh - 60px) !important;
        /* Full screen height minus header */
        overflow-y: auto !important;
        /* Scrollable if many items */
        padding-bottom: 40px !important;
        padding-top: 10px !important;
        border-top: 1px solid var(--border-color) !important;
        /* Only when active */
    }

    .nav-links li {
        width: 100% !important;
        height: auto !important;
        /* Auto height for items */
        border-bottom: 1px solid var(--border-color) !important;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
        display: block !important;
        /* Ensure it's block */
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.1s;
    }

    .nav-links li a {
        padding: 15px 20px !important;
        /* Reduced left padding */
        font-size: 1.1rem !important;
        /* Larger font */
        justify-content: flex-start !important;
        /* Align text left */
        text-align: left !important;
        /* Ensure text alignment */
        width: 100% !important;
        display: flex !important;
        font-weight: 700 !important;
    }
}




.search-overlay {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 0;
    height: 54px;
    /* Slightly taller for card feel */
    background: #111;
    /* Solid dark card background */
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 12px;
    /* Rounded card */
    overflow: visible;
}

.search-overlay.active {
    width: 450px;
    max-width: calc(100% - 30px);
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.search-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

.search-container input {
    width: 100%;
    height: 40px;
    padding: 0 40px 0 15px;
    background: transparent;
    border: none;
    color: #fff;
    /* Text is white for the dark card */
    font-size: 1.05rem;
    font-family: 'Outfit', sans-serif;
    outline: none;
    opacity: 0;
    transition: opacity 0.2s;
}

.search-overlay.active .search-container input {
    opacity: 1;
    transition-delay: 0.1s;
}

.close-search {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    color: #fff;
    /* X is now white */
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.close-search:hover {
    opacity: 1;
}


.search-overlay.active .close-search {
    display: block;
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1001;
}

.search-overlay.active .search-results:not(:empty) {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    text-decoration: none;
    transition: background 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.search-result-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-info h4 {
    font-size: 0.95rem;
    margin: 0;
    color: var(--text-color);
    line-height: 1.3;
}

.search-result-info span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Light Mode Overrides */
body.light-mode .navbar {
    background-color: #fff;
    border-color: #eee;
}

body.light-mode .navbar-bottom {
    background-color: #f9f9f9;
    border-color: #eee;
}

body.light-mode .nav-links li a {
    color: #444;
}

body.light-mode .nav-links li a:hover,
body.light-mode .nav-links li a.active {
    background: rgba(0, 0, 0, 0.03);
}

body.light-mode .nav-socials a {
    background: transparent;
    color: #333;
}


body.light-mode .search-overlay {
    background: #fff;
}

body.light-mode .search-results {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
        position: fixed;
        /* Changed to fixed for full screen coverage if needed */
        top: 60px;
        left: 0;
        width: 100%;
        background: #111;
        flex-direction: column;
        height: calc(100vh - 60px);
        padding: 20px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        gap: 0;
        overflow-y: auto;
    }


    body.light-mode .nav-links {
        background: #fff;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links li a {
        height: 55px;
        padding: 0 30px;
        font-size: 0.9rem;
        width: 100%;
        justify-content: flex-start;
        color: #fff;
    }

    .nav-links li a:hover {
        background: rgba(255, 255, 255, 0.05);
    }


    .nav-links li a {
        height: 50px;
        justify-content: center;
        width: 100%;
        font-size: 0.9rem;
    }
}

/* Story Modal Viewer */
.story-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.story-modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-video-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 90vh;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.story-video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-progress-bar {
    position: absolute;
    bottom: 15px;
    top: auto;
    left: 20px;
    right: 20px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    z-index: 10;
}

.story-progress-fill {
    height: 100%;
    background: white;
    width: 0%;
    transition: width 0.1s linear;
}

.story-header {
    position: absolute;
    bottom: 30px;
    top: auto;
    left: 20px;
    right: 20px;
    z-index: 10;
    padding-left: 5px;
}

.story-header h3 {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Story Controls */
.story-top-controls {
    position: absolute;
    top: 10px;
    left: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    /* Let clicks pass through empty areas */
}

.story-views-display {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    pointer-events: auto;
}

.story-right-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    pointer-events: auto;
}

.story-close,
.story-mute {
    background: transparent;
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: transform 0.2s;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.story-close {
    font-size: 2.2rem;
    line-height: 1;
}

.story-mute {
    font-size: 1.2rem;
}

.story-close:hover,
.story-mute:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .story-modal-content {
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        /* Dynamic viewport height for mobile */
    }

    .story-video-container {
        max-width: 100%;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
    }

    .story-top-controls {
        top: 20px;
        /* Safe area from top */
        left: 15px;
        right: 15px;
    }

    .story-progress-bar {
        left: 15px;
        right: 15px;
        bottom: 30px;
    }

    .story-header {
        left: 15px;
        right: 15px;
        bottom: 45px;
    }
}

/* Z-Index Adjustments for Search Visibility */
.navbar {
    z-index: 10000 !important;
}

.search-overlay {
    z-index: 10001 !important;
}

.search-results {
    z-index: 10002 !important;
}

.featured-section {
    position: relative;
    z-index: 1;
}