/**
 * Nepal Library Association - Membership Management System
 * Styled to match the NLA Training System design
 * 
 * Color Palette:
 *   Primary:    #1a4b8c (NLA Blue)
 *   Secondary:  #14365f (Dark Blue)
 *   Accent:     #d4a017 (Gold)
 *   Success:    #198754
 *   Light BG:   #f0f4f8
 */

/* ══════════════════════════════════════════════════════════════
   CSS Variables & Base
   ══════════════════════════════════════════════════════════════ */

:root {
    --primary: #1a4b8c;
    --primary-dark: #14365f;
    --primary-light: #2a6bc4;
    --primary-lighter: #e8f0fe;
    --accent: #d4a017;
    --accent-dark: #b8890f;
    --accent-light: #f5e6b8;
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #0dcaf0;
    --light-bg: #f0f4f8;
    --border-color: #dee2e6;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
    --radius: 8px;
    --radius-lg: 12px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    background-color: #ffffff;
    line-height: 1.6;
    font-size: 0.95rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* ══════════════════════════════════════════════════════════════
   Top Bar
   ══════════════════════════════════════════════════════════════ */

.top-bar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 0.82rem;
    padding: 6px 0;
    border-bottom: 2px solid var(--accent);
}

.top-bar-contact span {
    opacity: 0.9;
}

.top-bar-contact i {
    color: var(--accent);
    margin-right: 4px;
}

.top-bar-links .btn {
    font-size: 0.75rem;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* ══════════════════════════════════════════════════════════════
   Navbar
   ══════════════════════════════════════════════════════════════ */

.main-navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 0;
    box-shadow: var(--shadow-md);
    z-index: 1030;
}

.brand-logo {
    height: 45px;
    width: auto;
}

.brand-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
}

.brand-name {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
}

.brand-tagline {
    font-size: 0.7rem;
    opacity: 0.75;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.main-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    padding: 18px 14px !important;
    font-size: 0.88rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: #ffffff !important;
    background: rgba(255,255,255,0.1);
}

.main-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

.main-navbar .nav-link i {
    margin-right: 3px;
    font-size: 0.85rem;
}

.btn-register-nav {
    background: var(--accent);
    color: var(--primary-dark) !important;
    border: none;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

.btn-register-nav:hover {
    background: var(--accent-dark);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.4);
}

/* ══════════════════════════════════════════════════════════════
   Hero Section
   ══════════════════════════════════════════════════════════════ */

.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0a1f3c 100%);
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,192L48,176C96,160,192,128,288,128C384,128,480,160,576,186.7C672,213,768,235,864,229.3C960,224,1056,192,1152,176C1248,160,1344,160,1392,160L1440,160L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-pattern {
    position: absolute;
    top: 0; right: 0;
    width: 40%; height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="30" cy="30" r="1.5" fill="rgba(255,255,255,0.06)"/></svg>') repeat;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}

.hero-content h1 .text-accent {
    color: var(--accent);
}

.hero-content .lead {
    font-size: 1.15rem;
    opacity: 0.9;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 550px;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 30px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.hero-buttons .btn-accent {
    background: var(--accent);
    color: var(--primary-dark);
    border: 2px solid var(--accent);
}

.hero-buttons .btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 160, 23, 0.4);
}

.hero-buttons .btn-outline-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.hero-stats {
    position: relative;
    z-index: 2;
    margin-top: 3rem;
}

.hero-stat-item {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,0.2);
}

.hero-stat-item:last-child {
    border-right: none;
}

.hero-stat-item .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
}

.hero-stat-item .stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════════════════
   Page Header (Inner pages)
   ══════════════════════════════════════════════════════════════ */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 50px 0 40px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), transparent);
}

