/* ===== Blog Page ===== */
.blog-page {
    padding: 7.5rem 0 4rem;
}

.blog-page__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.blog-page__header {
    text-align: center;
    margin-bottom: 3rem;
}

.blog-page__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.blog-page__subtitle {
    font-size: 1.125rem;
    color: #8a8a9a;
}

/* Empty state */
.blog-page__empty {
    text-align: center;
    padding: 4rem 0;
    font-size: 1.125rem;
    color: #8a8a9a;
}

/* Grid */
.blog-page__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

@media (max-width: 600px) {
    .blog-page__grid {
        grid-template-columns: 1fr;
    }
}

/* Card */
.blog-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.blog-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

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

.blog-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-card__meta {
    margin-bottom: 0.5rem;
}

.blog-card__date {
    font-size: 0.875rem;
    color: #8a8a9a;
}

.blog-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    color: inherit;
}

.blog-card__excerpt {
    font-size: 0.9375rem;
    color: #5a5a6a;
    line-height: 1.6;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* card is now an <a> — reset link styles */
a.blog-card {
    text-decoration: none;
    color: inherit;
}

/* ===== Article Detail Page ===== */
.blog-post-page {
    padding: 7.5rem 0 5rem;
}

.blog-post-page__container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.blog-post-page__back {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    color: #2c7be5;
    text-decoration: none;
    transition: opacity 0.2s;
}

.blog-post-page__back:hover {
    opacity: 0.75;
}

.blog-post-page__cover {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
    aspect-ratio: 16 / 7;
}

.blog-post-page__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-post-page__meta {
    margin-bottom: 1rem;
}

.blog-post-page__title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}

.blog-post-page__excerpt {
    font-size: 1.125rem;
    color: #5a5a6a;
    line-height: 1.7;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #ebebf0;
}

/* Article content typography */
.blog-post-page__content {
    font-size: 1rem;
    line-height: 1.8;
    color: #2a2a35;
}

.blog-post-page__content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.blog-post-page__content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 2rem 0 0.75rem;
    line-height: 1.4;
}

.blog-post-page__content p {
    margin-bottom: 1.25rem;
}

.blog-post-page__content ul,
.blog-post-page__content ol {
    margin: 0 0 1.25rem 1.5rem;
}

.blog-post-page__content li {
    margin-bottom: 0.4rem;
}

.blog-post-page__content strong {
    font-weight: 600;
}

.blog-post-page__content a {
    color: #2c7be5;
    text-decoration: underline;
}
