

/* ---------- Decorative font (Caveat Brush) — loaded once for the
   whole blog. Use the .caveat-brush-regular utility class to apply it
   anywhere across the blog pages. ---------- */
@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&display=swap');

.caveat-brush-regular {
    font-family: "Caveat Brush", cursive;
    font-weight: 400;
    font-style: normal;
}

/* ---------- Scoped reset / shared tokens ---------- */
.blog-page {
    --bp-bg: #ffffff;
    --bp-surface: #f6f7fb;
    --bp-text: #1a1a1a;
    --bp-text-soft: #555;
    --bp-line: #e8e9ee;
    --bp-radius: 18px;
    --bp-radius-lg: 24px;
    --bp-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    --bp-shadow-hover: 0 18px 40px rgba(15, 23, 42, 0.12);

    /* section pill palette (multi-color, brand-adapted) */
    --pill-yellow-bg: #FFD25A;
    --pill-yellow-fg: #1a1a1a;
    --pill-green-bg: #3DD49A;
    --pill-green-fg: #053823;
    --pill-purple-bg: #C9A6F4;
    --pill-purple-fg: #2A0E55;
    --pill-blue-bg: #7BC3F0;
    --pill-blue-fg: #07304A;
    --pill-pink-bg: #F4A6C8;
    --pill-pink-fg: #4A0F2A;
    --pill-orange-bg: var(--color-primary, #F84204);
    --pill-orange-fg: #ffffff;

    background: var(--bp-bg);
    color: var(--bp-text);
    font-family: 'Inter Tight', 'Inter', system-ui, -apple-system, sans-serif;
}

.blog-page__wrap {
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 24px;
}

/* ---------- Top utility bar (mini header) ---------- */
.bp-topbar {
    position: relative;
    background: var(--color-primary, #F84204);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}
/* Decorative blue wedge sitting against the .bp-topbar — anchored at
   left:0, with the SVG path matching the footer wedge (thick edge on
   the left, tapering toward the right). */
.bp-topbar::after {
    content: "";
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 860px;
    height: 24px;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='860' height='24' viewBox='0 0 860 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 24L860 24L0 0L0 24Z' fill='%23009BF3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    transform: scaleY(-1);
}
.bp-topbar__wrap {
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.bp-topbar__left,
.bp-topbar__right {
    display: flex;
    align-items: center;
    gap: 18px;
}
.bp-topbar__link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    opacity: 0.92;
    transition: opacity .2s;
}
.bp-topbar__link:hover {
    opacity: 1;
}
.bp-topbar__signup {
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 999px;
    padding: 6px 16px;
}
.bp-topbar__link--icon {
    display: inline-flex;
    align-items: center;
    padding: 0;
    line-height: 0;
}
.bp-topbar__link--icon svg {
    display: block;
}
/* Top-bar search form: a translucent pill that lives on the orange
   topbar. The magnifying-glass <button> reuses .bp-topbar__link--icon
   so the SVG keeps the same size/colour treatment. */
.bp-topbar__search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 2px 4px 2px 14px;
    transition: background .2s, border-color .2s;
}
.bp-topbar__search:hover,
.bp-topbar__search:focus-within {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.55);
}
.bp-topbar__search-input {
    width: 180px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    padding: 4px 0;
}
.bp-topbar__search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}
.bp-topbar__search button {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 4px;
}
@media (max-width: 640px) {
    .bp-topbar__search-input { width: 120px; }
}
.bp-topbar__signup:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ---------- Main blog navigation ---------- */
.bp-nav {
    background: #fff;
    padding: 18px 0;
}
.bp-nav__wrap {
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 24px;
    /* 3-column layout: left links | centered logo | right links.
       The 1fr side columns balance evenly so the logo sits dead-centre. */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}
