@import url('https://fonts.googleapis.com/css2?family=Audiowide&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;700&display=swap');

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    min-height: 100vh;
    overflow-y: auto;
    position: relative;
    background-color: #f5f5f5; /* Fallback color */
}

.parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/knee-replacement-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* This is key for iOS */
    transform: translate3d(0,0,0); /* Forces hardware acceleration */
    -webkit-transform: translate3d(0,0,0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000;
    z-index: -1;
}


.footer-wrapper {
    margin-top: 125px;
    min-width: 100%;  /* Ensures the footer takes up the full width of the screen */
}

/* Sidebar Styling */
.sidebar {
    position: absolute; /* Sidebar remains absolute */
    top: 21%;
    left: 0;
    width: 380px; /* Original width */
    height: 710px; /* Original height */
    background-color: #fff;
    padding: 20px;
    transform: translateY(-50%);
    overflow-y: auto; /* Scrollable behavior when content exceeds */
    border-radius: 20px;
    box-shadow: 10px -10px 20px rgba(0, 0, 0, 0.75), 0 10px 20px rgba(0, 0, 0, 0.75);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-left: 50px;
    background: linear-gradient(135deg, #004c80 0%, #007bbf 100%);
    margin-top: 85px;
    
}

.circle-image {
    width: 220px;
    height: 220px;
    background-color: #007bbf;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 1.0);
    margin: 0 auto 20px auto;
    overflow: hidden;
    border: 4px solid white;
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    flex-grow: 1;
}

.sidebar ul li {
    padding: 15px;
    margin: 12px 0;
    background-color: white;
    color: #001F62;
    cursor: pointer;
    border-radius: 12px;
    text-align: left;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    padding-left: 30px;
    font-family: 'Outfit', sans-serif;
}

.sidebar ul li i {
    position: absolute;
    left: 10px;
    font-size: 18px;
    color: #001F62;
}

.sidebar ul li.active {
    background-color: #001F62;
    color: white;
    font-weight: bold;
}

.sidebar ul li.active i {
    color: white;
}

.sidebar ul li:hover {
    background-color: #001F62;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: white;
}

.sidebar ul li:hover i {
    color: white;
}

/* Main Content Styling */
.main-content {
    margin-left: 500px;
    padding: 20px;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: -10px -10px 20px rgba(0, 0, 0, 0.75), 0 10px 20px rgba(0, 0, 0, 0.75);
    height: 96vh; /* Let the content determine the height */
    width: 64%;
    margin-bottom: 30px; /* Space between the main content and footer */
    overflow-y: auto;
    margin-top: 14vh;
    border-radius: 20px;
    margin-bottom: 100px;
}

.main-content h1 {
    font-size: 32px;
    color: #001F62;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-family: "Audiowide", system-ui;
}

.main-content ul {
    padding-left: 20px;
}

.main-content ul li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.main-content p {
    margin-bottom: 20px;
    font-size: 18px;
    line-height: 2.0;
    font-family: 'Outfit', sans-serif;
}

/* FAQ Section */
.faq-section h3 {
    cursor: pointer;
    background: #001F62;
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 5px;
    margin: 5px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Outfit', sans-serif;
}

.faq-section h3:hover {
    background: #001F62;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 1.0);
}

.faq-section h3 i {
    transition: transform 0.3s ease;
}

.faq-section p {
    max-height: 0;
    overflow: hidden;
    background: #f0f7fa;
    margin: 0;
    border-left: 4px solid #001F62;
    padding-left: 15px;
    font-size: 18px;
    line-height: 2.3;
    transition: max-height 0.5s ease-out;
    font-family: 'Outfit', sans-serif;
}

.faq-section h3.active + p {
    max-height: 200px;
}

.faq-section h3.active i {
    transform: rotate(90deg);
}

/* Menu Styles */
.menu {
    position: relative;
    display: inline-block;
}

.menu .dropdown-menu {
    position: absolute;
    right: 0;
    top: 40px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 250px;
    z-index: 9999;
    display: none; /* Initially hidden */
}

.menu .dropdown-menu.show {
    display: block !important;
}

.menu .dropdown-item {
    padding: 10px 20px;
    color: #001F62;
    text-decoration: none;
    display: block;
}

.menu .dropdown-item:hover {
    background-color: #eaebec;
    color: #000000;
}

.menu .navbar-toggler {
    background-color: transparent;
    border: none;
    color: #001F62;
    font-size: 24px;
    cursor: pointer;
}

/* Forcefully making sure the dropdown is fully visible */
.menu .dropdown-menu {
    max-width: 250px !important;
    left: auto !important;
    right: auto !important;
    top: 100% !important;
    transform: translateX(0%) !important;
}

.dropdown-item {
    text-align: left;
    font-size: 16px;
}

/* Mobile Menu Adjustments */
@media (max-width: 768px) {

    .parallax-bg {
        background-image: url('../img/gallery-mobile-bg.jpeg');
        position: fixed;
        background-attachment: scroll; /* Changes to scroll for mobile */
        transform: none;
        height: 100vh;
    }
    /* Menu Styles */
.menu {
    position: relative;
    display: inline-block;
}

.menu .dropdown-menu {
    position: absolute;
    right: 0;
    top: 40px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 9999;
    display: none; /* Initially hidden */
}

.menu .dropdown-menu.show {
    display: block !important;
}

.menu .dropdown-item {
    padding: 10px 20px;
    color: #001F62;
    text-decoration: none;
    display: block;
}

.menu .dropdown-item:hover {
    background-color: #001F62;
    color: #fff;
}

.menu .navbar-toggler {
    background-color: transparent;
    border: none;
    color: #001F62;
    font-size: 24px;
    cursor: pointer;
}

/* Forcefully making sure the dropdown is fully visible */
.menu .dropdown-menu {
    max-width: 250px !important;
    left: auto !important;
    right: auto !important;
    top: 100% !important;
    transform: translateX(0%) !important;
}

.dropdown-item {
    text-align: left;
    font-size: 16px;
}
}

/* Additional mobile adjustments */
@media (max-width: 480px) {

    .parallax-bg {
        background-image: url('../img/gallery-mobile-bg.jpeg');
        position: fixed;
        background-attachment: scroll; /* Changes to scroll for mobile */
        transform: none;
        height: 100vh;
    }

    /* Menu Styles */
.menu {
    position: relative;
    display: inline-block;
}

.menu .dropdown-menu {
    position: absolute;
    right: 0;
    top: 40px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 9999;
    display: none; /* Initially hidden */
}

.menu .dropdown-menu.show {
    display: block !important;
}

.menu .dropdown-item {
    padding: 10px 20px;
    color: #001F62;
    text-decoration: none;
    display: block;
}

.menu .dropdown-item:hover {
    background-color: #001F62;
    color: #fff;
}

.menu .navbar-toggler {
    background-color: transparent;
    border: none;
    color: #001F62;
    font-size: 24px;
    cursor: pointer;
}

/* Forcefully making sure the dropdown is fully visible */
.menu .dropdown-menu {
    max-width: 250px !important;
    left: auto !important;
    right: auto !important;
    top: 100% !important;
    transform: translateX(0%) !important;
}

.dropdown-item {
    text-align: left;
    font-size: 16px;
}
}

/* Tablet View (Max-width: 768px) */
@media (max-width: 768px) {
    .parallax-bg {
        background-image: url('../img/gallery-mobile-bg.jpeg');
        position: fixed;
        background-attachment: scroll; /* Changes to scroll for mobile */
        transform: none;
        height: 100vh;
    }

    .sidebar {
        position: relative;
        width: 90% !important;
        height: auto;
        margin-left: 0;
        top: 0;
        transform: none;
        box-shadow: none;
        margin-bottom: 20px;
        margin-top: 90px;
        margin-left: 5% !important;
        
    }

    .main-content {
        margin-left: 0;
        width: 90% !important;
        height: auto;
        margin-top: 0;
        padding-top: 0;
        margin-left: 5% !important;
    }

    .circle-image {
        width: 150px;
        height: 150px;
        margin: 0 auto 10px auto;
    }

    .sidebar ul li {
        font-size: 14px;
    }

    .main-content h1 {
        font-size: 22px;
    }

    .main-content p, .main-content ul li {
        font-size: 16px;
    }

    /* Menu Styles */
.menu {
    position: relative;
    display: inline-block;
}

.menu .dropdown-menu {
    position: absolute;
    right: 0;
    top: 40px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 9999;
    display: none; /* Initially hidden */
}

.menu .dropdown-menu.show {
    display: block !important;
}

.menu .dropdown-item {
    padding: 10px 20px;
    color: #001F62;
    text-decoration: none;
    display: block;
}

.menu .dropdown-item:hover {
    background-color: #001F62;
    color: #fff;
}

.menu .navbar-toggler {
    background-color: transparent;
    border: none;
    color: #001F62;
    font-size: 24px;
    cursor: pointer;
}

/* Forcefully making sure the dropdown is fully visible */
.menu .dropdown-menu {
    max-width: 250px !important;
    left: auto !important;
    right: auto !important;
    top: 100% !important;
    transform: translateX(0%) !important;
}

.dropdown-item {
    text-align: left;
    font-size: 16px;
}
}

/* Mobile View (Max-width: 560px) */
@media (max-width: 560px) {
    .parallax-bg {
        background-image: url('../img/gallery-mobile-bg.jpeg');
        position: fixed;
        background-attachment: scroll; /* Changes to scroll for mobile */
        transform: none;
        height: 100vh;
    }

    .sidebar {
        width: 100%;
        height: auto;
        margin-left: 0;
        top: 0;
        transform: none;
        margin-bottom: 20px;
        margin-top: 70px;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        height: auto;
        margin-top: 0;
        padding-top: 0;
    }

    .circle-image {
        width: 110px;
        height: 110px;
        margin: 0 auto 10px auto;
    }

    .sidebar ul li {
        font-size: 12px;
    }

    .main-content h1 {
        margin-top: 15px;
        font-size: 20px;
    }

    .main-content p, .main-content ul li {
        font-size: 14px;
    }
    /* Menu Styles */
.menu {
    position: relative;
    display: inline-block;
}

.menu .dropdown-menu {
    position: absolute;
    right: 0;
    top: 40px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 200px;
    z-index: 9999;
    display: none; /* Initially hidden */
}

.menu .dropdown-menu.show {
    display: block !important;
}

.menu .dropdown-item {
    padding: 10px 20px;
    color: #001F62;
    text-decoration: none;
    display: block;
}

.menu .dropdown-item:hover {
    background-color: #001F62;
    color: #fff;
}

.menu .navbar-toggler {
    background-color: transparent;
    border: none;
    color: #001F62;
    font-size: 24px;
    cursor: pointer;
}

/* Forcefully making sure the dropdown is fully visible */
.menu .dropdown-menu {
    max-width: 250px !important;
    left: auto !important;
    right: auto !important;
    top: 100% !important;
    transform: translateX(0%) !important;
}

.dropdown-item {
    text-align: left;
    font-size: 16px;
}

.footer-wrapper {
    margin-top: 0;
} 

}

/* Mobile Menu Adjustments */
@media (min-width: 1024px) {
    .footer-wrapper {
        width: 205vh;  /* Ensures the footer takes up the full width of the screen */
        margin-top: 150px;
        padding-left: 0;
        padding-right: 0;
    }    
}


@media (min-width: 2560px) {
    body {
        min-height: 100vh; /* Increase body height for larger screens */
        background-size: cover; /* Ensure background image covers the entire screen */
    }

    .sidebar {
        width: 500px; /* Increase sidebar width */
        height: 800px; /* Increase sidebar height */
        margin-left: 80px; /* Increase sidebar margin */
        box-shadow: 15px -15px 30px rgba(0, 0, 0, 0.75), 0 15px 30px rgba(0, 0, 0, 0.75); /* Enhance shadow */
    }

    .circle-image {
        width: 300px; /* Increase circle image size */
        height: 300px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 1.0); /* Increase shadow */
    }

    .sidebar ul li {
        font-size: 22px; /* Increase sidebar list item text size */
        padding: 20px 40px; /* Increase padding */
    }

    .sidebar ul li i {
        font-size: 22px; /* Increase icon size */
    }

    .main-content {
        width: 80%; /* Increase width of the main content */
        margin-left: 600px; /* Adjust margin for larger screen */
        height: 68vh; /* Let content determine height */
        padding: 40px; /* Increase padding */
    }

    .main-content h1 {
        font-size: 50px; /* Increase heading font size */
        margin-bottom: 40px; /* Increase space below heading */
    }

    .main-content p, .main-content ul li {
        font-size: 40px; /* Increase font size of paragraphs and list items */
        line-height: 2.2; /* Increase line height for readability */
    }

    .faq-section h3 {
        font-size: 30px; /* Increase FAQ heading size */
        padding: 20px; /* Increase padding inside FAQ headings */
    }

    .faq-section p {
        font-size: 30px; /* Increase FAQ content size */
        padding-left: 30px; /* Increase left padding */
        line-height: 2.5; /* Increase line height */
    }

    .footer-wrapper {
        width: 200vh; /* Ensure footer takes full width */
        padding: 50px 0; /* Increase padding for larger footer */
        margin-top: 150px; /* Increase margin above footer */
    }
    .dropdown-menu {
        width: 550px !important; /* Increase dropdown menu width */
        padding: 20px; /* Increase padding inside the dropdown */
    }
}

/* iOS specific fix */
@supports (-webkit-touch-callout: none) {
    .parallax-bg {
        background-attachment: scroll;
        position: fixed;
        transform: none;
    }
}