body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.carousel-container2 h1 {
    font-size: 55px;
    font-family: 'Playfair Display', serif;
    color: #b68a3d;
    justify-content: center;
    text-align: center;

}

.link-inheritance {
  text-decoration: none;
  color: inherit;
}


header {
    background-color: #1d2b40;
    padding: 20px;

}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.logo {
    font-family: 'Playfair Display', serif;
    color: #d4a259;
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-grow: 1;
}

.nav-links li {
    position: relative;
    margin-left: 50px;
}

.nav-links li a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
}

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

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    background-color: #1d2b40;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: 0.4s;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 43px;
        background-color: #1d2b40;
    }

    .nav-links li {
        text-align: center;
        margin: 0;
    }

    .nav-links li a {
        padding: 5px;
        width: 100%;
        display: block;
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .dropdown-content {
        position: static;
        background-color: #1d2b40;
    }
}

.header-image {
    background-image: url('about1.jpg');
    background-size: cover;
    background-position: center;
    height: 500px;
    position: relative;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    z-index: 1;
    /* align-items: center; */

}

.header-image h1 {
    font-size: 64px;
    margin-right: 900px;
    margin-top: 400px;
}

.history-section {
    padding: 20px;

}

.history-section h2 {
    color: #b68a3d;
    font-size: 55px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    padding-left: 20px;
}

.history-section .section-title {
    color: #003366;
    font-size: 32px;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    padding-left: 20px;
}

.history-section .section-content {
    margin-bottom: 20px;
    font-size: 22px;
    padding-left: 20px;
    padding-top: 10px;
    line-height: 1.5;

}

.why-choose-us {
    padding: 20px;
}

.why-choose-us h2 {
    color: #b68a3d;
    font-size: 55px;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Playfair Display', serif;
    padding-left: 20px;
}

