/* =========================================================
   CouponsHaven - Main Stylesheet
   ========================================================= */

   
/* =========================================================
   COUPONSHAVEN — CUSTOMER DESIGN TOKENS
   ========================================================= */

:root {
    /* Brand */
    --brand-orange: #f97316;
    --brand-orange-hover: #ea580c;
    --brand-orange-light: #fff7ed;
    --brand-orange-border: #fed7aa;

    /* Text */
    --text-primary: #111827;
    --text-secondary: #374151;
    --text-body: #6b7280;
    --text-muted: #9ca3af;

    /* Surfaces and borders */
    --surface: #ffffff;
    --page-bg: #f5f6f8;
    --border: #e5e7eb;

    /* Shape */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-card: 0 8px 22px rgba(17, 24, 39, 0.07);
}


/* =========================================================
   1. General / Reset
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    background: #f5f6f8;
    color: #222;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}


/* =========================================================
   3. Main Layout
   ========================================================= */

main {
    max-width: 1200px;

    margin: 0 auto;

    padding: 40px 20px;
}

/* =========================================================
   COUPONSHAVEN HOMEPAGE
   White + Orange Theme
   ========================================================= */


/* =========================================================
   HERO
   ========================================================= */

.hero {
    margin-bottom: 55px;
    padding: 70px 30px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
}

.hero-label {
    display: inline-block;
    margin-bottom: 14px;
    color: #f97316;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero h1 {
    margin: 0 0 15px;
    color: #111827;
    font-size: 42px;
    line-height: 1.15;
}

.hero p {
    max-width: 650px;
    margin: 0 auto 28px;
    color: #6b7280;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   HERO SEARCH
   ========================================================= */

.hero .search-form {
    display: flex;
    max-width: 680px;
    margin: 0 auto;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(17, 24, 39, 0.06);
}

.hero .search-form input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 0 16px;
    border: 0;
    outline: none;
    background: transparent;
    color: #111827;
    font-size: 14px;
}

.hero .search-form input::placeholder {
    color: #9ca3af;
}

.hero .search-form button {
    flex: 0 0 auto;
    min-width: 105px;
    height: 48px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: #f97316;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero .search-form button:hover {
    background: #ea580c;
}


/* =========================================================
   HERO LINKS
   ========================================================= */

.hero-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 10px 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
    transition: all 0.2s ease;
}

.hero-links a:hover {
    color: #f97316;
    border-color: #fdba74;
    background: #fff7ed;
    transform: translateY(-1px);
}


/* =========================================================
   HOMEPAGE SECTIONS
   ========================================================= */

.stores-section,
.categories-section,
.deals-section,
.latest-offers {
    margin-bottom: 55px;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 25px;
}

.section-heading h2 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 26px;
    line-height: 1.3;
}

.section-heading p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

.section-view-all {
    flex: 0 0 auto;
    color: #f97316;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.section-view-all:hover {
    color: #ea580c;
    text-decoration: underline;
}


/* =========================================================
   HOMEPAGE STORE CARDS
   ========================================================= */

.stores-section .stores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.stores-section .store-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.stores-section .store-card:hover {
    transform: translateY(-3px);
    border-color: #f97316;
    box-shadow: 0 7px 20px rgba(249, 115, 22, 0.10);
}

.store-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.store-card-link:hover {
    color: inherit;
    text-decoration: none;
}

.stores-section .store-logo {
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    padding: 8px;
    box-sizing: border-box;
    background: #f9fafb;
    border-radius: 7px;
}

.stores-section .store-logo img {
    max-width: 125px;
    max-height: 52px;
    object-fit: contain;
}

.stores-section .store-logo-placeholder {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.stores-section .store-card h3 {
    margin: 0 0 7px;
    color: #111827;
    font-size: 17px;
    line-height: 1.35;
}

.stores-section .store-card-link:hover h3 {
    color: #f97316;
}

.stores-section .store-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
}

.stores-section .store-actions {
    margin-top: auto;
    padding-top: 15px;
}

.stores-section .store-coupon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    box-sizing: border-box;
    padding: 9px 12px;
    background: #f97316;
    border: 1px solid #f97316;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.stores-section .store-coupon-button:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
    text-decoration: none;
}


/* =========================================================
   HOMEPAGE CATEGORIES
   ========================================================= */

.categories-section .categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.categories-section .category-card {
    display: flex;
    flex-direction: column;
    min-height: 155px;
    padding: 20px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.categories-section .category-card:hover {
    transform: translateY(-3px);
    border-color: #f97316;
    box-shadow: 0 7px 20px rgba(249, 115, 22, 0.10);
}

.category-card-content {
    flex: 1;
}

.categories-section .category-card h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.35;
}

.categories-section .category-card:hover h3 {
    color: #f97316;
}

.categories-section .category-card p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.categories-section .category-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 13px;
    border-top: 1px solid #f0f0f0;
    color: #f97316;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.categories-section .category-button:hover {
    color: #ea580c;
    text-decoration: none;
}

.categories-section .category-button span {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.categories-section .category-button:hover span {
    transform: translateX(4px);
}


/* =========================================================
   HOMEPAGE COUPON CARDS
   ========================================================= */

.deals-section .coupons-grid,
.latest-offers .coupons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.deals-section .coupon-card,
.latest-offers .coupon-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.deals-section .coupon-card:hover,
.latest-offers .coupon-card:hover {
    transform: translateY(-3px);
    border-color: #f97316;
    box-shadow: 0 7px 20px rgba(249, 115, 22, 0.10);
}


/* Coupon Header */

.deals-section .coupon-card-header,
.latest-offers .coupon-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    min-height: 25px;
    margin-bottom: 13px;
}

.deals-section .coupon-card-labels,
.latest-offers .coupon-card-labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.deals-section .coupon-type,
.latest-offers .coupon-type,
.deals-section .featured-badge,
.latest-offers .featured-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    box-sizing: border-box;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.deals-section .coupon-type,
.latest-offers .coupon-type {
    background: #f3f4f6;
    color: #6b7280;
}

.deals-section .featured-badge,
.latest-offers .featured-badge {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #f97316;
}

