* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========== LAYOUT CHUNG: BODY FLEX ĐỂ STICKY FOOTER ========== */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding-top: 100px;   /* header (khoảng 60px) + announcement (khoảng 40px) */
}

/* RIÊNG TRANG TERMS: KHÔNG DÙNG FLEX Ở BODY */
body.terms-page {
    display: block;
    min-height: auto;
}

/* Header Styles */
.header {
    background-color: white;
    border-bottom: 2px solid #224191;
    padding: 15px 0;
    position: fixed;      /* cố định trên cùng */
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(34, 65, 145, 0.05);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 26px;
    font-weight: 700;
    color: #224191 !important;
    text-decoration: none;
    gap: 10px;
    font-family: 'Segoe UI', Arial, sans-serif;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateX(5px);
}

.logo-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(10deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #224191;
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: #224191;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Trạng thái active cho menu */
.nav-menu a.active {
    color: #ff9800;
}

.nav-menu a.active::after {
    width: 100%;
}

/* Announcement bar ngay dưới header, luôn cố định */
.announcement-bar {
    position: fixed;
    top: 72px;            /* ≈ chiều cao header, chỉnh nếu header cao khác */
    left: 0;
    right: 0;
    z-index: 999;
    background-color: #224191;
    color: #fff;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
    padding: 4px 0;
}

/* Track chạy từ PHẢI sang TRÁI */
.announcement-track {
    display: inline-block;
    padding-left: 100%;               /* bắt đầu ngoài màn hình bên phải */
    animation: announcement-scroll 15s linear infinite;
}

.announcement-text {
    padding-right: 100%;              /* kéo dài để chạy hết sang trái */
}

/* Animation: dịch sang TRÁI */
@keyframes announcement-scroll {
    0% {
        transform: translateX(0);      /* bắt đầu bên phải (nhờ padding-left: 100%) */
    }
    100% {
        transform: translateX(-100%);  /* trôi hết sang trái, đến khi biến khỏi khung */
    }
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 5px;
}

.lang-btn {
    background: transparent;
    border: 2px solid #224191;
    color: #224191;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: #224191;
    color: white;
}

.lang-btn.active {
    background: #224191;
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* ========== MAIN CHUNG (CÁC TRANG KHÁC TERMS) ========== */
/* Với layout sticky footer, .main-content là flex item chiếm phần còn lại */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    flex: 1;               /* đẩy footer xuống đáy khi nội dung ít */
}

.page-title {
    font-size: 40px;
    font-weight: 700;
    color: #224191;
    margin-bottom: 30px;
    letter-spacing: -1px;
    white-space: nowrap;
}

.description {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 60px;
    max-width: 1000px;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: linear-gradient(135deg, #4A90E2 0%, #00A6D6 100%);
    border-radius: 8px;
    padding: 40px 30px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    transition: all 0.5s ease;
    opacity: 0;
}

.card:hover::before {
    opacity: 1;
    top: -60%;
    right: -60%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 166, 214, 0.3);
}

.card-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.card-title::before {
    content: '';
    width: 30px;
    height: 2px;
    background: white;
    display: block;
    margin-bottom: 15px;
}

.card-description {
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Members Section */
.members-section {
    margin: 80px 0;
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.members-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00A6D6, transparent);
}

.members-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00A6D6, transparent);
}

.members-section .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 60px;
    position: relative;
}

.members-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #00A6D6;
    border-radius: 2px;
}

.members-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.members-track {
    display: flex;
    animation: scroll-members 30s linear infinite;
    width: fit-content;
}

.member-item {
    flex: 0 0 auto;
    padding: 0 20px;
}

.member-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 166, 214, 0.2);
    background: #ffffff;
}

/* Ảnh chân dung 3x4 thay cho logo */
.member-logo {
    width: 200px;
    height: 126px;
    object-fit: cover;
    opacity: 0.9;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.member-box:hover .member-logo {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll-members {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Partners Section */
.partners-section {
    margin: 80px 0;
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.partners-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00A6D6, transparent);
}

.partners-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00A6D6, transparent);
}

.section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 60px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #00A6D6;
    border-radius: 2px;
}

.partners-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.partners-track {
    display: flex;
    animation: scroll-left 30s linear infinite;
    width: fit-content;
}

