/* =========================================
   1. GLOBAL RESET & FONTS
   ========================================= */
:root {
    --primary: #d63031;  /* Vibrant Red */
    --dark: #2d3436;     /* Charcoal */
    --light: #f5f6fa;    /* Off white */
    --gray: #b2bec3;
    --border: #dfe6e9;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.05);
}

body {
    font-family: 'Roboto', sans-serif;
    background: #fff;
    color: var(--dark);
    margin: 0;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: 0.2s; 
}

a:hover { 
    color: var(--primary); 
}

h1, h2, h3, h4 { 
    font-family: 'Merriweather', serif; 
    font-weight: 700; 
    margin-top: 0; 
    color: #111; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 15px; 
    position: relative; 
}

img { 
    max-width: 100%; 
    display: block; 
}

/* =========================================
   2. TOP ADMIN BAR (FIXED LAYOUT)
   ========================================= */
.admin-bar {
    background: #111;
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
    border-bottom: 3px solid var(--primary);
    width: 100%;
}

.admin-flex {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap; 
    gap: 20px;
}

/* --- SEARCH BOX STYLING --- */
.search-wrapper { 
    position: relative; 
    width: 300px; 
    max-width: 40%;
}

.search-input {
    width: 100%;
    padding: 8px 20px;
    border-radius: 30px; 
    border: 1px solid #444;
    background: #222; 
    color: #fff;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    outline: none;
}

.search-input::placeholder { 
    color: #888; 
}

.search-input:focus { 
    background: #000; 
    border-color: var(--primary); 
    box-shadow: 0 0 10px rgba(214, 48, 49, 0.3);
}

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    background: white;
    color: #222;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    z-index: 10000;
    display: none;
    overflow: hidden;
    border: 1px solid #eee;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #f1f1f1;
    transition: 0.2s;
    cursor: pointer;
    text-decoration: none !important;
}

.search-item:hover { 
    background: #f9f9f9; 
}

.search-item:last-child { 
    border-bottom: none; 
}

.search-item img { 
    width: 45px; 
    height: 45px; 
    border-radius: 4px; 
    object-fit: cover; 
}

.search-info h4 { 
    font-size: 0.9rem; 
    margin: 0; 
    font-family: 'Roboto', sans-serif; 
    line-height: 1.3; 
    color: #333;
}

.search-cat { 
    font-size: 0.7rem; 
    color: var(--primary); 
    text-transform: uppercase; 
    font-weight: 800; 
    display: block; 
    margin-bottom: 2px;
}

/* --- DATE & BUTTON --- */
.top-date {
    color: #bbb;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap; 
}

.fetch-btn { 
    background: var(--primary);
    color: white;
    padding: 6px 20px; 
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.75rem; 
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(214, 48, 49, 0.4);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.fetch-btn:hover { 
    background: #ff4757; 
    transform: translateY(-2px); 
}

/* =========================================
   3. HEADER & LOGO
   ========================================= */
.main-header { 
    padding: 30px 0; 
    border-bottom: 1px solid var(--border); 
    text-align: center; 
}

.logo { 
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900; 
    letter-spacing: -2px;
    color: #000;
    text-transform: uppercase; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    line-height: 1;
    text-decoration: none;
}

.logo span { 
    background: var(--primary);
    color: white;
    padding: 5px 15px; 
    font-family: 'Roboto', sans-serif;
    letter-spacing: 2px;
    font-size: 2.2rem;
    display: inline-block;
    transform: skew(-8deg);
    border-radius: 4px;
}

.navbar {
    border-bottom: 4px solid var(--dark);
    position: sticky; 
    top: 0; 
    background: white; 
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    display: flex; 
    overflow-x: auto; 
    justify-content: center; 
}

.nav-list li a {
    display: block; 
    padding: 18px 22px; 
    font-weight: 800;
    text-transform: uppercase; 
    font-size: 0.8rem; 
    color: #333;
    white-space: nowrap; 
    letter-spacing: 0.5px; 
    border-bottom: 3px solid transparent;
}

.nav-list li a.active, .nav-list li a:hover {
    color: var(--primary); 
    border-bottom-color: var(--primary); 
    background: #fafafa;
}

/* =========================================
   4. MODAL & POPUP
   ========================================= */
.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0,0,0,0.6); 
    backdrop-filter: blur(8px);
    z-index: 9999; 
    display: none; 
    justify-content: center; 
    align-items: center;
}

