
/* ==========================================
   SHOPNETLY - PREMIUM LIGHT MAGAZINE
========================================== */

.sfx-home {
    --sfx-bg: #FFFFFF;
    --sfx-surface: #FFFFFF;
    --sfx-surface-2: #F4F7FF;
    --sfx-border: #E5EAF3;
    --sfx-white: #0F172A;
    --sfx-muted: #64748B;
    --sfx-pink: #FF8A00;
    --sfx-purple: #7928F5;
    --sfx-blue: #0758EB;
    --sfx-width: 1280px;

    background: var(--sfx-bg);
    color: var(--sfx-white);
    font-family: "Outfit", Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

.sfx-home *,
.sfx-home *::before,
.sfx-home *::after {
    box-sizing: border-box;
}

.sfx-home a {
    text-decoration: none;
    transition: color .2s ease;
}

.sfx-home a:hover {
    color: var(--sfx-pink);
}

.sfx-home img {
    max-width: 100%;
}

.sfx-home h1,
.sfx-home h2,
.sfx-home h3,
.sfx-home h4,
.sfx-home p {
    margin-top: 0;
}

.sfx-home h1,
.sfx-home h2,
.sfx-home h3,
.sfx-home h4 {
    color: var(--sfx-white);
    font-family: inherit;
    letter-spacing: -.4px;
}

.sfx-home p {
    color: var(--sfx-muted);
    font-size: 16px;
    line-height: 1.75;
}

.sfx-container {
    width: min(
        var(--sfx-width),
        calc(100% - 48px)
    );
    margin-inline: auto;
}

.sfx-section {
    padding: 72px 0;
}

.sfx-section + .sfx-section {
    border-top: 1px solid var(--sfx-border);
}

/* ==========================================
   SECTION HEADINGS
========================================== */

.sfx-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 27px;
}

.sfx-section-head h2 {
    position: relative;
    margin: 0;
    padding-bottom: 13px;
    font-size: 27px;
    font-weight: 650;
    line-height: 1.3;
}

.sfx-section-head h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 44px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(
        90deg,
        var(--sfx-pink),
        var(--sfx-purple),
        var(--sfx-blue)
    );
}

.sfx-section-head > a {
    color: var(--sfx-muted);
    font-size: 14px;
    font-weight: 500;
}

.sfx-side-heading,
.sfx-widget-title {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 13px;
    border-bottom: 1px solid var(--sfx-border);
    color: var(--sfx-white);
    font-size: 21px;
    font-weight: 600;
}

.sfx-side-heading::after,
.sfx-widget-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 43px;
    height: 2px;
    background: var(--sfx-purple);
}

/* ==========================================
   CATEGORY / META
========================================== */

.sfx-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 4px;
    background: var(--sfx-pink);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
}

.sfx-category:hover {
    background: var(--sfx-purple);
}

.sfx-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--sfx-muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.sfx-meta-separator {
    color: var(--sfx-purple);
}

.sfx-image-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(125deg, #DDEAFF, #E8DFFF, #DBE9FF);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

/* ==========================================
   IMAGE HOVER
========================================== */

.sfx-home img {
    display: block;
}

.sfx-trending-image img,
.sfx-insight-image img,
.sfx-creative-image img,
.sfx-video-image img,
.sfx-feed-image img,
.sfx-side-thumb img,
.sfx-feature-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.sfx-trending-image:hover img,
.sfx-insight-image:hover img,
.sfx-creative-image:hover img,
.sfx-video-image:hover img,
.sfx-feed-image:hover img,
.sfx-side-thumb:hover img,
.sfx-feature-side-img:hover img {
    transform: scale(1.045);
}

/* ==========================================
   1. HERO GRID
========================================== */

.sfx-hero-section {
    padding: 35px 0 65px;
    background: #FFFFFF;
}

.sfx-hero-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(0, .9fr)
        minmax(270px, .8fr);
    grid-template-rows: repeat(2, 245px);
    gap: 18px;
}

.sfx-overlay-card {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: #E8EFFB;
    border-radius: 11px;
}

.sfx-cover-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 0;
}

.sfx-cover-link img,
.sfx-cover-link .sfx-image-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.sfx-overlay-card:hover
.sfx-cover-link img {
    transform: scale(1.045);
}