.page-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.page-header .breadcrumb a {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb a:hover {
    color: var(--accent);
}

.page-header .breadcrumb-item.active {
    color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   Section Styles
   ══════════════════════════════════════════════════════════════ */

.section {
    padding: 70px 0;
}

.section-light {
    background-color: var(--light-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ══════════════════════════════════════════════════════════════
   Cards
   ══════════════════════════════════════════════════════════════ */

.card {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    font-weight: 600;
}

.card-membership {
    border-top: 4px solid var(--primary);
}

.card-membership.life {
    border-top-color: var(--accent);
}

/* ══════════════════════════════════════════════════════════════
   Feature Cards
   ══════════════════════════════════════════════════════════════ */

.feature-card {
    text-align: center;
    padding: 35px 25px;
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--primary-lighter);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

.feature-card h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.feature-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0;
}

/* ══════════════════════════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════════════════════════ */

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
}

.btn-accent:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: #fff;
}

.nla-btn {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.nla-btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   Forms
   ══════════════════════════════════════════════════════════════ */

.form-label {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.form-control,
.form-select {
    border-radius: var(--radius);
    border: 1.5px solid var(--border-color);
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 75, 140, 0.1);
}

/* ══════════════════════════════════════════════════════════════
   Multi-Step Wizard Form
   ══════════════════════════════════════════════════════════════ */

.registration-wizard {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.wizard-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 25px 30px;
    color: #fff;
}

.wizard-header h3 {
    font-weight: 700;
    margin-bottom: 5px;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 30px; right: 30px;
    height: 3px;
    background: rgba(255,255,255,0.2);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    cursor: pointer;
}

.wizard-step .step-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 3px solid transparent;
}

.wizard-step.active .step-circle {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.5);
}

.wizard-step.completed .step-circle {
    background: var(--success);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.wizard-step .step-label {
    font-size: 0.72rem;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6;
    text-align: center;
    white-space: nowrap;
    color: #fff;
}

.wizard-step.active .step-label,
.wizard-step.completed .step-label {
    opacity: 1;
}

.wizard-body {
    padding: 35px;
}

.wizard-panel {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.wizard-panel.active {
    display: block;
}

.wizard-footer {
    padding: 16px 35px;
    background: #fff;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    flex-shrink: 0;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.btn-nav {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-nav-next {
    min-height: 48px;
    padding: 12px 28px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Old step progress bar compatibility */
.nla-progress-bar {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}
.nla-step {
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem; font-weight: bold;
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    cursor: pointer;
    transition: var(--transition);
    border: 3px solid transparent;
}
.nla-step.active {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.5);
}
.nla-step.completed {
    background: var(--success);
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}

.nla-step-number {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* ══════════════════════════════════════════════════════════════
   Process Steps
   ══════════════════════════════════════════════════════════════ */

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
}

.process-step:last-child {
    border-bottom: none;
}

.step-number-circle {
    width: 50px; height: 50px; min-width: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 1.2rem;
}

/* ══════════════════════════════════════════════════════════════
   Upload Area
   ══════════════════════════════════════════════════════════════ */

.upload-area {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--light-bg);
}

.upload-area:hover {
    border-color: var(--primary);
    background: var(--primary-lighter);
}

/* ══════════════════════════════════════════════════════════════
   Status Timeline
   ══════════════════════════════════════════════════════════════ */

.status-timeline {
    position: relative;
    padding-left: 40px;
}

.status-timeline::before {
    content: '';
    position: absolute;
    left: 15px; top: 0; bottom: 0;
    width: 3px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 25px;
}

.timeline-item .timeline-dot {
    position: absolute;
    left: -33px; top: 3px;
    width: 26px; height: 26px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════════════════════ */

.site-footer {
    background: #0f1b2d;
    color: #cbd5e1;
}

.footer-top {
    padding: 60px 0 40px;
}

.footer-brand .brand-icon {
    background: rgba(255,255,255,0.1);
}

.footer-brand h5 {
    color: #fff;
}

.footer-about {
    font-size: 0.88rem;
    opacity: 0.7;
    line-height: 1.7;
}

.footer-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 30px; height: 2px;
    background: var(--accent);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.88rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.88rem;
}

.footer-contact li i {
    color: var(--accent);
    margin-top: 3px;
}

.footer-bottom {
    background: rgba(0,0,0,0.3);
    padding: 18px 0;
    font-size: 0.82rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ══════════════════════════════════════════════════════════════
   Admin Sidebar
   ══════════════════════════════════════════════════════════════ */

#admin-sidebar {
    width: 250px;
    height: 100vh;
    background: linear-gradient(180deg, var(--primary-dark) 0%, #0a1f3c 100%);
    color: white;
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    transition: margin-left 0.3s;
    overflow-y: auto;
}

#admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    border-left: 4px solid transparent;
    transition: var(--transition);
    font-size: 0.9rem;
}

#admin-sidebar .nav-link:hover,
#admin-sidebar .nav-link.active {
    color: white;
    background: rgba(255,255,255,0.08);
    border-left-color: var(--accent);
}