.why-choose-us p {
    margin-bottom: 20px;
    font-size: 22px;
    padding-left: 20px;
    line-height: 1.5;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.feature {
    flex: 1 1 calc(33.333% - 20px);
    text-align: center;
    margin-top: 50px;
}

.feature img {
    width: 150px;

    height: 150px;
    border-radius: 50%;

}

.feature h3 {
    color: #0a2533;
    font-size: 22px;
    margin-top: 10px;
}

.container {
    background-color: #d4ac70;

}

/* .our-lawyers {
    padding: 20px;
    text-align: center;
}

.our-lawyers h2 {
    color: #b68a3d;
    font-size: 2em;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
    padding-left: 20px;
}

.our-lawyers p {
    margin-bottom: 20px;
    padding-left: 20px;
}

.lawyers {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.lawyer {
    text-align: center;
    padding-left: 20px;
}

.lawyer-photo {
    width: 150px;
    height: 150px;
    background-color: #ccc;
    border-radius: 50%;
    margin: 0 auto 10px auto;
} */
.carousel-container2 {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-top: 30px;
    margin-bottom: 30px;
}

.carousel2 {
    display: flex;
    overflow: hidden;
    width: 100%;
    height: 400px;
    background-color: #f4f7f9;
}

@media(max-width:400px) {
    .carousel2 {
        height: 250px;
    }
}

.carousel-track2 {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    /* Ensure the track spans the full width */
}

.carousel-item2 {
    min-width: 300px;
    margin: 40px 10px;
    text-align: center;
}

@media(max-width:400px) {
    .carousel-item2 {
        margin-left: -85px;
        margin-right: -10px;
        min-width: 200px;
        margin-top: 20px;
    }
}

.doctor-photo {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media(max-width:400px) {
    .doctor-photo {
        width: 150px;
        height: 150px;
    }
}

.doctor-photo img {
    width: 100%;
    height: 100%;
    object-fit: inherit;
}

.doctor-info {
    margin-top: 10px;
}

.doctor-name {
    font-weight: bold;
    margin: 0;
    color: #0a2533;
}

@media(max-width:400px) {
    .doctor-name {
        font-size: 12px;
    }
}

.doctor-designation {
    color: #888;
    margin: 5px 0 0;
    color: #000000;
}

@media(max-width:400px) {
    .doctor-designation {
        font-size: 12px;
    }
}

/* Add a keyframe animation for infinite scrolling */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Adding animation to the carousel */
.carousel-track2 {
    display: flex;
    width: calc(12 * 200px);
    animation: scroll 30s linear infinite;
}

@media(max-width:400px) {
    .carousel-track2 {
        animation: scroll 30s linear infinite;
    }
}

@media(max-width:400px) {
    .footer-bottom {
        display: block;
    }
}

.testimonials {
    text-align: center;
    background-color: #0a2533;
    color: white;
    padding: 50px 0;
}

.testimonials h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: #C59545;
}

.testimonials p {
    font-size: 22px;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.testimonial {
    background: white;
    color: #0a2533;
    padding: 20px;
    border-radius: 10px;
    width: 500px;
}

.stars {
    color: gold;
    font-size: 1.5em;
    margin-bottom: 10px;
}

.follow-us {
    text-align: center;
    padding: 30px 0;
}

.follow-us .social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.follow-us .social-icons a {
    display: inline-block;
}

.follow-us .social-icons img {
    max-width: 100%;
    height: auto;
}



.footer {
    background-color: #1b2a3c;
    padding: 20px 0;
    padding-bottom: 0px;
    text-align: center;
    color: white;
    font-family: 'Arial', sans-serif;
}

.footer nav {
    margin-bottom: 10px;
    justify-content: center;
}

.footer nav a {
    margin: 0 15px;
    text-decoration: none;
    color: white;
    font-size: 16px;
    letter-spacing: 1px;
}

.footer .social-icons {
    margin-bottom: 10px;
    text-align: center;
}

.footer .social-icons a {
    margin: 0 10px;
    color: white;
    font-size: 20px;
}

.footer p {
    margin: 5px 0;
    font-size: 14px;
    text-align: center;
}


@media (max-width: 480px) {

    .hero {
        padding: 20px 10px;
        text-align: center;
        height: 200px;
    }

    .header-image {
        background-image: url(about1.jpg);
        background-size: cover;
        background-position: center;
        height: 200px;
        position: relative;
        color: white;
        text-align: center;
        display: flex;
        justify-content: center;
        /* align-items: center; */
    }

    .history-section h2,
    .why-choose-us h2,
    .our-lawyers h2,
    .testimonials h2 {
        font-size: 32px;
    }

    .history-section .section-content,
    .why-choose-us p,
    .testimonials p {
        font-size: 16px;
        font-style: Roboto, sans-serif;
    }

    .history-section .section-title {
        color: #003366;
        font-size: 24px;
        margin-bottom: 10px;
        font-family: 'Playfair Display', serif;
        padding-left: 20px;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .features {
        flex-direction: row;
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
    }

    .lawyers {
        flex-direction: column;
        align-items: center;
    }

    .feature img {
        width: 100px;
        height: 100px;
        margin-left: 35px;
        margin-top: -24px;
        border-radius: 50%;
    }

    .feature h3 {
        color: #0a2533;
        font-size: 21px;
        margin-left: 1px;
        text-align: center;
        margin-top: 18px;
    }

    .feature img {
        width: 100px;
        height: 100px;
        margin-left: 0px;
        margin-top: -24px;
        border-radius: 50%;
    }

    .carousel-container2 h1 {
        font-size: 32px;
        font-family: 'Playfair Display', serif;
        color: #b68a3d;
        margin-top: 0px;
        justify-content: center;

    }

    .carousel2 {
        display: flex;
        overflow: hidden;
        width: 100%;
        height: 350px;
        background-color: #f4f7f9;
    }

    .carousel-item2 {
        min-width: 156px;
        margin: 40px 10px;
        text-align: center;
    }

    .doctor-photo {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        overflow: hidden;
        margin: 0 auto;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .footer {
        flex-direction: row;
        text-align: center;
    }

    .footer .social-icons {
        margin-bottom: 10px;
        justify-content: center;
        text-align: center;
    }

    .footer p {
        margin: 5px 0;
        font-size: 14px;
        text-align: center;
    }

    .footer nav {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        overflow-x: hidden;
    }

    .footer nav a {
        margin: 3px 9px;
        text-decoration: none;
        color: white;
        font-size: 12px;
        letter-spacing: 1px;
    }

    .footer .left,
    .footer .center,
    .footer .right {
        margin-bottom: 10px;
    }
}

@media (min-width: 601px) and (max-width: 992px) {
    header h1 {
        font-size: 24px;
    }

    nav ul {
        flex-direction: row;
        /* justify-content: space-around; */
    }

    .hero {
        padding: 40px 20px;
    }

    .history-section h2,
    .why-choose-us h2,
    .our-lawyers h2,
    .testimonials h2 {
        font-size: 36px;
    }

    .history-section .section-content,
    .why-choose-us p,
    .testimonials p {
        font-size: 20px;
    }

    .features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .feature {
        flex: 1 1 45%;
        max-width: 45%;
    }

    .lawyers {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .testimonial {
        width: 45%;
        max-width: 45%;
    }

    .footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 1rem;
    }

    .navbar .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: lightblue;
        /* Ensure the background color matches the navbar */
        padding: 0;
    }

    .navbar .menu.show {
        display: flex;
    }

    .navbar .menu-container {
        align-self: flex-end;
    }

    .navbar .menu-button {
        display: block;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 1rem;
    }

    .navbar .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: lightblue;
        /* Ensure the background color matches the navbar */
        padding: 0;
    }

    .navbar .menu.show {
        display: flex;
    }

    .navbar .menu-container {
        align-self: flex-end;
    }

    .navbar .menu-button {
        display: block;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 1rem;
    }

    .navbar .menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #1d2b40;
        padding: 0;
    }

    .navbar .menu.show {
        display: flex;
    }

    .navbar .menu-container {
        align-self: flex-end;
    }

    .navbar .menu-button {
        display: block;
    }

    .logo {
        margin-left: 0;
        font-size: 20px;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li {
        margin-left: 0;
        margin-bottom: 10px;
    }

    header {
        padding: 10px;
    }

    nav {
        flex-direction: row;
        align-items: center;
    }

    nav ul li a {
        font-size: 1rem;
    }


    nav ul {
        flex-direction: column;
        align-items: center;
    }

    nav ul li {
        margin: 5px 0;
        font-size: 1rem;
    }

    .hero {
        padding: 20px 10px;
        text-align: center;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }

    .feature {
        flex: 1 1 100%;
    }

    .lawyers {
        flex-direction: column;
        align-items: center;
    }

    .testimonial {
        width: 100%;
        max-width: 300px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer .left,
    .footer .center,
    .footer .right {
        margin-bottom: 10px;
    }

    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }

    header h1 {
        font-size: 24px;
    }

    .testimonial {
        max-width: 130px;

    }

    .footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
} */

/* nav ul li {
    margin-left: 20px;
} */


@media (min-width: 600px) and (max-width: 767px) {
    .header-image {
        background-image: url(about1.jpg);
        background-size: cover;
        background-position: center;
        height: 300px;
        position: relative;
        color: white;
        text-align: center;
        display: flex;
        justify-content: center;
        /* align-items: center; */
    }

    .history-section .section-content {
        margin-bottom: 20px;
        font-size: 16px;
        padding-left: 20px;
        padding-top: 10px;
    }

    .history-section h2 {
        color: #b68a3d;
        font-size: 36px;
        text-align: center;
        margin-top: 10px;
        margin-bottom: 20px;
        font-family: 'Playfair Display', serif;
        padding-left: 20px;
    }

    .history-section .section-title {
        color: #003366;
        font-size: 28px;
        margin-bottom: 10px;
        font-family: 'Playfair Display', serif;
        padding-left: 20px;
    }

    .why-choose-us h2 {
        color: #b68a3d;
        font-size: 36px;
        margin-bottom: 10px;
        text-align: center;
        font-family: 'Playfair Display', serif;
        padding-left: 20px;
    }

    .why-choose-us p {
        margin-bottom: 20px;
        font-size: 16px;
        padding-left: 20px;
    }

    .carousel-container2 h1 {
        font-size: 36px;
        font-family: 'Playfair Display', serif;
        color: #b68a3d;
        justify-content: center;
        margin-left: 20px;
        text-align: center;
    }


    .hero {
        padding: 40px 20px;
    }

    .features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .feature {
        flex: 1 1 45%;
        max-width: 45%;
    }

    .feature h3 {
        color: #0a2533;
        font-size: 16px;
        margin-top: 10px;
    }

    .feature img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
    }

    .lawyers {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .testimonial {
        width: 45%;
        max-width: 45%;
    }

    .footer {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        text-align: center;
    }

    .footer nav {
        margin-bottom: 10px;
        flex-direction: row;
        justify-content: center;
    }

    .footer nav a {
        margin: 0 15px;
        text-decoration: none;
        color: white;
        font-size: 12px;
        letter-spacing: 0px;
    }

    .footer p {
        margin: 5px 0;
        font-size: 11px;
    }
}


@media (min-width: 768px) and (max-width: 991px) {
    .logo {
        font-family: 'Playfair Display', serif;
        color: #d4a259;
        font-size: 15px;
        font-weight: bold;
        margin-left: 15px;
    }

    nav ul li a {
        text-decoration: none;
        color: #fff;
        font-size: 14px;
    }

    .header-image {
        background-image: url(about1.jpg);
        background-size: cover;
        background-position: center;
        height: 350px;
        position: relative;
        color: white;
        text-align: center;
        display: flex;
        justify-content: center;
        /* align-items: center; */
    }

    .carousel-container2 h1 {
        font-size: 36px;
        font-family: 'Playfair Display', serif;
        color: #b68a3d;
        justify-content: center;
        margin-left: 300px;
        text-align: justify;
    }

    .footer nav a {
        margin: 0 15px;
        text-decoration: none;
        color: white;
        text-align: center;
        font-size: 15px;
        letter-spacing: 1px;
    }

    .footer .social-icons {
        margin-bottom: 10px;
        text-align: center;
    }

    .footer p {
        margin: 5px 0;
        font-size: 14px;
        text-align: center;
    }
}

@media (min-width: 992px) and (max-width:1199px) {
    .header-image {
        background-image: url(about1.jpg);
        background-size: cover;
        background-position: center;
        height: 450px;
        position: relative;
        color: white;
        text-align: center;
        display: flex;
        justify-content: center;
        /* align-items: center; */
    }
}

@media(min-width: 1200px) {}

@media (min-width: 481px) and (max-width:599px) {


    .header-image {
        background-image: url(about1.jpg);
        background-size: cover;
        background-position: center;
        height: 250px;
        position: relative;
        color: white;
        text-align: center;
        display: flex;
        justify-content: center;
        z-index: 1;
        /* align-items: center; */
    }

    .history-section .section-content {
        margin-bottom: 20px;
        font-size: 16px;
        padding-left: 20px;
        padding-top: 10px;
    }

    .history-section h2 {
        color: #b68a3d;
        font-size: 38px;
        text-align: center;
        margin-top: 10px;
        margin-bottom: 20px;
        font-family: 'Playfair Display', serif;
        padding-left: 20px;
    }

    .history-section .section-title {
        color: #003366;
        font-size: 28px;
        margin-bottom: 10px;
        font-family: 'Playfair Display', serif;
        padding-left: 20px;
    }

    .why-choose-us h2 {
        color: #b68a3d;
        font-size: 38px;
        margin-bottom: 10px;
        text-align: center;
        font-family: 'Playfair Display', serif;
        padding-left: 20px;
    }

    .why-choose-us p {
        margin-bottom: 20px;
        font-size: 16px;
        padding-left: 20px;
    }

    .feature img {
        width: 100px;
        height: 100px;
        border-radius: 50%;
    }

    .feature h3 {
        color: #0a2533;
        font-size: 18px;
        margin-top: 10px;
    }

    .doctor-photo {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        overflow: hidden;
        margin: 0 auto;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .carousel2 {
        display: flex;
        overflow: hidden;
        width: 100%;
        height: 350px;
        background-color: #f4f7f9;
    }


    .footer {
        flex-direction: row;
        text-align: center;
    }

    .footer .social-icons {
        margin-bottom: 10px;
        justify-content: center;
        text-align: center;
    }

    .footer p {
        margin: 5px 0;
        font-size: 14px;
        text-align: center;
    }

    .footer nav {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        overflow-x: hidden;
    }

    .footer nav a {
        margin: 3px 9px;
        text-decoration: none;
        color: white;
        font-size: 14px;
        letter-spacing: 1px;
    }
}