/* =========================================================
   GLOBAL FAMILY - ATTRACTIVE GRADIENT HERO SEARCH
========================================================= */

.gf-hero {
    width: 100%;
    margin: 0;
    padding: 38px 20px 30px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f7f7f7 48%,
            #ededed 100%
        ) !important;

    border: 0 !important;
    box-shadow: none !important;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative gradient glow */
.gf-hero::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    top: -230px;
    left: -120px;

    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.06),
        rgba(255, 255, 255, 0)
    );

    border-radius: 50%;
    pointer-events: none;
}

.gf-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -170px;
    bottom: -300px;

    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.05),
        rgba(255, 255, 255, 0)
    );

    border-radius: 50%;
    pointer-events: none;
}


/* =========================================================
   CONTAINER
========================================================= */

.gf-hero-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0;

    position: relative;
    z-index: 2;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.gf-hero-content {
    width: 100%;
    text-align: center;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* =========================================================
   HEADING
========================================================= */

.gf-hero h1 {
    max-width: 900px;

    margin: 0 auto;
    padding: 0;

    font-size: 34px;
    line-height: 1.22;
    font-weight: 750;
    letter-spacing: -0.7px;

    /* Gradient text */
    background: linear-gradient(
        90deg,
        #111111 0%,
        #333333 50%,
        #111111 100%
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #111;
}

/* Prevent old theme line */
.gf-hero h1::before,
.gf-hero h1::after {
    display: none !important;
}


/* =========================================================
   DESCRIPTION
========================================================= */

.gf-hero-description {
    max-width: 760px;

    margin: 10px auto 24px;
    padding: 0;

    color: #666;

    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}


/* =========================================================
   SEARCH CONTAINER
========================================================= */

.gf-search-container {
    width: 100% !important;
    max-width: 1000px !important;

    margin: 0 auto !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    position: relative;
    z-index: 3;
}


/* =========================================================
   SEARCH FORM
========================================================= */

.gf-main-search {
    width: 100%;

    display: flex;
    align-items: stretch;

    gap: 9px;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* =========================================================
   FORM GROUP
========================================================= */

.gf-main-search .form-groupe {
    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.gf-main-search .gf-category-group:first-child {
    flex: 1 1 auto;
    min-width: 0;
}


/* =========================================================
   KEYWORD INPUT
========================================================= */

.gf-main-search .gf-category-group:first-child input {
    width: 100% !important;
    height: 54px;

    margin: 0 !important;
    padding: 0 17px !important;

    background: rgba(255, 255, 255, 0.96) !important;
    color: #222 !important;

    border: 1px solid #c7c7c7 !important;
    border-radius: 8px !important;

    outline: none !important;
    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.05) !important;

    font-size: 14px;
    transition: all 0.2s ease;
}

.gf-main-search
.gf-category-group:first-child
input::placeholder {
    color: #888;
}

.gf-main-search
.gf-category-group:first-child
input:focus {
    border-color: #555 !important;

    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08) !important;
}


/* =========================================================
   CATEGORY
========================================================= */

.gf-main-search .gf-category-group:nth-child(2) {
    flex: 0 0 235px;
}

.gf-category-select {
    width: 100% !important;
    height: 54px !important;

    margin: 0 !important;
    padding: 0 35px 0 15px !important;

    background: rgba(255, 255, 255, 0.96) !important;
    color: #333 !important;

    border: 1px solid #c7c7c7 !important;
    border-radius: 8px !important;

    outline: none !important;
    box-shadow:
        0 3px 12px rgba(0, 0, 0, 0.05) !important;

    font-size: 14px !important;
    font-weight: 400 !important;

    cursor: pointer;
    transition: all 0.2s ease;
}

.gf-category-select:hover,
.gf-category-select:focus {
    border-color: #555 !important;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.08) !important;
}


/* =========================================================
   SEARCH BUTTON
========================================================= */

.gf-button-group {
    flex: 0 0 130px;
}

.gf-main-search-button {
    width: 100% !important;
    height: 54px !important;

    margin: 0 !important;
    padding: 0 20px !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    gap: 8px;

    background: linear-gradient(
        135deg,
        #111111 0%,
        #333333 50%,
        #111111 100%
    ) !important;

    color: #fff !important;

    border: 0 !important;
    border-radius: 8px !important;

    outline: none !important;

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.16) !important;

    font-size: 14px !important;
    font-weight: 600 !important;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.gf-main-search-button:hover {
    background: linear-gradient(
        135deg,
        #000000 0%,
        #222222 50%,
        #000000 100%
    ) !important;

    transform: translateY(-1px);

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.20) !important;
}

.gf-main-search-button:active {
    transform: translateY(0);
}

.gf-main-search-button svg {
    width: 17px;
    height: 17px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =========================================================
   POPULAR LINKS
========================================================= */

.gf-popular {
    margin: 15px 0 0;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    color: #777;

    font-size: 12px;
    line-height: 1.7;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.gf-popular-label {
    margin-right: 6px;

    color: #222;
    font-weight: 700;
}

.gf-popular a {
    color: #555;

    text-decoration: none;

    padding: 0 7px;

    font-size: 12px;
    font-weight: 500;

    transition: color 0.2s ease;
}

.gf-popular a:hover {
    color: #000;
    text-decoration: underline;
}

.gf-popular > span:not(.gf-popular-label) {
    color: #aaa;
}


/* =========================================================
   REMOVE OLD THEME STYLES
========================================================= */

.gf-hero .containerr,
.gf-hero .form-row,
.gf-hero form,
.gf-hero .form-groupe {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.gf-hero hr,
.gf-hero .topic-border,
.gf-hero .title-border,
.gf-hero .border-bottom {
    display: none !important;
}


/* =========================================================
   TABLET
========================================================= */

/* =========================================================
   GLOBAL FAMILY - MOBILE HERO COMPLETE OVERRIDE
========================================================= */

@media (max-width: 650px) {
    
    

    /* Reduce first content section gap after hero */
    .gf-hero + section,
    .gf-hero + div {
        margin-top: 0 !important;
        padding-top: 5px !important;
    }

    /* Prevent Bootstrap/theme spacing from creating the gap */
    .gf-hero + section .section-space-top,
    .gf-hero + section .section-space,
    .gf-hero + div .section-space-top,
    .gf-hero + div .section-space {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }


    /* HERO */
    .gf-hero {
        width: 100%;
        padding: 12px 12px 10px !important;
        min-height: 0 !important;
        height: auto !important;
        background: linear-gradient(
            160deg,
            #ffffff 0%,
            #f5f5f5 55%,
            #e9e9e9 100%
        ) !important;

        border: 0 !important;
        box-shadow: none !important;
    }

    .gf-hero-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto !important;
    }

    .gf-hero-content {
        width: 100% !important;
        padding: 0 !important;
        text-align: center;
    }


    /* =====================================================
       MOBILE HEADING
    ===================================================== */

    .gf-hero h1 {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 auto !important;
        padding: 0 !important;

        font-size: 25px !important;
        line-height: 1.25 !important;

        letter-spacing: -0.3px !important;
        font-weight: 750 !important;

        background: linear-gradient(
            90deg,
            #111111,
            #444444,
            #111111
        );

        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }


    /* =====================================================
       MOBILE DESCRIPTION
    ===================================================== */

    .gf-hero-description {
        width: 100% !important;
        max-width: 500px !important;

        margin: 9px auto 18px !important;
        padding: 0 !important;

        color: #666 !important;

        font-size: 13px !important;
        line-height: 1.55 !important;
        text-align: center;
    }


    /* =====================================================
       SEARCH CONTAINER
    ===================================================== */

    .gf-search-container {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }


    /* =====================================================
       SEARCH FORM
    ===================================================== */

    .gf-main-search {
        width: 100% !important;

        display: flex !important;
        flex-direction: column !important;

        align-items: stretch !important;

        gap: 9px !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }


    /* =====================================================
       ALL 3 FORM GROUPS
    ===================================================== */

    .gf-main-search .form-groupe {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        flex: none !important;

        margin: 0 !important;
        padding: 0 !important;

        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }


    /* =====================================================
       KEYWORD FIELD
    ===================================================== */

    .gf-main-search .gf-keyword-group,
    .gf-main-search .gf-category-group:first-child {
        width: 100% !important;
        flex: none !important;
    }

    .gf-main-search .gf-keyword-group input,
    .gf-main-search .gf-category-group:first-child input {

        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        height: 49px !important;

        margin: 0 !important;
        padding: 0 14px !important;

        box-sizing: border-box !important;

        background: #fff !important;
        color: #222 !important;

        border: 1px solid #c7c7c7 !important;
        border-radius: 7px !important;

        outline: none !important;

        box-shadow:
            0 3px 10px rgba(0, 0, 0, 0.05) !important;

        font-size: 14px !important;
    }

    .gf-main-search
    .gf-keyword-group
    input::placeholder,
    .gf-main-search
    .gf-category-group:first-child
    input::placeholder {

        color: #888 !important;
        opacity: 1 !important;
    }


    /* =====================================================
       CATEGORY SELECT
    ===================================================== */

    .gf-main-search .gf-category-select {

        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        height: 49px !important;

        margin: 0 !important;

        padding: 0 35px 0 14px !important;

        box-sizing: border-box !important;

        background: #fff !important;
        color: #333 !important;

        border: 1px solid #c7c7c7 !important;
        border-radius: 7px !important;

        outline: none !important;

        box-shadow:
            0 3px 10px rgba(0, 0, 0, 0.05) !important;

        font-size: 14px !important;
    }


    /* =====================================================
       SEARCH BUTTON
    ===================================================== */

    .gf-main-search .gf-button-group {

        width: 100% !important;
        max-width: 100% !important;

        flex: none !important;
    }

    .gf-main-search .gf-main-search-button {

        display: flex !important;

        width: 100% !important;
        max-width: 100% !important;

        height: 49px !important;

        margin: 0 !important;
        padding: 0 18px !important;

        box-sizing: border-box !important;

        align-items: center !important;
        justify-content: center !important;

        gap: 8px !important;

        background: linear-gradient(
            135deg,
            #111111 0%,
            #333333 50%,
            #111111 100%
        ) !important;

        color: #fff !important;

        border: 0 !important;
        border-radius: 7px !important;

        box-shadow:
            0 5px 14px rgba(0, 0, 0, 0.16) !important;

        font-size: 14px !important;
        font-weight: 600 !important;
    }

    .gf-main-search .gf-main-search-button svg {
        width: 17px !important;
        height: 17px !important;

        flex: 0 0 17px;
    }


    /* =====================================================
       POPULAR
    ===================================================== */

    .gf-popular {

        width: 100% !important;

        margin: 13px auto 0 !important;
        padding: 0 !important;

        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        flex-wrap: wrap !important;

        gap: 0 !important;

        color: #777 !important;

        font-size: 11.5px !important;
        line-height: 1.8 !important;

        text-align: center;

        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
    }

    .gf-popular-label {
        margin-right: 3px !important;

        color: #222 !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
    }

    .gf-popular a {
        padding: 0 5px !important;

        color: #555 !important;

        font-size: 11.5px !important;
        font-weight: 500 !important;

        white-space: nowrap;
    }

    .gf-popular > span:not(.gf-popular-label) {
        color: #aaa !important;
        padding: 0 !important;
    }
}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 400px) {

    .gf-hero {
        padding: 22px 10px 18px !important;
    }

    .gf-hero h1 {
        font-size: 22px !important;
        line-height: 1.28 !important;
    }

    .gf-hero-description {
        margin-top: 8px !important;
        margin-bottom: 17px !important;

        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    .gf-main-search {
        gap: 8px !important;
    }

    .gf-main-search .gf-keyword-group input,
    .gf-main-search .gf-category-group:first-child input,
    .gf-main-search .gf-category-select,
    .gf-main-search .gf-main-search-button {
        height: 47px !important;
    }

    .gf-main-search .gf-keyword-group input,
    .gf-main-search .gf-category-group:first-child input {
        font-size: 13px !important;
    }

    .gf-main-search .gf-category-select {
        font-size: 13px !important;
    }

    .gf-main-search .gf-main-search-button {
        font-size: 13px !important;
    }

    .gf-popular {
        margin-top: 11px !important;
        font-size: 10.5px !important;
    }

    .gf-popular-label,
    .gf-popular a {
        font-size: 10.5px !important;
    }

    .gf-popular a {
        padding: 0 4px !important;
    }
}


/* =========================================================
   EXTRA SMALL PHONES
========================================================= */

@media (max-width: 350px) {

    .gf-hero {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .gf-hero h1 {
        font-size: 20px !important;
    }

    .gf-hero-description {
        font-size: 11.5px !important;
    }

    .gf-main-search .gf-keyword-group input,
    .gf-main-search .gf-category-select,
    .gf-main-search .gf-main-search-button {
        height: 45px !important;
    }

    .gf-popular a {
        padding: 0 3px !important;
    }
}