.partner-item {
    flex: 0 0 auto;
    padding: 0 30px;
}

.partner-box {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-box:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 10px 30px rgba(0, 166, 214, 0.15);
}

.partner-logo {
    width: 200px;
    height: 126px;
    object-fit: contain;
    opacity: 0.7;
    transition: all 0.3s ease;
    cursor: pointer;
}

.partner-box:hover .partner-logo {
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Donation Section */
.donations-section {
    margin: 80px 0;
    padding: 80px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.donations-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00A6D6, transparent);
}

.donations-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00A6D6, transparent);
}

.donations-section .section-title {
    text-align: center;
    font-size: 36px;
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 60px;
    position: relative;
}

.donations-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #00A6D6;
    border-radius: 2px;
}

.donations-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.donations-track {
    display: flex;
    animation: scroll-donations 30s linear infinite;
    width: fit-content;
}

.donations-item {
    flex: 0 0 auto;
    padding: 0 20px;
}

.donations-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.donations-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 166, 214, 0.2);
    background: #ffffff;
}

.donations-logo {
    width: 200px;
    height: 126px;
    object-fit: contain;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.donations-box:hover .donations-logo {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll-donations {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========== FOOTER (KHÔNG FIXED, ĐỂ FLEX ĐẨY XUỐNG) ========== */
.footer {
    background-color: white;
    color: #333;
    padding: 12px 0;
    margin-top: 60px;
    border-top: 2px solid #224191;
    box-shadow: 0 -2px 10px rgba(34, 65, 145, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-center {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.footer-bottom {
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    color: #224191 !important;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.footer-logo:hover {
    transform: translateX(5px);
}

.footer-logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-icon {
    transform: rotate(10deg);
}

.footer-description {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 15px;
}

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 3px 8px;
    border-radius: 20px;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 8px;
    right: 8px;
    height: 1px;
    background: #224191;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.footer-links a:hover {
    color: #224191;
    background-color: rgba(34, 65, 145, 0.05);
}

.footer-links a:hover::after {
    transform: scaleX(1);
}

.footer-links a.active {
    color: #224191;
    background-color: rgba(34, 65, 145, 0.1);
}

/* Language change notification */
.lang-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: rgba(0, 166, 214, 0.95);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(0, 166, 214, 0.3);
    backdrop-filter: blur(10px);
}

body.lang-zh {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* Ensure logo font weight and color are consistent across languages */
.logo,
.footer-logo {
    color: #224191 !important;
}

body.lang-zh .logo,
body.lang-zh .footer-logo {
    font-weight: 700;
    font-family: 'Segoe UI', Arial, sans-serif;
}

/* Add header scroll effect */
.header.scrolled {
    box-shadow: 0 4px 20px rgba(34, 65, 145, 0.1);
}

/* ===================== PUBLICATIONS TABLE ===================== */

.publications-table-wrapper {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    overflow-x: auto;
}

.publications-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.publications-table thead {
    background: linear-gradient(90deg, #e0ecff, #d3f0ff);
}

.publications-table th,
.publications-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.publications-table th {
    font-weight: 600;
    font-size: 13px;
    color: #1f2933;
    white-space: nowrap;
}

.publications-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.publications-table tbody tr:hover {
    background-color: #eef2ff;
}

.publications-table.rounded thead tr:first-child th:first-child {
    border-top-left-radius: 4px;
}
.publications-table.rounded thead tr:first-child th:last-child {
    border-top-right-radius: 4px;
}
.publications-table.rounded tbody tr:last-child td:first-child {
    border-bottom-left-radius: 4px;
}
.publications-table.rounded tbody tr:last-child td:last-child {
    border-bottom-right-radius: 4px;
}

.publications-table td:nth-child(1) {
    width: 60px;
    text-align: center;
    white-space: nowrap;
}

.publications-table a {
    color: #2563eb;
    text-decoration: underline;
}

.publications-table a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .publications-table {
        font-size: 13px;
    }
}

/* ===================== OPEN-SOURCE TABLE ===================== */

.open-source-table-wrapper {
    max-width: 1200px;
    margin: 0 auto 40px auto;
    overflow-x: auto;
}

.open-source-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}

.open-source-table thead {
    background: linear-gradient(90deg, #e8f5e9, #e3f2fd);
}

.open-source-table th,
.open-source-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

.open-source-table th {
    font-weight: 600;
    font-size: 13px;
    color: #1f2933;
    white-space: nowrap;
}

.open-source-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.open-source-table tbody tr:hover {
    background-color: #eef2ff;
}

.open-source-table.rounded thead tr:first-child th:first-child {
    border-top-left-radius: 12px;
}
.open-source-table.rounded thead tr:first-child th:last-child {
    border-top-right-radius: 12px;
}
.open-source-table.rounded tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}
.open-source-table.rounded tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

.open-source-table td:nth-child(1),
.open-source-table th:nth-child(1) {
    width: 50px;
    text-align: center;
    white-space: nowrap;
}

.open-source-table td:nth-child(2),
.open-source-table th:nth-child(2) {
    width: 24%;
}

.open-source-table td:nth-child(3),
.open-source-table th:nth-child(3) {
    width: 10%;
    white-space: nowrap;
}

.open-source-table td:nth-child(4),
.open-source-table th:nth-child(4) {
    width: 12%;
}

.open-source-table td:nth-child(5),
.open-source-table th:nth-child(5) {
    width: 14%;
}

.open-source-table td:nth-child(6),
.open-source-table th:nth-child(6) {
    width: 10%;
    white-space: nowrap;
}

.open-source-table td:nth-child(7),
.open-source-table th:nth-child(7) {
    width: 15%;
}

.open-source-table td:nth-child(8),
.open-source-table th:nth-child(8) {
    width: 15%;
}

.open-source-table a {
    color: #2563eb;
    text-decoration: underline;
}

.open-source-table a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .open-source-table {
        font-size: 13px;
    }
}

/* ===================== TERMS PAGE STYLES ===================== */

.terms-content {
    min-height: calc(100vh - 200px);
    padding: 60px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.terms-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(34, 65, 145, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 166, 214, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(34, 65, 145, 0.02) 0%, transparent 60%);
    pointer-events: none;
}

.terms-content .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 
        0 10px 30px rgba(34, 65, 145, 0.08),
        0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 2;
    border: 1px solid rgba(34, 65, 145, 0.1);
}

.terms-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 50px 40px 40px 40px;
    border-bottom: 2px solid #224191;
    background: linear-gradient(135deg, rgba(34, 65, 145, 0.02) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 12px 12px 0 0;
    position: relative;
}

.terms-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #224191, #00A6D6);
    border-radius: 2px;
}

.terms-title {
    font-size: 28px;
    font-weight: 600;
    color: #224191;
    margin-bottom: 10px;
    text-align: center;
}

.terms-brand {
    font-size: 36px;
    font-weight: 700;
    color: #224191;
    margin-bottom: 20px;
    text-align: center;
}

.terms-date {
    font-size: 16px;
    color: #666;
    margin-bottom: 0;
    text-align: center;
}

.terms-status,
.terms-intro,
.intro-stats,
.terms-nav,
.nav-description,
.nav-grid {
    display: none;
}

.terms-body {
    margin-bottom: 60px;
    padding: 0 40px;
}

.terms-section {
    margin-bottom: 40px;
    padding: 30px 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    position: relative;
    border-bottom: 1px solid rgba(34, 65, 145, 0.08);
}

.terms-section:last-child {
    border-bottom: none;
}

.terms-section:hover {
    transform: none;
    box-shadow: none;
}

.terms-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #224191;
    margin-bottom: 20px;
    display: block;
    align-items: baseline;
    position: relative;
}

