/* ==========================================================================
   GIAO DIỆN CỔNG THÔNG TIN (PORTAL THEME) - BẢN XANH, ĐỎ, VÀNG
   ========================================================================== */

:root {
    --blue: #1a3a8f;      /* Màu Xanh chủ đạo */
    --blue-dark: #122b6e;
    --red: #da251d;       /* Màu Đỏ chủ đạo */
    --red-dark: #b81f18;
    --yellow: #ffcd00;    /* Màu Vàng nhấn */
    --text-main: #333333;
    --text-light: #666666;
    --border-color: #e5e5e5;
    --bg-gray: #f5f5f5;
    
    --font-ui: 'Roboto', Arial, sans-serif;
    --font-heading: 'Merriweather', 'Times New Roman', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-ui);
    color: var(--text-main);
    line-height: 1.5;
    background-color: #fff;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: color 0.2s;
}
a:hover {
    color: var(--blue);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================= HEADER ================= */
.header-main {
    text-align: center;
    padding: 10px 0;
    background: linear-gradient(to bottom, #FFFF66, #FFFF33, #FFFF00);
    border-bottom: 2px solid var(--blue);
}

.header-flex-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}
.header-spacer {
    width: 150px;
    flex-shrink: 0;
}
.main-title {
    white-space: nowrap;
}
.header-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.logo img {
    height: 85px;
    margin-bottom: 0px;
    transition: transform 0.3s;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.15));
}
.logo img:hover {
    transform: scale(1.05);
}
.brand-titles {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.top-subtitle {
    font-family: 'Roboto', Arial, sans-serif;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 700;
    color: var(--blue);
    margin-bottom: 2px;
    -webkit-text-stroke: 0;
    text-shadow: none;
    letter-spacing: 1px;
}
.main-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 55px;
    font-weight: bold;
    color: var(--red);
    margin: 0;
    -webkit-text-stroke: 1.5px var(--red);
    text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 1px;
    line-height: 1;
}
.title-divider {
    display: none;
}
.date-time {
    font-size: 13px;
    color: #555;
    margin-top: 5px;
    font-style: italic;
}

/* ================= NAV MENU ================= */
.main-nav {
    background: var(--blue); /* Thanh menu màu Xanh */
    border-bottom: 3px solid var(--red); /* Viền đỏ phía dưới */
}
.nav-list {
    display: flex;
    justify-content: center;
    list-style: none;
}
.nav-list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 20px;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    color: #ffffff; /* Chữ trắng */
}
.nav-list li a:hover, .nav-list li a.active {
    color: var(--yellow); /* Hover màu vàng */
    background: var(--blue-dark);
}
.nav-list li a.active {
    position: relative;
}
.nav-list li a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--yellow);
}

/* ================= DROPDOWN MENU ================= */
.has-dropdown {
    position: relative;
}
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 240px;
    z-index: 100;
    border-top: 3px solid var(--red);
    padding: 0;
}
.has-dropdown:hover .dropdown-menu {
    display: block;
}
.nav-list li.has-dropdown ul.dropdown-menu li a {
    color: var(--text-main) !important;
    padding: 12px 20px;
    text-transform: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    background: transparent;
    display: block;
}
.nav-list li.has-dropdown ul.dropdown-menu li a::after {
    display: none;
}
.nav-list li.has-dropdown ul.dropdown-menu li a:hover {
    background: var(--bg-gray) !important;
    color: var(--blue) !important;
}

/* ================= UTILITY BAR ================= */
.utility-bar {
    background: var(--bg-gray);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}
.utility-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-box {
    display: flex;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    overflow: hidden;
    width: 300px;
}
.search-box input {
    border: none;
    padding: 8px 12px;
    flex: 1;
    outline: none;
}
.search-box button {
    background: var(--blue);
    color: #fff;
    border: none;
    padding: 0 15px;
    cursor: pointer;
}
.utility-links {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 13px;
}
.utility-links a {
    color: var(--blue);
    font-weight: 500;
}

/* ================= BIG BANNER ================= */
.red-banner {
    background: var(--red);
    background: linear-gradient(90deg, #b81f18 0%, var(--red) 50%, #b81f18 100%);
    color: var(--yellow);
    text-align: center;
    padding: 15px;
    margin-top: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.red-banner img {
    height: 40px;
}

/* ================= MAIN LAYOUT (3 COLUMNS) ================= */
.main-content {
    margin-top: 30px;
    display: grid;
    grid-template-columns: 2.2fr 1.3fr 1fr; /* Left, Middle, Right */
    gap: 25px;
    margin-bottom: 40px;
}

/* LEFT COLUMN - FEATURED ARTICLE */
.col-featured .featured-title {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--blue);
    margin-bottom: 15px;
    line-height: 1.3;
}
.col-featured .featured-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    margin-bottom: 15px;
}
.col-featured .featured-excerpt {
    font-size: 15px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}
