/* =========================================================================
      홈 하단 배너 · 시안 A (지원사업 + 상담 카드)
      Markup : resources/views/pages/partials/home-banner.blade.php
      Mockups: Banner-A (PC 1440) · Banner-A-Mobile (390)
      Breakpoints: desktop ≥1024 · tablet ≤1023 (boxes stacked) · mobile ≤767
      Every selector is scoped to #nt-banner so Avada's theme rules
      (#main h2, .post-content p, body a, li …) cannot leak in.
      ========================================================================= */

/* ---- Section ----------------------------------------------------------- */
#nt-banner {
    padding: 80px 0;
    background: #0B2540;
    color: #FFFFFF;
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;
    word-break: keep-all;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
}

#nt-banner,
#nt-banner *,
#nt-banner *::before,
#nt-banner *::after {
    box-sizing: border-box;
}

#nt-banner p,
#nt-banner h2,
#nt-banner ul,
#nt-banner li,
#nt-banner dl,
#nt-banner dt,
#nt-banner dd {
    margin: 0;
    padding: 0;
}

#nt-banner ul,
#nt-banner li {
    list-style: none;
}

#nt-banner .nt-banner__inner {
    box-sizing: content-box;
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 30px;
}

/* 643px : 503px inside the 1170px container, as in the mockup */
#nt-banner .nt-banner__grid {
    display: grid;
    grid-template-columns: minmax(0, 643fr) minmax(0, 503fr);
    align-items: stretch;
    gap: 24px;
}

/* ---- Boxes ------------------------------------------------------------- */
#nt-banner .nt-banner__box {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    padding: 40px;
    border-radius: 20px;
}

#nt-banner .nt-banner__box--support {
    background: #FFFFFF;
    color: #1B2A3A;
}

#nt-banner .nt-banner__box--contact {
    background: #17669A;
    color: #FFFFFF;
}

/* Box titles. !important beats Avada's responsive typography: its JS writes an
      inline line-height on every heading, and at ≤1000px the theme rescales them
      with `.fusion-responsive-typography-calculated { font-size: calc(…) !important }`. */
#nt-banner .nt-banner__box .nt-banner__title {
    margin: 0;
    font-family: inherit;
    font-size: 28px !important;
    font-weight: 750;
    font-style: normal;
    line-height: 1.35 !important;
    letter-spacing: -0.02em;
    text-transform: none;
    color: #0B2540;
}

#nt-banner .nt-banner__box .nt-banner__title--contact {
    font-size: 22px !important;
    line-height: 1.35 !important;
    letter-spacing: 0;
    color: #FFFFFF;
}

/* ---- Support box ------------------------------------------------------- */
#nt-banner .nt-banner__intro {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#nt-banner .nt-banner__chip {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: #EAF3FA;
    color: #155E8E;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
}

#nt-banner .nt-banner__text {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0;
    color: #4B5B6B;
    text-wrap: pretty;
}

#nt-banner .nt-banner__text strong {
    font-weight: 700;
    white-space: nowrap;
    color: #1E79B4;
}

#nt-banner .nt-banner__stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#nt-banner .nt-banner__stats-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0;
    color: #3E4C5A;
}

#nt-banner .nt-banner__kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

#nt-banner .nt-banner__kpi {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #F4F7FA;
}

#nt-banner .nt-banner__kpi-label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    color: #4B5B6B;
}

#nt-banner .nt-banner__kpi-value {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 24px;
    font-weight: 750;
    line-height: 1.2;
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: #0B2540;
}

#nt-banner .nt-banner__kpi-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #1C7C6E;
}

#nt-banner .nt-banner__source {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    color: #5F6E7D;
}

#nt-banner .nt-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

/* ---- Buttons ----------------------------------------------------------- */
#nt-banner .nt-banner__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    margin: 0;
    padding: 0 22px;
    border: 0;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.25;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
}

#nt-banner .nt-banner__btn-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

#nt-banner .nt-banner__btn-icon--ext {
    width: 16px;
    height: 16px;
}

#nt-banner .nt-banner__btn--primary {
    background: #1E79B4;
    color: #FFFFFF;
}

#nt-banner .nt-banner__btn--primary:hover {
    background: #155E8E;
    color: #FFFFFF;
}

#nt-banner .nt-banner__btn--secondary {
    padding: 0 20px;
    border: 1px solid #C9D3DE;
    background: #FFFFFF;
    color: #0B2540;
}

#nt-banner .nt-banner__btn--secondary:hover {
    border-color: #1E79B4;
    background: #FFFFFF;
    color: #155E8E;
}

#nt-banner .nt-banner__btn--light {
    align-self: flex-start;
    margin-top: auto;
    background: #FFFFFF;
    color: #0B2540;
}

#nt-banner .nt-banner__btn--light:hover {
    background: #EAF3FA;
    color: #0B2540;
}

/* ---- Contact box ------------------------------------------------------- */
#nt-banner .nt-banner__contact-head {
    display: flex;
    align-items: center;
    gap: 14px;
}

#nt-banner .nt-banner__contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #FFFFFF;
}

#nt-banner .nt-banner__contact-icon svg {
    width: 24px;
    height: 24px;
}

#nt-banner .nt-banner__contact-heading {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#nt-banner .nt-banner__contact-sub {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    color: #E3EEF6;
}

#nt-banner .nt-banner__only-mobile {
    display: none;
}

/* 대표전화: label + big number on PC/tablet, white call button on mobile */
#nt-banner .nt-banner__phone {
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    gap: 4px;
    border-radius: 6px;
    color: #FFFFFF;
    text-decoration: none;
}

#nt-banner .nt-banner__phone-icon {
    display: none;
}

#nt-banner .nt-banner__phone-label {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    color: #E3EEF6;
}

