.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    font-size: 50px;
    text-align: center;
}


.title h1{
    text-align: center;
}

.day {
    border: 1px solid #ddd;
    padding: 10px;
}
.booked {
    color: red;
}
.available {
    color: green;
}
li {
    list-style-type: none;
}
a {
    color: inherit;
    text-decoration: inherit;
}
.month-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    margin: 10px 0;
}
/**/

.today {
    background-color: #ffffcc; /* light yellow */
    border: 2px solid #ffa500;
}
.weekday-headers {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}


/* condition logic style for calendar*/
.disabled{
    color: grey;
}

/*--------------------------------------------------------------------------------------------------------------------*/
/*
Booking page style
*/
/* Bigger Booking Form */
#booking_form {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    font-size: 1.25em;
}

#booking_form input,
#booking_form select,
#booking_form textarea {
    width: 100%;
    padding: 16px;
    margin-top: 12px;
    margin-bottom: 20px;
    font-size: 1.1em;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-sizing: border-box;
}

#booking_form p {
    text-align: left;
}

.submit_button {
    width: 100%;
    padding: 16px;
    background-color: #28a745;
    border: none;
    color: white;
    font-size: 1.25em;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit_button:hover {
    background-color: #218838;
}

@media screen and (max-width: 600px) {
    #booking_form {
        margin: 20px 10px;
        padding: 25px;
    }

    #booking_form input,
    #booking_form select,
    #booking_form textarea,
    .submit_button {
        font-size: 1.1em;
        padding: 14px;
    }
}
.back-button {
    display: block;
    width: max-content;
    margin: 20px auto;
    padding: 12px 24px;
    background-color: #ddd;
    color: #333;
    text-decoration: none;
    font-size: 1.1em;
    border-radius: 8px;
    text-align: center;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #ccc;
}

/*--------------------------------------------------------------------------------------------------------------------*/
/* Index responsive design */
@media screen and (max-width: 768px) {
    .calendar {
        grid-template-columns: repeat(7, 1fr); /* fewer columns on smaller screens */
        font-size: 28px;
        gap: 5px;
    }

    .month-navigation {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        font-size: 18px;
    }

    .day {
        padding: 12px;
    }
}

@media screen and (max-width: 480px) {
    .calendar {
        grid-template-columns: repeat(7, 1fr); /* 2 columns on phones */
        font-size: 24px;
    }

    .month-navigation {
        font-size: 16px;
    }

    .month-navigation h3{
        margin: 5px 0;
    }

    h1 {
        font-size: 26px;
        text-align: center;
    }

    .day {
        padding: 8px;
    }
}
/*--------------------------------------------------------------------------------------------------------------------*/
/* Slot design */
.slot-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.slot {
    padding: 20px 30px;
    font-size: 1.3em;
    text-align: center;
    border-radius: 12px;
    min-width: 180px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.slot.available {
    background-color: #e6ffe6;
    color: #28a745;
    border: 2px solid #28a745;
    cursor: pointer;
}

.slot.booked {
    background-color: #ffe6e6;
    color: #cc0000;
    border: 2px solid #cc0000;
}

.slot a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.slot.available:hover {
    background-color: #d4f7d4;
    transform: scale(1.03);
}
/*--------------------------------------------------------------------------------------------------------------------*/
/* Header */
/* Header/Navbar */
.main-header {
    background-color: #ffffff; /* white background */
    color: black;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.logo-img {
    height: 50px;
    width: auto;
}

/* Hamburger Icon */
.hamburger {
    font-size: 2em;
    color: black; /* black menu icon */
    cursor: pointer;
    display: none;
    user-select: none;
}

/* Menu Links */
.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links li a {
    color: black; /* black text on white header */
    text-decoration: none;
    font-size: 1.1em;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.nav-links li a:hover {
    background-color: #f0f0f0;
}

/* Responsive Menu */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: white; /* ✅ White background */
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 10;
        border-top: 1px solid #ccc; /* ✅ Optional top border */
        padding-bottom: 20px; /* ✅ Extra height */
    }

    #menu-toggle:checked + .hamburger + .nav-links {
        display: flex;
    }

    .nav-links li {
        border-bottom: 1px solid #ccc; /* ✅ Border between items */
    }

    .nav-links li a {
        color: black;               /* ✅ Black text */
        padding: 18px 20px;         /* ✅ Taller links */
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .nav-links li a:hover {
        background-color: #f0f0f0;  /* ✅ Light hover background */
    }
}

#menu-toggle {
    display: none;
}

/*--------------------------------------------------------------------------------------------------------------------*/


/* Logo style */
.logo-img {
    height: 50px;
    width: auto;
}

/* Adjust for mobile */
@media screen and (max-width: 600px) {
    .logo-img {
        height: 40px;
    }
}
.logo a {
    display: flex;
    align-items: center;
}
/*--------------------------------------------------------------------------------------------------------------------*/

/* Typography and body formatting */
body {
    font-family: Arial, sans-serif;
    font-size: 1.1em;
    line-height: 1.6;
    color: #222;
    padding: 20px;
    margin: 0;
}

body#index {
    padding: 0;
}


/* Paragraph styling */
p {
    text-align: justify;
    margin-bottom: 20px;
}

/* Headings */
h1, h2 {
    margin-top: 30px;
    color: #333;
}

/* Ordered and unordered list styling */
ol, ul {
    margin-left: 30px;
    margin-bottom: 20px;
    padding-left: 20px;
}

ol li {
    list-style-type: decimal;
    margin-bottom: 10px;
    text-align: left;
}

ul li {
    list-style-type: disc;
    margin-bottom: 10px;
    text-align: left;
}

/*---------------------------------------------------------------------------------------------*/
/* doctor.html styling */
.doctor-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 2rem auto;
    max-width: 1000px;
    padding: 0 1rem;
}

.doctor-image {
    flex: 1 1 40%;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    object-fit: cover;
}

.doctor-text {
    flex: 1 1 60%;
    text-align: justify;
}

@media (max-width: 768px) {
    .doctor-container {
        flex-direction: column;
    }

    .doctor-text {
        padding-left: 0;
    }

    .doctor-image {
        width: 100%;
        margin-bottom: 1rem;
    }
}

.article-container a{
    color: green;
}

/*---------------------------------------------------------------------------------------------*/
/* confirmation style */
.confirmation-page {
    text-align: center;
    padding: 40px 20px;
}

.confirmation-page h1 {
    font-size: 2em;
    margin-bottom: 20px;
}

.confirmation-page p {
    font-size: 1.1em;
    margin: 10px 0;
}

.confirmation-page .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007b85;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 20px;
}