.section-number {
    display: none;
}

.terms-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 25px 0 15px 0;
}

.terms-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 20px 0 10px 0;
}

.terms-section p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
}

.terms-section ul {
    margin: 15px 0;
    padding-left: 20px;
    line-height: 1.6;
}

.terms-section li {
    font-size: 16px;
    color: #333;
    margin-bottom: 8px;
    text-indent: 0;
}

.terms-section strong {
    color: #333;
    font-weight: 600;
}

.service-list {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
}

.service-list li {
    padding-left: 0;
    position: relative;
    margin-bottom: 10px;
}

.service-list li:before {
    display: none;
}

.highlight-box,
.warning-box,
.data-category,
.cookie-type,
.step,
.contact-info,
.commitment-box,
.response-time {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 20px 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
}

.highlight-box::before,
.warning-box::before,
.data-category::before,
.cookie-type::before,
.step::before,
.contact-info::before {
    display: none;
}

.highlight-box h4,
.warning-box h4,
.data-category h4,
.cookie-type h4,
.step h4,
.contact-info h3,
.commitment-box h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.highlight-box ul,
.warning-box ul,
.data-category ul,
.cookie-type ul,
.step ul,
.contact-info ul,
.commitment-box ul {
    padding-left: 20px;
    margin: 10px 0;
}

