body {
    margin: 0;
    padding: 0;
}

/* Course container styles */
.twelve-step-course {
    width: 100%;
    padding-top: 4rem;
    background-color: #F4F7FA;
    background-image: url(content/images/course-background.svg);
    background-position: top center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 100vh;
    box-sizing: border-box;
}

/* New wrapper to constrain content width */
.course-content-wrapper {
    max-width: 700px;
    margin: 0 auto; /* Center the content */
    padding: 0 20px 20px 20px; /* Padding for the content area */
    position: relative; /* Ensure positioning context for children if needed */
}

/* Center the main course title */
.course-content-wrapper > h2 {
    text-align: center;
    margin-top: 0; /* Adjust if needed */
    margin-bottom: 20px; /* Add some space below the title */
    font-size: 2rem !important;
}

/* Sticky Header */
.course-header {
    position: fixed; /* Make it sticky */
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* Adjust height as needed */
    background-color: #ffffff; /* White background */
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: center; /* Center logo horizontally */
    align-items: center;
    z-index: 1000; /* Ensure it's above other content */
    transition: box-shadow 0.3s ease; /* Smooth transition for shadow */
}

/* Add shadow when scrolled */
.course-header.scrolled {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.course-logo {
    height: 2rem; /* Adjust logo size */
    width: auto;
}

/* Visibility classes */
.step-modal.completed .show-if-completed { display: block; }
.step-modal.current .show-if-in-progress { display: block; }
.show-if-completed, .show-if-in-progress { display: none; }

/* Progress bar */
/* --- progress container --- */
.course-progress-bar-container {
    /* new flex layout & look */
    display: flex;
    align-items: center;
    gap: 1rem; /* Add gap between track and label */
    padding: 0 1rem;
    height: 48px;
    background-color: var(--wp--preset--color--medium-light-green);           /* light pastel green */
    border-radius: 12px;
    margin-top: 30px;
    margin-bottom: 30px; /* Keep existing margin */
}

/* New: Style the track element */
.course-progress-track {
    flex: 1; /* Allow track to take available space */
    height: 8px;
    background-color: #ffffff; /* White track background */
    border-radius: 4px;
    overflow: hidden; /* Ensure inner bar is clipped */
    position: relative; /* Context for inner bar if needed */
}

/* make the green bar a thin track */
.course-progress-bar {
    /* Removed flex: 1 */
    height: 100%; /* Fill the track height */
    background-color: #019e7c;           /* dark‑ish green */
    border-radius: 4px; /* Match track radius */
    transition: width 0.5s ease-in-out; /* Keep transition */
    /* remove text centring */
    display: block;
    /* Remove width property, it's set inline */
}

/* percentage text to the right */
.course-progress-label {
    /* Removed margin-left, gap in container handles spacing */
    font-weight: 700;
    font-size: .875rem;
    color: #003c3c;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Step Vertical List */
.course-steps-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.step-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: white;
    border: 1px solid rgb(207, 221, 233) !important;
    border-radius: 8px !important;
    box-shadow: rgb(207, 221, 233) 1px 1px 5px !important;
    color: black;
    cursor: pointer;
    transition: none;
}
.step-item:hover:not(.locked) {
    background-color: #f5f5f5;
    box-shadow: none !important;
}
.step-item.completed {
    background-color: #f0fff7;
    border-left: 3px solid #019e7c !important;
}
.step-item.current {
    background-color: #E3F2FD;
    border-left: 3px solid #2196F3 !important;
    box-shadow: rgb(207, 221, 233) 1px 1px 5px !important;
}
.step-item.locked {
    background-color: white;
    color: #999;
    cursor: not-allowed;
    border-left: 3px solid #ddd !important;
    box-shadow: none !important;
}
.step-item.time-locked {
    background-color: #f8f9fa;
    color: #495057;
    cursor: pointer;
    border-left: 3px solid #FFC107 !important;
    position: relative;
}
.unlock-date {
    font-size: 0.7rem;
    color: #FF6F00;
    display: block;
    margin-top: 3px;
    font-style: italic;
}
.lock-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #FFC107;
    font-size: 1.2rem;
}
.step-item.preview {
    background-color: #FFF3E0;
    border-left: 4px solid #FF9800 !important;
    position: relative;
    /* Removed orange background */
    /* border-left: 4px solid #FF9800 !important; */ /* Removed orange border */
    /* Add a subtle background and border instead */
    background-color: #f8f9fa; /* Light gray background */
    border-left: 3px solid #adb5bd !important; /* Neutral gray border */
}

