/*
 * BettyLucky Home AdSense & Editorial Layer 1.0.0
 * Scoped exclusively to the editorial content appended after the existing Home.
 */

.bettylucky-home-editorial {
    --bl-home-ink: #252A30;
    --bl-home-ink-soft: #343a41;
    --bl-home-yellow: #FAC03D;
    --bl-home-green: #79BA48;
    --bl-home-paper: #ffffff;
    --bl-home-mist: #f4f5f6;
    --bl-home-line: rgba(37, 42, 48, 0.12);
    --bl-home-muted: #66707a;
    --bl-home-radius: 22px;
    --bl-home-shadow: 0 18px 50px rgba(37, 42, 48, 0.08);
    width: 100%;
    max-width: none;
    margin: 0;
    color: var(--bl-home-ink);
    background: var(--bl-home-paper);
    font-family: inherit;
    line-height: 1.65;
}

.bettylucky-home-editorial *,
.bettylucky-home-editorial *::before,
.bettylucky-home-editorial *::after {
    box-sizing: border-box;
}

.bettylucky-home-editorial a {
    color: inherit;
    text-decoration: none;
}

.bettylucky-home-editorial p,
.bettylucky-home-editorial h2,
.bettylucky-home-editorial h3 {
    margin-top: 0;
}

.bl-home-section {
    position: relative;
    padding: clamp(58px, 7vw, 96px) 24px;
}

.bl-home-shell {
    width: min(1180px, 100%);
    margin-inline: auto;
}

.bl-home-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--bl-home-green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.bl-home-eyebrow::before {
    width: 24px;
    height: 3px;
    border-radius: 999px;
    background: var(--bl-home-yellow);
    content: "";
}

.bettylucky-home-editorial h2 {
    max-width: 820px;
    margin-bottom: 18px;
    color: var(--bl-home-ink);
    font-size: clamp(2rem, 3.7vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

.bettylucky-home-editorial h3 {
    color: var(--bl-home-ink);
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    font-weight: 800;
    letter-spacing: -0.018em;
    line-height: 1.22;
}

.bettylucky-home-editorial p {
    color: var(--bl-home-muted);
    font-size: clamp(1rem, 1.2vw, 1.08rem);
}

.bl-home-intro {
    overflow: hidden;
    border-top: 1px solid var(--bl-home-line);
    background:
        radial-gradient(circle at 8% 10%, rgba(250, 192, 61, 0.13), transparent 26%),
        radial-gradient(circle at 92% 84%, rgba(121, 186, 72, 0.10), transparent 28%),
        var(--bl-home-paper);
}

.bl-home-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(36px, 7vw, 96px);
    align-items: start;
}

.bl-home-intro-copy p:last-of-type {
    margin-bottom: 26px;
}

.bl-home-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bl-home-trust-list span {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--bl-home-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--bl-home-ink);
    font-size: 0.86rem;
    font-weight: 700;
}

.bl-home-trust-list span::before {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--bl-home-green);
    content: "";
}

.bl-home-tools {
    background: var(--bl-home-mist);
}

.bl-home-section-head {
    max-width: 780px;
    margin-bottom: 36px;
}

.bl-home-section-head > p:last-child {
    margin-bottom: 0;
}

.bl-home-tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bl-home-tool-card {
    position: relative;
    display: flex;
    min-height: 310px;
    flex-direction: column;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--bl-home-line);
    border-radius: var(--bl-home-radius);
    background: var(--bl-home-paper);
    box-shadow: 0 12px 32px rgba(37, 42, 48, 0.045);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.bl-home-tool-card::after {
    position: absolute;
    right: -42px;
    bottom: -58px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(250, 192, 61, 0.11);
    content: "";
    pointer-events: none;
}

.bl-home-tool-card:nth-child(2)::after {
    background: rgba(121, 186, 72, 0.11);
}

.bl-home-tool-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 42, 48, 0.22);
    box-shadow: var(--bl-home-shadow);
}

.bl-home-tool-number {
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin-bottom: 32px;
    place-items: center;
    border-radius: 12px;
    background: var(--bl-home-ink);
    color: var(--bl-home-yellow);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.bl-home-tool-card p {
    flex: 1 1 auto;
    margin-bottom: 26px;
}

.bl-home-text-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    color: var(--bl-home-ink) !important;
    font-weight: 800;
}

.bl-home-text-link span {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--bl-home-yellow);
    transition: transform 160ms ease;
}

.bl-home-text-link:hover span {
    transform: translateX(3px);
}

.bl-home-method {
    overflow: hidden;
    background: var(--bl-home-ink);
    color: var(--bl-home-paper);
}