.bp-nav__logo {
    /* Centered cell — the logo image itself sits in the middle of the bar. */
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--bp-text);
    justify-self: center;
}
.bp-nav__logo img {
    display: block;
    height: 36px;
    width: auto;
}
.bp-nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
    /* Allow long category labels (e.g. BadsX's Romanian names like
       "Exploratori cu Mintea Deschisă") to wrap onto a second line
       instead of overflowing the side cell of the 1fr|auto|1fr grid
       and squashing the centred logo. Vertical row-gap is tighter
       than the horizontal one so the wrapped row reads as a continuation
       rather than a separate menu. */
    flex-wrap: wrap;
    row-gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}
/* Left group hugs the right edge of its cell (next to the logo).
   Right group hugs the left edge of its cell (next to the logo). */
.bp-nav__links--left  { justify-content: flex-end;  justify-self: end;   }
.bp-nav__links--right { justify-content: flex-start; justify-self: start; }
.bp-nav__links a {
    color: var(--bp-text);
    text-decoration: none;
    font-weight: 500;
    /* Wrap-by-item, never break mid-label. Combined with `flex-wrap:
       wrap` on the parent, long labels stay on a single line and the
       overflow goes to a new row instead of hyphenating the word. */
    white-space: nowrap;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: color .2s, border-color .2s;
}
.bp-nav__links a:hover {
    color: var(--color-primary, #F84204);
    border-bottom-color: var(--color-primary, #F84204);
}

/* ---------- Generic section header (pill + view more) ---------- */
.bp-section {
    padding: 3.75em 0 5em;   /* 60px top / 80px bottom @ 16px root */
}
.bp-section__head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.bp-pill {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 999px;
    font-weight: 800;
    /* 32px expressed in em (assumes 16px root font-size) */
    font-size: 2em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.bp-pill--yellow { background: var(--pill-yellow-bg); color: var(--pill-yellow-fg); }
.bp-pill--green  { background: var(--pill-green-bg);  color: var(--pill-green-fg);  }
.bp-pill--purple { background: var(--pill-purple-bg); color: var(--pill-purple-fg); }
.bp-pill--blue   { background: var(--pill-blue-bg);   color: var(--pill-blue-fg);   }
.bp-pill--pink   { background: var(--pill-pink-bg);   color: var(--pill-pink-fg);   }
.bp-pill--orange { background: var(--pill-orange-bg); color: var(--pill-orange-fg); }

.bp-section__more {
    /* Use the global Caveat Brush decorative font */
    font-family: "Caveat Brush", cursive;
    font-weight: 400;
    font-style: normal;
    /* 32px expressed in em (assumes 16px root font-size) */
    font-size: 2em;
    color: var(--bp-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color .2s;
}
.bp-section__more:hover {
    color: var(--color-primary, #F84204);
}
.bp-section__more::after {
    content: "›";
    font-size: 20px;
    font-style: normal;
}

/* ---------- Card base (image + body) ----------
   Container is flat (no rounded corners, no hover lift). Only the
   .bp-card__image inside keeps its rounded corners. */
.bp-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}
.bp-card__image {
    height: 350px;
    background: #eee no-repeat center / cover;
    border-radius: var(--bp-radius);
}
.bp-card__category {
    color: var(--color-primary, #F84204);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 14px 0 8px;
}
.bp-card__title {
    font-size: 1.875em;   /* 30px @ 16px root */
    line-height: 1.3;
    font-weight: 600;
    margin: 0;
    color: var(--bp-text);
}
.bp-card__excerpt {
    color: var(--bp-text-soft);
    font-size: 1.25em;   /* 20px @ 16px root */
    line-height: 1.55;
    margin: 8px 0 0;
}

/* Featured large card */
.bp-card--featured .bp-card__image {
    aspect-ratio: 4 / 3;
}
.bp-card--featured .bp-card__title {
    font-size: 1.875em;   /* 30px @ 16px root */
    line-height: 1.25;
}

/* Text-only card (no image). Every .bp-card--text gets a teal divider
   under it; the final item in a list uses .bp-card--text-end instead,
   which shares the visual styling but never renders the divider. */
.bp-card--text::after {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    background-color: rgba(65, 111, 244, 0.4);   /* site blue #416ff4 @ 40% */
    margin: 24px 0;
}
/* Hard guarantees that no divider ever appears on the closing card,
   regardless of class casing, DOM siblings, or browser caching. */
.bp-card--text-end::after,
.bp-card--text-end::before,
.bp-card--text:last-child::after,
.bp-top-stories__col--right > div:last-child::after {
    content: none !important;
    display: none !important;
    background: none !important;
    height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}
.bp-card--text .bp-card__title,
.bp-card--text-end .bp-card__title {
    font-size: 1.25em;   /* 20px @ 16px root */
}

/* Horizontal card (tutorials: image left, title right — vertically
   centered against the image). Image is fixed at 305×152px expressed
   in em (assuming a 16px root) so it scales gracefully if the user
   bumps the root font-size. */
.bp-card--horizontal {
    flex-direction: row;
    gap: 16px;
    align-items: center;
}
.bp-card--horizontal .bp-card__image {
    flex: 0 0 19.0625em;   /* 305px / 16 */
    width: 19.0625em;
    height: 9.5em;         /* 152px / 16 */
    aspect-ratio: auto;
    margin: 0;
}
.bp-card--horizontal .bp-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bp-card--horizontal .bp-card__category {
    margin-top: 0;
}
.bp-card--horizontal .bp-card__title {
    font-size: 1.25em;   /* 20px @ 16px root */
    line-height: 1.4;
    margin: 0;
}

/* Inline bullet (text headline with orange dot) */
.bp-bullet {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: var(--bp-text);
    font-size: 1em;       /* 16px @ 16px root */
    line-height: 1.45;
    font-weight: 500;
    padding: 14px 0;
}
.bp-bullet::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-primary, #F84204);
    margin-top: 7px;
}
.bp-bullet:hover {
    color: var(--color-primary, #F84204);
}

/* ===================================================================
   TOP STORIES — 3 column layout
   left: stacked small cards | center: featured | right: text list
   =================================================================== */
.bp-top-stories {
    display: grid;
    /* Fixed side columns + flexible centre.
       Left:   260px   |  Centre: 1fr (featured card grows to fill the rest)
       Right:  250px
       Reducing the sides from ~362px each gives the featured card ~+200px
       of extra horizontal space. */
    grid-template-columns: 260px 1fr 250px;
    gap: 28px;
    align-items: start;
}
.bp-top-stories__col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* Both side columns are now hard-pinned to their column widths. */
    width: 260px;
}
.bp-top-stories__col--right {
    gap: 0;
    width: 250px;
}
/* Top-stories side-column cards keep the original 16/9 image aspect ratio
   (the global .bp-card__image: 350px height is for the larger section cards). */
.bp-top-stories__col .bp-card__image {
    height: auto;
    aspect-ratio: 16 / 9;
}

/* Inside .bp-top-stories the card containers sit on the page background
   instead of a white panel. */
.bp-top-stories .bp-card {
    background: transparent;
}

/* ---- Text containment inside .bp-top-stories ----
   The side columns are hard-pinned at 260/250px and the centre is fluid,
   so any long title/category/bullet must wrap (and break aggressively if
   the word itself is wider than the cell). min-width:0 lets flex/grid
   children shrink below their content's intrinsic min-width. */
.bp-top-stories,
.bp-top-stories__col,
.bp-top-stories .bp-card,
.bp-top-stories .bp-card__link {
    min-width: 0;
}
.bp-top-stories .bp-card__title,
.bp-top-stories .bp-card__category,
.bp-top-stories .bp-card__excerpt,
.bp-top-stories .bp-bullet {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
}
/* Keep titles to a sensible line count so cards don't blow up vertically. */
.bp-top-stories__col .bp-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}
/* Featured card title can run a bit longer, but still cap to 4 lines. */
.bp-top-stories .bp-card--featured .bp-card__title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

/* ===================================================================
   HERO BANNER — two tilted layered rectangles
   Layer 1 (back) : blue quadrilateral via SVG path (#416ff4)
   Layer 2 (front): solid purple rectangle (#e1ccff), 300px tall,
                    full screen width, rotated -2deg
   =================================================================== */
/* Shared host container for the layered background
   (used by .bp-hero-banner AND .bp-newsletter). */
.bp-hero-banner,
.bp-newsletter {
    position: relative;
    /* Break out of the page's max-width container so the rectangles can
       truly span the full screen width. */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 64px;
    margin-bottom: 64px;
    /* Fixed 500px tall section. */
    height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #ffffff;
}

/* --- Back layer: blue quadrilateral SVG --------------------------- */
.bp-hero-banner__blue,
.bp-newsletter__blue {
    position: absolute;
    top: 50%;
    left: 50%;
    /* 80% of the purple's width (purple is 110vw → blue is 88vw). */
    width: 88vw;
    height: 320px;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Newsletter variant: blue layer spans the full viewport width
   (slightly over to avoid sub-pixel edge gaps) and is 20px shorter
   than the hero banner one. */
.bp-newsletter__blue {
    width: 101vw;
    height: 300px;
}

/* --- Front layer: solid purple rectangle -------------------------- */
.bp-hero-banner__purple,
.bp-newsletter__purple {
    position: absolute;
    top: 50%;
    left: 50%;
    /* 110vw + tilt safely covers full screen width without edge gaps. */
    width: 110vw;
    height: 300px;
    background: #e1ccff;
    transform: translate(-50%, -50%) rotate(-2deg);
    z-index: 1;
    pointer-events: none;
    /* clip the grid SVG to the rectangle's bounds */
    overflow: hidden;
}

/* Newsletter variant: purple rectangle is 20px shorter than the hero
   banner one. */
.bp-newsletter__purple {
    height: 280px;
}

/* Decorative grid sitting inside the purple, anchored to its left side.
   Counter-rotate +2deg to cancel the purple's -2deg tilt, then push it
   down 5px from the top edge. */
.bp-hero-banner__grid,
.bp-newsletter__grid {
    position: absolute;
    top: 5px;
    left: 0;
    width: 1222px;
    height: 196px;
    pointer-events: none;
    transform: rotate(2deg);
    transform-origin: top left;
}

/* Newsletter variant: wider, 3-row blue grid (1522×118), nudged 60px
   further down than the hero banner grid. */
.bp-newsletter__grid {
    top: 65px;
    width: 1522px;
    height: 118px;
}

/* Decorative green wave — anchored to the top-right corner of the banner.
   The SVG path naturally ends at (988, 5), so its tail aligns with the
   top-right corner of the banner. Sits above the purple but below content. */
.bp-hero-banner__wave,
.bp-newsletter__wave {
    position: absolute;
    top: 0;
    right: 0;
    width: 992px;
    height: 452px;
    z-index: 2;
    pointer-events: none;
}

/* --- Content sits on top of both shapes --------------------------- */
.bp-hero-banner__wrap {
    position: relative;
    z-index: 2;
    margin: 0 auto;
    max-width: 1280px;
    width: 100%;
    padding: 0 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.bp-hero-banner__title {
    color: #1a1a1a;
    font-size: 42px;
    line-height: 1.15;
    font-weight: 700;
    margin: 0;
    font-style: italic;
}
.bp-hero-banner__featured {
    /* Full-image clickable block — no inner elements. Sized to match
       the original featured-card footprint (120px image + padding). */
    display: block;
    background: #eee center / cover no-repeat;
    width: 100%;
    max-width: 910px;
    height: 156px;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
}
.bp-hero-banner__featured:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

/* Legacy multi-element variant (kept for any callers that still nest
   inner elements). Safe to remove once nothing references the inner
   classes below. */
.bp-hero-banner__featured--legacy {
    background: rgba(255, 255, 255, 0.96);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--bp-text);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}
.bp-hero-banner__featured-image {
    flex: 0 0 120px;
    aspect-ratio: 1 / 1;
    background: #eee no-repeat center / cover;
    border-radius: 12px;
}
.bp-hero-banner__featured-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}
.bp-hero-banner__featured-cta {
    margin-top: 8px;
    background: var(--color-primary, #F84204);
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

/* ===================================================================
   GRID-3 (Guides, Case Studies, etc.) — main cards + headlines + side
   =================================================================== */
.bp-section--with-side {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: stretch;
}
.bp-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}
/* Guides section — card images use the same recipe as
   .bp-top-stories__col .bp-card__image: width comes from the
   .bp-grid-3 cell, height is derived from a 16:9 aspect ratio. */
#guides .bp-card__image {
    height: auto;
    aspect-ratio: 16 / 9;
    background-color: #eee;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: var(--bp-radius);
}
.bp-headlines {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 24px;
    border-top: 3px solid rgba(65, 111, 244, 0.4);   /* matches .bp-card--text::after */
}

/* Two-per-row variant: each bullet gets a teal divider above it,
   matching the .bp-card--text divider style but rendered on top
   instead of below. The container's own top border is dropped because
   each bullet now carries its own line. */
.bp-headlines--cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 32px;
    padding-top: 0 !important;
    border-top: 0 !important;
}
.bp-headlines--cards .bp-bullet {
    border-top: 3px solid rgba(20, 176, 130, 0.1);
    padding-top: 24px;
    margin-top: 0;
}
.bp-side-promo {
    background: linear-gradient(160deg, #7B5CF0 0%, #5B3DD8 100%);
    padding: 32px 24px;
    color: #fff;
    text-align: center;
    align-self: stretch;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.bp-side-promo__brand {
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 0.85;
    font-size: 14px;
}
.bp-side-promo__title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
    margin: 8px 0 20px;
}
.bp-side-promo__btn {
    display: inline-block;
    background: var(--pill-yellow-bg);
    color: var(--pill-yellow-fg);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: transform .2s;
}
.bp-side-promo__btn:hover {
    transform: scale(1.05);
}

/* Image-only side-promo banner variant — used when the slot is driven
   by a banner article from category 7 (placement='top' / 'bottom').
   The element is an <a> with the photo set as background; no brand,
   title, or CTA copy is rendered. */
.bp-side-promo--banner {
    background: #eee center / cover no-repeat;
    padding: 0;
    display: block;
    min-height: 280px;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.bp-side-promo--banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
}

/* ===================================================================
   CASE STUDIES — 2 large + side ad + 3 text below
   =================================================================== */
.bp-case-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-bottom: 32px;
}
.bp-case-grid .bp-card__title {
    font-size: 20px;
    color: var(--color-primary, #F84204);
}

/* ===================================================================
   WATCH — video cards with play overlay
   =================================================================== */
.bp-video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.bp-video-card .bp-card__image {
    position: relative;
}
.bp-video-card .bp-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--bp-radius);
}
.bp-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    display: grid;
    place-items: center;
    z-index: 1;
    transition: transform .3s, background .3s;
}
.bp-video-card:hover .bp-video-play {
    transform: translate(-50%, -50%) scale(1.1);
    background: #fff;
}
.bp-video-play::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 18px solid var(--color-primary, #F84204);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 4px;
}

