/* ================================================================
   DesIDEA Blog Article — Showcase article experience
   ================================================================ */

.ba-page {
    font-family: var(--sv-font-sans, 'Poppins', system-ui, sans-serif);
    color: var(--sv-text, #1e293b);
    max-width: 100%;
    --sv-green: #72BB44;
    --sv-green-dark: #58A82F;
    --sv-green-light: #8ecf5a;
    --sv-green-deep: #1a3d28;
    --sv-navy: #0f172a;
    --sv-heading: #0f172a;
    --sv-text: #1e293b;
    --sv-muted: #64748b;
    --sv-cream: #fafbfc;
    --sv-lavender: #f3f1ff;
    --sv-white: #ffffff;
    --sv-wrap: 1240px;
    --sv-font-serif: 'Cormorant Garamond', Georgia, serif;
    --sv-font-sans: 'Poppins', system-ui, sans-serif;
    --sv-r-sm: 12px;
    --sv-r-md: 18px;
    --sv-r-lg: 24px;
    --sv-r-xl: 32px;
    --sv-shadow-sm: 0 4px 24px rgba(15, 23, 42, 0.06);
    --sv-shadow-md: 0 16px 48px rgba(15, 23, 42, 0.09);
    --sv-shadow-lg: 0 28px 70px rgba(15, 23, 42, 0.14);
    --sv-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Hero (no overlap with content) ---- */
.ba-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(110px, 12vw, 140px) 0 clamp(56px, 7vw, 80px);
    background: linear-gradient(145deg, #07111f 0%, #102033 42%, #163528 100%);
    overflow: hidden;
}

.ba-hero__mesh {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 18% 22%, rgba(114, 187, 68, 0.28) 0%, transparent 42%),
        radial-gradient(circle at 82% 18%, rgba(96, 165, 250, 0.18) 0%, transparent 38%),
        radial-gradient(circle at 70% 78%, rgba(114, 187, 68, 0.14) 0%, transparent 45%);
    pointer-events: none;
    z-index: 0;
}

.ba-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.ba-hero__glow--1 {
    width: 420px;
    height: 420px;
    top: -120px;
    right: -80px;
    background: rgba(114, 187, 68, 0.22);
}

.ba-hero__glow--2 {
    width: 320px;
    height: 320px;
    bottom: -100px;
    left: -60px;
    background: rgba(59, 130, 246, 0.16);
}

.ba-hero__grid {
    position: relative;
    z-index: 2;
    width: min(92%, var(--sv-wrap));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
}

.ba-hero__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--sv-green-light);
    background: rgba(114, 187, 68, 0.16);
    border: 1px solid rgba(114, 187, 68, 0.35);
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.ba-hero h1 {
    font-family: var(--sv-font-serif);
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--sv-white);
    margin: 0 0 18px;
    letter-spacing: -0.01em;
}

.ba-hero__lead {
    font-size: clamp(15px, 1.5vw, 17px);
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.86);
    margin: 0 0 28px;
    max-width: 560px;
}

.ba-hero h2.ba-hero__lead {
    font-weight: 400;
    font-size: clamp(15px, 1.5vw, 17px);
}

.ba-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.78);
}

.ba-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.ba-meta__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sv-green), var(--sv-green-dark));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.ba-meta strong {
    color: var(--sv-white);
    font-weight: 600;
}

/* Hero visual showcase — clean framed image, no busy bg photo */
.ba-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ba-hero__visual-card {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 4vw, 44px);
    overflow: hidden;
}

.ba-hero__visual-ring {
    position: absolute;
    inset: 18px;
    border-radius: 22px;
    border: 1px dashed rgba(142, 207, 90, 0.35);
    pointer-events: none;
}

.ba-hero__visual-card img {
    position: relative;
    z-index: 1;
    width: auto;
    max-width: 88%;
    max-height: 78%;
    object-fit: contain;
    filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.35));
}

/* ---- Content shell (starts cleanly below hero) ---- */
.ba-shell {
    background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 28%, #ffffff 100%);
    padding: clamp(40px, 6vw, 64px) 0 clamp(48px, 6vw, 72px);
}

.ba-layout {
    width: min(92%, var(--sv-wrap));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(28px, 4vw, 48px);
    align-items: start;
}

.ba-content {
    background: var(--sv-white);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: var(--sv-r-xl);
    box-shadow: var(--sv-shadow-md);
    padding: clamp(28px, 4vw, 44px);
}

.ba-content__intro {
    margin: 0 0 28px;
    padding: 20px 22px;
    border-radius: var(--sv-r-lg);
    background: linear-gradient(135deg, rgba(114, 187, 68, 0.1), rgba(238, 242, 255, 0.85));
    border: 1px solid rgba(114, 187, 68, 0.2);
}

.ba-content__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sv-green-dark);
    margin-bottom: 8px;
}

.ba-content__intro p {
    margin: 0;
    color: var(--sv-navy);
    font-size: 15px;
    line-height: 1.7;
}

.ba-content h2 {
    font-family: var(--sv-font-serif);
    font-size: clamp(1.4rem, 2.4vw, 1.85rem);
    color: var(--sv-heading);
    margin: 40px 0 14px;
    line-height: 1.25;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(114, 187, 68, 0.25);
}

.ba-content h2:first-child { margin-top: 0; }

.ba-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--sv-navy);
    margin: 28px 0 12px;
}

.ba-content p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--sv-muted);
    margin: 0 0 16px;
}