/* Add the PREVIEW text indicator */
.step-item.preview::after {
    content: 'PREVIEW';
    position: absolute;
    right: 15px; /* Align to the right padding */
    top: 50%;
    transform: translateY(-50%);
    background-color: #e9ecef; /* Subtle background for the text */
    color: #495057; /* Darker gray text */
    font-size: 0.7rem; /* Small text */
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1; /* Ensure it's above the background */
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    background-color: #ddd;
    border-radius: 50%;
    margin-right: 15px;
    font-weight: bold;
    font-size: 16px;
    color: #333333;
}
.step-item.completed .step-number {
    background-color: var(--wp--preset--color--green);
    color: white;
}
.step-item.current .step-number {
    background-color: #2196F3;
    color: white;
    animation: pulse 2s infinite;
}
.step-item.locked .step-number {
    background-color: #9e9e9e;
    color: #666;
}
.step-item.preview .step-number {
    /* background-color: #FF9800; */ /* Removed orange background */
    /* color: white; */ /* Keep white color */
    /* box-shadow: 0 2px 5px rgba(255, 152, 0, 0.3); */ /* Removed orange shadow */
    /* Use neutral color matching the border */
    background-color: #adb5bd;
    color: white;
}

/* START HERE Badge Styles */
.step-item.start-here {
    position: relative;
}

.step-item.start-here::after {
    content: 'START HERE';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #DCFCE7; /* light green */
    color: #15803D; /* dark green */
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}

.step-title {
    font-weight: 500;
    flex-grow: 1;
    font-size: 1rem;
    color: black;
}

/* Dialog modal */
.step-modal {
    width: 100%;
    height: 100vh;
    margin: 0;
    padding: 0; /* Removed padding, wrapper handles it */
    border: none;
    border-radius: 0;
    box-shadow: none; /* Removed shadow, wrapper has it */
    position: fixed;
    top: 0;
    left: 0;
    max-width: 100%;
    max-height: 100vh;
    inset: 0;
    overflow-y: auto; /* Scroll the whole modal including gray areas */
    overflow-x: hidden;
}
.step-modal[open] {
    display: block;
    animation: modalOpen 0.3s ease-in-out;
    background-color: #f4f7fa; /* Apply gray background only when open */
}

/* Remove default browser focus outline on modals */
.step-modal:focus {
    outline: none;
}

@keyframes modalOpen {
    from { opacity: 1; background-color: white;}
    to { opacity: 1; background-color: #f4f7fa;}
}

/* Special next-step modal animation */
.step-modal.next-step[open] {
    animation: slideInRight 0.5s ease forwards !important;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100%); background-color: transparent;}
    to { opacity: 1; transform: translateX(0); background-color: #f4f7fa;}
}

/* Final step completion animation */
.step-modal.final-step-complete[open] {
    animation: slideDown 0.6s ease-in forwards !important;
}
@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

.step-modal::backdrop {
    background-color: rgba(0,0,0,0.6); /* Keep backdrop dim */
    animation: backdropFadeIn 0.2s ease-out;
}
@keyframes backdropFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* New Modal Content Wrapper */
.modal-content-wrapper {
    max-width: 800px;
    margin: 40px auto; /* Vertical margin */
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px); /* Ensure wrapper takes height minus margins */
    overflow: hidden; /* Ensures border-radius clips content */
}