.featured-sub-list {
    list-style: none;
}
.featured-sub-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 14px;
}
.featured-sub-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background-color: var(--blue);
    border-radius: 1px;
}

/* MIDDLE COLUMN - NEWS LIST */
.col-news-list {
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}
.news-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}
.news-item:last-child {
    border-bottom: none;
}
.news-item-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    position: relative;
    padding-left: 15px;
}
.news-item-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 6px;
    height: 6px;
    background-color: var(--red); /* Đỏ để tạo điểm nhấn */
}
.news-item-title:hover {
    color: var(--blue);
}

/* RIGHT COLUMN - SIDEBAR */
.col-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
    z-index: 50;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}
.widget {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px; /* Tùy chọn: Làm mềm góc */
}
.widget-title {
    font-family: var(--font-heading);
    font-size: 16px;
    text-transform: uppercase;
    text-align: center;
    border-bottom: 2px solid var(--blue);
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: var(--blue);
}
.widget-map img {
    width: 100%;
    border: 1px solid var(--border-color);
}
.widget-box {
    background: var(--blue);
    color: #fff;
    padding: 20px;
    text-align: center;
}
.widget-box h4 {
    margin-top: 15px;
    font-size: 16px;
    color: var(--yellow);
}

/* ================= SOCIAL BUTTONS ================= */
.social-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}
.social-btn {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 50px;
    color: white !important;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
    background: #444; /* Default */
}
.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.social-btn svg {
    width: 22px;
    height: 22px;
    margin-right: 12px;
    z-index: 2;
    position: relative;
}
.social-btn span {
    z-index: 2;
    position: relative;
    font-size: 15px;
}
.phone-btn { background: #da251d; }
.zalo-btn { background: #0068ff; }
.fb-btn { background: #1877f2; }

/* Hiệu ứng toả sáng vòng tròn (Pulse effect) */
.icon-ring {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.4);
    border-radius: 50%;
    animation: pulse-ring 1.5s infinite;
    z-index: 1;
}
@keyframes pulse-ring {
    0% { transform: translateY(-50%) scale(0.8); opacity: 1; }
    100% { transform: translateY(-50%) scale(2); opacity: 0; }
}

.widget-box {
    background: var(--blue); /* Chuyển nền đỏ thành nền xanh */
    color: #fff;
    padding: 20px;
    text-align: center;
    border-radius: 4px;
    border-bottom: 4px solid var(--yellow); /* Nhấn vàng */
}
.widget-box img {
    width: 80px;
    margin-bottom: 10px;
}
.widget-box h4 {
    text-transform: uppercase;
    font-size: 15px;
    color: var(--yellow);
}

/* ================= SERVICES CARDS ================= */
.services-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--blue);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}
.service-card {
    background: #ffffff;
    padding: 35px 25px;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    z-index: 1;
}
.service-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(26, 58, 143, 0.1);
    border-color: #d8e2ef;
}
.service-card:hover::before {
    transform: scaleX(1);
}
.service-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px auto;
    background: rgba(26, 58, 143, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    background: var(--blue);
    color: #ffffff;
    transform: scale(1.1);
}
.service-icon svg {
    width: 34px;
    height: 34px;
}
.service-title {
    font-family: var(--font-heading);
    color: var(--blue);
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 700;
}
.service-desc {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
}
.service-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f0f4f8;
    color: var(--blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #d8e2ef;
    transition: all 0.3s;
}
.service-card:hover .service-tag {
    background: var(--yellow);
    color: var(--blue);
    border-color: var(--yellow);
}

