/* Gündem Soft - Modern News Portal Design System (FULL PREMIUM RESTORE 04:30) */

:root {
    --primary: #dc2626;
    --primary-dark: #991b1b;
    --secondary: #0f172a;
    --accent: #3b82f6;
    --bg-site: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-dark: #0f172a;
    --border: #e2e8f0;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --container: 1400px;
}

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

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-site);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Top Bar --- */
.top-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.top-bar-divider {
    display: none;
}

.desktop-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.show-on-mobile {
    display: none;
}

.stats-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 4px 12px;
    background: #f1f5f9;
    border-radius: 30px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.stats-item:hover {
    background: #fff;
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.stats-item i {
    color: var(--primary);
    width: 14px;
    text-align: center;
}

.stats-item strong {
    color: var(--secondary);
    font-weight: 800;
}

.top-bar-right .auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-btn {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-login {
    background: var(--secondary);
    color: white;
}

.btn-register {
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn-login:hover {
    background: #000;
}

.btn-register:hover {
    background: var(--primary);
    color: white;
}


/* --- Header Ad Constraints --- */
.header-ad, .ad-track-wrapper, .ad-container, .sidebar-ad-box {
    max-width: 100% !important;
    overflow: hidden !important;
}

.ad-container img, .ad-container iframe, 
.ad-track-wrapper img, .ad-track-wrapper iframe,
.sidebar-ad-box img, .sidebar-ad-box iframe {
    max-width: 100% !important;
    height: auto !important;
}

/* --- Navigation --- */
header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.nav-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    border-bottom: 1px solid #e2e8f0;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--secondary);
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-active {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

.nav-item-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    padding: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1001;
    list-style: none;
}

.nav-item-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
}

.dropdown-menu li a:hover {
    background: var(--bg-site);
}

/* --- Mobile Drawer --- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

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

.mobile-drawer {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 2000;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-drawer.active {
    left: 0;
    box-shadow: 15px 0 50px rgba(0, 0, 0, 0.15);
}

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

.close-drawer {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    background: var(--bg-site);
    border-radius: 50%;
    transition: 0.3s;
}

.close-drawer:hover {
    background: var(--primary);
    color: white;
}

.drawer-content {
    flex: 1;
}

.drawer-stats {
    padding: 20px;
    background: var(--bg-site);
    margin: 15px;
    border-radius: var(--radius-md);
}

.drawer-stats-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.drawer-stats-item i {
    color: var(--primary);
    width: 20px;
}

.drawer-stats-item strong {
    color: var(--primary);
}

.drawer-links {
    list-style: none;
    padding: 10px 15px;
}

.drawer-links li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 15px;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: var(--radius-sm);
    transition: 0.3s;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.drawer-links li a i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-site);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: 0.3s;
}

.drawer-links li a:hover {
    background: var(--bg-site);
    color: var(--primary);
}

.drawer-links li a:hover i {
    background: var(--primary);
    color: white;
}

.mobile-menu-btn {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

/* --- Search Overlay --- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(8px);
    z-index: 2200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.search-container {
    width: 90%;
    max-width: 900px;
    text-align: center;
    transform: translateY(30px);
    transition: 0.5s 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active .search-container {
    transform: translateY(0);
}

.search-input-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

.search-container input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: none;
    border-bottom: 3px solid rgba(255, 255, 255, 0.1);
    padding: 25px 80px 25px 30px;
    font-size: 3rem;
    color: white;
    font-family: 'Outfit';
    outline: none;
    transition: 0.3s;
    border-radius: 12px 12px 0 0;
}

.search-container input:focus {
    background: rgba(255, 255, 255, 0.07);
    border-bottom-color: var(--primary);
}

.search-submit-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-submit-btn:hover {
    background: white;
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.search-quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
    animation: fadeIn 0.8s ease forwards;
}

.search-quick-links span {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    width: 100%;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.search-quick-links a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: 0.3s;
}

.search-quick-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.search-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.3s;
}

.search-close:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

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

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

@media (max-width: 768px) {
    .search-container input {
        font-size: 1.8rem;
        padding: 20px 60px 20px 20px;
    }

    .search-submit-btn {
        width: 40px;
        height: 40px;
        right: 10px;
    }
}

/* --- Breaking News Ticker --- */
.marquee-container {
    background: #000;
    color: white;
    height: 48px;
    display: flex;
    align-items: center;
    overflow: hidden;
    font-weight: 600;
}

.marquee-label {
    background: var(--primary);
    padding: 0 30px;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
    white-space: nowrap;
}

.marquee-track {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: ticker 40s linear infinite;
    gap: 0;
}

.ticker-strip {
    display: flex;
    align-items: center;
    gap: 0;
    margin-right: 2rem;
}

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

    100% {
        transform: translateX(-50%);
    }
}

/* --- Stories Section --- */
.stories-outer-container {
    position: relative;
    max-width: var(--container);
    margin: 20px auto;
}
.stories-wrapper {
    margin: 0;
    padding: 10px 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    text-align: center;
}
.stories-wrapper::-webkit-scrollbar {
    display: none;
}
.stories-container {
    display: inline-flex;
    gap: 15px;
    text-align: left;
    padding: 0 10px;
}

.story-scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 50%;
    z-index: 20;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    color: var(--secondary);
    font-size: 14px;
}

