/**
 * ============================================================================
 * Kasi Mattress
 * Mattress Buying Guide
 * File: assets/css/pages/buying-guide.css
 * Version: 2.0.0
 * ============================================================================
 */


/* ==========================================================================
   PAGE
========================================================================== */

.km-buying-guide-page {
    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #f7f9fc 0%,
            #eef2f7 100%
        );
}


/* ==========================================================================
   HERO
========================================================================== */

.km-buying-guide-page .km-page-hero {
    padding: 72px 0 68px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #0f4c81 0%,
            #123f68 100%
        );

    border-bottom: 3px solid #f4a300;
}

.km-buying-guide-page .km-page-hero .km-container {
    text-align: center;
}

.km-buying-guide-page .km-page-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;
    padding: 7px 14px;

    background: rgba(244, 163, 0, 0.12);

    border: 1px solid rgba(244, 163, 0, 0.55);
    border-radius: 999px;

    color: #f4a300;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.km-buying-guide-page .km-page-hero h1 {
    margin: 0 auto 14px;

    color: #ffffff;

    font-family: "Poppins", sans-serif;
    font-size: clamp(34px, 5vw, 50px);
    font-weight: 700;
    line-height: 1.12;
}

.km-buying-guide-page .km-page-hero p {
    max-width: 760px;

    margin: 0 auto;

    color: rgba(255, 255, 255, 0.86);

    font-size: 16px;
    line-height: 1.75;
}


/* ==========================================================================
   CONTENT
========================================================================== */

.km-buying-guide-page .km-page-content {
    padding: 64px 0 90px;
}


/* ==========================================================================
   INTRO
========================================================================== */

.km-guide-intro {
    max-width: 800px;

    margin: 0 auto 42px;

    text-align: center;
}

.km-section-label {
    display: inline-block;

    margin-bottom: 10px;

    color: #f4a300;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.km-guide-intro h2 {
    margin: 0 0 12px;

    color: #0f4c81;

    font-family: "Poppins", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
}

.km-guide-intro p {
    max-width: 720px;

    margin: 0 auto;

    color: #666666;

    font-size: 15px;
    line-height: 1.8;
}


/* ==========================================================================
   BUYING GUIDE GRID
========================================================================== */

.km-guide-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;

    margin-top: 36px;
}


/* ==========================================================================
   GUIDE CARD
========================================================================== */

.km-guide-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-height: 100%;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #dfe6ee;
    border-top: 3px solid #f4a300;

    border-radius: 14px;

    box-shadow:
        0 8px 24px rgba(15, 76, 129, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.km-guide-card:hover {
    transform: translateY(-5px);

    border-color: #f4a300;

    box-shadow:
        0 16px 38px rgba(15, 76, 129, 0.12);
}


/* ==========================================================================
   GUIDE ICON
========================================================================== */

.km-guide-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    margin-bottom: 18px;

    background:
        linear-gradient(
            135deg,
            #0f4c81,
            #123f68
        );

    border-radius: 12px;

    color: #f4a300;

    font-size: 18px;

    box-shadow:
        0 6px 16px rgba(15, 76, 129, 0.12);
}


/* ==========================================================================
   GUIDE NUMBER
========================================================================== */

.km-guide-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: fit-content;

    margin-bottom: 10px;

    color: #f4a300;

    font-family: "Poppins", sans-serif;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.1em;
}


/* ==========================================================================
   GUIDE HEADING
========================================================================== */

.km-guide-card h3 {
    margin: 0 0 11px;

    color: #0f4c81;

    font-family: "Poppins", sans-serif;

    font-size: 20px;
    font-weight: 600;

    line-height: 1.35;
}


/* ==========================================================================
   GUIDE TEXT
========================================================================== */

.km-guide-card > p {
    margin: 0;

    color: #666666;

    font-size: 14px;
    line-height: 1.75;
}


/* ==========================================================================
   GUIDE LIST
========================================================================== */