/* ================= FOOTER ================= */
.footer-portal {
    background: var(--blue); /* Footer chuyển sang nền Xanh */
    color: #ffffff;
    border-top: 4px solid var(--red); /* Viền trên Đỏ */
    padding: 30px 0;
    margin-top: 40px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.footer-col h3 {
    color: var(--yellow); /* Tiêu đề Footer màu Vàng */
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
}
.footer-col p {
    font-size: 13px;
    color: #e0e0e0;
    margin-bottom: 8px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1.5fr 1fr;
    }
    .col-sidebar {
        display: none;
    }
    .utility-links { display: none; }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .col-news-list, .col-sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 20px;
    }
    .nav-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        padding-bottom: 2px;
    }
    .nav-list::-webkit-scrollbar {
        height: 3px;
    }
    .nav-list::-webkit-scrollbar-thumb {
        background: var(--yellow);
    }
    .nav-list li a {
        white-space: nowrap;
        font-size: 13px;
        padding: 12px 10px;
    }
    .top-subtitle {
        font-size: 11px;
        letter-spacing: 0;
        white-space: nowrap;
    }
    .main-title {
        font-size: 32px;
        -webkit-text-stroke: 1px var(--red);
        line-height: 1.2;
    }
    
.header-flex-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}
.header-spacer {
    width: 150px;
    flex-shrink: 0;
}
.main-title {
    white-space: nowrap;
}
.header-inner {
        flex-direction: column;
        gap: 5px;
    }
    .logo img {
        height: 60px;
    }
    
    
    .footer-inner {
        grid-template-columns: 1fr;
    }
}


@keyframes pulse {
    0% { transform: translateY(-50%) scale(1); box-shadow: 0 4px 15px rgba(255,0,0,0.4); }
    50% { transform: translateY(-50%) scale(1.05); box-shadow: 0 6px 20px rgba(255,0,0,0.6); }
    100% { transform: translateY(-50%) scale(1); box-shadow: 0 4px 15px rgba(255,0,0,0.4); }
}

@media (max-width: 768px) {
    .anniversary-badge-right {
        position: static !important;
        transform: none !important;
        margin: 10px auto;
        animation: pulse-mobile 2s infinite !important;
    }
    @keyframes pulse-mobile {
        0% { transform: scale(1); }
        50% { transform: scale(1.05); }
        100% { transform: scale(1); }
    }
}

.anniversary-left {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: auto;
    mix-blend-mode: lighten;
    animation: floatAndGlow 3s ease-in-out infinite;
    z-index: 20;
}

@keyframes floatAndGlow {
    0% { transform: translateY(-50%) scale(1); filter: drop-shadow(0px 0px 5px rgba(255, 215, 0, 0.5)); }
    50% { transform: translateY(-55%) scale(1.05); filter: drop-shadow(0px 10px 15px rgba(255, 215, 0, 0.9)); }
    100% { transform: translateY(-50%) scale(1); filter: drop-shadow(0px 0px 5px rgba(255, 215, 0, 0.5)); }
}

@media (max-width: 768px) {
    .anniversary-left {
        width: 80px;
        left: 5px;
    }
}

.anniversary-corner {
    position: absolute;
    left: -110px; /* Lùi ra sát góc trái hơn */
    top: 50%;
    transform: translateY(-50%);
    width: 140px;
    height: auto;
    mix-blend-mode: multiply;
    animation: cornerPulse 2s infinite;
    z-index: 20;
}

@keyframes cornerPulse {
    0% { transform: translateY(-50%) scale(1); filter: drop-shadow(2px 5px 10px rgba(0,0,0,0.4)) drop-shadow(0px 0px 8px rgba(255,255,255,0.8)); }
    50% { transform: translateY(-50%) scale(1.05); filter: drop-shadow(2px 8px 15px rgba(0,0,0,0.6)) drop-shadow(0px 0px 12px rgba(255,255,255,1)); }
    100% { transform: translateY(-50%) scale(1); filter: drop-shadow(2px 5px 10px rgba(0,0,0,0.4)) drop-shadow(0px 0px 8px rgba(255,255,255,0.8)); }
}
    50% { transform: translateY(-50%) scale(1.05); filter: contrast(1.5) saturate(2.2) drop-shadow(0px 5px 15px rgba(255,0,0,0.9)); }
    100% { transform: translateY(-50%) scale(1); filter: contrast(1.3) saturate(1.8) drop-shadow(0px 0px 8px rgba(255,0,0,0.6)); }
}
    50% { transform: translateY(-50%) scale(1.05); filter: contrast(1.3); }
    100% { transform: translateY(-50%) scale(1); filter: contrast(1.1); }
}

@media (max-width: 768px) {
    .anniversary-corner {
        width: 80px;
        left: -40px;
    }
}