.stories-outer-container:hover .story-scroll-btn {
    opacity: 1;
    visibility: visible;
}

.story-scroll-btn.prev {
    left: -22px;
}

.story-scroll-btn.next {
    right: -22px;
}

.story-scroll-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.2);
}

@media (max-width: 1440px) {
    .story-scroll-btn.prev { left: 10px; }
    .story-scroll-btn.next { right: 10px; }
    .stories-outer-container:hover .story-scroll-btn {
        opacity: 0.9;
    }
}

@media (max-width: 1024px) {
    .story-scroll-btn {
        display: none !important;
    }
}

.story-item {
    display: inline-block;
    cursor: pointer;
    flex-shrink: 0;
    width: 80px;
    text-align: center;
}
.story-ring {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    margin: 0 auto 5px auto;
    transition: transform 0.2s;
}
.story-item:hover .story-ring {
    transform: scale(1.05);
}
.story-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    background: #fff;
}
.story-modal {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: #111;
    z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s;
}
.story-modal.active {
    opacity: 1; visibility: visible;
}
.story-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2); color: white; border: none;
    width: 44px; height: 44px; border-radius: 50%; font-size: 20px;
    cursor: pointer; z-index: 10000;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px); transition: 0.3s;
}
.story-nav-btn:hover { background: rgba(255, 255, 255, 0.4); }
.story-nav-btn.prev { left: 20px; }
.story-nav-btn.next { right: 20px; }
.story-close {
    position: absolute; top: 20px; right: 20px;
    background: transparent; color: white; border: none; font-size: 30px; cursor: pointer; z-index: 10000;
}
.story-modal-content {
    position: relative;
    width: 100%; max-width: 480px; height: 100vh; max-height: 850px;
    background: #050505; display: flex; flex-direction: column; overflow: hidden;
}
.story-progress {
    position: absolute; top: 10px; left: 10px; right: 10px;
    height: 3px; background: rgba(255,255,255,0.3); border-radius: 3px; overflow: hidden; z-index: 2;
}
.story-progress-bar {
    height: 100%; width: 0; background: white;
}
.story-modal-content img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; padding-bottom: 80px;
}
.story-details {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 30px 20px;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 10%, transparent); z-index: 2;
    text-align: center;
}
.story-details h2 {
    color: white; font-size: 1.5rem; margin-bottom: 20px; text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.story-btn {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: white; padding: 12px 25px; border-radius: 30px;
    text-decoration: none; font-weight: bold; font-size: 1rem;
    box-shadow: 0 4px 15px rgba(220,38,38,0.5);
}

/* --- Slider & Side News --- */
.slider-hero-layout {
    display: grid;
    grid-template-columns: 2.8fr 1fr;
    gap: 20px;
    margin: 20px 0;
    min-height: 520px;
}

.slider-container {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 100%;
}

.main-slider {
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: 0.6s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

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

.slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
}

.slide-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    color: white;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: var(--primary);
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.slide-content h1 {
    font-size: 2.8rem;
    color: white;
    line-height: 1.1;
    margin-bottom: 10px;
}

.slider-numbers {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-num-item {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    cursor: pointer;
    font-size: 0.8rem;
}

.slider-num-item.active {
    background: var(--primary);
}

.slide-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.slider-side-news {
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 100%;
}

.side-news-item {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex: 1;
    position: relative;
    border: 1px solid var(--border);
    text-decoration: none;
}

.side-news-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.side-news-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 70%);
    z-index: 2;
}

