@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0d1222;
    --secondary-color: #1a2235;
    --accent-color: #e58d97;
    --accent-color-2: #8468d9;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    
    /* Professional Navbar Colors */
    --navbar-bg: #ffffff;
    --navbar-text: #1e2022;
    --navbar-hover: #2b5cff;
    
    --glass-bg: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Navbar Theme Option */
[data-theme="dark-nav"] {
    --navbar-bg: #0b0f19;
    --navbar-text: #ffffff;
    --navbar-hover: #00f2fe;
    --glass-bg: rgba(11, 15, 25, 0.95);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-primary);
    overflow-x: hidden;
    margin: 0;
    line-height: 1.5;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    padding-top: 2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 5px rgba(229, 141, 151, 0.4))
            drop-shadow(3px 3px 0px rgba(0, 0, 0, 0.8))
            drop-shadow(0 0 30px rgba(132, 104, 217, 0.4));
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Navbar Redesign */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--glass-border);
}

nav.scrolled {
    padding: 0.8rem 5%;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--navbar-text);
    justify-self: start;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--navbar-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--navbar-hover);
}

/* Dropdown styling */
.nav-item.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-item.dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px) scale(0.95);
    width: 170px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: 3px solid var(--accent-color);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    list-style: none;
    padding: 0.8rem 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

[data-theme="dark-nav"] .dropdown-menu {
    background: rgba(11, 15, 25, 0.98);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    border-top-color: var(--navbar-hover);
}

.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0) scale(1);
}

.dropdown-menu li {
    width: 100%;
    opacity: 0;
    transform: translateY(-8px);
    transition: all 0.3s ease;
}

.nav-item.dropdown:hover .dropdown-menu li {
    opacity: 1;
    transform: translateY(0);
}

.nav-item.dropdown:hover .dropdown-menu li:nth-child(1) { transition-delay: 0.05s; }
.nav-item.dropdown:hover .dropdown-menu li:nth-child(2) { transition-delay: 0.09s; }
.nav-item.dropdown:hover .dropdown-menu li:nth-child(3) { transition-delay: 0.13s; }
.nav-item.dropdown:hover .dropdown-menu li:nth-child(4) { transition-delay: 0.17s; }
.nav-item.dropdown:hover .dropdown-menu li:nth-child(5) { transition-delay: 0.21s; }
.nav-item.dropdown:hover .dropdown-menu li:nth-child(6) { transition-delay: 0.25s; }
.nav-item.dropdown:hover .dropdown-menu li:nth-child(7) { transition-delay: 0.29s; }
.nav-item.dropdown:hover .dropdown-menu li:nth-child(8) { transition-delay: 0.33s; }
.nav-item.dropdown:hover .dropdown-menu li:nth-child(9) { transition-delay: 0.37s; }

.dropdown-menu li a {
    position: relative;
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--navbar-text);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.dropdown-menu li a::before {
    content: '';
    position: absolute;
    left: 50%; bottom: 6px;
    width: 0; height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

.dropdown-menu li a:hover::before {
    width: 40px;
}

.dropdown-menu li a:hover {
    color: var(--navbar-hover);
    letter-spacing: 1.5px;
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark-nav"] .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.85);
}

[data-theme="dark-nav"] .dropdown-menu li a:hover {
    color: var(--navbar-hover);
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark-nav"] .dropdown-menu li a::before {
    background: var(--navbar-hover);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    justify-self: end;
}

/* Language & Settings Buttons */
.icon-btn {
    background: transparent;
    border: none;
    color: var(--navbar-text);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    padding: 8px;
    border-radius: 50%;
}

.icon-btn:hover {
    background: rgba(0,0,0,0.05);
    color: var(--navbar-hover);
}

[data-theme="dark-nav"] .icon-btn:hover {
    background: rgba(255,255,255,0.1);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navbar-text);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
}
.lang-switch:hover {
    background: rgba(0,0,0,0.05);
}
[data-theme="dark-nav"] .lang-switch:hover {
    background: rgba(255,255,255,0.1);
}

/* Button */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(43, 92, 255, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 92, 255, 0.5);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.6;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 15, 25, 0.2), var(--primary-color));
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 0.5s;
}

