/************ Blog listing ************/
.blog-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 58px 20px 90px;
}

.blog-intro {
    max-width: 720px;
    margin: 0 auto 50px;
    text-align: center;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;    
    font-weight: 450;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/************ Post card ************/
.post-card {
    display: flex;
    flex-direction: column;
    background: #faf8f3;
    border: 1px solid #ece5d8;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    border-color: #d8cfbf;
    box-shadow: 0 14px 30px rgba(34, 58, 89, 0.12);
    color: inherit;
    text-decoration: none;
}

.post-card .post-thumb {
    height: 200px;
    overflow: hidden;
    background: #e9e2d5;
}

.post-card .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.post-card:hover .post-thumb img {
    transform: scale(1.05);
}

.post-card .post-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px 24px 26px;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.post-tag {
    color: #b67a1c;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.post-date {
    color: #8a8a8a;
}

.post-card h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.55rem;
    font-weight: 600;
    color: #223a59;
    line-height: 1.3;
    margin-bottom: 12px;
}

.post-card .post-excerpt {
    color: #555;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 18px;
}

.post-card .post-more {
    margin-top: auto;
    color: #b67a1c;
    font-weight: 500;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-card:hover .post-more {
    text-decoration: underline;
}

/************ "Em breve" placeholder cards ************/
.post-card.coming {
    cursor: default;
    opacity: 0.85;
}

.post-card.coming .post-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eee6d8, #e2d8c6);
    color: #b9a984;
}

.post-card.coming .post-thumb svg {
    width: 48px;
    height: 48px;
}

.post-card.coming:hover {
    transform: none;
    box-shadow: none;
    border-color: #ece5d8;
}

/************ Article (single post) ************/
.post-article {
    max-width: 780px;
    margin: 0 auto;
    padding: 40px 20px 90px;
}

.post-article .article-hero {
    width: 100%;
    height: min(46vh, 420px);
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 30px;
    background: #e9e2d5;
}

.post-article .article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-article .article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 0.85rem;
}

.post-article h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.6rem;
    font-weight: 600;
    color: #223a59;
    line-height: 1.2;
    margin-bottom: 28px;
}

.post-article .article-body {
    color: #444;
    line-height: 1.9;
    font-size: 1.05rem;
}

.post-article .article-subtitle {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #6a5a3a;
    margin: -14px 0 26px;
}

.post-article .article-body .article-verse {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    line-height: 1.7;
    color: #223a59;
    padding-left: 18px;
    border-left: 3px solid #b67a1c;
    margin-bottom: 28px;
}

.post-article .article-body .article-signature {
    margin-top: 34px;
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    color: #b67a1c;
    line-height: 1.4;
}

.post-article .article-body .article-signature span {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    font-style: italic;
    color: #8a8a8a;
}

.post-article .article-body .article-lead {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.6;
    color: #333;
    margin-bottom: 26px;
}

.post-article .article-body .article-dialogue {
    background: #faf8f3;
    border: 1px solid #ece5d8;
    border-radius: 12px;
    padding: 22px 26px;
    margin-bottom: 28px;
}

.post-article .article-body .article-dialogue p {
    margin-bottom: 12px;
    padding-left: 26px;
    text-indent: -26px;
}

.post-article .article-body .article-dialogue p:last-child {
    margin-bottom: 0;
}

.post-article .article-body .article-dialogue .sp {
    font-weight: 700;
    color: #b67a1c;
    margin-right: 6px;
}

.post-article .article-body .article-quote {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.35rem;
    font-style: italic;
    line-height: 1.65;
    color: #223a59;
    padding-left: 18px;
    border-left: 3px solid #b67a1c;
    margin: 28px 0;
}

.post-article .article-body .article-quote cite {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 0.9rem;
    font-style: normal;
    color: #8a8a8a;
    margin-top: 8px;
    text-align: right;
}

.post-article .article-body .article-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 30px 0;
}

.post-article .article-body .article-gallery figure {
    margin: 0;
}

.post-article .article-body .article-gallery img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.post-article .article-body .article-gallery figcaption {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #8a8a8a;
    font-style: italic;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .post-article .article-body .article-gallery {
        grid-template-columns: 1fr;
    }
}

.post-article .article-body p {
    margin-bottom: 20px;
    text-align: justify;
}

.post-article .article-body h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    color: #223a59;
    margin: 32px 0 14px;
}

.post-article .article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    color: #223a59;
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}

.post-article .article-back:hover {
    color: #b67a1c;
    gap: 12px;
}

.post-article .article-hero-full {
    height: auto;
    background: transparent;
}

.post-article .article-hero-full img {
    height: auto;
    object-fit: contain;
}

/* Fit the whole image inside the standard hero box (letterboxed) */
.post-article .article-hero-contain img {
    object-fit: contain;
}

/* Portrait frame that wraps a vertical image tightly (no side letterbox) */
.post-article .article-hero-portrait {
    width: fit-content;
    height: min(52vh, 480px);
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.5);
}

.post-article .article-hero-portrait img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

/************ Responsive ************/
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-container {
        padding: 44px 20px 70px;
    }

    .post-article h1 {
        font-size: 2rem;
    }
}