.deals-section .coupon-discount,
.latest-offers .coupon-discount {
    flex: 0 0 auto;
    color: #f97316;
    font-size: 15px;
    font-weight: 800;
    text-align: right;
}


/* Store */

.deals-section .coupon-store-link,
.latest-offers .coupon-store-link {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 9px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.deals-section .coupon-store-link:hover,
.latest-offers .coupon-store-link:hover {
    color: #f97316;
    text-decoration: none;
}


/* Title */

.deals-section .coupon-title,
.latest-offers .coupon-title {
    margin: 0 0 9px;
    font-size: 17px;
    line-height: 1.4;
}

.deals-section .coupon-title a,
.latest-offers .coupon-title a {
    color: #111827;
    text-decoration: none;
}

.deals-section .coupon-title a:hover,
.latest-offers .coupon-title a:hover {
    color: #f97316;
}


/* Description */

.deals-section .coupon-description,
.latest-offers .coupon-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    margin: 0 0 13px;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}


/* Meta */

.deals-section .coupon-meta,
.latest-offers .coupon-meta {
    margin-top: auto;
    margin-bottom: 14px;
    color: #9ca3af;
    font-size: 12px;
}


/* Button */

.deals-section .coupon-button,
.latest-offers .coupon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    box-sizing: border-box;
    padding: 9px 12px;
    background: #f97316;
    border: 1px solid #f97316;
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.deals-section .coupon-button:hover,
.latest-offers .coupon-button:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
    text-decoration: none;
}


/* =========================================================
   EMPTY STATES
   ========================================================= */

.home-empty-state {
    padding: 30px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.home-empty-state p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .stores-section .stores-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .categories-section .categories-grid,
    .deals-section .coupons-grid,
    .latest-offers .coupons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 750px) {

    .hero {
        padding: 55px 22px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .stores-section .stores-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .section-view-all {
        white-space: normal;
    }

    .categories-section .categories-grid,
    .deals-section .coupons-grid,
    .latest-offers .coupons-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 500px) {

    .hero {
        margin-bottom: 40px;
        padding: 42px 16px;
        border-radius: 10px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero .search-form {
        flex-direction: column;
        padding: 6px;
    }

    .hero .search-form input {
        width: 100%;
        box-sizing: border-box;
    }

    .hero .search-form button {
        width: 100%;
    }

    .hero-links {
        flex-direction: column;
        gap: 11px;
    }

    .stores-section .stores-grid {
        grid-template-columns: 1fr;
    }

    .stores-section .store-card,
    .categories-section .category-card,
    .deals-section .coupon-card,
    .latest-offers .coupon-card {
        padding: 16px;
    }

    .section-heading h2 {
        font-size: 23px;
    }

}










/* =========================================================
   POPULAR STORES & CATEGORIES
   ========================================================= */

.store-category-section {
    margin-bottom: 55px;
}


/* Heading */

.store-category-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 22px;
}

.store-category-heading h2 {
    margin: 0 0 6px;

    color: #111827;

    font-size: 24px;
    line-height: 1.25;
    font-weight: 800;
}

.store-category-heading p {
    margin: 0;

    color: #64748b;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   TABS
   ========================================================= */

.store-category-tabs {
    display: flex;
    gap: 6px;

    margin-bottom: 18px;

    padding: 4px;

    width: fit-content;

    background: #f3f4f6;

    border-radius: 8px;
}

.store-category-tab {
    min-width: 100px;

    padding: 8px 16px;

    border: 0;
    border-radius: 6px;

    background: transparent;

    color: #64748b;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.store-category-tab:hover {
    color: #111827;
}

.store-category-tab.active {
    background: #ffffff;

    color: #111827;

    box-shadow: 0 1px 4px rgba(17, 24, 39, 0.08);
}


/* =========================================================
   PANELS
   ========================================================= */

.store-category-panel {
    display: none;
}

.store-category-panel.active {
    display: block;
}


/* =========================================================
   STORE / CATEGORY GRID
   ========================================================= */

.store-category-grid {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 14px;
}


/* =========================================================
   STORE / CATEGORY TILE
   ========================================================= */

.store-category-tile {
    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 92px;

    padding: 12px 13px;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 9px;

    color: inherit;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.store-category-tile:hover {
    transform: translateY(-2px);

    border-color: #fdba74;

    box-shadow: 0 6px 16px rgba(17, 24, 39, 0.06);

    color: inherit;

    text-decoration: none;
}


/* Top row */

.store-category-tile-top {
    display: flex;

    align-items: center;

    min-width: 0;

    gap: 10px;
}


/* Logo */

.store-category-logo {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #f8fafc;

    border: 1px solid #e8edf2;

    border-radius: 7px;

    overflow: hidden;
}

.store-category-logo img {
    max-width: 43px;
    max-height: 38px;

    object-fit: contain;
}


/* Placeholder */

.store-category-logo-placeholder {
    color: #64748b;

    font-size: 16px;
    font-weight: 800;
}


/* Store / Category name */

.store-category-tile h3 {
    flex: 1;

    min-width: 0;

    margin: 0;

    color: #111827;

    font-size: 14px;
    line-height: 1.35;
    font-weight: 750;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;
}


/* Arrow */

.store-category-arrow {
    flex: 0 0 auto;

    color: #f97316;

    font-size: 19px;
    line-height: 1;

    transition: transform 0.2s ease;
}

.store-category-tile:hover .store-category-arrow {
    transform: translateX(3px);
}


/* =========================================================
   COUPON COUNT
   ========================================================= */

.store-category-count {
    display: flex;

    align-items: center;

    gap: 6px;

    margin-top: 9px;

    padding-left: 62px;

    color: #64748b;

    font-size: 11px;
    line-height: 1.3;
}

.store-category-dot {
    width: 5px;
    height: 5px;

    flex: 0 0 5px;

    background: #f97316;

    border-radius: 50%;
}


/* =========================================================
   CATEGORY ICON
   ========================================================= */

.category-tile-icon {
    background: #fff7ed;

    border-color: #fed7aa;

    color: #f97316;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .store-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 700px) {

    .store-category-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .store-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

}


@media (max-width: 450px) {

    .store-category-grid {
        grid-template-columns: 1fr;
    }

    .store-category-heading h2 {
        font-size: 21px;
    }

}


/* =========================================================
   HOMEPAGE - FEATURED OFFERS
   Final visual refinement
   ========================================================= */

.featured-offers-section {
    margin-bottom: 50px;
}

.featured-offers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.featured-offer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 26px;
    margin-bottom: 17px;
}

.featured-offer-label {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 4px 9px;
    box-sizing: border-box;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 5px;
    color: #ea580c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.featured-offers-section .coupon-discount {
    color: #f97316;
    font-size: 17px;
    font-weight: 800;
}

.featured-offer-store {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 12px;
    color: #374151;
    text-decoration: none;
}

.featured-offer-store:hover {
    color: #ea580c;
    text-decoration: none;
}

.featured-offer-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
}

.featured-offer-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.featured-offers-section .featured-coupon-card > a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 12px;
    color: #374151;
    text-decoration: none;
}