/* ===================================================================
   TUTORIALS — 2 columns (For Beginners / For Advanced)
   =================================================================== */
.bp-tutorials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.bp-tutorials__col-title {
    font-size: 1.875em;   /* 30px @ 16px root */
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--bp-text);
}
.bp-tutorials__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.bp-tutorials__more {
    margin-top: 8px;
}

/* ===================================================================
   NEWSLETTER (subscribe banner)
   Sizing/decorative-layer rules are shared with .bp-hero-banner above.
   Below are the newsletter's content-specific tweaks.
   =================================================================== */
.bp-newsletter {
    /* Match the .bp-section vertical rhythm (60px top / 80px bottom)
       — expressed as margins because .bp-newsletter breaks out of the
       page wrapper and can't rely on padding. */
    margin-top: 3.75em;
    margin-bottom: 5em;
    /* Centre content horizontally and stack vertically inside the
       flex parent we inherit from the shared rule. */
    flex-direction: column;
    justify-content: center;
    text-align: center;
}
.bp-newsletter__wrap {
    position: relative;
    z-index: 3;
    margin: 0 auto;
    max-width: 1080px;
    padding: 0 24px;
    width: 100%;
}
.bp-newsletter__title {
    font-family: "Caveat Brush", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 44px;
    margin: 0 0 28px;
    color: var(--bp-text);
}
.bp-newsletter__form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 12px;
    max-width: 880px;
    margin: 0 auto;
}
.bp-newsletter__input {
    background: #fff;
    border: none;
    border-radius: 999px;
    padding: 16px 24px;
    font-size: 15px;
    color: var(--bp-text);
    outline: none;
}
.bp-newsletter__input:focus {
    box-shadow: 0 0 0 3px rgba(248, 66, 4, 0.25);
}
.bp-newsletter__submit {
    background: var(--pill-yellow-bg);
    color: var(--bp-text);
    border: none;
    border-radius: 999px;
    padding: 0 32px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, background .2s;
}
.bp-newsletter__submit:hover {
    transform: scale(1.03);
}
.bp-newsletter__consent {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--bp-text-soft);
    text-align: left;
}
.bp-newsletter__consent a {
    color: var(--color-primary, #F84204);
}

/* Inline status line below the newsletter form — updated by JS after a
   subscribe attempt. Colours vary by .data-state ("success" / "error"). */
.bp-newsletter__feedback {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    min-height: 1.25em;
    font-size: 14px;
    font-weight: 600;
    text-align: left;
    color: transparent;
    transition: color .2s ease;
}
.bp-newsletter__feedback[data-state="success"] {
    color: #14B082;
}
.bp-newsletter__feedback[data-state="error"] {
    color: #F84204;
}

/* Custom-styled consent checkbox.
   - .bp-newsletter__consent-label::after  → 24x24 white-ringed circle (frame)
   - .bp-newsletter__consent-label::before → 12x12 blue dot (checked indicator)
   - the native checkbox is overlaid invisibly so it stays clickable and
     keyboard-accessible, and HTML5 :required validation still works. */
.bp-newsletter__consent-label {
    position: relative;
    display: inline-flex;
    align-items: center;        /* vertically center text with the ring */
    padding: 2px 0 2px 56px;    /* 24 left gutter + 24 ring + 8 gap */
    min-height: 28px;
    cursor: pointer;
    line-height: 1.4;
}

/* Outer ring — always visible. */
.bp-newsletter__consent-label::after {
    content: "";
    position: absolute;
    left: 24px;
    top: 50%;
    width: 24px;
    height: 24px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    transform: translate(0, -50%);
    box-sizing: border-box;
    pointer-events: none;
}

/* Inner blue dot — only shown when the underlying input is :checked. */
.bp-newsletter__consent-label::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgb(65, 111, 244);
    transform: translate(0, -50%);
    opacity: 0;
    transition: opacity .15s ease;
    pointer-events: none;
}
.bp-newsletter__consent-label:has(.bp-newsletter__checkbox:checked)::before {
    opacity: 1;
}

