/**
 * SolarTech Blog CTAs — v1.0
 *
 * Exact match to Elementor template 8253 on solartechonline.com
 *
 * Global colors (from post-6.css):
 *   Primary Blue:  #005DAA
 *   Accent Orange: #FF912A
 *   White:         #FFFFFF
 *   Dark Navy:     #003766
 *   Light Gray:    #EEEEEE
 *   Text Gray:     #707070
 *   Border Gray:   #7E7E7E
 *   Light Blue BG: #DBECFA
 *   Link Orange:   #ff6600 (inline links)
 *   Subtext Gray:  #616161
 *
 * Font: Red Hat Display (loaded by theme)
 * Button radius: 100px (pill)
 * Card radius: 15px or 25px depending on CTA
 */

/* ===================================================
   BASE RESET — scope everything under .stcta
   =================================================== */
.stcta {
    box-sizing: border-box;
    margin: 25px 0;
    font-family: "Red Hat Display", sans-serif;
    color: #000000;
    line-height: 1.6;
    max-width: 1290px;
}

.stcta *,
.stcta *::before,
.stcta *::after {
    box-sizing: border-box;
}

.stcta p {
    margin: 0;
}

/* ===================================================
   CTA 1 — HERO CARD
   Orange 1px border, 25px radius, white bg
   Heading in accent orange, body in black
   =================================================== */
.stcta-hero-card__inner {
    background: #ffffff;
    border: 1px solid #FF912A;
    border-radius: 25px;
    padding: 4px 35px 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stcta-hero-card__heading {
    font-family: "Red Hat Display", sans-serif;
    font-size: 25px;
    font-weight: 700;
    color: #FF912A;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.stcta-hero-card__text {
    font-size: 16px;
    color: #000000;
    margin: 0 0 6px 0;
}

.stcta-hero-card__text strong {
    color: #000000;
}

.stcta-hero-card__link-wrap {
    margin: 0;
}

.stcta-hero-card__link {
    color: #005DAA !important;
    text-decoration: none !important;
    font-weight: 700;
    transition: color 0.2s ease;
}

.stcta-hero-card__link:hover {
    color: #003766 !important;
}

/* ===================================================
   CTA 2 — BLUE COMPACT BAR
   Light blue (#DBECFA) background, 25px radius
   Bold text + orange arrow link
   =================================================== */
.stcta-blue-bar__inner {
    background: #DBECFA;
    border-radius: 25px;
    padding: 20px 35px;
    display: flex;
    align-items: center;
}

.stcta-blue-bar__text {
    font-size: 16px;
    color: #000000;
    margin: 0;
}

.stcta-blue-bar__text strong {
    color: #000000;
}

.stcta-blue-bar__link {
    color: #005DAA !important;
    text-decoration: none !important;
    font-weight: 700;
    transition: color 0.2s ease;
}

.stcta-blue-bar__link:hover {
    color: #003766 !important;
}

/* ===================================================
   CTA 3 — INLINE TEXT NUDGE
   Light gray (#EEEEEE) background, 15px radius
   Orange underlined link (#ff6600)
   =================================================== */
.stcta-inline-nudge__inner {
    background: #EEEEEE;
    border-radius: 15px;
    padding: 25px 35px;
    display: flex;
    align-items: center;
}

.stcta-inline-nudge__text {
    font-size: 16px;
    color: #000000;
    margin: 0;
}

.stcta-inline-nudge__link {
    color: #ff6600 !important;
    text-decoration: underline !important;
    font-weight: 700;
    transition: color 0.2s ease;
}

.stcta-inline-nudge__link:hover {
    color: #cc5200 !important;
}

/* ===================================================
   CTA 4 — OUTLINED CARD WITH GHOST BUTTON
   1px #7E7E7E border, 15px radius, row layout
   Ghost button: white bg, #005DAA border + text, 100px pill
   =================================================== */
.stcta-outline-card__inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 1px solid #7E7E7E;
    border-radius: 15px;
    padding: 25px;
    background: #ffffff;
}

