﻿/* Basic Styles */
html {
    height: 100%;
    overflow-y: scroll; /* reserve vertical scrollbar space */
    scrollbar-gutter: stable; /* keep viewport width when vertical scrollbars appear without adding extra left gutter */
}

body {
    font-family: sans-serif;
    margin: 0;
    min-height: calc(100vh + 1px); /* force slight overflow so scrollbar is persistent */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
    padding: 1rem 2rem;
    background-color: #ffffff;
    border-bottom: 1px solid #E0E0E0;
}

header nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.logo-container a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #143071;
}

.logo-container img {
    height: 120px;
    width: 200px;
    border-radius: 12px;
    object-fit: cover;
}

.site-title {
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 5px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    column-gap: clamp(0.75rem, 2vw, 2rem);
    row-gap: 0.5rem;
    justify-content: center;
}

nav ul li {
    flex: 0 0 auto;
}

@media (max-width: 755px) {
    header {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        padding: 1rem 1.5rem;
    }

    .logo-container {
        display: flex;
        justify-content: center;
    }

    header nav {
        width: 100%;
    }

    nav ul {
        justify-content: center;
    }

    .controls {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .controls > .button {
        order: 1;
        align-self: center;
    }

    .controls .language-selector-wrapper {
        order: 2;
        align-self: center;
    }

    .language-selector-button {
        width: auto;
    }
}

@media (max-width: 480px) {
    nav ul {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 0.5rem;
        width: 100%;
    }

    nav ul li a {
        justify-content: center;
    }
}

nav ul li a {
    position: relative;
    text-decoration: none;
    color: #143071;
    font-weight: bold;
    padding-bottom: 5px; /* Create space for the line */
    display: flex;
    align-items: center;
    transition: transform 0.1s ease-out;
}

nav ul li a:active {
    transform: scale(0.9);
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, transparent, #143071 30%, #143071 70%, transparent);
    transition: width 0.25s ease-out;
    border-radius: 2px;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.controls {
    display: flex;
    align-items: center;
    gap: 12px; /* pequeÃƒÂ±o respiro visual */
}

.button {
    padding: 0.75rem 1.5rem;
    background-color: #0f1478;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 600;
    line-height: 1.1;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: none;
}

.button--ghost {
    background-color: transparent;
    color: #0f1478;
    border: 1px solid rgba(20, 48, 113, 0.35);
}

.button--ghost:hover,
.button--ghost:focus-visible {
    background-color: rgba(111, 168, 255, 0.15);
    transform: translateY(-2px) scale(1.02);
}

/* Landing Page */
.landing {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 3.5rem) clamp(4rem, 7vw, 5.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 3.5rem);
}

.landing-hero {
    display: grid;
    gap: clamp(1.75rem, 4vw, 3rem);
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.9fr);
    align-items: center;
    padding: clamp(2rem, 5vw, 3.75rem);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(20, 48, 113, 0.08), rgba(111, 168, 255, 0.25));
    border: 1px solid rgba(20, 48, 113, 0.1);
    box-shadow: 0 24px 48px rgba(20, 48, 113, 0.12);
}

.landing-hero__content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: #0f1478;
}

.landing-hero__eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    color: rgba(15, 20, 120, 0.75);
}

.landing-hero__content h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
}

.landing-hero__content p {
    margin: 0;
    color: #1d1d1d;
    font-size: clamp(1.05rem, 2.8vw, 1.2rem);
    line-height: 1.6;
}

.landing-hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.landing-hero__metrics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.landing-hero__metrics li {
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    padding: 1.1rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    border: 1px solid rgba(20, 48, 113, 0.12);
    box-shadow: 0 12px 24px rgba(20, 48, 113, 0.08);
}

.landing-hero__metrics strong {
    font-size: 1.9rem;
    color: #0f1478;
    line-height: 1;
}

.landing-hero__metrics span {
    font-size: 0.95rem;
    color: #1d1d1d;
}

.landing-value {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.landing-value h2,
.landing-featured h2,
.landing-experience h2,
.landing-cta h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3.8vw, 2.4rem);
    color: #143071;
}

