/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { height: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #334155;
    background: #f8fafc;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* =====================
   Typography
   ===================== */
h1, h2, h3, h4, h5, h6 {
    color: #0f172a;
    line-height: 1.3;
    font-weight: 700;
}

h1 { font-size: 2rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin: 1.75rem 0 0.75rem; color: #1e40af; }
h3 { font-size: 1.2rem; margin: 1.25rem 0 0.5rem; }
h4 { font-size: 1rem; font-weight: 600; color: #475569; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
h5 { font-size: 0.875rem; color: #94a3b8; font-weight: 400; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; }

a { color: #2563eb; text-decoration: none; transition: color 0.15s; }
a:hover { color: #1d4ed8; text-decoration: underline; }

strong { font-weight: 600; color: #0f172a; }
em { font-style: italic; }

ul, ol { margin: 0 0 1rem 1.5rem; }
ul li, ol li { margin-bottom: 0.4rem; }

blockquote {
    border-left: 4px solid #2563eb;
    padding: 0.75rem 1.25rem;
    background: #eff6ff;
    color: #1e40af;
    border-radius: 0 8px 8px 0;
    margin: 1.25rem 0;
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

table th {
    background: #0f172a;
    color: #f8fafc;
    padding: 0.65rem 1rem;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
}

table tr:nth-child(even) td { background: #f1f5f9; }

/* =====================
   Layout
   ===================== */
#wrapper {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

#site-content {
    display: flex;
    gap: 2rem;
    padding: 2.5rem 0;
    flex: 1;
}

#content {
    flex: 1;
    min-width: 0;
}

/* =====================
   Header & Nav
   ===================== */
#header {
    background: #0f172a;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

#header #wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

#logo a {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f8fafc;
    text-decoration: none;
    letter-spacing: -0.02em;
}

#logo a span {
    color: #60a5fa;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

nav ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    transition: all 0.15s;
    display: block;
}

nav ul li a:hover {
    color: #f8fafc;
    background: rgba(255,255,255,0.08);
    text-decoration: none;
}

nav ul li.selected a {
    color: #f8fafc;
    background: #1e40af;
}

nav ul li.nav-cta a {
    background: #2563eb;
    color: #fff;
    margin-left: 0.5rem;
}

nav ul li.nav-cta a:hover {
    background: #1d4ed8;
    color: #fff;
}

/* =====================
   Hero (index only)
   ===================== */
#hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    padding: 5rem 0;
    text-align: center;
    color: #f8fafc;
}

#hero h1 {
    font-size: 3rem;
    color: #f8fafc;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

#hero h1 span { color: #60a5fa; }

#hero p {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 560px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.15s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
    color: #fff;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: #f8fafc;
    border: 1px solid rgba(255,255,255,0.25);
    margin-left: 0.75rem;
}

.btn-outline:hover {
    background: rgba(255,255,255,0.08);
    color: #f8fafc;
    text-decoration: none;
}

/* =====================
   Cards
   ===================== */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: box-shadow 0.15s;
}

.card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }

.card-icon {
    width: 44px;
    height: 44px;
    background: #eff6ff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

.card h3 { margin-top: 0; color: #0f172a; }
.card p { color: #64748b; font-size: 0.9rem; margin-bottom: 0; }

/* =====================
   News / Updates
   ===================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.news-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 1.25rem;
}

.news-item .tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #2563eb;
    background: #eff6ff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.news-item h3 { font-size: 0.95rem; margin: 0 0 0.4rem; color: #0f172a; }
.news-item p { font-size: 0.85rem; color: #64748b; margin-bottom: 0; }

/* =====================
   Sidebar
   ===================== */
#sidebar {
    width: 250px;
    flex-shrink: 0;
}

.sidebar-widget {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.sidebar-widget h3 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0 0 0.75rem;
}

.sidebar-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sidebar-widget ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.875rem;
}

.sidebar-widget ul li:last-child { border-bottom: none; }

.sidebar-widget ul li a { color: #334155; }
.sidebar-widget ul li a:hover { color: #2563eb; text-decoration: none; }

.sidebar-widget .news-date {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
    margin-top: 0.15rem;
}

/* =====================
   Section Heading
   ===================== */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #2563eb;
    margin-bottom: 0.5rem;
    display: block;
}

/* =====================
   Home sections (outside card layout)
   ===================== */
#home-body {
    padding: 3rem 0;
}

.section { margin-bottom: 3.5rem; }

/* =====================
   Forms
   ===================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    margin-bottom: 0.4rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: inherit;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

.form-group textarea { resize: vertical; min-height: 130px; }

/* =====================
   Footer
   ===================== */
#footer {
    background: #0f172a;
    color: #64748b;
    padding: 2rem 0;
    font-size: 0.85rem;
    margin-top: auto;
}

#footer #wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

#footer-nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
#footer-nav a { color: #64748b; text-decoration: none; transition: color 0.15s; }
#footer-nav a:hover { color: #f8fafc; }

#footer-copy { color: #475569; }

/* =====================
   Page header banner
   ===================== */
#page-header {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    padding: 2.5rem 0;
}

#page-header h1 {
    color: #f8fafc;
    font-size: 2rem;
    margin: 0;
}

#page-header p {
    color: #94a3b8;
    margin: 0.4rem 0 0;
    font-size: 0.95rem;
}

/* =====================
   Separator
   ===================== */
.separator {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}

/* =====================
   Utility
   ===================== */
.text-muted { color: #94a3b8; font-size: 0.875rem; }
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-blue { background: #eff6ff; color: #2563eb; }
.badge-green { background: #f0fdf4; color: #16a34a; }

/* =====================
   Cookie Consent Banner
   ===================== */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    color: #94a3b8;
    font-size: 0.85rem;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    z-index: 9999;
    border-top: 1px solid #1e293b;
}

#cookie-banner p { margin: 0; }
#cookie-banner a { color: #60a5fa; }
#cookie-banner a:hover { color: #93c5fd; }

#cookie-dismiss {
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

#cookie-dismiss:hover { background: #1d4ed8; }
