/* ==========================================================================
   ASR - Asociația de Sudură din România (asr.ro)
   Design System & Modern Frontend Styling
   ========================================================================== */

/* Google Fonts loaded via high-priority <link rel="stylesheet"> in header for non-blocking paint */

:root {
    --asr-primary: #253b80;
    --asr-primary-dark: #172554;
    --asr-primary-light: #3b82f6;
    --asr-accent: #f1b209;
    --asr-accent-hover: #d99b00;
    --asr-dark: #0f172a;
    --asr-gray-bg: #f8fafc;
    --asr-card-bg: #ffffff;
    --asr-border: #e2e8f0;
    --asr-text: #1e293b;
    --asr-text-muted: #64748b;
    --asr-success: #10b981;
    --asr-danger: #ef4444;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(37, 59, 128, 0.08);
    --shadow-lg: 0 10px 30px rgba(37, 59, 128, 0.12);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--asr-text);
    background-color: var(--asr-gray-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--asr-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--asr-accent-hover);
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------- Top Info Bar ------------------- */
.top-bar {
    background-color: var(--asr-dark);
    color: #94a3b8;
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-info-items {
    display: flex;
    gap: 20px;
}

.top-info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-links {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    white-space: nowrap;
}

.top-links > a {
    color: #cbd5e1;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.top-links > a:hover {
    color: var(--asr-accent);
}

/* ------------------- Navigation Header ------------------- */
.site-header {
    background: #ffffff;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--asr-border);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    height: 52px;
    width: auto;
    display: block;
}

.brand-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--asr-primary);
    line-height: 1.2;
    letter-spacing: -0.3px;
}

.brand-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: var(--asr-accent-hover);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-link {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--asr-text);
    padding: 6px 4px;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
    color: var(--asr-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--asr-accent);
    border-radius: 3px 3px 0 0;
}

.btn-header-cta {
    background: var(--asr-primary);
    color: #ffffff !important;
    padding: 8.5px 16px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(37,59,128,0.25);
    flex-shrink: 0;
}

.btn-header-cta:hover {
    background: var(--asr-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,59,128,0.35);
}

.header-btn-group {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-header-login-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--asr-primary) !important;
    border: 1.5px solid var(--asr-primary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-header-login-icon i {
    color: var(--asr-primary) !important;
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s ease;
}

.btn-header-login-icon:hover {
    background: #f1f5f9;
    color: #1e3a8a !important;
    border-color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37,59,128,0.18);
}

.btn-header-login-icon:hover i {
    color: #1e3a8a !important;
}

.btn-header-login-icon.active {
    background: #ffffff;
    color: var(--asr-primary) !important;
    border-color: var(--asr-primary);
    box-shadow: 0 0 0 2px rgba(37,59,128,0.2);
}

.btn-header-login-icon.active i {
    color: var(--asr-primary) !important;
}

.mobile-login-label {
    display: none;
}

.btn-header-login {
    background: #ffffff;
    color: var(--asr-primary) !important;
    border: 1.5px solid var(--asr-primary);
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}

.btn-header-login i {
    color: var(--asr-primary);
    font-size: 14px;
    transition: color 0.2s ease;
}

.btn-header-login:hover {
    background: #f8fafc;
    color: var(--asr-primary) !important;
    border-color: var(--asr-primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(37,59,128,0.15);
}

.btn-header-login:hover i {
    color: var(--asr-primary) !important;
}

.btn-header-login.active {
    background: #ffffff;
    color: var(--asr-primary) !important;
    border-color: var(--asr-primary);
}

.btn-header-login.active i {
    color: var(--asr-primary) !important;
}

/* Language Switcher */
.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.lang-btn {
    color: #cbd5e1 !important;
    padding: 2px 6px;
    border-radius: 12px;
    transition: all 0.2s ease;
    margin-left: 0 !important;
}

.lang-btn:hover {
    color: #ffffff !important;
}

.lang-btn.active {
    background: var(--asr-accent);
    color: #0f172a !important;
}

.lang-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
}

.lang-switcher-mobile {
    display: inline-flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 15px;
}

.lang-btn-mobile {
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
}

.lang-btn-mobile.active {
    background: var(--asr-accent);
    color: #0f172a !important;
}