.landing-value__grid,
.landing-featured__grid {
    display: grid;
    gap: clamp(1rem, 3vw, 1.75rem);
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.landing-card {
    background-color: #ffffff;
    border-radius: 18px;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid rgba(20, 48, 113, 0.12);
    box-shadow: 0 18px 36px rgba(20, 48, 113, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.landing-card h3 {
    margin: 0;
    color: #0f1478;
    font-size: 1.2rem;
}

.landing-card p {
    margin: 0;
    color: #2e2e2e;
    line-height: 1.6;
}

.landing-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.landing-section-header .button {
    flex-shrink: 0;
}

.landing-featured {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.landing-experience {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
    padding: clamp(2rem, 5vw, 3.5rem);
    border-radius: 24px;
    background-color: rgba(15, 20, 120, 0.04);
    border: 1px solid rgba(20, 48, 113, 0.12);
}

.landing-experience__list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.75rem;
    color: #1d1d1d;
    line-height: 1.6;
}

.landing-experience__quote {
    background-color: #ffffff;
    border-radius: 20px;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid rgba(20, 48, 113, 0.12);
    box-shadow: 0 18px 32px rgba(20, 48, 113, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.landing-experience__quote h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #0f1478;
}

.landing-experience__quote blockquote {
    margin: 0;
    font-size: 1rem;
    color: #2e2e2e;
    line-height: 1.6;
}

.landing-experience__quote cite {
    font-style: normal;
    font-size: 0.95rem;
    color: rgba(15, 20, 120, 0.75);
    font-weight: 600;
}

.landing-cta {
    text-align: center;
    background: linear-gradient(135deg, rgba(111, 168, 255, 0.18), rgba(20, 48, 113, 0.08));
    border-radius: 24px;
    padding: clamp(2.25rem, 5vw, 3.5rem);
    border: 1px solid rgba(20, 48, 113, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.landing-cta p {
    margin: 0;
    max-width: 620px;
    line-height: 1.6;
    color: #1d1d1d;
    font-size: clamp(1rem, 2.5vw, 1.15rem);
}

.landing-cta__group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

@media (max-width: 1024px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-hero__metrics {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .landing-experience {
        grid-template-columns: 1fr;
    }

    .landing-section-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .landing {
        padding: 2.5rem 1.25rem 4rem;
    }

    .landing-hero,
    .landing-experience,
    .landing-cta {
        padding: 1.75rem;
    }

    .landing-hero__cta-group,
    .landing-cta__group {
        width: 100%;
    }

    .landing-hero__cta-group .button,
    .landing-cta__group .button {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block; /* Ã°Å¸â€Â¹ en desktop; en mÃƒÂ³vil lo sobreescribimos a block dentro de .controls */
}

.dropdown > a {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    color: #143071;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.dropdown-content a:hover {
    background-color: #c5c5c5;
    border-radius: 12px;
}

nav .dropdown:hover .dropdown-content {
    display: block;
}

.language-selector-button {
    background-color: transparent;
    border: 1px solid #143071;
    border-radius: 12px;
    padding: 8px 30px 8px 15px;
    color: #143071;
    cursor: pointer;
    font-weight: bold;
    display: block;
    position: relative;
    text-decoration: none;
    max-width: 100%;
    text-align: center; /* mejora estÃƒÂ©tica cuando se centra el wrapper */
}

.language-selector-button::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #143071;
    pointer-events: none;
}

.language-dropdown-content {
    /* to align with the button */
    left: 0;
    transform: none;
    width: 100%;
    min-width: 0;
}

/* Course Lobby Styles */
.course-lobby .hero {
    text-align: center;
    padding: 4rem 2rem;
    background-color: #f4f7fc;
}

.course-lobby .hero h1 {
    color: #143071;
    font-size: 2.5rem;
}

.course-lobby .hero p {
    color: #555;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

.course-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
}

.course-card {
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(20, 48, 113, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(20, 48, 113, 0.2);
}

.course-card:hover::before {
    opacity: 1;
}

.course-card img {
    width: calc(100% - 2rem);
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin: 1rem 1rem 0 1rem;
}

.course-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-info h2 {
    color: #143071;
    margin-top: 0;
    text-align: center;
}

.course-info h2 a {
    text-decoration: none;
    color: inherit;
}

.course-info p {
    color: #555;
    font-size: 0.9rem;
}

.module-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border: none;
    background-color: transparent;
    color: #0f1478;
    cursor: pointer;
    transition: color 0.2s ease;
    box-shadow: none;
    border-radius: 0;
}

.module-toggle:hover,
.module-toggle:focus-visible {
    color: #143071;
}

.module-toggle:focus-visible {
    outline: 3px solid rgba(111, 168, 255, 0.65);
    outline-offset: 3px;
}

.module-toggle .module-toggle-icon {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border: solid currentColor;
    border-width: 0 0.18rem 0.18rem 0;
    transform: rotate(45deg) scale(1);
    transform-origin: center;
    animation: none;
}

.module-toggle[aria-expanded="true"] .module-toggle-icon {
    transform: rotate(-135deg) scale(1);
}

.module-toggle[aria-expanded="false"] .module-toggle-icon {
    transform: rotate(45deg) scale(1);
}

.module-toggle .module-toggle-icon.module-toggle-icon--animating-open {
    animation: module-chevron-open 0.35s ease forwards;
}

.module-toggle .module-toggle-icon.module-toggle-icon--animating-close {
    animation: module-chevron-close 0.35s ease forwards;
}

.module-toggle .module-toggle-icon.module-toggle-icon--animating-open,
.module-toggle .module-toggle-icon.module-toggle-icon--animating-close {
    will-change: transform;
}

@keyframes module-chevron-open {
    0% {
        transform: rotate(45deg) scale(1);
    }
    49% {
        transform: rotate(45deg) scale(0);
    }
    50% {
        transform: rotate(-135deg) scale(0);
    }
    100% {
        transform: rotate(-135deg) scale(1);
    }
}

@keyframes module-chevron-close {
    0% {
        transform: rotate(-135deg) scale(1);
    }
    49% {
        transform: rotate(-135deg) scale(0);
    }
    50% {
        transform: rotate(45deg) scale(0);
    }
    100% {
        transform: rotate(45deg) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .module-toggle .module-toggle-icon {
        animation: none !important;
    }
}

.modules-container {
    display: none;
    margin-top: 1rem;
}

.module {
    background-color: #f4f7fc;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.module a {
    display: block;
    padding: 12px 15px;
    text-decoration: none;
    color: #143071;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.module a:hover {
    background-color: #e0e8f5;
    border-radius: 8px;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem;
    margin-top: auto;
    flex-shrink: 0;
    background-color: #143071;
    color: white;
}

footer .footer-rights {
    margin: 0 0 0 auto;
    text-align: right;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-social__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    color: inherit;
    overflow: hidden;
    transition: opacity 0.2s ease-in-out;
}

.footer-social__link:hover,
.footer-social__link:focus {
    opacity: 0.8;
}

.footer-social__icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.text-justify {
    text-align: justify;
}

.center-button-container {
    text-align: center;
    margin-top: auto;
    padding-top: 1.5rem;
}


.course-dashboard--issues .course-column--left .card + .card {
    margin-top: 1rem;
}

.course-dashboard--issues p,
.course-dashboard--issues li {
    text-align: justify;
}

.course-dashboard--issues .course-header__body {
    text-align: center;
}

.course-dashboard--issues .course-header.card .course-header__body {
    padding-top: 1rem;
}

.course-dashboard--issues .course-header__body h1 {
    margin-top: 0.75rem;
}

.course-dashboard--issues .course-header__body h1,
.course-dashboard--issues .course-header__body p {
    text-align: center;
}

.course-dashboard--issues .course-resources .resource-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.course-dashboard--issues .course-resources .resource-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 0.5rem 0;
    text-align: left;
}

.course-dashboard--issues .course-resources .resource-name {
    flex: 1 1 18rem;
    text-align: left;
}

.course-dashboard--issues .course-resources .btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.course-dashboard--issues .course-resources .btn-download svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
    flex-shrink: 0;
}

.course-dashboard--issues .course-resources .btn-download:hover,
.course-dashboard--issues .course-resources .btn-download:focus-visible,
.course-dashboard .module-actions .button:hover,
.course-dashboard .module-actions .button:focus-visible,
.course-card .button:hover,
.course-card .button:focus-visible {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 1.25rem 0.1rem rgba(111, 168, 255, 0.45), 0 12px 24px rgba(20, 48, 113, 0.25);
    background-color: #0f1478;
}

.course-dashboard--issues .course-resources .btn-download:focus-visible,
.course-dashboard .module-actions .button:focus-visible,
.course-card .button:focus-visible {
    outline: 3px solid rgba(111, 168, 255, 0.65);
    outline-offset: 3px;
}

.course-dashboard {
    padding: 2.5rem clamp(2rem, 4vw, 4rem);
    max-width: 1200px;
    margin: 0 auto;
}

.course-dashboard .course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: start;
}

.course-dashboard .course-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

    .course-dashboard .card {
    position: relative;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    isolation: isolate;
}

.course-dashboard .course-header.card {
    padding: 0;
    overflow: hidden;
}

.course-dashboard .course-header__body h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f1478;
    letter-spacing: 0.02em;
    margin: 1.25rem 0 0.75rem;
}
.course-dashboard .course-header.card .course-header__body {
    padding: 1rem;
}

.course-dashboard .course-banner {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.course-dashboard .course-modules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.course-dashboard .course-modules h2 {
    margin-bottom: 0.35rem;
}

.course-dashboard .course-modules .module-note {
    margin-top: 0.25rem;
}

.course-dashboard .course-modules .module {
    position: relative;
    padding: 1rem 1rem 1rem;
    background-color: #f4f7fc;
    border-radius: 12px;
    border: 1px solid rgba(20, 48, 113, 0.08);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    isolation: isolate;
}

.course-dashboard .course-modules .module.module--has-dropdown {
    overflow: visible;
    --dropdown-gap: 0px;
    padding-bottom: calc(1rem + var(--dropdown-gap));
    transition: padding-bottom 0.2s ease;
}

.course-dashboard .course-modules .module.module--dropdown-open {
    /* marcador para el estado abierto */
}

.course-dashboard .course-modules .module-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.course-dashboard .course-modules .module-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.course-dashboard .course-modules .module-footer .module-toggle {
    align-self: center;
}

.course-dashboard .course-modules .module-footer .module-divider {
    height: 1px;
    width: 100%;
    border: none;
    background: rgba(20, 48, 113, 0.2);
    margin: 1rem 0 1rem;
}

@media (max-width: 1100px) {
    .course-dashboard .course-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .course-dashboard {
        padding: 1.5rem 1rem;
        max-width: 100%;
        margin: 0;
    }

.course-dashboard .card {
        padding: 1.25rem;
    }

    .course-dashboard .course-header.card .course-header__body {
        padding: 1.25rem;
    }

.course-dashboard .course-modules .module {
    padding: 1rem 1.25rem 1.25rem;
}

.course-dashboard .course-modules .module p {
    white-space: pre-line;
}
}
.course-dashboard .card::before,
.course-dashboard .course-modules .module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(20, 48, 113, 0.1) 0%, transparent 75%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.course-dashboard .card:hover,
.course-dashboard .course-modules .module:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(20, 48, 113, 0.2);
}

.course-dashboard .card:hover::before,
.course-dashboard .course-modules .module:hover::before {
    opacity: 1;
}
.course-dashboard .module-actions {
    display: none;
    flex-direction: row;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
    margin-top: 0rem;
}

.course-dashboard .module-actions.module-actions--visible {
    display: flex;
}

.course-dashboard .module-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    width: auto;
    padding: 0.75rem 1.5rem;
    margin: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    color: #ffffff;
}

.course-dashboard .module-actions .module-action-dropdown {
    flex: 1 1 0;
}

.module-action-dropdown {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

.module-action-dropdown .module-action--dropdown {
    width: 100%;
}

.module-action-dropdown__menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    display: inline-flex;
    flex-direction: column;
    padding: 0.5rem 0;
    gap: 0;
    width: max-content;
    min-width: max-content;
    max-width: min(24rem, 90vw);
    border-radius: 1rem;
    background: #ffffff;
    border: 1px solid rgba(20, 48, 113, 0.08);
    box-shadow: 0 18px 28px rgba(20, 48, 113, 0.18);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    z-index: 25;
}

.module-action-dropdown__menu::before {
    content: '';
    position: absolute;
    top: -0.35rem;
    left: 0;
    right: 0;
    height: 0.4rem;
}

.module-action-dropdown__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.module-action-dropdown__link {
    display: block;
    padding: 0.65rem 1.1rem;
    text-decoration: none;
    color: #143071;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.module-action-dropdown__link:hover,
.module-action-dropdown__link:focus {
    background: rgba(111, 168, 255, 0.12);
    color: #143071;
}

.module-action-dropdown:hover .module-action-dropdown__menu,
.module-action-dropdown:focus-within .module-action-dropdown__menu,
.module-action-dropdown.module-action-dropdown--open .module-action-dropdown__menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.module-action-dropdown .button.module-action--dropdown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .course-dashboard .module-actions {
        flex-direction: column;
    }

    .course-dashboard .module-actions.module-actions--visible {
        display: flex;
    }

    .course-dashboard .module-actions .button {
        max-width: none;
        width: 100%;
        flex: 1 1 auto;
    }

    .course-dashboard--issues .course-resources .resource-list li {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .course-dashboard--issues .course-resources .btn-download {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-top: 0.5rem;
        margin-bottom: 0;
        align-self: stretch;
    }
}
.resource-viewer {
    max-width: 1200px;
    margin: 0 auto;
     padding: 1rem clamp(1rem, 3vw, 2rem) 2rem;
}

.resource-viewer__wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(0rem, 2vw, 1.75rem);
}

.resource-viewer__header {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    text-align: center;
}

.resource-viewer__header > * {
    margin: 0;
}

.resource-viewer__eyebrow--primary {
    font-size: 3rem;
    font-weight: 700;
}

.resource-viewer__eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5a6fa3;
    margin: 0 0 0.25rem;
}

.resource-viewer__eyebrow.resource-viewer__eyebrow--primary {
    font-size: 1.35rem;
    font-weight: 700;
}

.resource-viewer__title {
    margin: 0;
    color: #143071;
    font-size: clamp(1.6rem, 2.7vw, 2rem);
    font-weight: 600;
}


.resource-viewer__eyebrow--secondary {
    margin-top: 0;
}
.resource-viewer__summary {
    margin: 0;
    color: #444;
    font-size: 1rem;
}

.resource-viewer__frame {
    width: 100%;
    min-height: clamp(60vh, 75vh, 80vh);
    border: none;
    border-radius: 16px;
    background: #f4f7fc;
    box-shadow: inset 0 0 0 1px rgba(20, 48, 113, 0.05);
}

.resource-viewer__frame + .resource-viewer__frame {
    margin-top: 1rem;
}

.resource-viewer__note {
    margin: 0;
    font-size: 0.9rem;
    color: #536189;
    text-align: center;
}

@media (max-width: 900px) {
    .resource-viewer__header {
        align-items: baseline;
    }
}

@media (max-width: 768px) {
    .resource-viewer {
        padding: 1.5rem 1rem 2.5rem;
    }

    .resource-viewer__frame {
        min-height: 65vh;
    }
}

.irh-flashcards {
    --irh-card-width: clamp(320px, 58vw, 680px);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: clamp(1.25rem, 2vw, 1.75rem);
    border-radius: 18px;
    background: #f4f7fc;
    box-shadow: inset 0 0 0 1px rgba(20, 48, 113, 0.08);
}

.irh-flashcards__instructions {
    margin: 0;
    font-size: 0.95rem;
    color: #4e5f86;
    text-align: center;
}

.irh-flashcards__viewport {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    perspective: 1600px;
    perspective-origin: 50% 50%;
}

.irh-flashcards__nav {
    position: relative;
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(20, 48, 113, 0.14) 0%, rgba(20, 48, 113, 0.32) 100%);
    color: #143071;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.irh-flashcards__nav:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(20, 48, 113, 0.25);
}

.irh-flashcards__nav:not(:disabled):hover,
.irh-flashcards__nav:not(:disabled):focus-visible {
    background: linear-gradient(135deg, #143071 0%, #1f56c2 100%);
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(20, 48, 113, 0.24);
    transform: translateY(-2px);
}

.irh-flashcards__nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.irh-flashcards__nav-icon {
    font-size: 2.2rem;
    line-height: 1;
    color: currentColor;
}

.irh-flashcards__nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.irh-flashcard {
    flex: 0 0 var(--irh-card-width);
    width: var(--irh-card-width);
    max-width: 100%;
    position: relative;
    margin: 0 auto;
    min-height: clamp(240px, 40vh, 340px);
    display: flex;
    align-items: stretch;
    justify-content: center;
    perspective: 1600px;
    perspective-origin: 50% 50%;
    transform-style: preserve-3d;
    border-radius: 20px;
    box-shadow: 0 16px 32px rgba(20, 48, 113, 0.18);
    cursor: pointer;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.irh-flashcard:focus-visible,
.irh-flashcard.is-focus-ring {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 90, 210, 0.3);
}

.irh-flashcard.is-flipped {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(20, 48, 113, 0.2);
}

.irh-flashcard::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(20, 48, 113, 0.18) 0%, transparent 65%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: inherit;
}

.irh-flashcard:hover::before,
.irh-flashcard:focus-visible::before {
    opacity: 1;
}

.irh-flashcard__inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border-radius: inherit;
    overflow: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.irh-flashcard__face {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    padding: clamp(1.5rem, 3vw, 2.25rem);
    box-sizing: border-box;
    text-align: center;
    background: linear-gradient(145deg, #ffffff 0%, #eef2fb 100%);
    border-radius: inherit;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: rotateY(0deg);
    transition: transform 0.6s ease, opacity 0.35s ease;
}

.irh-flashcard__face.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.irh-flashcard__face--back {
    transform: rotateY(-180deg);
    background: linear-gradient(145deg, #f7f9ff 0%, #e5ecfa 100%);
}

.irh-flashcard.is-flipped .irh-flashcard__face--front {
    transform: rotateY(180deg);
}

.irh-flashcard.is-flipped .irh-flashcard__face--back {
    transform: rotateY(0deg);
}

@media (prefers-reduced-motion: reduce) {
    .irh-flashcard {
        transition: none;
    }
    .irh-flashcard__inner {
        transition: none;
    }
}

.irh-flashcard__text {
    margin: 0;
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    line-height: 1.45;
    color: #122c60;
    font-weight: 600;
}

.irh-flashcard__face--back .irh-flashcard__text {
    color: #3f4d5c;
}

.irh-flashcard__hint {
    font-size: 0.85rem;
    color: #5e6f96;
}

.irh-flashcard__face--back .irh-flashcard__hint {
    color: #6e7c8a;
}

.irh-flashcards__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.irh-flashcards__restart {
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    border: 1px solid rgba(20, 48, 113, 0.22);
    background: #ffffff;
    color: #143071;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.irh-flashcards__restart:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(30, 90, 210, 0.3);
}

.irh-flashcards__restart:hover,
.irh-flashcards__restart:focus-visible {
    background: #143071;
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(20, 48, 113, 0.24);
    transform: translateY(-2px);
}

.irh-flashcards__progress {
    position: relative;
    flex: 1 1 auto;
    min-width: 160px;
    height: 0.65rem;
    border-radius: 999px;
    background: rgba(20, 48, 113, 0.14);
    overflow: hidden;
}

.irh-flashcards__progress-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #1d4bd8 0%, #45a6ff 100%);
    transition: width 0.25s ease;
}

.irh-flashcards__progress-text {
    min-width: 72px;
    font-weight: 600;
    color: #143071;
    text-align: right;
}

@media (max-width: 900px) {
    .irh-flashcards__viewport {
        gap: 0.75rem;
    }

    .irh-flashcard {
        min-height: 220px;
    }
}

@media (max-width: 720px) {
    .irh-flashcards {
        --irh-card-width: 100%;
    }

    .irh-flashcards__viewport {
        flex-direction: column;
    }

    .irh-flashcards__nav {
        flex: none;
        width: 100%;
        height: 3.25rem;
        border-radius: 14px;
    }

    .irh-flashcards__nav--next {
        order: 3;
    }

    .irh-flashcard {
        order: 2;
        width: 100%;
        max-width: none;
        flex: 1 1 100%;
    }

    .irh-flashcards__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .irh-flashcards__progress-text {
        text-align: center;
    }
}


.course-info-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 0.35rem 1rem;
    margin-top: 1rem;
}

.course-info-list dt {
    font-weight: 600;
    color: #143071;
}

.course-info-list dd {
    margin: 0;
    color: #333333;
}

.evaluation-options {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.evaluation-option {
    padding: 1.25rem;
    border-radius: 12px;
    background: #f4f7fc;
    border: 1px solid rgba(20, 48, 113, 0.12);
}

.evaluation-option h3 {
    margin-top: 0;
    color: #143071;
}

.evaluation-breakdown {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0;
    display: grid;
    gap: 0.35rem;
}

.evaluation-breakdown li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: #1d1d1d;
}

.evaluation-breakdown li span:last-child {
    font-weight: 600;
}

.evaluation-total {
    margin: 0;
    font-weight: 600;
    text-align: right;
    color: #0f1478;
}

@media (min-width: 768px) {
    .evaluation-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Visual consistency for Module 7 Material dropdown trigger */
.course-dashboard .module-actions .module-action-dropdown .button.module-action--dropdown {
    padding: 0.75rem 1.5rem;
    background-color: #0f1478;
    color: #ffffff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-weight: 600;
    line-height: 1.1;
    box-shadow: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.course-dashboard .module-actions .module-action-dropdown .button.module-action--dropdown:hover,
.course-dashboard .module-actions .module-action-dropdown .button.module-action--dropdown:focus-visible {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 1.25rem 0.1rem rgba(111, 168, 255, 0.45), 0 12px 24px rgba(20, 48, 113, 0.25);
    background-color: #0f1478;
}

/* Donations Page */
.donations-page {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 5vw, 3rem) clamp(3rem, 6vw, 4rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);
}

.donations-hero {
    padding: clamp(1.75rem, 4vw, 2.75rem);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(20, 48, 113, 0.08), rgba(111, 168, 255, 0.15));
    border: 1px solid rgba(20, 48, 113, 0.12);
    text-align: center;
    color: #0f1478;
}

.donations-hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
}

