/* AprendeNube - Estilos Personalizados */

/* Variables CSS */
:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Estilos generales */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.6;
}

/* Navbar personalizado */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

/* Cards mejorados */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: box-shadow 0.2s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* Estilos para el indicador de porcentaje de aciertos */
#partial-score .badge {
    animation: updateScore 0.3s ease-in-out;
    min-width: 160px;
    padding: 0.5rem 0.75rem;
}

@keyframes updateScore {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Animación para respuesta correcta */
@keyframes correctAnswerPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    50% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0.3); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* Colores dinámicos para el porcentaje */
.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
    color: #000 !important;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

/* Responsive para el header del examen */
@media (max-width: 991px) {
    #partial-score {
        margin: 0.5rem 0;
        text-align: center !important;
    }
    
    .col-lg-4 {
        margin-bottom: 0.5rem;
    }
    
    #timer {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    #partial-score .badge {
        font-size: 0.85rem !important;
        min-width: 140px;
        padding: 0.4rem 0.6rem;
    }
    
    .progress {
        height: 20px !important;
    }
    
    .progress-bar {
        font-size: 0.8rem;
    }
}

/* Estilos específicos para respuestas múltiples */
.form-check input[type="checkbox"] {
    border-radius: 3px;
    transform: scale(1.1);
}

.form-check input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check input[type="radio"] {
    transform: scale(1.1);
}

.form-check input[type="radio"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Indicador de tipo de pregunta */
.alert-info {
    border-left: 4px solid #17a2b8;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

.alert-info .fas {
    color: #17a2b8;
}

/* Estilos para feedback de respuesta correcta */
.btn-success#submit-answer {
    transition: all 0.3s ease-in-out;
}

/* Estilos para la explicación de respuestas */
.explanation-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #495057;
    background-color: #f8f9fa;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 0.5rem;
}

.explanation-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.explanation-text a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Mejoras para el modal de respuesta incorrecta */
.modal-body .alert-danger {
    border-left: 4px solid #dc3545;
}

.modal-body .alert-warning {
    border-left: 4px solid #ffc107;
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

/* Animaciones suaves para modales */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
    transform: none;
}

.form-check.alert-success {
    border-left: 4px solid var(--success-color);
    transition: all 0.3s ease-in-out;
}

/* Jumbotron personalizado */
.jumbotron {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: var(--border-radius);
}

/* Progress bars mejoradas */
.progress {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.progress-bar {
    transition: width 0.6s ease;
}

/* Botones personalizados */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.125rem;
}

/* Estilos específicos para preguntas */
.question-text {
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 1.5rem;
    background-color: #fff;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.question-text img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1rem 0;
    box-shadow: var(--box-shadow);
    display: block;
}

/* Estilos específicos para imágenes en respuestas */
.question-text img.in-exam-image {
    max-width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.question-text img.in-exam-image:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Asegurar que las imágenes sean responsivas */
.question-text img.rounded.img-thumbnail {
    max-width: 100%;
    height: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.25rem;
    background-color: #fff;
    margin: 10px 0;
}

/* Form controls mejorados */
.form-check {
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: var(--border-radius);
    background-color: #fff;
    border: 2px solid #e9ecef;
    transition: background-color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}

.form-check:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
}

/* Ensure selected form-check elements don't move */
.form-check.selected {
    background-color: #e3f2fd;
    border-color: var(--primary-color);
    transform: none !important;
}

.form-check-input:checked ~ .form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

.form-check-input {
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.1em;
}

.form-check-label {
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    padding-left: 0.5rem;
}

/* Timer styles */
#timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.time-warning {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Estilos responsivos para imágenes en pantallas pequeñas */
@media (max-width: 768px) {
    .question-text img {
        max-width: 100%;
        margin: 10px 0;
    }
    
    .question-text img.in-exam-image,
    .question-text img.rounded.img-thumbnail {
        padding: 5px;
        margin: 8px 0;
    }
}

