/* ========== FRONT PAGE — White & Teal ========== */

/* ─── Hero Section ─── */
.front-hero {
    background: linear-gradient(135deg, var(--color-hero-start, #0d3535) 0%, var(--color-hero-end, #1a5252) 100%);
    padding: 100px 40px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.front-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 40%, rgba(22, 160, 133, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.front-hero-inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.front-hero-heading {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.front-hero-subheading {
    font-size: clamp(15px, 2vw, 18px);
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
    max-width: 600px;
	letter-spacing: -0.02em;
    margin: 0 auto;
}

.front-hero-btn {
    margin-top: 36px;
    display: inline-block;
    padding: 14px 36px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all var(--transition-normal);
}

.front-hero-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--color-hero-start, #0d3535);
}

/* ─── Posts Section Header ─── */
.posts-section-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8e8e8;
}

.posts-section-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #aaaaaa;
}

/* ─── Main Grid Section ─── */
.main-hero-section {
    background: var(--color-bg-alt, #f4f6f8);
    min-height: 60vh;
    padding: 60px 0 80px;
}

/* 히어로 섹션 비활성화 시 네비게이션(70px) 높이만큼 상단 여백 추가 */
.main-hero-section.no-hero {
    padding-top: 130px;
}

.main-hero-inner {
    max-width: var(--site-max-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* ─── Category Filter ─── */
.category-filter {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.filter-tab {
    font-size: 11px;
    font-weight: 700;
    color: #888888;
    padding: 7px 16px;
    border: none;
    border-radius: 20px;
    transition: color 0.18s ease, background 0.18s ease;
    background: none;
    cursor: pointer;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.filter-tab:hover {
    color: #1a1a2e;
    background: #ebebeb;
}

.filter-tab.active {
    color: #ffffff;
    background: var(--color-accent, #16a085);
}

/* ─── Posts Grid — 4칸 균일 그리드 ─── */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ─── Card Base ─── */
.card-item {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eeeeee;
    position: relative;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent, #16a085);
    z-index: 2;
}

.card-link {
    display: block;
    height: 100%;
    color: inherit;
}

/* ─── 썸네일 ─── */
.card-thumbnail {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 10px 10px 0 0;
}

.card-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.card-item:hover .card-thumbnail img {
    transform: scale(1.04);
    opacity: 0.92;
}

.card-no-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4f6f8 0%, #e8eaed 100%);
}

.card-no-thumb svg {
    stroke: #cccccc;
}

/* ─── Card Body ─── */
.card-body {
    padding: 18px 20px 22px;
}

.card-category {
    margin-bottom: 9px;
}

.category-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-accent, #16a085);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: none;
    border: none;
    padding: 0;
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.55;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    transition: color 0.2s ease;
}

.card-item:hover .card-title {
    color: var(--color-accent, #16a085);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.card-tag {
    font-size: 11px;
    color: #aaaaaa;
    font-weight: 400;
    transition: color 0.2s ease;
}

.card-item:hover .card-tag {
    color: #888888;
}

.card-date {
    font-size: 11px;
    color: #bbbbbb;
    display: block;
    letter-spacing: 0.03em;
}

/* ─── Load More ─── */
.load-more-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.load-more-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #666666;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    padding: 13px 32px;
    border: 1px solid #e0e0e0;
    background: #ffffff;
    border-radius: 24px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.load-more-btn:hover {
    color: #ffffff;
    border-color: var(--color-accent, #16a085);
    background: var(--color-accent, #16a085);
}

.load-more-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.load-more-btn.loading .load-more-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ─── Archive Header ─── */
.archive-header {
    text-align: center;
    margin-bottom: 20px;
}

.archive-description {
    color: #666666;
    font-size: 15px;
    margin-top: 12px;
}

/* ─── No Results ─── */
.no-results {
    text-align: center;
    padding: 100px 20px;
}

.no-results-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 12px;
}

.no-results-desc {
    font-size: 14px;
    color: #666666;
}

.no-results .search-form {
    max-width: 400px;
    margin: 30px auto 0;
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
}

.no-results .search-field {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #1a1a2e;
    font-size: 16px;
    font-family: var(--font-primary);
}

.no-results .search-submit {
    color: #aaaaaa;
}