.donations-hero p {
    margin: 0 auto;
    max-width: 720px;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #1d1d1d;
}

.donations-content {
    display: grid;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border-radius: 16px;
    background-color: #ffffff;
    border: 1px solid rgba(20, 48, 113, 0.12);
    box-shadow: 0 12px 24px rgba(20, 48, 113, 0.08);
}

.donations-content h2 {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    color: #143071;
}

.donations-content p {
    margin: 0;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.6;
    color: #2e2e2e;
}

@media (max-width: 600px) {
    .donations-page {
        padding: 2rem 1.25rem 3rem;
    }

    .donations-content {
        padding: 1.5rem;
    }
}

/* Pricing Page */
.pricing-page {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 3.5rem) clamp(4rem, 7vw, 5.5rem);
    display: flex;
    flex-direction: column;
    gap: clamp(2.5rem, 6vw, 4rem);
}

.pricing-hero {
    background: linear-gradient(135deg, rgba(20, 48, 113, 0.1), rgba(111, 168, 255, 0.25));
    border-radius: 24px;
    padding: clamp(2.25rem, 5vw, 3.75rem);
    border: 1px solid rgba(20, 48, 113, 0.12);
    box-shadow: 0 24px 48px rgba(20, 48, 113, 0.12);
}

.pricing-hero__text {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    color: #0f1478;
}

