/* CSS Custom Properties - Color Palette */
:root {
    --rich-black: #04080fff;
    --glaucous: #507dbcff;
    --powder-blue: #a1c6eaff;
    --columbia-blue: #bbd1eaff;
    --platinum: #dae3e5ff;
}

/* Blog-specific styles */

/* Blog Header */
.blog-header {
    padding: 180px 0 80px;
    background: var(--glaucous);
    color: white;
    text-align: center;
}

/* Ensure content clears fixed navbar and keeps natural flow */

.blog-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.blog-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Blog Posts Section */
.blog-posts {
    padding: 80px 0;
    background: #f8f9fa;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Blog Post Cards */
.blog-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.blog-post-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.blog-post-card.featured .post-image {
    height: 100%;
    min-height: 400px;
}

.blog-post-card .post-image {
    height: 200px;
    background: var(--glaucous);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--glaucous);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 10;
    max-width: calc(50% - 1rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-date {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    z-index: 10;
    white-space: nowrap;
}

.post-content {
    padding: 2rem;
}

.post-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.blog-post-card.featured .post-title {
    font-size: 2rem;
}

.post-excerpt {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.read-time {
    color: #718096;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-block;
}

.read-more {
    color: var(--glaucous);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #5a67d8;
}

.read-more i {
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.load-more-section .btn {
    background: var(--glaucous);
    color: white;
    border: 2px solid var(--glaucous);
    padding: 12px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
}

.load-more-section .btn:hover {
    background: var(--powder-blue);
    border-color: var(--powder-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}


/* Responsive Design */
@media (max-width: 768px) {
    .blog-header {
        padding: 160px 0 70px;
    }
    
    .blog-title {
        font-size: 2.5rem;
    }
    
    .blog-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-post-card.featured {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .blog-post-card.featured .post-image {
        height: 100%;
        min-height: 300px;
    }
    
    .blog-post-card.featured .post-title {
        font-size: 1.5rem;
    }
    
}

@media (max-width: 480px) {
    .blog-header {
        padding: 140px 0 60px;
    }
    
    .blog-title {
        font-size: 2rem;
    }
    
    .post-content {
        padding: 1.5rem;
    }
    
    .post-title {
        font-size: 1.3rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Animation for blog cards */
.blog-post-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.blog-post-card:nth-child(1) { animation-delay: 0.1s; }
.blog-post-card:nth-child(2) { animation-delay: 0.2s; }
.blog-post-card:nth-child(3) { animation-delay: 0.3s; }
.blog-post-card:nth-child(4) { animation-delay: 0.4s; }
.blog-post-card:nth-child(5) { animation-delay: 0.5s; }
.blog-post-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for post images */
.post-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-post-card:hover .post-image::before {
    opacity: 1;
}

/* Category color variations - removed Strategy special styling to match default */

.post-category[data-en="Growth"],
.post-category[data-es="Crecimiento"] {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.post-category[data-en="Leadership"],
.post-category[data-es="Liderazgo"] {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.post-category[data-en="International"],
.post-category[data-es="Internacional"] {
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
}

.post-category[data-en="Performance"],
.post-category[data-es="Desempeño"] {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.post-category[data-en="Social Impact"],
.post-category[data-es="Impacto Social"] {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
}