.ba-content ul {
    margin: 0 0 20px;
    padding-left: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.ba-content li {
    position: relative;
    padding: 14px 16px 14px 44px;
    background: var(--sv-cream);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--sv-r-sm);
    font-size: 14px;
    line-height: 1.65;
    color: var(--sv-text);
    transition: transform 0.25s var(--sv-ease), box-shadow 0.25s ease;
}

.ba-content li:hover {
    transform: translateY(-2px);
    box-shadow: var(--sv-shadow-sm);
}

.ba-content li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 14px;
    top: 15px;
    color: var(--sv-green-dark);
    font-size: 13px;
}

.ba-content li strong { color: var(--sv-heading); }

.ba-callout {
    margin: 28px 0;
    padding: 22px 24px;
    border-radius: var(--sv-r-lg);
    background: linear-gradient(135deg, rgba(114, 187, 68, 0.12), rgba(238, 242, 255, 0.85));
    border-left: 4px solid var(--sv-green);
    border-top: 1px solid rgba(114, 187, 68, 0.2);
    border-right: 1px solid rgba(114, 187, 68, 0.2);
    border-bottom: 1px solid rgba(114, 187, 68, 0.2);
}

.ba-callout p {
    margin: 0;
    color: var(--sv-navy);
    font-size: 15px;
    line-height: 1.7;
}

.ba-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.ba-point {
    background: var(--sv-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--sv-r-md);
    padding: 22px;
    box-shadow: var(--sv-shadow-sm);
    transition: transform 0.3s var(--sv-ease), box-shadow 0.3s ease, border-color 0.3s ease;
}

.ba-point:hover {
    transform: translateY(-4px);
    box-shadow: var(--sv-shadow-md);
    border-color: rgba(114, 187, 68, 0.3);
}

.ba-point__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(114, 187, 68, 0.2), rgba(114, 187, 68, 0.08));
    color: var(--sv-green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    font-size: 18px;
}

.ba-point h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--sv-heading);
    margin: 0 0 8px;
}

.ba-point p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--sv-muted);
    margin: 0;
}

.ba-figure {
    margin: 28px 0;
    background: linear-gradient(145deg, #f8fafc 0%, #eef2ff 42%, #f0fdf4 100%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--sv-r-lg);
    padding: clamp(22px, 3vw, 36px);
    text-align: center;
    box-shadow: var(--sv-shadow-sm);
}

.ba-figure img {
    width: auto;
    max-width: 100%;
    max-height: 260px;
    object-fit: contain;
    display: block;
    margin: 0 auto 14px;
}

.ba-figure figcaption {
    font-size: 13px;
    color: var(--sv-muted);
    line-height: 1.5;
}

.ba-steps {
    display: grid;
    gap: 14px;
    margin: 20px 0 28px;
}

.ba-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: start;
    padding: 18px;
    background: var(--sv-white);
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: var(--sv-r-md);
    transition: transform 0.25s var(--sv-ease), border-color 0.25s ease;
}

.ba-step:hover {
    transform: translateX(4px);
    border-color: rgba(114, 187, 68, 0.3);
}

.ba-step__num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sv-green), var(--sv-green-dark));
    color: var(--sv-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(88, 168, 47, 0.3);
}

.ba-step h4 {
    margin: 0 0 6px;
    font-size: 15px;
    color: var(--sv-heading);
}

.ba-step p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
}

/* ---- Sidebar ---- */
.ba-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 18px;
}

.ba-side-card {
    background: var(--sv-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--sv-r-lg);
    padding: 22px;
    box-shadow: var(--sv-shadow-sm);
}

.ba-side-card h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sv-green-dark);
    margin: 0 0 14px;
}

.ba-related {
    display: grid;
    gap: 10px;
}

.ba-related a {
    display: block;
    text-decoration: none !important;
    padding: 12px 14px;
    border-radius: var(--sv-r-sm);
    background: var(--sv-cream);
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.ba-related a:hover {
    border-color: rgba(114, 187, 68, 0.35);
    transform: translateX(4px);
    box-shadow: var(--sv-shadow-sm);
}

.ba-related strong {
    display: block;
    font-size: 13px;
    color: var(--sv-heading);
    margin-bottom: 4px;
    line-height: 1.4;
}

.ba-related span {
    font-size: 12px;
    color: var(--sv-muted);
}

.ba-side-cta {
    background: linear-gradient(160deg, var(--sv-navy), var(--sv-green-deep));
    color: var(--sv-white);
    border: none;
}

.ba-side-cta h3 { color: var(--sv-green-light); }

.ba-side-cta p {
    font-size: 13px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 16px;
}

/* ---- Footer CTA ---- */
.ba-footer-cta {
    padding: clamp(56px, 7vw, 80px) 0;
    background: linear-gradient(160deg, #07111f 0%, #163528 100%);
    text-align: center;
}

.ba-footer-cta h2 {
    font-family: var(--sv-font-serif);
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    color: var(--sv-white);
    margin: 0 0 12px;
}

.ba-footer-cta p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.78);
    max-width: 560px;
    margin: 0 auto 24px;
    line-height: 1.7;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .ba-hero__grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ba-hero__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .ba-meta {
        justify-content: center;
    }

    .ba-hero__visual {
        order: -1;
    }

    .ba-hero__visual-card {
        width: min(100%, 300px);
        aspect-ratio: 1 / 1;
    }

    .ba-layout {
        grid-template-columns: 1fr;
    }

    .ba-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575px) {
    .ba-grid { grid-template-columns: 1fr; }
    .ba-sidebar { grid-template-columns: 1fr; }
    .ba-hero { padding-top: 96px; }
    .ba-meta__item { width: 100%; justify-content: center; }
}
