:root {
    /* Color Palette */
    --red: #C8102E;           /* Quốc kỳ Đỏ */
    --red-hover: #A00D22;
    --red-glow: rgba(200, 16, 46, 0.4);
    
    --gold: #FFD700;          /* Quốc kỳ Vàng */
    --gold-hover: #E6C200;
    --gold-glow: rgba(255, 215, 0, 0.3);
    
    --blue: #0077b6;          /* Màu xanh quân đội/pháp y */
    --blue-glow: rgba(0, 119, 182, 0.3);
    
    --green: #2a9d8f;         /* Màu xanh lá rà phá bom mìn */
    --green-glow: rgba(42, 157, 143, 0.3);
    
    --dark-bg: #07090e;       /* Nền siêu tối */
    --surface: rgba(20, 26, 42, 0.7); /* Card glassmorphism */
    --surface-2: rgba(30, 39, 62, 0.85); /* Card phụ */
    --surface-solid: #111625;
    
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(200, 16, 46, 0.3);
    
    --text: #F3F4F6;          /* Chữ chính */
    --text-muted: #9CA3AF;    /* Chữ phụ */
    --text-dark: #1F2937;
    
    /* Fonts (Full Vietnamese Unicode support, 100% error-free diacritics) */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Montserrat', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    /* Transitions & Shadows */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --shadow-glow: 0 0 20px rgba(200, 16, 46, 0.2);
}

/* ==========================================
   RESET & BASE STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--dark-bg);
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    /* Background decorative pattern */
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(200, 16, 46, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 40%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   BUTTONS & FORM CONTROLS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--red);
    color: white;
    box-shadow: 0 4px 14px var(--red-glow);
}

.btn-primary:hover {
    background-color: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--red-glow);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--red);
    background-color: rgba(200, 16, 46, 0.1);
    color: white;
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    background-color: #dc2626;
}

.w-full {
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background-color: rgba(10, 15, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 8px var(--gold-glow);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==========================================
   HEADER
   ========================================== */
.main-header {
    background-color: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 12px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.star-icon {
    filter: drop-shadow(0 0 5px var(--gold-glow));
    animation: starPulse 3s infinite alternate ease-in-out;
}

@keyframes starPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 3px var(--gold-glow)); }
    100% { transform: scale(1.08); filter: drop-shadow(0 0 10px var(--gold)); }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: white;
    background: linear-gradient(135deg, #FFF 40%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* ==========================================
   HERO / COUNTDOWN SECTION
   ========================================== */
.hero-section {
    position: relative;
    padding: 100px 0 70px;
    background-image: url('Cover.jpg');
    background-size: cover;
    background-position: 82% 55%;
    background-repeat: no-repeat;
    text-align: center;
    min-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: brightness(1.12) contrast(1.08);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Soft gradient vignette to ensure text contrast while keeping new cover image vivid */
    background: linear-gradient(
        to bottom, 
        rgba(7, 9, 14, 0.65) 0%, 
        rgba(7, 9, 14, 0.25) 35%, 
        rgba(7, 9, 14, 0.40) 70%, 
        rgba(7, 9, 14, 0.95) 100%
    );
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.national-badge {
    background-color: rgba(200, 16, 46, 0.15);
    border: 1px solid var(--red);
    padding: 6px 16px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(200, 16, 46, 0.2);
}

.badge-flag {
    width: 14px;
    height: 10px;
    background-color: var(--red);
    position: relative;
    border-radius: 1px;
}

.badge-flag::after {
    content: '★';
    color: var(--gold);
    font-size: 8px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.badge-text {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #FFE5E5;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 4px 20px rgba(255, 215, 0, 0.40);
    margin-bottom: 10px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out;
}

.hero-lead {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 1px;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.95), 0 0 15px rgba(255, 215, 0, 0.4);
    max-width: 850px;
    margin: 0 auto 35px;
    animation: fadeInUp 1s ease-out;
}

/* Countdown Clock */
.countdown-wrapper {
    background-color: rgba(13, 18, 32, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 25px 40px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    max-width: 800px;
    width: 100%;
}

.countdown-label-top {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.countdown-clock {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.clock-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 110px;
}

.flip-card-container {
    perspective: 400px;
    width: 100%;
}

.flip-card {
    position: relative;
    width: 100%;
    height: 100px;
    background-color: #0f1320;
    border-radius: 12px;
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.6), 
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
}

/* Visual divider split in the center of clock digit */
.flip-card::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 2px;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 5;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.flip-card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-card .number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    letter-spacing: 1px;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* Last card (seconds) can be red for intensity */
#card-seconds .number {
    color: var(--red);
    text-shadow: 0 0 15px rgba(200, 16, 46, 0.4);
}

.clock-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* Progress Tracker */
.campaign-progress-box {
    width: 100%;
    max-width: 800px;
    background-color: rgba(13, 18, 32, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px 30px;
    backdrop-filter: blur(8px);
}

.progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}

#currentDayText {
    color: white;
}

#percentText {
    color: var(--gold);
}

.progress-bar-bg {
    height: 12px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.1, 0.8, 0.2, 1);
    position: relative;
}

