/* Footer CSS - Exact measurements from Figma Design */

/* Footer Container */
.footer {
    background-color: #F8F9FA;
    padding: 40px 240px 80px 240px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Footer Top Row */
.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-social-group {
    display: flex;
    align-items: center;
    gap: 36px;
}

/* Footer Main Content */
.footer-main-content {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

.footer-left-column {
    width: 708px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Footer Top Section */
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.footer-logo {
    width: 137px;
    height: 44px;
}

.footer-logo img {
    width: 137px;
    height: 44px;
    display: block;
}

.footer-logo-img {
    width: 100%;
    height: 100%;
    display: block;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-info p {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--icon-text-primary);
    margin: 0;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-contact h4 {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: var(--icon-text-primary);
    margin: 0;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.footer-contact-item img {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contact-item p,
.footer-contact-item a {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--icon-text-primary);
    margin: 0;
    text-decoration: none;
}

.footer-contact-item a:hover {
    text-decoration: underline;
}

.footer-representative {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--icon-text-primary);
    margin: 0;
}

/* Hide accordion on desktop, show links */
.footer-accordions,
.footer-section {
    display: none;
}

.footer-links {
    flex: 1;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.footer-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.column-title {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: var(--icon-text-primary);
    margin: 0;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-list li {
    margin: 0;
}

.link-list a {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--icon-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-list a:hover {
    color: var(--brand-blue-secondary, #4564ED);
    text-decoration: underline;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 36px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    flex-shrink: 0;
}

.footer-social img {
    width: 52px;
    height: 52px;
    display: block;
    object-fit: contain;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 36px;
}

.social-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
}

.social-icon:hover {
    opacity: 0.8;
}

.social-icon-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.footer-hotline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-hotline img {
    width: 28px;
    height: 28px;
}

.footer-hotline a {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #17BA58;
    text-decoration: none;
    letter-spacing: -0.2px;
}

.hotline-icon {
    width: 28px;
    height: 28px;
}

.hotline-number {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    color: #17BA58;
    letter-spacing: -0.2px;
}

/* Footer Divider */
.footer-divider {
    width: 100%;
    height: 1px;
    background-color: #E7E7E7;
    margin: 16px 0;
}

.footer-certificate {
    width: 120px;
    height: 46px;
}

.footer-certificate img {
    width: 120px;
    height: 46px;
    object-fit: contain;
}

/* Footer Main Content */
.footer-main {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    width: 100%;
}

/* Footer Left Section */
.footer-left {
    width: 708px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-certificates {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-certificates p {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--icon-text-primary);
    margin: 0;
}

.footer-company {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.company-name {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: var(--icon-text-primary);
    margin: 0;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.info-icon {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    flex-shrink: 0;
}

.info-item p,
.info-item a {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--icon-text-primary);
    margin: 0;
    text-decoration: none;
}

.info-item a:hover {
    text-decoration: underline;
}

.representative {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--icon-text-primary);
    margin: 0;
}

/* Footer Right Section - Links */
.footer-links {
    flex: 1;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.footer-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.column-title {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 700;
    line-height: 22px;
    color: var(--icon-text-primary);
    margin: 0;
}

.link-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.link-list li {
    margin: 0;
}

.link-list a {
    font-family: var(--font-family);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--icon-text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-list a:hover {
    color: var(--brand-blue-secondary, #4564ED);
    text-decoration: underline;
}

/* Footer Badge */
.footer-badge {
    width: 120px;
    height: 46px;
}

.badge-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1680px) {
    .footer {
        padding: 40px 120px 80px 120px;
    }
}

@media (max-width: 1440px) {
    .footer {
        padding: 40px 80px 80px 80px;
    }
}

@media (max-width: 1200px) {
    .footer {
        padding: 40px 40px 80px 40px;
    }

    .footer-left {
        width: auto;
        max-width: 600px;
    }
}

/* iPad Pro 12.9" */
@media (min-width: 1024px) and (max-width: 1366px) {
    .footer {
        padding: 40px 60px 120px 60px;
    }

    .footer-left {
        width: 650px;
    }

    .footer-links {
        gap: 20px;
    }

    /* Keep footer-social-group horizontal */
    .footer-top-row {
        flex-direction: row;
        align-items: center;
    }

    .footer-social-group {
        flex-direction: row;
        gap: 32px;
    }

    /* Keep social icons horizontal on iPad Pro */
    .social-icons {
        flex-direction: row;
        gap: 36px;
    }

    .social-icon,
    .social-icon-img {
        width: 52px;
        height: 52px;
    }
}

/* iPad Landscape (11" and 10.9") */
@media (min-width: 835px) and (max-width: 1194px) {
    .footer {
        padding: 40px 50px 100px 50px;
    }

    .footer-main-content {
        gap: 20px;
    }

    .footer-left-column,
    .footer-left {
        width: 550px;
    }

    .footer-links {
        gap: 16px;
    }

    .footer-column {
        gap: 6px;
    }

    /* Keep footer-social-group horizontal */
    .footer-top-row {
        flex-direction: row;
        align-items: center;
    }

    .footer-social-group {
        flex-direction: row;
        gap: 28px;
    }

    /* Keep social icons horizontal on iPad Landscape */
    .social-icons {
        flex-direction: row;
        gap: 32px;
    }

    .social-icon,
    .social-icon-img {
        width: 50px;
        height: 50px;
    }
}

/* iPad Portrait */
@media (min-width: 768px) and (max-width: 834px) and (orientation: portrait) {
    .footer {
        padding: 40px 40px 100px 40px;
        gap: 32px;
    }

    .footer-main-content {
        flex-direction: column;
        gap: 32px;
    }

    .footer-left-column,
    .footer-left {
        width: 100%;
        max-width: 100%;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        width: 100%;
    }

    .footer-column {
        gap: 8px;
    }

    /* Keep footer-social-group horizontal */
    .footer-top-row {
        flex-direction: row;
        align-items: center;
    }

    .footer-social-group {
        flex-direction: row;
        gap: 24px;
    }

    /* Keep social icons horizontal on iPad */
    .footer-social {
        flex-direction: row;
        justify-content: flex-start;
    }

    .social-icons {
        flex-direction: row;
        gap: 28px;
    }

    .social-icon,
    .social-icon-img {
        width: 48px;
        height: 48px;
    }
}

/* Mobile only - not iPad */
@media (max-width: 767px) {
    .footer {
        padding: 40px 20px 60px 20px;
        gap: 32px;
    }

    .footer-top {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .footer-top-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-social-group {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-social {
        width: 100%;
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }

    .social-icons {
        gap: 24px;
    }

    .social-icon,
    .social-icon-img {
        width: 44px;
        height: 44px;
    }

    .footer-main {
        flex-direction: column;
        gap: 32px;
    }

    .footer-left {
        width: 100%;
    }

    .footer-links {
        flex-direction: column;
        gap: 24px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 32px 16px 48px 16px;
    }

    .footer-logo {
        width: 120px;
        height: 38px;
    }

    .hotline-number {
        font-size: 18px;
    }

    .footer-certificates p,
    .info-item p,
    .info-item a,
    .representative,
    .link-list a {
        font-size: 14px;
        line-height: 20px;
    }

    .company-name,
    .column-title {
        font-size: 14px;
        line-height: 20px;
    }

    .social-icons {
        flex-wrap: wrap;
        gap: 16px;
    }

    .social-icon,
    .social-icon-img {
        width: 40px;
        height: 40px;
    }
}
