/* ==========================================================================
   موقع النقب الإخباري — Main Stylesheet
   Luxury Arabic News Portal Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Lalezar&family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    /* Brand Colors */
    --primary: #d90429;
    --primary-hover: #b00020;
    --primary-light: #fff1f2;
    --primary-glow: rgba(217, 4, 41, 0.35);
    
    --secondary: #f4a261;
    --secondary-dark: #e76f51;
    --gold: #e5a93b;
    
    --navy-dark: #070d19;
    --navy-main: #0b132b;
    --navy-card: #1c2541;
    --navy-light: #243b55;
    
    /* Neutral & Backgrounds */
    --bg-page: #f1f5f9;
    --bg-card: #ffffff;
    --bg-input: #f8fafc;
    
    /* Typography Colors */
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --white: #ffffff;
    
    /* Borders & Lines */
    --border-color: #e2e8f0;
    --border-dark: #334155;
    
    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 8px 25px var(--primary-glow);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    
    /* Typography Fonts */
    --font-body: 'Tajawal', sans-serif;
    --font-heading: 'Cairo', 'Tajawal', sans-serif;
    --font-brand: 'Lalezar', cursive;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-body);
    line-height: 1.7;
    font-size: 16px;
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ==========================================================================
   1. Top Bar
   ========================================================================== */
.top-bar {
    background: var(--navy-dark);
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-indicator {
    color: #4ade80;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(74, 222, 128, 0.6);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.top-bar-divider {
    color: rgba(255, 255, 255, 0.2);
}

.date-display {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 0.8rem;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ==========================================================================
   2. Main Header
   ========================================================================== */
.main-header {
    background: var(--bg-card);
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
}

/* Logo */
.brand-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-badge {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.6rem;
    box-shadow: 0 6px 15px var(--primary-glow);
    transition: var(--transition);
}

.brand-logo:hover .logo-badge {
    transform: rotate(-6deg) scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.site-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-title-main {
    font-family: var(--font-brand);
    font-size: 2.2rem;
    color: var(--navy-dark);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.site-title-tag {
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.site-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Header Search */
.header-search-wrap {
    flex: 1;
    max-width: 420px;
}

.header-search-form {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1.5px solid var(--border-color);
    border-radius: 50px;
    padding: 4px 6px 4px 18px;
    transition: var(--transition);
}

.header-search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-light);
    background: var(--white);
}

.header-search-form input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 8px 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-heading);
    outline: none;
}

.header-search-form button {
    background: var(--navy-main);
    color: var(--white);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.header-search-form button:hover {
    background: var(--primary);
    transform: scale(1.05);
}

/* Radio Live Pill */
.header-radio-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #ef233c 100%);
    color: var(--white);
    padding: 8px 20px 8px 14px;
    border-radius: 50px;
    box-shadow: 0 6px 20px var(--primary-glow);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.header-radio-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 4, 41, 0.5);
    color: var(--white);
}

.radio-pill-icon {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.radio-pill-text {
    display: flex;
    flex-direction: column;
}

.pill-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    line-height: 1.2;
}

.pill-status {
    font-size: 0.75rem;
    color: #fef08a;
    font-weight: 600;
}

.live-dot {
    font-size: 0.55rem;
    color: #ef4444;
    animation: blink 1s infinite alternate;
}

@keyframes blink {
    from { opacity: 0.3; }
    to { opacity: 1; }
}

/* ==========================================================================
   3. Main Navigation
   ========================================================================== */
.main-nav {
    background: linear-gradient(90deg, #09152b 0%, #112240 100%);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-bottom: 2px solid var(--primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 20px;
    color: #e2e8f0;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
    color: var(--white);
    background: rgba(217, 4, 41, 0.25);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.nav-item-radio .radio-nav-link {
    color: #fcd34d;
}

.nav-item-radio .radio-nav-link:hover {
    color: #fbbf24;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    padding: 12px 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 700;
    gap: 8px;
    align-items: center;
}

/* ==========================================================================
   4. Breaking News Bar
   ========================================================================== */
.breaking-news-bar {
    background: var(--primary);
    color: var(--white);
    padding: 6px 0;
    box-shadow: 0 2px 10px var(--primary-glow);
}

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

.breaking-badge {
    background: var(--navy-dark);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 4px 16px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.ticker-wrap {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
}

.ticker {
    display: inline-block;
    animation: tickerAnim 35s linear infinite;
}

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

.ticker-item {
    display: inline-block;
    padding: 0 25px;
    font-weight: 600;
    font-size: 1rem;
}

.ticker-bullet {
    color: #fef08a;
    margin-left: 6px;
    font-size: 0.75rem;
}

.ticker-item a {
    color: var(--white);
}

.ticker-item a:hover {
    color: #fef08a;
    text-decoration: underline;
}

@keyframes tickerAnim {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* ==========================================================================
   5. Layout & Content
   ========================================================================== */
.main-wrapper {
    padding: 35px 0 60px;
}

.layout-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 35px;
}

.main-content {
    min-width: 0;
}

/* Section Header Block */
.section-header-block {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    position: relative;
}

.section-main-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--navy-dark);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-page);
    padding-left: 20px;
    z-index: 2;
}

