/* ====================================
   Oram - Premium Blog Styles
   ==================================== */

/* Blog Layout */
.blog-header-spacer {
    height: 90px;
}

.blog-hero {
    position: relative;
    padding: 120px 0 80px;
    background: var(--hero-gradient);
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1544006659-f0b21884ce1d?w=1920&h=600&fit=crop&q=80') center/cover no-repeat;
    opacity: 0.2;
    z-index: 0;
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.blog-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.blog-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.blog-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

/* Featured Post */
.featured-post-section {
    padding: 60px 0;
    background: #faf9f7;
}

.featured-post-card {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    background: #fff;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card-hover);
}

.featured-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.featured-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.featured-post-card:hover .featured-image-wrapper img {
    transform: scale(1.05);
}

.featured-content {
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.post-tag {
    background: rgba(201, 162, 39, 0.15);
    color: var(--secondary-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.8rem;
}

.featured-content h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    line-height: 1.3;
}

.post-excerpt {
    color: var(--text-medium);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Post Grid */
.blog-posts-section {
    padding-bottom: 100px;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.post-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    top: 0;
}

.post-card:hover {
    top: -10px;
    box-shadow: var(--shadow-card-hover);
}

.card-image {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.post-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    transition: var(--transition);
}

.post-card:hover h3 {
    color: var(--secondary-dark);
}

.card-content p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-link {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.read-more-link:hover {
    gap: 12px;
    color: var(--secondary-dark);
}

/* Responsive */
@media (max-width: 900px) {
    .featured-post-card {
        grid-template-columns: 1fr;
    }

    .featured-image-wrapper {
        min-height: 300px;
    }

    .featured-content {
        padding: 40px 25px;
    }
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
    }
}