/* Native checkbox — invisible but laid over the ring so clicks/keyboard
   focus and the browser's :required validation popup land in the right
   place. */
.bp-newsletter__checkbox {
    position: absolute;
    left: 24px;
    top: 50%;
    width: 24px;
    height: 24px;
    margin: 0;
    transform: translate(0, -50%);
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

/* ===================================================================
   PLATFORM UPDATES — 2 large cards + 2 text headlines each
   =================================================================== */
.bp-updates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
.bp-updates__col {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}
/* The shared .bp-card rule sets height:100% so cards stretch in their
   grid cell. Inside the updates column that would let the lone card in
   a column eat all the vertical space and push the bullets to the
   bottom row. Force the card back to its natural height so bullets
   always stack directly below it, top→bottom. */
.bp-updates__col > .bp-card {
    height: auto;
}
.bp-updates__col .bp-card__title {
    color: var(--color-primary, #F84204);
}
/* Each bullet in the PLATFORM UPDATES columns gets a divider above it
   that mirrors the .bp-card--text::after line (3px solid blue @ 40%
   with 24px breathing room on both sides). */
.bp-updates__col .bp-bullet {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 3px solid rgba(65, 111, 244, 0.4);
}

/* ===================================================================
   TRENDS & NEWS — text list + featured card
   =================================================================== */
.bp-news {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
/* Sliding-selector list. A single .bp-news__indicator absolutely
   positioned inside .bp-news__list animates to match whichever
   .bp-news__bullet the user hovers (or the first one by default).
   The corresponding .bp-news__featured image is swapped via JS. */
.bp-news__list {
    position: relative;
    isolation: isolate;
}
.bp-news__indicator {
    /* Inset 4px from each side of the bullet so the highlight is
       slightly smaller than the row, leaving a tiny breathing margin. */
    position: absolute;
    left: 4px;
    right: 4px;
    top: 0;
    height: 0;
    background: var(--bp-surface);
    border-radius: 10px;
    transform: translateY(0);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1),
                height    .35s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
    z-index: 0;
}
.bp-news__bullet {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 75px;
    padding: 0 24px;
    color: var(--bp-text);
    text-decoration: none;
    font-size: 1.25em;   /* 20px @ 16px root */
    font-weight: 500;
    line-height: 1.35;
    border-top: 3px solid rgba(65, 111, 244, 0.4);
    transition: color .2s ease, font-weight .2s ease;
}
/* Hide the divider above the first bullet — the active indicator
   already provides a visual frame there. */
.bp-news__bullet:first-of-type {
    border-top: 0;
}
.bp-news__bullet::before {
    content: "";
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    background: var(--color-primary, #F84204);
    border-radius: 50%;
}
.bp-news__bullet--active,
.bp-news__bullet:hover {
    color: var(--bp-text);
    font-weight: 700;
}
.bp-news__featured {
    border-radius: var(--bp-radius-lg);
    overflow: hidden;
    background: #f4cdd9 no-repeat center / cover;
    aspect-ratio: 16 / 9;
    text-decoration: none;
    position: relative;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.bp-footer {
    /* #F84204 at 30% opacity */
    background: rgba(248, 66, 4, 0.3);
    /* Extra top padding so footer content clears the slanted cut. */
    padding: 120px 0 0;
    margin-top: 60px;
    /* Subtle slanted top edge: higher on the right (y=0), lower on the
       left (y=50px) so the panel leans forward to the left. */
    clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
    -webkit-clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
}
.bp-footer__wrap {
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 24px;
    text-align: center;
}
/* Decorative yellow wedge sitting on top of the orange .bp-footer__bottom
   bar (its bottom edge aligns with the top edge of that bar). Pure CSS
   via inline-SVG data URI. */
.bp-footer__bottom::before {
    content: "";
    display: block;
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 860px;
    height: 24px;
    z-index: 1;
    pointer-events: none;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg width='860' height='24' viewBox='0 0 860 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 24L860 24L0 0L0 24Z' fill='%23009BF3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
}
.bp-footer__social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 28px;
}
.bp-footer__social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-primary, #F84204);
    color: #fff;
    display: grid;
    /* circle is a design primitive, kept; only the lift is removed below */
    place-items: center;
    text-decoration: none;
    font-size: 18px;
}
.bp-footer__social a:hover {
    background: #d63600;
}
/* Brand-logo variant: drop the orange circle so the embedded SVG (which
   carries its own coloured background) can take over the 44x44 slot. */
.bp-footer__social a.bp-footer__social--brand,
.bp-footer__social a.bp-footer__social--brand:hover {
    background: transparent;
    padding: 0;
    overflow: hidden;
}
.bp-footer__social a.bp-footer__social--brand svg {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 50%;
    transition: transform .2s;
}
.bp-footer__social a.bp-footer__social--brand:hover svg {
    transform: scale(1.05);
}
/* Instagram keeps its native rounded-square silhouette: drop the
   circular clip on both the anchor and the inner SVG so the artwork
   is shown free, not cut into a circle. */
.bp-footer__social a.bp-footer__social--brand[aria-label="Instagram"] {
    border-radius: 0;
    overflow: visible;
}
.bp-footer__social a.bp-footer__social--brand[aria-label="Instagram"] svg {
    border-radius: 0;
}
.bp-footer__about {
    max-width: 680px;
    margin: 0 auto 28px;
    color: var(--bp-text-soft);
    line-height: 1.6;
}
.bp-footer__top-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-style: italic;
    font-size: 26px;
    font-weight: 600;
    text-decoration: none;
    color: var(--bp-text);
    margin-bottom: 28px;
}
.bp-footer__top-link::before {
    content: "˄";
    font-size: 1.1em;
    font-weight: 600;
    display: inline-block;
    transform: scaleX(1.6);
    transform-origin: 50% 50%;
    margin-right: 4px;
}
.bp-footer__bottom {
    position: relative;
    background: var(--color-primary, #F84204);
    color: #fff;
    padding: 18px 0;
}
.bp-footer__bottom-wrap {
    margin: 0 auto;
    max-width: 1280px;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    flex-wrap: wrap;
}
.bp-footer__bottom a {
    color: #fff;
    text-decoration: none;
    margin-right: 24px;
    font-weight: 500;
    opacity: 0.9;
}
.bp-footer__bottom a:hover {
    opacity: 1;
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 1024px) {
    .bp-top-stories {
        grid-template-columns: 1fr 1fr;
    }
    .bp-top-stories__col--right {
        grid-column: span 2;
    }
    .bp-grid-3,
    .bp-headlines {
        grid-template-columns: repeat(2, 1fr);
    }
    .bp-section--with-side {
        grid-template-columns: 1fr;
    }
    .bp-side-promo {
        position: static;
    }
    .bp-hero-banner__wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .bp-news {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .bp-topbar {
        font-size: 13px;
    }
    .bp-nav__links {
        display: none;
    }
    .bp-top-stories,
    .bp-grid-3,
    .bp-headlines,
    .bp-case-grid,
    .bp-video-grid,
    .bp-tutorials,
    .bp-updates {
        grid-template-columns: 1fr;
    }
    .bp-top-stories__col--right {
        grid-column: span 1;
    }
    .bp-newsletter__form {
        grid-template-columns: 1fr;
    }
    .bp-hero-banner,
    .bp-newsletter {
        /* Keep 100vw breakout on mobile too; only adjust vertical spacing. */
        margin-top: 32px;
        margin-bottom: 32px;
        height: 500px;
    }
    .bp-hero-banner__purple {
        height: 260px;
    }
    .bp-newsletter__purple {
        height: 240px;
    }
    .bp-hero-banner__blue {
        height: 280px;
    }
    .bp-newsletter__blue {
        height: 260px;
    }
    .bp-hero-banner__wrap,
    .bp-newsletter__wrap {
        padding: 0 24px;
    }
    .bp-hero-banner__title {
        font-size: 24px;
    }
    .bp-hero-banner__featured {
        max-width: 320px;
        margin: 0 auto;
    }
    .bp-card--horizontal {
        flex-direction: column;
    }
    .bp-card--horizontal .bp-card__image {
        flex: 0 0 auto;
        width: 100%;
    }
    .bp-newsletter__title {
        font-size: 26px;
    }
    .bp-section {
        padding: 36px 0 20px;
    }
}