.featured-offers-section .featured-coupon-card > a:hover {
    color: #ea580c;
    text-decoration: none;
}

.featured-offer-logo-placeholder {
    color: #6b7280;
    font-size: 15px;
    font-weight: 800;
}

.featured-offer-store-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.featured-offers-section .coupon-title a {
    color: #111827;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
}

.featured-offers-section .coupon-title a:hover {
    color: #ea580c;
    text-decoration: none;
}

.featured-offers-section .coupon-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
}

.featured-offers-section .coupon-meta {
    margin: 0 0 15px;
    min-height: 16px;
    padding-top: 16px;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.4;
}

.featured-offers-section .featured-coupon-card {
    display: flex;
    flex-direction: column;
    min-height: 315px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    cursor: pointer;
}

.featured-offers-section .coupon-title {
    min-height: 50px;
    margin-bottom: 10px;
}

.featured-offers-section .coupon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    padding: 9px 12px;
    background: #ffffff;
    border: 1px solid #f97316;
    border-radius: 7px;
    color: #ea580c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.featured-offers-section .coupon-button span {
    transition: transform 0.2s ease;
}

.featured-offers-section .coupon-button:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.featured-offers-section .coupon-button:hover span {
    transform: translateX(3px);
}


@media (max-width: 900px) {

    .featured-offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .featured-offers-grid {
        grid-template-columns: 1fr;
    }

    .featured-offers-section .featured-coupon-card {
        min-height: 300px;
    }

}


/* =========================================================
   HOMEPAGE - LATEST OFFERS
   Final visual refinement
   ========================================================= */

.latest-offers-section {
    margin-bottom: 50px;
}

.latest-offers-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.latest-offers-section .latest-coupon-card {
    display: flex;
    flex-direction: column;
    min-height: 315px;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
}

.latest-offers-section .latest-coupon-card:hover {
    border-color: #fdba74;
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.10);
}

.latest-offer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 26px;
    margin-bottom: 17px;
}

.latest-offer-label {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 4px 9px;
    box-sizing: border-box;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    color: #6b7280;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.latest-offers-section .coupon-discount {
    color: #f97316;
    font-size: 17px;
    font-weight: 800;
}

.latest-offer-store {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 12px;
    color: #374151;
    text-decoration: none;
}

.latest-offer-store:hover {
    color: #ea580c;
    text-decoration: none;
}

.latest-offer-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
}

.latest-offer-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.latest-offers-section .latest-coupon-card > a {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 12px;
    color: #374151;
    text-decoration: none;
}

.latest-offers-section .latest-coupon-card > a:hover {
    color: #ea580c;
    text-decoration: none;
}

.latest-offer-logo-placeholder {
    color: #6b7280;
    font-size: 15px;
    font-weight: 800;
}

.latest-offer-store-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.latest-offers-section .coupon-title {
    min-height: 50px;
    margin-bottom: 10px;
}

.latest-offers-section .coupon-title a {
    color: #111827;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
}

.latest-offers-section .coupon-title a:hover {
    color: #ea580c;
    text-decoration: none;
}

.latest-offers-section .coupon-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
}

.latest-offers-section .coupon-meta {
    margin: 0 0 15px;
    min-height: 16px;
    padding-top: 16px;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.4;
}

.latest-offers-section .coupon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    padding: 9px 12px;
    background: #ffffff;
    border: 1px solid #f97316;
    border-radius: 7px;
    color: #ea580c;
    font-size: 13px;
    margin-top: auto;
    font-weight: 700;
    text-decoration: none;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.latest-offers-section .coupon-button span {
    transition: transform 0.2s ease;
}

.latest-offers-section .coupon-button:hover {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.latest-offers-section .coupon-button:hover span {
    transform: translateX(3px);
}


@media (max-width: 900px) {

    .latest-offers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .latest-offers-grid {
        grid-template-columns: 1fr;
    }

    .latest-offers-section .latest-coupon-card {
        min-height: 300px;
    }

}


/* =========================================================
   HOMEPAGE - FEATURED / LATEST SECTION CONSISTENCY
   ========================================================= */

.featured-offers-section {
    background: transparent;
    padding: 0;
    border: 0;
    border-radius: 0;
}

.section-view-all-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
}

.section-view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #f97316;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
}

.section-view-all:hover,
.section-view-all:focus {
    color: #ea580c;
    text-decoration: none;
}

@media (max-width: 600px) {

    .section-view-all-group {
        width: 100%;
        justify-content: flex-start;
        gap: 14px;
    }

}





/* =========================================================
   COUPONS LISTING PAGE - SIMPLE COUPON CARDS
   ========================================================= */

.coupons-page {
    margin-bottom: 50px;
}

.coupons-page .coupons-page-header {
    margin-bottom: 26px;
}

.coupons-page .coupons-page-header h1 {
    margin: 0 0 7px;
    color: #111827;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 800;
}

.coupons-page .coupons-page-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.coupons-page .coupons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.coupons-page .coupon-listing-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 320px;
    box-sizing: border-box;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.coupons-page .coupon-listing-card:hover {
    transform: translateY(-3px);
    border-color: #fdba74;
    box-shadow: 0 8px 22px rgba(249, 115, 22, 0.10);
}