.bl-home-method::before,
.bl-home-method::after {
    position: absolute;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.bl-home-method::before {
    top: -180px;
    right: -100px;
    width: 420px;
    height: 420px;
    background: rgba(250, 192, 61, 0.08);
}

.bl-home-method::after {
    bottom: -220px;
    left: -140px;
    width: 460px;
    height: 460px;
    background: rgba(121, 186, 72, 0.07);
}

.bl-home-method .bl-home-eyebrow,
.bl-home-method .bl-home-method-head,
.bl-home-method-grid,
.bl-home-method-note {
    position: relative;
    z-index: 1;
}

.bl-home-method h2,
.bl-home-method h3,
.bl-home-method-note strong {
    color: var(--bl-home-paper);
}

.bl-home-method .bl-home-eyebrow {
    color: var(--bl-home-yellow);
}

.bl-home-method .bl-home-eyebrow::before {
    background: var(--bl-home-green);
}

.bl-home-method-head {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
    column-gap: clamp(36px, 8vw, 110px);
    align-items: end;
    margin-bottom: 42px;
}

.bl-home-method-head .bl-home-eyebrow,
.bl-home-method-head h2 {
    grid-column: 1;
}

.bl-home-method-head h2 {
    margin-bottom: 0;
}

.bl-home-method-head > p {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.70);
}

.bl-home-method-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.bl-home-method-grid article {
    min-height: 225px;
    padding: 28px 24px 30px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.bl-home-method-grid article:last-child {
    border-right: 0;
}

.bl-home-method-grid h3 {
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.bl-home-method-grid p,
.bl-home-method-note p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.96rem;
}

.bl-home-method-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    margin-top: 34px;
    padding: 24px 26px;
    border: 1px solid rgba(250, 192, 61, 0.35);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
}

.bl-home-method-note strong {
    display: block;
    margin-bottom: 6px;
}

.bl-home-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border: 1px solid var(--bl-home-ink);
    border-radius: 999px;
    background: var(--bl-home-ink);
    color: var(--bl-home-paper) !important;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.25;
    text-align: center;
    transition: transform 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.bl-home-button:hover {
    transform: translateY(-2px);
    background: var(--bl-home-yellow);
    border-color: var(--bl-home-yellow);
    color: var(--bl-home-ink) !important;
}

.bl-home-button-light {
    border-color: var(--bl-home-yellow);
    background: var(--bl-home-yellow);
    color: var(--bl-home-ink) !important;
}

.bl-home-button-light:hover {
    border-color: var(--bl-home-green);
    background: var(--bl-home-green);
}

.bl-home-button-outline {
    background: transparent;
    color: var(--bl-home-ink) !important;
}

.bl-home-button-outline:hover {
    color: var(--bl-home-ink) !important;
}

.bl-home-editorial-stream {
    background: var(--bl-home-paper);
}

.bl-home-blog-stream {
    border-top: 1px solid var(--bl-home-line);
    background: #fafafa;
}

.bl-home-section-head-with-action {
    display: grid;
    max-width: none;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 32px;
    align-items: end;
}

.bl-home-section-head-with-action > div {
    max-width: 760px;
}

.bl-home-section-head-with-action .bl-home-button {
    margin-bottom: 4px;
}

.bl-home-articles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.bl-home-article-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--bl-home-line);
    border-radius: var(--bl-home-radius);
    background: var(--bl-home-paper);
    box-shadow: 0 10px 32px rgba(37, 42, 48, 0.04);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.bl-home-article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bl-home-shadow);
}

.bl-home-article-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bl-home-ink), #3f4851);
}

.bl-home-article-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.bl-home-article-card:hover .bl-home-article-media img {
    transform: scale(1.025);
}

.bl-home-article-placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--bl-home-yellow);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.08em;
}

.bl-home-article-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 22px;
}

.bl-home-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
    color: var(--bl-home-green);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.bl-home-article-body h3 {
    margin-bottom: 12px;
    font-size: 1.18rem;
}

.bl-home-article-body h3 a:hover {
    text-decoration: underline;
    text-decoration-color: var(--bl-home-yellow);
    text-decoration-thickness: 3px;
    text-underline-offset: 4px;
}

.bl-home-article-body > p {
    flex: 1 1 auto;
    margin-bottom: 22px;
    font-size: 0.94rem;
}

.bl-home-article-footer {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--bl-home-line);
    color: var(--bl-home-muted);
    font-size: 0.78rem;
}

.bl-home-article-footer a {
    color: var(--bl-home-ink);
    font-weight: 800;
    white-space: nowrap;
}

.bl-home-empty {
    padding: 28px;
    border: 1px dashed var(--bl-home-line);
    border-radius: 16px;
    background: var(--bl-home-mist);
    text-align: center;
}

.bl-home-ad-slot {
    padding: 26px 24px;
    text-align: center;
}

.bl-home-ad-slot:empty {
    display: none;
}

