/* ==========================================================================
   AGENCY CUSTOM FOOTER (REFACTORED WITH GLOBAL VARIABLES)
   ========================================================================== */
.agency-custom-footer {
    background-color: var(--midori-accent, #456C35); /* Gọi biến Global Midori Accent */
    color: var(--text-white, #F7F8F9);               /* Gọi biến Text White */
    padding: 70px 0 30px 0;
    font-family: var(--font-sans) !important;        /* Kế thừa Font Hệ thống */
    width: 100% !important;
    overflow: hidden;
    margin-top: -1px !important;
    position: relative;
    z-index: 2;
}

/* KHUNG 5 CỘT DESKTOP */
.af-top-row {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1.4fr 1fr 1.6fr; 
    gap: 30px;
    margin-bottom: 40px;
}

/* Tiêu đề cột */
.af-col-title {
    color: var(--text-white);
    font-size: var(--fs-h5, 18px); /* Kết nối biến font size */
    font-weight: 600;
    margin-bottom: 22px;
    text-transform: none;
    font-family: var(--font-sans); /* Tiêu đề footer lấy font Kodchasan cho sang trọng */
}

/* CỘT 1: Logo & Social */
.af-main-logo {
    max-width: 150px;
    height: auto;
    display: block;
    margin-bottom: 8px;
    transition: var(--transition-base);
}

.af-tagline {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 30px;
    font-family: var(--font-sans); /* Có thể áp dụng Poppins cho Tagline */
}

.af-social-title {
    font-size: var(--fs-body-m, 16px);
    font-weight: 700;
    margin-bottom: 15px;
    font-family: var(--font-sans);
}

.af-icons {
    display: flex;
    gap: 12px;
}

.social-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition-base);
}

.social-circle:hover {
    background-color: var(--text-white);
    color: var(--midori-accent);
}

.social-circle.zalo-icon span {
    font-size: 11px;
    font-weight: 700;
}

/* CỘT 2, 3, 4: Menu Liên kết */
.af-menu { list-style: none; padding: 0; margin: 0; }
.af-menu li { margin-bottom: 14px; }
.af-menu li a { 
    color: rgba(255, 255, 255, 0.85); 
    text-decoration: none; 
    font-size: var(--fs-menu-s, 14.5px); 
    font-weight: 400;
    transition: var(--transition-base); 
    line-height: 1.5;
}
.af-menu li a:hover { color: var(--text-white); padding-left: 5px; }

/* CỘT 5: Thông tin liên hệ text */
.af-contact-info p {
    font-size: var(--fs-body-mobi, 14px);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 12px;
}
.af-contact-info p strong {
    color: var(--text-white);
    font-size: var(--fs-body-s, 15px);
    font-weight: 600;
}

/* ĐÁY FOOTER (Copyright) */
.af-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1); 
    padding-top: 30px;
}

.copyright {
    margin: 0;
    font-size: var(--fs-caption, 13px);
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* =========================================
   RESPONSIVE (TABLET & MOBILE) 
   ========================================= */

@media (min-width: 768px) and (max-width: 1024px) {
    .af-top-row { grid-template-columns: repeat(3, 1fr); gap: 30px; }
    .col-brand { grid-column: 1 / span 3; margin-bottom: 10px; }
    .col-contact { grid-column: 1 / span 3; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px;}
}

@media (max-width: 767px) {
    .af-top-row { grid-template-columns: 1fr; gap: 35px; }
    .af-col { text-align: center; }
    .af-main-logo { margin: 0 auto 8px auto; }
    .af-icons { justify-content: center; }
    .af-menu li a:hover { padding-left: 0; }
    .af-bottom { padding-top: 20px; }
}