.coupons-page .coupon-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 26px;
    margin-bottom: 16px;
}

.coupons-page .coupon-card-labels {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.coupons-page .featured-badge,
.coupons-page .coupon-type {
    display: inline-flex;
    align-items: center;
    min-height: 23px;
    padding: 4px 8px;
    box-sizing: border-box;
    border-radius: 5px;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.coupons-page .featured-badge {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #ea580c;
}

.coupons-page .coupon-type {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.coupons-page .coupon-discount {
    flex: 0 0 auto;
    color: #f97316;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    text-align: right;
}

.coupons-page .coupon-listing-store {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 11px;
    color: #374151;
    text-decoration: none;
}

.coupons-page .coupon-listing-store:hover {
    color: #ea580c;
    text-decoration: none;
}

.coupon-listing-logo {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
}

.coupon-listing-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.coupon-listing-logo-placeholder {
    color: #6b7280;
    font-size: 15px;
    font-weight: 800;
}

.coupon-listing-store-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
}

.coupons-page .coupon-listing-category {
    display: inline-flex;
    align-self: flex-start;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 5px 8px;
    box-sizing: border-box;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 5px;
    color: #6b7280;
    font-size: 10px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coupons-page .coupon-title {
    min-height: 50px;
    margin: 0 0 9px;
}

.coupons-page .coupon-title a {
    color: #111827;
    font-size: 17px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none;
}

.coupons-page .coupon-title a:hover {
    color: #ea580c;
    text-decoration: none;
}

.coupons-page .coupon-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.55;
}

.coupons-page .coupon-meta {
    margin: auto 0 15px;
    padding-top: 16px;
    color: #9ca3af;
    font-size: 11px;
    line-height: 1.4;
}

.coupons-page .coupon-card-action {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.coupons-page .coupon-show-code-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    box-sizing: border-box;
    padding: 9px 12px;
    background: #f97316;
    border: 1px solid #f97316;
    border-radius: 7px;
    color: #ffffff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.coupons-page .coupon-show-code-button:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.coupons-page .coupon-show-code-button:disabled {
    opacity: 0.75;
    cursor: default;
    transform: none;
}

.coupons-page .coupon-view-details {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
}

.coupons-page .coupon-view-details:hover {
    color: #ea580c;
    text-decoration: none;
}

@media (max-width: 900px) {

    .coupons-page .coupons-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {

    .coupons-page .coupons-grid {
        grid-template-columns: 1fr;
    }

    .coupons-page .coupons-page-header h1 {
        font-size: 25px;
    }

    .coupons-page .coupon-listing-card {
        min-height: 315px;
    }

}



/* =========================================================
   HOMEPAGE STORE SEARCH SUGGESTIONS
   ========================================================= */

.homepage-search-wrapper {
    position: relative;
    width: min(680px, 100%);
    margin: 0 auto;
    z-index: 100;
}

.store-search-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    padding: 5px;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    z-index: 1000;
}

.store-search-suggestions.is-visible {
    display: block;
}

.store-search-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 50px;
    padding: 6px 9px;
    color: #202124;
    text-decoration: none;
    background: #ffffff;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.store-search-suggestion:hover,
.store-search-suggestion.is-highlighted {
    background: #f7f7f7;
}

.store-search-suggestion-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8e8e8;
    border-radius: 7px;
    background: #ffffff;
    overflow: hidden;
}

.store-search-suggestion-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.store-search-suggestion-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #666666;
    background: #f4f4f4;
}

.store-search-suggestion-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}

.store-search-suggestion-name {
    display: block;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 500;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.store-search-suggestion-offers {
    display: block;
    font-size: 11px;
    line-height: 1.2;
    color: #777777;
}

.store-search-no-results {
    padding: 10px 12px;
    color: #666666;
    font-size: 13px;
}

/* =========================================================
   SHARED OFFER POPUP
   ========================================================= */

/* Offer modal and popup styles are centralized in offer_details.css. */

/* =========================================================
   COMMON FOCUS STATES
   ========================================================= */

.hero-links a:focus-visible,
.section-view-all:focus-visible,
.store-category-tab:focus-visible,
.store-category-tile:focus-visible,
.coupon-button:focus-visible,
.home-offer-action:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.hero .search-form input:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: -2px;
}

.hero .search-form button:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

.store-search-suggestion:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: -2px;
}

/*
 * CouponsHaven Saving Tips homepage styles
 * Append this block to /CouponsHub/public/css/style.css
 */

.saving-tips-section {
    margin-bottom: 55px;
}

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

.saving-tip-card {
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.saving-tip-card:hover {
    transform: translateY(-3px);
    border-color: #fdba74;
    box-shadow: 0 8px 22px rgba(249, 115, 22, .09);
}

.saving-tip-image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f9fafb;
}

.saving-tip-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.saving-tip-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.saving-tip-date {
    margin: 0 0 9px;
    color: #6b7280;
    font-size: 12px;
}

.saving-tip-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.4;
}

.saving-tip-card h3 a {
    color: #111827;
    text-decoration: none;
}

.saving-tip-card h3 a:hover {
    color: #f97316;
}

.saving-tip-excerpt {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.65;
}