.step-process {
    margin: 20px 0;
}

.step {
    margin-bottom: 20px;
}

.step h4 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.note {
    background-color: #f8f9fa;
    padding: 15px;
    border-left: 4px solid #ffc107;
    margin: 15px 0;
    font-style: italic;
    color: #666;
    font-size: 16px;
}

.terms-conclusion {
    background: linear-gradient(135deg, rgba(34, 65, 145, 0.02) 0%, rgba(255, 255, 255, 0.8) 100%);
    padding: 40px;
    border-top: 3px solid #224191;
    margin: 60px 0 40px 0;
    box-shadow: none;
    border-radius: 0 0 12px 12px;
    position: relative;
    overflow: visible;
}

.terms-conclusion::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: linear-gradient(90deg, #224191, #00A6D6);
    border-radius: 3px;
}

.divider {
    display: none;
}

.terms-conclusion h3 {
    font-size: 20px;
    margin-bottom: 15px;
    text-align: left;
    color: #333;
    font-weight: 600;
}

.conclusion-list {
    list-style: disc;
    margin: 15px 0 15px 20px;
    padding-left: 0;
}

.conclusion-list li {
    padding-left: 0;
    position: relative;
    margin-bottom: 8px;
    font-size: 16px;
    color: #333;
}

.conclusion-list li::before {
    display: none;
}

.validity-note {
    margin-top: 20px;
    font-style: italic;
    text-align: left;
    color: #666;
    font-size: 16px;
}

.terms-meta {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    border-top: 1px solid rgba(34, 65, 145, 0.1);
    background: rgba(248, 249, 250, 0.5);
    border-radius: 8px;
}

.brandtagline {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #224191;
}

.version-info {
    font-size: 12px;
    color: #666;
    line-height: 1.6;
}

.terms-actions {
    display: none;
}

.reading-progress,
.copy-section-btn,
.terms-notification,
.nav-item.active-section,
.skip-link {
    display: none;
}

.terms-section a {
    color: #224191;
    text-decoration: underline;
}

.terms-section a:hover {
    text-decoration: none;
}

/* ===================== CONTACT CARDS ===================== */

.contact-wrapper {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.contact-title {
    font-size: 24px;
    font-weight: 700;
    color: #224191;
    margin-bottom: 24px;
}

.contact-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e0e6f0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04);
    padding: 32px 40px;
    flex: 1 1 360px;
    min-width: 0;
}

.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

.contact-row + .contact-row {
    margin-top: 14px;
}

.contact-icon {
    font-size: 18px;
    margin-top: 2px;
}

.contact-text a.contact-link {
    color: #224191;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.contact-text a.contact-link:hover {
    color: #ff9800;
}

/* ===================== TRANG THÀNH VIÊN ===================== */

.members-page {
    padding: 2rem 1rem;
}

.members-grid {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.member-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e0e6f0;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04);
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.member-image-container {
    flex: 0 0 120px;
    width: 120px;
    aspect-ratio: 3 / 4;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s ease;
}

.member-image-container:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.member-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #224191;
    margin: 0 0 8px 0;
}

.member-details {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
}

.member-details li {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.member-details .label {
    font-weight: 600;
    color: #224191;
    min-width: 120px;
}

.member-details .value {
    flex: 1;
}

.member-details .value a {
    color: #224191;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.member-details .value a:hover {
    color: #ff9800;
}

/* ===================== HIỆU ỨNG PHÁO HOA ===================== */

.fireworks-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.05);
  opacity: 1;
  transition: opacity 1s ease;
}

.firework {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 
    0 0 10px 2px rgba(255, 255, 255, 0.8),
    0 0 20px 5px rgba(255, 200, 100, 0.7),
    0 0 30px 10px rgba(255, 150, 50, 0.6);
  animation: explode 2s ease-in-out infinite;
}

