﻿/* Fellowship IHQN - Custom Styles */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    /* Brand palette: #F5EEDC (cream bg), #27548A (dominant blue), #183B4E (dark navy), #DDA853 (gold accent) */
    --primary-color: #27548A;
    --primary-hover: #183B4E;
    --primary-light: #e9eef5;
    --secondary-color: #6b6b6b;
    --accent-color: #DDA853;
    --accent-hover: #c4913f;
    --success-color: #198754;
    --danger-color: #c0392b;
    --warning-color: #DDA853;
    --background: #F5EEDC;
    --surface: #ffffff;
    --text-primary: #183B4E;
    --text-secondary: #3f5566;
    --text-muted: #7c8a94;
    --border-color: #e6dcc2;
    --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-card-hover: 0 12px 24px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .btn {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Navigation */
.site-nav {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-subtle);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-nav__brand {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.site-nav__brand:hover {
    color: var(--primary-color);
}

.site-nav__brand {
    align-items: center;
    display: inline-flex;
    gap: 0.75rem;
}

.site-nav__logo {
    display: block;
    flex-shrink: 0;
    height: 44px;
    object-fit: contain;
    width: auto;
}

.site-nav__brand-text {
    display: flex;
    flex-direction: column;
    font-size: 1.1rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.site-nav__toggle {
    display: none;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.site-nav__toggle-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background 0.2s ease;
}

.site-nav__toggle-icon::before,
.site-nav__toggle-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: transform 0.2s ease;
}

.site-nav__toggle-icon::before { top: -7px; }
.site-nav__toggle-icon::after { top: 7px; }

.site-nav__menu {
    display: flex;
    align-items: center;
}

/* Bootstrap's collapse utility hides the menu by default. Keep it visible on
   desktop and let the mobile breakpoint below control the collapsed state. */
.site-nav__menu.collapse {
    display: flex;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav__item {
    position: relative;
}

.site-nav__link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem;
    text-decoration: none;
    border-radius: var(--radius);
    transition: color 0.2s ease, background 0.2s ease;
}

.site-nav__link:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

.site-nav__item--dropdown .site-nav__link--dropdown::after {
    content: '';
    display: inline-block;
    margin-left: 0.5rem;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    vertical-align: middle;
}

/* Dropdown menu (Bootstrap JS dependent) */
.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    padding: 0.5rem;
    background: var(--surface);
    min-width: 200px;
}

.dropdown-item {
    padding: 0.625rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

.dropdown-divider {
    border-color: var(--border-color);
    margin: 0.5rem 0;
}

/* Mobile menu */
@media (max-width: 991.98px) {
    .site-nav__toggle {
        display: block;
    }
    
    .site-nav__menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-card);
        padding: 1rem;
        display: none;
    }

    .site-nav__menu.collapse:not(.show) {
        display: none;
    }
    
    .site-nav__menu.show {
        display: block;
    }
    
    .site-nav__list {
        flex-direction: column;
        width: 100%;
    }
    
    .site-nav__item {
        width: 100%;
    }
    
    .site-nav__link {
        padding: 0.75rem 1rem;
    }
    
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 0.5rem 0 0.5rem 1rem;
        background: transparent;
    }
}

/* Badge for notifications */
.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

