/* ============================================
   ASPIRANT OS — Blue Professional Design
   Mobile-First Responsive
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:wght@400;500;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #0F2B46;
    --primary-light: #1A3D5C;
    --primary-dark: #091D30;
    --accent: #2563EB;
    --accent-light: #3B82F6;
    --accent-hover: #1D4ED8;
    --gold: #F59E0B;
    --gold-dark: #D97706;
    --secondary: #F59E0B;
    --secondary-light: #FBBF24;
    --dark: #0B1E33;
    --cream: #FFFFFF;
    --parchment: #F1F5F9;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --success: #10B981;
    --danger: #EF4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --radius: 8px;
    --radius-lg: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[x-cloak] { display: none !important; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--gray-900);
    line-height: 1.2;
    font-weight: 700;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: var(--primary); color: rgba(255,255,255,0.8);
    text-align: center; padding: 0.5rem 1rem; font-size: 0.75rem;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; }
.top-bar a { color: var(--accent-light); }

/* ============================================
   NAVIGATION
   ============================================ */
.site-nav {
    background: var(--white); padding: 0 1rem; position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--gray-200); transition: box-shadow 0.2s;
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }
.site-nav-inner {
    max-width: 1100px; margin: 0 auto; display: flex; align-items: center;
    justify-content: space-between; height: 64px;
}
.site-logo { display: flex; align-items: center; gap: 0.625rem; }
.site-logo-text {
    font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.25rem;
    color: var(--primary);
}
.site-logo-text span {
    display: block; font-size: 0.625rem; color: var(--gray-400);
    font-family: 'DM Sans', sans-serif; letter-spacing: 0.06em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-link {
    padding: 0.5rem 1rem; color: var(--gray-600); font-size: 0.8125rem; font-weight: 600;
    transition: color 0.15s;
}
.nav-link:hover, .nav-link.active { color: var(--accent); }
.nav-cta {
    padding: 0.5rem 1.25rem; background: var(--accent); color: var(--white);
    border-radius: var(--radius); font-size: 0.8125rem; font-weight: 600;
    margin-left: 0.5rem; transition: background 0.15s;
}
.nav-cta:hover { background: var(--accent-hover); }
.mobile-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--primary); }
.mobile-menu { display: none; flex-direction: column; padding: 0.5rem 1rem 1rem; background: var(--white); border-top: 1px solid var(--gray-200); }
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { padding: 0.75rem 0; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem;
    border-radius: var(--radius); font-size: 0.875rem; font-weight: 600;
    cursor: pointer; border: none; transition: all 0.2s; text-decoration: none;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-gold { background: var(--gold); color: var(--gray-900); }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 0.9375rem; }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 4rem 1.5rem; }
.container { max-width: 1100px; margin: 0 auto; }
.container-narrow { max-width: 800px; margin: 0 auto; }

/* ============================================
   STAT CARDS
   ============================================ */
.stat-card {
    text-align: center; padding: 1.5rem 1rem; background: var(--white);
    border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
}
.stat-number {
    font-family: 'Playfair Display', serif; font-size: 2.5rem; font-weight: 700;
    color: var(--primary); line-height: 1;
}
.stat-label {
    font-size: 0.75rem; color: var(--gray-500); text-transform: uppercase;
    letter-spacing: 0.06em; margin-top: 0.375rem; font-weight: 600;
}

/* ============================================
   CARDS
   ============================================ */
.feature-card {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    padding: 1.25rem; transition: all 0.2s;
}
.feature-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.feature-icon {
    width: 40px; height: 40px; background: rgba(37,99,235,0.1); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center; color: var(--accent);
    margin-bottom: 0.75rem;
}
.feature-card h3 { font-size: 1rem; margin-bottom: 0.375rem; font-family: 'Playfair Display', serif; }
.feature-card p { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

.event-card {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    overflow: hidden; transition: all 0.2s; text-decoration: none; color: inherit;
}
.event-card:hover { box-shadow: var(--shadow-md); border-color: var(--accent); }
.event-card-meta { font-size: 0.875rem; color: var(--gray-500); display: flex; flex-direction: column; gap: 0.375rem; }

/* ============================================
   POSTS
   ============================================ */
.post-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; }
.post-header { padding: 1rem 1.25rem 0; display: flex; align-items: center; gap: 0.75rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0; }
.avatar-primary { background: var(--primary); color: var(--white); }
.avatar-accent { background: var(--accent); color: var(--white); }
.post-body { padding: 0.75rem 1.25rem; }
.post-actions { display: flex; border-top: 1px solid var(--gray-200); }
.post-actions button {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.375rem;
    padding: 0.625rem; border: none; background: none; font-size: 0.8125rem; font-weight: 600;
    color: var(--gray-400); cursor: pointer;
}
.post-actions button:hover { background: var(--gray-50); color: var(--accent); }

/* ============================================
   FORMS
   ============================================ */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--gray-700); margin-bottom: 0.375rem; }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 0.625rem 0.875rem; border: 1px solid var(--gray-300); border-radius: var(--radius);
    font-size: 0.9375rem; color: var(--gray-900); background: var(--white); outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-textarea { min-height: 80px; resize: vertical; }
.form-hint { font-size: 0.75rem; color: var(--gray-400); margin-top: 0.25rem; }

/* ============================================
   BADGES
   ============================================ */