.progress-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(
        90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.3) 50%, 
        rgba(255,255,255,0) 100%
    );
    background-size: 200% 100%;
    animation: shimerProgress 2.5s infinite linear;
}

@keyframes shimerProgress {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.timeline-endpoints {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* ==========================================
   DASHBOARD SECTION
   ========================================== */
.dashboard-section {
    padding: 80px 20px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    text-align: center;
    letter-spacing: 1px;
    color: white;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.dashboard-card {
    background-color: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--transition);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8), var(--shadow-glow);
}

/* Custom theme lines for cards */
#card-quytap { border-top: 4px solid var(--red); --border-hover: rgba(200, 16, 46, 0.4); --shadow-glow: 0 0 20px rgba(200, 16, 46, 0.15); }
#card-adn { border-top: 4px solid var(--gold); --border-hover: rgba(255, 215, 0, 0.3); --shadow-glow: 0 0 20px rgba(255, 215, 0, 0.12); }
#card-luutru { border-top: 4px solid var(--blue); --border-hover: rgba(0, 119, 182, 0.4); --shadow-glow: 0 0 20px rgba(0, 119, 182, 0.15); }
#card-bommin { border-top: 4px solid var(--green); --border-hover: rgba(42, 157, 143, 0.4); --shadow-glow: 0 0 20px rgba(42, 157, 143, 0.15); }

.card-header {
    padding: 24px 24px 15px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-wrapper.red-theme { background-color: rgba(200, 16, 46, 0.15); color: var(--red); }
.card-icon-wrapper.gold-theme { background-color: rgba(255, 215, 0, 0.1); color: var(--gold); }
.card-icon-wrapper.blue-theme { background-color: rgba(0, 119, 182, 0.15); color: var(--blue); }
.card-icon-wrapper.green-theme { background-color: rgba(42, 157, 143, 0.15); color: var(--green); }

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
}

.card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 2px;
}

