/* =============================================================================
   YTCF Blog — blog.css
   Blog-specific styles. Matches theytcommentfinder.com design system.
   ============================================================================= */

/* --- Design Tokens (mirrored from main site) --- */
:root {
    --primary-color: #ff0000;
    --primary-dark: #cc0000;
    --secondary-color: #282828;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    --white: #ffffff;
    --black: #000000;
    --box-shadow: 0 5px 15px rgba(0,0,0,.1);
    --transition: all 0.3s ease;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --container-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); line-height: 1.6; color: var(--dark-color); background: var(--light-color); }
a { text-decoration: none; color: var(--primary-color); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* --- Container --- */
.container { width: 100%; max-width: var(--container-width); margin: 0 auto; padding: 0 20px; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 10px 22px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn:hover { background: var(--primary-dark); transform: translateY(-2px); color: var(--white); }

/* =========================================================
   NAVBAR — exact match to main site
   ========================================================= */
.navbar {
    background: var(--white);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}
.navbar .container { display: flex; align-items: center; }
.logo-align-left .container { justify-content: space-between; }
.logo-align-center .container { flex-direction: column; justify-content: center; gap: 15px; }

.navbar .logo img { height: auto; transition: var(--transition); display: block; }
.logo-size-small .logo img { width: 100px; }
.logo-size-medium .logo img { width: 150px; }
.logo-size-large .logo img { width: 220px; }

.nav-links ul { display: flex; gap: 25px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links li { position: relative; }
.nav-links li a { font-weight: 600; color: var(--dark-color); transition: var(--transition); display: block; padding: 5px 0; }
.nav-links li a:hover { color: var(--primary-color); }

/* WP Dropdown (sub-menus) */
.nav-links li ul {
    display: none;
    position: absolute;
    background: var(--white);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,.1);
    z-index: 101;
    border-radius: 5px;
    top: 100%;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 10px 0;
}
.nav-links li:hover > ul { display: flex; }
.nav-links li ul li { width: 100%; }
.nav-links li ul li a {
    padding: 10px 20px;
    font-size: .95rem;
    font-weight: 500;
    border-bottom: 1px solid var(--light-gray);
}
.nav-links li ul li:last-child a { border-bottom: none; }
.nav-links li ul li a:hover { background: var(--light-color); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--dark-color); cursor: pointer; }

/* =========================================================
   FOOTER — exact match to main site
   ========================================================= */
.footer { background: var(--secondary-color); color: var(--white); padding: 60px 0 0; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; margin-bottom: 40px; }
@media (min-width: 769px) {
    .footer-cols-1 { grid-template-columns: 1fr; }
    .footer-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .footer-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .footer-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.footer-section h3 { font-size: 1.2rem; margin-bottom: 18px; color: var(--white); }
.footer-section p { color: #ccc; font-size: .9rem; line-height: 1.7; margin-top: 12px; }
.footer-section ul { display: flex; flex-direction: column; gap: 10px; }
.footer-section a { color: var(--light-gray); transition: var(--transition); font-size: .95rem; }
.footer-section a:hover { color: var(--white); }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: .9rem; color: #ccc; }
.social-links { display: flex; gap: 15px; }
.social-links a { color: var(--white); font-size: 1.2rem; transition: var(--transition); }
.social-links a:hover { color: var(--primary-color); }

/* =========================================================
   BREADCRUMB
   ========================================================= */
.blog-breadcrumb { padding: 12px 0; background: var(--white); border-bottom: 1px solid var(--light-gray); }
.blog-breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; gap: 0; }
.blog-breadcrumb li { font-size: .875rem; color: var(--gray-color); display: flex; align-items: center; }
.blog-breadcrumb li + li::before { content: "/"; margin: 0 10px; color: var(--gray-color); }
.blog-breadcrumb a { color: var(--primary-color); }
.blog-breadcrumb a:hover { text-decoration: underline; }
/* RankMath / Yoast breadcrumb wrapper */
.rank-math-breadcrumb p,
.yoast-breadcrumb { font-size: .875rem; color: var(--gray-color); }
.rank-math-breadcrumb a,
.yoast-breadcrumb a { color: var(--primary-color); }

/* =========================================================
   BLOG HERO BANNER
   ========================================================= */
.blog-hero {
    padding: 50px 0 40px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
}
.blog-hero h1 { font-size: 2.2rem; margin-bottom: 10px; color: var(--dark-color); }
.blog-hero p { font-size: 1.05rem; color: var(--gray-color); max-width: 560px; margin: 0 auto; }

/* Archive hero */
.archive-hero { padding: 40px 0 30px; background: var(--white); border-bottom: 1px solid var(--light-gray); }
.archive-hero h1 { font-size: 1.8rem; color: var(--dark-color); }
.archive-hero .archive-description { font-size: 1rem; color: var(--gray-color); margin-top: 8px; }

/* =========================================================
   MAIN LAYOUT — Content + Sidebar
   ========================================================= */
.blog-main { padding: 50px 0 60px; }
.blog-layout, .single-layout { display: grid; gap: 40px; align-items: start; }

/* Global Layout Rules */
.layout-right-sidebar .blog-layout, 
.layout-right-sidebar .single-layout { grid-template-columns: 1fr 320px; }

.layout-left-sidebar .blog-layout,
.layout-left-sidebar .single-layout { grid-template-columns: 320px 1fr; }
.layout-left-sidebar .blog-sidebar { order: -1; }

.layout-no-sidebar .blog-layout,
.layout-no-sidebar .single-layout { grid-template-columns: 1fr; max-width: 850px; margin-left: auto; margin-right: auto; }
.layout-no-sidebar .blog-sidebar { display: none; }

/* =========================================================
   POST CARD GRID (index / archive)
   ========================================================= */
.posts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.post-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,.12); }

