:root {
    --primary: #3b82f6;
    --secondary: #ec4899;
    --accent: #f97316;
    --dark: #111827;
    --light: #f8fafc;
}
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(180deg, #0f172a 0%, #111827 55%, #111827 100%);
    color: #f8fafc;
}
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.navbar-brand, .nav-link {
    color: #f8fafc !important;
}
.nav-link {
    font-weight: 600;
}
.nav-link:hover {
    color: var(--accent) !important;
}
.hero-banner {
    position: relative;
    background: linear-gradient(180deg, rgba(18, 52, 86, 0.80), rgba(15, 23, 42, 0.86)), url('/static/images/hero.jpg') center/cover no-repeat;
    min-height: 560px;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 40px;
}
.hero-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 5rem 2rem;
}
.hero-title {
    font-size: clamp(2.8rem, 4vw, 4.5rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}
.hero-subtitle {
    max-width: 760px;
    margin: 1.5rem auto 0;
    font-size: 1.15rem;
    color: #e2e8f0;
}
.hero-actions .btn {
    min-width: 180px;
    border-radius: 999px;
}
.card {
    border: none;
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.3);
}
.card:hover {
    transform: translateY(-6px);
}
.btn-primary {
    background: linear-gradient(135deg, #6366f1, #ec4899);
    border: none;
    box-shadow: 0 18px 30px rgba(236, 72, 153, 0.24);
}
.btn-secondary {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #f8fafc;
}
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 40px 0;
}
footer p, footer h5 {
    margin-bottom: 0.6rem;
}
footer strong {
    color: #f8fafc;
}
.alert-danger {
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    border: none;
    color: white;
}
@media (max-width: 768px) {
    .hero-content { padding: 3rem 1.25rem; }
}

/* Rich Text Content Styling */
.card-text, 
.lead,
div[class*="content"],
p {
    line-height: 1.8;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.lead {
    font-size: 1.1rem;
    color: #e2e8f0;
    margin: 1.5rem 0;
}

.lead h1, .lead h2, .lead h3, .lead h4, .lead h5, .lead h6,
.card-text h1, .card-text h2, .card-text h3, .card-text h4, .card-text h5, .card-text h6 {
    color: #f8fafc;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.lead p, .card-text p {
    margin-bottom: 1rem;
    color: #cbd5e1;
}

.lead ul, .lead ol,
.card-text ul, .card-text ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.lead li, .card-text li {
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.lead strong, .card-text strong,
.lead b, .card-text b {
    color: #f8fafc;
    font-weight: 700;
}

.lead em, .card-text em,
.lead i, .card-text i {
    color: #a78bfa;
    font-style: italic;
}

.lead code, .card-text code {
    background: rgba(99, 102, 241, 0.1);
    color: #fbbf24;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.lead pre, .card-text pre {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.lead pre code, .card-text pre code {
    background: transparent;
    color: #c7d2e0;
    padding: 0;
}

.lead blockquote, .card-text blockquote {
    border-left: 4px solid var(--accent);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 8px;
    color: #cbd5e1;
}

.lead table, .card-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.lead table th, .card-text table th {
    background: rgba(99, 102, 241, 0.2);
    color: #f8fafc;
    padding: 0.75rem;
    text-align: left;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.lead table td, .card-text table td {
    padding: 0.75rem;
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: #cbd5e1;
}

.lead img, .card-text img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    display: block;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.3);
}