/* Adjust Modal Header, Content, Footer to live inside the wrapper */
.modal-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 35px;
    border-bottom: none;
    background-color: transparent;
    /* Removed max-width, margin, width, position */
    box-sizing: border-box;
}
.modal-header-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    padding-top: 20px;
}
.step-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.step-number-container {
    font-size: 1.1rem;
    color: #000;
    font-weight: 600;
}
.modal-header h2 {
    margin: 0;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #000;
    position: relative;
    padding-bottom: 15px;
}
.modal-header h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 2px;
    width: 80px;
    height: 3px;
    background-color: #000;
}
.status-pill {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}
.status-pill.completed {
    background-color: #E8F5E9;
    color: #2E7D32;
}
.status-pill.in-progress {
    background-color: #E3F2FD;
    color: #1565C0;
}
.status-pill.preview {
    background-color: #FFF3E0;
    color: #E65100;
}
.status-pill.animating {
    background-color: transparent;
    color: transparent;
}
.status-pill.animating::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: #E8F5E9;
    animation: pillWipe 0.6s ease-out forwards;
}
@keyframes pillWipe {
    0% { width: 0%; }
    100% { width: 100%; }
}
.close-dialog {
    background-color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 10;
}
.close-dialog:hover {
    background-color: #f5f5f5;
    color: #000;
}
.close-dialog:focus,
.close-dialog:focus-visible {
    outline: none;
}
.step-content {
    padding: 20px 35px; /* Consistent padding with header/footer */
    /* Removed max-width, margin, width */
    box-sizing: border-box;
    flex-grow: 1; /* Allow content to fill space */
}
.modal-footer {
    padding: 20px 35px;
    border-top: 1px solid #eee;
    box-sizing: border-box;
}

/* Buttons */
.complete-step-button {
    background-color: #FF1493;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    font-size: 1.2rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.complete-step-button:hover {
    background-color: #FF69B4;
}
.step-completed-message {
    color: #4CAF50;
    font-weight: bold;
}

/* User profile */
.step-completion-row, .student-info-row, .flag-row {
    margin-bottom: 10px;
}
.step-completion-row {
    display: flex;
    align-items: center;
}
.completion-date {
    margin-left: 10px;
    color: #666;
    font-style: italic;
}
.student-info-row label {
    display: inline-block;
    min-width: 120px;
}

/* Toast test button */
.toast-test-button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.toast-test-container {
    text-align: center;
    margin: 15px 0;
}

/* Student info form */
.student-info-form {
    margin: 20px 0 30px;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid var(--wp--preset--color--border-color);
}

/* PTDE packet form */
.ptde-packet-form {
    margin: 30px auto;
}
.form-layout {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.name-row, .info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.name-row .form-row {
    flex: 1;
}
.name-row .form-row.middle-initial {
    flex: 0 0 100px;
}
.info-row .form-row {
    flex: 1;
    min-width: 200px;
}
.form-row {
    margin-bottom: 10px;
    display: flex;
    flex-direction: column;
}
@media (max-width: 768px) {
    .name-row, .info-row {
        flex-direction: column;
    }
    .name-row .form-row.middle-initial {
        flex: 1;
    }
    .course-steps {
        justify-content: center;
    }
    .step {
        width: 45px;
        height: 45px;
        margin: 4px;
    }
    .step-number {
        font-size: 16px;
    }
}
@media (max-width: 480px) {
    .step {
        width: 40px;
        height: 40px;
        margin: 3px;
    }
    .step-number {
        font-size: 14px;
    }
    /* Adjust PREVIEW text on small screens */
    .step-item.preview::after {
        font-size: 0.6rem;
        padding: 1px 4px;
        right: 10px;
    }
    /* Add padding ONLY to preview items on small screens to make space for the text */
    .step-item.preview {
        padding-right: 70px; /* Adjust as needed */
    }

    /* Adjust START HERE text on small screens */
    .step-item.start-here::after {
        font-size: 0.6rem;
        padding: 1px 4px;
        right: 10px;
    }
    /* Add padding ONLY to start-here items on small screens to make space for the text */
    .step-item.start-here {
        padding-right: 90px; /* More space for "START HERE" */
    }

    /* Ensure time-locked items still have space for their icon */
    .step-item.time-locked {
         padding-right: 40px; /* Adjust if needed */
    }
}

/* Certificate styles */
.certificates-container {
    margin: 30px auto;
    max-width: 800px;
}

.certificate-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.certificate-section h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: #2c3e50;
}



.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: #2980b9;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #2980b9;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.certificate-link:hover {
    background-color: #2980b9;
    color: white;
    text-decoration: none;
}

.certificate-link .download-icon {
    fill: #2980b9;
    transition: fill 0.3s ease;
}

.certificate-link:hover .download-icon {
    fill: white;
}

.certificate-error {
    background-color: #ffebee;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
    color: #c62828;
}

/* Accordion Styles */
.course-accordion {
    margin: 20px auto;
    border: 1px solid #cfdde9;
    border-radius: 8px;
    overflow: hidden;
}