.pricing-hero__eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    color: rgba(15, 20, 120, 0.75);
}

.pricing-hero__text h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4.8vw, 3.1rem);
}

.pricing-hero__text p {
    margin: 0;
    color: #1d1d1d;
    line-height: 1.6;
}

.pricing-hero__note {
    font-size: 0.95rem;
    color: rgba(15, 20, 120, 0.8);
    max-width: 640px;
}

.pricing-plans {
    display: flex;
    flex-direction: column;
    gap: clamp(1.75rem, 4vw, 2.5rem);
}

.pricing-plans__grid {
    display: grid;
    gap: clamp(1.25rem, 3.5vw, 2rem);
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pricing-plan {
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid rgba(20, 48, 113, 0.12);
    box-shadow: 0 20px 40px rgba(20, 48, 113, 0.1);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    position: relative;
    overflow: hidden;
}

.pricing-plan--recommended {
    background: linear-gradient(135deg, rgba(111, 168, 255, 0.12), rgba(20, 48, 113, 0.05));
    border-color: rgba(20, 48, 113, 0.25);
    box-shadow: 0 28px 48px rgba(20, 48, 113, 0.18);
}

.pricing-plan__tag {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background-color: #0f1478;
    color: #ffffff;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-plan h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #0f1478;
}

.pricing-plan__price {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pricing-plan__amount {
    font-size: 2rem;
    font-weight: 700;
    color: #0f1478;
}

.pricing-plan__billing {
    font-size: 0.95rem;
    color: rgba(20, 33, 63, 0.75);
}

.pricing-plan__summary {
    margin: 0;
    color: #2e2e2e;
    line-height: 1.6;
}

.pricing-plan__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.pricing-plan__features li {
    position: relative;
    padding-left: 1.5rem;
    color: #1d1d1d;
    line-height: 1.5;
}

.pricing-plan__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    border: 2px solid #0f1478;
    background-color: rgba(111, 168, 255, 0.25);
}

.pricing-plan__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-top: auto;
    padding-top: 0.5rem;
}