.saving-tip-read-more {
    margin-top: auto;
    color: #f97316;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.saving-tip-read-more:hover {
    color: #ea580c;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .saving-tips-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .saving-tips-grid {
        grid-template-columns: 1fr;
    }

    .saving-tip-card-content {
        padding: 16px;
    }
}
        .latest-offers-section .coupons-grid.latest-compact-grid,
        .featured-offers-section .coupons-grid.latest-compact-grid {
            display: grid !important;
            grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
            gap: 16px;
            align-items: stretch;
        }

        .latest-offers-section .latest-visual-card,
        .featured-offers-section .latest-visual-card {
            display: flex;
            flex-direction: column;
            min-width: 0;
            overflow: hidden;
            padding: 0;
            border: 1px solid #e1e5eb;
            border-radius: 12px;
            background: #fff;
        }

        .latest-visual-card .latest-card-visual {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 158px;
            min-height: 158px;
            margin: 0;
            padding: 24px 16px 18px;
            background: #fff;
            border-bottom: 1px solid #edf0f3;
        }

        .latest-visual-card .latest-card-type {
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1;
            padding: 7px 15px 7px 12px;
            border-radius: 0 0 14px 0;
            background: #08234b;
            color: #fff;
            font-size: 10px;
            line-height: 1.2;
            font-weight: 800;
            letter-spacing: .35px;
            text-transform: uppercase;
        }

        .latest-visual-card .latest-card-logo {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            text-decoration: none;
        }

        .latest-visual-card .latest-card-logo img {
            display: block;
            max-width: 88%;
            max-height: 100px;
            width: auto;
            height: auto;
            object-fit: contain;
        }

        .latest-visual-card .latest-card-logo-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 92px;
            height: 92px;
            border-radius: 12px;
            background: #f2f4f7;
            color: #344054;
            font-size: 42px;
            font-weight: 800;
        }

        .latest-visual-card .latest-card-discount {
            position: absolute;
            top: 5px;
            right: 5px;
            max-width: calc(100% - 24px);
            padding: 9px 13px;
            border: 1px solid #ff6b1a;
            border-radius: 22px;
            background: #fff3eb;
            color: #f15a24;
            box-shadow: 0 3px 10px rgba(241, 90, 36, .14);
            font-size: 12px;
            line-height: 1.2;
            font-weight: 800;
            text-align: center;
            overflow-wrap: anywhere;
        }

        .latest-visual-card .latest-card-content {
            display: flex;
            flex: 1;
            flex-direction: column;
            align-items: flex-start;
            gap: 9px;
            padding: 13px 14px 14px;
            min-width: 0;
        }

        .latest-visual-card .latest-card-store-name {
            color: #515866;
            font-size: 11px;
            line-height: 1.3;
            font-weight: 700;
            letter-spacing: .35px;
            text-transform: uppercase;
            text-decoration: none;
        }

        .latest-visual-card .coupon-title {
            display: -webkit-box;
            width: 100%;
            min-height: 3.9em;
            margin: 0;
            overflow: hidden;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
            line-clamp: 3;
            font-size: 14px;
            line-height: 1.4;
            overflow-wrap: anywhere;
        }

        .latest-visual-card .coupon-meta {
            margin: 2px 0 8px;
            color: #929baa;
            font-size: 11px;
            line-height: 1.35;
        }

        .latest-visual-card .coupon-button {
            width: 100%;
            margin-top: auto;
            cursor: pointer;
        }

        @media (max-width: 1100px) and (min-width: 761px) {
            .latest-offers-section .coupons-grid.latest-compact-grid,
            .featured-offers-section .coupons-grid.latest-compact-grid {
                grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
            }
        }

        @media (max-width: 760px) {
            .latest-offers-section .coupons-grid.latest-compact-grid,
            .featured-offers-section .coupons-grid.latest-compact-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 12px;
            }

            .latest-visual-card .latest-card-visual {
                height: 125px;
                min-height: 125px;
                padding: 22px 10px 15px;
            }

            .latest-visual-card .latest-card-logo img {
                max-width: 92%;
                max-height: 76px;
            }

            .latest-visual-card .latest-card-content {
                padding: 11px;
            }

            .latest-visual-card .coupon-title {
                font-size: 13px;
            }
        }


/* =========================================================
   HOMEPAGE SEO CONTENT
   ========================================================= */

.homepage-seo-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin: 0 0 1px;
    padding: 38px 42px;
    background:
        radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.09), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #fffaf5 100%);
    border: 1px solid #f1dfd0;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.035);
}

.homepage-seo-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #fb923c, #f97316);
}

.homepage-seo-content {
    position: relative;
    max-width: 940px;
    margin: 0 auto;
}

.homepage-seo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 11px;
    color: #ea580c;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.homepage-seo-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f97316;
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.homepage-seo-content h2 {
    max-width: 820px;
    margin: 0 0 14px;
    color: #111827;
    font-size: 27px;
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.homepage-seo-content h3 {
    position: relative;
    margin: 23px 0 8px;
    padding-left: 14px;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 750;
}

.homepage-seo-content h3::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 3px;
    border-radius: 3px;
    background: #fb923c;
}

.homepage-seo-content p {
    margin: 0 0 13px;
    color: #5f6876;
    font-size: 14px;
    line-height: 1.8;
}

.homepage-seo-content strong {
    color: #374151;
    font-weight: 750;
}

.homepage-seo-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
    padding-top: 19px;
    border-top: 1px solid #f0e6dd;
}

.homepage-seo-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 38px;
    padding: 8px 13px;
    background: #ffffff;
    border: 1px solid #f3d4bd;
    border-radius: 7px;
    color: #c2410c;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 750;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.homepage-seo-links a span {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.homepage-seo-links a:hover {
    background: #fff1e6;
    border-color: #fb923c;
    color: #9a3412;
    text-decoration: none;
    transform: translateY(-1px);
}

.homepage-seo-links a:hover span {
    transform: translateX(3px);
}

@media (max-width: 600px) {
    .homepage-seo-section {
        margin-bottom: 24px;
        padding: 27px 21px;
        border-radius: 12px;
    }

    .homepage-seo-content h2 {
        font-size: 21px;
        line-height: 1.32;
    }

    .homepage-seo-content h3 {
        margin-top: 20px;
        font-size: 15px;
    }

    .homepage-seo-content p {
        font-size: 13px;
        line-height: 1.75;
    }

    .homepage-seo-links {
        gap: 8px;
    }

    .homepage-seo-links a {
        min-height: 36px;
        padding: 8px 10px;
        font-size: 11px;
    }
}


/* =========================================================
   FEATURED / LATEST OFFER CARDS - COMPACT SQUARE-STYLE REFINEMENT
   Keeps the original navy corner FEATURED ribbon unchanged.
   ========================================================= */

.latest-offers-section .coupons-grid.latest-compact-grid,
.featured-offers-section .coupons-grid.latest-compact-grid {
    align-items: stretch;
    gap: 16px;
}

.latest-offers-section .latest-visual-card,
.featured-offers-section .latest-visual-card {
    min-height: 0;
    border-radius: 13px;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.025);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.latest-offers-section .latest-visual-card:hover,
