:root {
    --dark-blue: #23597C;
}



/*GENERAL*/

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-y: auto;
    display: block;
    position: relative;
    overflow-x: hidden;
}

/* General Site Layout Styling */
.container {
    display: flex;
    width: 100%;
    height: calc(100vh - 60px); /* Adjust for header height */
    overflow: visible; /* Prevent container from scrolling */
    position: relative;
    z-index: 1;
}

.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto; /* Enable content scrolling */
    height: 100%; /* Fill container height */
    position: relative;
    z-index: auto;
    padding-top: 20px;
}

h2 {
    font-size: 1.8em;
    color: #23597C;
    text-align: center;
    margin-bottom: 20px;
}

/* ==========================================================================
   Forms
   Form styles for login, registration, etc.
   ========================================================================== */
.login-form {
    max-width: 400px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--gray-dark);
}

.form-group input {
    width: 100%;
    padding: var(--spacing-sm);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
}

.register-link {
    text-align: center;
    margin-top: var(--spacing-md);
}

.register-link a {
    color: var(--primary-color);
}

.register-link a:hover {
    text-decoration: underline;
}

/* Message Styles */

.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Subscription styles */
.pricing-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px;
}

.pricing-option {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 300px;
}

.save-text {
    color: #4CAF50;
    font-weight: bold;
}   

/*Tours payment page*/

/* Payment page styles */

.payment-intro {
    margin: 30px 40px;
    line-height: 1.6;
}

.payment-intro p {
    margin-bottom: 20px;
}

.payment-intro p:last-child {
    margin-bottom: 0;
}