.pricing-plan__footnote {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(31, 31, 31, 0.75);
}

.pricing-disclaimer {
    margin: 0;
    text-align: center;
    color: rgba(31, 31, 31, 0.75);
    font-size: 0.95rem;
}

.pricing-includes,
.pricing-addons,
.pricing-faq,
.pricing-contact {
    display: flex;
    flex-direction: column;
    gap: clamp(1.25rem, 3vw, 2rem);
}

.pricing-includes__grid,
.pricing-addons__grid {
    display: grid;
    gap: clamp(1rem, 3vw, 1.75rem);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.pricing-include,
.pricing-addon {
    background-color: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(20, 48, 113, 0.12);
    box-shadow: 0 16px 32px rgba(20, 48, 113, 0.08);
    padding: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.pricing-include h3,
.pricing-addon h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #0f1478;
}

.pricing-include p,
.pricing-addon p {
    margin: 0;
    color: #2e2e2e;
    line-height: 1.6;
}

.pricing-faq__item {
    background-color: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(20, 48, 113, 0.12);
    box-shadow: 0 16px 28px rgba(20, 48, 113, 0.08);
    padding: 1.25rem 1.5rem;
}

.pricing-faq__item + .pricing-faq__item {
    margin-top: 0.85rem;
}

.pricing-faq__item summary {
    font-weight: 600;
    color: #0f1478;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.pricing-faq__item summary::-webkit-details-marker {
    display: none;
}

.pricing-faq__item summary::after {
    content: '+';
    font-size: 1.25rem;
    transition: transform 0.2s ease;
}

.pricing-faq__item[open] summary::after {
    transform: rotate(45deg);
}

.pricing-faq__item p {
    margin: 0.85rem 0 0;
    color: #2e2e2e;
    line-height: 1.6;
}

.pricing-contact {
    text-align: center;
    background: linear-gradient(135deg, rgba(111, 168, 255, 0.18), rgba(20, 48, 113, 0.08));
    border-radius: 24px;
    padding: clamp(2.25rem, 5vw, 3.5rem);
    border: 1px solid rgba(20, 48, 113, 0.12);
    align-items: center;
}

.pricing-contact p {
    margin: 0;
    max-width: 640px;
    line-height: 1.6;
    color: #1d1d1d;
}

.pricing-contact__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.9rem;
}