.featured-offers-section .latest-visual-card:hover {
    transform: translateY(-3px);
    border-color: #fdba74;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
}

/* Compact logo area; original corner ribbon is intentionally retained. */
.latest-visual-card .latest-card-visual {
    height: 132px;
    min-height: 132px;
    padding: 23px 14px 13px;
}

.latest-visual-card .latest-card-type {
    /* Original navy corner-style FEATURED tag */
    top: 0;
    left: 0;
    padding: 7px 15px 7px 12px;
    border-radius: 0 0 14px 0;
    background: #08234b;
    color: #ffffff;
}

/* Keep the discount badge separate and compact. */
.latest-visual-card .latest-card-discount {
    top: 5px;
    right: 5px;
    padding: 7px 11px;
    font-size: 11px;
}

/* Use the available card space more evenly. */
.latest-visual-card .latest-card-content {
    gap: 7px;
    padding: 12px 13px 13px;
}

.latest-visual-card .latest-card-store-name {
    font-size: 10px;
}

.latest-visual-card .coupon-title {
    min-height: 3.9em;
    font-size: 13px;
    line-height: 1.4;
}

.latest-visual-card .coupon-meta {
    margin: 0 0 7px;
    font-size: 10px;
}

.latest-visual-card .coupon-button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
}

@media (max-width: 1100px) and (min-width: 761px) {
    .latest-visual-card .latest-card-visual {
        height: 125px;
        min-height: 125px;
    }
}

@media (max-width: 760px) {
    .latest-offers-section .coupons-grid.latest-compact-grid,
    .featured-offers-section .coupons-grid.latest-compact-grid {
        gap: 12px;
    }

    .latest-visual-card .latest-card-visual {
        height: 112px;
        min-height: 112px;
        padding: 22px 9px 12px;
    }

    .latest-visual-card .latest-card-logo img {
        max-height: 68px;
    }

    .latest-visual-card .latest-card-content {
        padding: 10px;
    }

    .latest-visual-card .coupon-title {
        font-size: 12px;
    }
}



/* =========================================================
   HOMEPAGE OFFER CARDS - COMPACT, SQUARE-STYLE LAYOUT
   Final override: preserves the existing navy FEATURED ribbon.
   ========================================================= */

.featured-offers-section .coupons-grid.latest-compact-grid,
.latest-offers-section .coupons-grid.latest-compact-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch;
    gap: 14px;
}

.featured-offers-section .featured-coupon-card.latest-visual-card,
.latest-offers-section .latest-coupon-card.latest-visual-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0 !important;
    height: auto;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #e1e5eb;
    border-radius: 12px;
    background: #fff;
}

/* Reduce the logo panel substantially. */
.featured-offers-section .latest-card-visual,
.latest-offers-section .latest-card-visual {
    position: relative;
    flex: 0 0 100px;
    height: 100px !important;
    min-height: 100px !important;
    margin: 0;
    padding: 20px 12px 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-bottom: 1px solid #edf0f3;
}

/* Keep the original navy corner ribbon. */
.featured-offers-section .latest-card-type,
.latest-offers-section .latest-card-type {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 7px 15px 7px 12px;
    border-radius: 0 0 14px 0;
    background: #08234b;
    color: #fff;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .35px;
}

/* Store logo */
.featured-offers-section .latest-card-logo,
.latest-offers-section .latest-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.featured-offers-section .latest-card-logo img,
.latest-offers-section .latest-card-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 88%;
    max-height: 68px;
    object-fit: contain;
}

/* Discount badge */
.featured-offers-section .latest-card-discount,
.latest-offers-section .latest-card-discount {
    position: absolute;
    top: 5px;
    right: 5px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    border: 1px solid #ff6b1a;
    border-radius: 20px;
    background: #fff3eb;
    color: #f15a24;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
}

/* Compact content area */
.featured-offers-section .latest-card-content,
.latest-offers-section .latest-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    gap: 5px;
    padding: 10px 11px 11px;
}

.featured-offers-section .latest-card-store-name,
.latest-offers-section .latest-card-store-name {
    margin: 0;
    color: #515866;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.featured-offers-section .latest-visual-card .coupon-title,
.latest-offers-section .latest-visual-card .coupon-title {
    display: -webkit-box;
    width: 100%;
    min-height: 0 !important;
    max-height: 3.9em;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    font-size: 12px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.featured-offers-section .latest-visual-card .coupon-meta,
.latest-offers-section .latest-visual-card .coupon-meta {
    margin: 0;
    padding: 0;
    min-height: 0;
    color: #929baa;
    font-size: 10px;
    line-height: 1.3;
}

.featured-offers-section .latest-visual-card .coupon-button,
.latest-offers-section .latest-visual-card .coupon-button {
    width: 100%;
    min-height: 35px;
    margin-top: auto;
    padding: 7px 8px;
    font-size: 11px;
    line-height: 1.2;
}

/* Tablet */
@media (max-width: 1100px) and (min-width: 761px) {
    .featured-offers-section .coupons-grid.latest-compact-grid,
    .latest-offers-section .coupons-grid.latest-compact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .featured-offers-section .coupons-grid.latest-compact-grid,
    .latest-offers-section .coupons-grid.latest-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 12px;
    }

    .featured-offers-section .latest-card-visual,
    .latest-offers-section .latest-card-visual {
        flex-basis: 94px;
        height: 94px !important;
        min-height: 94px !important;
        padding: 20px 8px 8px;
    }

    .featured-offers-section .latest-card-logo img,
    .latest-offers-section .latest-card-logo img {
        max-height: 62px;
    }

    .featured-offers-section .latest-card-content,
    .latest-offers-section .latest-card-content {
        padding: 9px;
    }

    .featured-offers-section .latest-visual-card .coupon-title,
    .latest-offers-section .latest-visual-card .coupon-title {
        font-size: 11px;
    }

    .featured-offers-section .latest-visual-card .coupon-button,
    .latest-offers-section .latest-visual-card .coupon-button {
        min-height: 34px;
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .featured-offers-section .coupons-grid.latest-compact-grid,
    .latest-offers-section .coupons-grid.latest-compact-grid {
        gap: 9px;
    }

    .featured-offers-section .latest-card-content,
    .latest-offers-section .latest-card-content {
        padding: 8px;
    }

    .featured-offers-section .latest-card-discount,
    .latest-offers-section .latest-card-discount {
        padding: 5px 7px;
        font-size: 9px;
    }
}


/* =========================================================
   HOMEPAGE - AUTOMATIC HOLIDAY CAMPAIGN BANNER
   ========================================================= */

.home-holiday-campaign {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: stretch;
    gap: 0;
    min-width: 0;
    margin: -20px 0 52px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    box-shadow: 0 7px 22px rgba(17, 24, 39, 0.045);
}

.home-holiday-campaign.no-image {
    display: block;
}

.home-holiday-campaign-image {
    min-width: 0;
    min-height: 220px;
    overflow: hidden;
    background: #fff7ed;
}

.home-holiday-campaign-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 270px;
    object-fit: cover;
}

.home-holiday-campaign-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    padding: 28px 34px;
    background:
        radial-gradient(circle at 100% 0%, rgba(249, 115, 22, 0.08), transparent 42%),
        #fffaf5;
}