.payment-options {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.payment-option {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the content horizontally */
}

.payment-option h2 {
    color: var(--dark-blue);
    margin-bottom: 20px;
    font-size: 1.5em;
    text-align: center;
}

.payment-option p {
    margin-bottom: 25px;
    line-height: 1.5;
    text-align: center;
}

.payment-option .button {
    width: auto; /* Remove full width */
    min-width: 200px; /* Set a minimum width */
    margin-bottom: 15px;
}

.payment-option .button:last-child {
    margin-bottom: 0;
}


.payment-form-group {
    margin-bottom: 15px;
}

.payment-form-group label {
    display: block;
    margin-bottom: 5px;
    color: var(--dark-blue);
}

.payment-form-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.payment-form-group input:focus {
    border-color: var(--dark-blue);
    outline: none;
}

/*END GENERAL*/

/*HEADER*/

/* Header Styling */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 10px 20px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo img {
    height: 40px;
    filter: none;
}

.nav {
    flex: 1;
    margin: 0 20px;
    position: relative;
    z-index: auto;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav ul > li:not(:last-child) {
    border-right: 1px solid #ddd;
    padding: 0 15px;
}

.nav ul > li:last-child {
    padding-left: 15px;
}

.nav ul li {
    white-space: nowrap; /* Prevent text wrapping in nav items */
}

.nav ul li.drop {
    position: relative;
    z-index: 10000;
}

.nav ul li.drop .sub {
    position: fixed;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
    display: none;
}

.nav ul li a {
    color: #333333;
    text-decoration: none;
    font-weight: bold;
}

.nav ul li a:hover {
    color: #23597C;
}

/* Base Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    border-radius: 4px;
    z-index: 1000;
}

.show {
    display: block;
}

/* Login Dropdown Specific */
.login-button {
    position: relative;
    display: inline-block;
    z-index: 10000;
}

.login-button a {
    color: #23597C;
    border: 2px solid #23597C;
    padding: 5px 15px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
}

.login-button a:hover {
    background-color: #23597C;
    color: #ffffff;
}

.login-button .dropdown-content {
    right: 0;
    background-color: #f9f9f9;
    padding: 10px;
    border: 1px solid #ccc;
    z-index: 10001;
}

.login-button .dropdown-content input {
    margin: 5px 0;
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.login-button .dropdown-content form,
.login-button .dropdown-content input,
.login-button .dropdown-content label {
    cursor: auto;
}

/* Dashboard Dropdown Specific */
.nav .dropdown > a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav .dropdown .dropdown-content {
    top: 100%;
    left: 0;
    padding: 8px 0;
}

.nav .dropdown .dropdown-content a {
    color: #333333;
    padding: 8px 16px;
    text-decoration: none;
    display: block;
    font-weight: normal;
}

.nav .dropdown .dropdown-content a:hover {
    background-color: #f5f5f5;
    color: #23597C;
}

.nav .dropdown > a:hover {
    color: #CCCCCC;
}

.nav .dropdown > a i {
    font-size: 0.8em;
}

/* Auth Section Styles */
.greeting {
    margin-right: 15px;
    font-weight: bold;
    color: #333333;
}

.logout-button {
    background-color: #ffffff;
    color: #23597C;
    border: 2px solid #23597C;
    padding: 5px 15px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.logout-button:hover {
    background-color: #23597C;
    color: #ffffff;
}

/*END HEADER*/

/*FOOTER*/
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    position: relative; /* Allow footer to scroll with page */
    width: 100%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding: 0 20px;
}

.footer-section h3 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    color: #ddd;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: #444;
    margin-right: 10px;
    text-align: center;
    line-height: 35px;
    border-radius: 50%;
}

.social-links a:hover {
    background: #555;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Footer positioning */
footer {
    margin-top: auto; /* This pushes the footer down */
    width: 100%;
}

/* END FOOTER*/

/* OTHER ELEMENTS */

/* Button styling */
.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #23597C;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #1a4460;
}

/*====================
    1. Layout Containers
====================*/
/* Main course listing container */
.courses-container {
    display: flex;
    min-height: 100%;
    width: 100%;
    padding: 20px;
}

/* Quiz page container */
.quiz-container {
    display: flex;
    justify-content: center;
}

/* Living Latin page container */
.living-latin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/*====================
    2. Modals
====================*/
/* Quiz results modal */
.quiz-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.quiz-modal-content {
    background: white;
    margin: 15% auto;
    padding: 20px;
    width: 70%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
}

.quiz-modal-close {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 28px;
    cursor: pointer;
}

/* General purpose modal */
.general-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.general-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    position: relative;
}

.general-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

/*====================
    3. Buttons
====================*/
/* General purpose button */
.btn-general {
    background-color: #fff;
    color: #333;
    border: 2px solid #333;
}

/* Course-specific button */
.btn-course {
    background-color: #23597C;
    color: white;
}

/* Living Latin specific button */
.btn-living-latin {
    background-color: #4A90E2;
    color: white;
    border: 2px solid #4A90E2;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

/* END OTHER ELEMENTS */

/* COURSES AND REGISTRATION */

/* Main Courses Section */
.courses-section {
    padding: 40px;
    text-align: center;
}

.courses-section h2 {
    font-size: 2em;
    color: #23597C;
    margin-bottom: 10px;
}

.courses-section p {
    color: #555;
    font-size: 1.2em;
    margin-bottom: 30px;
}

/* Courses Container */
.courses-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Individual Course Card */
.course-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    width: 300px;
    text-align: left;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}

.course-card:hover {
    transform: translateY(-5px);
}

.course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.course-card h3 {
    font-size: 1.5em;
    color: #23597C;
    margin: 15px 15px 5px;
}

.course-card p {
    color: #555;
    font-size: 1em;
    margin: 5px 15px 15px;
}

.course-card .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #23597C;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.course-card .btn:hover {
    background-color: #1d4b6c;
}

/* Course Overview Styling */
.course-overview {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.course-overview section {
    margin-bottom: 40px;
}

.course-overview h1 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.course-overview h2 {
    color: #34495e;
    margin-bottom: 20px;
}

.course-overview p {
    line-height: 1.6;
    margin-bottom: 20px;
}

.course-header {
    width: 100%;
    margin-bottom: 40px;
}

.header-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.6));
}

.course-header .header-image h1 {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    z-index: 1;
    font-size: 2.5em;
}

.try-course {
    text-align: center;
    padding: 2rem 0;
}

.try-course-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: #2a6496;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.try-course-button:hover {
    background-color: #1d4568;
}

/* Registration Form Styles */
.register-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.register-title {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
}