/* Modals mejorados */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.modal-header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 2px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
}

/* Explanation text styling */
.explanation-text {
    background-color: #f8f9fa;
    border-left: 4px solid var(--info-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Statistics tables */
.table {
    margin-bottom: 0;
}

.table th {
    border-top: none;
    font-weight: 600;
    color: var(--dark-color);
}

.table td {
    vertical-align: middle;
}

/* Accordion personalizado */
.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius) !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 500;
    padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
}

.accordion-body {
    padding: 1.5rem;
}

/* Leaderboard styles */
.list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem;
    transition: background-color 0.15s ease-in-out;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Footer */
footer {
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive utilities */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .jumbotron h1 {
        font-size: 2rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .question-text {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    .form-check {
        padding: 0.5rem;
        margin: 0.25rem 0;
    }
}

/* Loading spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom badges */
.badge {
    font-size: 0.8em;
    font-weight: 500;
}

/* Alert improvements */
.alert {
    border-radius: var(--border-radius);
    border: none;
    padding: 1rem 1.25rem;
}

.alert-dismissible .btn-close {
    padding: 1.25rem 1rem;
}

/* Custom colors for exam difficulty */
.text-gold {
    color: #ffd700 !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3) !important;
}

/* Hover effects */
.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transition: box-shadow 0.15s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .modal,
    footer {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}


/* ===== Exam navigation tree (home sidebar) ===== */
.exam-tree-sidebar {
    position: sticky;
    top: 1rem;
}

.exam-tree-scroll {
    max-height: calc(100vh - 16rem);
    overflow-y: auto;
}

.exam-tree .exam-tree-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    padding: 0.35rem 0.4rem;
    border: 0;
    background: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
}

.exam-tree .exam-tree-toggle:hover {
    background-color: var(--light-color);
}

.exam-tree .exam-tree-subcategory > .exam-tree-toggle {
    font-weight: 500;
    font-size: 0.85rem;
    color: #495057;
}

.exam-tree-caret {
    transition: transform 0.15s ease-in-out;
    width: 0.75rem;
}

.exam-tree .exam-tree-toggle[aria-expanded="true"] .exam-tree-caret {
    transform: rotate(90deg);
}

.exam-tree-link {
    display: block;
    padding: 0.3rem 0.5rem;
    border-radius: var(--border-radius);
    color: #212529;
    text-decoration: none;
    font-size: 0.85rem;
    border-left: 3px solid transparent;
}

.exam-tree-link:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.exam-tree-link.active {
    background-color: #e7f1ff;
    border-left-color: var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.exam-tree-code {
    font-weight: 600;
}

.exam-tree-cert {
    display: block;
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.2;
}

.exam-tree-link.active .exam-tree-cert {
    color: var(--primary-color);
}

.exam-tree [hidden] {
    display: none !important;
}

#content-panel.is-loading {
    opacity: 0.5;
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .exam-tree-sidebar {
        position: static;
    }

    .exam-tree-scroll {
        max-height: 22rem;
    }
}

/* ===== Saved exams cards ===== */
.saved-exam-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #dee2e6;
}

.saved-exam-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.progress-mini {
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-mini-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 0.3s ease;
}

.exam-meta {
    font-size: 0.85rem;
    color: #6c757d;
}