.km-guide-card ul {
    margin: 20px 0 0;
    padding: 0;

    list-style: none;
}

.km-guide-card li {
    position: relative;

    padding: 9px 0 9px 23px;

    border-top: 1px solid #edf0f4;

    color: #444444;

    font-size: 13px;
    line-height: 1.5;
}

.km-guide-card li:first-child {
    border-top: 0;
}

.km-guide-card li::before {
    content: "\f00c";

    position: absolute;
    left: 0;
    top: 10px;

    color: #f4a300;

    font-family: "Font Awesome 6 Free";
    font-size: 10px;
    font-weight: 900;
}


/* ==========================================================================
   MATTRESS TYPES SECTION
========================================================================== */

.km-guide-section {
    margin-top: 76px;
}

.km-guide-section-heading {
    max-width: 760px;

    margin: 0 auto 34px;

    text-align: center;
}

.km-guide-section-heading h2 {
    margin: 0 0 12px;

    color: #0f4c81;

    font-family: "Poppins", sans-serif;

    font-size: 30px;
    font-weight: 700;

    line-height: 1.3;
}

.km-guide-section-heading p {
    margin: 0;

    color: #666666;

    font-size: 15px;
    line-height: 1.75;
}


/* ==========================================================================
   TYPE GRID
========================================================================== */

.km-type-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* ==========================================================================
   TYPE CARD
========================================================================== */

.km-type-card {
    position: relative;

    display: flex;
    flex-direction: column;

    padding: 28px;

    background: #ffffff;

    border: 1px solid #dfe6ee;
    border-top: 3px solid #f4a300;

    border-radius: 14px;

    box-shadow:
        0 8px 24px rgba(15, 76, 129, 0.06);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.km-type-card:hover {
    transform: translateY(-5px);

    border-color: #f4a300;

    box-shadow:
        0 16px 36px rgba(15, 76, 129, 0.11);
}


/* ==========================================================================
   TYPE ICON
========================================================================== */

.km-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin-bottom: 18px;

    background: #0f4c81;

    border-radius: 11px;

    color: #f4a300;

    font-size: 18px;
}


/* ==========================================================================
   TYPE CONTENT
========================================================================== */

.km-type-card h3 {
    margin: 0 0 10px;

    color: #0f4c81;

    font-family: "Poppins", sans-serif;

    font-size: 20px;
    font-weight: 600;
}

.km-type-card p {
    margin: 0 0 22px;

    color: #666666;

    font-size: 14px;
    line-height: 1.75;
}

.km-type-card a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: auto;

    color: #0f4c81;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}

.km-type-card a i {
    color: #f4a300;

    transition: transform 0.2s ease;
}

.km-type-card a:hover {
    color: #f4a300;
}

.km-type-card a:hover i {
    transform: translateX(4px);
}


/* ==========================================================================
   CHECKLIST
========================================================================== */

.km-guide-checklist {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.8fr)
        minmax(0, 1.2fr);

    gap: 42px;

    margin-top: 76px;

    padding: 36px;

    background: #ffffff;

    border: 1px solid #dfe6ee;
    border-left: 4px solid #f4a300;

    border-radius: 16px;

    box-shadow:
        0 10px 28px rgba(15, 76, 129, 0.07);
}

.km-guide-checklist-content h2 {
    margin: 0 0 10px;

    color: #0f4c81;

    font-family: "Poppins", sans-serif;

    font-size: 27px;
    font-weight: 700;
}

.km-guide-checklist-content p {
    margin: 0;

    color: #666666;

    font-size: 14px;
    line-height: 1.75;
}


/* ==========================================================================
   CHECKLIST ITEMS
========================================================================== */

.km-checklist {
    display: flex;
    flex-direction: column;
}

.km-check-item {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 13px 0;

    border-bottom: 1px solid #edf0f4;

    color: #444444;

    font-size: 14px;
    line-height: 1.5;
}

.km-check-item:first-child {
    padding-top: 0;
}