/* Mobile Navigation Controls */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: #f1f5f9;
    border: 1.5px solid var(--asr-border);
    color: var(--asr-primary);
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:active {
    background: #e2e8f0;
    color: var(--asr-secondary);
}

.mobile-nav-header {
    display: none;
}

.mobile-nav-close {
    display: none;
}

.mobile-nav-backdrop {
    display: none;
}

/* Course Select Cards (Step 1) */
.course-select-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: #f8fafc;
    border: 2px solid var(--asr-border);
    padding: 18px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s ease;
}
.course-select-card.selected,
.course-select-card:hover {
    border-color: var(--asr-primary);
    background: #ffffff;
    box-shadow: var(--shadow-sm);
}
.course-select-card input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--asr-primary);
    transform: scale(1.2);
    flex-shrink: 0;
}
.course-select-body {
    flex: 1;
    min-width: 0;
}
.course-select-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.course-select-title {
    font-size: 16.5px;
    color: var(--asr-dark);
}
.course-select-price {
    font-weight: 800;
    color: var(--asr-primary);
    font-size: 16px;
    white-space: nowrap;
}
.course-select-price small {
    font-size: 11px;
    color: var(--asr-text-muted);
}
.course-select-meta-row {
    font-size: 13.5px;
    color: var(--asr-text-muted);
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

/* Type Select Grid (PF vs PJ) */
.type-select-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 10px;
}
.type-select-card {
    border: 2px solid var(--asr-border);
    background: #ffffff;
    padding: 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.2s ease;
}
.type-select-card.selected,
.type-select-card:hover {
    border-color: var(--asr-primary);
    background: #f8fafc;
}
.type-select-card input[type="radio"] {
    margin-top: 4px;
    accent-color: var(--asr-primary);
    transform: scale(1.2);
    flex-shrink: 0;
}
.type-title {
    font-size: 16px;
    color: var(--asr-primary);
    display: block;
}
.type-desc {
    font-size: 13px;
    color: var(--asr-text-muted);
    margin-top: 4px;
}

/* Auth Split Grid (Step 2) */
.auth-split-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
}

/* Step Navigation Buttons */
.form-nav-buttons {
    margin-top: 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

/* ------------------- Hero Section ------------------- */
.hero-section {
    background: linear-gradient(135deg, #172554 0%, #253b80 60%, #1e3a8a 100%);
    color: #ffffff;
    padding: 70px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(241, 178, 9, 0.15), transparent 40%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(241, 178, 9, 0.18);
    border: 1px solid rgba(241, 178, 9, 0.4);
    color: var(--asr-accent);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
}

.hero-highlight {
    color: var(--asr-accent);
    text-decoration: underline;
    text-decoration-color: rgba(241, 178, 9, 0.4);
}

.hero-description {
    font-size: 16.5px;
    color: #cbd5e1;
    margin-bottom: 30px;
    max-width: 580px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.hero-card-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 10px;
}

.hero-features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hero-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14.5px;
    color: #e2e8f0;
}

.hero-features-list li span.icon {
    color: var(--asr-accent);
    font-weight: bold;
}

/* ------------------- Buttons ------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
}

.btn-primary {
    background: var(--asr-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 59, 128, 0.25);
}
.btn-primary:hover {
    background: var(--asr-primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--asr-accent);
    color: #0f172a;
    box-shadow: 0 4px 12px rgba(241, 178, 9, 0.3);
}
.btn-accent:hover {
    background: var(--asr-accent-hover);
    color: #0f172a;
    transform: translateY(-2px);
}

.btn-outline-white {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
    background: #ffffff;
    color: var(--asr-primary);
    border-color: #ffffff;
}

/* ------------------- Section Common ------------------- */
.section-pad {
    padding: 70px 0;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.section-badge {
    color: var(--asr-primary);
    background: rgba(37, 59, 128, 0.08);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--asr-dark);
    letter-spacing: -0.5px;
    line-height: 1.25;
}

.section-subtitle {
    font-size: 16px;
    color: var(--asr-text-muted);
    margin-top: 10px;
}

/* ------------------- Course Filters ------------------- */
.course-filters-nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.course-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 1.5px solid #cbd5e1;
    color: #334155;
    background: #ffffff;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.course-filter-btn:hover {
    border-color: var(--asr-primary);
    color: var(--asr-primary);
    background: #f8fafc;
    transform: translateY(-1px);
}