.badge {
    display: inline-flex; align-items: center; padding: 0.2rem 0.625rem;
    border-radius: 999px; font-size: 0.6875rem; font-weight: 600;
}
.badge-blue { background: rgba(37,99,235,0.1); color: var(--accent); }
.badge-primary { background: var(--primary); color: var(--white); }
.badge-gold { background: rgba(245,158,11,0.1); color: var(--gold-dark); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-green { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-red { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-yellow { background: rgba(245,158,11,0.14); color: var(--gold-dark); }
.badge-orange { background: rgba(234,88,12,0.12); color: #C2410C; }

/* ============================================
   ALERTS & TOAST
   ============================================ */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; font-size: 0.9375rem; }
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.toast-container { position: fixed; top: 1rem; right: 1rem; z-index: 100; }
.toast { padding: 0.75rem 1rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 0.9375rem; animation: slideIn 0.3s ease; min-width: 250px; }
.toast-success { background: var(--primary); color: var(--white); }
.toast-error { background: var(--danger); color: var(--white); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================
   MODALS
   ============================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 50; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal { background: var(--white); border-radius: var(--radius-lg); width: 90%; max-width: 500px; max-height: 85vh; overflow-y: auto; box-shadow: var(--shadow-lg); }
.modal-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--gray-200); font-weight: 600; }
.modal-body { padding: 1.25rem; }

/* ============================================
   TABLES
   ============================================ */
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.625rem 0.875rem; text-align: left; font-size: 0.875rem; border-bottom: 1px solid var(--gray-100); }
th { font-weight: 600; color: var(--gray-500); background: var(--gray-50); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.6875rem; }

/* ============================================
   SIDEBAR (Admin)
   ============================================ */
.sidebar { width: 260px; height: 100vh; background: var(--primary-dark); position: fixed; left: 0; top: 0; z-index: 40; overflow-y: auto; }
.sidebar .logo { padding: 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar .logo h1 { color: var(--white); font-size: 1rem; font-weight: 700; }
.sidebar .logo span { color: var(--accent-light); font-size: 0.625rem; display: block; }
.sidebar nav { padding: 0.75rem 0; }
.sidebar .nav-section { padding: 0.5rem 1.25rem; font-size: 0.625rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.3); margin-top: 0.5rem; }
.sidebar .nav-link { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem 1.25rem; color: rgba(255,255,255,0.6); font-size: 0.875rem; border-left: 3px solid transparent; }
.sidebar .nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.sidebar .nav-link.active { background: rgba(255,255,255,0.1); color: #fff; border-left-color: var(--accent); }
.main-content { margin-left: 260px; min-height: 100vh; }
.topbar-admin { background: var(--white); padding: 0.75rem 1.5rem; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 30; }
.page-content { padding: 1.5rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: var(--primary-dark); padding: 3rem 1.5rem 1.5rem; color: rgba(255,255,255,0.6); }
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,0.6); font-size: 0.8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-links a:hover { color: var(--white); }
.footer-social { display: flex; justify-content: center; gap: 0.5rem; margin-bottom: 1.5rem; }
.footer-social a {
    width: 32px; height: 32px; border: 1px solid rgba(255,255,255,0.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.5);
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem; font-size: 0.8125rem; }

/* ============================================
   SLIDER
   ============================================ */
.slider-container { overflow: hidden; }
.slider-track { display: flex; transition: transform 0.5s ease; }
.slider-item { flex: 0 0 100%; min-width: 0; }
.slider-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-300); cursor: pointer; border: none; }
.slider-dot.active { background: var(--accent); }

/* ============================================
   FAQ
   ============================================ */
.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-lg); margin-bottom: 0.5rem; }
.faq-item button {
    width: 100%; padding: 1rem 1.25rem; display: flex; justify-content: space-between;
    align-items: center; background: none; border: none; cursor: pointer; text-align: left;
    font-size: 1rem; font-weight: 600; color: var(--gray-800);
}
.faq-item p { padding: 0 1.25rem 1rem; font-size: 0.9375rem; color: var(--gray-500); line-height: 1.7; }

/* ============================================
   CONTACT
   ============================================ */
.contact-form { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.5rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-item { display: flex; gap: 0.75rem; align-items: start; }
.contact-info-icon { width: 36px; height: 36px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 480px) {
    .top-bar .container { flex-direction: column; gap: 0.25rem; }
    .top-bar span:last-child { display: none; }
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero-features { grid-template-columns: 1fr !important; }
    .about-grid { grid-template-columns: 1fr !important; }
    .modules-grid { grid-template-columns: 1fr !important; }
    .events-grid { grid-template-columns: 1fr !important; }
    .contact-grid { grid-template-columns: 1fr !important; }
    .stats-grid { grid-template-columns: 1fr 1fr !important; }
    .footer-grid { grid-template-columns: 1fr !important; }
    .form-grid { grid-template-columns: 1fr !important; }
}
@media (min-width: 481px) and (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-toggle { display: block; }
    .hero-features { grid-template-columns: 1fr 1fr !important; }
    .about-grid { grid-template-columns: 1fr !important; }
    .modules-grid { grid-template-columns: 1fr 1fr !important; }
    .events-grid { grid-template-columns: 1fr !important; }
    .contact-grid { grid-template-columns: 1fr !important; }
    .footer-grid { grid-template-columns: 1fr 1fr !important; }
}
@media (min-width: 769px) {
    .nav-links { display: flex; }
    .mobile-toggle { display: none; }
    .mobile-menu { display: none !important; }
}
@media (min-width: 1024px) {
    .hero-features { grid-template-columns: repeat(4, 1fr) !important; }
    .modules-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .events-grid { grid-template-columns: repeat(3, 1fr) !important; }
}
