/* --- Main Layout: 2-Column --- */
.site-main {
    max-width: var(--max-width);
    margin: 28px auto;
    padding: 0 24px;
}

.home-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
}

.content-column {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* --- Hero (Featured) Card --- */
.hero-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.hero-card:hover {
    box-shadow: var(--shadow-hover);
}

.hero-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-info .tag-chip {
    margin-bottom: 14px;
}

.hero-title {
    font-size: 2rem;
    line-height: 1.15;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.hero-title a {
    color: var(--text-main);
}

.hero-title a:hover {
    color: var(--accent-dark);
}

.hero-summary {
    color: var(--text-muted);
    margin: 0 0 18px;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Post Cards Grid --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.post-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

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

.post-card .card-thumb {
    display: block;
    height: 140px;
    overflow: hidden;
}

.post-card .card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.post-card:hover .card-thumb img {
    transform: scale(1.05);
}

.post-card .post-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.post-card h3 {
    margin: 10px 0 6px;
    font-size: 0.98rem;
    line-height: 1.35;
    text-transform: uppercase;
}

.post-card h3 a {
    color: var(--text-main);
}

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

.read-more {
    margin-top: auto;
    padding-top: 10px;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--accent-dark);
}

.read-more:hover {
    color: var(--accent);
    text-decoration: none;
}

/* --- Home Responsive --- */
@media (max-width: 980px) {
    .home-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-card {
        grid-template-columns: 1fr;
    }

    .hero-media img {
        height: 220px;
    }

    .hero-info {
        padding: 24px;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .site-main {
        padding: 0 16px;
    }
}

/* --- 404 Page --- */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 40px 20px;
    text-align: center;
}

.error-content {
    max-width: 400px;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    margin: 0 0 8px;
    letter-spacing: -0.05em;
}

.error-title {
    font-size: 1.75rem;
    text-transform: uppercase;
    margin: 0 0 16px;
}

.error-message {
    color: var(--text-muted);
    margin: 0 0 28px;
    line-height: 1.7;
}

.btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--accent);
    color: #1b1f24;
    font-weight: 700;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow);
}

.btn-home:hover {
    background-color: var(--accent-dark);
    color: #1b1f24;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.error-hint {
    margin-top: 24px;
    color: var(--text-muted);
    font-size: 0.9rem;
}