.course-filter-btn.active {
    background: var(--asr-primary);
    border-color: var(--asr-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 59, 128, 0.2);
}

/* ------------------- Courses Cards ------------------- */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.course-card {
    background: var(--asr-card-bg);
    border: 1px solid var(--asr-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 59, 128, 0.3);
}

.course-card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    padding: 24px;
    border-bottom: 1px solid var(--asr-border);
    position: relative;
}

.course-category-tag {
    display: inline-block;
    background: var(--asr-primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.course-card-header div > .course-category-tag {
    margin-bottom: 0;
}

.course-card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--asr-dark);
    line-height: 1.3;
}

.course-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.course-meta-table {
    width: 100%;
    margin-bottom: 20px;
    font-size: 13.5px;
    border-collapse: collapse;
}

.course-meta-table td {
    padding: 7px 0;
    border-bottom: 1px solid #f1f5f9;
}

.course-meta-label {
    color: var(--asr-text-muted);
    font-weight: 500;
    width: 45%;
}

.course-meta-label i {
    margin-right: 8px;
    width: 15px;
    text-align: center;
    display: inline-block;
}

.course-meta-val {
    color: var(--asr-dark);
    font-weight: 600;
    text-align: right;
}

.course-desc-brief {
    font-size: 14px;
    color: var(--asr-text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.course-price-box {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid var(--asr-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.course-price-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--asr-primary);
}

.course-price-vat {
    font-size: 12px;
    color: var(--asr-text-muted);
    font-weight: 500;
}

.course-price-box .btn {
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.course-price-box .btn:disabled,
.course-price-box .btn.btn-disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    border: none;
}

/* ------------------- Workflow Steps (Inscriere) ------------------- */
.wizard-steps-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 35px;
    background: #ffffff;
    padding: 15px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--asr-border);
    position: relative;
    overflow-x: auto;
}

.wizard-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--asr-text-muted);
    font-weight: 600;
    font-size: 13.5px;
    position: relative;
    white-space: nowrap;
}

.step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
}

.wizard-step-item.active {
    color: var(--asr-primary);
}
.wizard-step-item.active .step-num {
    background: var(--asr-primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(37,59,128,0.15);
}

.wizard-step-item.completed {
    color: var(--asr-success);
}
.wizard-step-item.completed .step-num {
    background: var(--asr-success);
    color: #ffffff;
}

.form-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--asr-border);
    box-shadow: var(--shadow-md);
    padding: 35px;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--asr-dark);
    margin-bottom: 6px;
}

.form-label .req {
    color: var(--asr-danger);
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--asr-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14.5px;
    color: var(--asr-text);
    background: #ffffff;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--asr-primary);
    box-shadow: 0 0 0 3px rgba(37, 59, 128, 0.12);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.checkbox-custom {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
    color: var(--asr-text);
    cursor: pointer;
}

.checkbox-custom input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--asr-primary);
    cursor: pointer;
}

