/* New Hero Layout */
.hero-new {
    padding: 10px 0;
    background: #f8f9fa;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 2.5rem;
    line-height: 1.3;
    margin: 20px 0;
}

.hero-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hero-title a:hover {
    color: #0073aa;
}

.hero-excerpt {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.hero-meta {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.read-more:hover {
    gap: 12px;
}

.hero-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.hero-image:hover .hero-img {
    transform: scale(1.03);
}

/* Random Category Section */
.random-category-section {
    padding: 60px 0;
    background: #fff;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.8rem;
    margin: 0;
}

.section-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.section-title a:hover {
    color: #0073aa;
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.view-all i {
    transition: transform 0.2s ease;
}

.view-all:hover i {
    transform: translateX(3px);
}

.category-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 25px;
}

.category-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.category-card.featured {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.post-thumbnail {
    position: relative;
    overflow: hidden;
}

.category-card:not(.featured) .post-thumbnail {
    padding-top: 66.67%;
}

.post-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.category-card:hover .post-image {
    transform: scale(1.05);
}

.entry-wrapper {
    padding: 20px;
}

.featured .entry-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.entry-title {
    margin: 0 0 10px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.featured .entry-title {
    font-size: 1.4rem;
}

.entry-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666;
}

.entry-summary {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Responsive */
@media (max-width: 991px) {
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        max-width: 600px;
    }
    
    .category-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .category-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card.featured {
        grid-column: span 1;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