#nt-banner .nt-banner__phone-number {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.01em;
    white-space: nowrap;
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

#nt-banner .nt-banner__phone:hover .nt-banner__phone-number {
    text-decoration-color: currentColor;
}

/* Contact list; its top border is the divider under the phone number */
#nt-banner .nt-banner__contacts {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

#nt-banner .nt-banner__contacts dt {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    color: #E3EEF6;
}

#nt-banner .nt-banner__contacts dd {
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;
    color: #FFFFFF;
}

#nt-banner .nt-banner__contact-mail {
    overflow-wrap: anywhere;
}

#nt-banner .nt-banner__link {
    position: relative;
    color: #FFFFFF;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Larger tap area without changing the layout (row gap is 12px) */
#nt-banner .nt-banner__link::after {
    content: "";
    position: absolute;
    top: -7px;
    right: -4px;
    bottom: -7px;
    left: -4px;
}

#nt-banner .nt-banner__link:hover {
    color: #E3EEF6;
}

/* ---- Focus & motion ---------------------------------------------------- */
#nt-banner a:focus-visible {
    outline: 3px solid #72BFAC;
    outline-offset: 2px;
}

#nt-banner .nt-banner__box--support a:focus-visible {
    outline-color: #1E79B4;
}

/* white ring: teal on #17669A would be below 3:1 */
#nt-banner .nt-banner__box--contact a:focus-visible {
    outline-color: #FFFFFF;
}

#nt-banner .nt-banner__phone:focus-visible {
    outline-offset: 4px;
}

@media (prefers-reduced-motion: no-preference) {
    #nt-banner .nt-banner__btn,
    #nt-banner .nt-banner__phone,
    #nt-banner .nt-banner__phone-number,
    #nt-banner .nt-banner__link {
        transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, text-decoration-color 0.2s ease;
    }
}

/* ---- Narrow desktop: 4 tiles in a row need the full 1170px container ---- */
@media (min-width: 1024px) and (max-width: 1229px) {
    #nt-banner .nt-banner__kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- Tablet: boxes stacked full width ---------------------------------- */
@media (max-width: 1023px) {
    #nt-banner {
        padding: 64px 0;
    }

    #nt-banner .nt-banner__grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Mobile (Banner-A-Mobile) ------------------------------------------ */
@media (max-width: 767px) {
    #nt-banner {
        padding: 48px 0 56px;
    }

    #nt-banner .nt-banner__inner {
        padding: 0 20px;
    }

    #nt-banner .nt-banner__grid {
        gap: 16px;
    }

    #nt-banner .nt-banner__box {
        gap: 20px;
        padding: 24px;
        border-radius: 16px;
    }

    #nt-banner .nt-banner__box .nt-banner__title {
        font-size: 22px !important;
        line-height: 1.4 !important;
    }

    #nt-banner .nt-banner__box .nt-banner__title--contact {
        font-size: 20px !important;
        line-height: 1.35 !important;
    }

    #nt-banner .nt-banner__intro {
        gap: 12px;
    }

    #nt-banner .nt-banner__text {
        font-size: 15px;
        line-height: 1.65;
    }

    #nt-banner .nt-banner__stats {
        gap: 8px;
    }

    #nt-banner .nt-banner__stats-title {
        font-size: 13px;
    }

    #nt-banner .nt-banner__kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    #nt-banner .nt-banner__kpi {
        gap: 4px;
        padding: 12px 14px;
    }

    #nt-banner .nt-banner__kpi-value {
        font-size: 22px;
    }

    #nt-banner .nt-banner__kpi-icon {
        width: 18px;
        height: 18px;
    }

    #nt-banner .nt-banner__actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 0;
    }

    #nt-banner .nt-banner__btn {
        padding: 0 16px;
    }

    #nt-banner .nt-banner__box--contact {
        gap: 18px;
    }

    #nt-banner .nt-banner__contact-head {
        gap: 12px;
    }

    #nt-banner .nt-banner__contact-icon {
        width: 44px;
        height: 44px;
    }

    #nt-banner .nt-banner__contact-icon svg {
        width: 22px;
        height: 22px;
    }

    #nt-banner .nt-banner__contact-sub {
        font-size: 14px;
    }

    #nt-banner .nt-banner__only-pc {
        display: none;
    }

    #nt-banner .nt-banner__only-mobile {
        display: inline;
    }

    #nt-banner .nt-banner__phone {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        align-self: stretch;
        gap: 10px;
        min-height: 60px;
        padding: 0 16px;
        border-radius: 12px;
        background: #FFFFFF;
        color: #0B2540;
    }

    #nt-banner .nt-banner__phone:hover {
        background: #EAF3FA;
    }

    #nt-banner .nt-banner__phone-icon {
        display: block;
        flex-shrink: 0;
        width: 22px;
        height: 22px;
    }

    #nt-banner .nt-banner__phone-label {
        display: none;
    }

    #nt-banner .nt-banner__phone-number,
    #nt-banner .nt-banner__phone:hover .nt-banner__phone-number {
        font-size: 24px;
        line-height: 1.2;
        color: #0B2540;
        text-decoration-color: transparent;
    }

    #nt-banner .nt-banner__contacts {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 12px;
        padding-top: 0;
        border-top: 0;
    }

    #nt-banner .nt-banner__contact-tech {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    #nt-banner .nt-banner__sep {
        display: none;
    }

    #nt-banner .nt-banner__btn--light {
        align-self: stretch;
        margin-top: 0;
        border: 1px solid rgba(255, 255, 255, 0.6);
        background: transparent;
        color: #FFFFFF;
    }

    #nt-banner .nt-banner__btn--light:hover {
        border-color: #FFFFFF;
        background: rgba(255, 255, 255, 0.12);
        color: #FFFFFF;
    }
}