.post-card-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; background: var(--light-gray); }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-thumb .post-no-thumb {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff6b6b 100%);
    color: var(--white); font-size: 2.5rem;
}

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

.post-category-badge {
    display: inline-block;
    padding: 3px 10px;
    background: rgba(255,0,0,.08);
    color: var(--primary-color);
    font-size: .78rem;
    font-weight: 700;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 10px;
    width: fit-content;
}
.post-category-badge:hover { background: var(--primary-color); color: var(--white); }

.post-card-title { font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.post-card-title a { color: var(--dark-color); transition: var(--transition); }
.post-card-title a:hover { color: var(--primary-color); }

.post-card-excerpt { font-size: .9rem; color: var(--gray-color); line-height: 1.6; flex: 1; margin-bottom: 16px; }

.post-card-meta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--light-gray); }
.post-card-author { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--gray-color); }
.post-card-author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.post-card-date { font-size: .82rem; color: var(--gray-color); }
.post-card-date i { margin-right: 4px; color: var(--primary-color); }

.post-card-footer { padding: 0 20px 18px; }
.read-more-link { font-size: .88rem; font-weight: 600; color: var(--primary-color); display: inline-flex; align-items: center; gap: 5px; transition: var(--transition); }
.read-more-link:hover { gap: 8px; color: var(--primary-dark); }

/* No posts */
.no-posts { text-align: center; padding: 60px 20px; color: var(--gray-color); background: var(--white); border-radius: 10px; box-shadow: var(--box-shadow); }
.no-posts i { font-size: 3rem; color: var(--light-gray); margin-bottom: 16px; }

/* =========================================================
   PAGINATION
   ========================================================= */
.blog-pagination { margin: 40px 0 0; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.blog-pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    background: var(--white);
    color: var(--dark-color);
    font-weight: 600;
    font-size: .9rem;
    transition: var(--transition);
}
.blog-pagination .page-numbers:hover { background: var(--light-gray); border-color: #ccc; color: var(--dark-color); }
.blog-pagination .page-numbers.current { background: var(--primary-color); border-color: var(--primary-color); color: var(--white); }
.blog-pagination .page-numbers.dots { border: none; background: none; width: auto; }

/* =========================================================
   SIDEBAR
   ========================================================= */
.blog-sidebar { display: flex; flex-direction: column; gap: 28px; }

.sidebar-widget {
    background: var(--white);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--box-shadow);
}
.sidebar-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color);
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* Recent Posts widget */
.recent-post-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--light-gray); }
.recent-post-item:last-child { border-bottom: none; padding-bottom: 0; }
.recent-post-thumb { flex-shrink: 0; width: 65px; height: 50px; border-radius: 6px; overflow: hidden; background: var(--light-gray); }
.recent-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-post-info a { font-size: .875rem; font-weight: 600; color: var(--dark-color); line-height: 1.3; display: block; margin-bottom: 4px; transition: var(--transition); }
.recent-post-info a:hover { color: var(--primary-color); }
.recent-post-info span { font-size: .78rem; color: var(--gray-color); }

/* Categories widget */
.cat-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--light-gray); }
.cat-item:last-child { border-bottom: none; }
.cat-item a { font-size: .9rem; color: var(--dark-color); transition: var(--transition); }
.cat-item a:hover { color: var(--primary-color); }
.cat-count { background: var(--light-gray); color: var(--gray-color); font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; }

/* Tag Cloud widget */
.tag-cloud-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud-link {
    display: inline-block;
    padding: 5px 12px;
    background: var(--light-gray);
    color: var(--gray-color);
    border-radius: 4px;
    font-size: .82rem !important;
    font-weight: 500;
    transition: var(--transition);
}
.tag-cloud-link:hover { background: var(--primary-color); color: var(--white); }

