/* =========================================================
   HIGH5 TOP AGENTS PREVIEW
   Elegant Dark + Gold Theme
   ========================================================= */


/* ---------------------------------------------------------
   Main Wrapper
   --------------------------------------------------------- */

.h5tap-wrapper {
    position: relative;

    width: 100%;

    box-sizing: border-box;

    padding: 40px 30px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(212, 175, 55, 0.08),
            transparent 38%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(212, 175, 55, 0.04),
            transparent 30%
        ),
        #0b0b0c;

    color: #ffffff;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */

.h5tap-header {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto 35px;
}


.h5tap-heading {
    margin: 0;

    color: #ffffff;

    font-size: 42px;
    font-weight: 500;

    line-height: 1.1;

    letter-spacing: -1px;
}


/* ---------------------------------------------------------
   Cards
   --------------------------------------------------------- */

.h5tap-cards {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 28px;
}


/* ---------------------------------------------------------
   General Card
   --------------------------------------------------------- */

.h5tap-card {
    position: relative;

    overflow: hidden;

    min-height: 390px;

    padding: 32px 30px;

    box-sizing: border-box;

    border: 1px solid rgba(212, 175, 55, 0.22);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            #181819 0%,
            #101011 55%,
            #0d0d0e 100%
        );

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.45);

    text-align: center;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


.h5tap-card:hover {
    transform: translateY(-5px);

    border-color:
        rgba(212, 175, 55, 0.5);

    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.55),
        0 0 50px rgba(212, 175, 55, 0.05);
}


/* ---------------------------------------------------------
   Gold Glow
   --------------------------------------------------------- */

.h5tap-card-glow {
    position: absolute;

    width: 300px;
    height: 300px;

    top: -180px;
    left: 50%;

    transform: translateX(-50%);

    background:
        radial-gradient(
            circle,
            rgba(212, 175, 55, 0.18),
            transparent 68%
        );

    pointer-events: none;
}


/* ---------------------------------------------------------
   Award Icon
   --------------------------------------------------------- */

.h5tap-award-icon {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    margin: 0 auto 20px;

    border: 1px solid rgba(212, 175, 55, 0.5);

    border-radius: 50%;

    color: #d4af37;

    font-size: 20px;

    box-shadow:
        0 0 25px rgba(212, 175, 55, 0.08);
}


/* ---------------------------------------------------------
   Card Label
   --------------------------------------------------------- */

.h5tap-card-label {
    color: #716e67;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 3px;

    text-transform: uppercase;
}


/* ---------------------------------------------------------
   Year / Month
   --------------------------------------------------------- */

.h5tap-year,
.h5tap-month {

    color: #d4af37;

    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.h5tap-year {
    margin-top: 6px;

    font-size: 38px;
}


.h5tap-month {
    margin-top: 6px;

    font-size: 21px;
}


/* ---------------------------------------------------------
   Year Photo
   --------------------------------------------------------- */

.h5tap-agent-photo {
    position: relative;

    width: 150px;
    height: 150px;

    margin: 32px auto 25px;

    box-sizing: border-box;

    border-radius: 50%;

    overflow: hidden;

    border: 1px solid rgba(212, 175, 55, 0.8);

    background: #151516;

    box-shadow:
        0 0 0 8px #101011,
        0 0 0 9px rgba(212, 175, 55, 0.25),
        0 0 0 16px #101011,
        0 0 0 17px rgba(212, 175, 55, 0.10);
}


/* ---------------------------------------------------------
   Year Photo Image
   --------------------------------------------------------- */

.h5tap-agent-photo img {
    width: 100%;
    height: 100%;

    display: block;

    margin: 0;
    padding: 0;

    border: 0;

    border-radius: 50%;

    object-fit: var(
        --h5tap-image-fit,
        cover
    );

    object-position: var(
        --h5tap-image-position,
        center center
    );
}



/* ---------------------------------------------------------
   Agent Name
   --------------------------------------------------------- */

.h5tap-agent-name {
    color: #ffffff;

    font-size: 25px;
    font-weight: 700;

    line-height: 1.2;

    letter-spacing: 0.3px;
}


/* ---------------------------------------------------------
   Divider
   --------------------------------------------------------- */

.h5tap-divider {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 15px;

    margin: 20px auto;
}


.h5tap-divider::before,
.h5tap-divider::after {
    content: "";

    width: 65px;
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(212, 175, 55, 0.45)
        );
}


.h5tap-divider::after {
    background:
        linear-gradient(
            90deg,
            rgba(212, 175, 55, 0.45),
            transparent
        );
}


.h5tap-divider span {
    color: #d4af37;

    font-size: 12px;
}


/* ---------------------------------------------------------
   Premium
   --------------------------------------------------------- */

.h5tap-stat-grid {
    display: flex;

    justify-content: center;

    width: 100%;
}


.h5tap-stat {
    width: 100%;
    max-width: 320px;

    padding: 15px 8px;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.025);
}


.h5tap-stat strong {
    display: block;

    color: #d4af37;

    font-size: 22px;
    font-weight: 600;

    line-height: 1.2;
}


.h5tap-stat span {
    display: block;

    margin-top: 5px;

    color: #777777;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* =========================================================
   TOP AGENT PAGE LINK
   ========================================================= */

.h5tap-top-agent-link-wrap {
    width: 100%;
    max-width: 1400px;

    margin: 24px auto 0;

    display: flex;

    justify-content: flex-end;
}


.h5tap-top-agent-link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #d4af37;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    text-decoration: none;

    transition:
        color 0.2s ease,
        gap 0.2s ease;
}


.h5tap-top-agent-link:hover {
    color: #ffffff;

    gap: 12px;
}


.h5tap-top-agent-arrow {
    font-size: 18px;

    line-height: 1;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 900px) {

    .h5tap-wrapper {
        padding: 40px 24px;
    }


    .h5tap-cards {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }


    .h5tap-card {
        min-height: auto;

        padding: 40px 28px;
    }

}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 600px) {

    .h5tap-wrapper {
        padding: 35px 18px;
    }


    .h5tap-heading {
        font-size: 32px;
    }


    .h5tap-cards {
        grid-template-columns: 1fr;

        gap: 20px;
    }


    .h5tap-card {
        padding: 35px 22px;
    }


    .h5tap-agent-photo {
        width: 180px;
        height: 180px;
    }


    .h5tap-agent-name {
        font-size: 26px;
    }


    .h5tap-top-agent-link-wrap {
        margin-top: 20px;
    }

}