
footer { background: var(--navy); color: var(--white); width: 100%; }

.footer-main { max-width: var(--site-max-width, 1600px); margin: 0 auto; padding: 64px 56px 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; border-bottom: 1px solid rgba(255,255,255,0.12); }

/* Brand */
.footer-brand { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; width: 100%; }
.brand-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 0; text-decoration: none; }
.brand-icon { width: 38px; height: 38px; background: var(--red); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px; color: #fff; position: relative; overflow: hidden; }
    .brand-icon::after { content: ''; position: absolute; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,0.4); border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.brand-text { display: flex; flex-direction: column; }
.brand-name { font-family: var(--font-body); font-size: 18px; font-weight: var(--fw-bold); letter-spacing: 0.04em; color: var(--white); line-height: 1.1; }
.brand-sub { font-family: var(--font-body); font-size: 13px; font-weight: var(--fw-regular); color: rgba(255,255,255,0.55); letter-spacing: 0.08em; text-transform: uppercase; }
.footer-tagline { font-family: var(--font-heading); font-size: 32px; font-weight: var(--fw-bold); color: var(--white); line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.01em; }
    .footer-tagline span { color: var(--red); }
.footer-desc { font-family: var(--font-body); font-size: 16px; color: rgba(255,255,255,0.55); line-height: 1.65; }

.brand-main-img,
.brand-partner-img { display: block; width: 100%; max-width: none; height: auto; object-fit: contain; }

.footer-brand { width: 100%; }
.footer-main .brand-badge img,
.footer-main .brand-main-img,
.footer-main .brand-partner-img { width: 100% !important; max-width: none !important; height: auto !important; display: block !important; object-fit: contain !important; }

.footer-nav-col { }
.nav-col-title { font-family: var(--font-body); font-size: 14px; font-weight: var(--fw-semibold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.nav-col-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 0; padding: 0; }
    .nav-col-list a { font-family: var(--font-body); color: rgba(255,255,255,0.75); text-decoration: none; font-size: 17px; font-weight: var(--fw-regular); transition: color 0.2s, padding-left 0.2s; display: block; padding-left: 0; }
        .nav-col-list a:hover { color: var(--white); padding-left: 6px; }

.footer-accred { }
.accred-title { font-family: var(--font-body); font-size: 14px; font-weight: var(--fw-semibold); letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.accred-badges { display: flex; flex-direction: column; gap: 16px; }

    .accred-badges .badge { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 0; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 1px 0 rgba(255,255,255,0.02); }

        .accred-badges .badge:hover { background: rgba(255,255,255,0.06); }

        .accred-badges .badge img { display: block !important; width: calc(100% - 32px) !important; max-width: calc(100% - 32px) !important; height: auto !important; margin: 16px auto !important; padding: 0 !important; box-sizing: border-box !important; object-fit: contain !important; }

@media (max-width: 1100px) {
    .accred-badges .badge img { max-width: 80% !important; max-height: 70px !important; }
}

/* Two-column quick links: use column flow so items fill vertically then into next column */
.nav-col-two .nav-col-list { display: block; column-count: 2; column-gap: 36px; row-gap: 11px; }
.nav-col-two .nav-col-list li { break-inside: avoid-column; -webkit-column-break-inside: avoid; }
.nav-col-two .nav-col-list a { display: block; }

@media (max-width: 768px) {
    .nav-col-two .nav-col-list { column-count: 1; column-gap: 0; margin: 0; padding: 0; }
}

/* Ensure all nav lists and list items have no browser indentation so columns align */
.footer-nav-col .nav-col-list { margin: 0; padding: 0; }
.nav-col-list li { margin: 0; padding: 0; }

/* Ensure vertical spacing matches the flex gap used by other nav columns */
.nav-col-two .nav-col-list li { margin-bottom: 11px; }
.nav-col-two .nav-col-list li:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
    .accred-badges .badge img { max-width: 75% !important; max-height: 60px !important; }
}

@media (max-width: 480px) {
    .accred-badges .badge img { max-width: 70% !important; max-height: 50px !important; }
}

.badge-icon { width: 56px; height: 56px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
    .badge-icon.cis { background: linear-gradient(135deg,#00b4d8,#0077b6); color: white; font-family: var(--font-body); letter-spacing: 0.05em; }
    .badge-icon.ib { background: linear-gradient(135deg,#2196f3,#1565c0); color: white; }
    .badge-icon.ib-cont { background: linear-gradient(135deg,#f59e0b,#e84393,#8b5cf6); color: white; font-size: 10px; }
.badge-text { display: flex; flex-direction: column; }
    .badge-text strong { font-family: var(--font-body); font-size: 15px; font-weight: var(--fw-semibold); color: var(--white); line-height: 1.2; }
    .badge-text small { font-family: var(--font-body); font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.3; }

.footer-bottom { max-width: var(--site-max-width, 1600px); margin: 0 auto; padding: 22px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-bottom-left { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.copyright { font-family: var(--font-body); font-size: 16px; color: rgba(255,255,255,0.55); }
.footer-legal { display: flex; gap: 20px; }
    .footer-legal a { font-family: var(--font-body); font-size: 16px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; position: relative; }
        .footer-legal a:hover { color: var(--white); }
        .footer-legal a + a::before { content: '|'; position: absolute; left: -12px; color: rgba(255,255,255,0.12); }
.social-links { display: flex; gap: 10px; align-items: center; }
.social-link { width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.55); text-decoration: none; transition: all 0.2s; font-size: 15px; }
    .social-link:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.3); color: var(--white); transform: translateY(-2px); }
    .social-link svg { width: 16px; height: 16px; fill: currentColor; }

/* Responsive */
@media (max-width: 1200px) {
    .footer-main { padding: 56px 48px 48px; gap: 44px; }
    .footer-tagline { font-size: 28px; }
    .footer-desc { font-size: 15px; }
    .nav-col-list a { font-size: 16px; }
}

/* Desktop: make footer columns occupy 1 + 2 + 1 grid columns (total 4) */
@media (min-width: 993px) {
    .footer-main { grid-template-columns: repeat(4, 1fr); }
    .footer-nav-col.nav-col-two { grid-column: span 2; }
    .footer-accred { grid-column: auto; }
}

@media (max-width: 992px) {
    .footer-main { grid-template-columns: 240px 1fr 1fr; padding: 44px 36px 40px; gap: 40px; }
    .footer-accred { grid-column: 1 / -1; display: flex; flex-direction: row; gap: 32px; align-items: flex-start; }
    .accred-badges { flex-direction: row; flex-wrap: wrap; }
    .footer-tagline { font-size: 26px; }
}

@media (max-width: 768px) {
    .footer-main { grid-template-columns: 1fr 1fr; padding: 36px 24px 32px; gap: 36px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-accred { grid-column: 1 / -1; flex-direction: column; }
    .accred-badges { flex-direction: row; flex-wrap: wrap; gap: 10px; }
    .badge { padding: 10px 12px; }
    .footer-bottom { padding: 18px 24px; flex-direction: column; align-items: flex-start; gap: 14px; }
    .footer-bottom-left { flex-direction: column; align-items: flex-start; gap: 8px; }
    .footer-tagline { font-size: 24px; }
    .nav-col-title { font-size: 13px; }
    .nav-col-list a { font-size: 15px; }
}

@media (max-width: 576px) {
    .footer-main { grid-template-columns: 1fr; gap: 28px; padding: 32px 20px 28px; }
    .footer-tagline { font-size: 22px; margin-bottom: 16px; }
    .footer-desc { font-size: 14px; }
    .nav-col-title { font-size: 12px; margin-bottom: 16px; }
    .nav-col-list { gap: 9px; }
    .nav-col-list a { font-size: 14px; }
    .accred-badges { flex-direction: column; }
    .footer-bottom { padding: 16px 20px; }
    .copyright { font-size: 14px; }
    .footer-legal a { font-size: 14px; }
}

/* Force zero left padding on nav columns to guarantee pixel-perfect alignment on small screens */
.footer-nav-col,
.nav-col-title,
.nav-col-list,
.nav-col-list li,
.nav-col-list a {
    padding-left: 0 !important;
    margin-left: 0 !important;
}

@media (max-width: 400px) {
    .footer-main { padding: 28px 16px 24px; gap: 24px; }
    .footer-tagline { font-size: 20px; }
    .brand-name { font-size: 16px; }
    .social-link { width: 32px; height: 32px; }
}

footer .footer-main .footer-brand .brand-main-img,
footer .footer-main .footer-brand .brand-partner-img { width: 100% !important; max-width: none !important; height: auto !important; display: block !important; }

footer .footer-main .footer-accred .accred-badges .badge { width: 100% !important; }

.footer-main { grid-auto-rows: auto; }

    .footer-main .brand-badge,
    .footer-main .accred-badges .badge { display: flex; align-items: center; justify-content: center; padding: 0; margin: 0; }

    .footer-main img { width: 100% !important; height: auto !important; max-width: 100% !important; display: block !important; margin: 0 auto !important; padding: 0 !important; object-fit: contain !important; }

@media (max-width: 1100px) {
    .footer-main img { width: 100% !important; }
}

@media (max-width: 480px) {
    .footer-main img { width: 100% !important; }
}

@media (min-width: 1600px) {
    .footer-main,
    .footer-bottom { width: 1600px !important; max-width: 1600px !important; margin: 0 auto !important; }
}

.footer-main .footer-brand .brand-badge img,
.footer-main .footer-brand .brand-main-img,
.footer-main .footer-brand .brand-partner-img { width: 100% !important; max-width: 360px !important; height: auto !important; display: block !important; margin: 0 auto !important; padding: 0 !important; object-fit: contain !important; }

@media (max-width: 1100px) {
    .footer-main .footer-brand .brand-badge img,
    .footer-main .footer-brand .brand-main-img,
    .footer-main .footer-brand .brand-partner-img { max-width: 300px !important; }
}

@media (max-width: 768px) {
    .footer-main .footer-brand .brand-badge img,
    .footer-main .footer-brand .brand-main-img,
    .footer-main .footer-brand .brand-partner-img { max-width: 220px !important; }
}

@media (max-width: 480px) {
    .footer-main .footer-brand .brand-badge img,
    .footer-main .footer-brand .brand-main-img,
    .footer-main .footer-brand .brand-partner-img { max-width: 160px !important; }
}

@media (min-width: 1100px) {
    .footer-main .footer-brand .brand-badge img,
    .footer-main .footer-brand .brand-main-img,
    .footer-main .footer-brand .brand-partner-img { width: 360px !important; max-width: 360px !important; }
}