/* Search widget */
.sidebar-search { display: flex; gap: 0; }
.sidebar-search input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--light-gray);
    border-right: none;
    border-radius: 5px 0 0 5px;
    font-size: .9rem;
    font-family: var(--font-main);
    outline: none;
}
.sidebar-search button {
    padding: 10px 16px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: var(--transition);
}
.sidebar-search button:hover { background: var(--primary-dark); }

/* SINGLE POST STYLES */
.single-post-header { margin-bottom: 28px; }
.single-post-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.single-post-title { font-size: 2rem; line-height: 1.25; color: var(--dark-color); margin-bottom: 16px; }
.single-post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; font-size: .88rem; color: var(--gray-color); padding-bottom: 18px; border-bottom: 1px solid var(--light-gray); }
.single-post-meta i { color: var(--primary-color); margin-right: 4px; }
.single-post-meta a { color: var(--gray-color); transition: var(--transition); }
.single-post-meta a:hover { color: var(--primary-color); }

.single-featured-img { margin-bottom: 32px; border-radius: 10px; overflow: hidden; box-shadow: var(--box-shadow); }
.single-featured-img img { width: 100%; }

/* Post Content Typography */
.post-content { font-size: 1.05rem; line-height: 1.8; color: var(--dark-color); }
.post-content h2 { font-size: 1.6rem; margin: 32px 0 14px; color: var(--dark-color); }
.post-content h3 { font-size: 1.3rem; margin: 26px 0 12px; color: var(--dark-color); }
.post-content h4 { font-size: 1.1rem; margin: 20px 0 10px; }
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px 24px; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { margin-bottom: 8px; line-height: 1.7; }
.post-content a { color: var(--primary-color); text-decoration: underline; }
.post-content a:hover { color: var(--primary-dark); }
.post-content img { border-radius: 8px; margin: 20px 0; }
.post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 14px 20px;
    margin: 24px 0;
    background: rgba(255,0,0,.04);
    border-radius: 0 6px 6px 0;
    font-style: italic;
    color: var(--gray-color);
}
.post-content code { background: #f1f1f1; padding: 2px 7px; border-radius: 4px; font-size: .9em; }
.post-content pre { background: #282828; color: #f8f9fa; padding: 20px; border-radius: 8px; overflow-x: auto; margin-bottom: 18px; }
.post-content pre code { background: none; padding: 0; }
.post-content table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.post-content th, .post-content td { padding: 10px 14px; border: 1px solid var(--light-gray); text-align: left; }
.post-content th { background: var(--light-color); font-weight: 700; }

/* Post Tags */
.post-tags { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--light-gray); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.post-tags .tags-label { font-weight: 700; font-size: .9rem; color: var(--dark-color); }
.post-tag {
    display: inline-block; padding: 4px 12px;
    background: var(--light-gray); color: var(--gray-color);
    border-radius: 4px; font-size: .82rem; transition: var(--transition);
}
.post-tag:hover { background: var(--primary-color); color: var(--white); }

/* Author Box */
.author-box {
    display: flex; gap: 20px; align-items: flex-start;
    background: var(--white); border-radius: 10px;
    padding: 24px; box-shadow: var(--box-shadow);
    margin-top: 36px;
}
.author-avatar { flex-shrink: 0; width: 70px; height: 70px; border-radius: 50%; overflow: hidden; border: 3px solid var(--primary-color); }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info h4 { font-size: 1rem; margin-bottom: 6px; }
.author-info p { font-size: .88rem; color: var(--gray-color); line-height: 1.6; }

/* Post Navigation */
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 36px; }
.nav-post {
    background: var(--white); border-radius: 8px; padding: 18px;
    box-shadow: var(--box-shadow); transition: var(--transition);
}
.nav-post:hover { transform: translateY(-2px); }
.nav-post-label { font-size: .78rem; color: var(--gray-color); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; margin-bottom: 6px; }
.nav-post-title { font-size: .95rem; font-weight: 700; color: var(--dark-color); line-height: 1.3; transition: var(--transition); }
.nav-post:hover .nav-post-title { color: var(--primary-color); }
.nav-post.next { text-align: right; }

/* =========================================================
   COMMENTS
   ========================================================= */
.blog-comments { margin-top: 40px; }
.blog-comments h2 { font-size: 1.4rem; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--primary-color); }