.firework:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.firework:nth-child(2) { top: 30%; left: 80%; animation-delay: 0.5s; }
.firework:nth-child(3) { top: 70%; left: 20%; animation-delay: 1s; }
.firework:nth-child(4) { top: 50%; left: 50%; animation-delay: 1.5s; }
.firework:nth-child(5) { top: 10%; left: 60%; animation-delay: 0.2s; }
.firework:nth-child(6) { top: 80%; left: 70%; animation-delay: 0.8s; }
.firework:nth-child(7) { top: 40%; left: 30%; animation-delay: 1.2s; }
.firework:nth-child(8) { top: 60%; left: 90%; animation-delay: 0.4s; }
.firework:nth-child(9) { top: 25%; left: 40%; animation-delay: 1.8s; }
.firework:nth-child(10) { top: 75%; left: 50%; animation-delay: 0.6s; }

@keyframes explode {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0;
  }
}

@media (min-width: 769px) {
    .members-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===================== DONATIONS PAGE ===================== */

body.donations-page {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
    padding-top: 100px;
}

.donations-page .page-title {
    font-size: 36px;
    margin-bottom: 24px;
    color: #224191;
}

.donations-page .description {
    max-width: 1000px;
    font-size: 16px;
    color: #555;
}

.donations-page .contact-card .contact-row.qr-row {
    justify-content: center;
}

.donations-page .contact-card .qr-wrapper {
    text-align: center;
}

.donations-page .donation-qr {
    max-width: 120px;
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid #e0e6f0;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    display: block;
    margin: 8px auto 4px;
}

.donations-page .contact-card ul.contact-text {
    list-style: none;
    padding-left: 24px;
    margin: 4px 0 0 0;
}

.donations-page .contact-card ul.contact-text li {
    margin-bottom: 4px;
    position: relative;
}

.donations-page .contact-card ul.contact-text li::before {
    content: '•';
    position: absolute;
    left: -12px;
    color: #224191;
}

.donations-page .donations-section {
    margin-top: 40px;
}

.donations-page .donations-logo {
    width: 200px;
    height: 126px;
    object-fit: cover;
    border-radius: 10px;
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .page-title {
        font-size: 24px;
        font-weight: 700;
        text-align: center;
        white-space: normal;
        line-height: 1.3;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-center {
        margin-bottom: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .partners-track {
        animation-duration: 20s;
    }

    .partner-logo {
        width: 120px;
        height: 75px;
    }

    .members-track {
        animation-duration: 20s;
    }

    .terms-content {
        padding: 40px 0;
    }
    
    .terms-content .container {
        padding: 0 20px;
        margin: 0 15px;
        border-radius: 8px;
    }
    
    .terms-header {
        padding: 30px 20px 25px 20px;
        border-radius: 8px 8px 0 0;
    }
    
    .terms-body {
        padding: 0 20px;
    }
    
    .terms-conclusion {
        padding: 25px 20px;
        border-radius: 0 0 8px 8px;
    }
    
    .terms-brand {
        font-size: 28px;
    }
    
    .terms-title {
        font-size: 22px;
    }
    
    .terms-section {
        padding: 20px 0;
    }
    
    .terms-section h2 {
        font-size: 20px;
    }
    
    .terms-section h3 {
        font-size: 18px;
    }
    
    .terms-section h4 {
        font-size: 16px;
    }
    
    .terms-section p,
    .terms-section li {
        font-size: 15px;
    }
    
    .terms-header {
        padding: 20px 0;
    }
}

/* Smooth Scrolling Enhancement */
html {
    scroll-behavior: smooth;
}

/* ===================== PRINT ===================== */

@media print {
    .header,
    .footer,
    .terms-nav,
    .terms-actions,
    .copy-section-btn,
    .reading-progress {
        display: none;
    }
    
    .terms-content {
        padding: 0;
        min-height: auto;
    }
    
    .terms-content .container {
        max-width: none;
        padding: 0;
    }
    
    .terms-section {
        break-inside: avoid;
        box-shadow: none;
        border: none;
        page-break-inside: avoid;
    }

    .terms-content::before,
    .terms-header::before,
    .terms-intro::before,
    .highlight-box::before,
    .warning-box::before,
    .contact-info::before,
    .terms-conclusion::before {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}