.modal-box {
    background: white; 
    width: 95%; 
    max-width: 650px; 
    padding: 40px;
    border-radius: 20px; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    text-align: center; 
    max-height: 90vh; 
    overflow-y: auto;
    position: relative; 
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn { 
    from { transform: scale(0.9); opacity: 0; } 
    to { transform: scale(1); opacity: 1; } 
}

.modal-header h2 { 
    font-size: 1.8rem; 
    margin-bottom: 5px; 
    color: #2d3436; 
}

.modal-header p { 
    color: #636e72; 
    margin-bottom: 25px; 
    font-size: 0.95rem; 
}

.cat-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); 
    gap: 12px; 
    margin: 25px 0; 
}

.cat-item input[type="checkbox"] { 
    display: none; 
}

.cat-item label {
    display: block; 
    padding: 12px 5px; 
    background: #f1f2f6; 
    border: 2px solid transparent; 
    border-radius: 12px; 
    font-size: 0.85rem; 
    font-weight: 700; 
    color: #636e72; 
    cursor: pointer; 
    transition: all 0.2s ease; 
    user-select: none;
}

.cat-item label:hover { 
    background: #e6e6e6; 
    transform: translateY(-2px); 
}

.cat-item input:checked + label {
    background: #fff0f0; 
    border-color: var(--primary); 
    color: var(--primary);
    box-shadow: 0 8px 15px rgba(214, 48, 49, 0.15); 
    transform: translateY(-2px);
}

.modal-footer { 
    margin-top: 30px; 
    display: flex; 
    gap: 15px; 
    justify-content: center; 
}

.modal-btn { 
    padding: 14px 35px; 
    border: none; 
    border-radius: 50px;
    font-weight: 800; 
    cursor: pointer; 
    transition: all 0.2s;
    font-size: 1rem; 
    letter-spacing: 0.5px; 
    text-transform: uppercase;
}

.btn-start { 
    background: var(--primary); 
    color: white; 
    box-shadow: 0 5px 20px rgba(214, 48, 49, 0.4); 
}

.btn-start:hover { 
    transform: translateY(-3px); 
    background: #c0392b; 
}

.btn-close { 
    background: #dfe6e9; 
    color: #636e72; 
}

.btn-close:hover { 
    background: #b2bec3; 
}

.progress-wrapper { 
    margin: 25px 0; 
    background: #dfe6e9; 
    border-radius: 20px; 
    overflow: hidden; 
    height: 12px; 
    display: none; 
}

.progress-bar { 
    width: 0%; 
    height: 100%; 
    background: #00b894; 
    transition: width 0.3s ease; 
    box-shadow: 0 0 10px #00b894; 
}

.log-text { 
    font-size: 0.9rem; 
    color: var(--primary); 
    font-weight: 600; 
    min-height: 20px; 
    margin-top: 15px; 
}

/* =========================================
   5. TICKER (New Slanted Design)
   ========================================= */
.ticker-wrap {
    display: flex;
    background: linear-gradient(90deg, #111 0%, #2d3436 100%);
    color: white; 
    height: 46px; 
    line-height: 46px; 
    overflow: hidden;
    border-bottom: 3px solid var(--primary);
    box-shadow: var(--shadow-sm); 
    position: relative;
}

.ticker-heading {
    background: var(--primary); 
    padding: 0 35px;
    font-weight: 900; 
    font-size: 0.85rem; 
    z-index: 10;
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    transform: skewX(-20deg); 
    margin-left: -15px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.3);
}

.ticker-heading span { 
    transform: skewX(20deg); 
    display: block; 
}

.ticker { 
    display: flex; 
    animation: ticker 60s linear infinite; 
    white-space: nowrap; 
    padding-left: 100%; 
}

.ticker-wrap:hover .ticker { 
    animation-play-state: paused; 
}

.ticker-item { 
    padding: 0 35px; 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: #f1f1f1; 
    letter-spacing: 0.5px; 
}

.ticker-item a:hover { 
    color: var(--primary); 
    text-decoration: underline; 
}

.ticker-divider { 
    color: var(--primary); 
    margin: 0 10px; 
    opacity: 0.7; 
}