/* ------------------- Alerts & Messages ------------------- */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 25px;
    font-size: 14.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error, .alert-danger {
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-info {
    background-color: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.alert-warning {
    background-color: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ------------------- Footer ------------------- */
.site-footer {
    background: var(--asr-dark);
    color: #cbd5e1;
    padding: 60px 0 25px;
    margin-top: 60px;
    border-top: 4px solid var(--asr-accent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #94a3b8;
    font-size: 14px;
}
.footer-links a:hover {
    color: var(--asr-accent);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 25px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* ------------------- About Section (Despre ASR) ------------------- */
.about-asr-box {
    background: linear-gradient(135deg, #172554 0%, #253b80 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 45px;
    box-shadow: var(--shadow-lg);
}

.about-asr-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.about-asr-badge {
    color: var(--asr-accent);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-asr-title {
    font-size: 28px;
    font-weight: 800;
    margin: 10px 0 15px;
    color: #fff;
    line-height: 1.25;
}

.about-asr-text {
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.about-asr-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.about-stat-item {
    display: flex;
    flex-direction: column;
}

.about-stat-item.border-left {
    border-left: 1px solid rgba(255,255,255,0.2);
    padding-left: 20px;
}

.about-stat-val {
    font-size: 26px;
    font-weight: 800;
    color: var(--asr-accent);
    line-height: 1.1;
}

.about-stat-label {
    font-size: 13px;
    color: #cbd5e1;
    margin-top: 4px;
}

.about-asr-contact-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-md);
    padding: 30px;
}

.about-contact-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 10px;
}

.about-contact-item {
    margin-bottom: 12px;
    font-size: 14px;
    color: #e2e8f0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-asr-box {
        padding: 30px 22px;
    }
    .about-asr-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .about-asr-title {
        font-size: 24px;
    }
    .about-asr-contact-card {
        padding: 24px 20px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .header-inner {
        padding: 12px 20px;
    }
    .mobile-menu-toggle {
        display: inline-flex;
        margin-right: 0;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        max-width: 85vw;
        background: #ffffff;
        box-shadow: -5px 0 25px rgba(0,0,0,0.18);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        z-index: 1200;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }
    .main-nav.open {
        transform: translateX(0);
    }
    .mobile-nav-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 20px;
        background: var(--asr-primary);
        color: #ffffff;
        border-bottom: 2px solid var(--asr-accent);
    }
    .mobile-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 6px;
        background: rgba(255,255,255,0.15);
        border: none;
        color: #ffffff;
        font-size: 18px;
        cursor: pointer;
    }
    .main-nav .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid #f1f5f9;
        font-size: 15px;
        color: var(--asr-text);
        display: block;
    }
    .main-nav .nav-link.active::after {
        display: none;
    }
    .main-nav .nav-link.active {
        color: var(--asr-primary);
        background: #eff6ff;
        font-weight: 700;
        border-left: 4px solid var(--asr-accent);
    }
    .main-nav .header-btn-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px 20px 24px;
        margin: 0;
    }
    .main-nav .header-btn-group .btn,
    .main-nav .header-btn-group .btn-header-login,
    .main-nav .header-btn-group .btn-header-login-icon {
        width: 100%;
        height: auto;
        border-radius: var(--radius-sm);
        padding: 11px 16px;
        gap: 8px;
        margin: 0;
        text-align: center;
        justify-content: center;
        background: #ffffff;
        border: 1.5px solid var(--asr-primary);
        font-weight: 700;
        font-size: 14px;
        color: var(--asr-primary) !important;
        text-decoration: none;
    }
    .main-nav .header-btn-group .btn-header-login-icon .mobile-login-label {
        display: inline !important;
    }
    .main-nav .header-btn-group .btn-header-login.active,
    .main-nav .header-btn-group .btn-header-login-icon.active {
        background: #ffffff;
        color: var(--asr-primary) !important;
        border-color: var(--asr-primary);
    }
    .main-nav .header-btn-group .btn-header-login.active i,
    .main-nav .header-btn-group .btn-header-login-icon.active i {
        color: var(--asr-primary) !important;
    }
    .main-nav .btn-header-cta {
        margin: 0;
        text-align: center;
        justify-content: center;
    }
    .mobile-nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.6);
        backdrop-filter: blur(2px);
        z-index: 1150;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }
    .mobile-nav-backdrop.open {
        opacity: 1;
        pointer-events: auto;
    }
    .auth-split-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    .top-bar {
        font-size: 11.5px;
        padding: 6px 0;
    }
    .top-bar-inner {
        flex-direction: column;
        gap: 6px;
        align-items: center;
        text-align: center;
    }
    .top-address-item {
        display: none !important;
    }
    .top-link-portal {
        display: none !important;
    }
    .top-info-items {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .top-info-item {
        white-space: nowrap;
    }
    .top-links {
        margin-top: 2px;
    }
    .top-links a {
        margin: 0 8px;
    }
    .brand-logo {
        height: 38px;
    }
    .brand-title {
        font-size: 15px;
    }
    .brand-subtitle {
        font-size: 9.5px;
    }
    .header-inner {
        padding: 10px 16px;
    }
    .mobile-menu-toggle {
        margin-right: 0;
    }
    .hero-title {
        font-size: 28px;
    }
    .hero-section {
        padding: 40px 0 50px;
    }
    .section-head {
        margin: 0 auto 28px;
    }
    .section-title {
        font-size: 24px;
    }
    .section-subtitle {
        font-size: 14.5px;
        line-height: 1.5;
    }
    .section-pad {
        padding: 30px 0;
    }
    .course-filters-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 18px;
        width: 100%;
    }
    .course-filter-btn {
        width: 100%;
        padding: 9px 8px;
        font-size: 13px;
        text-align: center;
        justify-content: center;
        min-height: 44px;
        line-height: 1.25;
        border-radius: 8px;
    }
    .courses-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .course-card-header {
        padding: 18px 18px 14px;
    }
    .course-card-title {
        font-size: 18px;
        line-height: 1.35;
    }
    .course-card-body {
        padding: 18px;
    }
    .course-meta-table {
        font-size: 13px;
        margin-bottom: 16px;
    }
    .course-meta-table td {
        padding: 6px 0;
    }
    .course-meta-label {
        width: 42%;
    }
    .course-desc-brief {
        font-size: 13.5px;
        margin-bottom: 16px;
        line-height: 1.5;
    }
    .course-price-amount {
        font-size: 20px;
    }
    .course-price-box .btn {
        padding: 9px 16px;
        font-size: 13.5px;
    }
    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Wizard steps compact badge styling */
    .wizard-steps-nav {
        padding: 10px 12px;
        gap: 6px;
        justify-content: space-between;
        align-items: center;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        margin-bottom: 20px;
    }
    .wizard-steps-nav::-webkit-scrollbar {
        display: none;
    }
    .wizard-step-item {
        gap: 6px;
        font-size: 12px;
        flex-shrink: 0;
    }
    .wizard-step-item:not(.active) span {
        display: none !important;
    }
    .wizard-step-item.active {
        background: #eff6ff;
        padding: 4px 10px 4px 4px;
        border-radius: 20px;
    }
    .wizard-step-item.active span {
        display: inline-block !important;
        font-size: 11.5px;
        font-weight: 700;
        color: var(--asr-primary);
        white-space: nowrap;
    }
    .step-num {
        width: 28px;
        height: 28px;
        font-size: 12px;
        flex-shrink: 0;
    }

    .form-card {
        padding: 20px 15px;
        border-radius: var(--radius-md);
        margin-bottom: 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 640px) {
    .about-asr-box {
        padding: 24px 16px;
        border-radius: var(--radius-md);
    }
    .about-asr-title {
        font-size: 22px;
    }
    .about-asr-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .about-stat-item.border-left {
        border-left: none;
        padding-left: 0;
    }
    .type-select-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .course-select-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    .course-select-meta-row {
        flex-direction: column;
        gap: 5px;
    }
    .form-nav-buttons {
        flex-direction: column-reverse;
        width: 100%;
    }
    .form-nav-buttons .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .brand-title {
        font-size: 13.5px;
    }
    .brand-subtitle {
        font-size: 8.5px;
    }
    .mobile-menu-toggle {
        margin-right: 0;
    }
    .course-card-header {
        padding: 16px 14px 12px;
    }
    .course-card-title {
        font-size: 16.5px;
        line-height: 1.35;
    }
    .course-card-body {
        padding: 14px;
    }
    .course-filter-btn {
        padding: 8px 6px;
        font-size: 12px;
        min-height: 42px;
    }
    .course-meta-table {
        font-size: 12px;
        margin-bottom: 14px;
    }
    .course-meta-table td {
        padding: 5px 0;
    }
    .course-meta-label {
        width: 40%;
        font-size: 12px;
    }
    .course-meta-val {
        font-size: 12px;
    }
    .course-desc-brief {
        font-size: 12.5px;
        line-height: 1.45;
        margin-bottom: 14px;
    }
    .course-price-amount {
        font-size: 19px;
    }
    .course-price-vat {
        font-size: 11px;
    }
    .course-price-box .btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .course-filter-btn {
        font-size: 11px;
        padding: 7px 4px;
    }
    .course-card-title {
        font-size: 15.5px;
    }
    .course-meta-label {
        width: 42%;
        font-size: 11.5px;
    }
    .course-meta-val {
        font-size: 11.5px;
    }
    .course-price-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 10px;
    }
    .course-price-box .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ------------------- Step 4 Dynamic Navigation Buttons ------------------- */
