.kr-footer {
    margin-top: 0;
    color: #fff;
    background: #0f1640;
}

.footer-main {
    position: relative;
    overflow: hidden;
    padding: 90px 0 45px;
    background:
        radial-gradient(circle at top right, rgba(249, 115, 22, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(159, 31, 47, 0.16), transparent 35%),
        #11183f;
    color: #fff;
}

.footer-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #9f1f2f, #ef4444, #f59e0b);
}

.footer-container {
    position: relative;
    width: calc(100% - 48px);
    max-width: 1440px;
    margin: 0 auto;
}

.footer-cta {
    margin-bottom: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, #9f1f2f 0%, #ef4444 48%, #f97316 100%);
    box-shadow: 0 24px 55px rgba(8, 13, 42, 0.35), 0 12px 28px rgba(249, 115, 22, 0.24);
}

.footer-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 30px 34px;
}

.footer-cta-label {
    display: inline-flex;
    margin-bottom: 10px;
    color: #fff7ed;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-cta h2 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.15;
    font-weight: 900;
}

.footer-cta p {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.6;
}

.footer-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
    flex: 0 0 auto;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.footer-btn-light {
    color: #151d4f;
    background: #fff;
    box-shadow: 0 12px 22px rgba(20, 28, 79, .18);
}

.footer-btn-outline {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .08);
}

.footer-btn:hover,
.footer-btn:focus-visible {
    color: #151d4f;
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(20, 28, 79, .22);
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.3fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(180px, 1fr) minmax(260px, 1.3fr);
    gap: 38px;
    align-items: start;
}

.footer-brand-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

.footer-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #fff;
    padding: 7px;
    box-shadow: 0 12px 28px rgba(249, 115, 22, .16);
}

.footer-trust {
    margin: 0 0 5px;
    color: #fbbf24;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 800;
}

.footer-brand h3 {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 900;
}

.footer-about {
    margin: 0 0 16px;
    color: #cbd1df;
    font-size: 14px;
    line-height: 1.75;
}

.footer-affiliation {
    margin-bottom: 16px;
    padding: 12px 14px;
    color: #fff;
    font-size: 12.5px;
    line-height: 1.6;
    font-weight: 700;
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .1);
    border-left: 3px solid #f59e0b;
    border-radius: 12px;
}

.footer-contact-links {
    display: grid;
    gap: 10px;
}

.footer-contact-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #eef2ff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.footer-contact-links i,
.footer-address-card h4 i,
.institute-link i {
    color: #f59e0b;
}

.footer-title {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 11px;
    color: #fff;
    font-size: 16px;
    line-height: 1.2;
    font-weight: 800;
}

.footer-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.footer-links {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c7ccda;
    font-size: 13px;
    line-height: 1.45;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.footer-links a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #f59e0b;
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-5px);
    transition: all .2s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: #fff;
    transform: translateX(4px);
}

.footer-links a:hover::before,
.footer-links a:focus-visible::before {
    opacity: 1;
    transform: translateX(0);
}

.institute-links {
    display: grid;
    gap: 10px;
}

.institute-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: #d3d7e2;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.35;
    text-decoration: none;
    transition: all .2s ease;
}

.institute-link:hover,
.institute-link:focus-visible {
    color: #fff;
    background: rgba(249, 115, 22, .12);
    border-color: rgba(245, 158, 11, .4);
    transform: translateY(-2px);
}

.footer-address-card {
    display: block;
    padding: 16px;
    margin: 0 0 14px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    font-style: normal;
}

.footer-address-card h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
}

.footer-address-card p {
    margin: 0 0 8px;
    color: #c6cbda;
    font-size: 12.5px;
    line-height: 1.7;
}

.footer-directions {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fbbf24;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.footer-directions:hover,
.footer-directions:focus-visible {
    color: #fff;
}

.footer-socials {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    text-decoration: none;
    transition: all .25s ease;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(249, 115, 22, .24);
}

.footer-hashtag {
    display: inline-flex;
    margin-top: 14px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .09);
    background: rgba(5, 10, 35, .96);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 64px;
}

.footer-bottom p,
.footer-developed,
.footer-bottom a {
    margin: 0;
    color: #aeb5c8;
    font-size: 12px;
    line-height: 1.5;
}

.footer-developed a,
.footer-bottom-links a {
    text-decoration: none;
}

.footer-developed a:hover,
.footer-bottom-links a:hover,
.footer-developed a:focus-visible,
.footer-bottom-links a:focus-visible {
    color: #fbbf24;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
}