.side-news-content {
    position: absolute;
    bottom: 12px;
    left: 15px;
    right: 15px;
    z-index: 3;
    color: white;
}

.side-badge {
    font-size: 0.65rem;
    padding: 3px 10px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: inline-block;
}

.side-news-content h3 {
    font-size: 0.95rem;
    line-height: 1.25;
    color: white;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

/* --- Trending Row --- */
.trending-section {
    margin-top: 50px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-title::after {
    content: '';
    flex: 1;
    height: 3px;
    background: var(--border);
    border-radius: 3px;
}

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

.view-all {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

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

.trending-row-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.trending-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
}

.trending-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.t-card-img {
    position: relative;
    aspect-ratio: 1.5;
    overflow: hidden;
}

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

.t-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.65rem;
    padding: 4px 10px;
    color: white;
    font-weight: 800;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}

.t-card-content {
    padding: 15px;
}

.t-card-content h3 {
    font-size: 1rem;
    line-height: 1.35;
    margin-bottom: 10px;
    font-weight: 700;
    height: 2.7em;
    overflow: hidden;
}

.t-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- Categorical Grid --- */
.categorical-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 25px;
    margin-top: 50px;
    align-items: flex-start;
}

.category-news-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.category-column-title {
    font-size: 1.4rem;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 4px solid var(--secondary);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.category-news-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

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

.category-news-thumb {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.category-news-content {
    flex: 1;
}

.category-news-content h4 {
    font-size: 0.9rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 5px;
    height: 2.6em;
    overflow: hidden;
}

.category-news-content span {
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* --- Widgets --- */
.widget-card {
    background: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 25px;
}

.widget-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
}

.widget-title i {
    color: var(--primary);
}

/* --- Authors Widget Premium --- */
.authors-premium-widget {
    background: #ffffff;
    border-radius: 22px !important;
    padding: 28px !important;
}

.author-widget-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: 18px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.author-widget-item:hover {
    background: #fff;
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

.author-avatar-wrap {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
}

.author-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.author-widget-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.3px;
}

.ml-auto {
    margin-left: auto;
}

.author-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    text-decoration: none;
}

.author-item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-dark);
    display: block;
}

.author-title {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.finance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.finance-item {
    background: #f8fafc;
    padding: 12px 10px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.finance-item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.finance-label {
    font-size: 0.65rem;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
    color: var(--text-muted);
}

.finance-value {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--secondary);
    display: block;
    letter-spacing: -0.5px;
}

.finance-currency {
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.finance-change {
    font-size: 0.7rem;
    font-weight: 800;
}

.finance-change.up {
    color: #22c55e;
}

.finance-change.down {
    color: #ef4444;
}

/* --- Prayer Widget Premium --- */
.prayer-premium-widget {
    background: #ffffff;
    border-radius: 22px !important;
    padding: 28px !important;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.prayer-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px 10px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.prayer-time.is-next {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.1);
}

.prayer-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.prayer-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.5px;
}

.prayer-time.is-next .prayer-val {
    color: var(--primary);
}

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

.weather-item {
    background: var(--bg-site);
    padding: 12px;
    border-radius: 10px;
    text-align: center;
}

.weather-city {
    font-size: 0.75rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.weather-info {
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* --- Sports Widget Premium --- */
.sports-premium-widget {
    background: #ffffff;
    border-radius: 22px !important;
    padding: 28px !important;
}

.standings-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-table th {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.standings-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #f8fafc;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
}

.standings-table tr:last-child td {
    border-bottom: none;
}

.standings-table tr:hover td {
    background: #f8fafc;
}

/* --- Category & Author Hero --- */
.category-hero {
    background: var(--bg);
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.category-hero .container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-hero .badge {
    margin: 0;
    padding: 3px 8px;
    font-size: 0.6rem;
    height: fit-content;
    background: var(--primary);
    color: #fff;
}

.hero-title {
    font-size: 1.4rem;
    margin: 0;
    font-weight: 800;
    color: #000;
    line-height: 1;
    letter-spacing: -0.02em;
}

.category-hero p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin: 0;
    color: var(--text-main);
    border-left: 2px solid var(--border);
    padding-left: 15px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .category-hero {
        padding: 12px 0;
    }

    .category-hero .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

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

    .category-hero p {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border);
        padding-top: 5px;
        width: 100%;
    }
}

/* --- Premium Article Grid (for Author & Category) --- */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 30px;
}

@media (max-width: 1400px) {
    .premium-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

@media (max-width: 576px) {
    .premium-grid {
        grid-template-columns: 1fr;
    }
}

.premium-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}

.p-card-img {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.premium-card:hover .p-card-img img {
    transform: scale(1.05);
}

.p-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    border-radius: 8px;
    z-index: 2;
}

.p-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.p-card-body h3 {
    font-size: 1.15rem;
    line-height: 1.35;
    margin-bottom: 12px;
    height: 3.1em;
    overflow: hidden;
}

.p-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.p-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}


