/* ================================================================
   HOME PAGE - LATEST & FEATURED HERO SECTION
   ================================================================ */

/* Hero Grid - 2 Column Layout */
.gh-home-hero {
    margin-bottom: 80px;
}

.gh-home-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Section title override - 24px instead of default */
.gh-home-hero .gh-topic-name {
    font-size: 2.4rem; /* 24px */
}

/* ================================================================
   LATEST POST (Left Column)
   ================================================================ */

.gh-latest-wrapper {
    display: flex;
    flex-direction: column;
}

.gh-latest-wrapper .gh-topic-name {
    margin-bottom: 32px;
}

.gh-latest-post {
    display: flex;
    flex-direction: column;
}

.gh-latest-image {
    display: block;
    margin-bottom: 24px;
    overflow: hidden;
}

.gh-latest-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.gh-latest-image:hover img {
    transform: scale(1.02);
}

.gh-latest-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gh-latest-post-title {
    margin: 0;
    font-size: 2.8rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.gh-latest-post-title a {
    color: #15171A;
    text-decoration: none;
}

.gh-latest-post-title a:hover {
    opacity: 0.8;
}

/* Latest excerpt - custom_excerpt 사용, 최대 1줄 */
.gh-latest-content .gh-card-excerpt {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.5;
    color: #15171A;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 최대 1줄 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50ch;
}

/* ================================================================
   FEATURED POSTS (Right Column)
   ================================================================ */

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

.gh-featured-wrapper .gh-topic-name {
    margin-bottom: 32px;
}

.gh-featured-list {
    display: flex;
    flex-direction: column;
    gap: 40px; /* topic-grid와 동일한 간격 */
}

.gh-featured-card {
    display: block;
}

.gh-featured-card-link {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px; /* topic-grid와 동일한 간격 */
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.gh-featured-card-link:hover {
    opacity: 0.8;
}

.gh-featured-image {
    width: 220px;
    height: 147px; /* 3:2 aspect ratio */
    overflow: hidden;
    flex-shrink: 0;
}

.gh-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gh-featured-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: flex-start;
}

.gh-featured-card-title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #15171A;
}

/* Featured excerpt - custom_excerpt 사용, 최대 3줄 */
.gh-featured-content .gh-card-excerpt {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.5;
    color: #15171A;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* 최대 3줄 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Metadata styling (shared with Latest) */
.gh-card-meta {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 12px;
    font-weight: 400;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.gh-card-type {
    font-weight: 500;
}

.gh-card-sep {
    margin: 0 4px;
    color: #999999;
    font-size: 13px;
}

.gh-card-tag {
    font-weight: 500;
}

/* Article meta separator (for post pages) */
.gh-meta-sep {
    margin: 0 4px;
}

/* ================================================================
   RESPONSIVE - Tablet
   ================================================================ */

@media (max-width: 1024px) {
    .gh-home-hero-grid {
        gap: 48px;
    }
    
    .gh-featured-card-link {
        grid-template-columns: 160px 1fr;
        gap: 20px;
    }
    
    .gh-featured-image {
        width: 160px;
        height: 107px;
    }
    
    .gh-latest-post-title {
        font-size: 2.4rem;
    }
    
    .gh-featured-card-title {
        font-size: 1.8rem;
    }
}

/* ================================================================
   RESPONSIVE - Mobile
   ================================================================ */

@media (max-width: 768px) {
    .gh-home-hero-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }
    
    .gh-latest-wrapper .gh-topic-name,
    .gh-featured-wrapper .gh-topic-name {
        margin-bottom: 24px;
    }
    
    .gh-latest-post-title {
        font-size: 2.2rem;
    }
    
    .gh-latest-content .gh-card-excerpt {
        font-size: 1.5rem;
    }
    
    .gh-featured-list {
        gap: 32px;
    }
    
    .gh-featured-card-link {
        grid-template-columns: 140px 1fr;
        gap: 16px;
    }
    
    .gh-featured-image {
        width: 140px;
        height: 93px;
    }
    
    .gh-featured-card-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .gh-home-hero {
        margin-bottom: 60px;
    }
    
    .gh-home-hero-grid {
        gap: 48px;
    }
    
    .gh-latest-post-title {
        font-size: 2rem;
    }
    
    .gh-featured-card-link {
        grid-template-columns: 120px 1fr;
        gap: 12px;
    }
    
    .gh-featured-image {
        width: 120px;
        height: 80px;
    }
    
    .gh-featured-card-title {
        font-size: 1.6rem;
    }
}
