.modal-base {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-base.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-base.active .modal-container {
    transform: translateY(0);
}

/* Info Modal Specific Styles */
.info-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.info-modal.active {
    opacity: 1;
    visibility: visible;
}

.info-container {
    position: relative;
    background: var(--modal-bg, #ffffff);
    width: 90%;
    max-width: 800px;
    margin: 1rem;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.close-info {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--light-text, #666);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.close-info:hover {
    opacity: 1;
    color: var(--dark-text, #333);
}

.info-modal.active .info-container {
    transform: translateY(0);
}

.professional-inquiry-trigger {
    appearance: none;
    background: none;
    border: 0;
    color: var(--primary-color, #026447);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.professional-inquiry-trigger:hover,
.professional-inquiry-trigger:focus-visible {
    color: var(--dark-text, #014f38);
}

.professional-inquiry-trigger:focus-visible {
    outline: 2px solid var(--primary-color, #026447);
    outline-offset: 3px;
}

.info-modal.full-page-inquiry-modal {
    align-items: stretch;
    justify-content: stretch;
    z-index: 1100;
}

.info-modal.full-page-inquiry-modal .info-container {
    width: 100vw;
    max-width: none;
    min-height: 100vh;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
}

.info-modal.full-page-inquiry-modal .info-content {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    flex: 1;
    gap: 0;
    min-height: 0;
    height: 100%;
    max-height: none;
    overflow: hidden;
    padding: 0;
}

.info-modal.full-page-inquiry-modal .close-info {
    top: max(1rem, calc(env(safe-area-inset-top, 0px) + 0.5rem));
    right: max(1rem, calc(env(safe-area-inset-right, 0px) + 0.5rem));
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--dark-text, #1b1b1b);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    opacity: 1;
}

.professional-inquiry-modal-meta {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.professional-inquiry-frame-shell {
    flex: 1;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    overflow: hidden;
}

.professional-inquiry-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.info-content {
    color: var(--light-text, #333333);
    max-height: calc(90vh - 4rem);
    overflow-y: auto;
    padding-right: 1rem;
}

.info-content h3 {
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--aiddata-font-family, "Adelle", Georgia, serif);
}

/* Course Instructors Section */
.course-instructors {
    margin-bottom: 2rem;
    font-family: var(--aiddata-font-family, "Adelle", Georgia, serif);
}

.course-instructors h4 {
    margin-bottom: 1rem;
    font-family: var(--aiddata-font-family, "Adelle", Georgia, serif);
}

.instructor-avatars {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.instructor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: transparent;
    border-radius: 8px;
}

.instructor-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
}

.instructor-info {
    text-align: left;
}

.instructor-info h5 {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0;
    font-family: var(--aiddata-font-family, "Adelle", Georgia, serif);
}

.instructor-info p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin: 0.25rem 0 0;
}

/* Partnership Section */
.inline-partnership {
    margin: 2rem 0;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--dark-text);
    border: 1px solid rgba(17, 87, 64, 0.1);
}

.inline-partnership img {
    height: 32px;
    width: auto;
    filter: brightness(0);
    opacity: 0.7;
}

.inline-partnership p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin: 0;
    line-height: 1.5;
}

/* Course Description */
.info-description h4 {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark-text);
    margin: 1.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(17, 87, 64, 0.1);
    font-family: var(--aiddata-font-family, "Adelle", Georgia, serif);
}

.learning-objectives {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    display: grid;
    gap: 1rem;
}

.learning-objectives li {
    position: relative;
    padding: 1rem 1.5rem;
    margin: 0;
    color: var(--dark-text);
    background: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid rgba(17, 87, 64, 0.08);
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.learning-objectives li::before {
    content: '✓';
    position: absolute;
    left: 0.5rem;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.learning-objectives li:hover {
    background: #fff;
    border-color: rgba(17, 87, 64, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(17, 87, 64, 0.05);
}

/* Course Modules */
.course-modules {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 0;
}

.module {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid rgba(17, 87, 64, 0.1);
    transition: all 0.3s ease;
}

.module:hover {
    background: white;
    transform: translateY(-2px);
    border-color: rgba(17, 87, 64, 0.15);
    box-shadow: 0 4px 8px rgba(17, 87, 64, 0.05);
}

.module h5 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.module h5::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.8;
}

.module p {
    font-size: 0.95rem;
    color: var(--light-text);
    margin: 0;
    line-height: 1.5;
    padding-left: calc(8px + 0.75rem);
}

/* Auth Modal */
.auth-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
}

.auth-container {
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-modal.active .auth-container {
    transform: translateY(0);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h3 {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--primary-color, #115740);
    margin-bottom: 0.75rem;
    font-family: var(--aiddata-font-family, "Adelle", Georgia, serif);
}

.auth-header p {
    color: var(--light-text, #666);
    font-size: 0.95rem;
}

.auth-options {
    display: grid;
    gap: 1rem;
}

.auth-options .auth-button {
    width: 100%;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-options .login-button {
    background: transparent;
    border: 1px solid var(--primary-color, #115740);
    color: var(--primary-color, #115740);
}

.auth-options .login-button:hover {
    background: rgba(17, 87, 64, 0.05);
}

.auth-options .signup-button {
    background: var(--primary-color, #115740);
    border: none;
    color: white;
}

.auth-options .signup-button:hover {
    background: var(--accent-color, #06a181);
}

.close-auth {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--light-text, #666);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-auth:hover {
    opacity: 1;
}

/* Sign Up Modal */
.signup-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.signup-modal.active {
    opacity: 1;
    visibility: visible;
}

.signup-container {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.signup-modal.active .signup-container {
    transform: translateY(0);
}

.signup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-header h3 {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--primary-color, #115740);
    margin-bottom: 0.75rem;
    font-family: var(--aiddata-font-family, "Adelle", Georgia, serif);
}

.signup-header p {
    color: var(--light-text, #666);
    font-size: 0.95rem;
}

.signup-form {
    display: grid;
    gap: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0.5rem 0;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: var(--light-text, #666);
    line-height: 1.4;
    cursor: pointer;
}

.password-requirements {
    font-size: 0.8rem;
    color: var(--light-text, #666);
    margin-top: 0.25rem;
}

.form-footer {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.create-account-button {
    background: var(--primary-color, #115740);
    color: white;
    padding: 1rem;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.create-account-button:hover {
    background: var(--accent-color, #06a181);
}

.form-footer p {
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-text, #666);
}

.form-footer a {
    color: var(--primary-color, #115740);
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: var(--accent-color, #06a181);
}

.close-signup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--light-text, #666);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-signup:hover {
    opacity: 1;
}

/* Login Modal */
.login-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: var(--aiddata-font-family, "Adelle", Georgia, serif);
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-container {
    background: white;
    width: 90%;
    max-width: 400px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-modal.active .login-container {
    transform: translateY(0);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--aiddata-font-family, "Adelle", Georgia, serif);
}

.login-header h3 {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--primary-color, #115740);
    margin-bottom: 0.75rem;
    font-family: var(--aiddata-font-family, "Adelle", Georgia, serif);
}

.login-header p {
    color: var(--light-text, #666);
    font-size: 0.95rem;
}

.login-form {
    display: grid;
    gap: 1.5rem;
}

.login-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: var(--primary-color, #115740);
}

.login-form input::placeholder {
    color: var(--light-text, #666);
    opacity: 0.7;
}

.forgot-password {
    text-align: right;
    margin-top: -0.5rem;
}

.forgot-password a {
    color: var(--primary-color, #115740);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password a:hover {
    color: var(--accent-color, #06a181);
}

.login-button-submit {
    background: var(--primary-color, #115740);
    color: white;
    padding: 1rem;
    border: none;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.login-button-submit:hover {
    background: var(--accent-color, #06a181);
}

.close-login {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--light-text, #666);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.close-login:hover {
    opacity: 1;
}

.login-form .form-footer {
    text-align: center;
    margin-top: 1rem;
}

.login-form .form-footer p {
    font-size: 0.9rem;
    color: var(--light-text, #666);
}

.login-form .form-footer .signup-link {
    color: var(--primary-color, #115740);
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-form .form-footer .signup-link:hover {
    color: var(--accent-color, #06a181);
}

/* Newsletter Modal */
.newsletter-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-family: var(--aiddata-font-family, "Adelle", Georgia, serif);
}

.newsletter-modal.active {
    opacity: 1;
    visibility: visible;
}

.newsletter-container {
    position: relative;
    width: min(92vw, 640px);
    max-height: min(88vh, 760px);
    overflow-y: auto;
    background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(17, 87, 64, 0.12);
}

.newsletter-modal.active .newsletter-container {
    transform: translateY(0);
}

.newsletter-header {
    margin-bottom: 1.75rem;
    padding-right: 2.25rem;
}

.newsletter-kicker {
    margin: 0 0 0.5rem;
    color: #8e7755;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
    font-weight: 700;
}

.newsletter-header h3 {
    margin: 0 0 0.75rem;
    color: var(--primary-color, #115740);
    font-size: 1.85rem;
    font-weight: 400;
    line-height: 1.1;
}

.newsletter-header p {
    margin: 0;
    color: var(--light-text, #666);
    font-size: 0.98rem;
    line-height: 1.6;
}

.newsletter-form {
    display: grid;
    gap: 1.25rem;
}

.newsletter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.newsletter-field {
    display: grid;
    gap: 0.45rem;
}

.newsletter-field-full {
    grid-column: 1 / -1;
}

.newsletter-field label,
.newsletter-consent legend {
    color: #203127;
    font-size: 0.9rem;
    font-weight: 600;
}

.newsletter-required {
    color: #8f2f2f;
}

.newsletter-field input {
    width: 100%;
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(17, 87, 64, 0.16);
    border-radius: 8px;
    background: #ffffff;
    color: #1e2a24;
    font-size: 0.98rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.newsletter-field input::placeholder {
    color: rgba(32, 49, 39, 0.55);
}

.newsletter-field input:focus,
.newsletter-field input:focus-visible {
    outline: none;
    border-color: #115740;
    box-shadow: 0 0 0 3px rgba(17, 87, 64, 0.16);
}

.newsletter-consent {
    margin: 0;
    padding: 1rem 1rem 1.1rem;
    border: 1px solid rgba(17, 87, 64, 0.12);
    border-radius: 10px;
    background: rgba(17, 87, 64, 0.04);
}

.newsletter-consent-copy {
    margin: 0.65rem 0 0.9rem;
    color: #52625a;
    font-size: 0.9rem;
    line-height: 1.6;
}

.newsletter-checkbox {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.7rem;
    color: #203127;
    font-weight: 500;
}

.newsletter-checkbox input {
    margin-top: 0.15rem;
    accent-color: #115740;
}

.newsletter-legal-copy {
    margin: 0;
    color: #607168;
    font-size: 0.82rem;
    line-height: 1.65;
}

.newsletter-legal-copy a {
    color: var(--primary-color, #115740);
}

.newsletter-status {
    min-height: 1.4rem;
    margin: -0.2rem 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

.newsletter-status.is-pending {
    color: #5f6d66;
}

.newsletter-status.is-success {
    color: #115740;
}

.newsletter-status.is-error {
    color: #8f2f2f;
}

.newsletter-honeypot {
    position: absolute;
    left: -5000px;
}

.newsletter-actions {
    display: flex;
    justify-content: flex-start;
}

.newsletter-submit {
    background: var(--primary-color, #115740);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.95rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.newsletter-submit:hover {
    background: var(--accent-color, #06a181);
    transform: translateY(-1px);
}

.newsletter-submit:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.close-newsletter {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--light-text, #666);
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0.4rem;
    line-height: 1;
    opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.close-newsletter:hover {
    opacity: 1;
    color: #203127;
}

.newsletter-button:focus-visible,
.close-newsletter:focus-visible,
.newsletter-submit:focus-visible,
.newsletter-field input:focus-visible,
.newsletter-checkbox input:focus-visible {
    outline: 3px solid #B79257;
    outline-offset: 2px;
}

@media (max-width: 640px) {
    .newsletter-container {
        padding: 1.5rem;
    }

    .newsletter-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-header h3 {
        font-size: 1.55rem;
    }

    .newsletter-actions {
        justify-content: stretch;
    }

    .newsletter-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .newsletter-modal,
    .newsletter-container,
    .newsletter-submit,
    .close-newsletter {
        transition: none;
    }
}

/* Forgot Password Modal */
.forgot-password-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.forgot-password-modal.active {
    opacity: 1;
    visibility: visible;
}

.forgot-password-container {
    background: white;
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.forgot-password-modal.active .forgot-password-container {
    transform: translateY(0);
}

.forgot-password-header {
    text-align: center;
    margin-bottom: 2rem;
    font-family: var(--aiddata-font-family, "Adelle", Georgia, serif);
}

.forgot-password-header h3 {
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--primary-color, #115740);
    margin-bottom: 0.75rem;
    font-family: var(--aiddata-font-family, "Adelle", Georgia, serif);
}

.forgot-password-header p {
    color: var(--light-text, #666);
    font-size: 0.95rem;
    line-height: 1.5;
}

.forgot-password-form {
    display: grid;
    gap: 1.5rem;
}

.reset-password-button {
    background: var(--primary-color, #115740);
    color: white;
    border: none;
    padding: 0.85rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.reset-password-button:hover {
    background: var(--accent-color, #06a181);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(17, 87, 64, 0.15);
}

.close-forgot-password {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--light-text, #666);
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
    z-index: 2;
}

.close-forgot-password:hover {
    color: var(--dark-text, #333);
}

/* Video Modal */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#courseTrailer.video-modal {
    display: grid;
    place-items: center;
    padding: 1.5rem;
    box-sizing: border-box;
}

#courseTrailer.video-modal > * {
    grid-area: 1 / 1;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal .video-container {
    width: 90vw;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000000;
    overflow: hidden;
}

#courseTrailer.video-modal .video-container,
#courseTrailer.video-modal .custom-player-wrapper {
    width: min(calc(100vw - 3rem), 1200px);
    max-width: 1200px;
    margin-inline: auto;
    box-sizing: border-box;
}

#courseTrailer.video-modal #courseTrailerTitle {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#courseTrailer.video-modal .close-modal {
    justify-self: end;
    align-self: start;
}

.video-modal .video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Custom Video Player Wrapper */
.video-modal .custom-player-wrapper {
    width: 90vw;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: #000000;
    overflow: hidden;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    line-height: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.close-modal:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .info-container, 
    .auth-container, 
    .signup-container, 
    .login-container, 
    .forgot-password-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .info-content h3 {
        font-size: 1.5rem;
    }

    .instructor-avatars {
        flex-direction: column;
    }
}

/* Title Section */
.title-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.title-section h3 {
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-color);
    margin: 0;
    flex: 1;
}

.course-badge {
    width: 64px;
    height: 64px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(17, 87, 64, 0.1));
}

@media (max-width: 768px) {
    .title-section {
        gap: 1rem;
    }

    .title-section h3 {
        font-size: 1.5rem;
    }

    .course-badge {
        width: 48px;
        height: 48px;
    }
}

/* Video Modal Enhancements */
.modal.loading .custom-player-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.loading .custom-player-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    z-index: 11;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
