/*──────────────────────────────────────────────────────────────────────────────
 * NCLEX Dojo Hub — Styles
 * Works with BuddyBoss parent theme, no child theme needed
 * Palette matches Nurse Dojo site: Navy / Sky / Coral / Teal
 *────────────────────────────────────────────────────────────────────────────*/

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Outfit:wght@400;500;600;700&display=swap');

:root {
    --ndh-navy: #1e2d50;
    --ndh-navy-deep: #0f1a2e;
    --ndh-sky: #00a8e8;
    --ndh-coral: #ff6b4a;
    --ndh-teal: #38b2ac;
    --ndh-gold: #ecc94b;
    --ndh-bg: #f7f9fb;
    --ndh-card: #ffffff;
    --ndh-text: #1a2332;
    --ndh-muted: #5a6a7a;
    --ndh-border: #e8ecf1;
    --ndh-sidebar-w: 260px;
}


/* ═══════════════════════════════════════════════════
   HUB PAGE
   ═══════════════════════════════════════════════════ */

.ndh-hub-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

/* Hero / welcome */
.ndh-hub-hero {
    background: linear-gradient(135deg, var(--ndh-navy-deep) 0%, var(--ndh-navy) 60%, #2a3f6e 100%);
    border-radius: 20px;
    padding: 44px 48px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}
.ndh-hub-hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,107,74,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.ndh-hub-hero-content { position: relative; z-index: 1; }

.ndh-hub-greeting {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    margin-bottom: 8px;
}

.ndh-hub-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 48px;
    color: #fff;
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 8px;
}

.ndh-hub-subtitle {
    font-family: 'Outfit', sans-serif;
    color: rgba(255,255,255,0.5);
    font-size: 16px;
    margin: 0 0 24px;
}

.ndh-hub-stats {
    display: flex;
    gap: 32px;
}
.ndh-hub-stat-value {
    display: block;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 32px;
    color: var(--ndh-coral);
    line-height: 1;
}
.ndh-hub-stat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
    display: block;
}

/* Card grid */
.ndh-hub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.ndh-hub-card {
    background: var(--ndh-card);
    border: 1px solid var(--ndh-border);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s;
}
.ndh-hub-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--card-accent, var(--ndh-coral));
    opacity: 0;
    transition: opacity 0.3s;
}
.ndh-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(26,54,93,0.1);
    text-decoration: none !important;
    color: inherit !important;
}
.ndh-hub-card:hover::before { opacity: 1; }
.ndh-hub-card:hover .ndh-hub-card-arrow { transform: translateX(4px); opacity: 1; }

.ndh-hub-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 14px;
}
.ndh-hub-card-icon {
    width: 50px; height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.ndh-hub-card-arrow {
    color: var(--ndh-muted);
    font-size: 20px;
    opacity: 0.3;
    transition: all 0.3s;
}

.ndh-hub-card-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 24px;
    color: var(--ndh-navy);
    letter-spacing: 1.5px;
    margin-bottom: 6px;
    line-height: 1.1;
}
.ndh-hub-card-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--ndh-muted);
    line-height: 1.6;
    margin: 0 0 14px;
}
.ndh-hub-card-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--ndh-muted);
    font-weight: 500;
}
.ndh-hub-meta-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}


/* ═══════════════════════════════════════════════════
   SECTION PAGES — SIDEBAR LAYOUT
   ═══════════════════════════════════════════════════ */

.ndh-section-layout {
    display: flex;
    min-height: calc(100vh - 72px);
}

/* Sidebar */
.ndh-sidebar {
    width: var(--ndh-sidebar-w);
    background: var(--ndh-navy-deep);
    padding: 24px 0;
    flex-shrink: 0;
    position: sticky;
    top: 72px; /* BuddyBoss header height — adjust if needed */
    height: calc(100vh - 72px);
    overflow-y: auto;
    z-index: 50;
}

.ndh-sidebar-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.45) !important;
    text-decoration: none !important;
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 24px 20px;
    transition: color 0.2s;
}
.ndh-sidebar-back:hover { color: #fff !important; text-decoration: none !important; }

.ndh-sidebar-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    color: #fff;
    padding: 0 24px 16px;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 8px;
}