@media (max-width: 960px) {
    .pricing-plan__tag {
        position: static;
        align-self: flex-start;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 720px) {
    .pricing-page {
        padding: 2.5rem 1.25rem 4rem;
    }

    .pricing-plan,
    .pricing-include,
    .pricing-addon,
    .pricing-faq__item,
    .pricing-contact {
        padding: 1.75rem;
    }

    .pricing-plan__features li::before {
        top: 0.35rem;
    }
}

@media (max-width: 520px) {
    .pricing-plan__actions .button,
    .pricing-contact__actions .button {
        flex: 1 1 auto;
        justify-content: center;
    }
}

/* Authentication modal */
.auth-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(11, 31, 56, 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
}

.auth-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.auth-modal__backdrop {
    position: absolute;
    inset: 0;
}

.auth-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    box-shadow: 0 32px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: #0b1f38;
}

.auth-modal__title {
    margin: 0;
    font-size: 1.75rem;
    color: #0b1f38;
}

.auth-modal__subtitle {
    margin: 0;
    color: #54617a;
    font-size: 0.95rem;
}

.auth-modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-modal__form label {
    font-weight: 600;
    color: #0b1f38;
}

.auth-modal__form input {
    border: 1px solid #cfd6e5;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-modal__form input:focus {
    outline: none;
    border-color: #255ac4;
    box-shadow: 0 0 0 3px rgba(37, 90, 196, 0.15);
}

