/**
 * OpaNoticias - Main CSS
 * Archivo principal que importa todos los componentes
 * Ubicaci贸n: /public/assets/css/main.css
 */

/* ==================== RESET & BASE ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #1a1a2e;
    background: #f8f9fa;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ==================== UTILITIES ==================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==================== HEADER ==================== */
.site-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.site-logo {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.site-logo span {
    color: #e63946;
}

.main-nav {
    display: flex;
    gap: 25px;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #fff;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #e63946;
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #1a1a2e;
    padding: 80px 20px 20px;
    z-index: 999;
    transition: right 0.3s ease;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
}

.mobile-nav a {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a:hover {
    color: #e63946;
}

/* ==================== HERO SECTION ==================== */
.home-hero {
    padding: 30px 0;
    background: #fff;
}

.hero-grid {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 25px;
}

/* Judicial Box */
.judicial-box {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}


/* ==================== CATEGORY SECTIONS ==================== */
.section-categories {
    padding: 40px 0;
}

.section-white {
    background: #fff;
}

.category-section {
    margin-bottom: 40px;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 25px;
    border-bottom: 3px solid #e63946;
}

.category-title h2 {
    font-size: 24px;
    font-weight: 800;
}

.view-link {
    color: #e63946;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.3s;
}

.view-link:hover {
    color: #1a1a2e;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.news-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}

.card-image {
    display: block;
    height: 140px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.card-body {
    padding: 15px;
}

.card-category {
    display: inline-block;
    background: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.card-body h3 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.card-body h3 a:hover {
    color: #e63946;
}

.card-date {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 8px;
}

.card-excerpt {
    font-size: 12px;
    color: #6c757d;
    line-height: 1.4;
}

/* Featured Layout (Política) */
.featured-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 25px;
}

.featured-main {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}








/* ==================== SOCIALES CAROUSEL ==================== */
.sociales-section {
    padding: 50px 0;
    background: #f8f9fa;
}

.sociales-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.sociales-header h2 {
    font-size: 28px;
    font-weight: 800;
}

.sociales-carousel-wrapper {
    position: relative;
}

.sociales-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 0;
}

.sociales-carousel::-webkit-scrollbar {
    display: none;
}

.social-card {
    flex-shrink: 0;
    width: 200px;
}

.social-card-thumb {
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 12px;
}

.social-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.social-card:hover .social-card-thumb img {
    transform: scale(1.05);
}

.social-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.social-card:hover .social-card-title {
    color: #e63946;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.carousel-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: #e63946;
    color: #fff;
}

.carousel-prev {
    margin-left: -20px;
}

.carousel-next {
    margin-right: -20px;
}

/* ==================== BANNER SECTION ==================== */
.banner-section {
    padding: 25px 0;
    background: #f8f9fa;
    text-align: center;
}

.banner-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.banner-section img {
    max-width: 728px;
    border-radius: 4px;
}

.ad-label {
    position: absolute;
    right: 0;
    top: 0;
    display: inline-block;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 9px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.banner-rotator .banner-item {
    display: none;
}

.banner-rotator .banner-item.active {
    display: block;
}


/* ==================== FOOTER ==================== */
.site-footer {
    background: linear-gradient(135deg, #1a1a2e, #0f172a);
    color: #fff;
    padding: 50px 0 30px;
    margin-top: 50px;
}

.site-footer::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, #e63946 0%, #4cc9f0 100%);
    margin-top: -50px;
    margin-bottom: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e63946;
    display: inline-block;
}

.footer-col p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    font-size: 14px;
    padding: 5px 0;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: #94a3b8;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .hero-grid {
        grid-template-columns: 250px 1fr 280px;
    }
    
    .cards-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .opinion-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .judicial-box {
        order: 2;
    }
    
    .main-hero {
        order: 1;
    }
    
    .tabs-box {
        order: 3;
    }
    
    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .featured-layout {
        grid-template-columns: 1fr;
    }
    
    .deportes-layout {
        grid-template-columns: 1fr;
    }
    
    .deportes-banner {
        display: none;
    }
    
    .opinion-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .videos-layout {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .deportes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .opinion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-img {
        height: 300px;
    }
    
    .hero-text h1 {
        font-size: 20px;
    }
    
    .category-title h2 {
        font-size: 20px;
    }
    
    .opinion-header h2,
    .videos-header h2,
    .sociales-header h2 {
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .deportes-grid {
        grid-template-columns: 1fr;
    }
    
    .opinion-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-img {
        height: 250px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .social-card {
        width: 160px;
    }
    
    .video-principal-thumb {
        height: 250px;
    }
    
    .featured-main-img {
        height: 250px;
    }
    
    .deportes-featured-img {
        height: 200px;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-card,
.sidebar-item,
.deportes-card,
.opinion-card,
.video-item {
    animation: fadeIn 0.5s ease;
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .site-header,
    .site-footer,
    .banner-section,
    .carousel-nav,
    .mobile-menu {
        display: none;
    }
    
    body {
        background: #fff;
        color: #000;
    }
    
    a {
        color: #000;
    }
}




/* ==========================================================================
   ARTÍCULO INDIVIDUAL - OpaNoticias
   Estilos para la vista de noticia individual
   Agregar al final de main.css
   ========================================================================== */

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs {
    background: #f8f9fa;
    padding: 12px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin: 0 10px;
    color: #adb5bd;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb-item a:hover {
    color: #e63946;
}

.breadcrumb-item.current span {
    color: #1a1a2e;
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==================== ARTICLE LAYOUT ==================== */
.article-main {
    padding: 40px 0 60px;
    background: #fff;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* ==================== ARTICLE ==================== */
.article {
    max-width: 100%;
}

/* Header del Artículo */
.article-header {
    margin-bottom: 30px;
}

.article-category {
    margin-bottom: 15px;
}

.category-badge {
    display: inline-block;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.3s;
}

.category-badge:hover {
    background: #d32f2f;
}

.article-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a2e;
    margin: 0 0 20px 0;
}

/* Meta Info */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.article-meta-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.article-meta-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

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

.author-name {
    font-weight: 600;
    color: #1a1a2e;
    text-decoration: none;
    font-size: 14px;
}

.author-name:hover {
    color: #e63946;
}

.article-date {
    font-size: 13px;
    color: #6c757d;
}

.reading-time,
.article-views {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #6c757d;
}

.reading-time svg,
.article-views svg {
    fill: #adb5bd;
}

/* Share Buttons */
.article-share {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-label {
    font-size: 13px;
    color: #6c757d;
    font-weight: 500;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.share-facebook {
    background: #1877f2;
    color: #fff;
}

.share-twitter {
    background: #000;
    color: #fff;
}

.share-whatsapp {
    background: #25d366;
    color: #fff;
}

.share-copy {
    background: #6c757d;
    color: #fff;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn svg {
    fill: currentColor;
}

/* Imagen Destacada */
.article-featured-image {
    margin: 0 0 30px 0;
    border-radius: 12px;
    overflow: hidden;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Video Embed */
.article-video {
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.article-video .video-responsive {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
}

.article-video .video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Contenido del Artículo */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #333;
}

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

.article-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 35px 0 15px;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 30px 0 12px;
}

.article-content h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a2e;
    margin: 25px 0 10px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

.article-content a {
    color: #e63946;
    text-decoration: underline;
}

.article-content a:hover {
    color: #d32f2f;
}

.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 25px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid #e63946;
    padding: 15px 20px;
    margin: 25px 0;
    background: #f8f9fa;
    font-style: italic;
    color: #555;
}

.article-content pre {
    background: #1a1a2e;
    color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
}

.article-content code {
    background: #f1f3f5;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.article-content figure {
    margin: 25px 0;
}

.article-content figcaption {
    font-size: 13px;
    color: #6c757d;
    text-align: center;
    margin-top: 10px;
}

/* Article Footer - Tags */
.article-footer {
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.article-tags {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.tags-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
    padding-top: 5px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-item {
    display: inline-block;
    background: #f1f3f5;
    color: #495057;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag-item:hover {
    background: #e63946;
    color: #fff;
}

/* Author Box */
.author-box {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.author-box-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-box-info {
    flex: 1;
}

.author-box-label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.author-box-name {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
    margin-bottom: 8px;
}

.author-box-name:hover {
    color: #e63946;
}

.author-box-bio {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

/* ==================== SIDEBAR ==================== */
.article-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.sidebar-banner {
    position: relative;
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.sidebar-banner .ad-label {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
}

.sidebar-banner img {
    width: 100%;
    height: auto;
    display: block;
}

/* Sidebar Widget */
.sidebar-widget {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #e63946;
}

/* Sidebar Posts */
.sidebar-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-post-item {
    display: flex;
    gap: 12px;
}

.sidebar-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.sidebar-post-item:hover .sidebar-post-thumb img {
    transform: scale(1.05);
}

.sidebar-post-info {
    flex: 1;
    min-width: 0;
}

.sidebar-post-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.sidebar-post-title a:hover {
    color: #e63946;
}

.sidebar-post-date {
    font-size: 11px;
    color: #6c757d;
}

/* Sidebar Categories */
.sidebar-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-categories li {
    border-bottom: 1px solid #e9ecef;
}

.sidebar-categories li:last-child {
    border-bottom: none;
}

.sidebar-categories a {
    display: block;
    padding: 10px 0;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.sidebar-categories a:hover {
    color: #e63946;
    padding-left: 10px;
}

/* ==================== RELATED POSTS ==================== */
.related-posts {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 25px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid #e63946;
    display: inline-block;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.related-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.related-card-image {
    position: relative;
    display: block;
    height: 160px;
    overflow: hidden;
}

.related-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-card-image img {
    transform: scale(1.05);
}

.related-card-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 3px;
}

.related-card-body {
    padding: 15px;
}

.related-card-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card-title a {
    color: #1a1a2e;
    text-decoration: none;
}

.related-card-title a:hover {
    color: #e63946;
}

.related-card-date {
    font-size: 12px;
    color: #6c757d;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .article-layout {
        grid-template-columns: 1fr 280px;
        gap: 30px;
    }
    
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .article-title {
        font-size: 30px;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-main {
        padding: 25px 0 40px;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-meta-right {
        width: 100%;
        justify-content: flex-start;
    }
    
    .article-content {
        font-size: 16px;
    }
    
    .article-sidebar {
        grid-template-columns: 1fr;
    }
    
    .author-box {
        flex-direction: column;
        text-align: center;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .related-card-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-item.current span {
        max-width: 150px;
    }
    
    .article-title {
        font-size: 22px;
    }
    
    .article-share {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .share-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .article-author {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
    }
}

/* ==================== PRINT STYLES ==================== */
@media print {
    .breadcrumbs,
    .article-share,
    .article-sidebar,
    .related-posts,
    .site-header,
    .site-footer {
        display: none !important;
    }
    
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        font-size: 12pt;
    }
    
    .article-title {
        font-size: 18pt;
    }
}