.sfx-image-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(3, 5, 10, .94),
        rgba(3, 5, 10, .38) 55%,
        rgba(3, 5, 10, .06)
    );
}

.sfx-hero-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.sfx-hero-main-content {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 32px;
    z-index: 2;
    pointer-events: none;
}

.sfx-hero-main-content a,
.sfx-hero-small-content a,
.sfx-feature-main-content a {
    pointer-events: auto;
}

.sfx-hero-main h1 {
    margin: 15px 0 15px;
    font-size: clamp(28px, 2.8vw, 42px);
    font-weight: 650;
    line-height: 1.23;
}

.sfx-hero-main h1 a,
.sfx-hero-small h3 a,
.sfx-feature-main h3 a {
    color: #fff;
}

.sfx-hero-main .sfx-meta,
.sfx-hero-small .sfx-meta,
.sfx-feature-main .sfx-meta {
    color: #d4d8e2;
}

.sfx-hero-small-content {
    position: absolute;
    left: 19px;
    right: 19px;
    bottom: 19px;
    z-index: 2;
    pointer-events: none;
}

.sfx-hero-small h3 {
    margin: 10px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.sfx-hero-side {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    min-width: 0;
    padding: 15px 0;
}

.sfx-hero-side-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 13px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sfx-border);
}

.sfx-side-thumb {
    display: block;
    width: 92px;
    height: 85px;
    overflow: hidden;
    border-radius: 7px;
}

.sfx-hero-side-item h3 {
    margin: 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
}

.sfx-hero-side-item h3 a,
.sfx-feature-side-post h3 a {
    color: var(--sfx-white);
}

/* ==========================================
   2. TRENDING CAROUSEL
========================================== */

.sfx-trending-section {
    background: #F7F9FF;
}

.sfx-carousel-actions {
    display: flex;
    gap: 9px;
}

.sfx-carousel-actions button {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--sfx-border);
    border-radius: 50%;
    background: var(--sfx-surface);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.sfx-carousel-actions button:hover {
    background: var(--sfx-purple);
    border-color: var(--sfx-purple);
}

.sfx-trending-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 72px) / 4);
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.sfx-trending-track::-webkit-scrollbar {
    display: none;
}

.sfx-trending-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sfx-border);
    border-radius: 10px;
    background: var(--sfx-surface);
    scroll-snap-align: start;
}

.sfx-trending-image {
    display: block;
    height: 180px;
    overflow: hidden;
}

.sfx-trending-content {
    padding: 17px;
}

.sfx-trending-card h3 {
    margin: 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.42;
}

.sfx-trending-card h3 a {
    color: #fff;
}

/* ==========================================
   3. MAIN + SIDEBAR
========================================== */

.sfx-main-sidebar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 315px;
    align-items: start;
    gap: 45px;
}

.sfx-main-column,
.sfx-sidebar {
    min-width: 0;
}

.sfx-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.sfx-widget {
    min-width: 0;
}

/* Insights grid */

.sfx-insights-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px;
}

.sfx-insight-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--sfx-border);
    border-radius: 10px;
    background: var(--sfx-surface);
}

.sfx-insight-large {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.sfx-insight-image {
    display: block;
    height: 155px;
    overflow: hidden;
}

.sfx-insight-large .sfx-insight-image {
    flex: 1;
    height: 310px;
    min-height: 310px;
}

.sfx-insight-body {
    padding: 18px;
}

.sfx-insight-card h3 {
    margin: 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.sfx-insight-large h3 {
    font-size: 23px;
}

.sfx-insight-card h3 a {
    color: #fff;
}

/* Trending topics */

.sfx-topics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.sfx-topics-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    min-height: 45px;
    padding: 10px;
    border: 1px solid var(--sfx-border);
    border-radius: 7px;
    background: var(--sfx-surface);
    color: #334155;
    font-size: 14px;
}

.sfx-topics-grid a:hover {
    background: var(--sfx-purple);
    border-color: var(--sfx-purple);
    color: #fff;
}

.sfx-topics-grid small {
    color: #64748B;
    font-size: 14px;
}

/* Popular */

.sfx-popular-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--sfx-border);
}