.home-holiday-campaign.no-image .home-holiday-campaign-content {
    min-height: 190px;
    padding: 30px 34px;
}

.home-holiday-campaign-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 9px;
    color: #ea580c;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.home-holiday-campaign-content h2 {
    margin: 0 0 9px;
    color: #111827;
    font-size: 27px;
    line-height: 1.25;
    font-weight: 800;
}

.home-holiday-campaign-content p {
    max-width: 620px;
    margin: 0 0 12px;
    color: #5f6876;
    font-size: 13px;
    line-height: 1.7;
}

.home-holiday-campaign-date {
    display: block;
    margin: 0 0 16px;
    color: #7b8492;
    font-size: 11px;
    line-height: 1.4;
    font-weight: 600;
}

.home-holiday-campaign-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 39px;
    padding: 9px 16px;
    background: #f97316;
    border: 1px solid #f97316;
    border-radius: 7px;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 750;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-holiday-campaign-button span {
    font-size: 16px;
    transition: transform 0.2s ease;
}

.home-holiday-campaign-button:hover {
    background: #ea580c;
    border-color: #ea580c;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.home-holiday-campaign-button:hover span {
    transform: translateX(3px);
}

.home-holiday-campaign-button:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 3px;
}

@media (max-width: 760px) {
    .home-holiday-campaign {
        grid-template-columns: 1fr;
        margin-top: -12px;
        margin-bottom: 42px;
    }

    .home-holiday-campaign-image {
        min-height: 0;
        max-height: 190px;
    }

    .home-holiday-campaign-image img {
        height: 190px;
        min-height: 190px;
        max-height: 190px;
    }

    .home-holiday-campaign-content,
    .home-holiday-campaign.no-image .home-holiday-campaign-content {
        min-height: 0;
        padding: 22px 21px;
    }

    .home-holiday-campaign-content h2 {
        font-size: 23px;
    }
}

@media (max-width: 450px) {
    .home-holiday-campaign-content,
    .home-holiday-campaign.no-image .home-holiday-campaign-content {
        padding: 20px 17px;
    }

    .home-holiday-campaign-content h2 {
        font-size: 21px;
    }

    .home-holiday-campaign-content p {
        font-size: 12px;
    }
}


/* =========================================================
   HOMEPAGE OFFER CARDS - APPROVED FOUR-COLUMN DESIGN
   Applies to Featured Offers, Latest Coupons and Latest Deals.
   ========================================================= */

.featured-offers-section .latest-compact-grid,
.latest-offers-section .latest-compact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.featured-offers-section .latest-visual-card,
.latest-offers-section .latest-visual-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 360px !important;
    height: 100%;
    padding: 0 !important;
    overflow: hidden;
    border: 1px solid #dfe4eb;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .045);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    box-sizing: border-box;
}

.featured-offers-section .latest-visual-card:hover,
.latest-offers-section .latest-visual-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 7px 18px rgba(15, 23, 42, .09);
    transform: translateY(-2px);
}

.featured-offers-section .latest-card-visual,
.latest-offers-section .latest-card-visual {
    position: relative;
    display: flex;
    flex: 0 0 145px;
    align-items: center;
    justify-content: center;
    height: 145px !important;
    min-height: 145px !important;
    margin: 0;
    padding: 27px 14px 12px;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
    box-sizing: border-box;
}

.featured-offers-section .latest-card-type,
.latest-offers-section .latest-card-type {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 7px 16px 7px 12px;
    border-radius: 0 0 15px 0;
    background: #08234b;
    color: #fff;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .25px;
}

.featured-offers-section .latest-card-logo,
.latest-offers-section .latest-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
}

.featured-offers-section .latest-card-logo img,
.latest-offers-section .latest-card-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: 82%;
    max-height: 82px;
    object-fit: contain;
}

.featured-offers-section .latest-card-logo-placeholder,
.latest-offers-section .latest-card-logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #08234b;
    font-size: 30px;
    font-weight: 800;
}

.featured-offers-section .latest-card-discount,
.latest-offers-section .latest-card-discount {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    max-width: calc(100% - 35px);
    padding: 6px 11px;
    border: 1px solid #ff6b1a;
    border-radius: 18px;
    background: #fff;
    color: #e94f0b;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 800;
    text-align: center;
}

.featured-offers-section .latest-card-content,
.latest-offers-section .latest-card-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: 7px;
    padding: 12px 13px 13px;
    box-sizing: border-box;
}

.featured-offers-section .latest-card-store-name,
.latest-offers-section .latest-card-store-name {
    display: block;
    margin: 0;
    color: #596273;
    font-size: 10px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: .35px;
    text-transform: uppercase;
    text-decoration: none;
}

