/**
 * TVWeb - Estilos Principales
 * Diseño profesional con colores vivos y brillantes
 */

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
:root {
    --primary: #0088FF;
    --primary-light: #4DA6FF;
    --primary-dark: #0066CC;
    --secondary: #00C853;
    --secondary-light: #69F0AE;
    --accent: #FF4444;
    --accent-light: #FF7777;
    --warning: #FFB300;
    --info: #00BCD4;
    --bg-white: #FFFFFF;
    --bg-light: #F0F6FF;
    --bg-section: #F5F9FF;
    --text-dark: #1A1A2E;
    --text-body: #444444;
    --text-muted: #888888;
    --border-light: #E8EEF4;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --shadow-glow: 0 4px 25px rgba(0,136,255,0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font);
    background: #e8eef4; /* fallback - se sobreescribe dinámicamente desde Admin > Apariencia */
    color: var(--text-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ═══════════════════════════════════════
   BOXED / ENCAJONADO LAYOUT
   ═══════════════════════════════════════ */
.site-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-white);
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--primary-dark); }

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

/* ═══════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════ */
.top-bar {
    background: linear-gradient(135deg, var(--primary) 0%, #00B4D8 100%);
    color: #fff;
    padding: 8px 0;
    font-size: 0.85rem;
}

.top-bar-left span {
    opacity: 0.9;
    font-weight: 400;
}

.top-bar-left span i { margin-right: 4px; }

.top-bar-right {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.top-bar-right a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: var(--transition);
}

.top-bar-right a:hover {
    background: #fff;
    color: var(--primary);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.main-nav {
    background: #fff;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 0.6rem 0;
    z-index: 1000;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary) !important;
    gap: 10px;
}

.nav-logo {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    background: linear-gradient(135deg, var(--primary), #00B4D8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-toggler {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
}

.main-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.6rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 0.95rem;
}

.main-nav .nav-link:hover,
.main-nav .nav-link.active {
    color: var(--primary) !important;
    background: var(--bg-light);
}

.btn-app-download {
    background: linear-gradient(135deg, var(--secondary), #00E676);
    color: #fff !important;
    border: none;
    border-radius: var(--radius-xl);
    padding: 8px 20px !important;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(0,200,83,0.3);
    transition: var(--transition);
}

.btn-app-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,200,83,0.4);
    color: #fff !important;
}

/* ═══════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════ */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.hero-slider .swiper-slide {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.hero-slider .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent 0%, rgba(0,0,0,0.7) 100%);
    padding: 3rem 2rem 2rem;
    color: #fff;
}

.slider-overlay h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.slider-overlay p {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    max-width: 600px;
}

.slider-overlay .btn-slider {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: var(--radius-xl);
    font-weight: 600;
    transition: var(--transition);
}

.slider-overlay .btn-slider:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,68,68,0.3);
}

.hero-slider .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--primary);
    opacity: 1;
    width: 30px;
    border-radius: 6px;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
    color: #fff;
    background: rgba(0,136,255,0.6);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    transition: var(--transition);
}

.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
    background: var(--primary);
}

.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
    font-size: 1.1rem;
    font-weight: 700;
}

/* ═══════════════════════════════════════
   BANNER ADS
   ═══════════════════════════════════════ */
.ad-banner {
    padding: 1.5rem 0;
    text-align: center;
}