.sfx-popular-number {
    color: var(--sfx-purple);
    font-size: 26px;
    font-weight: 600;
}

.sfx-popular-item h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.sfx-popular-item h3 a {
    color: #fff;
}

/* Category pills */

.sfx-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sfx-category-pills a {
    padding: 10px 14px;
    border: 1px solid #D7E4FA;
    border-radius: 20px;
    background: #EDF4FF;
    color: #0758EB;
    font-size: 14px;
    font-weight: 500;
}

.sfx-category-pills a:hover {
    background: var(--sfx-pink);
    border-color: var(--sfx-pink);
    color: #fff;
}

/* ==========================================
   CREATIVE POSTS
========================================== */

.sfx-creative-area {
    margin-top: 55px;
}

.sfx-creative-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.sfx-creative-card {
    overflow: hidden;
    border: 1px solid var(--sfx-border);
    border-radius: 10px;
    background: var(--sfx-surface);
}

.sfx-creative-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.sfx-creative-image {
    display: block;
    height: 195px;
    overflow: hidden;
}

.sfx-creative-card:first-child .sfx-creative-image {
    height: 100%;
    min-height: 260px;
}

.sfx-creative-body {
    padding: 21px;
}

.sfx-creative-body h3 {
    margin: 12px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
}

.sfx-creative-body h3 a {
    color: #fff;
}

/* ==========================================
   4. TECHNOLOGY FEATURE
========================================== */

.sfx-feature-section {
    background: #F6F8FF;
}

.sfx-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(290px, .8fr);
    gap: 30px;
}

.sfx-feature-main {
    min-height: 460px;
}

.sfx-feature-main-content {
    position: absolute;
    z-index: 2;
    bottom: 30px;
    left: 30px;
    right: 30px;
    pointer-events: none;
}

.sfx-feature-main h3 {
    margin: 15px 0;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 650;
    line-height: 1.25;
}

.sfx-feature-side {
    min-width: 0;
}

.sfx-feature-side-post {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--sfx-border);
}

.sfx-feature-side-img {
    display: block;
    width: 90px;
    height: 83px;
    overflow: hidden;
    border-radius: 7px;
}

.sfx-feature-side-post h3 {
    margin: 7px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================
   5. VIDEO STORIES
========================================== */

.sfx-video-section {
    padding: 80px 0;
    background:
        radial-gradient(
            ellipse at 10% 0,
            rgba(7,88,235,.065),
            transparent 45%
        ),
        #0b1019;
}

.sfx-video-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.sfx-video-card {
    min-width: 0;
}

.sfx-video-image {
    position: relative;
    display: block;
    height: 160px;
    overflow: hidden;
    border-radius: 10px;
}

.sfx-video-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.22);
    pointer-events: none;
}

.sfx-play-icon {
    position: absolute;
    z-index: 2;
    bottom: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: var(--sfx-blue);
    color: #fff;
    font-size: 15px;
}

.sfx-video-body {
    padding: 15px 2px;
}

