/* ============================================================
   BLOG PAGES — Cloud ALPH
   Tokens copied 1:1 from case.css so blog.html / blog-details.html
   sit visually identical to the case-studies pages.
   ============================================================ */

:root {
    --bg-color: #d19999;
    --text-main: #2D221F;
    --text-muted: #FFF6F2;
    --accent: #FFF6F2;
    --accent-gradient: linear-gradient(135deg, #FFB7A1 0%, #FF8A65 100%);
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --card-border: rgba(255, 183, 161, 0.25);
    --card-bg: rgba(227, 181, 170, 0.815);
    --shadow-sm: 0 10px 30px rgba(255, 138, 101, 0.04);
    --shadow-md: 0 20px 50px rgba(255, 138, 101, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1200px; margin: 0 auto; padding: 180px 5% 100px 5%; }

.page-header { text-align: center; max-width: 800px; margin: 0 auto 4rem auto; }
.page-header h1 { font-size: clamp(2.8rem, 6vw, 4.8rem); font-family: var(--font-serif); font-weight: 400; letter-spacing: -1.5px; margin-bottom: 1.5rem; line-height: 1.05; }
.page-header h1 em { font-style: italic; color: #FFF0EB; font-weight: 400; }
.page-header p { color: var(--text-muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.65; }

.block-label {
    font-family: var(--font-serif); font-size: 1.3rem; font-style: italic;
    color: var(--text-muted); margin-bottom: 1.5rem; font-weight: 400;
}

/* ============================================================
   MAIN BLOG COLLECTION
============================================================ */
.blog-collection-wrap { margin-bottom: 4rem; }

.blog-collection { display: grid; gap: 2.5rem; }
.blog-collection.view-grid { grid-template-columns: repeat(3, 1fr); }
.blog-collection.view-grid .post-card { display: flex; flex-direction: column; }
.blog-collection.view-grid .post-image-frame { aspect-ratio: 1.4; border-radius: 24px; margin-bottom: 1.2rem; }

.post-card {
    background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 28px; padding: 1.2rem; box-shadow: var(--shadow-sm);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.post-image-frame { display: block; overflow: hidden; }
.post-image-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.post-card:hover .post-image-frame img { transform: scale(1.05); }

.post-body { padding: 0 0.4rem 0.4rem 0.4rem; }
.post-body h3 { font-family: var(--font-sans); font-size: 1.25rem; font-weight: 700; line-height: 1.35; margin-bottom: 0.6rem; }
.post-body h3 a { color: var(--text-muted); text-decoration: none; }
.post-body h3 a:hover { text-decoration: underline; }
.post-body p { color: rgba(255, 246, 242, 0.78); font-size: 0.98rem; line-height: 1.6; margin-bottom: 0.9rem; }
.post-meta { font-size: 0.85rem; color: rgba(255, 246, 242, 0.6); }

.load-more-btn {
    display: block; margin: 3rem auto 0 auto;
    font-family: var(--font-sans); font-size: 0.95rem; font-weight: 700;
    padding: 14px 38px; border-radius: 16px; border: 1px solid var(--card-border);
    background: transparent; color: var(--text-muted); cursor: pointer;
    transition: all 0.3s ease;
}
.load-more-btn:hover { background: var(--text-muted); color: var(--bg-color); transform: translateY(-3px); }

/* ============================================================
   ARTICLE / BLOG-DETAILS PAGE
============================================================ */
.article-container { max-width: 880px; }

.breadcrumb-trail { font-size: 0.88rem; color: rgba(255, 246, 242, 0.6); margin-bottom: 2rem; }
.breadcrumb-trail a { color: rgba(255, 246, 242, 0.85); text-decoration: none; }
.breadcrumb-trail a:hover { text-decoration: underline; }
.breadcrumb-trail span { margin: 0 0.4rem; }

.article-header { text-align: left; max-width: 100%; margin-bottom: 2.5rem; }
.article-header h1 {
    font-family: var(--font-serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: var(--text-muted); letter-spacing: -1px; line-height: 1.1; margin: 0.6rem 0 1.2rem 0;
}
.article-meta { font-size: 0.92rem; color: rgba(255, 246, 242, 0.7); }
.meta-dot { margin: 0 0.5rem; }

.article-hero-frame {
    width: 100%; aspect-ratio: 1.85; border-radius: 32px; padding: 10px;
    background: var(--card-bg); border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md); overflow: hidden; margin-bottom: 3rem;
}
.article-hero-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 24px; display: block; background: rgba(255,246,242,0.15); }

.article-body { color: rgba(255, 246, 242, 0.9); font-size: 1.08rem; line-height: 1.85; }
.article-body .lede { font-size: 1.25rem; font-family: var(--font-serif); font-style: italic; color: var(--text-muted); margin-bottom: 2rem; }
.article-body h2 { font-family: var(--font-sans); font-size: 1.55rem; font-weight: 800; color: var(--text-muted); margin: 2.5rem 0 1rem 0; letter-spacing: -0.3px; }
.article-body p { margin-bottom: 1.4rem; }
.article-body blockquote {
    font-family: var(--font-serif); font-style: italic; font-size: 1.3rem; color: var(--text-muted);
    border-left: 3px solid var(--card-border); padding-left: 1.5rem; margin: 2.5rem 0;
}

.article-cta {
    margin-top: 5rem; background: var(--card-bg); border: 1px solid var(--card-border);
    border-radius: 32px; padding: 3rem 2.5rem; text-align: center; box-shadow: var(--shadow-sm);
}
.article-cta h3 { font-family: var(--font-serif); font-size: 1.9rem; font-weight: 400; color: var(--text-muted); margin-bottom: 0.8rem; }
.article-cta p { color: rgba(255, 246, 242, 0.8); margin-bottom: 1.8rem; }

.cta-system-link {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 15px 40px; border-radius: 18px; font-family: var(--font-sans);
    font-size: 1rem; font-weight: 700; text-decoration: none; color: #fff;
    background: var(--accent-gradient); box-shadow: 0 10px 25px rgba(255, 138, 101, 0.22);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); cursor: pointer;
}
.cta-system-link:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(255, 138, 101, 0.38); }

.related-posts { margin-top: 5rem; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .blog-collection.view-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .container { padding-top: 140px; }
    .blog-collection.view-grid { grid-template-columns: 1fr; }
    .article-hero-frame { aspect-ratio: 1.3; border-radius: 24px; }
    .article-cta { padding: 2.5rem 1.5rem; }
}