/* ========================================
   HOME MODERN PAGE LAYOUT
   ======================================== */
/* ========================================
   HOME MODERN PAGE STYLES
   Styles for post-only layout
   ======================================== */

.home-modern-page {
    background: #ffffff;
    padding: 40px 0 80px;
    margin: 0;
}

.home-modern-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   RECENT SECTION
   ======================================== */

.home-recent-section {
    flex: 1;
}

.home-section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
}

/* ========================================
   POST LIST ITEMS
   ======================================== */

.home-post-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.home-post-item:last-child {
    border-bottom: none;
}

/* Featured First Post - Larger Layout */
.home-post-item-featured {
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 50px;
    border-bottom: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-post-item-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.home-post-item-featured .home-post-item-thumbnail {
    width: 100%;
    height: 400px;
    border-radius: 0;
}

.home-post-item-featured .home-post-item-content {
    padding: 30px;
}

.home-post-item-featured .home-post-item-category {
    font-size: 12px;
    margin-bottom: 12px;
}

.home-post-item-featured .home-post-item-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.home-post-item-featured .home-post-item-excerpt {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 15px;
    color: #555;
}

.home-post-item-featured .home-post-item-meta {
    font-size: 14px;
}

.home-post-item-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
    position: relative;
}

.home-post-item-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-post-item-thumbnail-date {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    font-size: 10px;
    padding: 4px 6px;
    text-align: center;
    font-weight: 500;
}

.home-post-item:hover .home-post-item-thumbnail img {
    transform: scale(1.05);
}

.home-post-item-content {
    flex: 1;
}

.home-post-item-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.home-post-item-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.home-post-item-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-post-item-title a:hover {
    color: var(--primary-color);
}

.home-post-item-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 10px 0;
}

.home-post-item-meta {
    font-size: 13px;
    color: #999;
}

/* ========================================
   CATEGORY SECTION
   ======================================== */

.home-category-section {
    margin-top: 60px;
    padding-top: 60px;
    border-top: 2px solid #e5e5e5;
}

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

.home-category-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.home-category-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-category-link:hover {
    color: var(--secondary-color);
}

.home-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.home-category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.home-category-card-thumbnail {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.home-category-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-category-card-thumbnail-date {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    text-align: center;
    font-weight: 500;
}

.home-category-card:hover .home-category-card-thumbnail img {
    transform: scale(1.05);
}

.home-category-card-content {
    padding: 20px;
}

.home-category-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 10px 0;
}

.home-category-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.home-category-card-title a:hover {
    color: var(--primary-color);
}

.home-category-card-meta {
    font-size: 13px;
    color: #999;
}

/* ========================================
   RESPONSIVE DESIGN FOR MODERN LAYOUT
   ======================================== */

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

@media (max-width: 768px) {
    .home-section-title,
    .home-category-title {
        font-size: 24px;
    }

    .home-post-item {
        flex-direction: column;
        gap: 15px;
    }

    .home-post-item-thumbnail {
        width: 100%;
        height: 200px;
    }

    .home-post-item-title {
        font-size: 18px;
    }
    
    /* Featured post responsive */
    .home-post-item-featured .home-post-item-thumbnail {
        height: 250px;
    }
    
    .home-post-item-featured .home-post-item-content {
        padding: 20px;
    }
    
    .home-post-item-featured .home-post-item-title {
        font-size: 24px;
    }
    
    .home-post-item-featured .home-post-item-excerpt {
        font-size: 16px;
    }

    .home-category-grid {
        grid-template-columns: 1fr;
    }

    .home-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}


