/* Base Styles */
body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    background-image: url('images/background3.jpg');
    background-size: contain;
}

.container {
    width: 90%;
    margin: 0 auto;
    max-width: 1200px;
    text-align: center;
}

.navbar {
    background-color: #1c3a57;
    padding: 0.1em 0;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar img {
    border-radius: 10px;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
    padding: 0;
    margin: 0;
    align-items: center;
    flex-wrap: wrap;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a, .dropbtn {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: color 0.3s ease;
    padding: 0.5em 0;
    line-height: 1.5;
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

.navbar ul li a:hover, .dropbtn:hover, .dropdown-content a:hover, .side-dropdown a:hover {
    color: black;
    background-color: white;
    border-radius: 8px;
    padding: 0.5em 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Dropdown About Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f5f7fa;
    min-width: 160px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
    top: 100%;
    left: 0;
    border-radius: 8px;
}

.dropdown-content a:hover,
.side-dropdown a:hover,
.dropdown:hover .dropbtn {
    color: black;
    background-color: white;
    border-radius: 8px;
    padding: 0.5em 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 600;
    font-size: 1em;
    transition: background-color 0.3s ease;
    border-radius: 8px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    background-color: white;
    color: black;
    border-radius: 8px;
    padding: 0.5em 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.dropdown-item-wrapper {
    position: relative;
}

.dropdown-item-wrapper:hover .side-dropdown {
    display: block;
}

.side-dropdown {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 0;
    background-color: #f5f7fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
    display: none;
    white-space: nowrap;
}

.side-dropdown a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-weight: 600;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.dropdown-content a:hover,
.side-dropdown a:hover {
    color: #f5f7fa;
    background-color: #1c3a57;
    border-radius: 8px;
    padding: 0.5em 1em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#drSasseLink:hover,
#drRembetskiLink:hover,
.side-dropdown:hover {
    background-color: #1c3a57;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: url('images/building.jpg') no-repeat center center/cover;
    color: white;
    padding: 150px 0;
    text-align: center;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.3),
       -1px -1px 2px rgba(0, 0, 0, 0.3),
        1px -1px 2px rgba(0, 0, 0, 0.3),
       -1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-section p {
    font-size: 1.5em;
    margin-bottom: 30px;
}

.hero-section button {
    background-color: #007acc;
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.hero-section button:hover {
    background-color: #005b99;
}

/* Introduction Section */
.introduction {
    padding: 50px 0;
    text-align: center;
}

.introduction h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.introduction p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.introduction button {
    background-color: #1c3a57;
    color: white;
    padding: 10px 20px;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.introduction button:hover {
    background-color: #333a57;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 50px;
}

.grid > :nth-child(1):nth-last-child(odd),
.grid > :nth-child(2):nth-last-child(odd) ~ :nth-child(1) {
    grid-column: span 1;
    justify-self: center;
}

/* grid 3 layout */
.grid-3 {
    display: grid;
    /* 3 columns*/
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px;
}

.proceduresGrid {
    display: grid;
    /* 1 column*/
    grid-template-columns: 100%;
    gap: 30px;
    margin: 50px;
}

.preSurgeryHeader {
    display: grid;
    /* 2 column*/
    grid-template-columns: 35% 65%;
    gap: 0px;
    margin: 50px;
}

.deviceGrid {
    display: grid;
    /* 2 column*/
    grid-template-columns: 50% 50%;
    gap: 0px;
    margin: 50px;
}

/* Card Styles */
.card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.card h3 {
    margin-top: 0;
    font-size: 1.8em;
    color: #007acc;
}

.card p {
    margin-bottom: 20px;
}

.expectations {
    padding: 10px;
    background-color: #1c3a57a4;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 10px;
}

.expectations p {
    text-align: left;
}

.expectations button {
    background-color: #1c3a57;
    color: white;
    padding: 10px;
    border: none;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.expectations button:hover {
    background-color: #005b99;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.expectations button:active {
    background-color: #003f6b;
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.proceduresCard {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.proceduresCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.proceduresCard h3 {
    margin-top: 0;
    font-size: 1.8em;
    color: #007acc;
}

.proceduresCard p {
    margin-bottom: 20px;
}

.preSurgeryCard {
    background: rgba(255, 255, 255, 0);
    text-align: left;
    padding-left: 10px;
    box-shadow: 0 0px 8px rgba(0, 0, 0, 0.1);
}

.preSurgeryCard h3 {
    margin-top: 0;
    font-size: 1.8em;
    color: #007acc;
}

.preSurgeryCard p {
    margin-bottom: 20px;
}

.preSurgeryCard img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.preSurgeryCard2 {
    background: rgba(255, 255, 255, 0);
    text-align: left;
    padding-left: 10px;
    margin-right: 10px;
}

.preSurgeryCard2 h3 {
    margin-top: 0;
    font-size: 1.8em;
    color: #007acc;
}

.preSurgeryCard2 p {
    background: rgba(65, 105, 225, 0.514);
    margin-bottom: 20px;
    border-radius: 10px;
    padding: 10px;
}

.preSurgeryCard2 img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.deviceCard {
    background: rgba(255, 255, 255, 0);
    text-align: left;
    padding-left: 10px;
}

.deviceCard h3 {
    margin-top: 0;
    font-size: 1.8em;
    color: #007acc;
    text-align: center;
}

.deviceCard p {
    margin-bottom: 20px;
}

.deviceCard img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* News Section */
.news {
    padding: 60px 0;
    background-color: #f7fafc;
    text-align: center;
}

.news h2 {
    font-size: 2.5em;
    color: #007acc;
    margin-bottom: 40px;
}

.news-item {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #fff;
    border-left: 6px solid #007acc;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.news-item h3 {
    font-size: 1.8em;
    color: #005b99;
    margin-bottom: 10px;
}

.news-item p {
    margin-bottom: 15px;
    color: #555;
}

.news-item a {
    color: #007acc;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.news-item a:hover {
    color: #005b99;
    text-decoration: underline;
}

/* About Section */
.about {
    padding: 60px 0;
}

.about h2 {
    font-size: 2.5em;
    color: #007acc;
    margin-bottom: 20px;
}

.about p {
    font-size: 1.2em;
    margin-bottom: 15px;
}

/* Privacy Section */
.privacy {
    padding: 60px 0;
}

.privacy h2 {
    font-size: 2.5em;
    color: #007acc;
    margin-bottom: 20px;
}

.privacy p {
    font-size: 1.2em;
    margin-bottom: 15px;
    text-align: left;
}

/* Surgeons Section */
.surgeons {
    padding: 60px 0;
    background-color: #f7fafcb6;
}

.surgeons h2 {
    font-size: 2.5em;
    color: #555;
    margin-bottom: 40px;
    text-align: center;
}

.surgeon-profile {
    display: flex;
    align-items: center;
    margin: 20px;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.surgeon-profile img {
    border-radius: 50%;
    margin-right: 20px;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

.surgeon-profile button {
    background-color: #1c3a57;
    color: white;
    padding: 12px 25px;
    border: none;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.surgeon-profile button:hover {
    background-color: #005b99;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.surgeon-profile button:active {
    background-color: #003f6b;
    transform: translateY(1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.surgeon-info h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #333;
}

.surgeon-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #555;
}

.surgery-info-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.surgery-info-wrapper > div {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    flex: 1;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-title {
    font-size: 2em;
    color: #007acc;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding-bottom: 10px;
}

/* Section Headings */
.surgery-info-wrapper h2,
.surgery-expectations h2 {
    font-size: 2em;
    color: #007acc;
    margin-bottom: 20px;
    text-align: center;
}

/* Overview Paragraph */
.surgery-overview p {
    font-size: 1.1em;
    text-align: justify;
    margin-bottom: 0;
}

/* Statistics List */
.surgery-stats {
    text-align: left;
}

.surgery-stats h3 {
    color: #007acc;
    margin-top: 20px;
    margin-bottom: 10px;
}

.surgery-stats ul {
    list-style: none;
    padding: 0;
}

.surgery-stats ul li {
    font-size: 1.1em;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    text-align: left;
}

.surgery-stats ul li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: #007acc;
    font-size: 1.5em;
    line-height: 1;
}

/* What to Expect Section */
.surgery-expectations {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.surgery-expectations h3 {
    font-size: 1.5em;
    color: #007acc;
    margin-top: 20px;
    margin-bottom: 10px;
}

.surgery-expectations p {
    font-size: 1.1em;
    text-align: justify;
    margin-bottom: 10px;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Contact details section */
.contact-details {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

/* Map section */
.map {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    margin-bottom: 40px;
}

/* Map container to ensure it fits within the section */
.map-container iframe {
    width: 100%;
    height: 450px;
    border: 0;
}

/* Contact Form Section */
.contact-form {
    padding: 60px 20px;
    background-color: #f7fafc;
    border: 2px solid #007acc;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.contact-form h2 {
    font-size: 2.5em;
    color: #007acc;
    margin-bottom: 20px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-size: 1.2em;
    margin-bottom: 5px;
    text-align: left;
}

.contact-form input,
.contact-form textarea {
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1.1em;
}

.contact-form button {
    background-color: #007acc;
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.contact-form button:hover {
    background-color: #005b99;
}

/* Map Section */
.map {
    padding: 20px 0 0 0;
}

.map h2 {
    font-size: 2.5em;
    color: #007acc;
    margin-bottom: 20px;
}

.map-container {
    border: 2px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

/* Styling for the pictures section */
.pictures {
    padding: 40px 0;
}

.pictures h2 {
    font-size: 2.5em;
    color: #007acc;
    text-align: center;
    margin-bottom: 30px;
}

/* Grid layout for the images */
.picture-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.picture-item {
    position: relative;
    overflow: hidden;
}

.picture-wrapper img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.picture-wrapper img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Sacral Nerve Modulation Section */
.sacral-nerve-modulation {
    padding: 30px 0;
    margin-bottom: 20px;
    background-color: #e8f1f8af;
    text-align: left;
    border-top: 4px solid #007acc;
    border-bottom: 4px solid #007acc;
    padding-left: 20px;
    padding-right: 20px;
}

.sacral-nerve-modulation h1 {
    font-size: 2.5em;
    color: #007acc;
    margin-bottom: 30px;
    text-align: center;
}

.sacral-nerve-modulation h2 {
    font-size: 2em;
    color: #007acc;
    margin-bottom: 30px;
}

.sacral-nerve-modulation p {
    font-size: 1.2em;
    margin-bottom: 20px;
}

.ways-to-get-started-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px;
}

.ways-to-get-started-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ways-to-get-started-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.ways-to-get-started h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #007acc;
    text-align: center;
}

.ways-to-get-started-card h3 {
    margin-top: 0;
    font-size: 1.5em;
    color: #007acc;
}

.ways-to-get-started-card p {
    margin-bottom: 20px;
}

.ways-to-get-started-card button {
    background-color: #1c3a57;
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.ways-to-get-started-card button:hover {
    background-color: #005b99;
}

/* Contact for Appointment Section */
.contact-for-appointment h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #007acc;
    text-align: center;
}

.contact-for-appointment h3 {
    margin-top: 0;
    color: #007acc;
}

.contact-for-appointment p {
    margin-bottom: 20px;
}

.contact-for-appointment button {
    background-color: #1c3a57;
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 1.2em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

.contact-for-appointment button:hover {
    background-color: #005b99;
}

/* Overlay styling */
.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.2em;
    border-radius: 0 0 8px 8px;
}

.picture-item:hover .overlay {
    opacity: 1;
}

/* Acreditations Section */
.acreditations {
    text-align: center; /* Centers the heading text */
}
  
.acreditations .images-row {
    display: flex;
    justify-content: center; /* Centers the images horizontally */
    gap: 10px; /* Adds space between the images */
    flex-wrap: wrap; /* Allows wrapping for small screens if needed */
}
  
.acreditations img {
    height: auto;
    max-height: 150px; /* Sets the maximum height of the images */
    margin: 10px;
}

/* Footer Section */
.footer {
    background-color: #1c3a57;
    padding: 20px 0;
    text-align: center;
    color: white;
}

.footer p {
    margin: 0;
    font-size: 1.1em;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
}

.footer ul li {
    margin: 0 15px;
}

.footer ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #f5f7fa;
}

.testimonial-container {
    width: 100%;
    max-width: 1000px;
    margin: 50px auto;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

.testimonial-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
}

.testimonial {
    flex: 1;
    text-align: center;
    padding: 10px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 100%;
}

.testimonial p {
    font-size: 1.5em;
    margin-bottom: 15px;
    padding-left: 20px;
    padding-right: 20px;
}

.testimonial .author {
    font-weight: bold;
    color: #333;
}

/* Style for the navigation dots */
.dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    height: 12px;
    width: 12px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: #333;
    transform: scale(1.3);
}

/* Responsive Design Media Queries */
@media screen and (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .navbar ul {
        flex-direction: column;
    }

    .navbar ul li {
        margin: 10px 0;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-details, .contact-form {
        min-width: 100%;
    }

    .picture-wrapper {
        grid-template-columns: 1fr;
    }

    .surgery-info-wrapper {
        flex-direction: column;
    }
}

@media screen and (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .hero-section p {
        font-size: 0.9rem;
    }

    .container {
        width: 95%;
    }

    .navbar ul {
        flex-direction: column;
        align-items: flex-start;
    }
}