.stcta-outline-card__text {
    flex: 1;
    font-size: 16px;
    color: #000000;
    margin: 0;
    padding-right: 20px;
}

.stcta-outline-card__btn-wrap {
    flex-shrink: 0;
}

/* ===================================================
   CTA 5 — CENTERED CARD WITH BLUE BUTTON
   #EEEEEE bg, 1px #7E7E7E border, 15px radius
   Column layout, centered, blue filled button
   =================================================== */
.stcta-bottom-card__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #EEEEEE;
    border: 1px solid #7E7E7E;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
}

.stcta-bottom-card__text {
    font-size: 16px;
    color: #000000;
    margin: 0 0 16px 0;
}

.stcta-bottom-card__closing {
    margin-top: 10px;
    font-size: 14px;
    color: #616161;
    text-align: center;
}

/* ===================================================
   BUTTONS — Ghost (outlined) and Filled
   Both use 100px pill radius, Red Hat Display 18px 700
   =================================================== */

/* Ghost button — white bg, blue border + text */
.stcta-btn--ghost {
    display: inline-block;
    background-color: #FFFFFF !important;
    color: #005DAA !important;
    -webkit-text-fill-color: #005DAA !important;
    font-family: "Red Hat Display", sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
    text-decoration: none !important;
    line-height: 1em;
    letter-spacing: 0px;
    border: 1px solid #005DAA;
    border-radius: 100px;
    padding: 20px 40px;
    cursor: pointer;
    transition: background-color 0.2s ease,
                color 0.2s ease;
    white-space: nowrap;
}

.stcta-btn--ghost:hover,
.stcta-btn--ghost:focus {
    background-color: #005DAA !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-decoration: none !important;
}

/* Filled button — blue bg, white text */
.stcta-btn--filled {
    display: inline-block;
    background-color: #005DAA !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    font-family: "Red Hat Display", sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: capitalize;
    text-decoration: none !important;
    line-height: 1em;
    letter-spacing: 0px;
    border: none;
    border-radius: 100px;
    padding: 20px 40px;
    cursor: pointer;
    transition: background-color 0.2s ease,
                box-shadow 0.2s ease;
}

.stcta-btn--filled:hover,
.stcta-btn--filled:focus {
    background-color: #D57215 !important;
    color: #FFFFFF !important;
    -webkit-text-fill-color: #FFFFFF !important;
    text-decoration: none !important;
    box-shadow: 4px 3px 9px 0px rgba(0, 0, 0, 0.34);
}

.stcta-btn--ghost:focus-visible,
.stcta-btn--filled:focus-visible {
    outline: 3px solid #FF912A;
    outline-offset: 2px;
}

/* ===================================================
   MOBILE RESPONSIVE (< 768px)
   =================================================== */
@media (max-width: 768px) {
    .stcta {
        margin: 20px 0;
    }

    /* Hero Card */
    .stcta-hero-card__inner {
        padding: 15px 20px;
    }

    .stcta-hero-card__heading {
        font-size: 20px;
    }

    /* Blue Bar */
    .stcta-blue-bar__inner {
        padding: 15px 20px;
    }

    /* Inline Nudge */
    .stcta-inline-nudge__inner {
        padding: 18px 20px;
    }

    /* Outlined Card — stack vertically on mobile */
    .stcta-outline-card__inner {
        flex-direction: column;
        padding: 20px;
    }

    .stcta-outline-card__text {
        padding-right: 0;
        margin-bottom: 15px;
    }

    .stcta-outline-card__btn-wrap {
        width: 100%;
    }

    .stcta-btn--ghost {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 18px;
        padding: 15px 20px;
    }

    /* Bottom Card */
    .stcta-bottom-card__inner {
        padding: 20px;
    }

    .stcta-btn--filled {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 16px;
        padding: 20px;
    }
}

/* ===================================================
   PRINT — hide CTAs when printing
   =================================================== */
@media print {
    .stcta {
        display: none !important;
    }
}