.step4-nav-wrapper {
    margin-top: 42px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.asr-btn-step4-back {
    position: relative;
    background: #ffffff !important;
    color: #334155 !important;
    border: 1.5px solid #cbd5e1 !important;
    font-weight: 600 !important;
    padding: 14px 26px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
}
.asr-btn-step4-back:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
}
.asr-btn-step4-back:active {
    transform: translateY(0);
}
.asr-btn-step4-back .asr-back-arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
}
.asr-btn-step4-back:hover .asr-back-arrow {
    transform: translateX(-5px);
}

.asr-btn-step4-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f59e0b 0%, #f1b209 50%, #eab308 100%) !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    padding: 14px 32px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
    border: none !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    box-shadow: 0 4px 16px rgba(241, 178, 9, 0.45) !important;
    animation: asrCtaPulse 2.8s infinite ease-in-out;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
}
.asr-btn-step4-cta::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 45%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 10%,
        rgba(255, 255, 255, 0.5) 50%,
        rgba(255, 255, 255, 0) 90%
    );
    transform: rotate(25deg);
    animation: asrLightSweep 3.8s infinite ease-in-out;
    pointer-events: none;
}
.asr-btn-step4-cta:hover {
    transform: translateY(-3px) scale(1.015);
    box-shadow: 0 10px 28px rgba(241, 178, 9, 0.65), 0 0 0 3px rgba(241, 178, 9, 0.3) !important;
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #eab308 100%) !important;
    color: #0f172a !important;
    animation-play-state: paused;
}
.asr-btn-step4-cta:active {
    transform: translateY(0) scale(0.99);
}
.asr-btn-step4-cta .asr-cta-arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
}
.asr-btn-step4-cta:hover .asr-cta-arrow {
    transform: translateX(6px);
}

