/* blogs.php — Blog list card layout */

.blogs-page .hero-content {
    text-align: center;
}

.blogs-page .hero-content p {
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.7;
    color: #4b5563;
}

.blogs-page .blogs-section {
    padding: 3.5rem 0 8rem;
    background-color: var(--light-color);
}

.blogs-page .blogs-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.blogs-page .blog-card {
    display: flex;
    flex-direction: column;
    background: var(--card-surface);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 0.25rem 1.25rem rgb(34 39 51 / 8%);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blogs-page .blog-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: 0 0.75rem 1.75rem rgb(34 39 51 / 12%);
}

.blogs-page .blog-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0ebe4;
}

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

.blogs-page .blog-card__title {
    margin: 0;
    padding: 1.5rem 1.5rem 1.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--secondary-color);
}

.blogs-page .blog-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blogs-page .blog-card__link:hover .blog-card__title {
    color: var(--primary-color);
}

/* Individual blog article pages */

.blog-article-page {
    background-color: var(--light-color);
}

.blog-article__header {
    padding: 3rem 0 0;
    background-color: #f8f3ed;
}

.blog-article__header .container {
    text-align: center;
}

.blog-article__back {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    text-align: left;
}

.blog-article__back a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.blog-article__back a:hover {
    text-decoration: underline;
}

.blog-article__title {
    margin: 0 auto 1rem;
    max-width: 52rem;
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
    text-align: center;
}

.blog-article__intro {
    margin: 0 auto 2rem;
    max-width: 42rem;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #4b5563;
    text-align: center;
}

.blog-article__hero {
    width: 100%;
    max-width: 75rem;
    margin: 2rem auto 0;
    padding: 0 1rem;
    aspect-ratio: 16 / 9;
    max-height: 28rem;
    overflow: hidden;
    background: #f0ebe4;
    border-radius: 0.75rem;
}

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

.blog-article__body {
    padding: 3.5rem 0 6rem;
    max-width: 48rem;
}

.blog-article__body section + section {
    margin-top: 2.5rem;
}

.blog-article__body h2 {
    margin: 0 0 1rem;
    font-size: clamp(1.25rem, 2.5vw, 1.625rem);
    font-weight: 700;
    line-height: 1.35;
    color: var(--secondary-color);
}

.blog-article__body h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--secondary-color);
}

.blog-article__body p {
    margin: 0 0 1rem;
    font-size: 1rem;
    line-height: 1.8;
    color: #374151;
}

.blog-article__body p:last-child {
    margin-bottom: 0;
}

.blog-article__body a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}
