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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --accent: #0ea5e9;
    --bg: #f8fafc;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    --text: #0f172a;
    --text-light: #64748b;
    --text-white: #f8fafc;
    --border: rgba(0,0,0,0.06);
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.05), 0 2px 4px -2px rgba(0,0,0,.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.05), 0 4px 6px -4px rgba(0,0,0,.03);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.05), 0 8px 10px -6px rgba(0,0,0,.03);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all .3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ============ NAVBAR ============ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-container {
    max-width: 1280px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 2rem; height: 72px;
}
.nav-logo {
    font-size: 1.5rem; font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-logo span { font-weight: 400; }
.nav-links { display: flex; gap: .5rem; align-items: center; list-style: none; }
.nav-links a {
    padding: .5rem 1rem; border-radius: var(--radius-sm);
    font-weight: 500; font-size: .9rem; color: var(--text);
}
.nav-links a:hover { background: rgba(26,86,219,.08); color: var(--primary); }
.nav-links a.active { background: var(--primary); color: #fff; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1.4rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; border: none; cursor: pointer; transition: var(--transition); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(26,86,219,.35); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-sm { padding: .4rem .8rem; font-size: .8rem; }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: var(--transition); }

/* ============ HERO ============ */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a56db 100%);
    position: relative; overflow: hidden; padding-top: 72px;
}
.hero::before {
    content: ''; position: absolute; inset: 0;
    background: rgba(15, 23, 42, 0.65); /* Dark overlay */
    z-index: 1;
}
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-content {
    max-width: 1280px; margin: 0 auto; padding: 2rem;
    position: relative; z-index: 1; text-align: center; color: #fff;
}
.hero-badge {
    display: inline-block; padding: .4rem 1.2rem;
    background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px; font-size: .85rem; font-weight: 500;
    backdrop-filter: blur(10px); margin-bottom: 1.5rem;
    animation: fadeInDown .8s ease;
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 900;
    line-height: 1.1; margin-bottom: 1.5rem;
    animation: fadeInUp .8s ease .2s both;
}
.hero h1 .gradient-text {
    background: linear-gradient(135deg, #60a5fa, #38bdf8, #818cf8);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero p {
    font-size: 1.15rem; color: rgba(255,255,255,.75);
    max-width: 600px; margin: 0 auto 2rem;
    animation: fadeInUp .8s ease .4s both;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: fadeInUp .8s ease .6s both; }
.hero-buttons .btn { padding: .8rem 2rem; font-size: 1rem; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

/* ============ SECTIONS ============ */
.section { padding: 5rem 2rem; max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: .5rem; }
.section-header p { color: var(--text-light); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-badge {
    display: inline-block; padding: .3rem 1rem; border-radius: 50px; font-size: .8rem;
    font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
    background: rgba(26,86,219,.08); color: var(--primary); margin-bottom: 1rem;
}

/* ============ CARDS ============ */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 2rem; }
.card {
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border); overflow: hidden;
    transition: var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.card-img { height: 200px; background: linear-gradient(135deg, var(--primary-dark), var(--accent)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); font-size: 3rem; }
.card-body { padding: 1.5rem; }
.card-body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.card-body p { color: var(--text-light); font-size: .9rem; line-height: 1.6; }
.card-meta { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-size: .8rem; color: var(--text-light); }
.card-badge { padding: .2rem .6rem; border-radius: 50px; font-size: .75rem; font-weight: 600; background: rgba(26,86,219,.08); color: var(--primary); }

/* Feature Cards */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; }
.feature-card {
    background: var(--bg-card); border-radius: var(--radius);
    padding: 2rem; border: 1px solid var(--border);
    transition: var(--transition); text-align: center;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.feature-icon {
    width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 1.2rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, rgba(26,86,219,.1), rgba(14,165,233,.1));
}
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { color: var(--text-light); font-size: .9rem; }

/* Pathway Cards */
.pathway-title { font-size: 2.8rem; font-weight: 900; color: #0f172a; text-align: center; margin-bottom: 3rem; }
.pathway-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.pathway-card {
    background: #ffffff; border-radius: 20px; padding: 2rem 1.5rem; position: relative; overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid rgba(0,0,0,0.04);
    display: flex; flex-direction: column; height: 100%; transition: var(--transition);
}
.pathway-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.pathway-card::before { content: ''; position: absolute; left: 0; top: 2rem; bottom: 2rem; width: 4px; border-radius: 0 4px 4px 0; }
.card-green::before { background-color: #0d9488; }
.card-yellow::before { background-color: #d97706; }
.card-blue::before { background-color: #1e3a8a; }
.card-purple::before { background-color: #64748b; }

.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; position: relative; z-index: 2; }
.card-number { font-weight: 800; font-size: 0.9rem; padding: 0.5rem 1rem; border-radius: 12px; border: 1px solid rgba(0,0,0,0.05); background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.02); }
.card-green .card-number { color: #0d9488; }
.card-yellow .card-number { color: #d97706; }
.card-blue .card-number { color: #1e3a8a; }
.card-purple .card-number { color: #64748b; }

.card-circle { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.04); position: relative; }
.card-circle::after { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(0,0,0,0.04); }

.pathway-card h3 { font-size: 1.5rem; font-weight: 900; color: #0f172a; margin-bottom: 1rem; position: relative; z-index: 2; }
.pathway-card p { color: #64748b; font-size: 0.95rem; line-height: 1.6; flex-grow: 1; margin-bottom: 2.5rem; position: relative; z-index: 2; }

.card-bottom { display: flex; align-items: center; gap: 1rem; position: relative; z-index: 2; }
.bottom-number { font-size: 0.75rem; font-weight: 800; }
.card-green .bottom-number { color: #0d9488; }
.card-yellow .bottom-number { color: #d97706; }
.card-blue .bottom-number { color: #1e3a8a; }
.card-purple .bottom-number { color: #64748b; }
.bottom-line { height: 1px; background: rgba(0,0,0,0.06); flex-grow: 1; }

.card-glow { position: absolute; right: -20px; bottom: -20px; width: 150px; height: 150px; border-radius: 50%; filter: blur(40px); z-index: 1; opacity: 0.6; pointer-events: none; }
.card-green .card-glow { background: #ccfbf1; }
.card-yellow .card-glow { background: #fef3c7; }
.card-blue .card-glow { background: #e0e7ff; }
.card-purple .card-glow { background: #f1f5f9; }

/* ============ PAGE HEADER ============ */
.page-header {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    padding: 8rem 2rem 4rem; text-align: center; color: #fff;
}
.page-header h1 { font-size: 2.5rem; font-weight: 800; margin-bottom: .5rem; }
.page-header p { color: rgba(255,255,255,.7); font-size: 1.05rem; }

/* ============ FORMS ============ */
.form-container {
    max-width: 560px; margin: 0 auto; padding: 3rem;
    background: var(--bg-card); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.form-container.wide { max-width: 720px; }
.form-container h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: .5rem; text-align: center; }
.form-container .subtitle { color: var(--text-light); text-align: center; margin-bottom: 2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; color: var(--text); }
.form-control {
    width: 100%; padding: .7rem 1rem; border: 2px solid var(--border);
    border-radius: var(--radius-sm); font-size: .95rem;
    transition: var(--transition); background: var(--bg);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-footer { margin-top: 1.5rem; }
.form-footer .btn { width: 100%; justify-content: center; padding: .8rem; font-size: 1rem; }
.form-link { text-align: center; margin-top: 1rem; font-size: .9rem; color: var(--text-light); }
.form-link a { color: var(--primary); font-weight: 600; }
.form-link a:hover { text-decoration: underline; }
.validation-error { color: var(--danger); font-size: .8rem; margin-top: .3rem; }
.alert { padding: 1rem 1.5rem; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: .9rem; }
.alert-success { background: rgba(16,185,129,.1); color: #059669; border: 1px solid rgba(16,185,129,.2); }
.alert-danger { background: rgba(239,68,68,.1); color: #dc2626; border: 1px solid rgba(239,68,68,.2); }
.alert-info { background: rgba(14,165,233,.1); color: #0284c7; border: 1px solid rgba(14,165,233,.2); }

/* ============ FEES TABLE ============ */
.fee-group { margin-bottom: 2.5rem; }
.fee-group-header {
    display: flex; align-items: center; gap: 1rem; padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; border-radius: var(--radius) var(--radius) 0 0; font-weight: 700; font-size: 1.1rem;
}
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th {
    padding: .8rem 1.5rem; text-align: left; font-weight: 600;
    font-size: .85rem; text-transform: uppercase; letter-spacing: .5px;
    color: var(--text-light); background: var(--bg); border-bottom: 2px solid var(--border);
}
.fee-table td {
    padding: .8rem 1.5rem; border-bottom: 1px solid var(--border);
    font-size: .95rem;
}
.fee-table tr:hover td { background: rgba(26,86,219,.03); }
.fee-amount { font-weight: 700; color: var(--primary); font-size: 1.05rem; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
.contact-info-card {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: #fff; border-radius: var(--radius); padding: 2.5rem;
}
.contact-info-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-icon { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-item-content h4 { font-size: .9rem; font-weight: 600; margin-bottom: .2rem; }
.contact-item-content p { font-size: .9rem; color: rgba(255,255,255,.7); }
.social-links { display: flex; gap: .8rem; margin-top: 2rem; }
.social-link {
    width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
    transition: var(--transition);
}
.social-link:hover { background: var(--primary); transform: translateY(-2px); }

/* ============ FOOTER ============ */
.footer {
    background: var(--bg-dark); color: rgba(255,255,255,.7); padding: 4rem 2rem 2rem;
}
.footer-content {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-top: .5rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .5rem; }
.footer-links a { font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); padding-left: 4px; }
.footer-bottom {
    max-width: 1280px; margin: 3rem auto 0; padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
    text-align: center; font-size: .85rem;
}

/* ============ ADMIN ============ */
.admin-layout { display: flex; min-height: 100vh; padding-top: 72px; }
.admin-sidebar {
    width: 260px; background: var(--bg-dark); color: #fff;
    padding: 2rem 0; position: fixed; top: 72px; bottom: 0; overflow-y: auto;
}
.admin-sidebar h3 { padding: 0 1.5rem; font-size: 1.1rem; margin-bottom: 1.5rem; color: rgba(255,255,255,.5); text-transform: uppercase; font-size: .75rem; letter-spacing: 1px; }
.admin-nav { list-style: none; }
.admin-nav a {
    display: flex; align-items: center; gap: .8rem; padding: .8rem 1.5rem;
    color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 500;
    transition: var(--transition);
}
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.1); color: #fff; }
.admin-main { flex: 1; margin-left: 260px; padding: 2rem; }
.admin-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2rem; }
.admin-header h1 { font-size: 1.8rem; font-weight: 800; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card {
    background: var(--bg-card); border-radius: var(--radius); padding: 1.5rem;
    border: 1px solid var(--border); transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card .stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem; }
.stat-card h3 { font-size: .85rem; color: var(--text-light); font-weight: 500; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--text); }

.data-table { width: 100%; border-collapse: collapse; background: var(--bg-card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.data-table th { padding: 1rem 1.5rem; text-align: left; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; color: var(--text-light); background: var(--bg); border-bottom: 2px solid var(--border); }
.data-table td { padding: .8rem 1.5rem; border-bottom: 1px solid var(--border); font-size: .9rem; }
.data-table tr:hover td { background: rgba(26,86,219,.02); }
.actions { display: flex; gap: .5rem; }

/* ============ CHILDREN SECTION ============ */
.children-section { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.5rem; margin: 1rem 0; }
.children-section h4 { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; color: var(--primary); }
.child-entry { padding: 1rem; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: .8rem; }
.child-entry:last-child { margin-bottom: 0; }

/* ============ ABOUT ============ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 4rem; }
.about-content h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.about-content p { color: var(--text-light); line-height: 1.8; margin-bottom: 1rem; }
.about-image {
    border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-dark), var(--accent));
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,.5); font-size: 4rem;
}
.stats-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
    padding: 3rem; background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: var(--radius); text-align: center; color: #fff;
}
.stats-bar .stat h3 { font-size: 2.5rem; font-weight: 900; }
.stats-bar .stat p { font-size: .9rem; opacity: .8; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hamburger { display: block; }
    .nav-links {
        display: none; flex-direction: column; position: absolute;
        top: 72px; left: 0; right: 0; background: #fff;
        padding: 1rem; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    }
    .nav-links.active { display: flex; }
    .hero h1 { font-size: 2rem; }
    .card-grid { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .section { padding: 3rem 1rem; }
}