.km-check-item:last-child {
    padding-bottom: 0;

    border-bottom: 0;
}

.km-check-item i {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 28px;

    width: 28px;
    height: 28px;

    background: rgba(244, 163, 0, 0.12);

    border-radius: 50%;

    color: #f4a300;

    font-size: 11px;
}


/* ==========================================================================
   CTA
========================================================================== */

.km-guide-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 36px;

    margin-top: 64px;

    padding: 40px;

    background:
        linear-gradient(
            135deg,
            #0f4c81 0%,
            #123f68 100%
        );

    border-radius: 16px;

    border: 1px solid rgba(244, 163, 0, 0.35);

    box-shadow:
        0 14px 34px rgba(15, 76, 129, 0.14);
}

.km-guide-cta .km-section-label {
    margin-bottom: 8px;
}

.km-guide-cta h2 {
    max-width: 650px;

    margin: 0 0 10px;

    color: #ffffff;

    font-family: "Poppins", sans-serif;

    font-size: 27px;
    font-weight: 700;

    line-height: 1.3;
}

.km-guide-cta p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.84);

    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================================================
   CTA ACTIONS
========================================================================== */

.km-guide-cta-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    flex-shrink: 0;
}

.km-guide-cta-actions .km-btn {
    min-height: 46px;

    padding: 0 20px;

    border-radius: 9px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.km-guide-cta-actions .km-btn-primary {
    background: #f4a300;

    border: 1px solid #f4a300;

    color: #ffffff;
}

.km-guide-cta-actions .km-btn-primary:hover {
    background: #d99100;

    border-color: #d99100;

    box-shadow:
        0 8px 18px rgba(244, 163, 0, 0.25);
}

.km-guide-cta-actions .km-btn-secondary {
    background: transparent;

    border: 1px solid rgba(255, 255, 255, 0.55);

    color: #ffffff;
}

.km-guide-cta-actions .km-btn-secondary:hover {
    background: #ffffff;

    border-color: #ffffff;

    color: #0f4c81;
}


/* ==========================================================================
   TABLET
========================================================================== */

@media (max-width: 1024px) {

    .km-buying-guide-page .km-page-hero {
        padding: 60px 0;
    }

    .km-buying-guide-page .km-page-content {
        padding: 54px 0 70px;
    }

    .km-guide-grid,
    .km-type-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .km-guide-checklist {
        grid-template-columns: 1fr;

        gap: 28px;
    }

    .km-guide-cta {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* ==========================================================================
   MOBILE
========================================================================== */

@media (max-width: 767px) {

    .km-buying-guide-page .km-page-hero {
        padding: 48px 0 44px;
    }

    .km-buying-guide-page .km-page-hero h1 {
        font-size: 34px;
    }

    .km-buying-guide-page .km-page-hero p {
        font-size: 14px;
    }

    .km-buying-guide-page .km-page-content {
        padding: 42px 0 60px;
    }

    .km-guide-intro {
        margin-bottom: 32px;
    }

    .km-guide-intro h2,
    .km-guide-section-heading h2 {
        font-size: 24px;
    }

    .km-guide-intro p,
    .km-guide-section-heading p {
        font-size: 14px;
    }

    .km-guide-grid,
    .km-type-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }

    .km-guide-card,
    .km-type-card {
        padding: 24px;
    }

    .km-guide-card h3,
    .km-type-card h3 {
        font-size: 18px;
    }

    .km-guide-section {
        margin-top: 54px;
    }

    .km-guide-checklist {
        margin-top: 54px;

        padding: 26px 22px;

        gap: 24px;
    }

    .km-guide-checklist-content h2 {
        font-size: 23px;
    }

    .km-guide-cta {
        margin-top: 48px;

        padding: 30px 22px;

        gap: 26px;
    }

    .km-guide-cta h2 {
        font-size: 23px;
    }

    .km-guide-cta-actions {
        width: 100%;

        flex-direction: column;
    }

    .km-guide-cta-actions .km-btn {
        width: 100%;
    }

}