:root {
    --primary: #2563eb;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray: #64748b;
    --border: #e2e8f0;
    --white: #ffffff;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--dark); background: var(--light); line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Buttons & Utils */
.btn { padding: 10px 24px; border-radius: 50px; font-weight: 600; cursor: pointer; display: inline-block; }
.btn-primary { background: var(--primary); color: white; border: 1px solid var(--primary); }
.btn-primary:hover { background: #1d4ed8; }
.btn-outline { border: 1px solid var(--border); background: white; }
.btn-dark-block { background: var(--dark); color: white; width: 100%; border: none; padding: 14px; border-radius: 8px; font-size: 1rem; }
.btn-block { width: 100%; padding: 12px; text-align: center; }

/* Navbar & Hero (Basic styles from previous context) */
.navbar { background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 70px; }
.brand-logo { font-weight: 700; font-size: 1.5rem; }
.brand-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 30px; }
.nav-actions { display: flex; gap: 10px; }
.hero { padding: 100px 0; text-align: center; background: linear-gradient(to bottom, #eff6ff, white); }
.hero h1 { font-size: 3rem; margin: 20px 0; }
.badge { background: #dbeafe; color: var(--primary); padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

/* --- SECTION 1: COMMUNITY GALLERY --- */
.section-community { padding: 80px 0; background: var(--white); }
.section-header { text-align: center; margin-bottom: 50px; max-width: 600px; margin-left: auto; margin-right: auto; }
.section-header h2 { font-size: 2.2rem; margin-bottom: 15px; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: 250px;
    gap: 20px;
}
.gallery-item { border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-item:hover img { transform: scale(1.05); }

/* --- SECTION 2: GUIDE & FAQ --- */
.section-guide { padding: 80px 0; background: #f1f5f9; }
.guide-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }

/* Timeline Steps */
.timeline { position: relative; padding-left: 20px; margin-top: 30px; }
.timeline-item { display: flex; gap: 20px; margin-bottom: 40px; position: relative; }
.timeline::before {
    content: ''; position: absolute; left: 34px; top: 0; bottom: 0; width: 2px; background: #cbd5e1; z-index: 0;
}
.step-num {
    width: 30px; height: 30px; background: var(--primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: bold; z-index: 1; flex-shrink: 0;
}

/* Accordion */
.accordion-item { background: white; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); overflow: hidden; }
.accordion-header {
    width: 100%; padding: 20px; text-align: left; background: none; border: none;
    font-size: 1rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
}
.accordion-header i { transition: 0.3s; }
.accordion-header.active i { transform: rotate(180deg); }
.accordion-body { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; color: var(--gray); }
.accordion-body p { padding-bottom: 20px; }

/* --- SECTION 3: APPLICATION FORM --- */
.section-application { padding: 80px 0; background: white; }
.app-card {
    display: flex; background: white; border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); border: 1px solid var(--border);
}
.app-info { flex: 1; padding: 60px; background: #fafafa; border-right: 1px solid var(--border); }
.app-form-wrapper { flex: 1.2; padding: 60px; }
.contact-details { margin: 40px 0; }
.detail-row { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; color: var(--gray); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; outline: none; transition: 0.2s; }
.form-group input:focus { border-color: var(--primary); }
.input-suffix-group { display: flex; align-items: center; border: 1px solid #cbd5e1; border-radius: 8px; overflow: hidden; }
.input-suffix-group input { border: none; border-radius: 0; }
.input-suffix-group .suffix { background: #f1f5f9; padding: 12px 15px; color: var(--gray); font-weight: 600; border-left: 1px solid #cbd5e1; }

/* --- AUTH PAGES (Login/Register) --- */
.auth-page { background: #f8fafc; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.auth-card { background: white; padding: 40px; border-radius: 16px; width: 100%; max-width: 450px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.auth-header { text-align: center; margin-bottom: 30px; }
.auth-logo { font-size: 1.5rem; font-weight: 700; display: block; margin-bottom: 20px; color: var(--dark); }
.auth-logo span { color: var(--primary); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.9rem; }
.auth-footer a { color: var(--primary); font-weight: 600; }
.form-actions { display: flex; justify-content: space-between; margin-bottom: 20px; font-size: 0.9rem; }


/* --- Variables & Core --- */
:root {
    --primary: #2563eb;
    --primary-soft: #dbeafe;
    --dark: #0f172a;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
    --text-muted: #64748b;
    --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--dark); background: var(--white); scroll-behavior: smooth; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; border-radius: var(--radius); }

/* Buttons */
.btn { padding: 12px 28px; border-radius: 50px; font-weight: 600; transition: 0.3s; cursor: pointer; display: inline-block; }
.btn-primary { background: var(--primary); color: white; border: none; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3); }
.btn-outline { border: 1px solid var(--border); background: transparent; }
.btn-dark-block { width: 100%; background: var(--dark); color: white; border: none; padding: 16px; border-radius: 12px; font-weight: 600; cursor: pointer; font-size: 1rem; }

/* Navbar */
.navbar { position: fixed; width: 100%; top: 0; background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid var(--border); }
.nav-container { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.brand-logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--dark); }
.brand-logo span { color: var(--primary); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 500; transition: 0.2s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 12px; }

/* Hero */
.hero { padding: 160px 0 80px; text-align: center; background: radial-gradient(circle at 50% 50%, #eff6ff 0%, #ffffff 100%); }
.badge { background: var(--primary-soft); color: var(--primary); padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; }
.hero h1 { font-size: 4rem; margin: 24px 0; letter-spacing: -2px; line-height: 1.1; }
.highlight { color: var(--primary); }
.hero-subtext { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; }

/* --- Stats (Ảnh 4) --- */
.section-stats { padding: 40px 0; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-item h3 { font-size: 2.5rem; color: var(--primary); margin-bottom: 5px; }
.stat-item p { color: var(--text-muted); font-weight: 500; }

/* --- Mission (Ảnh 4) --- */
.section-mission { padding: 100px 0; }
.mission-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; background: var(--bg-light); padding: 60px; border-radius: 32px; }
.sub-label { color: var(--primary); font-weight: 800; font-size: 0.8rem; letter-spacing: 1px; }
.mission-content h2 { font-size: 2.5rem; margin: 20px 0; line-height: 1.2; }
.mission-features { margin-top: 40px; }
.m-feat { display: flex; gap: 20px; margin-bottom: 24px; }
.m-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.icon-green { background: #dcfce7; color: #166534; }
.icon-blue { background: #dbeafe; color: #1e40af; }
.mission-image { position: relative; }
.rating-badge { position: absolute; bottom: 20px; left: -20px; background: rgba(255,255,255,0.8); backdrop-filter: blur(10px); padding: 12px 24px; border-radius: 12px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.rating-badge i { color: #f59e0b; margin-right: 8px; }

/* --- Community (Ảnh 1) --- */
.section-community { padding: 100px 0; text-align: center; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }
.section-header p { color: var(--text-muted); max-width: 700px; margin: 0 auto 60px; }
.community-gallery { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 20px; }
.gallery-col { display: flex; flex-direction: column; gap: 20px; }
.gallery-img { border-radius: var(--radius); overflow: hidden; height: 100%; }
.gallery-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.gallery-img:hover img { transform: scale(1.05); }
.small { height: 200px; }
.large { height: 300px; }
.full { height: 520px; }

/* --- Guide & FAQ (Ảnh 2) --- */
.section-guide { padding: 100px 0; background: var(--bg-light); }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.step-item { display: flex; gap: 24px; margin-top: 32px; }
.s-num { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; flex-shrink: 0; }
.s-1 { background: #0ea5e9; }
.s-2 { background: #a855f7; }
.s-3 { background: #10b981; }
.faq-item { background: white; padding: 24px; border-radius: 12px; margin-top: 16px; border: 1px solid var(--border); }
.faq-q { font-weight: 700; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; cursor: pointer; }
.faq-q i { color: #ef4444; font-size: 0.8rem; }
.faq-a { color: var(--text-muted); font-size: 0.95rem; }

/* --- Apply Card (Ảnh 3) --- */
.section-apply { padding: 100px 0; }
.apply-card { display: grid; grid-template-columns: 1fr 1.2fr; background: white; border-radius: 32px; overflow: hidden; box-shadow: 0 30px 60px -12px rgba(0,0,0,0.1); border: 1px solid var(--border); }
.apply-info { padding: 60px; background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%); }
.contact-line { margin: 20px 0; color: var(--text-muted); font-weight: 500; }
.contact-line i { margin-right: 12px; color: var(--primary); }
.apply-form { padding: 60px; }
.f-group { margin-bottom: 24px; }
.f-group label { display: block; margin-bottom: 8px; font-weight: 600; font-size: 0.9rem; }
.f-group input { width: 100%; padding: 14px; border: 1px solid var(--border); border-radius: 10px; outline: none; transition: 0.2s; }
.f-group input:focus { border-color: var(--primary); }
.sub-input { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.sub-input input { border: none; flex: 1; }
.sub-input span { background: #f1f5f9; padding: 14px; color: var(--text-muted); font-weight: 600; border-left: 1px solid var(--border); }

/* --- Footer --- */
.footer { background: #0f172a; color: #f8fafc; padding: 80px 0 0; }
.footer-content { display: flex; justify-content: space-between; gap: 60px; margin-bottom: 60px; }
.footer-brand { flex: 1; }
.footer-brand .brand-logo { color: white; }
.footer-brand p { color: #94a3b8; margin: 20px 0; max-width: 300px; line-height: 1.7; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; background: #1e293b; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: white; transition: 0.3s; }
.social-links a:hover { background: var(--primary); }
.footer-links-group { flex: 2; display: flex; justify-content: space-between; }
.f-col h4 { margin-bottom: 24px; font-size: 1.1rem; }
.f-col a { display: block; color: #94a3b8; text-decoration: none; margin-bottom: 12px; transition: 0.2s; }
.f-col a:hover { color: white; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 30px 0; text-align: center; color: #64748b; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 992px) {
    .mission-card, .apply-card, .guide-grid, .footer-content { grid-template-columns: 1fr; }
    .community-gallery { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
    .footer-links-group { flex-wrap: wrap; gap: 30px; }
}
/* Responsive */
@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .guide-wrapper { grid-template-columns: 1fr; }
    .app-card { flex-direction: column; }
    .app-info { padding: 30px; border-right: none; border-bottom: 1px solid var(--border); }
    .app-form-wrapper { padding: 30px; }
}