.hero h1 {
    font-size: 5.5rem;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* Generations Grid Section */
.generations {
    padding: 6rem 5%;
    position: relative;
    background-color: var(--primary-color);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.gen-card {
    position: relative;
    height: 380px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.5s ease, 
                border-color 0.5s ease,
                opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Stagger delay for each card */
.gen-card.reveal:nth-child(1) { transition-delay: 0s; }
.gen-card.reveal:nth-child(2) { transition-delay: 0.08s; }
.gen-card.reveal:nth-child(3) { transition-delay: 0.16s; }
.gen-card.reveal:nth-child(4) { transition-delay: 0.24s; }
.gen-card.reveal:nth-child(5) { transition-delay: 0.32s; }
.gen-card.reveal:nth-child(6) { transition-delay: 0.4s; }
.gen-card.reveal:nth-child(7) { transition-delay: 0.48s; }
.gen-card.reveal:nth-child(8) { transition-delay: 0.56s; }
.gen-card.reveal:nth-child(9) { transition-delay: 0.64s; }

/* Remove delay after animation is done */
.gen-card.reveal.active { transition-delay: 0s; }

.gen-card-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--secondary-color), #212c45);
    z-index: -1;
    transition: var(--transition);
}

.gen-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, transparent 60%);
    z-index: 1;
}

.gen-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    transform: translateY(15px);
    transition: var(--transition);
}

.gen-number {
    font-size: 5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 15px;
    transition: var(--transition);
    z-index: 0;
}

.gen-card h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.gen-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0;
    transition: var(--transition);
}

.gen-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(var(--accent-rgb, 229, 141, 151), 0.15);
    border-color: var(--accent-color, rgba(255,255,255,0.2));
}

.gen-card:hover .gen-card-bg {
    transform: scale(1.03);
}

.gen-card:hover .gen-card-content {
    transform: translateY(0);
}

.gen-card:hover .gen-card-content p {
    opacity: 1;
}

.gen-card:hover .gen-number {
    color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.gen-card-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 70%;
    z-index: 0;
    overflow: hidden;
}

.gen-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: var(--transition);
    filter: brightness(0.8);
}

.gen-card:hover .gen-card-logo img {
    transform: scale(1.05);
    filter: brightness(0.95);
}

/* Settings Modal */
.settings-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.settings-content {
    background: var(--navbar-bg);
    color: var(--navbar-text);
    padding: 2rem;
    border-radius: 16px;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.settings-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--navbar-text);
    transition: transform 0.2s;
}
.close-btn:hover {
    transform: rotate(90deg);
}

.setting-group {
    margin-bottom: 1.2rem;
}

.setting-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.setting-group select, .setting-group input[type="color"] {
    width: 100%;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
}

.setting-group input[type="range"] {
    width: 100%;
    accent-color: var(--accent-color);
}

.setting-value {
    float: right;
    font-weight: 400;
    font-size: 0.85rem;
    opacity: 0.7;
}

.settings-divider {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 1.2rem 0;
}

.settings-reset-btn {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid rgba(255,80,80,0.4);
    background: rgba(255,80,80,0.1);
    color: #ff5050;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
}
.settings-reset-btn:hover {
    background: rgba(255,80,80,0.2);
    border-color: #ff5050;
}

[data-theme="dark-nav"] .setting-group select {
    background: #222; color: #fff; border-color: #444;
}

/* Base Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stats Section */
.stats-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, var(--primary-color), #09153d);
    color: #fff;
    position: relative;
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (min-width: 992px) {
    .stats-grid {
        flex-direction: row;
        align-items: center;
        gap: 0;
    }
}

.stats-header h2 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    /* Sharp Glow effect */
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.5),
                 0 0 40px rgba(255, 255, 255, 0.3);
}

/* Apply sharp glow to other white titles */
.cta-content h2,
.partners-section h2,
.donate-section h2 {
    /* Sharp glow */
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.4),
                 0 0 35px rgba(255, 255, 255, 0.2);
}

/* Seamless Edge Fade Utility */
.smooth-fade-y {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
}

.stats-header p {
    font-size: 1.6rem; /* Tăng từ 1.3rem lên 1.6rem */
    color: rgba(255,255,255,0.9);
    margin-bottom: 3rem;
    line-height: 1.7;
}