.card-tag.red-theme { background-color: rgba(200, 16, 46, 0.12); color: #FFA3A3; }
.card-tag.gold-theme { background-color: rgba(255, 215, 0, 0.08); color: #FFEBA3; }
.card-tag.blue-theme { background-color: rgba(0, 119, 182, 0.12); color: #90E0EF; }
.card-tag.green-theme { background-color: rgba(42, 157, 143, 0.12); color: #A8DADC; }

.card-body {
    padding: 24px;
    flex-grow: 1;
}

/* Metric Display styles */
.main-metric {
    background-color: rgba(10, 15, 30, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}

.metric-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.metric-value-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.metric-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.metric-unit {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
}

.text-red { color: #FFA3A3; text-shadow: 0 0 10px rgba(200, 16, 46, 0.2); }
.text-gold { color: #FFEBA3; text-shadow: 0 0 10px rgba(255, 215, 0, 0.15); }
.text-blue { color: #90E0EF; text-shadow: 0 0 10px rgba(0, 119, 182, 0.2); }
.text-green { color: #A8DADC; text-shadow: 0 0 10px rgba(42, 157, 143, 0.2); }

.double-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.mini-card {
    background-color: rgba(10, 15, 30, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-radius: 8px;
}

.mini-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 2px;
}

.mini-val {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
}

/* Sub-metrics listing styling */
.sub-metrics-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.sub-metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #E5E7EB;
}

.sub-metric-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sub-metric-item.highlight {
    background-color: rgba(200, 16, 46, 0.05);
    border: 1px solid rgba(200, 16, 46, 0.15);
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 5px;
}

.sub-metric-item.highlight-blue {
    background-color: rgba(0, 119, 182, 0.05);
    border: 1px solid rgba(0, 119, 182, 0.15);
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 5px;
}

.sub-metric-val {
    font-weight: 700;
    color: white;
    font-family: var(--font-sans);
}

/* Progress Section inside Card */
.progress-ring-section {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.progress-bar-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.progress-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: #D1D5DB;
}

.progress-mini-bar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.progress-mini-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 1s ease-out;
}

.bg-red { background-color: var(--red); box-shadow: 0 0 8px var(--red-glow); }
.bg-gold { background-color: var(--gold); box-shadow: 0 0 8px var(--gold-glow); }
.bg-blue { background-color: var(--blue); box-shadow: 0 0 8px var(--blue-glow); }
.bg-green { background-color: var(--green); box-shadow: 0 0 8px var(--green-glow); }

.mini-bar-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* System Alerts style */
.info-alert-box {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    background-color: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.info-alert-box svg {
    color: var(--blue);
    flex-shrink: 0;
    margin-top: 2px;
}

.card-footer {
    background-color: rgba(10, 15, 30, 0.3);
    padding: 12px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.update-ts {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================
   TIMELINE SECTION
   ========================================== */
.timeline-section {
    position: relative;
    padding: 20px 20px 100px;
    overflow: hidden;
}

.timeline-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/images/chrysanthemum_accent.png');
    background-repeat: repeat-y;
    background-position: center top;
    background-size: 800px auto;
    opacity: 0.10; /* Exactly 10% opacity as requested */
    pointer-events: none;
    z-index: 0;
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--red) 0%, var(--gold) 50%, var(--border) 100%);
    transform: translateX(-50%);
}

.timeline-loading {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 40px;
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 40px;
    padding: 0 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: timelineFadeIn 0.6s forwards;
}

@keyframes timelineFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

/* Timeline center bullets */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #0f1320;
    border: 3px solid var(--border);
    top: 10px;
    z-index: 10;
    transition: var(--transition);
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

.timeline-item:nth-child(odd)::after {
    right: -8px;
}

/* Node Types style */
.timeline-item.type-milestone::after { border-color: var(--gold); box-shadow: 0 0 10px var(--gold-glow); background-color: var(--gold); }
.timeline-item.type-quytap::after { border-color: var(--red); box-shadow: 0 0 8px var(--red-glow); }
.timeline-item.type-adn::after { border-color: var(--blue); }
.timeline-item.type-bommin::after { border-color: var(--green); }

.timeline-card {
    background-color: var(--surface-2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
}

.timeline-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.timeline-date {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--gold);
    padding: 3px 8px;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.timeline-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.timeline-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Timeline responsive nodes connector arrows */
.timeline-card::before {
    content: '';
    position: absolute;
    top: 12px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(even) .timeline-card::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--surface-2) transparent transparent;
}

.timeline-item:nth-child(odd) .timeline-card::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--surface-2);
}

/* ==========================================
   FOOTER SECTION
   ========================================== */
.main-footer {
    position: relative;
    padding: 200px 0 40px;
    background-image: url('Footer.avif');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    border-top: 1px solid rgba(255, 215, 0, 0.25);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    overflow: hidden;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
}

.footer-overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Smooth top gradient fade starting from dark background down into clear mother's face photo */
    background: linear-gradient(
        to bottom, 
        var(--dark-bg) 0%, 
        rgba(7, 9, 14, 0.60) 20%, 
        rgba(7, 9, 14, 0.08) 45%, 
        rgba(7, 9, 14, 0.85) 100%
    );
    z-index: 1;
}

.footer-container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-bottom: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.admin-footer-btn {
    background: rgba(20, 26, 42, 0.85);
    border: 1px solid rgba(255, 215, 0, 0.4);
    color: var(--gold);
    padding: 10px 26px;
    border-radius: 30px;
    margin-bottom: 18px;
    font-size: 0.9rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
}

.admin-footer-btn:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.5px;
}

/* ==========================================
   MODAL DIALOG (ADMIN PANEL)
   ========================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background-color: var(--surface-solid);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
    transform: translateY(30px);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.modal-overlay.open .modal-card {
    transform: translateY(0);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--red);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

.hidden {
    display: none !important;
}

/* Authentication Screen */
.auth-body {
    max-width: 400px;
    margin: 40px auto;
    text-align: center;
}

.auth-message {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    display: block;
    margin-top: 5px;
    text-align: left;
}

/* Main Admin Screen with Tabs */
.admin-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 2px;
}

/* Webkit scrollbar for tabs scroll */
.admin-tabs::-webkit-scrollbar {
    height: 4px;
}
.admin-tabs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.tab-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 10px 16px;
    font-weight: 600;
    font-family: var(--font-sans);
    cursor: pointer;
    font-size: 0.88rem;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    color: white;
}

.tab-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Admin forms grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 20px;
    margin-bottom: 20px;
}