/* Certificate notification styles */
.course-accordion.has-notification {
	border-color: #4CAF50;
	box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
	animation: certPulse 2s infinite;
}

@keyframes certPulse {
	0% { box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2); }
	50% { box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1); }
	100% { box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2); }
}

.cert-notification {
	display: inline-block;
	background-color: #4CAF50;
	color: white;
	font-size: 0.7rem;
	font-weight: bold;
	padding: 2px 6px;
	border-radius: 10px;
	margin-left: 10px;
	vertical-align: middle;
	animation: badgePulse 1s ease-in-out infinite;
}

@keyframes badgePulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.1); }
	100% { transform: scale(1); }
}

.course-accordion summary {
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #ffffff;
    cursor: pointer;
    position: relative;
}

.course-accordion summary:hover {
    background-color: #e9e9e9;
}

.course-accordion summary::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 24px;
    height: 24px;
    background-image: url(content/images/arrow-down.svg);
    background-repeat: no-repeat;
    background-position: center;
    transform: translateY(-50%);
    transition: transform .4s;
}

.course-accordion[open] summary::after {
    transform: translateY(-50%) rotate(180deg);
}

.accordion-content {
    padding: 20px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.course-accordion[open] .accordion-content {
    max-height: 1000px;
}

/* Resources List */
.resources-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resource-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    position: relative; /* Needed for absolute positioning of the arrow */
}

.resource-item:hover {
    background-color: #f0f8ff; /* Lighter blue hover */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow on hover */
}

/* Add a right arrow indicator */
.resource-item::after {
    content: '›'; /* Right-pointing angle bracket */
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem; /* Make arrow slightly larger */
    color: #aaa; /* Light gray color */
    transition: color 0.2s;
}

.resource-item:hover::after {
    color: #333; /* Darker arrow on hover */
}

.resource-icon {
    font-size: 1rem;
    margin-right: 15px;
}

.resource-title {
    font-weight: 500;
    font-size: 1rem;
}

/* Resource Modals */
.resource-modal {
    width: 90%;
    max-width: 500px;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.resource-modal h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.close-resource-modal {
    display: block;
    margin: 20px auto 0;
    padding: 8px 16px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.close-resource-modal:hover {
    background-color: #e0e0e0;
}

#resources-accordion {
    margin-bottom:40px;
}

/* Transfer Certificate Form */
.transfer-certificate-form-container {
    margin-top: 15px;
}

.transfer-certificate-form-container .form-row {
    margin-bottom: 15px;
}

.transfer-certificate-form-container label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.transfer-certificate-form-container input,
.transfer-certificate-form-container textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.transfer-certificate-form-container button[type="submit"] {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
}

.transfer-certificate-form-container button[type="submit"]:hover {
    background-color: #45a049;
}
.form-row label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #000;
}
.radio-group {
    display: flex;
    gap: 20px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    margin-bottom: 0;
}
.form-row input, .form-row select {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus, .form-row select:focus {
    border-color: #FF69B4;
    box-shadow: 0 0 0 2px rgba(255, 105, 180, 0.2);
    outline: none;
}
.form-row .field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}
.form-row .form-notice {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 8px;
    font-style: italic;
}
.form-row.has-error input, .form-row.has-error select {
    border-color: #dc3545;
}
.form-row.has-error .field-error {
    display: block;
}
.student-info-submit {
    background-color: #FF1493;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 30px;
    cursor: pointer;
    width: 100%;
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 15px;
    transition: background-color 0.3s ease;
}
.student-info-submit:hover {
    background-color: #FF69B4;
}
.step-modal.completed .student-info-submit {
    background-color: #2196F3;
}
.student-info-submit:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}
.form-required {
    color: #dc3545;
    margin-left: 3px;
}
.certificate-notice {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    margin-top: 15px;
    color: #495057;
}
.certificate-notice p {
    margin: 0;
    text-align: center;
    font-weight: 500;
}

/* Conditional content display */
.show-in-progress, .show-completed { display: none; }
.step-modal.current .show-in-progress { display: block; }
.step-modal.completed .show-completed { display: block; }
.step-modal.completed .hide-when-completed,
.step-modal.current .hide-when-in-progress { display: none; }