.stats-boxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    flex: 1.5;
    z-index: 1;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease,
                background 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.stat-box:hover::before {
    left: 150%;
}

.stat-box:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Coloring specific numbers for pop */
.stat-box:nth-child(1) .stat-number { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%); -webkit-background-clip: text; background-clip: text; }
.stat-box:nth-child(2) .stat-number { background: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%); -webkit-background-clip: text; background-clip: text; }
.stat-box:nth-child(3) .stat-number { background: linear-gradient(135deg, #ffd194 0%, #70e1f5 100%); -webkit-background-clip: text; background-clip: text; }
.stat-box:nth-child(4) .stat-number { background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%); -webkit-background-clip: text; background-clip: text; }

.stat-label {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
}

.stats-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 4rem 3rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 
                inset 0 0 0 1px rgba(255,255,255,0.5);
    color: #0b0f19;
    text-align: center;
    flex: 1;
    z-index: 2;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

@media (min-width: 992px) {
    .stats-card {
        margin-left: -3rem; /* Overlap effect */
    }
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5), 
                0 0 40px rgba(255,255,255,0.2),
                inset 0 0 0 1px rgba(255,255,255,0.8);
}

.stats-card h3 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.stats-card p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA Banner */
.cta-banner {
    position: relative;
    padding: 8rem 5%;
    text-align: center;
    color: #fff;
    background: url('../assets/503278027_1254695753322201_7500022715823705309_n.jpg') center/cover no-repeat;
}

.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(11, 15, 25, 0.85);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: transparent;
    border: 2px solid #fff;
    transition: var(--transition);
}

.btn-outline:hover {
    background: #fff;
    color: #0b0f19;
}

/* Footer Section */
.site-footer {
    background: #fff;
    color: #333;
    padding: 5rem 5% 2rem;
    border-top: 1px solid #eaeaea;
}

[data-theme="dark-nav"] .site-footer {
    background: #0b0f19;
    border-top-color: #222;
    color: #ccc;
}

[data-theme="dark-nav"] .site-footer h4,
[data-theme="dark-nav"] .site-footer strong {
    color: #fff;
}

[data-theme="dark-nav"] .footer-col ul li a,
[data-theme="dark-nav"] .footer-bottom {
    color: #aaa;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.4rem;
    font-weight: 800;
    color: inherit;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 48px;
    border-radius: 50%;
}

.footer-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 1rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #111;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    color: #666;
}

.social-icons {
    display: flex;
    gap: 1.4rem;
    margin-bottom: 1rem;
}

.social-icons a {
    color: #888;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #eaeaea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #888;
}

[data-theme="dark-nav"] .footer-bottom {
    border-top-color: #222;
}

.footer-bottom-links a {
    color: inherit;
    text-decoration: none;
    margin-left: 1rem;
    transition: color 0.3s;
}

.footer-bottom-links a:hover {
    color: var(--accent-color);
}

html {
    scroll-behavior: smooth;
}

section, [id] {
    scroll-margin-top: 90px;
}

/* Highlights Section */
.highlights-section {
    padding: 6rem 5%;
    background: var(--primary-color);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.highlight-card {
    background: rgba(13, 18, 34, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    z-index: 2;
    overflow: hidden; /* Cắt góc ảnh cho khớp viền bo tròn */
}

.highlight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.3);
}