/* Alerts */
.alert {
    border-radius: var(--radius);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.alert-success {
    background-color: #e8f5e9;
    color: #1b5e20;
    border-left: 3px solid var(--success-color);
}

.alert-danger {
    background-color: #fdeaea;
    color: #b71c1c;
    border-left: 3px solid var(--danger-color);
}

.alert__close {
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
    opacity: 0.5;
    cursor: pointer;
    padding: 0;
}

.alert__close:hover {
    opacity: 1;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
}

.home-page {
    padding: 0;
}

/* Hero Section */
.hero-section {
    background:
        radial-gradient(circle at 76% 31%, rgba(176, 213, 157, 0.24) 0 19rem, transparent 19.2rem),
        linear-gradient(135deg, #fbfff8 0%, #f6fbf1 48%, #edf6ea 100%);
    border-bottom: 1px solid rgba(172, 205, 154, 0.28);
    min-height: 670px;
    overflow: hidden;
    padding: 4.5rem 0 5.75rem;
    position: relative;
    text-align: left;
}

.hero-section::before {
    border: 1px solid rgba(111, 163, 104, 0.18);
    border-radius: 50%;
    content: '';
    height: 52rem;
    position: absolute;
    right: -6rem;
    top: -18rem;
    width: 52rem;
}

.hero-section::after {
    background: rgba(174, 213, 164, 0.28);
    border-radius: 52% 48% 0 0;
    bottom: -5.4rem;
    content: '';
    height: 10rem;
    left: -4%;
    position: absolute;
    transform: rotate(-2deg);
    width: 108%;
}

.hero-shell {
    align-items: center;
    display: grid;
    gap: 2.5rem;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    min-height: 540px;
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 620px;
    padding: 1rem 0 2rem;
}

.hero-section h1 {
    color: #063d22;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 0.95;
    margin-bottom: 1.45rem;
    text-transform: uppercase;
}

.hero-section .lead {
    color: #1c5a40;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: 1.75rem;
    max-width: 590px;
}

.hero-rule {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    margin-bottom: 4.5rem;
}

.hero-rule::before {
    background: #8fb887;
    content: '';
    height: 8px;
    width: 4.2rem;
}

.hero-rule::after {
    background: #b9d7ad;
    border-radius: 50%;
    content: '';
    height: 7px;
    width: 7px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

.hero-section .btn {
    align-items: center;
    border-radius: var(--radius);
    display: inline-flex;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    justify-content: center;
    min-height: 4.25rem;
    min-width: 14.5rem;
    padding: 1rem 2.5rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.hero-section .btn-primary {
    background: linear-gradient(135deg, #1b684d 0%, #245f47 100%);
    border-color: #1b684d;
    box-shadow: 0 16px 32px rgba(22, 84, 61, 0.22);
    color: white;
}

.hero-section .btn-primary:hover {
    background: linear-gradient(135deg, #144d39 0%, #1c523d 100%);
    border-color: #144d39;
    box-shadow: 0 18px 34px rgba(22, 84, 61, 0.28);
    transform: translateY(-1px);
}

.hero-section .btn-secondary {
    background-color: rgba(255, 255, 255, 0.72);
    border: 1px solid #d8e1d2;
    box-shadow: 0 10px 22px rgba(29, 75, 52, 0.06);
    color: #073d25;
}

.hero-section .btn-secondary:hover {
    background-color: #ffffff;
    border-color: #adc7a3;
    color: #073d25;
    transform: translateY(-1px);
}

.hero-visual {
    align-self: stretch;
    background-image: url('../images/hero.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    filter: drop-shadow(0 28px 42px rgba(31, 80, 51, 0.12));
    min-height: 520px;
    position: relative;
}

@media (max-width: 1199.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }

    .hero-section .lead {
        font-size: 1.18rem;
    }

    .hero-shell {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    }

}

@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 3.5rem 0 4.5rem;
    }

    .hero-shell {
        gap: 1.75rem;
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .hero-copy {
        max-width: 680px;
        padding-bottom: 0;
    }

    .hero-section h1 {
        font-size: 4.25rem;
    }

    .hero-visual {
        min-height: 360px;
    }

}

/* Search Section */
.search-section {
    padding: 3rem 0 2rem;
}

.home-content {
    padding-bottom: 5rem;
}

.search-form {
    max-width: 640px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    gap: 0.75rem;
}

.search-input-group .form-control {
    flex: 1;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input-group .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.search-input-group .btn {
    border-radius: var(--radius);
    padding: 1rem 2rem;
    font-weight: 500;
    white-space: nowrap;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.search-input-group .btn:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* Module Header */
.courses-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.courses-header h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.courses-header .course-count {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    font-family: inherit;
    margin-bottom: 0;
}

/* Course Grid - Editorial Cards */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
}

.course-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: var(--shadow-subtle);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.course-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--border-color);
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.course-card:hover .course-image {
    transform: scale(1.03);
}

.course-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    letter-spacing: -0.005em;
}

.course-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.course-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.course-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.course-price.free {
    color: var(--success-color);
}

.btn-view {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-view:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* No Module State */
.no-courses {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.no-courses h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.no-courses p {
    font-size: 1rem;
    max-width: 320px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    .course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* Buttons - Refined */
.btn {
    border-radius: var(--radius);
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: none;
    box-shadow: 0 4px 12px rgba(26, 92, 74, 0.3);
}

.btn-outline-primary {
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(26, 92, 74, 0.22);
}

.btn-secondary {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background-color: var(--background);
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.btn-accent {
    background-color: var(--accent-color);
    color: var(--text-primary);
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    color: var(--text-primary);
}

/* Forms */
.form-control,
.form-select {
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    padding: 0.875rem 1.125rem;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
    outline: none;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Alerts */
.alert {
    border-radius: var(--radius);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert-success {
    background-color: #e8f5e9;
    color: #1b5e20;
    border-left: 3px solid var(--success-color);
}

.alert-danger {
    background-color: #fdeaea;
    color: #b71c1c;
    border-left: 3px solid var(--danger-color);
}

.alert-warning {
    background-color: #fff8e1;
    color: #e65100;
    border-left: 3px solid var(--warning-color);
}

.alert-info {
    background-color: #e8f4f0;
    color: #00695c;
    border-left: 3px solid var(--primary-color);
}

/* Tables */
.table {
    background-color: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
}

.table thead th {
    background-color: var(--background);
    border-color: var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 1rem 1.25rem;
}

.table tbody td {
    border-color: var(--border-color);
    padding: 1rem 1.25rem;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: var(--background);
}

/* Status Badges */
.badge {
    padding: 0.4rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: 0.01em;
}

.badge-success {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.badge-danger {
    background-color: #fdeaea;
    color: #b71c1c;
}

.badge-warning {
    background-color: #fff8e1;
    color: #e65100;
}

.badge-info {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.badge-pending {
    background-color: #fff8e1;
    color: #e65100;
}

.badge-active {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.badge-inactive {
    background-color: #f5f5f5;
    color: #616161;
}

/* Progress Bar */
.progress {
    height: 0.625rem;
    background-color: var(--border-color);
    border-radius: 9999px;
    overflow: hidden;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 9999px;
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.modal-header {
    background-color: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-title {
    font-weight: 600;
    color: var(--text-primary);
}

.modal-header .btn-close {
    opacity: 0.5;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--text-muted);
}

.breadcrumb-item.active {
    color: var(--text-muted);
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Participant Dashboard */
.participant-dashboard {
    background:
        radial-gradient(900px 320px at 100% 0, rgba(39, 84, 138, 0.10), transparent 70%),
        #f3f6fb;
    padding: 3rem 0 5rem;
}

.dashboard-shell {
    max-width: 1180px;
}

.dashboard-hero {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe4f0;
    border-left: 6px solid #27548A;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(39, 84, 138, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
    padding: 2rem;
    position: relative;
}

.dashboard-hero::after {
    background: linear-gradient(135deg, rgba(39, 84, 138, 0.10), rgba(39, 84, 138, 0.02));
    content: '';
    height: 100%;
    pointer-events: none;
    position: absolute;
    right: -3rem;
    top: 0;
    transform: skewX(-16deg);
    width: 14rem;
}

.dashboard-hero h1 {
    color: #27548A;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    margin-bottom: 0.65rem;
}

.dashboard-hero .btn-primary {
    background: #27548A;
    border-color: #27548A;
    box-shadow: 0 4px 12px rgba(39, 84, 138, 0.28);
    color: #ffffff;
    font-weight: 700;
}

.dashboard-hero .btn-primary:hover,
.dashboard-hero .btn-primary:focus {
    background: #1d4170;
    border-color: #1d4170;
    color: #ffffff;
}

.dashboard-hero p {
    color: #4a5d73;
    font-size: 1rem;
    margin: 0;
    max-width: 600px;
    position: relative;
}

.dashboard-hero__actions {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.dashboard-cv-notice {
    align-items: center;
    background: #fffaf0;
    border: 1px solid rgba(196, 154, 42, 0.32);
    border-left: 4px solid var(--accent-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.35rem;
}

.dashboard-cv-notice__content {
    align-items: center;
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.dashboard-cv-notice__icon {
    align-items: center;
    background: var(--accent-color);
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    flex: 0 0 2.3rem;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    height: 2.3rem;
    justify-content: center;
    line-height: 1;
    width: 2.3rem;
}

.dashboard-cv-notice h2 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 0.2rem;
}

.dashboard-cv-notice p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.5;
    margin: 0;
}

.dashboard-cv-notice .btn {
    flex-shrink: 0;
}

.dashboard-account-notice {
    align-items: center;
    background: #eef6ff;
    border: 1px solid rgba(13, 110, 253, 0.2);
    border-left: 4px solid #0d6efd;
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    display: flex;
    gap: 1.25rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1.2rem 1.35rem;
}

.dashboard-account-notice__content {
    align-items: center;
    display: flex;
    gap: 1rem;
    min-width: 0;
}

.dashboard-account-notice__icon {
    align-items: center;
    background: #0d6efd;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    flex: 0 0 2.3rem;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    height: 2.3rem;
    justify-content: center;
    line-height: 1;
    width: 2.3rem;
}

.dashboard-account-notice h2 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0 0 0.2rem;
}

.dashboard-account-notice p {
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.5;
    margin: 0;
}

.dashboard-stats {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 2.75rem;
}

.dashboard-stat {
    background: var(--surface);
    border: 1px solid #dbe4f0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(39, 84, 138, 0.06);
    padding: 1.35rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-stat:hover {
    box-shadow: 0 8px 20px rgba(39, 84, 138, 0.12);
    transform: translateY(-2px);
}

.dashboard-stat:nth-child(1) { border-top: 4px solid #27548A; }
.dashboard-stat:nth-child(2) { border-top: 4px solid #e0a220; }
.dashboard-stat:nth-child(3) { border-top: 4px solid #1f9d55; }
.dashboard-stat:nth-child(4) { border-top: 4px solid #d64545; }

.dashboard-stat__label {
    color: var(--text-secondary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.dashboard-stat__value {
    color: var(--primary-color);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 0.55rem;
}

.dashboard-stat__meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.dashboard-section,
.participant-dashboard > .container > .row {
    margin-bottom: 2.75rem;
}

.dashboard-section__header,
.participant-dashboard h3.mb-3 {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.35rem !important;
    padding-bottom: 1rem;
}

.dashboard-section__header h2,
.participant-dashboard h3.mb-3 {
    color: var(--text-primary);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
}

.dashboard-section__header p {
    color: var(--text-muted);
    margin: 0.35rem 0 0;
}

.dashboard-course-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-course-card,
.dashboard-empty,
.participant-dashboard .table-responsive,
.participant-dashboard .card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
}

.dashboard-course-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.dashboard-course-card__image,
.dashboard-course-card__placeholder {
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    width: 100%;
}

.dashboard-course-card__placeholder {
    align-items: center;
    background: var(--primary-light);
    color: var(--text-muted);
    display: flex;
    justify-content: center;
}

.dashboard-course-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.35rem;
}

.dashboard-course-card__body h3 {
    color: var(--text-primary);
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.4;
    margin-bottom: 1rem;
}

.dashboard-progress-meta {
    align-items: center;
    color: var(--text-secondary);
    display: flex;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.dashboard-progress-meta strong {
    color: var(--primary-color);
}

.dashboard-progress {
    height: 0.55rem;
    margin-bottom: 0.85rem;
}

.dashboard-course-card__meta {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 0.5rem;
}

.dashboard-course-card__meta:last-of-type {
    margin-bottom: 1.2rem;
}

.dashboard-course-card .btn {
    margin-top: auto;
}

.dashboard-empty {
    padding: 3rem 2rem;
    text-align: center;
}

.dashboard-empty h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.dashboard-empty p,
.participant-dashboard .card p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.dashboard-table {
    box-shadow: none;
    margin-bottom: 0;
}

.credit-breakdown-list li {
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    padding: 0.4rem 0;
}

.credit-breakdown-list li:last-child {
    border-bottom: 0;
}

.dashboard-table thead th {
    background: #376190;
    border-bottom: 2px solid #27548A;
    color: #ffffff;
    font-weight: 700;
}

.dashboard-table tbody td {
    color: var(--text-secondary);
}

.participant-dashboard .badge.bg-warning,
.participant-dashboard .badge-warning {
    background-color: rgba(224, 162, 32, 0.14) !important;
    color: #b07a0a !important;
}

.participant-dashboard .badge.bg-success,
.participant-dashboard .badge-success {
    background-color: rgba(31, 157, 85, 0.12) !important;
    color: #1f9d55 !important;
}

.participant-dashboard .badge.bg-danger,
.participant-dashboard .badge-danger {
    background-color: rgba(214, 69, 69, 0.12) !important;
    color: #d64545 !important;
}

.participant-dashboard .progress-bar {
    background-color: #27548A;
}

.participant-dashboard .progress-bar.bg-success {
    background-color: #1f9d55 !important;
}

.dashboard-section__header,
.participant-dashboard h3.mb-3 {
    border-bottom-color: #cfdbec;
}

.dashboard-section__header h2,
.participant-dashboard h3.mb-3 {
    color: #1b3a5f;
}

.participant-dashboard .dashboard-course-card,
.participant-dashboard .dashboard-empty,
.participant-dashboard .table-responsive,
.participant-dashboard .card {
    border-color: #dbe4f0;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(39, 84, 138, 0.06);
}

.participant-dashboard .dashboard-course-card__placeholder {
    background: #376190;
    color: #ffffff;
}

.participant-dashboard .btn-primary {
    background: #27548A;
    border-color: #27548A;
    color: #ffffff;
}

.participant-dashboard .btn-primary:hover,
.participant-dashboard .btn-primary:focus {
    background: #1d4170;
    border-color: #1d4170;
    color: #ffffff;
}

.participant-dashboard .btn-outline-primary {
    border-color: #27548A;
    color: #27548A;
}

.participant-dashboard .btn-outline-primary:hover {
    background: #27548A;
    border-color: #27548A;
    color: #ffffff;
}

.participant-dashboard .table-hover > tbody > tr:hover > * {
    background-color: #f0f5fb;
}

.participant-dashboard .badge.bg-secondary,
.participant-dashboard .badge-inactive {
    background-color: #f5f5f5 !important;
    color: #616161 !important;
}

@media (max-width: 991.98px) {
    .dashboard-stats,
    .dashboard-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-hero {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Admin */
.admin-page {
    background:
        linear-gradient(180deg, rgba(232, 244, 240, 0.58) 0, rgba(250, 249, 246, 0) 360px),
        var(--background);
    padding: 2rem 0 4.5rem;
}

.admin-shell {
    max-width: 1440px;
}

.admin-page-header {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    display: flex;
    gap: 1.5rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 1.5rem;
}

.admin-eyebrow {
    color: var(--primary-color);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.admin-page-header h1 {
    color: var(--text-primary);
    font-size: clamp(2rem, 3.6vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0 0 0.45rem;
}

.admin-page-header p {
    color: var(--text-secondary);
    margin: 0;
    max-width: 760px;
}

.admin-header-actions {
    display: flex;
    flex-shrink: 0;
    gap: 0.75rem;
}

.admin-stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}

.admin-stat-card,
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
}

.admin-stat-card {
    padding: 1.25rem;
}

.admin-stat-card__label {
    color: var(--text-secondary);
    display: block;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
    text-transform: uppercase;
}

.admin-stat-card strong {
    color: var(--primary-color);
    display: block;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 0.65rem;
}

.admin-stat-card__meta {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.admin-panel {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.admin-panel__header {
    align-items: center;
    background: #f7fbf9;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.admin-panel__header h2 {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
}

.admin-panel__header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0.25rem 0 0;
}

.admin-count-pill {
    background: var(--primary-light);
    border-radius: 9999px;
    color: var(--primary-color);
    flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    padding: 0.45rem 0.8rem;
}

.admin-payment-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-payment-summary > div {
    padding: 1.25rem;
    text-align: center;
}

.admin-payment-summary > div + div {
    border-left: 1px solid var(--border-color);
}

.admin-payment-summary span {
    color: var(--text-secondary);
    display: block;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.admin-payment-summary strong {
    display: block;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.admin-table-wrap {
    border-radius: 0;
    box-shadow: none;
}

.admin-table {
    margin-bottom: 0;
}

.admin-table thead th {
    background: #fbfdfb;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 0.9rem 1rem;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table tbody td {
    color: var(--text-secondary);
    padding: 0.9rem 1rem;
    vertical-align: middle;
}

.admin-table tbody td strong {
    color: var(--text-primary);
}

.admin-inline-form {
    display: inline-flex;
    margin: 0;
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-row-actions .btn {
    font-size: 0.82rem;
    white-space: nowrap;
}

.admin-dashboard-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
}

.admin-list {
    display: grid;
}

.admin-list__item {
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    color: inherit;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    text-decoration: none;
}

.admin-list__item:hover {
    background: #fbfdfb;
}

.admin-list__item:last-child {
    border-bottom: 0;
}

.admin-list__item strong,
.admin-list__item span {
    display: block;
}

.admin-list__item strong {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.35;
}

.admin-list__item span:not(.badge) {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-top: 0.2rem;
}

.admin-empty {
    color: var(--text-muted);
    padding: 2rem;
    text-align: center;
}

.admin-empty p {
    margin: 0;
}

.admin-action-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 1.25rem;
}

.admin-action-card {
    background: #fcfdfb;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    display: block;
    padding: 1rem;
    text-decoration: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.admin-action-card:hover {
    border-color: rgba(26, 92, 74, 0.42);
    box-shadow: var(--shadow-card);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.admin-action-card strong {
    display: block;
    font-size: 0.96rem;
    margin-bottom: 0.3rem;
}

.admin-action-card span {
    color: var(--text-muted);
    display: block;
    font-size: 0.88rem;
    line-height: 1.5;
}

@media (max-width: 1199.98px) {
    .admin-stat-grid,
    .admin-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .admin-page {
        padding: 1.25rem 0 3.5rem;
    }

    .admin-page-header,
    .admin-panel__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-header-actions {
        width: 100%;
    }

    .admin-header-actions .btn,
    .admin-panel__header .btn,
    .admin-count-pill {
        width: 100%;
    }

    .admin-stat-grid,
    .admin-action-grid,
    .admin-payment-summary {
        grid-template-columns: 1fr;
    }

    .admin-payment-summary > div + div {
        border-left: 0;
        border-top: 1px solid var(--border-color);
    }

    .admin-action-grid {
        padding: 1rem;
    }
}

/* Course Detail */
.course-detail-page {
    background:
        linear-gradient(180deg, rgba(232, 244, 240, 0.45) 0, rgba(250, 249, 246, 0) 360px),
        var(--background);
    padding: 0 0 5rem;
}

.course-detail-header {
    background: linear-gradient(135deg, #f7fbf9 0%, #e3f2ee 58%, #fff7df 100%);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    margin-bottom: 0;
    padding: 3.5rem 0 3rem;
}

.course-detail-header .container {
    max-width: 880px;
}

.course-detail-back {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-decoration: none;
}

.course-detail-back:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.course-detail-header h1 {
    color: var(--text-primary);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.course-detail-header .lead {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.course-detail-content {
    padding-top: 2rem;
}

.course-detail-image {
    aspect-ratio: 16 / 9;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    display: block;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    width: 100%;
}

.course-detail-section-title {
    color: var(--text-primary);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.875rem;
}

.course-detail-copy {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

.course-feature-list {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
    padding-left: 1.25rem;
}

.course-feature-list li::marker {
    color: var(--accent-color);
}

.course-enroll-card {
    align-self: flex-start;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.course-enroll-card.sticky-top {
    top: 6.5rem;
    z-index: 20;
}

.course-enroll-card .card-body {
    padding: 1.5rem;
}

@media (max-width: 991.98px) {
    .course-enroll-card.sticky-top {
        position: static;
        top: auto;
        z-index: auto;
    }
}

.course-price-large {
    color: var(--primary-color);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.course-meta {
    border-bottom: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    display: grid;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 1rem 0;
}

.meta-item {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.meta-label {
    color: var(--text-secondary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 600;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.btn-large {
    border-radius: var(--radius);
    font-size: 1rem;
    padding: 0.8rem 1.25rem;
}

/* Profile */
.profile-page {
    background:
        linear-gradient(180deg, rgba(232, 244, 240, 0.68) 0, rgba(250, 249, 246, 0) 360px),
        var(--background);
    padding: 3rem 0 5rem;
}

.profile-shell {
    max-width: 980px;
}

.profile-hero {
    align-items: center;
    background: linear-gradient(135deg, #fbfff8 0%, #f3f8ef 62%, #fff8e6 100%);
    border: 1px solid rgba(172, 205, 154, 0.36);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding: 1.6rem;
}

.profile-avatar {
    align-items: center;
    background: var(--primary-color);
    border: 4px solid rgba(255, 255, 255, 0.78);
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(26, 92, 74, 0.18);
    color: #ffffff;
    display: flex;
    flex: 0 0 4.75rem;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    height: 4.75rem;
    justify-content: center;
    line-height: 1;
    width: 4.75rem;
}

.profile-eyebrow {
    color: var(--primary-color);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.78rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
    text-transform: uppercase;
}

.profile-hero h1 {
    color: var(--text-primary);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.1;
    margin: 0 0 0.45rem;
}

.profile-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.profile-grid {
    display: grid;
    gap: 1.25rem;
}

.profile-panel {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-subtle);
    overflow: hidden;
}

.profile-panel__header {
    align-items: center;
    background: #f7fbf9;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
}

.profile-panel__header h2 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0;
}

.profile-panel__header p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin: 0.25rem 0 0;
}

.profile-panel__body {
    padding: 1.5rem;
}

.profile-detail-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-detail {
    background: #fcfdfb;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    min-width: 0;
    padding: 1rem;
}

.profile-detail__label {
    color: var(--text-muted);
    display: block;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.profile-detail strong {
    color: var(--text-primary);
    display: block;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.profile-name-form {
    display: flex;
    gap: 0.5rem;
}

.profile-name-form .form-control {
    flex: 1;
    min-width: 0;
}

.profile-name-form .btn {
    flex-shrink: 0;
}

.profile-upload {
    align-items: flex-end;
    background: #f7fbf9;
    border: 1px solid rgba(26, 92, 74, 0.16);
    border-radius: var(--radius);
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
    margin-top: 1.25rem;
    padding: 1.25rem;
}

.profile-upload .form-label {
    margin-bottom: 0.35rem;
}

.profile-upload p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.profile-file-link {
    color: var(--primary-color);
    display: inline-flex;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: 0.75rem;
    text-decoration: none;
}

.profile-file-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.profile-upload__controls {
    display: grid;
    gap: 0.75rem;
}

.profile-upload__controls .btn {
    justify-self: start;
}

.profile-password-form {
    display: grid;
    gap: 1rem;
}

.profile-password-form .form-group {
    margin-bottom: 0;
}

.profile-password-form .btn {
    justify-self: start;
    margin-top: 0.25rem;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.25rem;
}

/* Footer */
footer {
    background-color: var(--text-primary);
    color: rgba(255,255,255,0.7);
    border-top: none;
    padding: 3rem 0 1.5rem;
}

footer h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

footer p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    line-height: 1.7;
}

footer a {
    color: rgba(255,255,255,0.5) !important;
    transition: color 0.2s ease;
}

footer a:hover {
    color: white !important;
}

footer .footer-email {
    align-items: center;
    color: #DDA853 !important;
    display: inline-flex;
    font-weight: 600;
    gap: 0.4rem;
}

footer .footer-email svg {
    flex-shrink: 0;
}

footer .footer-email:hover {
    color: #ead9b0 !important;
}

footer hr {
    border-color: rgba(255,255,255,0.1);
    margin: 2rem 0 1.5rem;
}

footer .text-center {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
}

/* Utility Classes */
.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-danger {
    color: var(--danger-color) !important;
}

.text-primary-custom {
    color: var(--primary-color) !important;
}

.shadow-sm {
    box-shadow: var(--shadow-subtle) !important;
}

.shadow-card {
    box-shadow: var(--shadow-card) !important;
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: text-bottom;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

/* Auth Pages */
.auth-page {
    padding: 3rem 0 4rem;
}

.auth-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.auth-header {
    padding: 2.5rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface);
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
}

.auth-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 400;
    font-family: inherit;
}

.auth-body {
    padding: 2rem;
}

.auth-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.auth-footer p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-modal .modal-dialog {
    max-width: 460px;
}

.auth-modal .modal-content {
    border-radius: 16px;
    overflow: hidden;
}

.auth-modal__header {
    background: linear-gradient(120deg, #183B4E 0%, #27548A 100%);
    border-bottom: 4px solid #DDA853;
    color: white;
    padding: 2rem 1.5rem;
    position: relative;
    text-align: center;
}

.auth-modal__header h2 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0;
    margin: 0;
}

.auth-modal__header p {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0.5rem 0 0;
    opacity: 0.9;
}

.auth-modal__close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.82;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.auth-modal__body {
    background: var(--surface);
    padding: 1.75rem;
}

.auth-modal .auth-footer {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.auth-modal .auth-footer p:last-child {
    margin-bottom: 0;
}

/* Auth modals - navy & gold (matches admin dashboard palette) */
.auth-modal .modal-content {
    background: #ffffff;
    border: 0;
    box-shadow: 0 24px 60px rgba(24, 59, 78, 0.35);
}

.auth-modal__header p {
    color: #ead9b0;
    opacity: 1;
}

.auth-modal__body {
    background: #ffffff;
}

.auth-modal .form-label {
    color: #183B4E;
    font-weight: 600;
}

.auth-modal .form-control {
    border: 1px solid #e6dcc2;
    border-radius: 10px;
}

.auth-modal .form-control:focus {
    border-color: #27548A;
    box-shadow: 0 0 0 3px rgba(39, 84, 138, 0.15);
}

.auth-modal .text-muted {
    color: #5b7182 !important;
}

.auth-modal .btn-primary {
    background: linear-gradient(135deg, #27548A, #183B4E);
    border-color: #183B4E;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 700;
}

.auth-modal .btn-primary:hover,
.auth-modal .btn-primary:focus {
    background: #183B4E;
    border-color: #183B4E;
    color: #ffffff;
}

.auth-modal .auth-footer {
    border-top: 1px solid #e6dcc2;
}

.auth-modal .auth-footer p {
    color: #5b7182;
}

.auth-modal .auth-footer a {
    color: #27548A;
    font-weight: 700;
}

.auth-modal .auth-footer a:hover {
    color: #c1903f;
}

.auth-modal .alert-success {
    background: rgba(31, 157, 85, 0.10);
    border-left-color: #1f9d55;
    color: #146b3a;
}

.auth-modal .alert-danger {
    background: rgba(214, 69, 69, 0.10);
    border-left-color: #d64545;
    color: #9c2f2f;
}
/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.75rem 0 3.75rem;
        text-align: center;
    }

    .hero-section::before {
        height: 32rem;
        right: -17rem;
        top: -13rem;
        width: 32rem;
    }

    .hero-section::after {
        bottom: -6.25rem;
    }

    .hero-copy {
        margin: 0 auto;
    }

    .hero-section h1 {
        font-size: 3.25rem;
        line-height: 1;
        margin-bottom: 1rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        line-height: 1.6;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 1.35rem;
        max-width: 35rem;
    }

    .hero-rule {
        justify-content: center;
        margin-bottom: 1.35rem;
    }

    .hero-actions {
        gap: 0.75rem;
        justify-content: center;
    }
    
    .hero-section .btn {
        display: inline-flex;
        min-height: 3.65rem;
        min-width: 0;
        width: 100%;
        max-width: 24rem;
    }
    
    .hero-visual {
        min-height: 280px;
        margin-top: 0.25rem;
    }

    .search-input-group {
        flex-direction: column;
    }
    
    .search-input-group .btn {
        width: 100%;
    }

    .participant-dashboard {
        padding: 2rem 0 3.5rem;
    }

    .dashboard-hero {
        padding: 1.5rem;
    }

    .dashboard-hero__actions,
    .dashboard-hero__actions .btn {
        width: 100%;
    }

    .dashboard-cv-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-cv-notice__content {
        align-items: flex-start;
    }

    .dashboard-cv-notice .btn {
        width: 100%;
    }

    .dashboard-account-notice {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-account-notice__content {
        align-items: flex-start;
    }

    .dashboard-stats,
    .dashboard-course-grid {
        grid-template-columns: 1fr;
    }

    .profile-page {
        padding: 2rem 0 3.5rem;
    }

    .profile-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 1.35rem;
    }

    .profile-detail-grid,
    .profile-upload {
        grid-template-columns: 1fr;
    }

    .profile-panel__header,
    .profile-panel__body {
        padding: 1.2rem;
    }

    .profile-upload__controls .btn,
    .profile-password-form .btn,
    .profile-actions .btn {
        width: 100%;
    }

    .profile-actions {
        justify-content: stretch;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .course-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .btn-view {
        width: 100%;
        text-align: center;
    }
    
    .home-content {
        padding-bottom: 3.5rem;
    }
}