@keyframes asrCtaPulse {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(241, 178, 9, 0.42), 0 0 0 0 rgba(241, 178, 9, 0.45);
        transform: translateY(0);
    }
    50% {
        box-shadow: 0 8px 24px rgba(241, 178, 9, 0.6), 0 0 0 8px rgba(241, 178, 9, 0);
        transform: translateY(-2px);
    }
}

@keyframes asrLightSweep {
    0% { left: -80%; }
    25%, 100% { left: 160%; }
}

@media (max-width: 640px) {
    .step4-nav-wrapper {
        flex-direction: column-reverse;
        gap: 12px;
        margin-top: 30px;
    }
    .step4-nav-wrapper .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ------------------- Step 4 Document Card Action Buttons ------------------- */
.asr-btn-card-action {
    position: relative;
    overflow: hidden;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.asr-btn-card-action:active {
    transform: translateY(0) scale(0.97) !important;
}

/* 1. View Document Button */
.asr-btn-action-view {
    background: #f8fafc !important;
    color: #1e293b !important;
    border: 1.5px solid #cbd5e1 !important;
    font-weight: 700 !important;
}
.asr-btn-action-view:hover {
    background: #ffffff !important;
    border-color: #253b80 !important;
    color: #253b80 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 59, 128, 0.14) !important;
}
.asr-btn-action-view .asr-btn-icon {
    display: inline-block;
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.asr-btn-action-view:hover .asr-btn-icon {
    transform: scale(1.22);
}

/* 2. Download PDF Button */
.asr-btn-action-download {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3) !important;
}
.asr-btn-action-download::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -80%;
    width: 40%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 10%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 90%
    );
    transform: rotate(25deg);
    animation: asrLightSweep 4.5s infinite ease-in-out;
    pointer-events: none;
}
.asr-btn-action-download:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 7px 18px rgba(5, 150, 105, 0.45) !important;
}
.asr-btn-action-download .asr-btn-icon {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.asr-btn-action-download:hover .asr-btn-icon {
    transform: translateY(2px) scale(1.15);
}

/* 3. Print Button */
.asr-btn-action-print {
    color: #ffffff !important;
    border: none !important;
    font-weight: 700 !important;
}
.asr-btn-action-print:hover {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 7px 18px rgba(30, 58, 138, 0.45) !important;
}
.asr-btn-action-print .asr-btn-icon {
    display: inline-block;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.asr-btn-action-print:hover .asr-btn-icon {
    transform: rotate(-8deg) scale(1.15);
}