@keyframes ticker { 
    0% { transform: translate3d(0, 0, 0); } 
    100% { transform: translate3d(-100%, 0, 0); } 
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero-wrapper { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 30px; 
    margin: 50px 0; 
    height: 500px; 
}

.hero-main-col { 
    position: relative; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: var(--shadow); 
    height: 100%; 
}

.hero-big-card { 
    width: 100%; 
    height: 100%; 
    background-size: cover; 
    background-position: center; 
    display: flex; 
    align-items: flex-end; 
    position: relative; 
    transition: transform 0.5s; 
}

.hero-main-col:hover .hero-big-card { 
    transform: scale(1.02); 
}

.hero-big-overlay { 
    background: linear-gradient(to top, rgba(0,0,0,0.95), transparent); 
    width: 100%; 
    padding: 40px; 
    color: white; 
    pointer-events: none; 
}

.hero-big-overlay h1 { 
    font-size: 2.5rem; 
    margin-bottom: 15px; 
    color: white; 
    line-height: 1.2; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
    pointer-events: auto; 
}

.hero-big-overlay p { 
    font-size: 1.1rem; 
    opacity: 0.9; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

.hero-big-overlay a { 
    color: white; 
}

.hero-side-col { 
    display: grid; 
    grid-template-rows: repeat(4, 1fr); 
    gap: 15px; 
    height: 100%; 
}

.hero-small-card { 
    background: white; 
    display: flex; 
    gap: 15px; 
    border-radius: 10px; 
    overflow: hidden; 
    align-items: center; 
    padding-right: 15px; 
    box-shadow: var(--shadow); 
    border: 1px solid #f1f1f1; 
    transition: transform 0.2s; 
    height: 100%; 
}

.hero-small-card:hover { 
    transform: translateX(-8px); 
    border-color: var(--primary); 
}

.hero-small-img { 
    width: 120px; 
    height: 100%; 
    object-fit: cover; 
    flex-shrink: 0; 
}

.hero-small-content h4 { 
    font-size: 0.95rem; 
    margin: 0; 
    line-height: 1.4; 
    font-family: 'Roboto', sans-serif; 
    font-weight: 700; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

.cat-tiny { 
    font-size: 0.7rem; 
    color: var(--primary); 
    text-transform: uppercase; 
    font-weight: 800; 
    display: block; 
    margin-bottom: 5px; 
    letter-spacing: 0.5px; 
}

/* =========================================
   7. MAIN CONTENT & ADAPTIVE LAYOUTS
   ========================================= */
.main-wrapper { 
    margin-bottom: 80px; 
    flex: 1; 
}

.content-grid-layout { 
    display: flex; 
    gap: 50px; 
}

.main-content { 
    flex: 3; 
    min-width: 0; 
}

.sidebar { 
    flex: 1; 
    min-width: 340px; 
}

.sidebar-sticky { 
    position: sticky; 
    top: 100px; 
    height: fit-content; 
} 

.news-block { 
    margin-bottom: 70px; 
    padding-bottom: 40px; 
    border-bottom: 1px solid #eee; 
}

.section-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    border-bottom: 3px solid #000; 
    margin-bottom: 35px; 
    padding-bottom: 12px; 
}

.section-header h2 { 
    font-size: 2rem; 
    margin: 0; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    color: #111; 
    font-weight: 900; 
}

.see-more { 
    font-size: 0.85rem; 
    font-weight: 700; 
    background: #f1f1f1; 
    padding: 10px 22px; 
    border-radius: 30px; 
    color: #555; 
    transition: 0.2s; 
    text-transform: uppercase; 
}

.see-more:hover { 
    background: var(--primary); 
    color: white; 
    box-shadow: 0 4px 10px rgba(214, 48, 49, 0.2); 
}

/* Card Styles */
.card-standard .card-img { 
    height: 240px; 
    overflow: hidden; 
    margin-bottom: 18px; 
    border-radius: 10px; 
    box-shadow: var(--shadow-sm); 
}

.card-standard img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.4s; 
}

.card-standard:hover img { 
    transform: scale(1.08); 
}

.card-standard h3 { 
    font-size: 1.45rem; 
    line-height: 1.35; 
    margin-bottom: 12px; 
    font-weight: 800; 
    transition: color 0.2s; 
}

.card-standard:hover h3 { 
    color: var(--primary); 
}

.meta { 
    font-size: 0.8rem; 
    color: #999; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 1px; 
}

/* Adaptive Grid Layouts */
.layout-adaptive-1 .card-standard { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr; 
    gap: 35px; 
    align-items: center; 
    background: #fff; 
    padding: 20px; 
    border-radius: 12px; 
    box-shadow: var(--shadow-sm); 
    border: 1px solid #f5f5f5; 
}

.layout-adaptive-1 .card-img { 
    height: 380px; 
    margin-bottom: 0; 
}

.layout-adaptive-1 h3 { 
    font-size: 2.2rem; 
    line-height: 1.25; 
}

.layout-adaptive-2 { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 35px; 
}

.layout-adaptive-2 .card-img { 
    height: 280px; 
}

.layout-adaptive-3 { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

.layout-adaptive-3 .card-img { 
    height: 220px; 
}

.layout-grid-standard { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
}

.layout-list { 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
}

.card-list { 
    display: flex; 
    gap: 30px; 
    border-bottom: 1px solid #f5f5f5; 
    padding-bottom: 30px; 
    align-items: flex-start; 
}

.list-img { 
    width: 280px; 
    height: 180px; 
    flex-shrink: 0; 
    overflow: hidden; 
    border-radius: 10px; 
    box-shadow: var(--shadow-sm); 
}

.list-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.4s; 
}

.card-list:hover .list-img img { 
    transform: scale(1.08); 
}

.list-txt h3 { 
    font-size: 1.5rem; 
    margin-bottom: 12px; 
    line-height: 1.3; 
    font-weight: 800; 
}

.layout-tiles { 
    display: grid; 
    grid-template-columns: repeat(5, 1fr); 
    gap: 20px; 
}

.card-tile .tile-img { 
    height: 130px; 
    overflow: hidden; 
    margin-bottom: 15px; 
    border-radius: 8px; 
    box-shadow: var(--shadow-sm); 
}

.card-tile img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.4s; 
}

