/*
 Theme Name:   ODS-Child
 Theme URI:    https://webtevar.com
 Description:  Premium News & Magazine Portal Theme — GeneratePress Child. SEO & AdSense ready.
 Author:       Antigravity / Webtevar
 Author URI:   https://webtevar.com
 Template:     generatepress
 Version:      2.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  ods-child
*/

/* ==========================================================================
   1. Design Tokens — Premium News Magazine Palette
   ========================================================================== */
:root {
    /* Header & Footer — Deep Magazine Navy */
    --ods-navy: #0f172a;
    --ods-navy-light: #1e293b;

    /* Brand Accent */
    --ods-red: #ef4444;
    --ods-red-dark: #dc2626;

    /* Content Area */
    --ods-bg: #f1f5f9;
    --ods-bg-card: #ffffff;
    --ods-text: #0f172a;
    --ods-text-secondary: #64748b;
    --ods-border: #e2e8f0;

    /* Category Color System */
    --cat-teknoloji: #6366f1;
    --cat-bilim: #0ea5e9;
    --cat-yasam: #22c55e;
    --cat-dijital: #8b5cf6;
    --cat-eglence: #f59e0b;
    --cat-doga: #14b8a6;
    --cat-turkiye: #ef4444;
    --cat-genel: #64748b;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.08);

    /* Misc */
    --radius: 10px;
    --radius-lg: 16px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. Global Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--ods-bg);
    color: var(--ods-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; }
::selection { background: rgba(239,68,68,0.15); color: var(--ods-red); }

/* Custom container — avoids GeneratePress grid-container conflicts */
.ods-container {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

/* CRITICAL: Override GeneratePress flex on front page */
.ods-front-page {
    display: block !important;
    width: 100% !important;
    flex: none !important;
    max-width: 100% !important;
    float: none !important;
}

/* Placeholder for posts without featured images */
.ods-hero-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

/* ==========================================================================
   3. Premium Header Override
   ========================================================================== */
#masthead, .site-header, #site-navigation {
    background: var(--ods-navy) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    position: relative;
    z-index: 100;
}

/* Force inner wrappers to be transparent so the navy background shows through */
.site-header .inside-header,
.inside-navigation {
    background: transparent !important;
    padding: 0 !important;
}

.main-title a, .site-title a {
    color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 1.6rem !important;
    letter-spacing: -0.02em;
}

/* Main nav links */
.main-navigation .main-nav > ul > li > a,
#site-navigation .main-nav > ul > li > a {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    letter-spacing: 0.01em;
    transition: var(--transition);
}

/* Main nav links hover */
.main-navigation .main-nav > ul > li > a:hover,
#site-navigation .main-nav > ul > li > a:hover,
.main-navigation .main-nav > ul > li.current-menu-item > a {
    color: var(--ods-red) !important;
}

/* ─── AdSense Fallback & Collapse ─── */
.ods-ad-card:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
    display: none !important;
}
.ods-ad-infeed:has(ins.adsbygoogle[data-ad-status="unfilled"]) {
    display: none !important;
}

/* ==========================================================================
   4. KategoriMenuTR — Category Navigation Strip
   ========================================================================== */
.kategori-navigation {
    background: var(--ods-navy-light);
    border: none;
    padding: 0;
    margin: 0 !important;
    display: flex;
    justify-content: center;
}

.kategori-menu-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.kategori-menu-list li a {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    padding: 12px 20px;
    transition: var(--transition);
    position: relative;
    border-bottom: 2px solid transparent;
}

.kategori-menu-list li a:hover,
.kategori-menu-list li.current-menu-item a {
    color: #ffffff;
    background: rgba(255,255,255,0.05);
    border-bottom-color: var(--ods-red);
}

.kategori-menu-list li a::after { display: none; }

/* ==========================================================================
   5. Breaking News / Trend Ticker
   ========================================================================== */
.ods-ticker {
    background: var(--ods-red);
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}

.ods-ticker-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ods-red-dark);
    padding: 4px 14px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    border-radius: 0 4px 4px 0;
}

.ods-ticker-label::before {
    content: "●";
    animation: tickerPulse 1s infinite;
}

@keyframes tickerPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ods-ticker-track {
    display: flex;
    gap: 50px;
    animation: tickerScroll 30s linear infinite;
    padding-left: 140px;
    white-space: nowrap;
}