.sfx-video-card h3 {
    margin: 11px 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

.sfx-video-card h3 a {
    color: #fff;
}

/* ==========================================
   6. LATEST ARTICLES
========================================== */

.sfx-bottom-section {
    background: #FFFFFF;
}

.sfx-feed-list {
    display: grid;
    gap: 19px;
}

.sfx-feed-card {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 200px;
    overflow: hidden;
    border: 1px solid var(--sfx-border);
    border-radius: 10px;
    background: var(--sfx-surface);
}

.sfx-feed-image {
    display: block;
    min-height: 200px;
    overflow: hidden;
}

.sfx-feed-content {
    padding: 22px;
}

.sfx-feed-content h3 {
    margin: 12px 0;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.35;
}

.sfx-feed-content h3 a {
    color: #fff;
}

.sfx-feed-content p {
    display: -webkit-box;
    margin-bottom: 13px;
    overflow: hidden;
    font-size: 16px;
    line-height: 1.7;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sfx-load-more {
    margin-top: 30px;
    text-align: center;
}

.sfx-load-more a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    border: 1px solid var(--sfx-purple);
    border-radius: 7px;
    background: var(--sfx-purple);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.sfx-load-more a:hover {
    background: var(--sfx-pink);
    border-color: var(--sfx-pink);
    color: #fff;
}

/* ==========================================
   NEWSLETTER / SIDEBAR
========================================== */

.sfx-newsletter-widget {
    padding: 30px 24px;
    border: 1px solid #D9E5FA;
    border-radius: 11px;
    background: linear-gradient(145deg, #EFF5FF, #F7F4FF);
    text-align: center;
}

.sfx-newsletter-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--sfx-pink);
    color: #fff;
    font-size: 28px;
}

.sfx-newsletter-widget h2 {
    margin: 0 0 12px;
    font-size: 25px;
    font-weight: 650;
}

.sfx-newsletter-widget p {
    color: #64748B;
    font-size: 16px;
}

.sfx-newsletter-link {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    padding: 13px;
    border-radius: 6px;
    background: var(--sfx-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.sfx-newsletter-link:hover {
    background: var(--sfx-pink);
    color: #fff;
}

/* Embedded form styles */

.sfx-newsletter-widget form input[type="email"] {
    width: 100%;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    background: #fff;
    color: #15171d;
    font-family: inherit;
    font-size: 16px;
}

.sfx-newsletter-widget form button,
.sfx-newsletter-widget form input[type="submit"] {
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--sfx-blue);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
}

/* Recent posts */

.sfx-recent-post {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--sfx-border);
}

.sfx-recent-image {
    display: block;
    width: 88px;
    height: 79px;
    overflow: hidden;
    border-radius: 7px;
}

.sfx-recent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfx-recent-post h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.sfx-recent-post h3 a {
    color: #fff;
}

/* Category list */

.sfx-sidebar-categories {
    display: grid;
}

.sfx-sidebar-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 0;
    border-bottom: 1px solid var(--sfx-border);
    color: #334155;
    font-size: 16px;
}

.sfx-sidebar-categories a:hover {
    color: var(--sfx-pink);
}

.sfx-sidebar-categories small {
    color: var(--sfx-muted);
    font-size: 14px;
}

/* ==========================================
   TABLET
========================================== */

@media (max-width: 1100px) {

    .sfx-hero-grid {
        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(0, .9fr);
    }

    .sfx-hero-side {
        grid-column: 1 / -1;
        grid-row: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 24px;
    }

    .sfx-hero-side .sfx-side-heading {
        grid-column: 1 / -1;
    }

    .sfx-main-sidebar-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 25px;
    }

    .sfx-trending-track {
        grid-auto-columns: calc((100% - 48px) / 3);
    }

    .sfx-video-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {

    .sfx-main-sidebar-layout,
    .sfx-feature-grid {
        grid-template-columns: 1fr;
    }

    .sfx-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }

    .sfx-hero-grid {
        grid-template-rows: repeat(2, 220px);
    }

    .sfx-feature-main {
        min-height: 420px;
    }
}

/* ==========================================
   MOBILE
========================================== */

@media (max-width: 700px) {

    .sfx-container {
        width: calc(100% - 30px);
    }

    .sfx-section {
        padding: 48px 0;
    }

    .sfx-section-head h2 {
        font-size: 24px;
    }

    .sfx-hero-section {
        padding: 15px 0 45px;
    }

    .sfx-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 13px;
    }

    .sfx-hero-main {
        grid-column: 1 / -1;
        grid-row: auto;
        height: 370px;
    }

    .sfx-hero-main-content {
        left: 20px;
        right: 20px;
        bottom: 22px;
    }

    .sfx-hero-main h1 {
        font-size: 29px;
    }

    .sfx-hero-small {
        height: 245px;
    }

    .sfx-hero-small-content {
        left: 12px;
        right: 12px;
        bottom: 13px;
    }

    .sfx-hero-small h3 {
        font-size: 17px;
    }

    .sfx-hero-side {
        grid-column: 1 / -1;
        grid-template-columns: 1fr;
    }

    .sfx-trending-track {
        grid-auto-columns: 77%;
        gap: 15px;
    }

    .sfx-insights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sfx-insight-large {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .sfx-insight-large .sfx-insight-image {
        height: 270px;
        min-height: 270px;
    }

    .sfx-insight-image {
        height: 145px;
    }

    .sfx-insight-card h3 {
        font-size: 17px;
    }

    .sfx-insight-large h3 {
        font-size: 22px;
    }

    .sfx-creative-grid {
        grid-template-columns: 1fr;
    }

    .sfx-creative-card:first-child {
        grid-column: auto;
        display: block;
    }

    .sfx-creative-card:first-child .sfx-creative-image {
        height: 215px;
        min-height: 0;
    }

    .sfx-sidebar {
        grid-template-columns: 1fr;
    }

    .sfx-feature-main {
        min-height: 365px;
    }

    .sfx-feature-main h3 {
        font-size: 26px;
    }

    .sfx-feature-main-content {
        left: 20px;
        right: 20px;
        bottom: 22px;
    }

    .sfx-video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .sfx-video-image {
        height: 145px;
    }

    .sfx-feed-card {
        grid-template-columns: 1fr;
    }

    .sfx-feed-image {
        height: 230px;
        min-height: 0;
    }

    .sfx-feed-content h3 {
        font-size: 21px;
    }
}

