/* Custom CSS for AHP Calculator */

:root {
    --primary-color: #E13A44;
    --primary-hover: #c72d36;
    --background-color: #f1f0f0;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--background-color);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header Styles */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.praxyma-logo {
    height: 50px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.praxyma-logo-link:hover .praxyma-logo {
    transform: scale(1.1) translateY(-3px);
}

.navbar-brand {
    font-weight: 600;
    color: var(--text-dark) !important;
    font-size: 1.5rem;
    cursor: default;
    pointer-events: none;
}

/* Progress Indicator */
.progress-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    padding: 0 1rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.step-number {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #e9ecef;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.step-label {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
}

.progress-step.active .step-number {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.progress-step.completed .step-number {
    background-color: var(--success-color);
    color: white;
    border-color: var(--success-color);
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--text-dark);
    font-weight: 600;
}

.progress-line {
    flex: 1;
    height: 3px;
    background-color: #e9ecef;
    margin: 0 1rem;
    position: relative;
    top: -20px;
}

.progress-line.completed {
    background-color: var(--success-color);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.card-title {
    color: var(--text-dark);
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 58, 68, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    border-radius: 8px;
}

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

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(225, 58, 68, 0.15);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* Comparison Matrix Styles */
.comparison-matrix {
    overflow-x: auto;
    margin: 1rem 0;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Mobile scroll hint */
.matrix-scroll-hint {
    display: none;
    text-align: center;
    padding: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: linear-gradient(90deg, transparent, #f8f9fa 20%, #f8f9fa 80%, transparent);
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.matrix-scroll-hint i {
    vertical-align: middle;
    margin: 0 0.25rem;
}

@media (max-width: 768px) {
    .matrix-scroll-hint {
        display: block;
    }
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 4px;
}

.comparison-table th {
    background-color: #f8f9fa;
    color: var(--text-dark);
    font-weight: 600;
    text-align: center;
    padding: 0.75rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.comparison-table td {
    text-align: center;
    padding: 0.5rem;
    vertical-align: middle;
}

.comparison-input {
    width: 80px;
    text-align: center;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    font-size: 0.9rem;
    -moz-appearance: textfield; /* Firefox */
}

/* Remove spinner arrows from number inputs */
.comparison-input::-webkit-outer-spin-button,
.comparison-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.comparison-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.15rem rgba(225, 58, 68, 0.15);
}

.comparison-label {
    font-weight: 500;
    color: var(--text-dark);
    white-space: nowrap;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.matrix-cell-equal {
    background-color: #f8f9fa;
    font-weight: 600;
    color: var(--text-muted);
}

.matrix-cell-reciprocal {
    background-color: #e3f2fd;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Comparison Guide */
.comparison-guide {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
}

.scale-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.scale-item:last-child {
    border-bottom: none;
}

.scale-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
    min-width: 25px;
    flex-shrink: 0;
}

.scale-desc {
    color: var(--text-dark);
    font-size: 0.9rem;
    margin-left: 1rem;
    flex: 1;
}

.scale-notes {
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

.intermediate-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.cr-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Consistency Badge */
.consistency-badge .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.consistency-excellent {
    background-color: var(--success-color) !important;
}

.consistency-acceptable {
    background-color: var(--warning-color) !important;
}

.consistency-poor {
    background-color: var(--danger-color) !important;
}

/* Tabs */
.nav-pills .nav-link {
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-muted);
    margin-right: 0.5rem;
    padding: 0.75rem 1.25rem;
}

.nav-pills .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.nav-pills .nav-link:hover:not(.active) {
    background-color: #f8f9fa;
    color: var(--text-dark);
}

/* Results Styles */
.results-section {
    margin-bottom: 2rem;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.result-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.chart-container {
    position: relative;
    height: 400px;
    margin: 1rem 0;
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.ranking-position {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    min-width: 30px;
}

.ranking-name {
    flex: 1;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 1rem;
}

.ranking-score {
    font-weight: 600;
    color: var(--text-dark);
    background-color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* ===================================
   MOBILE-FIRST RESPONSIVE DESIGN
   =================================== */

/* Tablet and smaller */
@media (max-width: 992px) {
    .praxyma-logo {
        height: 40px;
    }
    
    .navbar-brand {
        font-size: 0.95rem;
    }
    
    .navbar-brand em {
        display: none;
    }
}

/* Medium devices (tablets) */
@media (max-width: 768px) {
    /* Header Optimizations */
    .sticky-header .container {
        padding: 0.5rem 1rem;
    }
    
    .praxyma-logo {
        height: 35px;
    }
    
    .navbar-brand {
        font-size: 0.85rem;
        max-width: 65%;
        line-height: 1.3;
    }
    
    /* Progress Indicator - Compact Horizontal */
    .progress-container {
        gap: 0.25rem;
        margin: 1rem 0;
        padding: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        justify-content: flex-start;
    }
    
    .progress-container::-webkit-scrollbar {
        display: none;
    }
    
    .progress-step {
        flex-shrink: 0;
        min-width: 70px;
    }
    
    .step-number {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
    
    .step-label {
        font-size: 0.7rem;
        margin-top: 0.25rem;
    }
    
    .progress-line {
        display: none;
    }
    
    /* Card Optimizations */
    .card-header {
        padding: 1rem;
    }
    
    .card-header h4 {
        font-size: 1.1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    /* Form Touch-Friendly Inputs */
    .form-control {
        min-height: 48px;
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 0.875rem 1rem;
    }
    
    .form-control-lg {
        min-height: 52px;
        font-size: 16px;
    }
    
    /* Touch-friendly buttons (44px minimum) */
    .btn {
        min-height: 44px;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
    
    .btn-lg {
        min-height: 50px;
        font-size: 1rem;
        padding: 0.875rem 1.25rem;
    }
    
    .btn-outline-danger {
        min-width: 44px;
        padding: 0.5rem;
    }
    
    /* Input groups */
    .input-group {
        margin-bottom: 0.75rem;
    }
    
    /* Comparison Matrix Mobile */
    .comparison-matrix {
        margin: 0.5rem -0.5rem;
        padding: 0.5rem;
        border-radius: 8px;
        background: #fafafa;
    }
    
    .comparison-table {
        font-size: 0.85rem;
        border-spacing: 3px;
    }
    
    .comparison-table th {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
        max-width: 60px;
    }
    
    .comparison-table td {
        padding: 0.35rem;
    }
    
    .comparison-input {
        width: 52px;
        min-height: 44px;
        font-size: 16px;
        padding: 0.5rem 0.25rem;
        border-radius: 6px;
    }
    
    .comparison-label {
        font-size: 0.75rem;
        padding: 0.35rem;
        max-width: 60px;
        white-space: normal;
        word-break: break-word;
    }
    
    .matrix-cell-equal,
    .matrix-cell-reciprocal {
        font-size: 0.8rem;
        padding: 0.35rem;
    }
    
    /* Comparison Guide - Collapsible on Mobile */
    .comparison-guide {
        position: static;
        margin-top: 1.5rem;
        padding: 1rem;
        border-radius: 8px;
    }
    
    .comparison-guide h6 {
        font-size: 0.9rem;
    }
    
    .scale-item {
        padding: 0.4rem 0;
    }
    
    .scale-value {
        font-size: 1rem;
        min-width: 22px;
    }
    
    .scale-desc {
        font-size: 0.8rem;
        margin-left: 0.75rem;
    }
    
    /* Tabs - Horizontal Scroll */
    .criterion-tabs {
        margin: 0 -1.25rem;
        padding: 0 1.25rem;
    }
    
    .nav-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .nav-pills::-webkit-scrollbar {
        display: none;
    }
    
    .nav-pills .nav-link {
        flex-shrink: 0;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    /* Results Optimizations */
    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .result-card {
        padding: 1rem;
    }
    
    .chart-container {
        height: 280px;
        margin: 0.5rem 0;
    }
    
    .ranking-item {
        padding: 0.6rem 0.75rem;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .ranking-position {
        font-size: 1rem;
        min-width: 24px;
    }
    
    .ranking-name {
        font-size: 0.9rem;
        margin: 0 0.5rem;
        flex: 1;
        min-width: 0;
        word-break: break-word;
    }
    
    .ranking-score {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }
    
    /* Consistency Badge */
    .consistency-badge {
        margin-top: 0.5rem;
    }
    
    .consistency-badge .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.75rem;
    }
    
    /* Navigation Buttons */
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .d-flex.justify-content-between .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer Mobile */
    .site-footer {
        padding: 1.5rem 0;
    }
    
    .footer-description {
        font-size: 0.8rem;
    }
    
    .footer-contact {
        gap: 1rem;
    }
    
    .footer-link {
        font-size: 0.75rem;
    }
    
    /* Educational Card */
    .educational-card {
        margin-top: 1.5rem;
        padding: 1.25rem;
    }
    
    /* Modals */
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-body {
        padding: 1.25rem;
    }
}

/* Small devices (phones) */
@media (max-width: 576px) {
    /* Container */
    .container,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    main.container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Header Compact */
    .sticky-header .container {
        padding: 0.4rem 0.75rem;
    }
    
    .praxyma-logo {
        height: 30px;
    }
    
    .navbar-brand {
        font-size: 0.75rem;
    }
    
    /* Progress Steps - Smaller */
    .progress-container {
        margin: 0.75rem 0;
    }
    
    .progress-step {
        min-width: 60px;
    }
    
    .step-number {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        border-width: 2px;
    }
    
    .step-label {
        font-size: 0.65rem;
    }
    
    /* Card Compact */
    .card {
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 0.875rem;
    }
    
    .card-header h4 {
        font-size: 1rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Form Labels */
    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .form-text {
        font-size: 0.75rem;
    }
    
    /* Matrix Further Optimization */
    .comparison-matrix {
        margin: 0.25rem -0.75rem;
        padding: 0.5rem;
    }
    
    .comparison-table {
        border-spacing: 2px;
    }
    
    .comparison-table th {
        font-size: 0.7rem;
        padding: 0.4rem 0.15rem;
        max-width: 50px;
    }
    
    .comparison-input {
        width: 46px;
        min-height: 42px;
        font-size: 16px;
        padding: 0.4rem 0.15rem;
    }
    
    .comparison-label {
        font-size: 0.7rem;
        max-width: 50px;
        padding: 0.25rem;
    }
    
    .matrix-cell-equal,
    .matrix-cell-reciprocal {
        font-size: 0.7rem;
    }
    
    /* Comparison Guide Compact */
    .comparison-guide {
        padding: 0.875rem;
        margin-top: 1rem;
    }
    
    .scale-item {
        padding: 0.3rem 0;
    }
    
    .scale-value {
        font-size: 0.9rem;
    }
    
    .scale-desc {
        font-size: 0.75rem;
    }
    
    .scale-notes {
        padding-top: 0.4rem;
    }
    
    .intermediate-note,
    .cr-note {
        font-size: 0.7rem;
    }
    
    /* Tabs Smaller */
    .nav-pills .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Results Mobile */
    .chart-container {
        height: 240px;
    }
    
    .ranking-item {
        padding: 0.5rem 0.6rem;
        margin-bottom: 0.4rem;
        border-left-width: 3px;
    }
    
    .ranking-position {
        font-size: 0.95rem;
    }
    
    .ranking-name {
        font-size: 0.85rem;
    }
    
    .ranking-score {
        font-size: 0.75rem;
    }
    
    /* Footer */
    .site-footer {
        padding: 1.25rem 0;
    }
    
    .footer-contact {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Updates CTA */
    .updates-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .updates-cta-text p {
        font-size: 0.85rem;
    }
    
    .updates-cta-btn {
        width: 100%;
    }
    
    /* Educational Block */
    .educational-block {
        padding: 1rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    .navbar-brand {
        font-size: 0.7rem;
    }
    
    .praxyma-logo {
        height: 26px;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .step-label {
        font-size: 0.6rem;
    }
    
    .progress-step {
        min-width: 55px;
    }
    
    .comparison-input {
        width: 42px;
        min-height: 40px;
    }
    
    .comparison-table th,
    .comparison-label {
        font-size: 0.65rem;
        max-width: 45px;
    }
}

/* Touch-specific improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn,
    .form-control,
    .nav-link,
    .comparison-input {
        cursor: pointer;
    }
    
    /* Remove hover effects on touch devices */
    .btn:hover {
        transform: none;
    }
    
    .btn-primary:hover,
    .btn-primary:focus {
        transform: none;
        box-shadow: none;
    }
    
    /* Active state for touch feedback */
    .btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .comparison-input:focus {
        box-shadow: 0 0 0 3px rgba(225, 58, 68, 0.2);
    }
}

/* Landscape phone optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .progress-container {
        margin: 0.5rem 0;
    }
    
    .step-number {
        width: 30px;
        height: 30px;
    }
    
    .step-label {
        display: none;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .modal-dialog {
        margin: 0.5rem auto;
        max-height: 95vh;
    }
}

/* Animation for smooth transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Export buttons */
.export-buttons .btn {
    margin-left: 0.5rem;
}

/* Error states */
.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

/* Footer Styles */
.site-footer {
    background-color: #fff;
    border-top: 1px solid var(--border-color);
    padding: 1.75rem 0;
    margin-top: 2.5rem;
}

.footer-description {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-description strong {
    color: var(--text-dark);
}

.footer-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.3rem;
}

.footer-admin {
    margin-top: 1rem;
}

.footer-admin .btn {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
}

.footer-copyright {
    color: #aaa;
    font-size: 0.75rem;
    margin-bottom: 0;
    margin-top: 0.75rem;
}

/* Educational Card Styles - Option 1: Red Left Border */
.educational-card {
    background-color: #fff;
    border-left: 5px solid var(--primary-color);
    border-radius: 4px;
    padding: 1.5rem;
    height: fit-content;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
    margin-top: 0;
}

.card-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.card-link {
    display: flex;
    align-items: flex-start;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    line-height: 1.6;
    transition: color 0.2s;
}

.card-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.card-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Educational Content Block Styles (for Results page) */
.educational-block {
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
}

.learn-more-section {
    text-align: center;
}

.learn-more-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.learn-more-text {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.8;
}

.learn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.learn-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.learn-icon {
    width: 16px;
    height: 16px;
    margin-right: 0.3rem;
    vertical-align: -2px;
}

.link-separator {
    color: var(--text-muted);
    margin: 0 0.5rem;
    font-weight: 400;
}

/* Updates CTA Section */
.updates-cta-section {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed #dee2e6;
}

.updates-cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.updates-cta-text {
    flex: 1;
    min-width: 200px;
    max-width: 500px;
}

.updates-cta-text p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.updates-cta-btn {
    white-space: nowrap;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .educational-sidebar {
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .educational-sidebar {
        margin-top: 1rem;
    }
    
    .sidebar-links {
        gap: 0.75rem;
    }
    
    .learn-more-text {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .link-separator {
        display: block;
        margin: 0;
    }
    
    .updates-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .updates-cta-text {
        max-width: 100%;
    }
}