.kr-footer a:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 3px;
}

.floating-buttons-container .floating-btn,
.chatbot-toggler,
.chatbot-toggle {
    box-shadow: 0 14px 32px rgba(8, 13, 42, .28) !important;
    transition: transform .2s ease, box-shadow .2s ease !important;
}

.floating-buttons-container .floating-btn:hover,
.chatbot-toggler:hover,
.chatbot-toggle:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 18px 38px rgba(8, 13, 42, .34) !important;
}

.kr-brochure-wrap {
    z-index: 990 !important;
}

.kr-brochure-btn {
    background: linear-gradient(135deg, #9f1f2f, #f97316) !important;
    box-shadow: 0 14px 30px rgba(159, 31, 47, .26) !important;
}

@media (max-width: 1200px) {
    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-addresses {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .footer-cta-content {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-cta-actions {
        justify-content: flex-start;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .footer-main {
        padding: 70px 0 30px;
    }

    .footer-container {
        width: calc(100% - 30px);
    }

    .footer-cta {
        border-radius: 15px;
        margin-bottom: 34px;
    }

    .footer-cta-content {
        padding: 24px 20px;
    }

    .footer-cta-actions,
    .footer-btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-brand,
    .footer-addresses {
        grid-column: auto;
    }

    .footer-brand-header {
        align-items: center;
        justify-content: center;
        text-align: center;
        flex-direction: column;
    }

    .footer-brand h3 {
        font-size: 18px;
    }

    .footer-about,
    .footer-affiliation,
    .footer-contact-links {
        text-align: center;
    }

    .footer-contact-links a,
    .footer-socials {
        justify-content: center;
    }

    .footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 18px 0;
    }

    .footer-bottom-links {
        justify-content: flex-start;
    }

    .kr-brochure-wrap {
        top: auto !important;
        right: 14px !important;
        bottom: 14px !important;
        width: auto !important;
        height: auto !important;
        transform: none !important;
    }

    .kr-brochure-btn {
        position: static !important;
        width: auto !important;
        min-height: 44px !important;
        padding: 10px 14px !important;
        border-radius: 999px !important;
        writing-mode: horizontal-tb !important;
        transform: none !important;
        flex-direction: row !important;
        font-size: 12px !important;
        letter-spacing: 0 !important;
    }
}

@media (max-width: 420px) {
    .footer-cta h2 {
        font-size: 23px;
    }

    .footer-bottom-links {
        gap: 10px;
    }
}

/* Footer white text override */
.kr-footer,
.kr-footer p,
.kr-footer a,
.kr-footer span,
.kr-footer address,
.kr-footer .footer-about,
.kr-footer .footer-affiliation,
.kr-footer .footer-links a,
.kr-footer .institute-link,
.kr-footer .footer-address-card p,
.kr-footer .footer-bottom p,
.kr-footer .footer-developed,
.kr-footer .footer-bottom a {
    color: #ffffff !important;
}

.kr-footer .footer-trust,
.kr-footer .footer-hashtag,
.kr-footer .footer-directions,
.kr-footer .footer-contact-links i,
.kr-footer .footer-address-card h4 i,
.kr-footer .institute-link i {
    color: #fbbf24 !important;
}
.kr-footer .footer-btn-light,
.kr-footer .footer-btn-light span,
.kr-footer .footer-btn-light i,
.kr-footer .footer-btn:hover,
.kr-footer .footer-btn:hover span,
.kr-footer .footer-btn:hover i,
.kr-footer .footer-btn:focus-visible,
.kr-footer .footer-btn:focus-visible span,
.kr-footer .footer-btn:focus-visible i {
    color: #151d4f !important;
}

.kr-footer .footer-btn-outline,
.kr-footer .footer-btn-outline span,
.kr-footer .footer-btn-outline i {
    color: #ffffff !important;
}
.kr-footer .footer-developed a {
    color: #fbbf24 !important;
    font-weight: 800;
    text-decoration: none;
    background-image: linear-gradient(90deg, #fbbf24, #f97316);
    background-size: 100% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: color .2s ease, background-size .2s ease, text-shadow .2s ease;
}

.kr-footer .footer-developed a:hover,
.kr-footer .footer-developed a:focus-visible {
    color: #ffffff !important;
    background-size: 100% 100%;
    text-shadow: 0 2px 10px rgba(249, 115, 22, .35);
}