/* Kiểu dáng cho ảnh bìa trên mỗi thẻ highlight */
.card-img-wrapper {
    margin: -2.5rem -2rem 1.5rem -2rem; /* Tràn ảnh ra sát viền thẻ */
    height: 180px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.highlight-card:hover .card-img-wrapper img {
    transform: scale(1.1); /* Zoom ảnh nhẹ khi nhấn vào thẻ */
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight-card h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.highlight-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Partners Section */
.partners-section {
    padding: 6rem 5%;
    background: linear-gradient(135deg, #0a1628 0%, #162040 50%, #0f1d3a 100%);
    text-align: center;
    position: relative;
}
.partners-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(229,141,151,0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(43,92,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* Donate Section */
.donate-section {
    padding: 4rem 5%;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color), #1a2540);
    border-top: 1px solid rgba(255,255,255,0.05);
}
.donate-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}
.donate-section .btn {
    padding: 0.8rem 2.5rem;
    font-size: 1.1rem;
}

.partners-section h2 {
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 3.5rem;
}

/* Marquee Implementation */
.partners-marquee-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 1rem 0;
    margin-bottom: 2rem;
    /* Soft fade on horizontal edges */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-marquee {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
}

.partner-circle {
    transition: transform 0.3s ease;
}
.partner-circle:nth-child(6n+1) { animation: float1 2.4s ease-in-out infinite; }
.partner-circle:nth-child(6n+2) { animation: float2 3.0s ease-in-out 0.3s infinite; }
.partner-circle:nth-child(6n+3) { animation: float3 2.7s ease-in-out 0.7s infinite; }
.partner-circle:nth-child(6n+4) { animation: float1 3.3s ease-in-out 0.1s infinite; }
.partner-circle:nth-child(6n+5) { animation: float2 2.5s ease-in-out 0.5s infinite; }
.partner-circle:nth-child(6n+6) { animation: float3 2.9s ease-in-out 0.9s infinite; }

.partner-circle:hover {
    transform: scale(1.2) rotate(8deg) !important;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    30% { transform: translateY(-15px) rotate(4deg); }
    60% { transform: translateY(5px) rotate(-2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    40% { transform: translate(8px, -12px) rotate(-5deg); }
    70% { transform: translate(-5px, 4px) rotate(3deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-6px, -18px) rotate(3deg); }
    50% { transform: translate(4px, -5px) rotate(-4deg); }
    75% { transform: translate(-3px, -10px) rotate(2deg); }
}

@keyframes scrollMarquee {
    0% { transform: translateX(calc(-50% - 0.75rem)); }
    100% { transform: translateX(0); }
}

@keyframes scrollMarqueeReverse {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.75rem)); }
}

.partner-box {
    background: #fff;
    width: 150px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #111;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    cursor: default;
}

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

.partner-circle {
    background: #fff;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #111;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    text-align: center;
    padding: 10px;
    cursor: default;
}

.partner-circle:hover {
    transform: scale(1.05);
}

.partner-box img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    pointer-events: none;
}

.partner-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    pointer-events: none;
    -webkit-clip-path: circle(50% at 50% 50%);
    clip-path: circle(50% at 50% 50%);
}

/* Inline Card Expansion CSS */
.card-back-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 10;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: background 0.3s;
}

.card-back-btn:hover {
    background: var(--accent-color);
}

.card-back-btn svg {
    width: 20px;
    height: 20px;
}

.card-expanded-content {
    display: none;
    opacity: 0;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: left;
}

.card-date {
    display: inline-block;
    background: rgba(229, 141, 151, 0.15);
    color: var(--accent-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-full-desc {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Custom images inside expanded card */
.card-expanded-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.card-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.card-gallery img {
    margin: 0; /* Override generic margin inside gallery */
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* Expanded state overrides */
.highlight-card.expanded {
    grid-column: 1 / -1;
    cursor: default;
    background: rgba(13, 18, 34, 0.95);
    border-color: var(--accent-color);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: scale(1.02);
    animation: cardPop 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardPop {
    from {
        transform: scale(0.98) translateY(20px);
        opacity: 0.5;
        filter: blur(4px);
    }
    to {
        transform: scale(1.02) translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

.highlight-card.expanded:hover {
    transform: scale(1.02); /* Disable hover scale */
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.highlight-card.expanded .card-img-wrapper {
    height: 350px;
    transition: height 0.4s ease;
}

@media (max-width: 768px) {
    .highlight-card.expanded .card-img-wrapper {
        height: 250px;
    }
}

.highlight-card.expanded .card-short-desc {
    display: none;
}

.highlight-card.expanded .card-expanded-content {
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.1s;
}

.highlight-card.expanded .card-back-btn {
    display: flex;
    opacity: 0;
    animation: fadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Other cards hidden state */
.highlight-card.hidden-card {
    display: none !important;
}

/* Responsive */
@media (max-width: 992px) {
    .stats-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3.5rem; }
    .nav-links { display: none; }
    .stats-boxes { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-buttons { flex-direction: column; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}