.title-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%);
    color: var(--white);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.section-title-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

/* ==========================================================================
   6. Hero Featured Slider
   ========================================================================== */
.hero-slider-wrap {
    margin-bottom: 40px;
}

.hero-slider {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    aspect-ratio: 16/9;
    max-height: 480px;
    background: var(--navy-main);
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

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

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 13, 25, 0.95) 0%, rgba(7, 13, 25, 0.4) 50%, transparent 100%);
}

.slide-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 35px 30px;
    z-index: 3;
}

.slide-category {
    background: var(--primary);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px var(--primary-glow);
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--white);
}

.slide-title a {
    color: var(--white);
}

.slide-title a:hover {
    color: var(--secondary);
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 30px;
    display: flex;
    gap: 8px;
    z-index: 4;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary);
    width: 32px;
    border-radius: 10px;
}

/* ==========================================================================
   7. News Cards & Grid
   ========================================================================== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
    margin-bottom: 35px;
}

.article-card {
    background: var(--bg-card);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.card-img-wrap {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--navy-dark);
    display: block;
}

.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.article-card:hover .card-img-wrap img {
    transform: scale(1.08);
}

.card-category {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

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

.card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 10px;
    color: var(--navy-dark);
}

.card-title a {
    color: var(--navy-dark);
}

.card-title a:hover {
    color: var(--primary);
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: auto;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Opinion Cards */
.opinion-card {
    border-top: 4px solid #e76f51;
}

.opinion-author-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.author-avatar {
    width: 38px;
    height: 38px;
    background: #fed7aa;
    color: #ea580c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy-dark);
}

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

/* Ad Banners */
.ad-banner {
    margin: 25px 0;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border-color);
    padding: 6px;
}

.ad-banner img {
    width: 100%;
    border-radius: 8px;
}

/* ==========================================================================
   8. Sidebar Widgets
   ========================================================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Radio Premium Widget */
.radio-widget-card {
    background: linear-gradient(145deg, #0b132b 0%, #1c2541 100%);
    border-radius: 16px;
    padding: 25px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(11, 19, 43, 0.4);
    text-align: center;
}

.radio-widget-bg-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--primary);
    filter: blur(60px);
    opacity: 0.3;
    pointer-events: none;
}

.radio-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.radio-live-tag {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.live-blink {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    animation: blink 1s infinite alternate;
}

.radio-freq {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
}

.radio-station-emblem {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: linear-gradient(135deg, var(--primary) 0%, #f4a261 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 6px 20px var(--primary-glow);
}

.radio-widget-title {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    margin-bottom: 4px;
    color: var(--white);
}

.radio-widget-desc {
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 18px;
}

/* Audio Equalizer */
.audio-equalizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 5px;
    height: 24px;
    margin-bottom: 20px;
}

.eq-bar {
    width: 4px;
    background: #4ade80;
    border-radius: 3px;
    height: 6px;
    transition: height 0.2s;
}

.audio-equalizer.playing .eq-bar:nth-child(1) { animation: eqAnim 0.8s infinite ease-in-out; }
.audio-equalizer.playing .eq-bar:nth-child(2) { animation: eqAnim 1.1s infinite ease-in-out 0.2s; }
.audio-equalizer.playing .eq-bar:nth-child(3) { animation: eqAnim 0.7s infinite ease-in-out 0.4s; }
.audio-equalizer.playing .eq-bar:nth-child(4) { animation: eqAnim 1.3s infinite ease-in-out 0.1s; }
.audio-equalizer.playing .eq-bar:nth-child(5) { animation: eqAnim 0.9s infinite ease-in-out 0.3s; }
.audio-equalizer.playing .eq-bar:nth-child(6) { animation: eqAnim 1.2s infinite ease-in-out 0.5s; }
.audio-equalizer.playing .eq-bar:nth-child(7) { animation: eqAnim 0.8s infinite ease-in-out 0.2s; }

@keyframes eqAnim {
    0%, 100% { height: 4px; }
    50% { height: 24px; }
}

.radio-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.radio-big-play-btn {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, var(--primary) 0%, #ef233c 100%);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px var(--primary-glow);
    transition: var(--transition);
}

.radio-big-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(217, 4, 41, 0.6);
}

