/*
|--------------------------------------------------------------------------
| HERO SECTION
|--------------------------------------------------------------------------
*/

.dqmate-hero {

    max-width: 620px;

    margin: 0 auto 16px auto;

    text-align: left;

}

/*
|--------------------------------------------------------------------------
| BRAND
|--------------------------------------------------------------------------
*/

.dqmate-brand {

    font-size: 15px;

    font-weight: 700;

    color: #111827;

    margin-bottom: 10px;

}

/*
|--------------------------------------------------------------------------
| HERO TAG
|--------------------------------------------------------------------------
*/

.dqmate-hero-tag {

    display: inline-flex;

    align-items: center;

    padding: 6px 12px;

    border-radius: 999px;

    background: rgba(8,145,178,0.08);

    color: #0891b2;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    margin-bottom: 12px;

}

/*
|--------------------------------------------------------------------------
| HERO TITLE
|--------------------------------------------------------------------------
*/

.dqmate-hero-title {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 42px;

    line-height: 1.05;

    font-weight: 700;

    letter-spacing: -1px;

    color: #0f172a;

    margin: 0 0 12px 0;

    max-width: 620px;

}

/*
|--------------------------------------------------------------------------
| HERO DESCRIPTION
|--------------------------------------------------------------------------
*/
.dqmate-hero-description {

    max-width: 620px;

    font-size: 14px;

    line-height: 1.6;

    color: #64748b;

    margin: 0;

}

/*
|--------------------------------------------------------------------------
| HERO STATS
|--------------------------------------------------------------------------
*/

.dqmate-hero-stats {

    display: flex;

    gap: 28px;

    margin-top: 18px;

    flex-wrap: wrap;

}

.dqmate-hero-stat {

    display: flex;

    flex-direction: column;

}

.dqmate-hero-stat strong {

    font-size: 20px;

    font-weight: 800;

    color: #0f172a;

}

.dqmate-hero-stat span {

    font-size: 12px;

    color: #64748b;

    margin-top: 2px;

}

/*
|--------------------------------------------------------------------------
| TABLET
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {

    .dqmate-hero-title {

        font-size: 42px;

    }

    .dqmate-hero-description {

        font-size: 15px;

    }

}

/*
|--------------------------------------------------------------------------
| MOBILE
|--------------------------------------------------------------------------
*/

@media (max-width: 768px) {

    .dqmate-hero {

        margin-bottom: 18px;

    }

    .dqmate-brand {

        font-size: 18px;

        margin-bottom: 12px;

    }

    .dqmate-hero-title {

        font-size: 30px;

        line-height: 1.15;

        margin-bottom: 12px;

    }

    .dqmate-hero-description {

        font-size: 14px;

        line-height: 1.6;

    }

    .dqmate-hero-stats {

        gap: 18px;

        margin-top: 14px;

    }

    .dqmate-hero-stat strong {

        font-size: 18px;

    }

}
/* ---------------------------------------------------- */
/*  HERO HEADER — logo + brand name + close button      */
/* ---------------------------------------------------- */
.dqmate-hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    gap: 16px;
}

