@charset "UTF-8";
/* 
    OmniWater Blog Main Stylesheet 
    Version: 1.0
*/

:root {
    --primary-color: #003366;   /* Dark Blue */
    --secondary-color: #f4f4f4; /* Light Grey Background */
    --accent-color: #0066cc;    /* Bright Blue for links/buttons */
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-serif: 'Georgia', serif;
    
    /* Category Colors */
    --cat-tech: #0066cc;
    --cat-innov: #8e44ad;
    --cat-env: #27ae60;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
}

a { text-decoration: none; color: inherit; transition: color 0.3s; }
a:hover { color: var(--accent-color); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background-color: #111;
    color: #fff;
    font-size: 12px;
    padding: 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.social-links { font-weight: 700; color: #ccc; }

/* Header */
header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 4px solid #000;
}
.header-inner { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start;
    width: 100%;
}

/* Header Top Row (Logo + Search) */
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

/* Header Search */
.header-search form {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px;
    transition: border-color 0.3s;
}
.header-search form:focus-within {
    border-color: var(--accent-color);
}
.header-search input {
    border: none;
    outline: none;
    padding: 5px 10px;
    font-size: 14px;
    min-width: 200px;
}
.header-search button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-search button:hover {
    color: var(--accent-color);
}

@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
    .header-top-row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
    }
    .logo-h1 {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
        min-width: 0;
    }
    .logo img {
        width: 100%;
        height: auto;
        max-width: 150px; /* Limit logo size on mobile if needed, or keep it fluid */
        object-fit: contain;
        object-position: left;
    }
    .header-search {
        flex: 0 0 calc(50% - 5px);
        width: auto;
        max-width: calc(50% - 5px);
    }
    .header-search form {
        width: 100%;
    }
    .header-search input {
        width: 100%;
        min-width: 0;
        flex: 1;
    }
}

/* Search Bar Component (Body) */
.search-container {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: none;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.search-form {
    display: flex;
    gap: 10px;
    max-width: 100%;
}
.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
    outline: none;
}
.search-button {
    padding: 12px 25px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s;
    white-space: nowrap;
}
.search-button:hover {
    background-color: #0055aa;
}

.logo-h1 { margin: 0; line-height: 1; }
.logo img { display: block; }

/* Navigation */
nav {
    width: 100%;
    border-top: 1px solid #eee;
    padding-top: 10px;
    margin-top: 0;
}

/* Nav Wrapper */
.nav-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Arrows */
.nav-arrow {
    background: transparent;
    border: none;
    font-size: 20px;
    color: #999;
    padding: 0 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 10;
    height: 100%;
}
.nav-arrow:hover { color: var(--accent-color); }

/* Nav List */
.nav-list { 
    flex: 1;
    display: flex; 
    flex-wrap: nowrap; /* Ensure no wrapping */
    overflow-x: auto; 
    gap: 25px;
    font-weight: 700; 
    font-size: 14px; 
    text-transform: uppercase;
    padding: 5px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
    align-items: center;
}
.nav-list::-webkit-scrollbar { display: none; /* Chrome/Safari */ }
.nav-list li { flex-shrink: 0; }
.nav-list li a { color: #333; position: relative; white-space: nowrap; }
.nav-list li a:after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent-color); transition: width 0.3s; }
.nav-list li a:hover:after { width: 100%; }
.nav-list li a:hover { color: var(--accent-color); }