/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 420px) {

    .sfx-hero-grid,
    .sfx-insights-grid {
        grid-template-columns: 1fr;
    }

    .sfx-hero-main {
        grid-column: auto;
    }

    .sfx-hero-small {
        height: 225px;
    }

    .sfx-hero-side {
        grid-column: auto;
    }

    .sfx-insight-large {
        grid-column: auto;
    }

    .sfx-trending-track {
        grid-auto-columns: 88%;
    }

    .sfx-video-grid {
        grid-template-columns: 1fr;
    }

    .sfx-video-image {
        height: 210px;
    }
}

/* ==========================================
   ACCESSIBILITY
========================================== */

.sfx-home a:focus-visible,
.sfx-home button:focus-visible {
    outline: 2px solid #0758EB;
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .sfx-home *,
    .sfx-home *::before,
    .sfx-home *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}


/* ==========================================
   SHOPNETLY LIGHT THEME FINISHING RULES
   Explicit colors for sections and readable cards
========================================== */

/* Keep light theme even if parent theme has a dark page background */
body.home,
body.home #page,
body.home .site,
body.home .site-main {
    background-color: #FFFFFF;
}

.sfx-home {
    --sfx-text: #0F172A;
    --sfx-primary: #0758EB;
    --sfx-primary-hover: #0648C6;
    --sfx-orange: #FF8A00;
    --sfx-purple: #7928F5;
    background: #FFFFFF;
    color: var(--sfx-text);
}

.sfx-home :is(h1, h2, h3, h4),
.sfx-home :is(.sfx-hero-side-item, .sfx-feature-side-post, .sfx-popular-item, .sfx-recent-post) h3 a,
.sfx-home :is(.sfx-trending-card, .sfx-insight-card, .sfx-creative-card, .sfx-video-card, .sfx-feed-card) h3 a {
    color: #0F172A;
}

.sfx-home :is(.sfx-trending-card, .sfx-insight-card, .sfx-creative-card, .sfx-feed-card) {
    background: #FFFFFF;
    border-color: #E5EAF3;
    box-shadow: 0 5px 20px rgba(15,23,42,.035);
}

.sfx-home :is(.sfx-trending-card, .sfx-insight-card, .sfx-creative-card, .sfx-feed-card):hover {
    border-color: #C7D9F7;
    box-shadow: 0 12px 28px rgba(15,23,42,.075);
}

.sfx-home :is(.sfx-trending-card, .sfx-insight-card, .sfx-creative-card, .sfx-video-card, .sfx-feed-card) h3 a:hover,
.sfx-home :is(.sfx-hero-side-item, .sfx-feature-side-post, .sfx-popular-item, .sfx-recent-post) h3 a:hover {
    color: #0758EB;
}

