* {
    box-sizing: border-box; /* Includes padding in the element's total size */
    margin: 0;
    padding: 0;
}


html, body {
    height: 100%;
    overflow: hidden; /* Disable scrolling */
    margin: 0;
}

body {
    background-image: url('background.jpg'); /* Replace with your image URL */
    background-size: cover;
    background-position: left center; /* Aligns the image to the left, so it cuts off the right side */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-attachment: fixed; /* Keeps the image fixed during scrolling */
    height: 100vh; /* Ensures the body height covers the viewport height */
    font-family: 'Figtree', sans-serif;
}

.header {
    display: flex;
    justify-content: space-between; /* Space between items */
    align-items: center; /* Vertically center items */
    padding: 10px 0px; /* Add some padding */
    background-color: transparent; /* Background color for the header */
    margin: 0px;
    margin-right: clamp(40px, 12vw, 230px);
    margin-left: clamp(10px, calc(-20px + 5vw), 80px);
    flex-wrap: nowrap;
}

.logo-container {
    flex: 0;
    display: flex;
    align-items: center;
}

.logo {
    max-width: 200px;
    height: auto;
}

.menu-container {
    flex: 1;
    display: flex;
    justify-content: center; /* Vertically center items */
    align-items: center;
    gap: 20px;
}

.menu-toggle {
    display: none;
    font-size: 30px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-bar {
    flex: 1; /* Allow the menu bar to take space */
    background-color: transparent;
    overflow: hidden;
    display: flex;
    justify-content: center;
    list-style: none;
}

/* Menu items */
.menu {
    list-style-type: none;
    display: flex;
    padding: 0; 
    margin: 0;
	width: 100%;
	align-items: center;
}

.menu li {
    margin: 0 20px; /* Adds spacing between each menu item */
    display: flex;
    height: 100px;
    align-items: center;
    font-size: 1.3vw;
}

.menu-spacer {
    flex: 1; /* 👈 absorbs half the space */
}

.menu-bar button, .online-bookings button, .phone-link {
    background: none; /* Remove background */
    border: none; /* Remove border */
    color: black; /* Text color */
    text-decoration: none; /* No underline */
    padding: 0; /* Remove padding */
    cursor: pointer; /* Show pointer cursor on hover */
    font: inherit; /* Inherit font properties */
    outline: none; /* Remove outline on focus */
    transition: color 0.3s, border-bottom 0.3s; /* Smooth transition for hover effects */
    border-bottom: 1px solid transparent; /* Start with an invisible border */
}

.menu-bar button:hover, .online-bookings button:hover, .phone-link:hover {
    border-bottom: 1px solid #555; /* Add underline on hover */
}

.menu li.active button {
    border-bottom: 1px solid #555; /* Keep the border for the active button */
}

.booking-container {
    display: flex;        /* Use flexbox to align bookings and phone side by side */
    align-items: center;  /* Vertically align the items */
    gap: 20px;            /* Space between online bookings and phone number */
}

.online-bookings {
    margin-left: 40px; /* Space between menu and online bookings */
    font-size: 1.4vw;
    justify-content: right;
    align-items: center;
}

.phone-container .material-icons {
    font-size: 1.4vw;
}

.phone-container {
    text-align: right; /* Align phone number to the right */
    justify-content: right;
    white-space: nowrap;
    font-size: 1.4vw;
    align-items: center; /* Center items vertically */
    display: flex;
}

.material-icons {
  vertical-align: middle;
}

.parent-container {
    height: calc(100vh - 120px - 16vh);
    padding: 20px 80px 20px 40px; 
    padding-right: clamp(40px, 12vw, 230px);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 0px;
  }

.content-section {
    flex-grow: 1;
    flex-direction: column;
    justify-content: right;
    align-items: center; /* Centers content both vertically and horizontally */
    background-color: transparent;
    padding: 0px;
    text-align: right;
    opacity: 0; /* Start hidden */
    transition: opacity 1s ease; /* Transition effect */
    display: none; /* Hide the divs by default */
    max-height: 100%; /* Contain content inside parent-container */
    overflow-y: auto; /* Add scrolling if content overflows */
    overflow-x: hidden;
}

.content-section.active {
    display: flex; /* Make the block visible when active */
    opacity: 1; /* Fully visible */
}

.content-section h1 {
    font-size: clamp(24px, 2.6vw, 44px);   
    margin-bottom: 30px;
    align-self: flex-end; /* Align the H1 to the right */
    text-align: right;
}

.content-section h2 {
    font-size: 1.6vw; 
    margin-bottom: 10px;
    margin-top: 10px;
    align-self: flex-end; /* Align the H2 to the right */
    text-align: right;
}

.content-section p {
    font-size: clamp(16px, 1.3vw, 20px);
    min-height: 30px;
    align-self: flex-end;
    text-align: right;
    margin: 4px;
}

.content-section a {
	font-size: clamp(16px, 1.3vw, 20px);
    min-height: 30px;
	color: #000000;
}

.content-section p.custom-note {
    font-size: 13px;
    min-height: 13px;
}

.fees-container {
    display: flex; /* Create a flex container */
    justify-content: space-between; /* Space between the text and tables */
    align-items: center; /* Vertically center items */
    margin: 0px; /* Optional margin for the container */
    width: 100%; /* Take full width */
    max-height: 100%; /* Contain height inside parent */
    flex-wrap: wrap; /* Optional: Wrap items if content overflows */
}

.fees-text {
    flex: 1; /* Allow the text section to take available space */
    padding-right: 50px; /* Increase space between text and tables */
    display: flex; /* Make the text section a flex container */
    flex-direction: column; /* Arrange children vertically */
    justify-content: center; /* Center children vertically */
}

.fees-tables {
    display: flex; /* Flex container for the tables */
    flex-direction: column; /* Stack the tables vertically */
    gap: 20px; /* Space between the tables */
}

.fees-table {
    /* Optional styles for the table containers */
    border: 1px solid #ccc; /* Example border */
    padding: 10px; /* Example padding */
    border-radius: 5px; /* Optional rounded corners */
    max-width: 100%;
}

.fees-text p {
    padding-bottom: 6px;
}

table {
    width: 100%; /* Make the table take full width */
    border-collapse: collapse; /* Collapse borders */
}

th, td {
    padding: 8px; /* Add padding to table cells */
    text-align: center; /* Center align text */
    border: 1px solid #ddd; /* Add a light border */
}

th {
    background-color: #f2f2f2; /* Light background for header */
}

.services-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 50px; /* Space between the grid and the text, adjust as needed */
}