/* --- News Detail Layout --- */
.article-container {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 3.5fr);
    gap: 30px;
    margin: 40px 0;
    align-items: start;
}

.article-main {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
    min-width: 0;
    width: 100%;
    overflow: hidden;
}

#articleLoadContainer {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-muted);
}

.breadcrumb a {
    color: var(--primary);
}

.breadcrumb i {
    font-size: 0.7rem;
    opacity: 0.5;
}

.article-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--secondary);
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    word-break: break-word;
}

.article-excerpt {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 30px;
    font-weight: 500;
}

.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 35px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border);
    background: #f1f5f9;
}

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

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

.author-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    transition: 0.2s;
}

.author-name:hover {
    color: var(--primary);
}

.meta-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-divider {
    color: var(--border);
}

/* --- Author Bio Card --- */
.author-bio-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    margin: 50px 0;
    display: flex;
    gap: 25px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.author-bio-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--primary);
}

.bio-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

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

.bio-content {
    flex: 1;
}

.bio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.bio-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.bio-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--secondary);
    margin: 0;
}

.bio-social {
    display: flex;
    gap: 12px;
}

.bio-social a {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}

.bio-social a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-3px);
}

.bio-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-main);
    margin: 0;
    opacity: 0.85;
}

.share-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.share-btn {
    padding: 8px 16px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
    text-decoration: none;
    white-space: normal;
    word-break: break-all;
    max-width: 100%;
    overflow: hidden;
}

.share-btn.fb {
    background: #1877f2;
}

.share-btn.tw {
    background: #1da1f2;
}

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

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

.featured-img-wrap {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}

.featured-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary);
}

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

.article-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 30px 0;
}


.article-body-content iframe {
    max-width: 100%;
    width: 100% !important;
    aspect-ratio: 16/9;
    border-radius: 12px;
    margin: 20px 0;
}

/* Related News */
.related-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
}

.related-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-card {
    text-decoration: none;
}

.related-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
}

.related-card h4 {
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--secondary);
    font-weight: 700;
}

.related-card:hover h4 {
    color: var(--primary);
}

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

@media (max-width: 576px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* sidebar refinements */
.widget-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 25px;
}

.widget-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
}

/* Latest News in Sidebar */
.latest-news-list {
    display: grid;
    gap: 15px;
}

.latest-news-item {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 12px;
    text-decoration: none;
}