.comment-list { list-style: none; }
.comment { background: var(--white); border-radius: 8px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.comment-body .comment-author img { width: 44px; height: 44px; border-radius: 50%; }
.comment-meta { font-size: .82rem; color: var(--gray-color); margin-bottom: 10px; }
.comment-content p { font-size: .95rem; line-height: 1.7; }

/* Comment Form */
.comment-respond { background: var(--white); border-radius: 10px; padding: 28px; box-shadow: var(--box-shadow); margin-top: 28px; }
.comment-respond h3 { font-size: 1.2rem; margin-bottom: 20px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--light-gray);
    border-radius: 5px;
    font-size: .95rem;
    font-family: var(--font-main);
    margin-bottom: 14px;
    transition: border-color .2s;
    outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--primary-color); }
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 11px 26px;
    border-radius: 5px;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    transition: var(--transition);
}
.comment-form .submit:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* =========================================================
   SEARCH PAGE
   ========================================================= */
.search-hero { padding: 40px 0 30px; background: var(--white); border-bottom: 1px solid var(--light-gray); }
.search-hero h1 { font-size: 1.6rem; color: var(--dark-color); }
.search-form-bar { display: flex; gap: 0; max-width: 560px; margin-top: 16px; }
.search-form-bar input {
    flex: 1; padding: 11px 16px;
    border: 1px solid var(--light-gray); border-right: none;
    border-radius: 5px 0 0 5px; font-size: 1rem;
    font-family: var(--font-main); outline: none;
}
.search-form-bar button {
    padding: 11px 20px; background: var(--primary-color); color: var(--white);
    border: none; border-radius: 0 5px 5px 0; cursor: pointer; transition: var(--transition);
}
.search-form-bar button:hover { background: var(--primary-dark); }

/* =========================================================
   404 PAGE
   ========================================================= */
.error-404-section { padding: 80px 0; text-align: center; }
.error-404-section .error-code { font-size: 6rem; font-weight: 900; color: var(--primary-color); line-height: 1; }
.error-404-section h2 { font-size: 1.8rem; margin: 16px 0 12px; }
.error-404-section p { color: var(--gray-color); margin-bottom: 28px; font-size: 1.05rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
    .blog-layout, .single-layout { grid-template-columns: 1fr; }
    .blog-sidebar { order: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
}

@media (max-width: 768px) {
    .posts-grid { grid-template-columns: 1fr; }
    .single-post-title { font-size: 1.6rem; }
    .post-navigation { grid-template-columns: 1fr; }
    .nav-post.next { text-align: left; }
    .author-box { flex-direction: column; }
    .blog-hero h1 { font-size: 1.7rem; }

    /* Mobile navbar */
    .menu-toggle { display: block; }
    .nav-links {
        display: none; width: 100%; padding-top: 15px;
        margin-top: 15px; border-top: 1px solid var(--light-gray);
    }
    .nav-links.active { display: block; }
    .nav-links ul { flex-direction: column; align-items: flex-start; gap: 10px; width: 100%; }
    .nav-links li { width: 100%; }
    .nav-links li ul { position: static; box-shadow: none; background: var(--light-color); width: 100%; display: none; margin-top: 5px; }
    .nav-links li.menu-item-has-children > a::after { content: "\f0d7"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: 8px; }
    .nav-links li.active > ul { display: block; }
    
    .navbar .container { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .blog-hero h1 { font-size: 1.4rem; }
    .blog-sidebar { grid-template-columns: 1fr; }
}

/* =========================================================
   PREMIUM SEO & UX FEATURES
   ========================================================= */

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--primary-color);
    z-index: 1001;
    transition: width 0.1s ease-out;
}

/* Social Share Buttons */
.social-share-wrap {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid var(--light-gray);
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.share-label {
    font-weight: 700;
    font-size: .9rem;
    color: var(--dark-color);
    text-transform: uppercase;
}
.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    transition: var(--transition);
}
.share-btn:hover { transform: translateY(-3px); opacity: 0.9; color: var(--white); }
.share-facebook { background: #3b5998; }
.share-twitter { background: #1da1f2; }
.share-linkedin { background: #0077b5; }
.share-whatsapp { background: #25d366; }

/* Related Posts */
.related-posts {
    margin: 60px 0;
    padding-top: 40px;
    border-top: 2px solid var(--light-gray);
}
.related-title {
    font-size: 1.6rem;
    margin-bottom: 30px;
    color: var(--dark-color);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.related-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.related-card:hover { transform: translateY(-5px); box-shadow: var(--box-shadow); }

.related-thumb-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.related-thumb { display: block; height: 100%; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.related-card:hover .related-thumb img { transform: scale(1.1); }

.related-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    margin-bottom: 0;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.related-info { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.related-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}
.related-card h4 a { color: var(--dark-color); transition: var(--transition); }
.related-card h4 a:hover { color: var(--primary-color); }

.related-card time {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--gray-color);
    display: flex;
    align-items: center;
    gap: 6px;
}
.related-card time i { color: var(--primary-color); }


/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .back-to-top { bottom: 20px; right: 20px; width: 40px; height: 40px; }
    .related-grid { grid-template-columns: 1fr; }
}