.ad-banner img,
.ad-banner video {
    max-width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.ad-banner a { display: inline-block; }

.ad-sidebar {
    margin-bottom: 1.5rem;
}

.ad-sidebar img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ═══════════════════════════════════════
   LIVE TV SECTION
   ═══════════════════════════════════════ */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.section-title .icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.section-title .icon-box.red { background: linear-gradient(135deg, var(--accent), #FF6B6B); }
.section-title .icon-box.blue { background: linear-gradient(135deg, var(--primary), #00B4D8); }
.section-title .icon-box.green { background: linear-gradient(135deg, var(--secondary), #69F0AE); }
.section-title .icon-box.amber { background: linear-gradient(135deg, var(--warning), #FFD54F); }

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse-live 2s infinite;
}

.live-badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    animation: blink 1s infinite;
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,68,68,0.4); }
    50% { box-shadow: 0 0 0 8px rgba(255,68,68,0); }
}

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

.live-section {
    padding: 3rem 0;
    background: var(--bg-section);
}

.player-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: var(--shadow-lg);
}

.player-wrapper .player-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.player-wrapper .player-container video,
.player-wrapper .player-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.player-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 1.2rem;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, transparent 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.player-header .channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.player-header .channel-info img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
}

.player-header .channel-name {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */
.sidebar-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.sidebar-card-header {
    background: linear-gradient(135deg, var(--primary), #00B4D8);
    color: #fff;
    padding: 1rem 1.2rem;
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card-body {
    padding: 1rem 1.2rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border-light);
}

.schedule-item:last-child { border-bottom: none; }

.schedule-time {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    min-width: 55px;
    text-align: center;
    background: var(--bg-light);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.schedule-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
}

.schedule-current {
    background: linear-gradient(135deg, rgba(0,136,255,0.08), rgba(0,200,83,0.08));
    border-radius: var(--radius-sm);
    padding: 0.7rem !important;
    margin: 0 -0.5rem;
}

.schedule-current .schedule-time {
    background: var(--accent);
    color: #fff;
}

/* ═══════════════════════════════════════
   VIDEOS SECTION
   ═══════════════════════════════════════ */
.videos-section {
    padding: 3rem 0;
}

.video-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
}

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

.video-card .video-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    overflow: hidden;
    background: #E0E0E0;
}

.video-card .video-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-card:hover .video-thumb img {
    transform: scale(1.08);
}

.video-card .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    background: rgba(0,136,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.video-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card .video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-card .video-category {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: var(--radius-xl);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.video-card .video-info {
    padding: 1rem;
}

.video-card .video-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-card .video-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.video-card .video-meta i {
    margin-right: 3px;
}

/* Category Filter Pills */
.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.category-pill {
    padding: 6px 18px;
    border-radius: var(--radius-xl);
    border: 2px solid var(--border-light);
    background: #fff;
    color: var(--text-body);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

/* ═══════════════════════════════════════
   SCHEDULE SECTION
   ═══════════════════════════════════════ */
.schedule-section {
    padding: 3rem 0;
    background: var(--bg-section);
}

.day-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.day-tab {
    padding: 10px 22px;
    border-radius: var(--radius-xl);
    background: #fff;
    color: var(--text-body);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--border-light);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.day-tab:hover,
.day-tab.active {
    background: linear-gradient(135deg, var(--primary), #00B4D8);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.schedule-grid {
    display: grid;
    gap: 1rem;
}

.schedule-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.schedule-row:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.schedule-row .time-badge {
    background: linear-gradient(135deg, var(--primary), #00B4D8);
    color: #fff;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.85rem;
    min-width: 110px;
    text-align: center;
    white-space: nowrap;
}

.schedule-row .program-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.schedule-row .program-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
    background: linear-gradient(135deg, #0a1628, #1a2d4a);
    color: #ccc;
}

.footer-top {
    padding: 3rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
}

.footer-brand h4 {
    color: #fff;
    font-weight: 700;
    margin: 0;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.7rem;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: #bbb;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-links a i {
    font-size: 0.7rem;
    margin-right: 6px;
    color: var(--primary);
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-contact li i {
    color: var(--primary);
    margin-top: 4px;
}

.footer-app-text {
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.store-badge { display: inline-block; }
.store-img { height: 45px; width: auto; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1rem 0;
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════
   WHATSAPP FLOAT
   ═══════════════════════════════════════ */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 6px 30px rgba(37,211,102,0.5);
    color: #fff;
}

/* ═══════════════════════════════════════
   BACK TO TOP
   ═══════════════════════════════════════ */
.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 95px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    z-index: 999;
    transition: var(--transition);
}

.back-to-top.visible { display: flex; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ═══════════════════════════════════════
   VIDEO MODAL
   ═══════════════════════════════════════ */
.video-modal .modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-modal .modal-header {
    background: linear-gradient(135deg, var(--primary), #00B4D8);
    color: #fff;
    border: none;
}

.video-modal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.video-modal .modal-body {
    padding: 0;
    background: #000;
}

.video-modal .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
}

.video-modal .video-container video,
.video-modal .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */

/* ═══════════════════════════════════════
   RESPONSIVE: ENCAJONADO
   El viewport está fijo en 1400px, así que
   el móvil renderiza idéntico al escritorio.
   No se necesitan media queries que cambien
   el layout.
   ═══════════════════════════════════════ */

/* ═══════════════════════════════════════
   NEWS CARDS (index + noticias)
   ═══════════════════════════════════════ */
.news-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.news-card-featured {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.news-card-featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.news-card-featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.news-cat-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
}

.news-card-featured-overlay h3 {
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.5rem 0 0.3rem;
    line-height: 1.3;
}

.news-card-meta {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

.news-card-small {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform .2s;
    height: 100%;
}

.news-card-small:hover { transform: translateY(-2px); }

.news-card-small img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.news-card-small-body {
    padding: 0.7rem;
}

.news-card-small-body h6 {
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 0 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.news-card-small-body small {
    color: #999;
    font-size: 0.75rem;
}

/* News list page cards */
.news-list-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: transform .2s, box-shadow .2s;
    height: 100%;
}

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

.news-list-card-img {
    position: relative;
}

.news-list-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.news-list-card-img .badge-featured {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: #333;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}

.news-list-card-img .badge-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.news-list-card-body {
    padding: 1rem;
}

.news-list-card-body h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-card-body p {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-card-body .meta {
    font-size: 0.75rem;
    color: #999;
}

/* News detail */
.news-detail-article {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.news-detail-article > img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

.news-detail-body {
    padding: 2rem;
}

.news-detail-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: #222;
    margin-bottom: 1rem;
}

.news-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.news-detail-excerpt {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.news-detail-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.news-detail-tags { margin-top: 2rem; padding-top: 1rem; border-top: 2px solid #f0f0f0; }
.news-detail-tags a {
    display: inline-block;
    background: #f0f0f0;
    color: #666;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    margin: 3px;
}
.news-detail-tags a:hover { background: var(--primary); color: #fff; }

.news-detail-share { margin-top: 1.5rem; padding-top: 1rem; border-top: 2px solid #f0f0f0; }
.news-detail-share-btns { display: flex; gap: 0.5rem; margin-top: 0.5rem; flex-wrap: wrap; }
.news-detail-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}
.news-detail-share-btn:hover { transform: translateY(-2px); color: #fff; }

/* News hero/breadcrumb section */
.news-hero-section {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 2rem 0;
    color: #fff;
}
.news-hero-section h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
}
.news-breadcrumb {
    font-size: 0.9rem;
    margin-top: 0.3rem;
    opacity: 0.85;
}
.news-breadcrumb a { color: #fff; text-decoration: none; }

/* Related news */
.related-news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    transition: transform .2s;
}
.related-news-card:hover { transform: translateY(-3px); }
.related-news-card img { width: 100%; height: 140px; object-fit: cover; }
.related-news-card-body { padding: 0.8rem; }
.related-news-card-body h6 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related-news-card-body small { color: #999; }

/* ═══════════════════════════════════════
   LOADING ANIMATION
   ═══════════════════════════════════════ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════════════════════════════════════
   NO CONTENT PLACEHOLDER
   ═══════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-light);
}

.empty-state h5 { color: var(--text-dark); }
