/* ========================================
   BLOG PAGE STYLES - MACHUPICCHU SURVIVOR
   ======================================== */

   :root {
    --primary-orange: #ff8c42;
    --primary-green: #4a5c3f;
    --text-dark: #2d3436;
    --white: #ffffff;
}

/* ========================================
   HERO SECTION (Estático para Blog)
   ======================================== */

.about-hero {
    position: relative;
    width: 100%;
    height: 225px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(28, 32, 17, 0.4), rgba(28, 32, 17, 0.4)),
                rgba(123, 122, 122, 0.3);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-left: 10%;
}

.hero-content h1 {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 600;
    margin: 0;

}

/* ========================================
   BLOG GRID SECTION
   ======================================== */

.blog-section {
    padding: 80px 0;
    background: var(--white);
}

.blog-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Article Card */
.blog-card {
    text-decoration: none;
    position: relative;
    display: block;
    border-radius: 30px; /* Bordes ovalados según referencia */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 450px; /* Altura vertical para estilo Islandia */
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover Effect: Capa Naranja */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 140, 66, 0.75); /* Naranja translúcido */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.blog-card:hover .card-overlay {
    opacity: 1;
}

/* Titulo sobre la imagen (Superior) */
.card-title-container {
    position: absolute;
    top: 35px;
    left: 20px;
    right: 20px;
    z-index: 3;
    pointer-events: none;
}

.article-title {
    color: var(--white);
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.3;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    margin: 0;
}

/* Fecha sobre la imagen (Inferior) */
.card-date-container {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}

.article-date {
    color: var(--white);
    font-family: "Poppins", sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.article-date i {
    margin-right: 6px;
    color: var(--primary-orange);
}

.blog-card:hover .article-date {
    background: transparent;
    backdrop-filter: none;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .hero-content h1 {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .blog-section {
        padding: 50px 0;
    }

    .article-title {
        font-size: 1.2rem;
    }

    .card-image-wrapper {
        height: 380px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .card-image-wrapper {
        height: 320px;
    }
}