/* Help Center Modal Styles */
.help-modal {
    width: 100%;
    height: 100vh; /* Full viewport height */
    max-width: 100%;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0; /* No rounded corners for full screen */
    box-shadow: none;
    overflow: hidden; /* Prevent scroll bars on the dialog itself */
    position: fixed;
    top: 0;
    left: 0;
    background-color: #fff; /* Ensure background is solid */
}

.help-modal::backdrop,
.resource-modal::backdrop {
    background-color: rgba(0,0,0,0.5);
}

.help-modal-header {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align button to the left */
    padding: 0 15px; /* Adjusted padding */
    background-color: #f8f9fa; /* Light background for header */
    border-bottom: 1px solid #e0e0e0;
    height: 50px; /* Fixed header height */
    box-sizing: border-box;
    position: sticky; /* Keep header visible */
    top: 0;
    z-index: 1; /* Ensure header is above iframe */
}

.close-help-modal {
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: #007bff; /* Link-like color */
    cursor: pointer;
    padding: 8px 12px; /* Slightly larger padding */
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
    line-height: 1; /* Ensure consistent height */
    display: inline-flex; /* Align icon/text if needed */
    align-items: center;
}

.close-help-modal:hover {
    background-color: #e2e6ea; /* Subtle hover effect */
    color: #0056b3;
    text-decoration: none;
}

#help-center-iframe {
    display: block; /* Ensure iframe behaves like a block */
    width: 100%;
    height: calc(100vh - 50px); /* Full viewport height minus header height */
    border: none;
}

/* Animations */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(33, 150, 243, 0); }
    100% { box-shadow: 0 0 0 0 rgba(33, 150, 243, 0); }
}

/* Hide details marker */
details.course-accordion summary { list-style: none; }

/* Consistent form styling */
.student-info-form select:disabled {
    opacity: 0.7;
    background-color: #f9f9f9;
    color: #666;
    cursor: not-allowed;
}

/* Change request link */
.change-request-link {
	display: block;
    margin-top: 10px;
    color: var(--wp--preset--color--brand-blue);
    text-decoration: underline;
    cursor: pointer;
	text-align: center;
}

/* Change request form field highlighting */
#change-request-popup .form-row.field-changed {
	background-color: #fff9e6;
	border-left: 3px solid #ffc107;
	padding-left: 12px;
	margin-left: -12px;
	transition: background-color 0.3s ease, border-left 0.3s ease;
}

#change-request-popup .form-row.field-changed input,
#change-request-popup .form-row.field-changed select {
	background-color: #fffcf5;
}

/* Automatic approval notice styles */
.auto-approval-notice {
	background-color: #E8F5E9;
	border-left: 3px solid #4CAF50;
	padding: 12px;
	border-radius: 4px;
	margin-bottom: 15px;
}

.auto-approval-notice p {
	margin: 0;
	font-size: 14px;
	color: #2E7D32;
}

.manual-review-notice {
	background-color: #FFF3E0;
	border-left: 3px solid #FF9800;
	padding: 12px;
	border-radius: 4px;
	margin-bottom: 15px;
}

.manual-review-notice p {
	margin: 0;
	font-size: 14px;
	color: #E65100;
}

.stepstep {
    padding: 0px;
    border: .5px solid #c6c6c6;
    border-radius: 20px;
    padding: 20px;
    background-color: #fafafa;
    margin-bottom: 35px;
}

.stepstep h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.8rem 0;
    color: #212529;
}

.quicktips {
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 1rem;
    margin: 1rem 0;
   }
   
   .quicktips h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.8rem 0;
    color: #212529;
   }
   
   .quicktips ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
   }

   .quicktips li {
    margin-bottom: 0.5rem;
    line-height: 1.4;
   }

   .modal-header,
    .step-content,
    .modal-footer {
        padding-left: 3rem;
        padding-right: 3rem;
    }
/* Media query for smaller screens */
@media (max-width: 800px) {
    .modal-content-wrapper {
        margin-top: 0;
        margin-bottom: 0;
        border-radius: 0;
        box-shadow: none;
        min-height: 100vh; /* Ensure it takes full height on small screens */
    }

    .step-modal[open] {
        background-color: #fff; /* Change background to white on small screens */
    }

    .modal-header,
    .step-content,
    .modal-footer {
        padding-left: 15px; /* Reduce padding */
        padding-right: 15px;
    }
}