.auth-modal__actions {
    margin-top: 4px;
}

.button.button--full {
    width: 100%;
    justify-content: center;
}

.auth-modal__footer {
    margin: 0;
    font-size: 0.9rem;
    color: #54617a;
    text-align: center;
}

.auth-modal__link {
    color: #255ac4;
    font-weight: 600;
}

.auth-modal__link:hover,
.auth-modal__link:focus {
    text-decoration: underline;
}

.auth-modal__message {
    min-height: 1.2em;
    margin: 0;
    font-size: 0.9rem;
    color: #1a3b7a;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.auth-modal__message--visible {
    opacity: 1;
}

body.auth-modal-open {
    overflow: hidden;
}

.registration-page {
    width: 100%;
    padding: 6rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.registration-hero {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    width: min(100%, 840px);
}

.registration-hero h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #0b1f38;
    text-align: center;
}

.registration-hero p {
    margin: 0;
    color: #54617a;
    font-size: 1.05rem;
}

.registration-form-section {
    width: min(100%, 840px);
    background: linear-gradient(135deg, #f3f7ff 0%, #ffffff 60%, #eef2ff 100%);
    border-radius: 18px;
    box-shadow: 0 24px 48px rgba(0, 17, 60, 0.08);
    padding: 2.5rem 3rem;
}

.registration-form {
    display: grid;
    gap: 2.25rem;
}

.registration-fieldset {
    border: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}

.registration-fieldset legend {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #0b1f38;
    text-align: center;
}

.registration-form label {
    font-weight: 600;
    color: #0b1f38;
}

.registration-form input,
.registration-form select,
.registration-form textarea {
    width: 100%;
    border: 1px solid #cfd6e5;
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.registration-form input:focus,
.registration-form select:focus,
.registration-form textarea:focus {
    outline: none;
    border-color: #255ac4;
    box-shadow: 0 0 0 3px rgba(37, 90, 196, 0.15);
}

.registration-checkbox {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    color: #54617a;
}

.registration-checkbox input {
    margin: 0;
    width: auto;
    height: auto;
    flex: 0 0 auto;
}

.registration-checkbox span {
    text-align: right;
}

.registration-checkbox a {
    color: #255ac4;
    font-weight: 600;
}

.registration-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (max-width: 960px) {
    .registration-form-section {
        padding: 2rem;
    }
}

@media (max-width: 720px) {
    .registration-page {
        padding: 5rem 1.25rem 3rem;
    }

    .registration-hero h1 {
        font-size: 2rem;
    }

    .registration-form-section {
        padding: 1.75rem;
    }
}

@media (max-width: 520px) {
    .registration-page {
        padding: 4.5rem 1rem 2.5rem;
    }

    .registration-form {
        gap: 1.75rem;
    }
}