#admin-main {
    margin-left: 250px;
    padding-top: 60px;
    min-height: 100vh;
    background: var(--light-bg);
    transition: margin-left 0.3s;
}

#admin-topbar {
    background: white;
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0; right: 0;
    left: 250px;
    height: 60px;
    z-index: 999;
    transition: left 0.3s;
}

.admin-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
}

.admin-login-bg {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0a1f3c 100%);
}

/* ══════════════════════════════════════════════════════════════
   Back to Top
   ══════════════════════════════════════════════════════════════ */

.btn-back-to-top {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 45px; height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center; justify-content: center;
    font-size: 1.3rem;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    padding: 0;
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn-back-to-top.show {
    display: flex;
}

.btn-back-to-top:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
    color: #fff;
}

/* ══════════════════════════════════════════════════════════════
   Tables
   ══════════════════════════════════════════════════════════════ */

.table th {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.88rem;
}

/* ══════════════════════════════════════════════════════════════
   Card Preview (ID Card)
   ══════════════════════════════════════════════════════════════ */

.card-preview {
    width: 380px;
    max-width: 100%;
    margin: 0 auto;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
}

/* ══════════════════════════════════════════════════════════════
   Declaration Box
   ══════════════════════════════════════════════════════════════ */

.declaration-box {
    background: var(--light-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
}

.declaration-box .form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ══════════════════════════════════════════════════════════════
   Utility Colors
   ══════════════════════════════════════════════════════════════ */

.nla-navy { color: var(--primary-dark); }
.nla-gold { color: var(--accent); }
.text-accent { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   Animations
   ══════════════════════════════════════════════════════════════ */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fadeIn 0.6s ease forwards; }
.animate-slide-up { animation: slideUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* ══════════════════════════════════════════════════════════════
   Mobile-First Responsive — Base (all screens including mobile)
   ══════════════════════════════════════════════════════════════ */

/* Body base for mobile */
body {
    font-size: 0.93rem;
}

/* Navbar mobile */
.main-navbar .navbar-brand .brand-tagline {
    display: none;
}
.main-navbar .nav-link {
    padding: 10px 14px !important;
}

/* Wizard — mobile base */
.registration-wizard {
    border-radius: 0;
    box-shadow: none;
    margin: 0 -12px;
}

.wizard-header {
    padding: 16px 16px 10px;
}

.wizard-header h3 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.wizard-steps {
    margin: 12px 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 0;
}

.wizard-steps::-webkit-scrollbar { display: none; }

.wizard-step {
    flex: 0 0 auto;
    min-width: 52px;
}

.wizard-step .step-circle {
    width: 32px;
    height: 32px;
    font-size: 0.82rem;
}

.wizard-step .step-label {
    display: none;
}

.wizard-body {
    padding: 16px 14px;
}

.wizard-footer {
    padding: 12px 14px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    border-radius: 0;
    position: sticky;
    bottom: 0;
    z-index: 100;
}

.wizard-footer .btn,
.btn-nav,
.btn-nav-next {
    font-size: 0.9rem;
    min-height: 44px;
    padding: 10px 18px;
}

.btn-nav-next {
    padding: 10px 22px;
    font-size: 0.95rem;
}

/* Form fields mobile */
.form-control, .form-select {
    font-size: 1rem;   /* prevents iOS zoom */
    min-height: 44px;  /* touch target */
    padding: 10px 12px;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.1em;
}

.form-check-label {
    font-size: 0.95rem;
}

/* Form check cards (category selection) mobile */
.form-check.p-3.border.rounded {
    padding: 12px !important;
}

/* Hero mobile */
.hero-section {
    min-height: auto;
    padding: 40px 0 30px;
}

.hero-content h1 {
    font-size: 1.55rem;
    line-height: 1.3;
}

.hero-content p {
    font-size: 0.92rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-buttons .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.92rem;
}

.hero-stats {
    margin-top: 24px;
}

.hero-stat-item {
    padding: 0 8px;
}

.hero-stat-item .stat-number {
    font-size: 1.4rem;
}

/* Page header mobile */
.page-header {
    padding: 24px 0 20px;
}

.page-header h1 {
    font-size: 1.4rem;
}

/* Section mobile */
.section {
    padding: 36px 0;
}

.section-title h2 {
    font-size: 1.35rem;
}

/* Cards mobile */
.card-membership .card-body {
    padding: 16px !important;
}

/* Tables mobile */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Search page mobile */
.search-hero {
    padding: 30px 0;
}

/* Top bar — hide on mobile */
.top-bar {
    display: none;
}

/* Footer mobile */
.footer-top {
    padding: 32px 0 20px;
}

.footer-widget {
    margin-bottom: 20px;
}

/* Apply Now btn mobile */
.btn-register-nav {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Education/training rows mobile */
.education-row.row, .training-row.row {
    margin: 0;
}

.education-row .col-md-3,
.education-row .col-md-2,
.education-row .col-md-1,
.training-row .col-md-3,
.training-row .col-md-2,
.training-row .col-md-1 {
    padding-right: 4px;
    padding-left: 4px;
}

/* Alert mobile */
.alert {
    font-size: 0.9rem;
    padding: 12px 14px;
}

/* Badges/statuses */
.badge {
    font-size: 0.78rem;
}

/* ══════════════════════════════════════════════════════════════
   Small tablets and up (576px+)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 576px) {
    .registration-wizard {
        margin: 0;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-lg);
    }

    .wizard-header {
        padding: 20px 24px 12px;
    }

    .wizard-body {
        padding: 24px 22px;
    }

    .wizard-footer {
        padding: 14px 22px;
        box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }

    .wizard-step .step-circle {
        width: 34px;
        height: 34px;
    }

    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        width: auto;
    }
}

/* ══════════════════════════════════════════════════════════════
   Medium tablets and up (768px+)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
    .wizard-header {
        padding: 22px 28px 14px;
    }

    .wizard-body {
        padding: 28px 28px;
    }

    .wizard-footer {
        padding: 16px 28px;
    }

    .wizard-step .step-circle {
        width: 36px;
        height: 36px;
    }

    .hero-section {
        min-height: 400px;
        padding: 60px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-stat-item .stat-number {
        font-size: 1.6rem;
    }

    .section {
        padding: 55px 0;
    }
}

/* ══════════════════════════════════════════════════════════════
   Desktop and up (992px+)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 992px) {
    body { font-size: 0.95rem; }

    .main-navbar .navbar-brand .brand-tagline { display: block; }

    .wizard-header { padding: 25px 35px 16px; }
    .wizard-body { padding: 35px; }
    .wizard-footer { padding: 20px 35px; }

    .wizard-step .step-circle { width: 38px; height: 38px; }
    .wizard-step .step-label { display: block; }

    .hero-section { min-height: 520px; }
    .hero-content h1 { font-size: 2.6rem; }

    .wizard-steps {
        overflow-x: visible;
        justify-content: space-between;
    }

    .wizard-step { flex: 1; min-width: auto; }
}

/* ══════════════════════════════════════════════════════════════
   Large Desktop (1200px+)
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 1200px) {
    .hero-content h1 { font-size: 2.9rem; }
}


/* ══════════════════════════════════════════════════════════════
   Admin Sidebar — Mobile (hidden by default, show on toggle)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 991.98px) {
    #admin-sidebar {
        margin-left: -250px;
    }
    #admin-sidebar.show {
        margin-left: 0;
    }
    #admin-topbar {
        left: 0;
    }
    #admin-main {
        margin-left: 0;
    }
}

/* ══════════════════════════════════════════════════════════════
   Print Styles
   ══════════════════════════════════════════════════════════════ */

@media print {
    .top-bar, .main-navbar, .site-footer,
    .btn-back-to-top, .hero-buttons,
    .wizard-footer, #admin-sidebar, #admin-topbar,
    .no-print { display: none !important; }

    #admin-main { margin-left: 0 !important; padding-top: 0 !important; }
    .section { padding: 20px 0; }
    .card { box-shadow: none; border: 1px solid #ddd; }
    body { font-size: 12px; }
}