.dqmate-hero-header .dqmate-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.dqmate-hero-header .dqmate-logo-img {
    height: 64px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.dqmate-hero-header .dqmate-brand-name {
    font-size: 18px;
    color: inherit;
}

.dqmate-close-btn {
    background: none;
    border: 1px solid transparent;
    font-size: 30px;
    line-height: 1;
    color: #111;
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    font-weight: 400;
}

.dqmate-close-btn:hover,
.dqmate-close-btn:focus {
    background: #111;
    color: #fff;
    border-color: #111;
    outline: none;
}


/* === Tighter header spacing === */
.dqmate-hero-header {
    margin-bottom: -16px !important;
}
.dqmate-hero-inner .dqmate-hero-tag {
    margin-top: 0 !important;
}
.dqmate-hero-inner > *:first-child + * {
    margin-top: 4px !important;
}


/* === X button in card corner === */
.dqmate-hero {
    position: relative;
}

.dqmate-close-btn {
    position: absolute !important;
    top: 16px;
    right: 16px;
    z-index: 10;
}


/* === Final corner position for X button === */
.dqmate-hero {
    position: relative !important;
}
.dqmate-hero > .dqmate-close-btn {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 100;
}


/* === Push X to actual card corner via negative offsets === */
.dqmate-hero > .dqmate-close-btn {
    top: 16px !important;
    right: -100px !important;
}

/* === FIT CARD IN 800px HEIGHT — spacing only, no font/size changes === */
@media (min-width: 1024px) and (max-height: 850px) {
    section.dqmate-hero {
        padding-top: 10px !important;
        margin-top: 12px;
    }
    .dqmate-hero-inner {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
    .dqmate-hero-title {
        margin-top: 4px !important;
        margin-bottom: 8px !important;
    }
    .dqmate-hero-description {
        margin-top: 4px !important;
        margin-bottom: 12px !important;
    }
    .dqmate-hero-tag {
        margin-top: 4px !important;
        margin-bottom: 6px !important;
    }
}

/* === Restore X button to corner === */
section.dqmate-hero {
    position: relative !important;
}
.dqmate-close-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 100;
}

/* === Aggressive vertical compression (no font changes) === */
@media (min-width: 1024px) and (max-height: 850px) {
    section.dqmate-hero {
        padding-top: 4px !important;
        margin-top: 4px !important;
    }
    .dqmate-hero-inner {
        padding-top: 6px !important;
        padding-bottom: 4px !important;
    }
    .dqmate-hero-title { margin: 2px 0 4px !important; }
    .dqmate-hero-description { margin: 2px 0 6px !important; }
    .dqmate-hero-tag { margin: 2px 0 !important; }
    .dqmate-brand { margin-bottom: 4px !important; }
}

/* X at actual card corner (push past .dqmate-hero edge) */
section.dqmate-hero > .dqmate-close-btn {
    top: 12px !important;
    right: -90px !important;
}

/* === Slightly tighter card === */
@media (min-width: 1024px) and (max-height: 850px) {
    .dqmate-hero-inner {
        padding-top: 2px !important;
        padding-bottom: 2px !important;
    }
    .dqmate-hero-title { margin: 0 0 2px !important; }
    .dqmate-hero-description { margin: 0 0 4px !important; }
    .dqmate-brand { margin-bottom: 2px !important; }
}

/* === Push card down + breathing room above logo === */
@media (min-width: 1024px) and (max-height: 850px) {
    section.dqmate-hero {
        margin-top: 18px !important;
        padding-top: 12px !important;
    }
    .dqmate-hero-inner {
        padding-top: 10px !important;
    }
}

/* Tighter top spacing */
@media (min-width: 1024px) and (max-height: 850px) {
    section.dqmate-hero {
        margin-top: 10px !important;
        padding-top: 6px !important;
    }
    .dqmate-hero-inner {
        padding-top: 6px !important;
    }
}

/* Card top fully visible inside viewport */
@media (min-width: 1024px) and (max-height: 850px) {
    section.dqmate-hero {
        margin-top: 14px !important;
        padding-top: 8px !important;
    }
    .dqmate-hero-inner {
        padding-top: 6px !important;
    }
}

/* Push card further down so top is fully visible */
@media (min-width: 1024px) {
    section.dqmate-hero {
        margin-top: 40px !important;
    }
}

/* Even more top spacing */
@media (min-width: 1024px) {
    section.dqmate-hero {
        margin-top: 80px !important;
    }
}

/* Balance: visible top, not wasteful, leaves room for bottom */
@media (min-width: 1024px) {
    section.dqmate-hero {
        margin-top: 20px !important;
    }
}

/* Tighter still */
@media (min-width: 1024px) and (max-height: 850px) {
    section.dqmate-hero {
        margin-top: 10px !important;
        padding: 0 !important;
    }
    .dqmate-hero-inner {
        padding: 4px 24px !important;
    }
    .dqmate-hero-title { margin: 0 !important; line-height: 1.1 !important; }
    .dqmate-hero-description { margin: 0 0 2px !important; }
    .dqmate-hero-tag { margin: 0 !important; }
    .dqmate-brand { margin: 0 !important; }
}

@media (min-width: 1024px) and (max-height: 850px) {
    section.dqmate-hero { margin-top: 4px !important; }
    .dqmate-hero-inner { padding: 0 24px !important; }
    .dqmate-hero-title { font-size: inherit !important; }
}

@media (min-width: 1024px) and (max-height: 850px) {
    section.dqmate-hero { margin-top: 18px !important; }
    .dqmate-hero-inner { padding: 8px 24px !important; }
}

/* Bigger overall card + breathing room between brand and title */
@media (min-width: 1024px) and (max-height: 850px) {
    section.dqmate-hero { margin-top: 28px !important; }
    .dqmate-hero-inner { padding: 16px 36px !important; }
    .dqmate-brand { margin-bottom: 6px !important; }
    .dqmate-hero-tag { margin-bottom: 22px !important; }
    .dqmate-hero-title { margin-top: 6px !important; }
}

@media (min-width: 1024px) and (max-height: 850px) {
    section.dqmate-hero { margin-top: 18px !important; }
    .dqmate-hero-inner { padding: 10px 30px !important; }
    .dqmate-hero-tag { margin-bottom: 14px !important; }
}

@media (min-width: 1024px) and (max-height: 850px) {
    section.dqmate-hero { margin-top: 10px !important; }
    .dqmate-hero-inner { padding: 6px 28px !important; }
    .dqmate-hero-tag { margin-bottom: 10px !important; }
    .dqmate-brand { margin-bottom: 2px !important; }
}

/* Pull brand row up toward top of card */
@media (min-width: 1024px) and (max-height: 850px) {
    section.dqmate-hero { margin-top: 0 !important; padding-top: 0 !important; }
    .dqmate-hero-inner { padding-top: 0 !important; }
    .dqmate-brand { margin-top: 0 !important; padding-top: 0 !important; }
    .dqmate-logo-img { margin-top: 0 !important; }
}

/* X button — mobile + tablet corner pin */
@media (max-width: 1024px) {
    section.dqmate-hero { position: relative !important; }
    .dqmate-close-btn {
        position: absolute !important;
        top: 10px !important;
        right: 10px !important;
        left: auto !important;
        bottom: auto !important;
        width: 36px !important;
        height: 36px !important;
        z-index: 100 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 480px) {
    .dqmate-close-btn {
        top: 8px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 22px !important;
    }
}

/* Reset X positioning — handled now relative to card wrapper */
.dqmate-close-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 100 !important;
}
@media (max-width: 480px) {
    .dqmate-close-btn {
        top: 8px !important;
        right: 8px !important;
        width: 32px !important;
        height: 32px !important;
    }
}
