@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Text:ital@0;1&display=swap');
html, body, * {
    margin: 0;
    padding: 0;
    font-family: "DM Sans", sans-serif;
    box-sizing: border-box;
    text-underline-offset: 4px;
}
body {
    background-color: #E8F0FB;
}
html, body {
    height: 100%;
}
[hidden] {
  display: none !important;
}
h1 {
    font-size: 46px;
    margin-bottom: 15px;
    font-family: "DM Serif Text", serif;
    font-weight: 400;
}
p {
    font-size: 20px;
    line-height: 1.6;
}
.menu {
    background-color: #0073e6;
    color: white;
    padding: 15px 20px;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.badge {
    color: white;
    background-color: #0073e6;
    width: max-content;
    padding: 0 5px;
    border-radius: 5px;
    font-size: 16px;
}
.menu h1 {
    margin-bottom: 0;
    white-space: nowrap;
    flex-grow: 1;
    font-family: "DM Sans", sans-serif;
    font-weight: 700;
}
.menu nav {
    display: flex;
}
.menu a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    margin-left: 20px;
}
.menu a:hover {
    text-decoration: underline;
}
.menu .hamburger {
    display: none;
    font-size: 30px;
    cursor: pointer;
    margin-left: auto;
}
.menu .menu-links {
    display: flex;
}
.footer {
    background-color: #0073e6;
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer a {
    text-align: right;
    margin: auto 0 auto 20px;
    color: white;
    font-size: 14px;
}
.separator {
    border-bottom: 5px dotted #0073e6;
    margin: 20px 0;
}
@media (max-width: 746px) {
    .menu .hamburger {
        display: block;
    }
    .menu .menu-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #0073e6;
        position: absolute;
        top: 100%;
        right: 0;
    }
    .button, button {
        margin-bottom: 10px;
    }
    .menu .menu-links a {
        margin: 10px 0;
        padding: 10px;
        text-align: right;
        display: block;
        padding: 10px 20px 10px 10px;
    }
    .menu .menu-links.show {
        display: flex;
    }
    .area {
        margin-bottom: 80px;
        /* border-bottom: 7px dotted #0073e6; */
    }
    .mobile-hidden {
        display: none !important;
    }
    .lesson-manager {
        padding-left: 0;
        padding-right: 0;
    }
    .lesson-list {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        padding-left: 20px;
        padding-right: 20px;
    }
    .lesson-card {
        margin-bottom: 20px; /* Add space between stacked cards */
    }
    .lesson-actions {
        flex-direction: column; /* Stack buttons vertically */
        align-items: stretch; /* Stretch buttons to full width */
    }
    .lesson-actions button {
        width: 100%; /* Full width buttons on mobile */
    }
    .more-options-menu {
        position: static; /* No absolute positioning on mobile */
        width: auto; /* Revert width */
        margin-top: 10px; /* Space between 'More Options' button and menu */
        border: none;
        box-shadow: none;
        padding: 0;
        background-color: transparent; /* No background for menu on mobile */
    }
    .more-options-menu button {
        background-color: #f8faff; /* Match .more-options-button background */
        border: 2px solid #0073e6; /* Add border back for mobile menu items */
        margin-bottom: 10px; /* Space between menu items */
    }
    .more-options-menu button:last-child {
        margin-bottom: 0;
    }
}
.content {
    width: 100%;
    align-items: center;
    padding: 20px;
    margin-top: 90px; /* Space for fixed menu */
    display: flex;
    flex-direction: column;
}
.area {
    max-width: 1300px;
}
.underline {
    text-decoration: underline !important;
    text-underline-offset: 4px;
}
.button, button {
    display: inline-block;
    padding: 10px 20px;
    font-size: 18px;
    color: #fff;
    background-color: #0073e6;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 10px;
    cursor: pointer;
    width: max-content;
}
.button:hover, button:hover {
    background-color: #005bb5;
}
@media (min-width: 747px) {
    .area {
        display: flex;
        flex-direction: row;
        align-items: center;
    }
    .area > div {
        width: 50%;
        padding: 20px;
    }
    .area > img {
        width: 50%;
        max-width: 100%;
        height: auto;
        padding: 20px;
    }
    .area:nth-child(odd) {
        flex-direction: row-reverse;
    }
}
.area > img {
    max-width: 100%;
    border-radius: 50px;
}
.buttons {
    margin: 10px 0;
}
.buttons > button, .buttons> .button {
    margin: 2px;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    font-size: 18px;
    padding: 10px 35px 10px 12px; /* Add right padding for arrow */
    border-radius: 5px;
    border: 2px solid #0073e6;
    background-color: #fff;
    color: #0073e6;
    cursor: pointer;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z' fill='%230073e6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
}

select:focus {
    outline: none;
}