.register-message {
    text-align: center;
    padding: 10px;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.register-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.register-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

.register-btn {
    width: 100%;
    padding: 0.75rem;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.register-btn:hover {
    background-color: #357abd;
}

/* Living Latin Overview Styles */
.course-header {
    text-align: center;
    padding: 40px 20px;
    background-color: #f5f5f5;
    margin-bottom: 40px;
}

.course-header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
}

.course-description {
    font-size: 1.2em;
    color: #666;
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-buttons {
    margin: 20px 0;
}

.cta-buttons .button {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.button.primary {
    background-color: #4A90E2;
    color: white;
    border: 2px solid #4A90E2;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Feature Boxes */
.feature-box {
    margin: 40px 0;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.feature-box h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
}

.feature-box img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Testimonials */
.testimonials {
    background: #f9f9f9;
    padding: 40px 20px;
    margin: 40px 0;
}

.testimonial {
    max-width: 800px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.testimonial blockquote {
    border-left: 4px solid #4A90E2;
    padding-left: 20px;
    margin: 0;
}

.testimonial p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
}

.testimonial cite {
    display: block;
    margin-top: 15px;
    color: #333;
    font-style: normal;
    font-weight: bold;
}

/* END COURSES AND REGISTRATION */

/* READING ENVIRONMENT */

/* Navigation Panel For Courses */
.nav-panel {
    width: 20%;
    background-color: #f8f8f8;
    padding: 20px;
    border-right: 2px solid #333;
    overflow-y: auto; /* Enable panel scrolling */
    height: 100%; /* Fill container height */
}

.nav-panel::-webkit-scrollbar {
    width: 8px;
}

.nav-panel::-webkit-scrollbar-track {
    background: #f8f8f8;
}

.nav-panel::-webkit-scrollbar-thumb {
    background: #23597C;
    border-radius: 4px;
}

.nav-panel::-webkit-scrollbar-thumb:hover {
    background: #1a4460;
}

.nav-panel {
    scrollbar-width: thin;
    scrollbar-color: #23597C #f8f8f8;
}

.nav-panel h2 {
    font-weight: bold;
    margin-bottom: 15px;
    color: #23597C;
}

.nav-panel ul {
    list-style: none;
}

.nav-panel ul ul {
    margin-left: 15px;
    font-size: 0.9em;
}

.accordion-content {
    display: none;
    overflow: hidden;
    padding: 0 15px;
}

.accordion-button {
    width: 100%;
    text-align: left;
    padding: 10px;
    background-color: #f8f8f8;
    border: none;
    cursor: pointer;
    outline: none;
    transition: background-color 0.3s ease;
    position: relative;
}

.caret {
    border: solid black;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 5px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    transition: transform 0.3s ease;
}

.accordion-button.active .caret {
    transform: translateY(-50%) rotate(-135deg);
}

.accordion-content {
    display: none;
    overflow: hidden;
    padding: 0 15px;
}

/* Navigation item styles */
.unit, .lesson, .quiz-link {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    color: #333;
}

.unit {
    font-weight: 600;
    border-left: 3px solid transparent;
}

.unit:hover {
    border-left: 3px solid #23597C;
    background-color: #f0f0f0;
}

.lesson {
    margin-left: 20px;
    font-size: 0.95em;
    border-left: 2px solid transparent;
}

.lesson:hover {
    border-left: 2px solid #4A90E2;
    background-color: #f5f5f5;
}

.quiz-link {
    margin-left: 40px;
    font-size: 0.9em;
    color: #666;
    border-left: 2px solid transparent;
}

.quiz-link:hover {
    border-left: 2px solid #27ae60;
    background-color: #f5f5f5;
    color: #333;
}

/* Active states */
.unit.active, .lesson.active, .quiz-link.active {
    background-color: #f0f0f0;
    border-left-color: #23597C;
    color: #23597C;
}

.video-placeholder {
    width: 100%;
    height: 300px;
    background-color: #333;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.video-container {
    position: relative;
    padding-bottom: 30%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    display: flex;
    justify-content: center;
    width: 60%;
    margin: 0 auto;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}


.lesson-content {
    max-width: 930px;
    margin: 2rem auto;
    padding: 0 20px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.lesson-content p {
    margin: 1.5rem 0;
}

.lesson-content h1 {
    margin-bottom: .7rem;
    font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", sans-serif;
    font-weight: 700;
    line-height: 1.4em;
    color: #1c5379;
    font-size: 2rem;
}

.highlight-paragraph {
    background-color: #ffcf70;
    padding: 1rem;
    border-radius: 8px;
}

.highlight-paragraph i {
    color: white;
    font-size: 1.2em;
    margin-right: 8px;
    text-shadow: -1px -1px 0 #000,  
                  1px -1px 0 #000,
                 -1px  1px 0 #000,
                  1px  1px 0 #000;
}

.chapter-header-image {
    max-width: 600px;
    height: auto;
    margin: 20px auto;
    display: block;
    text-align: center;
}

.procede-button {
    display: block;
    padding: 5px 15px;
    background-color: var(--dark-blue);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin: 3rem 4rem 3rem auto;  /* Changed from 'margin: 3rem auto' */
    padding: 1rem 2rem;
    width: fit-content;
}

/* Right Panel with Tabs */
.right-panel {
    width: 20%;
    background-color: #f8f8f8;
    border-left: 2px solid #333;
    padding: 0;
    overflow: auto; /* Enable panel scrolling */
    height: 100%; /* Fill container height */
}

/* Tabs container */
.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    flex-shrink: 0; /* Prevent tabs from shrinking */
    position: sticky;
    z-index: 10;
    top: 0px;
}

.tab-button {
    flex: 1;
    padding: 8px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: none;
}

.tab-button.active {
    background-color: #23597C;
    color: white;
}

/* Tab content styling */
.tab-content {
    display: none;
    background-color: #fff;
    flex: 1; /* Allow content to take remaining space */
    overflow: hidden;
    position: relative;
}

.tab-content.active {
    display: flex; /* Changed from block to flex */
    flex-direction: column; /* Stack contents vertically */
}

.enroll-button {
    display: inline-block;
    padding: 5px 15px;
    background-color: #23597C;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin: 10px 0;
    font-weight: bold;
}

.enroll-button:hover {
    background-color: #1d4b6c;
}

/* Clickable word styling */
.highlight-word {
    font-weight: bold;
    cursor: pointer;
    color: #23597C;  /* Match your theme color */
    transition: all 0.2s ease;
    scroll-margin: 0;
}

.highlight-word:hover {
    text-decoration: underline;
    color: #1a4460;  /* Slightly darker on hover */
}

/* Note content styling */
.note-content {
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 3px solid #ddd;
    margin: 10px 0;
    transition: all 0.3s ease;
    min-height: 50px;
    position: relative;
}

.note-content.active {
    border-left-color: #23597C;
    background-color: #f0f4f8;
}

.note-content strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #23597C;
}

/* Notes container styling */
#tab1 {
    position: relative;
}

/* Notes wrapper styling */
.notes-wrapper {
    padding: 15px;
    flex: 1;
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.notes-wrapper::before,
.notes-wrapper::after {
    content: '';
    display: block;
    height: 50vh;
}

.note-content {
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 3px solid #ddd;
    margin: 10px 0;
    transition: all 0.3s ease;
    min-height: 50px;
}

/* DICTIONARY POPUP */

.dictionary-popup {
    position: fixed;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px;
    max-width: 300px;
    border-radius: 4px;
    z-index: 1000;
    display: none;
}

.dictionary-popup.active {
    display: block;
}

.dictionary-popup .word {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.dictionary-popup .part-of-speech {
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.dictionary-popup .definition {
    line-height: 1.4;
}

.dictionary-popup .etymology {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
}

[data-note] {
    text-decoration: underline;
    cursor: pointer;
    color: #23597C;
    font-weight: bold;
    transition: all 0.2s ease;
    scroll-margin: 0;
}

[data-note]:hover {
    background-color: #f0f0f0;
    color: #1a4460;
}

/* Sidebar tab video styles */
.tab-video-wrapper {
    padding: 15px;
}

.tab-vimeo-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    margin-bottom: 20px;
}

.tab-vimeo-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Toggle switch styling */
.toggle-container {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 5px 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin-right: 10px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #23597C;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Highlight styles */
.highlight-active {
    background-color: #fff3cd;
    transition: background-color 0.3s ease;
}

/* END READING ENVIRONMENT */


/* USERS */

/* Users Table Styles */
.users-container {
    width: 100%;
    max-width: 100%;
    padding: 20px;
    overflow-x: auto;  /* For narrow screens */
    min-height: auto;
    height: auto;
    margin-bottom: var(--spacing-lg);
}

.users-table {
    width: 100%;
    min-width: 1200px;  /* Minimum width for content */
    border-collapse: collapse;
    margin: 20px 0;
}

.users-table th, 
.users-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
    white-space: normal;  /* Allow text wrap */
    word-wrap: break-word;  /* Break long words */
}

.users-table th {
    background-color: #f5f5f5;
}

/* Column width specifications */
.users-table th:nth-child(1), /* Username */
.users-table td:nth-child(1) {
    width: 15%;
}

.users-table th:nth-child(2), /* Email */
.users-table td:nth-child(2) {
    width: 25%;
}

.users-table th:nth-child(3), /* Role */
.users-table td:nth-child(3) {
    width: 10%;
}

.users-table th:nth-child(4), /* Groups */
.users-table td:nth-child(4) {
    width: 10%;
}

.users-table th:nth-child(5), /* Subscription */
.users-table td:nth-child(5) {
    width: 15%;
}

.users-table th:nth-child(6), /* Enrollments */
.users-table td:nth-child(6) {
    width: 10%;
}

.users-table th:nth-child(7), /* Registrations */
.users-table td:nth-child(7) {
    width: 10%;
}

.users-table th:nth-child(8), /* Actions */
.users-table td:nth-child(8) {
    width: 5%;
}

/* Button Styles */
.button-delete {
    background-color: #ff4444;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
}

.button-delete:hover {
    background-color: #cc0000;
}

/* User View Page Styles */
.user-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.user-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-section h3 {
    color: #23597C;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.user-section p {
    margin: 10px 0;
    line-height: 1.4;
}

.user-section ul {
    list-style: none;
    padding: 0;
}

.user-section ul li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.user-section ul li:last-child {
    border-bottom: none;
}

.user-section table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.user-section table th,
.user-section table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.user-section table th {
    background-color: #f5f5f5;
    font-weight: bold;
    color: #23597C;
}

.actions {
    margin-top: 20px;
    text-align: center;
    padding: 20px;
}

.actions .button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #23597C;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.actions .button:hover {
    background-color: #1a4460;
}

.user-profile {
    display: flex;
    gap: 20px;
    align-items: start;
    margin-bottom: 20px;
}

.profile-image {
    flex: 0 0 200px;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-details {
    flex: 1;
}

/* END USERS */

/* QUIZZES */

/* Quiz styling */
.quiz-content {
    width: 100%;
    padding-bottom: 20px;
}

.quiz-form {
    margin-bottom: 20px;
}

.question {
    margin-bottom: 30px;
}

.quiz-submit {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Styling for the quiz form */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.question {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.question p {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 10px;
}

/* Styling for radio button options */
.question label {
    display: block;
    background-color: #e6f0fa;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    font-size: 1em;
    color: #23597C;
    border: 1px solid #cce0f5;
    transition: background-color 0.3s, border-color 0.3s;
}

.question label:hover {
    background-color: #d0e7fc;
    border-color: #b3d0f7;
}

/* Styling for submit button */
input[type="submit"] {
    background-color: #23597C;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    margin-top: 20px;
    transition: background-color 0.3s;
}

input[type="submit"]:hover {
    background-color: #1d4b6c;
}

/* Additional styling for input elements */
input[type="radio"] {
    margin-right: 10px;
}

/* Results specific styling */
.results-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
    padding: 20px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.results-table th,
.results-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.results-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.results-table tr:hover {
    background-color: #f8f9fa;
}

/* Score styling */
.score {
    font-weight: bold;
    color: #23597C;
}

.max-score {
    color: #666;
}

/* Percentage bar */
.percentage-bar {
    background: #eee;
    border-radius: 4px;
    height: 20px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.percentage-fill {
    background: #23597C;
    height: 100%;
    transition: width 0.3s ease;
}

.percentage-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.9em;
    text-shadow: 0 0 2px rgba(0,0,0,0.5);
}

/* No results message */
.no-results {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.no-results p {
    color: #666;
    margin-bottom: 20px;
}

/* Quiz actions */
.quiz-actions {
    margin-top: 20px;
    text-align: right;
}

.filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-form {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: bold;
}

.filter-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.results-table th,
.results-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.results-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.view-details-btn {
    padding: 5px 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.view-details-btn:hover {
    background: #0056b3;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 5px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 10px;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#quizDetails {
    margin-top: 20px;
}

.answers-list {
    margin-top: 15px;
}

.answers-list p {
    margin: 8px 0;
}

#quizDetails {
    margin-top: 30px;
}

/* END QUIZZES */

/* GROUPS */

/* Group Management Styles */
.group-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.create-group-form {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.group-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.add-student-form {
    margin: 15px 0;
    display: flex;
    gap: 10px;
}

.group-members {
    margin-top: 15px;
}

.member-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.remove-button {
    background: #f44336;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
}

.remove-button:hover {
    background: #d32f2f;
}

.role-update-form select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    margin-right: 10px;
}

.role-update-form select:hover {
    border-color: #666;
}

.teacher-update-form select {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-left: 10px;
}

.create-group-form select {
    margin: 0 10px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.group-card p {
    margin: 10px 0;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.delete-button {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    width: auto;
    min-width: fit-content;
}

.delete-button:hover {
    background-color: #c82333;
}

.delete-group-form {
    margin-left: 10px;
    display: inline-block;
}

.teacher-info {
    color: #666;
    margin: 5px 0;
    font-style: italic;
}

/* END GROUPS */

/* MEDIA QUERIES */

/* Responsive Styling for Mobile */
@media (max-width: 768px) {
    /* Hide side panels on mobile */
    .nav-panel,
    .right-panel {
        display: none;
    }

    /* Scale down header */
    .header-container {
        flex-wrap: wrap;
        padding: 10px;
    }

    .logo {
        flex: 1 1 100%; /* Takes full width */
        margin-bottom: 10px;
    }

    .nav {
        flex: 1; /* Takes remaining space */
    }

    .auth-buttons {
        flex: 0; /* Takes only needed space */
        margin-left: auto; /* Pushes to the right */
    }

    .logo img {
        height: 30px; /* Scale down the logo */
    }

    .nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .nav ul li a {
        font-size: 0.9em; /* Slightly smaller text for mobile */
    }

    .login-button a {
        padding: 3px 10px; /* Reduce padding on the login button */
        font-size: 0.9em; /* Slightly smaller text */
    }

    /* Adjust main content area to full width */
    .main-content {
        width: 100%;
        padding: 15px;
    }
}

/* Update mobile responsiveness to include footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .course-header h1 {
        font-size: 2em;
    }
    
    .cta-buttons .button {
        display: block;
        margin: 10px auto;
        max-width: 200px;
    }
    
    .feature-box {
        padding: 20px;
    }
}

/* Responsive design for user view */
@media (max-width: 768px) {
    .user-details-grid {
        grid-template-columns: 1fr;
        padding: 10px;
    }
    
    .user-section {
        padding: 15px;
    }
}

/* For mobile responsiveness on tour payment page*/
@media (max-width: 768px) {
    .payment-options {
        flex-direction: column;
        gap: 20px;
    }
}

/* END MEDIA QUERIES */

/* Add arrow icon styles */
.nav ul li.drop > a i {
    margin-left: 5px;
    font-size: 0.8em;
}

/* Show dropdowns on hover for desktop */
@media (min-width: 769px) {
    .nav ul li.drop:hover .sub {
        display: block;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav ul {
        flex-direction: column;
    }

    .nav ul li.drop .sub {
        position: static;
        box-shadow: none;
        padding-left: 20px;
    }

    .nav ul li.drop .sub.show {
        display: block;
    }
}