/* Layout Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    margin-top: 30px;
}
.col-main {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}
.col-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

@media (min-width: 992px) {
    .col-main { flex: 0 0 70%; max-width: 70%; border-right: 1px solid var(--border-color); padding-right: 40px; }
    .col-sidebar { flex: 0 0 30%; max-width: 30%; padding-left: 40px; }
}

/* Ad Styles */
.ad-label {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 1px;
}
.ad-container {
    background: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #999;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.ad-top { 
    min-height: 90px; 
    margin-top: 5px;
    /* Styles from ad-in-feed */
    height: auto;
    padding: 15px 30px 30px;
    background: #f9f9f9;
    border: 1px dashed #ddd;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ad-sidebar { min-height: 250px; margin-bottom: 30px; }

/* Updated Hero Layout: 2 Columns (Main+Nav | Sub-Grid) */
.hero-section { margin-bottom: 40px; padding-top: 20px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

/* Quick Access Bar (New) */
.quick-access-bar {
    display: flex;
    flex-wrap: wrap;
    padding: 10px 0;
    background: #fff;
    margin-top: 10px;
    border-top: 1px solid #f9f9f9;
    margin-left: -10px; /* Increased negative margin for wider spacing */
    margin-right: -10px;
}
.qa-item {
    display: block;
    float: left; /* Fallback for very old browsers */
    width: 33.3333% !important; /* Force 3 items per row */
    flex: 0 0 33.3333% !important;
    max-width: 33.3333% !important;
    padding: 10px; /* Increased padding for wider spacing */
    margin-bottom: 10px;
    transition: transform 0.2s;
    text-decoration: none;
    box-sizing: border-box;
    text-align: center;
}
.qa-item:hover { transform: translateY(-2px); }

.qa-img-rect {
    display: inline-block;
    height: 60px;
    width: auto;
    padding-bottom: 0;
    position: relative;
    margin-bottom: 5px;
    overflow: hidden;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.qa-img-rect img {
    position: static;
    width: auto;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Legacy support or if needed */
.qa-icon-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px; /* Icon size */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.qa-label {
    font-size: 12px;
    color: #333;
    font-weight: 600;
    display: block;
    line-height: 1.1;
}
.qa-1 { background: linear-gradient(135deg, #003366, #0055aa); }
.qa-2 { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
.qa-3 { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.qa-video { background: linear-gradient(135deg, #e67e22, #d35400); }
.qa-4 { background: linear-gradient(135deg, #27ae60, #2ecc71); }

/* Hero Slider */
.hero-slider-container {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    height: auto;
}
.hero-slider-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}
.hero-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: block;
}
.hero-slide-img { width: 100%; height: auto; object-fit: cover; }
.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 25px 25px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #fff;
    z-index: 2;
}
.hero-cat {
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: inline-block;
    color: #fff;
}
.hero-cat.tech { background-color: var(--cat-tech); }
.hero-cat.innov { background-color: var(--cat-innov); }
.hero-cat.env { background-color: var(--cat-env); }

.hero-slide-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    line-height: 1.2;
}
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 10px;
    pointer-events: none; /* Let clicks pass through to link if not on button */
}
.slider-btn {
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: background 0.3s;
}
.slider-btn:hover { background: rgba(0,0,0,0.8); }

/* Sub Hero Cards */
.hero-sub-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.hero-sub { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid #eee; border-radius: 4px; overflow: hidden; }
.hero-sub-img-wrap { overflow: hidden; height: auto; }
.hero-sub-img { width: 100%; height: auto; object-fit: cover; transition: transform 0.5s; }
.hero-sub:hover .hero-sub-img { transform: scale(1.05); }
.hero-sub-content { padding: 8px 15px; flex: 1; display: flex; flex-direction: column; justify-content: center; }

/* Updated Sub-Hero Text Layout */
.hero-sub-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #333; line-height: 1.3; }
.hero-sub-title:hover { color: var(--accent-color); }
.hero-sub-meta { font-size: 12px; color: #777; font-weight: 500; display: flex; align-items: center; gap: 5px; }
.hero-sub-cat { color: var(--accent-color); font-weight: 700; text-transform: uppercase; }

@media (min-width: 992px) {
    .hero-grid { grid-template-columns: 2fr 1fr; }
    .hero-slider-container { height: auto; } /* Desktop height */
    .hero-sub-grid { grid-template-rows: 1fr 1fr; height: 100%; }
}

/* Removed intermediate tablet breakpoint to keep mobile layout until 992px */

/* Article List (Standard Layout) */
.section-header {
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 2px solid #000; margin-bottom: 25px; padding-bottom: 10px;
}
.section-title { font-size: 20px; font-weight: 800; text-transform: uppercase; border: none; padding: 0; margin: 0; }
.view-all { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--accent-color); }

.article-card { display: flex; flex-direction: column; margin-bottom: 30px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.article-card:last-child { border-bottom: none; }
.article-media { width: 100%; flex-shrink: 0; }
.article-img-link { display: block; width: 100%; aspect-ratio:40/21; }
.article-img { width: 100%; height: auto; object-fit: cover; border-radius: 4px; margin-bottom: 10px; }
.article-body { flex: 1; }
.article-cat { 
    color: #fff; 
    background-color: var(--accent-color);
    font-size: 10px; 
    font-weight: 700; 
    text-transform: uppercase; 
    display: inline-block;
    padding: 5px 10px;
    border-radius: 2px;
    transition: background-color 0.3s, color 0.3s;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    margin-right: 5px;
    margin-bottom: 5px;
}
.article-cat:hover {
    background-color: #333; /* Darker background on hover */
    color: #fff !important; /* Keep text white */
    text-decoration: none;
}
.article-cat.featured-label {
    background-color: #ff4757; /* Eye-catching red/pink */
}
.article-title { 
    font-size: 22px; 
    font-weight: 700; 
    margin-bottom: 10px; 
    line-height: 1.3; 
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.article-excerpt { color: var(--text-light); font-size: 16px; margin-bottom: 5px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-list-meta { font-size: 11px; color: #888; margin-top: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.article-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; }
.read-more-btn { display: inline-block; font-size: 13px; font-weight: 700; color: #000; border-bottom: 2px solid var(--accent-color); padding-bottom: 2px; }

@media (max-width: 600px) {
    .article-media { width: 100%; }
    .hero-sub-img { width: 100%; }
}

@media (min-width: 600px) {
    .article-card { flex-direction: row; gap: 25px; }
    .article-media { width: 400px; flex-shrink: 0; }
    .article-img { margin-bottom: 0; }
}

/* Sidebar */
.sidebar-widget { margin-bottom: 40px; background: #fff; }
.widget-title { font-size: 16px; font-weight: 800; text-transform: uppercase; border-bottom: 2px solid #000; padding-bottom: 10px; margin-bottom: 20px; }

.cat-list li { border-bottom: 1px solid #f0f0f0; }
.cat-list li:last-child { border-bottom: none; }
.cat-list li a { display: block; padding: 12px 0; display: flex; justify-content: space-between; font-size: 15px; font-weight: 500; }
.cat-count { color: #999; font-size: 13px; }

.popular-post { display: flex; gap: 15px; margin-bottom: 20px; align-items: flex-start; }
.popular-number { font-size: 30px; font-weight: 900; color: #cdc7c7; line-height: 1; margin-top: -5px; min-width: 25px; }
.popular-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: #333; }
.popular-title:hover { color: var(--accent-color); }

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 40px;
}
.page-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    color: #333;
    font-weight: 700;
    font-size: 14px;
    border-radius: 4px;
    transition: all 0.2s;
}
.page-link:hover, .page-link.active {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}
.page-dots { color: #999; margin: 0 5px; }
.page-link[href*="Next"] { width: auto; padding: 0 15px; }

/* Category Description */
.category-desc {
    display: block;
    font-size: 16px;
    color: #666;
    margin-top: 5px;
    font-weight: 400;
}

/* Featured Category Article */
.featured-cat-article {
    border-bottom: none;
    margin-bottom: 40px;
    padding: 25px;
    background-color: rgba(0, 102, 204, 0.05); /* Light accent tint */
    border-radius: 8px;
}
.featured-cat-article .article-title {
    /* Font size inherited from standard article-title (22px) */
}
.featured-cat-article .article-excerpt {
    /* Font size inherited from standard article-excerpt (16px) */
}

/* Footer */
footer { background-color: #111; color: #aaa; padding: 60px 0 20px; margin-top: 60px; font-size: 14px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 50px; }
.footer-col { flex: 1; min-width: 200px; }
.footer-title { font-size: 16px; margin-bottom: 25px; color: #fff; text-transform: uppercase; letter-spacing: 1px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #aaa; transition: color 0.2s; }
.footer-links a:hover { color: #fff; }
.copyright { text-align: center; border-top: 1px solid #222; padding-top: 30px; color: #666; font-size: 13px; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { background: #222; color: #ccc; padding: 6px 12px; font-size: 12px; border-radius: 2px; }
.tag-cloud a:hover { background: var(--accent-color); color: #fff; }

/* Custom Components from Inline Styles */
.ad-in-feed {
    height: auto;
    padding: 15px 30px 30px; /* Reduced top padding */
    background: #f9f9f9;
    border: 1px dashed #ddd;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.ad-in-feed img { max-width: 100%; height: auto; }

.widget-subscribe { background: #f4f4f4; padding: 20px; text-align: center; }
.widget-subscribe h3 { border: none; margin-bottom: 10px; }
.widget-subscribe p { font-size: 13px; margin-bottom: 15px; color: #666; }
.widget-subscribe input { width: 100%; padding: 10px; border: 1px solid #ddd; margin-bottom: 10px; }
.widget-subscribe button { width: 100%; padding: 10px; background: var(--primary-color); color: #fff; border: none; font-weight: 700; cursor: pointer; }

.footer-desc { color: #888; font-size: 13px; margin-bottom: 20px; line-height: 1.6; }
.social-icons { display: flex; gap: 10px; }
.social-icon { width: 30px; height: 30px; background: #333; border-radius: 50%; }

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    font-size: 13px;
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-btn {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    margin-left: 15px;
}
.cookie-btn:hover { background: #0055aa; }

/* Article Detail Page Styles */
.breadcrumb { margin-top: 20px; margin-bottom: 20px; font-size: 12px; color: #888; text-transform: uppercase; font-weight: 600; }
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: var(--accent-color); }
.breadcrumb-separator { margin: 0 5px; }

.article-header { margin-bottom: 30px; }
.article-h1 { font-size: 36px; line-height: 1.2; margin-bottom: 15px; }
.article-meta-row { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #eee; border-bottom: 1px solid #eee; padding: 15px 0; margin-top: 20px; }
.article-author { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14px; }
.article-author img { width: 40px; height: 40px; border-radius: 50%; }
.article-date { color: #777; font-size: 13px; margin-left: auto; }

.article-content { font-size: 18px; line-height: 1.8; color: #333; }
.article-content p { margin-bottom: 25px; }
.article-content h2 { font-size: 26px; margin-top: 40px; margin-bottom: 20px; }
.article-content h3 { font-size: 22px; margin-top: 30px; margin-bottom: 15px; }
.article-content ul, .article-content ol { margin-bottom: 25px; padding-left: 20px; }
.article-content li { margin-bottom: 10px; }
.article-content blockquote { border-left: 4px solid var(--accent-color); padding-left: 20px; font-style: italic; font-size: 20px; color: #555; margin: 30px 0; }
.article-featured-img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 30px; }

.author-box { background: #f9f9f9; padding: 30px; border-radius: 4px; display: flex; gap: 20px; margin-top: 50px; align-items: flex-start; }
.author-box-img { width: 80px; height: 80px; border-radius: 50%; }
.author-box-content h4 { font-size: 18px; margin-bottom: 10px; }
.author-box-content p { font-size: 14px; color: #666; margin-bottom: 0; }

.share-bar { display: flex; gap: 10px; margin: 20px 0; }
.share-btn { padding: 8px 15px; border-radius: 4px; font-size: 12px; font-weight: 700; color: #fff; text-transform: uppercase; display: flex; align-items: center; gap: 5px; }
.share-fb { background: #3b5998; }
.share-tw { background: #1da1f2; }
.share-li { background: #0077b5; }
.share-em { background: #555; }

/* NEW: Sidebar Series Widget */
.sidebar-series-item {
    display: flex;
    flex-direction: column;
    /* align-items: center; Removed to allow full width for centering calculation */
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}
.sidebar-series-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.sidebar-series-img {
    width: 70%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 auto 10px auto; /* Center the image */
    display: block;
}

.sidebar-series-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    color: #333;
}
.sidebar-series-title a { color: #333; text-decoration: none; }
.sidebar-series-title a:hover { color: var(--accent-color); }

.sidebar-series-slogan {
    font-size: 13px;
    color: #777;
    font-weight: 500;
    margin-top: 0;
}

/* NEW: Related Articles Section */
.related-section {
    margin-top: 60px;
    padding-top: 20px; /* Reduced from 40px */
    border-top: 2px solid #000;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-top: 25px;
}
.related-card { display: flex; flex-direction: column; }
.related-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
    transition: opacity 0.2s;
}
.related-card:hover .related-img { opacity: 0.9; }
.related-title {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 5px;
}
.related-title a:hover { color: var(--accent-color); }
.related-meta { font-size: 11px; color: #888; }

.series-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .row { margin: 0; }
    .col-main, .col-sidebar { padding: 0; }
    
    /* Quick Access Bar Mobile Fix */
    .qa-img-rect {
        height: auto;
        padding-bottom: 0; /* Let image define height */
    }
    .qa-img-rect img {
        width: 100%;
        height: auto;
    }

    .hero-slide-title { font-size: 20px; }
    .hero-sub-title { font-size: 16px; }
    
    .article-card { flex-direction: column; }
    .article-media { width: 100%; }
    .article-title { font-size: 20px; }
    
    .footer-cols { flex-direction: column; gap: 30px; }
    
    /* Homepage Mobile Optimizations */
    .section-title {
        font-size: 16px; /* Reduce title size */
        margin-bottom: 8px; /* Add some space below title too */
    }

    /* Article Page Mobile Optimizations */
    .article-h1 {
        font-size: 22px; /* Reduce H1 size on mobile (default is 32px or inherited) */
        line-height: 1.3;
    }

    .article-featured-img {
        width: calc(100% + 30px); /* Full width */
        margin-left: -15px; /* Offset container padding */
        margin-right: -15px; /* Offset container padding */
        border-radius: 0; /* Remove border radius */
        max-width: none; /* Override any max-width */
    }

    .article-content h2 {
        line-height: 1.2; /* Reduce line height for H2 */
        font-size: 22px; /* Optional: slightly reduce size to match spacing */
        margin-top: 30px;
        margin-bottom: 15px;
    }

    /* Fix Ad Label Positioning on Mobile */
    .ad-in-feed, .ad-top {
        position: relative;
        padding-top: 20px; /* Space for label */
        margin-bottom: 30px;
    }
    
    .ad-in-feed .ad-label, .ad-top .ad-label {
        position: absolute;
        top: 0;
        left: 0;
        font-size: 10px;
        color: #999;
        text-transform: uppercase;
    }
}

/* Series Header in Article */
.series-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.series-logo-wrapper img {
    max-width: 35px;
    max-height: 35px;
    width: auto;
    height: auto;
    display: block;
}
.series-label-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 2px solid var(--primary-color);
    padding-left: 15px;
    margin-left: 15px;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .series-header {
        margin-top: -20px;
        margin-bottom: 15px;
    }
}