.bl-home-responsible {
    background:
        linear-gradient(110deg, rgba(250, 192, 61, 0.16), rgba(121, 186, 72, 0.10)),
        var(--bl-home-paper);
}

.bl-home-responsible-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: clamp(40px, 8vw, 110px);
    align-items: start;
}

.bl-home-responsible-grid p:last-child {
    margin-bottom: 0;
}

.bl-home-faq {
    background: var(--bl-home-paper);
}

.bl-home-faq-grid {
    display: grid;
    grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
    gap: clamp(40px, 8vw, 110px);
    align-items: start;
}

.bl-home-faq-grid header {
    position: sticky;
    top: 110px;
}

.bl-home-faq-grid header h2 {
    font-size: clamp(2rem, 3vw, 3rem);
}

.bl-home-faq-list {
    border-top: 1px solid var(--bl-home-line);
}

.bl-home-faq-list details {
    border-bottom: 1px solid var(--bl-home-line);
}

.bl-home-faq-list summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 16px;
    align-items: center;
    padding: 22px 0;
    color: var(--bl-home-ink);
    cursor: pointer;
    font-size: 1.04rem;
    font-weight: 800;
    list-style: none;
}

.bl-home-faq-list summary::-webkit-details-marker {
    display: none;
}

.bl-home-faq-list summary span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--bl-home-mist);
    color: var(--bl-home-ink);
    font-size: 1.25rem;
    font-weight: 500;
    transition: transform 160ms ease, background-color 160ms ease;
}

.bl-home-faq-list details[open] summary span {
    transform: rotate(45deg);
    background: var(--bl-home-yellow);
}

.bl-home-faq-list details > div {
    padding: 0 48px 22px 0;
}

.bl-home-faq-list details > div p {
    margin-bottom: 0;
    font-size: 0.98rem;
}

.bl-home-final {
    padding-top: 34px;
    background: var(--bl-home-paper);
}

.bl-home-final-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 38px;
    align-items: center;
    padding: clamp(30px, 5vw, 58px);
    border-radius: 28px;
    background: var(--bl-home-mist);
}

.bl-home-final-box h2 {
    margin-bottom: 12px;
    font-size: clamp(2rem, 3vw, 3.1rem);
}

.bl-home-final-box p {
    max-width: 760px;
    margin-bottom: 0;
}

.bl-home-final-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.bettylucky-home-editorial a:focus-visible,
.bettylucky-home-editorial summary:focus-visible {
    outline: 3px solid var(--bl-home-green);
    outline-offset: 4px;
}

@media (max-width: 1024px) {
    .bl-home-tool-grid,
    .bl-home-articles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bl-home-tool-card:last-child,
    .bl-home-article-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
    }

    .bl-home-method-head {
        grid-template-columns: 1fr;
    }

    .bl-home-method-head .bl-home-eyebrow,
    .bl-home-method-head h2,
    .bl-home-method-head > p {
        grid-column: 1;
        grid-row: auto;
    }

    .bl-home-method-head h2 {
        margin-bottom: 18px;
    }

    .bl-home-method-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bl-home-method-grid article:nth-child(2) {
        border-right: 0;
    }

    .bl-home-method-grid article:nth-child(-n + 2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .bl-home-section-head-with-action,
    .bl-home-final-box {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .bl-home-section-head-with-action .bl-home-button,
    .bl-home-final-actions {
        justify-self: start;
    }

    .bl-home-final-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .bl-home-section {
        padding: 52px 18px;
    }

    .bl-home-intro-grid,
    .bl-home-responsible-grid,
    .bl-home-faq-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .bl-home-tool-grid,
    .bl-home-articles,
    .bl-home-method-grid {
        grid-template-columns: 1fr;
    }

    .bl-home-tool-card:last-child,
    .bl-home-article-card:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .bl-home-tool-card {
        min-height: 0;
    }

    .bl-home-method-grid article,
    .bl-home-method-grid article:nth-child(2) {
        min-height: 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    }

    .bl-home-method-grid article:last-child {
        border-bottom: 0;
    }

    .bl-home-method-note {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .bl-home-method-note .bl-home-button {
        justify-self: start;
    }

    .bl-home-section-head-with-action {
        gap: 18px;
    }

    .bl-home-article-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .bl-home-faq-grid header {
        position: static;
    }

    .bl-home-faq-list details > div {
        padding-right: 0;
    }

    .bl-home-final {
        padding-top: 22px;
    }

    .bl-home-final-box {
        gap: 26px;
        border-radius: 22px;
    }

    .bl-home-final-actions {
        width: 100%;
        flex-direction: column;
    }

    .bl-home-final-actions .bl-home-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bettylucky-home-editorial *,
    .bettylucky-home-editorial *::before,
    .bettylucky-home-editorial *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}