.featured-offers-section .latest-visual-card .coupon-title,
.latest-offers-section .latest-visual-card .coupon-title {
    display: -webkit-box;
    min-height: 42px;
    margin: 0;
    overflow: hidden;
    color: #182235;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.featured-offers-section .latest-visual-card .coupon-meta,
.latest-offers-section .latest-visual-card .coupon-meta {
    margin: 0;
    color: #778194;
    font-size: 10px;
    line-height: 1.35;
}

.featured-offers-section .latest-visual-card .coupon-button,
.latest-offers-section .latest-visual-card .coupon-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 43px;
    margin-top: auto;
    padding: 0 10px;
    overflow: hidden;
    border: 1px solid #ff641b;
    border-radius: 8px;
    background: #fff;
    color: #f05a18;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    cursor: pointer;
    box-sizing: border-box;
    transition: background .2s ease, color .2s ease;
}

.featured-offers-section .latest-visual-card .coupon-button:hover,
.latest-offers-section .latest-visual-card .coupon-button:hover {
    background: #fff7f1;
}

.featured-offers-section .coupon-peel-button,
.latest-offers-section .coupon-peel-button {
    justify-content: flex-start !important;
    padding: 0 0 0 12px !important;
    background: #f45a13 !important;
    color: #fff !important;
    border-color: #f45a13 !important;
}

.featured-offers-section .coupon-peel-button:hover,
.latest-offers-section .coupon-peel-button:hover {
    background: #e94c0b !important;
}

.featured-offers-section .coupon-button-label,
.latest-offers-section .coupon-button-label {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    text-align: center;
    white-space: nowrap;
}

.featured-offers-section .coupon-peel-code,
.latest-offers-section .coupon-peel-code {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    max-width: 42%;
    margin-left: 8px;
    padding: 0 9px;
    border-left: 1px dashed rgba(255,255,255,.85);
    background: rgba(255,255,255,.94);
    color: #9a3412;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.featured-offers-section .coupon-peel-code::before,
.latest-offers-section .coupon-peel-code::before {
    position: absolute;
    top: -1px;
    left: -9px;
    width: 17px;
    height: calc(100% + 2px);
    content: "";
    background: linear-gradient(115deg, transparent 0 42%, #fff 44% 72%, #f1f1f1 74% 100%);
    clip-path: polygon(100% 0, 100% 100%, 0 82%, 48% 50%, 0 18%);
    filter: drop-shadow(-2px 0 2px rgba(0,0,0,.16));
}

.featured-offers-section .deal-action-button,
.latest-offers-section .deal-action-button {
    justify-content: center !important;
    background: #fff !important;
    color: #f05a18 !important;
}

.featured-offers-section .coupon-button-arrow,
.latest-offers-section .coupon-button-arrow {
    margin-left: 7px;
    font-size: 15px;
    line-height: 1;
}

@media (max-width: 1100px) {
    .featured-offers-section .latest-compact-grid,
    .latest-offers-section .latest-compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .featured-offers-section .latest-compact-grid,
    .latest-offers-section .latest-compact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .featured-offers-section .latest-visual-card,
    .latest-offers-section .latest-visual-card {
        min-height: 330px !important;
    }

    .featured-offers-section .latest-card-visual,
    .latest-offers-section .latest-card-visual {
        flex-basis: 120px;
        height: 120px !important;
        min-height: 120px !important;
    }

    .featured-offers-section .latest-card-logo img,
    .latest-offers-section .latest-card-logo img {
        max-height: 70px;
    }

    .featured-offers-section .latest-card-content,
    .latest-offers-section .latest-card-content {
        padding: 10px;
        gap: 6px;
    }

    .featured-offers-section .latest-visual-card .coupon-title,
    .latest-offers-section .latest-visual-card .coupon-title {
        min-height: 38px;
        font-size: 12px;
    }

    .featured-offers-section .latest-visual-card .coupon-button,
    .latest-offers-section .latest-visual-card .coupon-button {
        min-height: 40px;
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .featured-offers-section .latest-compact-grid,
    .latest-offers-section .latest-compact-grid {
        gap: 9px;
    }

    .featured-offers-section .latest-card-discount,
    .latest-offers-section .latest-card-discount {
        top: 7px;
        right: 7px;
        padding: 5px 7px;
        font-size: 9px;
    }

    .featured-offers-section .coupon-peel-code,
    .latest-offers-section .coupon-peel-code {
        max-width: 38%;
        padding: 0 5px;
        font-size: 9px;
    }
}



/* =========================================================
   HOMEPAGE HERO - REDUCED DESKTOP HEIGHT
   Keeps the existing search and hero content unchanged.
   ========================================================= */

@media (min-width: 751px) {
    .hero {
        margin-bottom: 42px;
        padding: 40px 30px;
    }

    .hero h1 {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 11px;
    }

    .hero p {
        margin-bottom: 19px;
        line-height: 1.55;
    }

    .hero-label {
        margin-bottom: 10px;
    }

    .hero-links {
        margin-top: 16px;
    }
}


/* =========================================================
   HOMEPAGE FLOATING TOP / BOTTOM SCROLL BUTTONS
   ========================================================= */

.homepage-scroll-controls {
    position: fixed;
    right: 22px;
    bottom: 24px;
    z-index: 950;
    display: flex;
    flex-direction: column;
    gap: 9px;
    pointer-events: none;
}

.homepage-scroll-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid #334155;
    border-radius: 50%;
    background: #0b1729;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.22);
    font-size: 24px;
    line-height: 1;
    font-weight: 700;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(7px);
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease,
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.homepage-scroll-button.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.homepage-scroll-button:hover {
    background: #f97316;
    color: #ffffff;
}

.homepage-scroll-button:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 3px;
}

@media (max-width: 750px) {
    .homepage-scroll-controls {
        right: 14px;
        bottom: 18px;
        gap: 8px;
    }

    .homepage-scroll-button {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .homepage-scroll-button {
        transition: none;
    }
}



/* =========================================================
   HOMEPAGE - VIEW ALL NAVIGATION BUTTONS
   Consistent compact button styling for section navigators.
   ========================================================= */

.section-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 14px;
    background: #0b1729;
    border: 1px solid #334155;
    border-radius: 7px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.10);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.section-view-all:hover,
.section-view-all:focus {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.18);
}

.section-view-all:focus-visible {
    outline: 2px solid #f97316;
    outline-offset: 3px;
}

@media (max-width: 600px) {
    .section-view-all {
        min-height: 36px;
        padding: 8px 12px;
        font-size: 12px;
    }
}
