/* header-footer.css - Quản lý duy nhất thành phần đóng gói chung toàn trang (Nav & Footer) */

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
nav {
    background-color: var(--light-nav-bg, #144e8c);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; 
    top: 0; 
    z-index: 1000;
    border-radius: 0;
    border-bottom: none;
    box-shadow: 0 8px 24px -10px rgba(0, 0, 0, 0.35);
}

nav::after {
    content: "";
    position: absolute;
    left: 6%;
    right: 6%;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.06) 45%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 12%,
        #000 88%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 12%,
        #000 88%,
        transparent 100%
    );
}
.nav-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; font-weight: 600; align-items: center; flex-wrap: wrap; font-family: 'Lato', sans-serif; }
.nav-links > li { position: relative; }
.nav-links a { color: #FFFFFF; }
.nav-links a.nav-current { color: var(--primary, #f64183); }

.logo {
    text-decoration: none;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    line-height: 1.1;
    font-family: var(--font-heading, Cambria, Georgia, serif);
    font-size: 24px;
    font-weight: 700;
}
.logo img {
    display: block;
    height: 44px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}
.logo:hover img { opacity: 0.88; }
.logo-text {
    display: block;
    color: #FFFFFF;
    font-family: var(--font-heading) !important; /* Đổi về Cambria theo yêu cầu */
    font-size: clamp(1.15rem, 1.6vw, 1.65rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-caret {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    opacity: 0.7;
    margin-top: 2px;
}
.nav-dropdown-menu {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background: #FFFFFF;
    border-radius: var(--radius-sm, 8px);
    box-shadow: 0 10px 30px rgba(31, 42, 68, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1001;
}
.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    font-weight: 600;
    font-size: 0.95em;
    color: var(--dark-navy, #144e8c) !important;
}
.nav-dropdown-menu a:hover {
    background: rgba(222, 79, 122, 0.08);
    color: var(--primary, #f64183);
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(10px);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        position: static;
    }
    .logo {
        justify-content: center;
        gap: 10px;
    }
    .logo img {
        height: 38px;
    }
    .logo-text {
        font-size: clamp(0.95rem, 4vw, 1.2rem);
        white-space: normal;
        text-align: center;
    }
    .nav-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }
    .nav-links > li {
        border-bottom: 1px solid rgba(31, 42, 68, 0.1);
        padding: 8px 0;
    }
    .nav-dropdown-toggle {
        justify-content: space-between;
        width: 100%;
    }
    .nav-dropdown-menu {
        position: static;
        opacity: 0;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.5);
        padding: 0 0 0 12px;
        margin-top: 0;
        border-radius: var(--radius-sm, 8px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.2s ease, opacity 0.2s ease, visibility 0.2s, margin-top 0.2s ease, padding 0.2s ease;
    }
    .nav-dropdown-menu a {
        padding: 8px 12px;
        font-size: 0.9em;
    }
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 320px;
        margin-top: 8px;
        padding: 4px 0 0 12px;
    }
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumb {
    padding: 12px 5%;
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: 500;
    background: #FFFFFF;
    border-bottom: 1px solid rgba(20, 78, 140, 0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.01em;
}

.breadcrumb a {
    color: var(--dark-navy, #144e8c);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 1;
    color: var(--pink, #f64183);
}

.breadcrumb-separator {
    color: #cbd5e1;
    font-size: 1.1em;
    user-select: none;
    font-family: system-ui, -apple-system, sans-serif;
}

.breadcrumb span:last-of-type {
    color: var(--dark-navy, #144e8c);
    font-weight: 700;
    opacity: 0.9;
}

.archive-breadcrumb {
    background: #FFFFFF !important;
}

/* ==========================================================================
   FOOTER (Lấy gradient chuẩn từ About Us)
   ========================================================================== */
.site-footer-wrap { margin-top: 0; }
.site-footer {
    margin-top: 0;
    background-color: var(--dark-navy, #144e8c); /* Thay đổi màu nền giống Header */
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}
.site-footer-inner {
    width: min(100%, 1360px); /* Lấy kích thước theo About Us rộng rãi hơn */
    margin: 0 auto;
}
.site-footer-top {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) minmax(180px, 0.8fr) minmax(280px, 1fr);
    gap: 72px;
    padding: 72px 6% 62px; /* Tỉ lệ padding thoáng như About Us */
    align-items: start;
}
.site-footer-col h4 {
    margin: 0 0 26px;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #FFFFFF;
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
}
.site-footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 42px;
    height: 3px;
    border-radius: 6px;
    background: rgba(255, 182, 217, 0.95);
}
.site-footer-brand p,
.site-footer-contact p,
.site-footer-links a {
    font-size: 1rem;
    line-height: 1.88; /* Dãn thoáng giống bản chuẩn About Us */
    color: rgba(255, 255, 255, 0.82);
    text-align: left !important;
}
.site-footer-brand p {
    max-width: 430px;
    margin: 0 0 32px;
}
.site-footer-brand img {
    display: block;
    height: 88px;
    width: auto;
    filter: brightness(0) invert(1);
}
.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 16px;
}
.site-footer-links a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.site-footer-links a:hover {
    color: #fff;
    opacity: 1;
}
.site-footer-contact {
    max-width: 420px;
}
.site-footer-contact p {
    margin: 0;
}
.site-footer-contact p + p {
    margin-top: 20px;
}
.site-footer-title {
    font-size: 1.04rem;
    font-weight: 700;
    color: #FFFFFF !important;
    white-space: nowrap;
}
.site-footer-email {
    color: #ffb8d0;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    font-weight: 700;
}
.site-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(11, 25, 49, 0.26);
    /* Dòng dưới bỏ display none để hiện viền đen credit */
}
.site-footer-bottom-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 24px 6% 26px;
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.68);
}
.site-footer-bottom-grid p {
    margin: 0;
}
@media (max-width: 1180px) {
    .site-footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 42px;
    }
    .site-footer-col:last-child {
        grid-column: 1 / -1;
    }
}
@media (max-width: 900px) {
    .site-footer-top {
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 42px 5% 34px;
    }
    .site-footer-col:last-child {
        grid-column: auto;
    }
    .site-footer-title {
        white-space: normal;
    }
    .site-footer-bottom-grid {
        flex-direction: column;
        align-items: flex-start;
    }
}