.ods-ticker-track a {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.ods-ticker-track a:hover { text-decoration: underline; }

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

/* ==========================================================================
   6. Hero Banner Section (Featured Posts)
   ========================================================================== */
.ods-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 420px;
}

.ods-hero-main {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.ods-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ods-hero-main:hover img { transform: scale(1.03); }

.ods-hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 30px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: #fff;
}

.ods-hero-overlay .ods-cat-badge {
    background: var(--ods-red);
    color: #fff !important;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
    display: inline-block;
}

.ods-hero-overlay h2 {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
    color: #fff;
}

.ods-hero-overlay .ods-hero-meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    display: flex; gap: 8px; align-items: center;
}

/* Hero Sidebar Stack */
.ods-hero-side {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ods-hero-side-item {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.ods-hero-side-item:first-child { border-radius: 0 var(--radius-lg) 0 0; }
.ods-hero-side-item:last-child { border-radius: 0 0 var(--radius-lg) 0; }

.ods-hero-side-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}

.ods-hero-side-item:hover img { transform: scale(1.05); }

.ods-hero-side-item .ods-hero-overlay {
    padding: 20px 16px 16px;
}

.ods-hero-side-item .ods-hero-overlay h2 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

/* Hero responsive */
@media (max-width: 768px) {
    .ods-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .ods-hero-main { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .ods-hero-side { flex-direction: row; }
    .ods-hero-side-item:first-child { border-radius: 0 0 0 var(--radius-lg); }
    .ods-hero-side-item:last-child { border-radius: 0 0 var(--radius-lg) 0; }
    .ods-hero-overlay h2 { font-size: 1.3rem; }
}

/* ==========================================================================
   7. Content + Sidebar Layout
   ========================================================================== */
.ods-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
}

@media (max-width: 1024px) {
    .ods-layout { grid-template-columns: 1fr; }
}

/* Force GeneratePress sidebar to fill our custom grid column */
.ods-layout .sidebar {
    width: 100% !important;
    float: none !important;
}

/* ==========================================================================
   8. Post Cards (Magazine Style)
   ========================================================================== */
.ods-section-heading {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--ods-text);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.ods-section-heading::before {
    content: "";
    width: 4px;
    height: 24px;
    background: var(--ods-red);
    border-radius: 2px;
    flex-shrink: 0;
}

.ods-post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 640px) {
    .ods-post-grid { grid-template-columns: 1fr; }
}

/* Card */
.ods-card {
    background: var(--ods-bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--ods-border);
    transition: var(--transition);
}

.ods-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.ods-card-thumb {
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    position: relative;
}

.ods-card-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ods-card:hover .ods-card-thumb img { transform: scale(1.06); }

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

/* Category Badges */
.ods-card-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

.ods-cat-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ods-red) !important;
    transition: var(--transition);
}

.ods-cat-badge:hover { opacity: 0.7; }

/* Card Title */
.ods-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
}

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

/* Card Excerpt */
.ods-card-excerpt {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--ods-text-secondary);
    margin: 0 0 14px;
    flex-grow: 1;
}

/* Card Meta */
.ods-card-meta {
    display: flex; align-items: center; gap: 6px;
    font-size: 0.75rem; color: #94a3b8;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--ods-border);
}

.ods-meta-sep { color: #cbd5e1; }

/* ==========================================================================
   9. Sidebar Widgets (Magazine Right Rail)
   ========================================================================== */
.ods-sidebar { position: sticky; top: 20px; }

.ods-widget {
    background: var(--ods-bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--ods-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
}

.ods-widget-header {
    background: var(--ods-navy);
    color: #fff;
    padding: 14px 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ods-widget-body { padding: 16px 20px; }

/* Category List Widget */
.ods-cat-list { list-style: none; padding: 0; margin: 0; }

.ods-cat-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.ods-cat-list li:last-child { border-bottom: none; }
.ods-cat-list li:hover { padding-left: 6px; }

.ods-cat-list li a { color: var(--ods-text); }
.ods-cat-list li a:hover { color: var(--ods-red); }

.ods-cat-count {
    background: #f1f5f9;
    color: var(--ods-text-secondary);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
}

/* Trending Posts Widget */
.ods-trending-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
}

/* Sidebar Enhancements */
.ods-widget-dark {
    background: linear-gradient(135deg, var(--ods-navy) 0%, #1e293b 100%);
    color: #fff;
    border: none;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
}

.ods-newsletter {
    text-align: center;
    padding: 10px;
}

.ods-nl-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

.ods-newsletter h3 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 10px;
}

.ods-newsletter p {
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.5;
    margin-bottom: 20px;
}

.ods-nl-form input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 6px;
    border: 1px solid #334155;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.ods-nl-form button {
    width: 100%;
    padding: 12px;
    background: var(--ods-red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.ods-nl-form button:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

.ods-widget-icon { margin-right: 6px; }

/* Category Tiles */
.ods-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ods-cat-tile {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--tile-color);
    color: #fff;
    padding: 16px 10px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    min-height: 80px;
}

.ods-cat-tile::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    pointer-events: none;
}

.ods-cat-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    color: #fff;
}

