/* Gündem Hub - 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;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-site);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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;
}

.stats-item {
    display: flex;
    align-items: center;
    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;
}


/* --- 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%);
    }
}

/* --- 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;
}

.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: repeat(5, 1fr);
    gap: 25px;
    margin-top: 50px;
    align-items: flex-start;
}

.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;
}

.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);
    word-wrap: 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;
}

.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: nowrap;
}

.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;
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 20px;
    }

    .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: repeat(2, 1fr);
    }

    .widgets-column {
        grid-column: span 2;
        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) {
    .top-bar {
        display: none;
    }

    .slider-hero-layout {
        min-height: auto;
        gap: 15px;
    }

    .slider-container {
        height: 280px;
    }

    .slide-content {
        bottom: 15px;
        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;
        right: 10px;
        gap: 5px;
    }

    .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(2, 1fr);
    }

    .categorical-grid {
        grid-template-columns: 1fr;
    }

    .widgets-column {
        grid-template-columns: 1fr;
    }

    .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;
}

.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;
}

.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.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .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);
}
/* MOBILE SLIDER FIX */
@media (max-width: 768px){

    .slider-container{
        height: 340px !important;
    }

    .slide-content{
        bottom: 58px !important;
        left: 16px !important;
        right: 16px !important;
        z-index: 6 !important;
    }

    .slide-content h1{
        font-size: 1.28rem !important;
        line-height: 1.18 !important;
        margin-bottom: 0 !important;
        padding-right: 10px;
    }

    .slider-numbers{
        left: 14px !important;
        right: 14px !important;
        bottom: 12px !important;
        justify-content: center !important;
        gap: 4px !important;
        z-index: 8 !important;
    }

    .slider-num-item{
        width: 22px !important;
        height: 22px !important;
        font-size: 11px !important;
    }

    .slide::after{
        height: 78% !important;
    }

}
.logo{
    display:flex;
    align-items:center;
    text-decoration:none;
}

.logo img{
    height:42px;
    width:auto;
    display:block;
}