.anniversary-left-container {
    position: absolute;
    left: 15px; /* G?n s�t m�p m�n h�nh */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
}
.anniversary-left-img {
    width: 140px;
    height: auto;
    mix-blend-mode: multiply;
    animation: cornerPulse 2s infinite;
}
.anniversary-left-text {
    color: var(--red);
    font-family: 'Times New Roman', Times, serif;
    font-weight: 900;
    font-size: 13px;
    text-align: center;
    margin-top: 5px;
    text-transform: uppercase;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8); /* Glow effect for text to pop on yellow */
}

@media (max-width: 768px) {
    .anniversary-left-container {
        position: static;
        transform: none;
        margin-bottom: 10px;
    }
}



@media (max-width: 1100px) {
    .premium-anniversary-badge {
        display: flex !important;
        position: relative;
        top: 0;
        left: 0;
        margin: 10px auto;
        flex-direction: row;
        width: auto;
        padding: 5px 15px;
    }
    .premium-anniversary-badge img {
        width: 60px;
        margin-right: 10px;
    }
    .premium-anniversary-badge span {
        margin-top: 0;
        text-align: left;
    }
}

.anniversary-corner {
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: auto;
    mix-blend-mode: multiply;
    animation: cornerPulse 2.5s infinite;
    z-index: 20;
}
@keyframes cornerPulse {
    0% { transform: translateY(-50%) scale(1); filter: contrast(1); }
    50% { transform: translateY(-50%) scale(1.05); filter: contrast(1.2); }
    100% { transform: translateY(-50%) scale(1); filter: contrast(1); }
}
@media (max-width: 768px) {
    .anniversary-corner {
        width: 70px;
        left: -20px;
    }
}

.far-left-badge-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    pointer-events: none;
    width: 150px;
    flex-shrink: 0;
    margin: 10px 0;
}
.far-left-badge-img {
    width: 100px;
    height: auto;
    filter: drop-shadow(2px 5px 10px rgba(0,0,0,0.4)) drop-shadow(0px 0px 8px rgba(255,255,255,0.8));
    animation: cornerPulse 2.5s infinite;
    margin-bottom: -15px;
}
.badge-text {
    color: var(--red);
    font-family: 'Times New Roman', Times, serif;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
    text-shadow: 1px 1px 2px rgba(255,255,255,1), -1px -1px 2px rgba(255,255,255,1);
}
@media (max-width: 900px) {
    .far-left-badge-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    pointer-events: none;
    width: 150px;
    flex-shrink: 0;
    margin: 10px 0;
}
}

/* PREMIUM BANNER STYLES */
.premium-banner {
    background: linear-gradient(135deg, #cc0000 0%, #aa0000 100%);
    padding: 25px 20px !important;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    margin: 15px auto;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.banner-subtitle {
    font-size: 16px;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    z-index: 2;
}
.banner-slogan {
    font-family: 'Times New Roman', Times, serif;
    font-size: 34px !important;
    color: #ffffff !important;
    font-weight: 900;
    letter-spacing: 2px !important;
    margin-bottom: 0 !important;
    text-align: center;
    text-shadow: 2px 3px 5px rgba(0,0,0,0.4);
    z-index: 2;
    line-height: 1.3 !important;
}

/* RESPONSIVE FOR TABLET AND MOBILE */
@media (max-width: 992px) {
    .banner-slogan {
        font-size: 28px !important;
    }
    .banner-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }
}
@media (max-width: 768px) {
    .premium-banner {
        padding: 20px 10px !important;
        margin: 10px auto;
        border-radius: 6px;
    }
    .banner-subtitle {
        font-size: 12px;
        letter-spacing: 1px;
        margin-bottom: 5px;
    }
    .banner-slogan {
        font-size: 20px !important;
        white-space: normal !important;
        letter-spacing: 1px !important;
    }
}

@media (max-width: 1100px) {
    .header-spacer { display: none; }
    .header-flex-wrapper { justify-content: space-evenly; gap: 10px; }
    .main-title { font-size: 40px !important; }
}
@media (max-width: 900px) {
    .header-flex-wrapper { flex-direction: column; text-align: center; }
    .far-left-badge-group { margin: 10px auto; }
}
@media (max-width: 600px) {
    .main-title {
        font-size: 26px !important;
        white-space: normal !important;
        line-height: 1.3 !important;
    }
    .top-subtitle {
        font-size: 14px !important;
    }
    .far-left-badge-group {
        transform: scale(0.85);
        margin: -5px auto !important;
    }
    .logo img {
        height: 60px !important;
    }
    .date-time {
        font-size: 11px !important;
    }
    .header-inner {
        width: 100%;
    }
}