.radio-full-page-btn {
    font-size: 0.85rem;
    color: #fcd34d;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.radio-full-page-btn:hover {
    color: #fbbf24;
    text-decoration: underline;
}

/* Most Viewed Widget */
.sidebar-widget {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.widget-header {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-icon-fire {
    color: #ea580c;
}

.widget-title-bar {
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

.most-viewed-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ranked-article-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.ranked-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ranked-article-item:hover {
    transform: translateX(-4px);
}

.rank-number {
    font-family: var(--font-brand);
    font-size: 1.5rem;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rank-1 { background: #fef3c7; color: #d97706; }
.rank-2 { background: #f1f5f9; color: #475569; }
.rank-3 { background: #ffedd5; color: #ea580c; }
.rank-4, .rank-5 { background: #f8fafc; color: #94a3b8; }

.ranked-img-wrap {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--navy-dark);
}

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

.ranked-content {
    flex: 1;
    min-width: 0;
}

.ranked-title {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--navy-dark);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ranked-article-item:hover .ranked-title {
    color: var(--primary);
}

.ranked-meta {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    gap: 10px;
}

/* ==========================================================================
   9. Single Article Page
   ========================================================================== */
.single-article-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 35px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.single-category-pill {
    background: var(--primary-light);
    color: var(--primary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 4px 14px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
}

.single-article-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.35;
    color: var(--navy-dark);
    margin-bottom: 18px;
}

.single-article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.single-hero-img-wrap {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--shadow-md);
}

.single-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.single-article-body {
    font-size: 1.15rem;
    line-height: 2.1;
    color: #1e293b;
    margin-bottom: 35px;
}

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

.single-article-body h2, .single-article-body h3 {
    font-family: var(--font-heading);
    color: var(--navy-dark);
    margin: 30px 0 15px;
}

.single-share-bar {
    background: var(--bg-page);
    border-radius: 12px;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    border: 1px solid var(--border-color);
}

.share-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1rem;
    color: var(--navy-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-buttons-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.share-btn-whatsapp { background: #25d366; }
.share-btn-whatsapp:hover { background: #128c7e; color: var(--white); }

.share-btn-facebook { background: #1877f2; }
.share-btn-facebook:hover { background: #0d65d9; color: var(--white); }

.share-btn-twitter { background: #0f172a; }
.share-btn-twitter:hover { background: #000000; color: var(--white); }

.share-btn-copy { background: #475569; }
.share-btn-copy:hover { background: #334155; }

/* ==========================================================================
   10. Category & Search Banners
   ========================================================================== */
.category-header-banner, .search-header-banner {
    background: linear-gradient(135deg, var(--navy-main) 0%, var(--navy-card) 100%);
    border-radius: 16px;
    padding: 35px 30px;
    color: var(--white);
    margin-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-sm);
}

.category-badge-pill, .search-badge-pill {
    background: var(--primary);
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.category-banner-title, .search-banner-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 6px;
}

.category-banner-subtitle, .search-banner-subtitle {
    color: #cbd5e1;
    font-size: 0.95rem;
}

/* Empty State */
.empty-state-box {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 50px 30px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.empty-icon {
    font-size: 3.5rem;
    color: var(--text-light);
    margin-bottom: 18px;
}

.empty-state-box h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.empty-state-box p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
}

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

/* Pagination */
.pagination-nav {
    margin-top: 35px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 8px;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--navy-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.pagination li a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination li.active a {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.site-footer {
    background: var(--navy-dark);
    color: #94a3b8;
    position: relative;
    padding-top: 50px;
}

.footer-top-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-badge {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
}

.footer-logo-title {
    font-family: var(--font-brand);
    font-size: 1.8rem;
    color: var(--white);
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social-bar {
    display: flex;
    gap: 10px;
}

.footer-social-bar a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.footer-social-bar a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 2px;
    background: var(--primary);
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-list a {
    color: #cbd5e1;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.footer-links-list a:hover {
    color: var(--primary);
    transform: translateX(-4px);
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--secondary);
}

.footer-bottom-bar {
    background: #04070d;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    text-align: center;
}

/* Back to Top */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    transform: translateY(-4px);
    background: var(--primary-hover);
}

/* ==========================================================================
   12. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .layout-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .top-bar-container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    
    .header-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .brand-logo {
        flex-direction: column;
        text-align: center;
    }
    
    .header-search-wrap {
        width: 100%;
        max-width: 100%;
    }
    
    .mobile-menu-toggle {
        display: inline-flex;
    }
    
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        background: var(--navy-dark);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 10px 0;
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-link {
        width: 100%;
        padding: 12px 15px;
    }
    
    .slide-title {
        font-size: 1.4rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
