/* Global Styles */
:root {
    --primary: #667eea;
    --secondary: #764ba2;
    --text: #333;
    --bg: #f8f9fa;
}

body {
    font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: var(--text);
    background: var(--bg);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.2s;
}

a:hover {
    color: var(--secondary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary);
    color: white !important;
    border-radius: 5px;
    font-weight: 600;
}

.btn:hover {
    background: var(--secondary);
}

/* ── Lightweight Flexbox Grid System ── */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -12px;
    margin-left: -12px;
    box-sizing: border-box;
}

.row.g-2 { margin-right: -6px; margin-left: -6px; row-gap: 12px; }
.row.g-2 > [class*="col-"], .row.g-2 > .col-12 { padding-right: 6px; padding-left: 6px; }

.row.g-3 { margin-right: -8px; margin-left: -8px; row-gap: 16px; }
.row.g-3 > [class*="col-"], .row.g-3 > .col-12 { padding-right: 8px; padding-left: 8px; }

.row.g-4 { margin-right: -12px; margin-left: -12px; row-gap: 24px; }
.row.g-4 > [class*="col-"], .row.g-4 > .col-12 { padding-right: 12px; padding-left: 12px; }

[class*="col-"], .col-12 {
    box-sizing: border-box;
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-4 { width: 33.333333%; }
    .col-md-6 { width: 50%; }
    .col-md-8 { width: 66.666667%; }
}

@media (min-width: 992px) {
    .col-lg-3 { width: 25%; }
    .col-lg-4 { width: 33.333333%; }
    .col-lg-5 { width: 41.666667%; }
    .col-lg-6 { width: 50%; }
    .col-lg-7 { width: 58.333333%; }
    .col-lg-8 { width: 66.666667%; }
}

/* Common Layout Utilities */
.d-flex { display: flex !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.align-items-center { align-items: center !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 16px !important; }
.gap-4 { gap: 24px !important; }
.text-danger { color: #dc2626 !important; }
.text-muted { color: #64748b !important; }
.small { font-size: 0.875rem !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 8px !important; }
.mb-3 { margin-bottom: 16px !important; }
.mb-4 { margin-bottom: 24px !important; }
.mb-5 { margin-bottom: 40px !important; }
.mt-1 { margin-top: 4px !important; }
.mt-3 { margin-top: 16px !important; }
.mt-4 { margin-top: 24px !important; }
.me-1 { margin-right: 4px !important; }
.me-2 { margin-right: 8px !important; }