.latest-news-item img {
    width: 70px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.latest-news-item h4 {
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--secondary);
    font-weight: 700;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

.latest-news-item:hover h4 {
    color: var(--primary);
}

@media (max-width: 1200px) {
    .article-container {
        grid-template-columns: 1fr;
        gap: 25px;
        width: 100%;
        overflow: hidden;
    }
    
    .article-container > * {
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .author-info {
        width: 100%;
    }

    .article-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

/* --- Footer --- */
/* --- Premium Footer --- */
footer {
    background: #0f172a;
    color: #f8fafc;
    padding: 40px 0 0;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
}

.footer-logo {
    display: inline-block;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white !important;
    text-transform: uppercase;
    font-weight: 900;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.85rem;
    max-width: 350px;
}

.footer-contact-info div {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-size: 0.8rem;
    transition: 0.3s;
}

.footer-contact-info div i {
    color: var(--primary);
    font-size: 0.9rem;
    width: 18px;
}

.footer-contact-info div:hover {
    color: white;
}

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

.footer-social a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

footer h4 {
    color: white;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-col-links ul {
    list-style: none;
    padding: 0;
}

.footer-col-links ul li {
    margin-bottom: 8px;
}

.footer-col-links ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-col-links ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-col-links ul li a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: 0.3s;
    color: var(--primary);
}

.footer-col-links ul li a:hover::before {
    opacity: 1;
    left: -12px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #64748b;
    font-size: 0.8rem;
    gap: 5px;
}

.footer-copy strong {
    color: #cbd5e1;
}

.footer-dev span {
    color: var(--primary);
    font-weight: 700;
}

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

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* --- Responsive fixes --- */
@media (max-width: 1440px) {
    .categorical-grid {
        grid-template-columns: 1fr;
    }
    
    .category-news-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .widgets-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1200px) {
    .slider-hero-layout {
        grid-template-columns: 1fr;
    }

    .slider-side-news {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links {
        display: none;
    }

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

@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .show-on-mobile {
        display: block !important;
    }

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

        100% {
            transform: translateX(-50%);
        }
    }

    .top-bar {
        display: block;
        padding: 8px 0;
        overflow: hidden;
        width: 100%;
        max-width: 100%;
    }

    .top-bar-inner {
        display: block;
    }

    .top-bar-left {
        display: block;
    }

    .mobile-stats-marquee {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        position: relative;
        min-width: 0; /* Prevents flex parent from expanding */
    }

    .mobile-marquee-track {
        display: flex;
        width: max-content;
        animation: mobileTopBarMarquee 20s linear infinite;
        flex-wrap: nowrap;
        align-items: center;
    }

    .mobile-marquee-track:hover,
    .mobile-marquee-track:active {
        animation-play-state: paused;
    }

    .top-bar-right {
        display: none;
    }

    #date-display,
    .top-bar-divider {
        display: none;
    }

    .slider-hero-layout {
        display: block; /* Collapse grid approach */
        min-height: auto;
        gap: 15px;
        margin: 10px 0;
    }

    .slider-container {
        height: 250px;
        margin-bottom: 15px;
    }

    .slide-content {
        bottom: 60px;
        left: 15px;
        right: 15px;
    }


    .slide-content h1 {
        font-size: 1.4rem !important;
        line-height: 1.2;
    }

    .slide-content .badge {
        margin-bottom: 8px;
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    .slider-numbers {
        bottom: 15px;
        left: 10px;
        right: 10px;
        gap: 5px;
        display: flex;
        overflow-x: auto;
        scrollbar-width: none;
        justify-content: flex-start;
        padding-bottom: 5px;
    }

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


    .slider-num-item {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
    }

    .slider-side-news {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        height: auto;
    }

    .side-news-item {
        height: 100px;
    }

    .side-news-content h3 {
        font-size: 0.85rem !important;
    }

    .trending-row-5 {
        grid-template-columns: repeat(1, 1fr); /* 1 column for trending on mobile */
        gap: 15px;
    }

    .categorical-grid {
        display: block;
    }

    .category-news-columns {
        display: block;
    }

    .news-card-cat {
        margin-bottom: 20px;
    }

    /* Standardize all news grids to 1 column on mobile */
    .news-grid, 
    .cat-box-grid,
    .cat-grid-5 {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .widgets-column {
        grid-template-columns: 1fr;
        max-width: 100%;
        overflow: hidden;
    }

    .widget-card {
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .authors-premium-widget {
        padding: 20px !important;
    }

    .authors-slider-wrapper {
        width: 100%;
        overflow: hidden;
    }


    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* --- Breaking News Ticker --- */
.ticker-wrapper {
    background: #fff;
    border-bottom: 1px solid var(--border);
    height: 45px;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 100;
    width: 100%;
    max-width: 100%;
}

.ticker-label {
    background: var(--primary);
    color: #fff;
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 0.8rem;
    position: relative;
    z-index: 10;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticker-label::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 45px solid var(--primary);
    border-right: 16px solid transparent;
}

.ticker-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-width: 0; /* Prevents flex parent from expanding */
}

.ticker-marquee {
    display: flex;
    white-space: nowrap;
    animation: ticker-scroll 60s linear infinite;
    padding-left: 30px;
}

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

.ticker-item {
    color: var(--secondary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    text-decoration: none;
}

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

.ticker-item i {
    color: var(--primary);
    font-size: 0.8rem;
}

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

    100% {
        transform: translateX(-50%);
    }
}

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

    .ticker-label::after {
        border-top-width: 45px;
        border-right-width: 12px;
        right: -12px;
    }

    .ticker-item {
        font-size: 0.8rem;
        margin-right: 30px;
    }
}

/* Standings Table Responsive */
.standings-table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.standings-table {
    min-width: 280px;
}

/* Header Granular Responsive */
@media (max-width: 1100px) {
    .nav-links {
        gap: 10px;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0 5px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .header-main .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 15px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.2rem;
        max-width: 180px;
    }
    
    .logo img {
        max-height: 35px;
    }
}

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

    .main {
        padding: 0 12px;
    }
}


/* --- Universal Ad Responsiveness --- */
.ad-track-wrapper, 
.ad-container, 
.header-ad, 
.post-article-ad, 
.side-ad-container {
    max-width: 100% !important;
    overflow: hidden !important;
}

.ad-track-wrapper img, 
.ad-track-wrapper iframe, 
.ad-track-wrapper ins,
.ad-container img, 
.ad-container iframe, 
.ad-container ins,
.header-ad img,
.header-ad iframe,
.header-ad ins,
.post-article-ad img,
.post-article-ad iframe,
.post-article-ad ins,
.bottom-ad-wrapper img,
.bottom-ad-wrapper iframe,
.bottom-ad-wrapper ins {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Side Wallpaper Ads */
.side-ad-fixed {
    position: fixed;
    top: 58%;
    transform: translateY(-50%);
    width: 160px;
    height: 600px;
    z-index: 990; /* Lower than header z-index 1000 */
    display: none; /* Initially hidden, JS will show if not dismissed */
}

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

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

.side-ad-container {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.side-ad-close {
    position: absolute;
    top: -25px;
    right: 0;
    width: 20px;
    height: 20px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: 0.2s;
}

.side-ad-close:hover {
    background: #ef4444;
}

/* Bottom Sticky Ad */
.bottom-ad-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000; /* Increased z-index */
    display: none; /* Controlled by JS */
    padding: 20px 0 10px 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8));
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    animation: stickySlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bottom-ad-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50px;
}

.bottom-ad-close {
    position: absolute;
    top: -45px;
    right: 15px;
    background: #0f172a;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    z-index: 10001;
}

.bottom-ad-close:hover {
    background: #ef4444;
    transform: rotate(90deg);
}


/* --- Magazine & Carousel Sections --- */
.magazines-section {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.mag-carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.mag-carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.mag-carousel-track::-webkit-scrollbar {
    display: none;
}

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

    .mag-carousel-track {
        gap: 15px;
    }
}

@keyframes stickySlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 768px) {
    .bottom-ad-sticky {
        padding: 15px 0 5px 0;
    }
    .bottom-ad-close {
        top: -40px;
        right: 10px;
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 1200px) {
    .side-ad-fixed {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .article-main {
        padding: 15px;
    }

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

/* --- Empty State --- */
.no-news-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 40px;
    background: #f8fafc;
    border-radius: 20px;
    border: 2px dashed #e2e8f0;
    color: var(--text-muted);
    margin: 40px 0;
}

.no-news-found i {
    font-size: 4rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    display: block;
}

.no-news-found h3 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
    font-family: 'Outfit';
}

.no-news-found p {
    font-size: 1.1rem;
}

/* --- Poll Widget --- */
.poll-widget {
    background: #fff;
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.poll-question {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.poll-option-btn {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.poll-option-btn:hover {
    background: #f1f5f9;
    border-color: var(--accent);
    color: var(--accent);
}

.poll-result-row {
    margin-bottom: 12px;
}

.poll-result-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-main);
}

.poll-progress-bg {
    height: 8px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.poll-progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 10px;
    transition: width 1s cubic-bezier(0.1, 0, 0, 1);
}

.poll-footer {
    margin-top: 20px;
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

/* --- Firma Rehberi Carousel --- */
.companies-carousel-section {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.comp-carousel-wrapper {
    position: relative;
    width: 100%;
}

.comp-nav-btn {
    width: 32px; height: 32px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-main);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}
.comp-nav-btn:hover {
    background: var(--bg-site);
    border-color: var(--primary);
    color: var(--primary);
}

.comp-carousel-track {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding-bottom: 10px;
}
.comp-carousel-track::-webkit-scrollbar { display: none; }

.comp-item {
    flex-shrink: 0;
    width: 200px;
    height: 100px;
    margin-right: 30px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.comp-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.comp-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.comp-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.comp-no-logo {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

@keyframes scroll-companies {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 15px)); }
}

@media (max-width: 768px) {
    .companies-carousel-section { padding: 20px; }
    .comp-item { width: 140px; height: 80px; margin-right: 15px; }
    @keyframes scroll-companies {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-50% - 7.5px)); }
    }
}

/* --- E-Dergi Carousel on Homepage --- */
.mag-carousel-wrapper {
    position: relative;
    width: 100%;
    margin-top: 20px;
}
.mag-carousel-track {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding-bottom: 15px;
    gap: 20px;
}
.mag-carousel-track::-webkit-scrollbar { display: none; }
.mag-carousel-track .mag-card {
    flex-shrink: 0;
    width: 240px;
    display: block;
}

@media (max-width: 768px) {
    .mag-carousel-track .mag-card {
        width: 170px;
    }
}

/* --- E-Dergi Grid --- */
.magazines-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.mag-card {
    display: block;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
    aspect-ratio: 3/4;
    transition: 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.mag-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.mag-cover {
    width: 100%;
    height: 100%;
    position: relative;
}

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

.mag-no-cover {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #94a3b8;
}

.mag-card:hover .mag-cover img {
    transform: scale(1.08);
}

.mag-overlay-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 50%, rgba(15, 23, 42, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: 0.3s;
}

.mag-card:hover .mag-overlay-content {
    opacity: 1;
}

.mag-overlay-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
    transform: translateY(10px);
    transition: 0.3s 0.1s;
}

.mag-card:hover .mag-overlay-btn {
    transform: translateY(0);
}

.mag-title {
    font-weight: 700;
    font-size: 16px;
    color: white;
    line-height: 1.3;
    transform: translateY(10px);
    transition: 0.3s 0.15s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.mag-card:hover .mag-title {
    transform: translateY(0);
}

@media (max-width: 992px) {
    .magazines-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .magazines-grid { grid-template-columns: repeat(2, 1fr); }
    .mag-title { font-size: 13px; padding: 10px; }
}

@media (max-width: 480px) {
    .magazines-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* --- Obituary Section --- */
.obituary-section {
    background: #1f5c53;
    border-radius: var(--radius-md);
    padding: 15px;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 4px 15px rgba(31, 92, 83, 0.2);
}

.obituary-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 160px;
    padding: 0 15px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.obituary-header .ob-title {
    font-size: 2rem;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 25px;
    font-family: 'Outfit', sans-serif;
}

.obituary-header .ob-title strong {
    color: #8bd5b9;
    font-weight: 800;
    position: relative;
    display: inline-block;
}



.go-page-btn {
    background: #333638;
    color: #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: 0.3s;
}

.go-page-btn i {
    font-size: 0.75rem;
}

.go-page-btn:hover {
    background: #1a1e20;
    color: #fff;
}

.obituary-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
    padding-bottom: 5px;
    flex: 1;
}

.obituary-list::-webkit-scrollbar {
    height: 6px;
}
.obituary-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 6px;
}

.obituary-card {
    background: #2b2e30;
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    min-width: 320px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.05);
}

.obituary-name {
    color: #8bd5b9;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255,255,255,0.3);
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.5px;
}

.obituary-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ob-detail-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 0.85rem;
}

.ob-detail-line i {
    width: 16px;
    text-align: center;
    color: #8bd5b9;
}

@media (max-width: 768px) {
    .obituary-section {
        flex-direction: column;
        align-items: stretch;
        gap: 12px; /* Reduced gap between header and list */
    }
    .obituary-header {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 0 0 10px 0; /* Reduced padding */
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        min-width: auto;
    }

    .obituary-header .ob-title {
        margin-bottom: 0;
        display: block;
        font-size: 1.35rem;
        font-weight: 800;
        line-height: 1.1; /* Reduced line height for closer words */
    }
    
    .obituary-header .ob-title strong {
        display: block;
        line-height: 1;
    }

    .obituary-card {
        min-width: 260px; /* Slightly narrower cards for compact feel */
        padding: 12px 16px; /* Reduced internal padding */
    }
}