/* Timeline event manager */
.timeline-editor h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gold);
}

.events-list-admin {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 250px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Scrollbar styling for admin section */
.events-list-admin::-webkit-scrollbar {
    width: 6px;
}
.events-list-admin::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.events-list-admin::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}

.event-item-admin {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.event-info-admin {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.event-title-admin {
    font-weight: 600;
    font-size: 0.88rem;
    color: white;
}

.event-meta-admin {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.event-actions-admin {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* System tab controls */
.system-section {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.system-section h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: white;
}

.system-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.system-btn-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* ==========================================
   RESPONSIVE DESIGN MEDIA QUERIES
   ========================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.2rem;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .hero-section {
        padding: 50px 0 40px;
        background-position: 85% center;
        min-height: 85vh;
        display: flex;
        align-items: flex-start;
    }
    
    .hero-container {
        padding-top: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.1rem;
        margin-top: 5px;
    }
    
    .hero-lead {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }
    
    .countdown-clock {
        gap: 12px;
    }
    
    .clock-group {
        min-width: 70px;
    }
    
    .flip-card {
        height: 70px;
    }
    
    .flip-card .number {
        font-size: 2.2rem;
    }
    
    .countdown-wrapper {
        padding: 15px;
    }
    
    .campaign-progress-box {
        padding: 15px;
    }
    
    .timeline-container::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 45px;
        padding-right: 0;
        text-align: left !important;
    }
    
    .timeline-item::after {
        left: 12px !important;
    }
    
    .timeline-card::before {
        left: -10px !important;
        border-width: 10px 10px 10px 0 !important;
        border-color: transparent var(--surface-2) transparent transparent !important;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   WHITE CHRYSANTHEMUM FLORAL DESIGN SYSTEM
   ========================================== */
.header-floral-badge {
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.7));
    animation: flowerGlow 4s infinite alternate ease-in-out;
}

@keyframes flowerGlow {
    0% { transform: rotate(0deg) scale(1); filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.5)); }
    100% { transform: rotate(10deg) scale(1.1); filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7)); }
}

.hero-corner-flower {
    position: absolute;
    top: 90px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.28;
    transition: var(--transition);
}

.hero-corner-flower.left {
    left: 25px;
    transform: rotate(-15deg);
}

.hero-corner-flower.right {
    right: 25px;
    transform: rotate(15deg) scaleX(-1);
}

.hero-corner-flower img {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.35));
}

.title-decor-flower {
    color: #FFF;
    font-size: 1.2rem;
    vertical-align: middle;
    margin: 0 8px;
    display: inline-block;
    filter: drop-shadow(0 0 8px var(--gold));
    animation: flowerSpin 14s linear infinite;
}

@keyframes flowerSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.badge-flower-icon {
    margin-left: 6px;
    color: var(--gold);
}

.floral-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}

.floral-divider-line {
    height: 1px;
    width: 90px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.floral-header-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.timeline-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.floral-card-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.25);
}

.mini-chrysanthemum {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tribute-banner {
    background: linear-gradient(135deg, rgba(20, 26, 42, 0.95) 0%, rgba(10, 15, 30, 0.98) 100%);
    border-top: 1px solid rgba(255, 215, 0, 0.25);
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    padding: 35px 20px;
    margin: 45px 0;
    position: relative;
    overflow: hidden;
}

.tribute-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    text-align: center;
}

.tribute-flower {
    width: 55px;
    height: 55px;
    object-fit: contain;
    opacity: 0.9;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.45));
}

.tribute-flower.right {
    transform: scaleX(-1);
}

.tribute-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 720px;
}

.tribute-quote {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.25);
}

.tribute-subtext {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-style: italic;
}

@media (max-width: 768px) {
    .hero-corner-flower img {
        width: 80px;
    }
    .tribute-flower {
        display: none;
    }
}

/* ==========================================
   TIMELINE CARD IMAGES & ZOOM MODAL STYLES
   ========================================== */
.timeline-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background-color: #0d1220;
}

.timeline-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-card-image:hover img {
    transform: scale(1.06);
}

.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(7, 9, 14, 0.4);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    transition: opacity 0.3s ease;
}

.timeline-card-image:hover .image-zoom-overlay {
    opacity: 1;
}

.image-zoom-overlay svg {
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
    width: 28px;
    height: 28px;
}

.image-modal-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: zoomIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#modalFullImage {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    object-fit: contain;
}

.image-modal-caption {
    margin-top: 15px;
    color: var(--gold);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    max-width: 600px;
    line-height: 1.4;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

@keyframes zoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