.services-left {
    width: 40%;
}


.responsive-list {
    display: grid; /* Enable grid layout */
    grid-template-columns: 1fr 1fr; /* 2 columns on desktop */
    gap: 10px; /* Spacing between items */
    list-style-type: none; /* Remove bullet points */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margin */
}

.responsive-list li {
    font-size: clamp(16px, 1.3vw, 20px);
    padding-bottom: 0px;
}

/* Container for the grid and text */
.doctors-container, .allied-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 50px; /* Space between the grid and the text, adjust as needed */
    padding-top: 30px;
    padding-bottom: 30px;
}

/* 3x3 grid layout with fixed image sizes and tight grouping */
.doctors-grid, .allied-grid {
    display: grid;
    grid-template-columns: repeat(3, auto); /* Set grid to auto-width for each column */
    grid-gap: 40px; /* Space between images */
    justify-content: center; /* Keep the grid centered */
    width: auto; /* Adjust width to fit content */
    margin-right: 60px; /* Space from the text */
    padding-left: calc(50% - 450px);
}

/* Container for each image to handle the scaling */
.img-container, .allied-img-container {
    transition: transform 0.3s ease; /* Smooth scaling */
}

/* Style for each doctor image */
.doctors-grid img, .allied-grid img {
    width: auto; /* Keep width responsive */
    height: 120px; /* Fixed height for images */
    object-fit: cover; /* Ensure image fills without distortion */
    filter: grayscale(20%); /* Initially set to black and white */
    border-radius: 10px; /* Rounds the corners */
}

/* Enlarge the selected container (not the image) and restore color */
.img-container.selected, .allied-img-container.selected {
    transform: scale(1.4); /* Scale the entire container */
}

.img-container.selected img, .allied-img-container.selected img {
    filter: grayscale(0); /* Restore color */
}

/* Doctors' text box on the right */
.doctors-text, .allied-text {
    width: calc(50% - 100px); /* Set width to half of the parent minus some spacing */
    max-width: 100%; /* Ensure it doesn't exceed available width */
    padding: 0; /* Remove extra padding */
    text-align: justify;
    height: 100%;
    overflow-y: auto; /* Enable scrolling if content exceeds max-height */
}

.doctors-text h1, .allied-text h1 {
    margin-bottom: 10px;
}

.doctors-text h2, .allied-text h2 {
    margin-bottom: 40px; /* Space below the heading */
}

.doctors-text p, .allied-text p {
    margin-bottom: 20px; /* Space between paragraphs */
}

.news-container {
	width: 100%;
	overflow: hidden; /* hide scrollbars */
	position: relative;
}

.news-slider {
	display: flex;
	transition: transform 0.5s ease;
	will-change: transform;
}

.slide {
	min-width: 100%; /* show one slide at a time */
	padding: 20px;
	box-sizing: border-box;
	background: transparent;
	border: none;
	user-select: none;
}

.dot-container {
  text-align: center;
  margin-top: 20px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background-color: #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s;
}

.dot.active {
  background-color: #333; /* Highlighted color */
}