#hot-toast-container {
    position: fixed;
    z-index: 10000 !important;
}

.react-hot-toast {
    z-index: 10001 !important;
    font-size: 1rem !important;
}

/* Styles for actual quiz fullscreen mode (applied to #step-modal-5) */
#step-modal-5.actual-quiz-mode-active .modal-content-wrapper {
    background: none;
    box-shadow: none;
}

#step-modal-5.actual-quiz-mode-active .modal-header {
    display: none;
}

#step-modal-5.actual-quiz-mode-active .step-content {
    padding: 0px;
}

#step-modal-5.actual-quiz-mode-active .wp-quiz-container {
    margin: 0px;
    border-radius: 0px;
}

/* Hide the close button when quiz is active */
#step-modal-5.actual-quiz-mode-active > .close-dialog {
    display: none;
}

/* Popover Styles (generic + backwards-compatible) */
.welcome-popover-overlay,
.popover-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	display: none;
	align-items: center;
	padding: 0;
	z-index: 9999;
	opacity: 0;
	transition: opacity 0.3s ease;
	/* Enable scrolling if content exceeds viewport */
	overflow-y: auto;
	/* Keep the pop-over near the top so users notice overflow */
	justify-content: center; /* ensure horizontal centering */
}

.welcome-popover-overlay.show,
.popover-overlay.show {
	display: flex;
	opacity: 1;
}

.welcome-popover-content,
.popover-content {
	background: white;
	border-radius: 8px;
	padding: 30px;
	max-width: 500px;
	width: 90%;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	transform: scale(0.9);
	transition: transform 0.3s ease;
	position: relative; /* for X button */
	/* Prevent contents from stretching beyond viewport height */
	max-height: calc(100vh - 80px);
	overflow-y: auto;
}

.welcome-popover-overlay.show .welcome-popover-content,
.popover-overlay.show .popover-content {
	transform: scale(1);
}

.popover-title {
	margin: 0 0 20px 0;
	font-size: 1.8rem;
	text-align: center;
}

.popover-body p {
	margin-bottom: 15px;
	line-height: 1.6;
	color: #333;
}

/* "×" close button */
.popover-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: none;
	border: none;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
	color: #666;
}
.popover-close:hover { color: #000; }

/* Bottom cancel / legacy close button */
.popover-cancel,
.welcome-popover-content .close-resource-modal {
	display: block;
	margin: 20px auto 0;
	padding: 12px 24px;
	background-color: #4CAF50;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1.1rem;
	font-weight: 600;
	transition: background-color 0.3s ease;
}
.popover-cancel:hover { background-color: #45a049; }

@media (max-width: 600px) {
	.welcome-popover-content,
	.popover-content { padding: 20px; }

	.popover-title { font-size: 1.5rem; }
}

/* App Download Buttons */
.app-download-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.app-download-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.app-download-button .app-icon {
    font-size: 1.5rem;
}

.ios-button {
    background-color: #000000;
}

.ios-button:hover {
    background-color: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.android-button {
    background-color: #3DDC84;
}

.android-button:hover {
    background-color: #2eca72;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(61, 220, 132, 0.3);
}

@media (max-width: 600px) {
    .app-download-buttons {
        gap: 10px;
    }
    
    .app-download-button {
        padding: 12px 16px;
        font-size: 1rem;
    }
}

.gslide-external {
	max-height: 100vh !important;
}

/* Lesson Progress Styles (from lesson-progress.css) */
.step-item .step-progress {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	background-color: #e3f2fd;
	color: #1976d2;
	font-size: 0.85em;
	font-weight: 600;
	border-radius: 12px;
	line-height: 1.2;
}

.step-item.completed .step-progress {
	display: none; /* Hide progress for completed steps */
}

.lesson-progress-bar {
	display: inline-block;
	width: 60px;
	height: 6px;
	background-color: #e0e0e0;
	border-radius: 3px;
	margin-left: 8px;
	vertical-align: middle;
	overflow: hidden;
}

.lesson-progress-bar-fill {
	height: 100%;
	background-color: #3167ff;
	border-radius: 3px;
	transition: width 0.3s ease;
}

.lesson-progress-loading {
	color: #999;
	font-style: italic;
	font-size: 0.9em;
}