.ods-cat-name {
    position: relative; z-index: 1;
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    line-height: 1.2;
}

.ods-cat-count {
    position: relative; z-index: 1;
    background: rgba(255,255,255,0.2);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

/* Trending Cards */
.ods-trending-list {
    display: flex;
    flex-direction: column;
}

.ods-trending-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--ods-border);
    transition: var(--transition);
}

.ods-trending-card:last-child { border-bottom: none; }

.ods-trending-card:hover {
    background: #f8fafc;
}

.ods-tc-num {
    font-size: 2.5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px #cbd5e1;
    margin-right: 16px;
    min-width: 32px;
    text-align: center;
    transition: var(--transition);
}

.ods-trending-card:hover .ods-tc-num {
    color: var(--ods-navy);
    -webkit-text-stroke: 0;
}

.ods-tc-content h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ods-navy);
    margin: 0 0 4px;
    line-height: 1.4;
}

.ods-tc-content span {
    font-size: 0.75rem;
    color: var(--ods-text-secondary);
}

/* ==========================================================================
   10. Premium Footer
   ========================================================================== */
.site-footer, #colophon, .site-info {
    background: var(--ods-navy) !important;
    color: #94a3b8 !important;
}

.site-info a { color: #cbd5e1 !important; }
.site-info a:hover { color: #fff !important; }

/* Custom Footer injected via PHP */
.ods-footer {
    background: var(--ods-navy);
    color: #94a3b8;
    padding: 50px 0 0;
}

.ods-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

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

.ods-footer-col h3 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 16px;
    position: relative;
    padding-bottom: 10px;
}

.ods-footer-col h3::after {
    content: "";
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 3px;
    background: var(--ods-red);
    border-radius: 2px;
}

.ods-footer-col p {
    font-size: 0.875rem;
    line-height: 1.7;
}

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

.ods-footer-col ul li {
    padding: 6px 0;
    font-size: 0.875rem;
}

.ods-footer-col ul li a { color: #94a3b8; }
.ods-footer-col ul li a:hover { color: #fff; padding-left: 4px; }

.ods-footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    font-size: 0.8rem;
}

/* ==========================================================================
   11. AdSense Containers
   ========================================================================== */
.ods-adsense-container {
    position: relative;
    margin: 30px auto;
    padding: 20px 10px 8px;
    text-align: center;
    background: var(--ods-bg-card);
    border: 1px solid var(--ods-border);
    border-radius: var(--radius);
    max-width: 100%;
    clear: both;
}

.ods-adsense-container::before {
    content: "REKLAM";
    position: absolute;
    top: 4px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #94a3b8;
}

/* ==========================================================================
   12. Single Post Reading View
   ========================================================================== */
.single-post .inside-article {
    background: var(--ods-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--ods-border);
    padding: 50px !important;
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .single-post .inside-article { padding: 24px !important; }
}

/* Single Header */
.ods-single-header {
    margin-bottom: 30px;
    text-align: center;
}

.ods-single-cat {
    margin-bottom: 15px;
}

.ods-single-cat a {
    display: inline-block;
    background: rgba(239, 68, 68, 0.1);
    color: var(--ods-red);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ods-single-cat a:hover {
    background: var(--ods-red);
    color: #fff;
}

.ods-single-title {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--ods-navy);
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .ods-single-title { font-size: 1.7rem; }
}

/* Single Meta */
.ods-single-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--ods-border);
}

.ods-meta-author-avatar img {
    border-radius: 50%;
    width: 44px;
    height: 44px;
}

.ods-meta-details {
    text-align: left;
}

.ods-meta-author-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ods-text);
}

.ods-meta-author-name a { color: var(--ods-navy); }
.ods-meta-author-name a:hover { color: var(--ods-red); }

