/* =========================================================
   SGS MALL — BLOG (compact, uniform with the rest of the site)
   Load AFTER style.css. Uses the same tokens (--ink, --violet,
   --red, --gold, --line, --display-font, --container).
   ========================================================= */

/* ---------- Section + heading ---------- */
.blog-section {
    padding: clamp(32px, 5.5vh, 60px) 5%;
    background: #ffffff;
}
.blog-container {
    max-width: var(--container);
    margin: 0 auto;
}
.blog-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(20px, 3.4vh, 34px);
}
.blog-heading .eyebrow-pill { margin-bottom: clamp(10px, 1.8vh, 18px); }
.blog-heading h2 {
    margin: 0;
    font-family: var(--display-font);
    font-size: clamp(2rem, 4.4vh + 0.6rem, 3rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--ink);
}
.blog-heading .lead {
    max-width: 560px;
    margin: clamp(14px, 2.4vh, 22px) auto 0;
    font-size: 1.02rem;
    line-height: 1.7;
}

/* ---------- Grid: three equal columns ---------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* ---------- Card ---------- */
.blog-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: 0 12px 28px -24px rgba(60, 15, 66, 0.55);
    transition: transform 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium), border-color 0.35s;
}
.blog-card:hover,
.blog-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(127, 53, 132, 0.35);
    box-shadow: 0 22px 38px -24px rgba(60, 15, 66, 0.5);
}
.blog-card-img {
    position: relative;
    height: clamp(140px, 19vh, 190px);
    overflow: hidden;
    background: #f4eef5;
}
.blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s var(--ease-premium);
}
.blog-card:hover .blog-card-img img { transform: scale(1.06); }

.blog-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--violet), var(--red));
    color: #ffffff;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 0 8px 16px -10px rgba(40, 10, 45, 0.7);
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 20px 20px;
}
.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-bottom: 8px;
    font-size: 0.74rem;
    color: var(--muted);
}
.blog-meta i {
    margin-right: 6px;
    color: var(--violet);
}
.blog-card h3 {
    margin: 0 0 8px;
    font-family: var(--display-font);
    font-size: 1.15rem;
    font-weight: 500;
    line-height: 1.3;
    color: var(--ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-card p {
    margin: 0 0 16px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Read More sits at the bottom of every card; its ::after stretches
   over the whole card so the entire card is clickable. */
.blog-readmore {
    align-self: flex-start;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--gold);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--violet);
    transition: color 0.2s, gap 0.3s;
}
.blog-readmore::after {
    content: '';
    position: absolute;
    inset: 0;
}
.blog-card:hover .blog-readmore { color: var(--red); gap: 14px; }
.blog-readmore:focus-visible { outline-offset: 6px; }

/* ---------- Article page ---------- */
.post-page .editorial-hero.page-hero {
    height: auto !important;
    min-height: calc(var(--hdr) + clamp(210px, 28vh, 260px));
    padding-bottom: 44px !important;
}
.post-page .page-hero h1 { font-size: clamp(1.9rem, 3.4vw, 2.8rem) !important; }
.post-page .page-hero .page-hero-sub { font-size: 1rem !important; max-width: 600px; }
.post-page .page-hero .page-crumbs { flex-wrap: wrap; justify-content: center; }
.post-page .page-hero .crumb-current { color: var(--gold); }

.post-section {
    padding: clamp(28px, 4.5vh, 48px) 5% clamp(32px, 5.5vh, 60px);
    background: #ffffff;
}
.post-wrap {
    max-width: 760px;
    margin: 0 auto;
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: var(--muted);
}
.post-meta .blog-tag {
    position: static;
    box-shadow: none;
}
.post-meta i { margin-right: 7px; color: var(--violet); }

.post-cover {
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: var(--radius-card);
    box-shadow: 0 24px 44px -32px rgba(40, 10, 45, 0.55);
}
.post-cover img {
    width: 100%;
    height: clamp(200px, 32vh, 320px);
    object-fit: cover;
    display: block;
}

.post-body p {
    margin: 0 0 16px;
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text);
}
.post-body p a,
.post-body li a {
    color: var(--violet);
    font-weight: 600;
    border-bottom: 1px solid rgba(127, 53, 132, 0.35);
    transition: color 0.2s, border-color 0.2s;
}
.post-body p a:hover,
.post-body li a:hover {
    color: var(--red);
    border-color: var(--red);
}
.post-body h2 {
    margin: 30px 0 10px;
    font-family: var(--display-font);
    font-size: 1.45rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--ink);
}
.post-body ul {
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}
.post-body ul li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 24px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
}
.post-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), #f08a1d);
}
.post-callout {
    margin: 24px 0;
    padding: 16px 22px;
    border-left: 3px solid var(--gold);
    border-radius: 0 12px 12px 0;
    background: #fbf8fc;
}
.post-callout strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--violet);
}
.post-callout p { margin: 0; font-size: 0.95rem; line-height: 1.65; }

.post-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}
.post-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 3px;
    border-bottom: 2px solid var(--gold);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--violet);
    transition: color 0.2s, gap 0.3s;
}
.post-back:hover { color: var(--red); gap: 14px; }
.post-author {
    font-size: 0.82rem;
    color: var(--muted);
}
.post-author strong { color: var(--ink); }

/* ---------- Related posts ---------- */
.post-related { background: #faf7fb; }
.post-related .blog-heading { margin-bottom: 22px; }
.post-related .blog-heading h2 { font-size: clamp(1.6rem, 3vh + 0.6rem, 2.1rem); }

/* ---------- Visit CTA band ---------- */
.post-cta {
    padding: 0 5% clamp(32px, 5.5vh, 60px);
    background: #faf7fb;
}
.post-cta-inner {
    position: relative;
    overflow: hidden;
    max-width: var(--container);
    margin: 0 auto;
    padding: clamp(24px, 3.6vw, 38px) clamp(24px, 4vw, 44px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 18px 36px;
    border-radius: var(--radius-card);
    background: linear-gradient(135deg, #7f3584 0%, #5a2361 55%, #3a1540 100%);
    box-shadow: 0 24px 48px -30px rgba(90, 35, 97, 0.7);
}
.post-cta-inner::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    right: -100px;
    top: -160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 170, 29, 0.35), transparent 70%);
    pointer-events: none;
}
.post-cta-inner h3 {
    position: relative;
    margin: 0 0 6px;
    font-family: var(--display-font);
    font-size: clamp(1.4rem, 2.4vw, 1.8rem);
    font-weight: 500;
    color: #ffffff;
}
.post-cta-inner p {
    position: relative;
    margin: 0;
    max-width: 460px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.6;
}
.post-cta-actions {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.post-cta-actions .btn-editorial-solid {
    background: #ffffff;
    color: var(--violet);
    box-shadow: none;
}
.post-cta-actions .btn-editorial-solid:hover {
    background: var(--gold);
    color: #2b1230;
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-card-img { height: 170px; }
}
@media (max-width: 640px) {
    .blog-grid { grid-template-columns: 1fr; gap: 18px; }
    .blog-card-img { height: 180px; }
    .post-body p { font-size: 0.98rem; }
}