/* ===========================
   BLOG CSS - blog.css
=========================== */

/* --- HERO / BANNER BLOG --- */
.hero-blog {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 50vh;
    background: url('../images/hero-kefir.jpg') no-repeat center center/cover;
    color: #fff;
    text-shadow: 1px 1px 10px rgba(0,0,0,0.6);
    padding: 0 20px;
}
.hero-blog .hero-content {
    max-width: 900px;
}
.hero-blog h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}
.hero-blog p {
    font-size: 1.3rem;
    line-height: 1.5;
}

/* --- POST CONTENT --- */
.post-content {
    max-width: 900px;
    margin: 50px auto;
    padding: 0 20px;
    font-family: 'Arial', sans-serif;
    color: #333;
    line-height: 1.7;
}
.post-content h2 {
    font-size: 2rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: #4caf50;
}
.post-content p {
    margin-bottom: 20px;
}
.post-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}
.post-content li {
    margin-bottom: 10px;
}

/* --- IMÁGENES --- */
.post-content img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    margin: 30px 0;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

/* --- TOC / ÍNDICE --- */
.table-of-contents {
    background: #f8f9f5;
    border-left: 5px solid #4caf50;
    padding: 15px 20px;
    margin-bottom: 40px;
    border-radius: 8px;
}
.table-of-contents h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.table-of-contents ul {
    list-style-type: decimal;
    padding-left: 20px;
}
.table-of-contents a {
    color: #4caf50;
    text-decoration: none;
    transition: all 0.3s;
}
.table-of-contents a:hover {
    text-decoration: underline;
}

/* --- CATEGORÍAS / BOTONES --- */
.blog-categories {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: flex-start;
}

.blog-categories a {
    display: inline-block !important;
    padding: 12px 28px !important; 
    background-color: #4caf50 !important; 
    color: #ffffff !important; 
    border-radius: 50px !important;
    text-decoration: none !important; 
    font-weight: 700 !important;
    font-size: 16px !important;
    line-height: 1 !important; 
    text-align: center !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}

.blog-categories a:hover {
    background-color: #388e3c !important; 
    color: #ffffff !important;
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* --- ENLACES INTERNOS --- */
.post-content a {
    color: #4caf50;
    text-decoration: underline;
    transition: color 0.3s;
}
.post-content a:hover {
    color: #388e3c;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .hero-blog h1 { font-size: 2.2rem; }
    .hero-blog p { font-size: 1.1rem; }
}
@media (max-width: 768px) {
    .post-content { padding: 0 15px; }
    .blog-categories { justify-content: center; }
}
@media (max-width: 480px) {
    .hero-blog { height: 40vh; }
    .hero-blog h1 { font-size: 1.8rem; }
    .hero-blog p { font-size: 1rem; }
}