.btn-delete {
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.btn-delete:hover {
    opacity: 1;
}

.no-saved-exams {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.no-saved-exams i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ===== Certigroove visual system ===== */
:root {
    --primary-color: #0b8596;
    --primary-strong: #076b7a;
    --accent-cyan: #20d7e8;
    --accent-violet: #8b5cf6;
    --ink: #111c38;
    --muted-ink: #59677e;
    --surface: #ffffff;
    --page: #f4f7fb;
    --line: #dbe3ef;
    --border-radius: 0.375rem;
    --box-shadow: 0 0.25rem 0.8rem rgba(17, 28, 56, 0.08);
}

body {
    color: var(--ink);
    background-color: var(--page);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.app-navbar {
    min-height: 4.5rem;
    background: var(--surface);
    border-bottom: 3px solid var(--accent-cyan);
    box-shadow: 0 0.15rem 0.8rem rgba(17, 28, 56, 0.08);
}

.navbar-brand {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    padding: 0;
}

.navbar-brand-logo {
    display: block;
    width: 11.75rem;
    height: auto;
}

.app-navbar .nav-link {
    color: #40506a;
    font-weight: 600;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus,
.app-navbar .nav-link.show {
    color: var(--primary-strong);
}

.app-navbar .navbar-toggler {
    border-color: var(--line);
}

.app-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(32, 215, 232, 0.28);
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.card:hover {
    box-shadow: 0 0.45rem 1.1rem rgba(17, 28, 56, 0.12);
}

.card-header {
    border-bottom-color: var(--line);
}

.bg-primary,
.btn-primary,
.badge.bg-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-strong) !important;
    border-color: var(--primary-strong) !important;
}

.btn-outline-primary {
    color: var(--primary-strong);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    color: #fff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check:hover,
.form-check.selected {
    border-color: var(--accent-cyan);
}

.form-check.selected {
    background-color: #e7fbfd;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.jumbotron {
    background: linear-gradient(120deg, #111c38 0%, #17264a 60%, #2c2864 100%) !important;
    border: 1px solid #26365f;
    border-radius: 0.5rem !important;
    box-shadow: 0 0.7rem 1.5rem rgba(17, 28, 56, 0.18);
}

.jumbotron h1 {
    letter-spacing: 0;
}

.jumbotron hr {
    border-color: rgba(32, 215, 232, 0.42);
    opacity: 1;
}

.home-mark {
    width: 5rem;
    height: 5rem;
    flex: 0 0 auto;
    filter: drop-shadow(0 0.45rem 0.6rem rgba(0, 0, 0, 0.2));
}

.exam-tree-link.active {
    background-color: #e7fbfd;
    border-left-color: var(--accent-cyan);
    color: var(--primary-strong);
}

.exam-tree-link:hover {
    background-color: #f0fbfc;
    color: var(--primary-strong);
}

.app-footer {
    background: #eaf0f7;
    border-top: 1px solid var(--line);
}

.app-footer .text-muted {
    color: var(--muted-ink) !important;
}

.footer-logo {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0 0.35rem 0.15rem 0;
    vertical-align: middle;
}

.exam-section-heading {
    margin: 1.5rem 0 0.75rem;
    padding-bottom: 0.45rem;
    border-bottom: 2px solid var(--accent-cyan);
    color: var(--ink);
    font-size: 1.05rem;
    font-weight: 700;
}

.exam-section-heading:first-child {
    margin-top: 0;
}

.exam-subsection-heading {
    margin: 1rem 0 0.45rem;
    color: var(--primary-strong);
    font-size: 0.95rem;
    font-weight: 700;
}

.exam-resources ul {
    padding-left: 1.25rem;
}

.exam-resources a {
    color: var(--primary-strong);
}

.exam-resources a:hover {
    color: var(--accent-violet);
}

@media (max-width: 991.98px) {
    .app-navbar .navbar-collapse {
        padding: 0.75rem 0 0.25rem;
    }
}

@media (max-width: 575.98px) {
    .app-navbar {
        min-height: 4rem;
    }

    .navbar-brand-logo {
        width: 9.6rem;
    }

    .home-mark {
        width: 3.75rem;
        height: 3.75rem;
    }

    .jumbotron .display-5 {
        font-size: 1.8rem;
    }
}

/* ===== Public landing page ===== */
.landing-page {
    background: #f6f8fb;
}

.landing-main {
    overflow: hidden;
}

.landing-hero {
    position: relative;
    overflow: hidden;
    padding: 6.5rem 0 6rem;
    background: #111c38;
    color: #fff;
}

.landing-hero::after {
    position: absolute;
    width: 34rem;
    height: 34rem;
    right: -15rem;
    bottom: -20rem;
    border: 5rem solid rgba(32, 215, 232, 0.13);
    border-radius: 50%;
    content: "";
}

.landing-grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 3rem 3rem;
    mask-image: linear-gradient(to right, #000 15%, transparent 78%);
}

.landing-hero-logo {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    max-height: 11rem;
    margin: 0 auto 3rem;
    object-fit: contain;
    object-position: center;
}

.landing-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
    color: var(--accent-cyan);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.landing-eyebrow span {
    width: 1.8rem;
    height: 2px;
    background: currentColor;
}

.landing-hero h1,
.landing-section h2,
.landing-catalogue h2,
.landing-cta h2 {
    max-width: 13ch;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    letter-spacing: 0;
}

.landing-hero h1 {
    font-size: clamp(3rem, 5vw, 5.2rem);
    line-height: 1.02;
}

.landing-hero h1 em {
    color: var(--accent-cyan);
    font-style: italic;
}

.landing-lead {
    max-width: 35rem;
    margin: 1.75rem 0 2.1rem;
    color: #c2cde2;
    font-size: 1.15rem;
}

.landing-primary-action,
.landing-secondary-action {
    border-radius: 4px;
    padding: 0.85rem 1.25rem;
    font-weight: 700;
}

.landing-primary-action {
    background: var(--accent-cyan);
    border-color: var(--accent-cyan);
    color: #082735;
}

.landing-primary-action:hover,
.landing-primary-action:focus {
    background: #a5f3f7;
    border-color: #a5f3f7;
    color: #082735;
}

.landing-secondary-action {
    border: 1px solid #70809c;
    color: #fff;
}

.landing-secondary-action:hover,
.landing-secondary-action:focus {
    border-color: #fff;
    color: #fff;
}

.landing-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.4rem;
    margin-top: 2rem;
    color: #c2cde2;
    font-size: 0.85rem;
}

.landing-trust-row i {
    color: var(--accent-cyan);
}

.landing-exam-preview {
    position: relative;
    z-index: 1;
    padding: 1.5rem;
    border: 1px solid rgba(32, 215, 232, 0.42);
    border-radius: 8px;
    background: #fff;
    box-shadow: 1rem 1rem 0 rgba(32, 215, 232, 0.18);
    color: var(--ink);
    animation: landing-rise 650ms ease-out both;
}

.preview-topline,
.preview-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--muted-ink);
    font-size: 0.75rem;
    font-weight: 700;
}

.preview-live { color: var(--primary-strong); }
.preview-live i { color: #26ad71; font-size: 0.55rem; }
.preview-progress { height: 0.38rem; margin: 1.25rem 0 1rem; overflow: hidden; background: #e5eaf2; }
.preview-progress span { display: block; width: 45%; height: 100%; background: var(--accent-cyan); }
.preview-label { margin-bottom: 0.6rem; color: var(--primary-strong); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; }
.landing-exam-preview h2 { margin: 0 0 1.25rem; font-size: 1.02rem; line-height: 1.45; font-weight: 700; }
.preview-answer { display: flex; align-items: center; gap: 0.7rem; margin: 0.55rem 0; padding: 0.7rem; border: 1px solid var(--line); border-radius: 4px; font-size: 0.88rem; }
.preview-answer span { display: grid; width: 1.35rem; height: 1.35rem; place-items: center; border-radius: 50%; background: #eef2f7; color: #62708a; font-size: 0.7rem; font-weight: 700; }
.preview-answer i { margin-left: auto; color: #158557; }
.preview-answer.is-selected { border-color: var(--primary-color); background: #e7fbfd; font-weight: 700; }
.preview-answer.is-selected span { background: var(--primary-color); color: #fff; }
.preview-footer { margin-top: 1.35rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.preview-footer strong { color: #158557; }
.preview-footer i { color: var(--primary-color); }

.landing-proof { padding: 1.8rem 0; border-bottom: 1px solid var(--line); background: #fff; }
.landing-proof > .container > p { margin: 0 0 0.9rem; color: var(--muted-ink); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.landing-proof .col-md-4 { display: flex; justify-content: center; gap: 0.5rem; padding: 0.25rem 1rem; border-right: 1px solid var(--line); }
.landing-proof .col-md-4:last-child { border-right: 0; }
.landing-proof strong { color: var(--ink); }
.landing-proof span { color: var(--muted-ink); }

.landing-section,
.landing-catalogue,
.landing-cta { padding: 6rem 0; }
.landing-section-heading { margin-bottom: 2.5rem; }
.landing-section h2,
.landing-catalogue h2,
.landing-cta h2 { font-size: clamp(2.1rem, 3.4vw, 3.5rem); line-height: 1.1; color: var(--ink); }
.landing-feature { position: relative; min-height: 15rem; padding: 1.75rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.landing-feature-number { position: absolute; top: 1.5rem; right: 1.5rem; color: #9aa7bb; font-size: 0.75rem; font-weight: 700; }
.landing-feature > i { color: var(--primary-color); font-size: 1.5rem; }
.landing-feature h3 { margin: 1.6rem 0 0.6rem; font-size: 1.1rem; font-weight: 700; }
.landing-feature p { margin: 0; color: var(--muted-ink); }

.landing-catalogue { background: #e7fbfd; }
.landing-catalogue .row > div:last-child p { max-width: 31rem; margin: 0; color: var(--muted-ink); }
.landing-cert-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.landing-cert-list span { padding: 0.65rem 0.85rem; border: 1px solid #b7dce1; border-radius: 4px; background: rgba(255, 255, 255, 0.65); color: #21405c; font-size: 0.88rem; font-weight: 700; }
.landing-cert-list i { margin-right: 0.35rem; color: var(--primary-color); }

.landing-published-exams { padding: 6rem 0; background: #f6f8fb; }
.landing-published-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.landing-published-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.1rem, 3.4vw, 3.5rem); font-weight: 700; line-height: 1.1; color: var(--ink); }
.landing-published-heading > p { max-width: 21rem; margin: 0; color: var(--muted-ink); }
.published-exam-card { display: flex; min-height: 12.5rem; flex-direction: column; padding: 1.35rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.published-exam-card:hover { border-color: var(--accent-cyan); box-shadow: 0 0.6rem 1.2rem rgba(17, 28, 56, 0.1); transform: translateY(-0.15rem); }
.published-exam-topline { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted-ink); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.published-exam-topline span:last-child { flex: 0 0 auto; color: var(--primary-strong); }
.published-exam-card h3 { margin: 1.35rem 0 0.35rem; color: var(--primary-strong); font-size: 1.25rem; font-weight: 800; }
.published-exam-card p { margin: 0; color: var(--ink); font-size: 0.92rem; line-height: 1.45; }
.published-exam-card a { margin-top: auto; padding-top: 1.2rem; color: var(--primary-strong); font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.published-exam-card a:hover { color: var(--accent-violet); }
.published-exam-card a i { margin-left: 0.35rem; }

.landing-cta { background: #111c38; }
.landing-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.landing-cta h2 { max-width: 18ch; color: #fff; }
.landing-cta .landing-eyebrow { margin-bottom: 0.75rem; }

@keyframes landing-rise {
    from { opacity: 0; transform: translateY(1.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767.98px) {
    .landing-hero { padding: 4.25rem 0 4rem; }
    .landing-hero-logo { max-height: 5.5rem; margin-bottom: 2.25rem; }
    .landing-proof .col-md-4 { justify-content: flex-start; padding: 0.5rem 0; border-right: 0; }
    .landing-section,
    .landing-catalogue,
    .landing-published-exams,
    .landing-cta { padding: 4rem 0; }
    .landing-published-heading { align-items: flex-start; flex-direction: column; gap: 0.75rem; }
    .landing-cta-inner { align-items: flex-start; flex-direction: column; }
}