option {
    font-size: 16px;
    padding: 8px;
}

/* Booking Form Container (existing, for reference) */
.booking-form, .available-times {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    width: 100%;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
}

/* Form Headings (existing, for reference) */
.booking-form h2 {
    font-family: "DM Serif Text", serif;
    font-size: 32px;
    margin-bottom: 10px;
    color: #0073e6;
}

/* Labels (existing, for reference) */
.booking-form label {
    font-size: 18px;
    color: #333;
    display: block;
}

/* Inputs & Textareas (existing, for reference) */
.booking-form input,
.booking-form select,
.booking-form textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #0073e6;
    border-radius: 6px;
    background-color: #f8faff;
    resize: vertical;
    font-family: "DM Sans", sans-serif;
    margin-bottom: 15px;
}

option:hover {
    background-color: #0073e6;
}

/* Date/Time Picker (existing, for reference) */
.booking-form input[type="date"],
.booking-form input[type="time"] {
    appearance: none;
}

/* Submit Button (existing, for reference) */
.booking-form button {
    background-color: #0073e6;
    color: #fff;
    font-size: 18px;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.booking-form button:hover {
    background-color: #005bb5;
}

.available-times {
    display: block;
}

.available-times button {
    margin: 0px;
    background-color: white;
    color: #0073e6;
    border: solid 3px #0073e6;
}

.available-times button:hover {
    color: white;
    border: solid 3px #005bb5;
}

.available-times .time-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px; /* controls spacing between buttons */
  margin: 10px 0px 25px 0px;
}

/* --- NEW STYLES FOR LESSON MANAGER --- */

.lesson-manager {
    padding: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lesson-manager-header {
    max-width: 1300px;
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
    padding: 0 20px; /* Aligns with .content padding */
}

.lesson-manager-header h1 {
    font-size: 46px;
    margin-bottom: 15px;
    font-family: "DM Serif Text", serif;
    font-weight: 400;
    color: #0073e6; /* Highlight heading color */
}

.lesson-manager-header p {
    font-size: 20px;
    line-height: 1.6;
}

.lesson-list {
    display: grid;
    gap: 30px; /* Space between lesson cards */
    width: 100%;
    max-width: 1300px; /* Max width for the grid to align with content */
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Responsive grid */
    justify-content: center; /* Center cards if they don't fill the row */
    padding-bottom: 50px; /* Space at the bottom of the list */
}

.lesson-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push actions to the bottom */
}

.lesson-card h3 {
    font-family: "DM Serif Text", serif;
    font-size: 28px;
    margin-bottom: 10px;
    color: #0073e6;
}

.lesson-card p {
    font-size: 18px;
    line-height: 1.5;
    color: #333;
}

.lesson-actions {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap to next line */
    gap: 10px; /* Space between buttons */
    align-items: flex-end; /* Align buttons to bottom if card content varies */
    position: relative; /* For more-options-menu positioning */
}

.lesson-actions button {
    display: inline-block;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0; /* Prevent buttons from shrinking */
}

.cancel-lesson-button {
    background-color: #dc3545; /* Red for cancel */
    color: #fff;
    border: 2px solid #dc3545;
}

.cancel-lesson-button:hover {
    background-color: #c82333;
    border-color: #c82333;
}

.more-options-button {
    background-color: #f8faff; /* Lighter background for less prominence */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z' fill='%230073e6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px 18px;
    color: #0073e6;
    border: 2px solid #0073e6;
    padding-right: 35px !important;
}

.more-options-button:hover {
    background-color: #e6f0fa;
    color: #005bb5;
    border-color: #005bb5;
}

/* Style for additional option buttons */
.additional-option-button {
    background-color: #f8faff; /* Lighter background for less prominence */
    color: #0073e6;
    border: 2px solid #0073e6;
}
.additional-option-button:hover {
    background-color: #e6f0fa;
    color: #005bb5;
    border-color: #005bb5;
}

.more-options-menu {
    position: absolute;
    top: calc(100% + 5px); /* Position slightly below the 'More Options' button */
    right: 0; /* Align to the right of the parent (.lesson-actions) */
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 100; /* Ensure it's above other content */
    min-width: 200px;
    display: flex; /* Use flex to stack options vertically */
    flex-direction: column;
    gap: 8px; /* Space between menu buttons */
}

.more-options-menu.hidden {
    display: none;
}

.more-options-menu button {
    width: 100%; /* Make menu buttons full width */
    text-align: left; /* Align text to the left within menu buttons */
    background-color: #fff; /* White background for menu items */
    color: #0073e6;
    border: none; /* No border for menu items initially */
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 4px;
    margin: 0; /* Override any global button margin */
}

.more-options-menu button:hover {
    background-color: #e6f0fa;
    color: #005bb5;
}