.sfx-home .sfx-section-head h2::after,
.sfx-home .sfx-side-heading::after,
.sfx-home .sfx-widget-title::after {
    background: linear-gradient(90deg, #0758EB, #7928F5, #FF8A00);
}

.sfx-home .sfx-category {
    background: #0758EB;
    color: #FFFFFF !important;
}

.sfx-home .sfx-category:hover {
    background: #7928F5;
    color: #FFFFFF !important;
}

.sfx-home .sfx-meta,
.sfx-home .sfx-section-head > a {
    color: #64748B;
}

.sfx-home .sfx-meta-separator,
.sfx-home .sfx-popular-number {
    color: #0758EB;
}

.sfx-home .sfx-image-fallback {
    color: #0758EB;
}

/* Image overlays stay dark so headlines remain readable */
.sfx-home .sfx-image-shade {
    background: linear-gradient(to top, rgba(5,13,31,.94), rgba(5,13,31,.42) 55%, rgba(5,13,31,.07));
}

.sfx-home .sfx-hero-main h1,
.sfx-home .sfx-hero-small h3,
.sfx-home .sfx-feature-main h3,
.sfx-home .sfx-hero-main h1 a,
.sfx-home .sfx-hero-small h3 a,
.sfx-home .sfx-feature-main h3 a {
    color: #FFFFFF;
    text-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.sfx-home .sfx-hero-main .sfx-meta,
.sfx-home .sfx-hero-small .sfx-meta,
.sfx-home .sfx-feature-main .sfx-meta {
    color: #E6EBF6;
}

.sfx-home .sfx-hero-side {
    background: transparent;
}

.sfx-home .sfx-hero-side-item h3 a,
.sfx-home .sfx-feature-side-post h3 a,
.sfx-home .sfx-recent-post h3 a {
    color: #0F172A;
}

.sfx-home .sfx-carousel-actions button {
    background: #FFFFFF;
    border-color: #DCE5F2;
    color: #0758EB;
}

.sfx-home .sfx-carousel-actions button:hover {
    background: #0758EB;
    border-color: #0758EB;
    color: #FFFFFF;
}

.sfx-home .sfx-topics-grid a {
    background: #F5F8FF;
    border-color: #E3EAF6;
    color: #253047;
}

.sfx-home .sfx-topics-grid a:hover {
    background: #0758EB;
    border-color: #0758EB;
    color: #FFFFFF;
}

.sfx-home .sfx-topics-grid a:hover small {
    color: #FFFFFF;
}

.sfx-home .sfx-category-pills a {
    background: #EFF5FF;
    border-color: #DAE6FA;
    color: #0758EB;
}

.sfx-home .sfx-category-pills a:hover {
    background: #0758EB;
    border-color: #0758EB;
    color: #FFFFFF;
}

.sfx-home .sfx-video-section {
    background: #F4F7FF;
}

.sfx-home .sfx-video-card h3 a {
    color: #0F172A;
}

.sfx-home .sfx-play-icon {
    background: #0758EB;
    color: #FFFFFF;
}

.sfx-home .sfx-load-more a {
    background: #0758EB;
    border-color: #0758EB;
    color: #FFFFFF;
}

.sfx-home .sfx-load-more a:hover {
    background: #7928F5;
    border-color: #7928F5;
    color: #FFFFFF;
}

/* Light newsletter panel */
.sfx-home .sfx-newsletter-widget {
    background: linear-gradient(145deg, #EDF4FF 0%, #F8F5FF 100%);
    border-color: #D8E5FA;
}

.sfx-home .sfx-newsletter-widget h2 {
    color: #0F172A;
}

.sfx-home .sfx-newsletter-widget p {
    color: #64748B;
}

.sfx-home .sfx-newsletter-icon {
    background: #0758EB;
    color: #FFFFFF;
}

.sfx-home .sfx-newsletter-link,
.sfx-home .sfx-newsletter-widget form button,
.sfx-home .sfx-newsletter-widget form input[type="submit"] {
    background: #0758EB;
    color: #FFFFFF;
}

.sfx-home .sfx-newsletter-link:hover,
.sfx-home .sfx-newsletter-widget form button:hover,
.sfx-home .sfx-newsletter-widget form input[type="submit"]:hover {
    background: #7928F5;
    color: #FFFFFF;
}

.sfx-home .sfx-newsletter-widget form input[type="email"] {
    background: #FFFFFF;
    color: #0F172A;
    border-color: #CDD8EA;
}

.sfx-home .sfx-sidebar-categories a {
    color: #334155;
}

.sfx-home .sfx-sidebar-categories a:hover {
    color: #0758EB;
}

.sfx-home a:focus-visible,
.sfx-home button:focus-visible {
    outline-color: #0758EB;
}