.polices-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap; /* Allow wrapping of children (if needed for responsiveness) */
}

.polices-left,
.polices-right {
    flex: 1; /* Ensure equal widths for both columns */
    width: 50%; /* Explicitly set width (optional with flexbox) */
    padding: 10px 30px 10px 30px; /* Add some spacing inside the divs */
}

.polices-right {
	padding-right: 0px;
}

#polices {
  padding-right: 6px; /* Creates space between content and scrollbar */
}

#polices p {
    margin-bottom: 20px; /* Space between paragraphs */
}

/* WebKit-based browsers */
#polices::-webkit-scrollbar {
  width: 3px;
}

#polices::-webkit-scrollbar-track {
  background: transparent;
}

#polices::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 10px;
}

/* Firefox */
#polices {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.4) transparent;
}

.polices-list {
    font-size: clamp(16px, 1.3vw, 20px);
    gap: 10px;
	list-style: none;
	padding-left: 0;
}

.polices-list li::after {
  content: "•"; /* Use your preferred bullet symbol */
  margin-left: 8px;
}

.polices-list ul {
	margin-bottom: 20px;
}

.acknowledgement {
  display: flex;
  gap: 20px;                   /* Space between image and text */
  justify-content: center;
  align-items: center;        /* Align them vertically */
  align-items: stretch;
}

.acknowledgement p {
	display: flex;
	text-align: center;
	height: 100%;
	margin-top: 20px;
}

.acknowledgement img {
  max-height: 50px;            /* Adjust to fit with text */
  width: auto;
}

@media (min-width: 768px) {
  .building-container {
    height: 16vh;
    overflow: hidden;
  }

  .building-container picture,
  .building-container img {
    height: 100%;
    width: auto;
    object-fit: cover;
    object-position: left;
    display: block;
  }
}

.building-container {
	position: absolute;
    bottom: 0;
  }

.address {
    font-size: 20px;
    text-align: right;
    position: absolute;
    bottom: 38px;
    right: 230px;
    right: clamp(40px, 12vw, 230px);
}

.address p {
    margin: 7px;
}


@media only screen and (max-width: 767px) {

    .header {
        margin: 0px;
        flex-direction: row;
        align-items: flex-start;
    }

    .menu-container {
        margin: 20px 0px 0px 10px;
        height: 30px;
        justify-content: left;
    }

    .logo-container {
        top: 10px;
        left: 10px;
    }

    .logo {
        max-width: 120px; /* Adjust the size of the logo */
    }

    .content-section h1 {
        font-size: 24px; 
    }

    .menu-bar {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust as needed */
        left: 130;
        background-color: #fff; /* Background color for the dropdown */
        width: 130px;
        border: 1px solid #ccc;
        z-index: 1000;
    }

    .menu-toggle {
        display: block;
        font-size: 18px;
        cursor: pointer;
    }

    .menu-bar.active {
        display: flex;
    }

    .menu {
        flex-direction: column;
    }

    .menu li {
        text-align: center;
        padding: 10px;
        font-size: 16px;
        height: 50px;
    }

    .booking-container {
        flex-direction: column;
        margin: 10px 20px 0px 0px;
        gap: 10px;
    }

    .online-bookings, .phone-container {
        display: block; /* Make both elements block-level to stack */
        width: 100%;    /* Ensure both take full width */
        text-align: left;
        margin-bottom: 10px; /* Add spacing between the two elements on mobile */
        font-size: 16px;
    }

    .online-bookings {
        margin: 0px;
    }

    .phone-container {
        margin-bottom: 0;
        padding-right: 0px;
        text-align: right;
    }

    .phone-container .material-icons {
        font-size: 16px;
    }

    .parent-container {
        overflow-y: auto; /* Enable vertical scrolling on parent-container */
        height: calc(100vh - 220px);
        width: 100%;      /* Ensure it takes the full width */
        margin: 0;  
        padding: 20px;   
    }

    .content-section {
        padding: 0px;
        text-align: center;
        max-height: 100%;
    }

    .content-section p {
        font-size: 18px;
    }

    .fees-container {
        flex-direction: column;
    }

    .responsive-list {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }

    .doctors-container, .allied-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding-top: 10px; /* Reduce top space */
    }

    .doctors-grid, .allied-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for mobile */
        padding-left: 0; /* Remove calc */
        margin: 0 auto;
    }

    .doctors-text, .allied-text {
        width: 100%;
        margin: 0;
        padding: 0 15px; /* Give some side spacing */
    }

    th, td {
        padding: 2px;
        font-size: 16px;
    }

    .building-container img {
        height: 80px;
    }

    .address {
        font-size: 12px;
        text-align: right;
        position: absolute;
        bottom: 9px;
        right: 20px;
    }
    
    .address p {
        margin: 5px;
    }
}


