/* ===== POST HERO ===== */

.post-hero {
    background: #1b1c53;
    color: #fff;
    padding: 120px 0 80px 0;
    text-align: center;
}

.post-hero-container {
    max-width: 900px;
    margin: auto;
    padding: 0 40px;
}

.post-hero h1 {
    font-size: 46px;
    font-weight: 800;
    margin: 20px 0;
}

.post-meta {
    opacity: 0.8;
    font-size: 14px;
}

/* ===== POST CONTENT ===== */

.post-content {
    background: #fff;
    padding: 100px 0;
}

.post-content-container {
    max-width: 900px;
    margin: auto;
    padding: 0 40px;
}

.post-featured-img {
    width: 100%;
    border-radius: 20px;
    margin-bottom: 50px;
}

.post-body p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    color: #444;
}

.post-body h2 {
    margin: 40px 0 20px 0;
    font-size: 28px;
}
/* ===== LAYOUT POST CON ASIDE ===== */

.post-layout {
    max-width: 1200px;
    margin: auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}
/* ===== SIDEBAR ===== */

.post-sidebar h3 {
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 700;
}

.sidebar-news {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.sidebar-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: #000;
    transition: 0.3s ease;
}

.sidebar-item img {
    width: 90px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar-item p {
    font-size: 15px;
    font-weight: 600;
}

.sidebar-item:hover {
    transform: translateX(5px);
}
#green-bracelet {
    font-weight: bold;
    color: green;
}
@media (max-width: 1000px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}
/* ===========================
   PAGINA DE NOTICIAS — Grid 3 columnas
   =========================== */

.news-page {
    background: #f5f5f8;
    padding: 60px 0 80px;
}

.news-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* News card reset & style */
a.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    text-decoration: none !important;
    color: inherit !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 3px solid var(--amarillo, #f5c518);
}
a.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}
a.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
a.news-card .news-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}
a.news-card .news-content h3 {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 4px 0;
    line-height: 1.4;
}
a.news-card .news-content p {
    font-size: 13px;
    color: #666;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
a.news-card .read-more {
    display: inline-block;
    margin-top: auto;
    padding-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--azul, #1b1c53);
    text-decoration: none;
}
a.news-card:hover .read-more {
    color: var(--amarillo, #f5c518);
}

/* Responsive */
@media (max-width: 960px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; }
    .news-page-container { padding: 0 16px; }
}

/* ===========================
   ARTICULO INDIVIDUAL — post
   =========================== */

.post-featured-image {
    width: 100%;
    border-radius: 14px;
    margin-bottom: 32px;
    display: block;
}

.post-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 30px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.post-main {
    min-width: 0;
}

.post-sidebar {
    position: sticky;
    top: 120px;
}

.post-sidebar h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #1b1c53;
    padding-bottom: 10px;
    border-bottom: 3px solid #f5c518;
}

.sidebar-news {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none;
    color: #111;
    transition: 0.2s ease;
    padding: 10px;
    border-radius: 10px;
    background: #f7f7fb;
}
.sidebar-item:hover {
    background: #eeeef8;
    transform: translateX(3px);
}
.sidebar-item img {
    width: 80px;
    min-width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
}
.sidebar-item p {
    font-size: 13px;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 900px) {
    .post-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 20px;
    }
    .post-sidebar { position: static; }
}


/* === Category pills: always inline in a row === */
.news-content .cat-pill,
.post-hero-container .cat-pill {
    display: inline-block;
}

/* Wrap container so pills sit in a row */
.news-card .news-content,
a.news-card .news-content {
    /* already flex column — add a pills row wrapper via JS or force inline on pills */
}

/* Force pills row in all contexts */
.cat-pills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 6px;
}

/* === Sidebar item — restructured with body, subtitle, read-more === */
.sidebar-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    text-decoration: none !important;
    color: #111 !important;
    transition: 0.2s ease;
    padding: 12px;
    border-radius: 10px;
    background: #f7f7fb;
    border-left: 3px solid transparent;
}
.sidebar-item:hover {
    background: #eeeef8;
    border-left-color: #f5c518;
}
.sidebar-item img {
    width: 80px;
    min-width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.sidebar-item-placeholder {
    width: 80px;
    min-width: 80px;
    height: 60px;
    background: #e8e8f0;
    border-radius: 8px;
    flex-shrink: 0;
}
.sidebar-item-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.sidebar-item-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    color: #111;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.sidebar-item-sub {
    font-size: 12px;
    color: #777;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.sidebar-read-more {
    font-size: 12px;
    font-weight: 700;
    color: #1b1c53;
    margin-top: 4px;
}
.sidebar-item:hover .sidebar-read-more {
    color: #f5c518;
}

/* RESPONSIVE POST FIXES PARA MOVIL */
@media (max-width: 768px) {
    .post-hero {
        padding: 50px 0 25px 0 !important;
    }
    .post-content {
        padding: 0 !important; /* Move spacing entirely into layout */
    }
    .post-layout {
        padding: 25px 20px !important;
    }
    .post-hero-container {
        padding: 0 20px !important;
    }
    .post-hero h1 {
        font-size: 24px !important;
        margin: 15px 0 !important;
    }
    .single-post-img {
        margin-bottom: 20px !important;
    }
}