.ods-meta-date-read {
    font-size: 0.8rem;
    color: var(--ods-text-secondary);
    display: flex;
    gap: 6px;
    margin-top: 2px;
}

.ods-single-share {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

@media (max-width: 600px) {
    .ods-single-share { margin-left: 0; width: 100%; justify-content: center; margin-top: 10px; }
}

.ods-share-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ods-text-secondary);
    margin-right: 4px;
}

.ods-share-btn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    color: var(--ods-navy);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
}

.ods-share-btn:hover {
    background: var(--ods-red);
    color: #fff;
    transform: translateY(-2px);
}

/* Featured Image */
.ods-single-image {
    margin: 0 -50px 40px;
}

@media (max-width: 768px) {
    .ods-single-image { margin: 0 -24px 30px; }
}

.ods-single-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Post Content */
.ods-single-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.ods-single-content h2, .ods-single-content h3 {
    color: var(--ods-navy);
    font-weight: 800;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.ods-single-content h2 { font-size: 1.7rem; }
.ods-single-content h3 { font-size: 1.4rem; }

.ods-single-content p {
    margin-bottom: 1.5em;
}

.ods-single-content blockquote {
    border-left: 4px solid var(--ods-red);
    background: #f8fafc;
    padding: 24px 30px;
    margin: 30px 0;
    font-style: italic;
    font-size: 1.25rem;
    color: var(--ods-navy);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Tags */
.ods-single-tags {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.ods-tags-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ods-navy);
    margin-right: 4px;
}

.ods-single-tags a {
    background: #f1f5f9;
    color: var(--ods-text-secondary);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.ods-single-tags a:hover {
    background: var(--ods-navy);
    color: #fff;
}

/* Author Box */
.ods-author-box {
    margin-top: 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: var(--radius);
    border: 1px solid var(--ods-border);
    display: flex;
    gap: 24px;
    align-items: center;
}

@media (max-width: 600px) {
    .ods-author-box { flex-direction: column; text-align: center; }
}

.ods-author-box-avatar img {
    border-radius: 50%;
    width: 80px; height: 80px;
}

.ods-author-box-info h4 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ods-navy);
}

.ods-author-box-info p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--ods-text-secondary);
    line-height: 1.6;
}

/* Related Posts */
.ods-related-posts {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--ods-border);
}

.ods-related-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ods-navy);
    margin-bottom: 24px;
}

.ods-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.ods-related-grid .ods-card-thumb img {
    float: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0;
}

/* Comments Section Styling */
.comments-area {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--ods-border);
}

.comments-title, .comment-reply-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ods-navy);
    margin-bottom: 20px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
}

.comment-form input[type="submit"] {
    background: var(--ods-navy);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form input[type="submit"]:hover {
    background: var(--ods-red);
}

/* Archive, Blog, and Search Grid Layout */
.archive .site-main, .blog .site-main, .search .site-main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Ensure pagination and archive title don't get squished into the grid */
.archive .page-header, .search .page-header {
    grid-column: 1 / -1;
    background: #fff;
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--ods-border);
    margin-bottom: 10px;
}

.archive .page-header h1, .search .page-header h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ods-navy);
    margin: 0;
}

.archive .nav-links, .blog .nav-links, .search .nav-links {
    grid-column: 1 / -1;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .archive .site-main, .blog .site-main, .search .site-main { grid-template-columns: 1fr; }
}

/* ==========================================================================
   13. Utility & Animations
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.ods-card-article { animation: fadeInUp 0.5s ease both; }
.ods-card-article:nth-child(2) { animation-delay: 0.05s; }
.ods-card-article:nth-child(3) { animation-delay: 0.1s; }
.ods-card-article:nth-child(4) { animation-delay: 0.15s; }
.ods-card-article:nth-child(5) { animation-delay: 0.2s; }
.ods-card-article:nth-child(6) { animation-delay: 0.25s; }

/* Infinite Scroll Loader */
.ods-sentinel {
    text-align: center;
    padding: 30px 0;
    margin-top: 20px;
    width: 100%;
}

.ods-loader {
    display: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ods-text-secondary);
}

.ods-sentinel.loading .ods-loader {
    display: inline-block;
}

.ods-loader::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    vertical-align: middle;
    border: 2px solid var(--ods-text-secondary);
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.ods-loader-end {
    font-size: 0.9rem;
    color: #94a3b8;
    font-weight: 500;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}
