﻿/* ========================================= */
/* === 現代化三欄式頁尾 (Modern Footer) === */
/* ========================================= */
.modern-footer {
    background-color: #1d3e66;
    color: #ffffff;
    padding-top: 40px;
    margin-top: 60px;
    position: relative;
}

    .modern-footer .footer-container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 40px;
    }

.footer-top-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col {
    position: relative;
}

.footer-col-left::after, .footer-col-center::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 0;
    height: 100%;
    border-right: 1px dashed rgba(255, 255, 255, 0.25);
}

.footer-main-logo {
    max-width: 250px;
    height: auto;
    display: block;
}

.footer-divider-yellow {
    width: 60px;
    height: 2px;
    background-color: var(--primary-yellow);
    margin: 25px 0;
}

.icon-text-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.icon-circle-outline {
    width: 45px;
    height: 45px;
    border: 2px solid var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

    .icon-circle-outline svg {
        width: 22px;
        height: 22px;
    }

.icon-text-row .text-content p {
    margin: 0 0 5px 0;
    font-size: 1.05rem;
    color: #e0e6ed;
    line-height: 1.4;
}

.footer-col-center {
    padding-right: 20px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
}

    .contact-row:first-child {
        padding-top: 0;
    }

    .contact-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

.contact-icon {
    width: 42px;
    height: 42px;
    border: 1px solid #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }

.contact-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

    .contact-info .label {
        font-size: 0.9rem;
        color: #aeb9c7;
        margin-bottom: 4px;
    }

    .contact-info .value {
        font-size: 1.15rem;
        font-weight: 500;
        letter-spacing: 0.5px;
    }

    .contact-info .text-wrap {
        font-size: 0.95rem;
        line-height: 1.4;
    }

.qr-code {
    width: 70px;
    height: 70px;
    background: #fff;
    padding: 4px;
    border-radius: 6px;
    flex-shrink: 0;
}

.org-section {
    margin-bottom: 25px;
}

.org-title {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary-yellow);
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

    .org-title::before {
        content: '';
        width: 6px;
        height: 6px;
        background-color: var(--primary-yellow);
        border-radius: 50%;
    }

    .org-title::after {
        content: '';
        flex-grow: 1;
        height: 1px;
        background-color: rgba(251, 202, 54, 0.4);
    }

.org-logos {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

    .org-logos.vertical {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

.gov-logo {
    max-width: 220px;
    height: auto;
}

.gov-logo-Ph {
    max-width: 160px;
    height: auto;
}

.gov-logo-small {
    max-width: 200px;
    height: auto;
    margin-left: 5px;
}

.normal-logo {
    max-width: 140px;
    height: auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 0.95rem;
    color: #8a9bb2;
}

.back-to-top {
    position: absolute;
    right: 40px;
    bottom: 40px;
    width: 50px;
    height: 50px;
    background-color: #e0e0e0;
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s;
}

    .back-to-top:hover {
        background-color: #ffffff;
    }

@media (max-width: 1100px) {
    .footer-top-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
    }

    .footer-col-left::after, .footer-col-center::after {
        right: -10px;
    }

    .contact-info .value {
        font-size: 1.05rem;
    }

    .qr-code {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 850px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px 0;
        border: none;
    }

    .footer-col-left::after, .footer-col-center::after {
        display: none;
    }

    .footer-col:not(:last-child) {
        padding-bottom: 40px;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.25);
    }

    .footer-col-center {
        padding-right: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
    }
}