.card-tile h3 { 
    font-size: 1rem; 
    line-height: 1.4; 
    font-weight: 700; 
}

/* =========================================
   8. SIDEBAR & FOOTER
   ========================================= */
.sidebar-widget { 
    margin-bottom: 50px; 
}

.widget-title { 
    font-size: 1.2rem; 
    border-bottom: 2px solid #000; 
    padding-bottom: 12px; 
    margin-bottom: 25px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 900; 
    color: #111; 
}

.social-links { 
    display: grid; 
    grid-template-columns: 1fr 1fr 1fr; 
    gap: 10px; 
}

.soc-btn { 
    text-align: center; 
    padding: 12px; 
    color: white; 
    font-size: 0.8rem; 
    font-weight: bold; 
    border-radius: 6px; 
    transition: opacity 0.2s; 
}

.soc-btn:hover { 
    opacity: 0.9; 
}

.fb { background: #3b5998; } 
.tw { background: #1da1f2; } 
.ig { background: #e1306c; }

.sidebar-list .mini-card { 
    display: flex; 
    align-items: flex-start; 
    gap: 15px; 
    margin-bottom: 20px; 
    padding-bottom: 20px; 
    border-bottom: 1px solid #f1f1f1; 
}

.mini-num { 
    font-size: 2.5rem; 
    font-weight: 900; 
    color: #f1f2f6; 
    line-height: 0.8; 
}

.mini-content h4 { 
    font-size: 1.05rem; 
    margin: 0; 
    font-family: 'Roboto', sans-serif; 
    font-weight: 600; 
    line-height: 1.4; 
}

.mini-content h4:hover { 
    color: var(--primary); 
}

.tags-cloud { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
}

.tag { 
    background: white; 
    border: 1px solid #ddd; 
    padding: 8px 16px; 
    font-size: 0.75rem; 
    border-radius: 20px; 
    color: #555; 
    font-weight: 700; 
    text-transform: uppercase; 
    transition: all 0.2s; 
}

.tag:hover { 
    background: var(--primary); 
    color: white; 
    border-color: var(--primary); 
    transform: translateY(-2px); 
}

#footer { 
    background: #1a1a1a; 
    color: #aaa; 
    padding: 70px 0 30px; 
    font-size: 0.9rem; 
    margin-top: auto; 
    border-top: 5px solid var(--primary); 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 50px; 
    margin-bottom: 50px; 
}

.footer-col h4 { 
    color: white; 
    margin-bottom: 25px; 
    border-bottom: 1px solid #333; 
    padding-bottom: 15px; 
    display: inline-block; 
    font-size: 1.1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: 700; 
}

.footer-col p { 
    color: #888; 
    line-height: 1.8; 
}

.footer-links { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.footer-links li { 
    margin-bottom: 12px; 
}

.footer-links a { 
    color: #999; 
    transition: 0.2s; 
    display: block; 
}

.footer-links a:hover { 
    color: var(--primary); 
    padding-left: 5px; 
    color: white; 
}

.copyright { 
    text-align: center; 
    border-top: 1px solid #333; 
    padding-top: 30px; 
    font-size: 0.85rem; 
    color: #555; 
}

/* --- OTHER PAGES & RESPONSIVE --- */
.category-hero { 
    height: 400px; 
    width: 100%; 
    border-radius: 12px; 
    overflow: hidden; 
    margin-bottom: 40px; 
    position: relative; 
    box-shadow: var(--shadow); 
}

.cards-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); 
    gap: 30px; 
}

.news-card { 
    background: white; 
    border: 1px solid var(--border); 
    border-radius: 6px; 
    overflow: hidden; 
    transition: transform 0.2s; 
}

.news-card:hover { 
    transform: translateY(-5px); 
}

.news-card .card-img { 
    height: 200px; 
    overflow: hidden; 
    background: #eee; 
}

.news-card .card-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.news-card .card-body { 
    padding: 15px; 
}

.news-card h3 { 
    font-size: 1.2rem; 
    line-height: 1.4; 
    margin-bottom: 10px; 
}

.news-card .card-meta { 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.8rem; 
    color: #888; 
    text-transform: uppercase; 
    font-weight: bold; 
}

.news-card .source { 
    color: var(--primary); 
}

/* Details Page */
.details-layout { 
    display: flex; 
    gap: 40px; 
    margin-top: 30px; 
    align-items: flex-start; 
}

.article-column { 
    flex: 3; 
    background: white; 
    padding: 30px; 
    border-radius: 8px; 
    box-shadow: 0 1px 5px rgba(0,0,0,0.05); 
}

.sidebar-column { 
    flex: 1; 
    min-width: 320px; 
    position: sticky; 
    top: 80px; 
}

.breadcrumb { 
    font-size: 0.85rem; 
    color: #888; 
    margin-bottom: 15px; 
    text-transform: uppercase; 
    letter-spacing: 0.5px; 
}

.headline { 
    font-size: 2.4rem; 
    margin: 10px 0 20px; 
    line-height: 1.3; 
    color: #111; 
    font-weight: 700; 
}

.article-meta-row { 
    border-top: 1px solid #eee; 
    border-bottom: 1px solid #eee; 
    padding: 12px 0; 
    margin-bottom: 25px; 
    display: flex; 
    justify-content: space-between; 
    font-size: 0.9rem; 
    color: #555; 
}

.article-hero-img { 
    width: 100%; 
    border-radius: 8px; 
    overflow: hidden; 
    margin-bottom: 30px; 
}

.article-hero-img img { 
    width: 100%; 
    height: auto; 
    display: block; 
}

.article-content { 
    font-family: 'Merriweather', serif; 
    font-size: 1.2rem; 
    line-height: 1.8; 
    color: #222; 
    margin-bottom: 50px; 
}

.related-section { 
    border-top: 4px solid #f1f1f1; 
    padding-top: 30px; 
}

.related-grid-container { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
}

.related-card-small { 
    display: flex; 
    flex-direction: column; 
    background: #fff; 
    border: 1px solid #eee; 
    border-radius: 6px; 
    overflow: hidden; 
    text-decoration: none; 
    transition: transform 0.2s; 
}

.related-card-small:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); 
}