.ndh-sidebar-nav {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.ndh-sidebar-nav li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}
.ndh-sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,0.55) !important;
    text-decoration: none !important;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}
.ndh-sidebar-nav li a:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.04);
    text-decoration: none !important;
}
.ndh-sidebar-nav li a.active {
    color: #fff !important;
    background: rgba(255,255,255,0.07);
    border-left-color: var(--ndh-coral);
}

.ndh-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 16px;
    flex-shrink: 0;
}
.ndh-nav-badge {
    margin-left: auto;
    background: var(--ndh-coral);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}
.ndh-sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 12px 24px;
}

/* Main content area */
.ndh-section-main {
    flex: 1;
    padding: 36px 40px;
    max-width: 900px;
}

.ndh-section-header { margin-bottom: 28px; }
.ndh-section-title {
    font-family: 'Bebas Neue', sans-serif !important;
    font-size: 36px !important;
    color: var(--ndh-navy) !important;
    letter-spacing: 2px;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ndh-section-content {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    color: var(--ndh-muted);
    line-height: 1.7;
}

/* Mobile sidebar toggle */
.ndh-mobile-toggle {
    display: none;
    position: fixed;
    bottom: 24px; left: 24px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--ndh-navy-deep);
    color: #fff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    align-items: center;
    justify-content: center;
}


/* ═══════════════════════════════════════════════════
   COURSE GRID SHORTCODE
   ═══════════════════════════════════════════════════ */

.ndh-course-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ndh-course-item {
    background: var(--ndh-card);
    border: 1px solid var(--ndh-border);
    border-radius: 12px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none !important;
    color: inherit !important;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.ndh-course-item:hover {
    box-shadow: 0 4px 16px rgba(26,54,93,0.07);
    border-color: rgba(0,168,232,0.2);
    text-decoration: none !important;
    color: inherit !important;
}

.ndh-course-number {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(255,107,74,0.07);
    color: var(--ndh-coral);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ndh-course-info { flex: 1; }
.ndh-course-name {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--ndh-navy);
    margin-bottom: 2px;
}
.ndh-course-meta {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    color: var(--ndh-muted);
}

.ndh-course-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.ndh-course-progress-bar {
    width: 100px;
    height: 5px;
    background: #edf2f7;
    border-radius: 3px;
    overflow: hidden;
}
.ndh-course-progress-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ndh-sky), #33c4ff);
    transition: width 0.5s ease;
}
.ndh-course-pct {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--ndh-muted);
    min-width: 32px;
    text-align: right;
}


/* ═══════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════ */

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

.ndh-hub-hero { animation: ndhFadeUp 0.4s ease both; }
.ndh-hub-card { animation: ndhFadeUp 0.5s ease both; }
.ndh-hub-card:nth-child(1) { animation-delay: 0.05s; }
.ndh-hub-card:nth-child(2) { animation-delay: 0.1s; }
.ndh-hub-card:nth-child(3) { animation-delay: 0.15s; }
.ndh-hub-card:nth-child(4) { animation-delay: 0.2s; }
.ndh-hub-card:nth-child(5) { animation-delay: 0.25s; }


/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 900px) {
    /* Hub */
    .ndh-hub-grid { grid-template-columns: 1fr; }
    .ndh-hub-hero { padding: 32px 24px; }
    .ndh-hub-title { font-size: 36px; }
    .ndh-hub-wrap { padding: 20px 16px 40px; }

    /* Sidebar → off-canvas */
    .ndh-sidebar {
        position: fixed;
        top: 0; left: 0;
        height: 100vh;
        z-index: 300;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 4px 0 30px rgba(0,0,0,0.3);
    }
    .ndh-sidebar.ndh-open {
        transform: translateX(0);
    }
    .ndh-mobile-toggle { display: flex; }
    .ndh-section-main { padding: 24px 16px; max-width: none; }

    /* Course items */
    .ndh-course-progress-bar { width: 60px; }
}

@media (max-width: 480px) {
    .ndh-hub-title { font-size: 28px; }
    .ndh-hub-card { padding: 22px 18px; }
    .ndh-hub-card-title { font-size: 20px; }
}
