/**
 * Blog Landing Page Styles
 * Featured card + floating cards with dark blue background
 */

/* Blog Hero Section */
.blog-hero {
    background: linear-gradient(135deg, #E6F3FF 0%, #FFFFFF 50%, #F0FFFF 100%);
    padding: 6rem 0 4rem;
    text-align: center;
}

.blog-hero__title {
    font-family: 'Varela Round', sans-serif;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #1B4D72;
}

.blog-hero__title .gradient-text {
    background: linear-gradient(135deg, #2E86AB, #4ECDC4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero__subtitle {
    font-size: 1.25rem;
    color: #4A5568;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content Container */
.blog-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1.5rem 5rem;
    background: #f5f5f5;
}

/* ============================================================================
   FEATURED POST CARD (Large Horizontal)
   ============================================================================ */

.featured-post-card {
    background: #FFFFFF;
    border-radius: 1.5rem;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.featured-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-post-card__link {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    text-decoration: none;
    color: inherit;
}

.featured-post-card__image {
    position: relative;
    overflow: hidden;
}

.featured-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    transition: transform 0.6s ease;
}

.featured-post-card:hover .featured-post-card__image img {
    transform: scale(1.05);
}

.featured-post-card__content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-post-card__meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.featured-post-card__category {
    background: #2E86AB;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.featured-post-card__date {
    color: #718096;
    display: flex;
    align-items: center;
}

.featured-post-card__title {
    font-family: 'Varela Round', sans-serif;
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #1B4D72;
}

.featured-post-card__excerpt {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #4A5568;
    margin-bottom: 2rem;
}

.featured-post-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #E2E8F0;
}

.featured-post-card__author {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.featured-post-card__author img {
    border-radius: 50%;
    border: 2px solid #2E86AB;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #1B4D72;
    font-size: 0.95rem;
}

.reading-time,
.post-date {
    font-size: 0.875rem;
    color: #718096;
}

.featured-post-card__read-more {
    color: #2E86AB;
    font-weight: 600;
    font-size: 1rem;
}

/* ============================================================================
   FLOATING CARDS GRID (Dark Blue Cards)
   ============================================================================ */

.blog-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-floating-card {
    background: #1B4D72;
    border: 2px solid white;
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(27, 77, 114, 0.2);
    position: relative;
}

.blog-floating-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 1.5rem;
}

.blog-floating-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(27, 77, 114, 0.4);
    border-color: #4ECDC4;
}

.blog-floating-card:hover::before {
    opacity: 1;
}

.blog-floating-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-floating-card__image {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
}

.blog-floating-card__image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.blog-floating-card:hover .blog-floating-card__image img {
    transform: scale(1.08);
}

.blog-floating-card__content {
    padding: 2rem;
}

.blog-floating-card__category {
    background: white;
    color: #1B4D72;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.blog-floating-card__title {
    font-family: 'Varela Round', sans-serif;
    font-size: 1.5rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: white;
}

.blog-floating-card__excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.blog-floating-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.blog-floating-card__author {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.blog-floating-card__author img {
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.blog-floating-card:hover .blog-floating-card__author img {
    border-color: #4ECDC4;
    box-shadow: 0 0 12px rgba(78, 205, 196, 0.5);
}

.blog-floating-card__author .author-name {
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
}

.blog-floating-card__author .post-date {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.blog-floating-card__footer .reading-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Pagination */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.blog-pagination a,
.blog-pagination span {
    padding: 0.75rem 1.25rem;
    border: 2px solid #2E86AB;
    border-radius: 0.5rem;
    color: #2E86AB;
    text-decoration: none;
    background: white;
    transition: all 0.2s ease;
    font-weight: 500;
}

.blog-pagination a:hover {
    background: #2E86AB;
    color: white;
    transform: translateY(-2px);
}

.blog-pagination .current {
    background: #2E86AB;
    color: white;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 1024px) {
    .blog-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-hero__title {
        font-size: 2.5rem;
    }
    
    .featured-post-card__link {
        grid-template-columns: 1fr;
    }
    
    .featured-post-card__image img {
        min-height: 300px;
    }
    
    .featured-post-card__content {
        padding: 2rem;
    }
    
    .featured-post-card__title {
        font-size: 2rem;
    }
    
    .blog-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .blog-hero {
        padding: 4rem 0 3rem;
    }
    
    .blog-hero__title {
        font-size: 2rem;
    }
    
    .featured-post-card__title {
        font-size: 1.75rem;
    }
    
    .blog-floating-card__content {
        padding: 1.5rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}