.related-img-small { 
    height: 120px; 
    overflow: hidden; 
    background: #f0f0f0; 
}

.related-img-small img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.related-info-small { 
    padding: 12px; 
}

.related-info-small h4 { 
    font-size: 0.95rem; 
    margin: 0; 
    line-height: 1.4; 
    color: #333; 
    font-weight: 600; 
    display: -webkit-box; 
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

/* Responsive Media Queries */
@media (max-width: 1024px) { 
    .layout-tiles { grid-template-columns: repeat(3, 1fr); } 
    .logo { font-size: 2.5rem; } 
    .admin-bar .container { gap: 10px; }
    .search-wrapper { width: 200px; }
}

@media (max-width: 768px) { 
    .content-grid-layout, .details-layout, .hero-wrapper { flex-direction: column; height: auto; } 
    .sidebar, .sidebar-column, .hero-main-col, .hero-side-col { width: 100%; height: auto; } 
    .hero-main-col { height: 300px; } 
    .hero-side-col { display: grid; grid-template-columns: 1fr 1fr; } 
    .layout-tiles { grid-template-columns: repeat(2, 1fr); } 
    .layout-grid-standard, .cards-grid, .layout-adaptive-2, .layout-adaptive-3 { grid-template-columns: 1fr; } 
    .layout-adaptive-1 .card-standard { grid-template-columns: 1fr; }
    .layout-adaptive-1 .card-img { height: 250px; }
    .footer-grid { grid-template-columns: 1fr; } 
    .logo { font-size: 2rem; } .logo span { font-size: 1.5rem; }
    .admin-flex { flex-direction: column; gap: 15px; } 
    .search-wrapper { width: 100%; max-width: 100%; }
}

@media (max-width: 600px) { 
    .hero-side-col { grid-template-columns: 1fr; } 
}

/* --- PREMIUM AD SYSTEM (RESTORED) --- */
.rankfirst-ad { 
    background: #ffffff; 
    color: #1a1a1a; 
    padding: 24px; 
    border-radius: 4px; 
    margin-bottom: 35px; 
    border: 1px solid #e0e0e0;
    border-top: 4px solid #d63031; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.rf-logo { 
    font-size: 0.8rem; 
    font-weight: 900; 
    color: #888; 
    text-transform: uppercase; 
    letter-spacing: 2px;
    margin-bottom: 12px; 
    display: block; 
}

.rf-logo span { 
    color: #d63031; 
}

.rf-headline { 
    font-size: 1.5rem; 
    font-family: 'Playfair Display', serif; 
    line-height: 1.2; 
    margin-bottom: 12px; 
    color: #000 !important; 
}

.rf-list { 
    list-style: none; 
    padding: 0; 
    margin: 15px 0 20px 0; 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10px; 
}

.rf-list li { 
    font-size: 0.75rem; 
    color: #444;
    font-weight: 600; 
    padding-left: 12px;
    position: relative;
}

.rf-list li::before {
    content: "•";
    color: #d63031;
    position: absolute;
    left: 0;
}

.rf-btn { 
    display: block; 
    text-align: center; 
    background: #1a1a1a; 
    color: #fff; 
    padding: 14px; 
    border-radius: 2px; 
    font-weight: 800; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    letter-spacing: 1px; 
    transition: 0.3s; 
}

.rf-btn:hover { 
    background: #d63031; 
    color: #fff; 
}

.baking-ad { 
    background: #fffafa; 
    color: #333; 
    padding: 24px; 
    border-radius: 4px; 
    margin-bottom: 40px; 
    border: 1px solid #f3e8ff; 
    border-top: 4px solid #9333ea; 
    position: relative; 
}

.bb-badge { 
    position: absolute; 
    top: -12px; 
    left: 20px; 
    background: #9333ea; 
    color: #fff; 
    font-size: 0.6rem; 
    padding: 4px 12px; 
    border-radius: 2px; 
    font-weight: 900; 
    text-transform: uppercase;
}

.bb-headline { 
    font-size: 1.6rem; 
    font-family: 'Playfair Display', serif; 
    color: #3b0764 !important; 
    margin-bottom: 8px; 
}

.bb-tagline { 
    font-size: 0.85rem; 
    color: #6b21a8; 
    margin-bottom: 20px; 
    line-height: 1.4;
}

.bb-btn { 
    display: block; 
    text-align: center; 
    border: 2px solid #9333ea;
    color: #9333ea; 
    padding: 12px; 
    border-radius: 2px; 
    font-weight: 900; 
    text-transform: uppercase; 
    font-size: 0.75rem; 
    transition: 0.3s; 
}

.bb-btn:hover { 
    background: #9333ea; 
    color: #fff; 
}

/* --- AUTHORITY CATEGORY LAYOUT --- */
.lead-module { 
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
    border-bottom: 2px solid #000;
    padding-bottom: 30px;
}

.lead-module img { 
    width: 100%; 
    max-height: 600px; 
    object-fit: cover; 
}

.lead-text h1 { 
    font-size: clamp(2rem, 5vw, 3.5rem); 
    margin: 20px 0;
    line-height: 1.1;
    font-family: 'Playfair Display', serif;
}