* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*overflow: hidden;*/
}

body {
    overflow-x: hidden;
    font-family: 'Raleway', sans-serif;
}

/* General Navbar Styles */
.nav-link {
    margin-left: 20px;
}

.navbar-nav {
    margin: 0 auto;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Book Appointment Button */
.BookAppointmentBtn {
    background-color: #ffffff;
    color: #2d9911;
}

.BookAppointmentBtn:hover {
    background-color: green;
    color: white;
    box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.2) !important;
}

/* Mobile Responsive */
@media (min-width: 320px) and (max-width: 768px) {
    .nav-link.activs {
        padding: 15px;
    }
}

/* Dropdown on Hover for Desktop */
@media (min-width: 992px) {
    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
        transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
        margin-left: 40px;
    }

    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

@media (max-width:768px) {
    .offcanvas-body {
        background: linear-gradient(135deg, #8DB311, #0D9800, #0c6104);
    }
}

/* Dropdown Menu Size */
.dropdown-menu {
    transform: translateX(20%);
    width: 50%;
}

/* User Dropdown */
.user {
    position: relative;
    display: inline-block;
}

.user-icon {
    background-color: white;
    color: #00793d;
    padding: 10px;
    border-radius: 50%;
}

.user-list {
    list-style: none;
    padding: 10px 20px;
    margin: 10px;
    transform: translateX(-70%);
    color: #00793d;
    background-color: white;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    z-index: 100;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.user:hover .user-list {
    opacity: 1;
    visibility: visible;
}


/* Hero section container */
.container-fluid {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

/* Hero image styling */
.hero-image {
    width: 100%;
    max-width: 500px;
    transform: translateY(10.6%);
}

/* Wrapper for text content */
.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

/* Animated words styles */
.animated-words {
    display: inline-block;
    height: 2.7em;
    overflow: hidden;
    vertical-align: bottom;
    position: relative;
}

.animated-words span {
    display: block;
    height: 1.6em;
    animation: slideWords 6s infinite;
}

@keyframes slideWords {

    0%,
    20% {
        transform: translateY(0%);
    }

    33.33%,
    53.33% {
        transform: translateY(-100%);
    }

    66.66%,
    86.66% {
        transform: translateY(-200%);
    }

    100% {
        transform: translateY(0%);
    }
}

/* Responsive Fix for Image and Wrapper */
@media (min-width: 320px) and (max-width: 425px) {

    .wrapper .fs-1 {
        font-size: 14px !important;
    }

    .wrapper .fs-4 {
        font-size: 12px !important;
    }

    .wrapper p {
        font-size: 9px !important;
    }

    .animated-words {
        height: 2.1em;
    }

    .animated-words span {
        height: 2.5em;
    }

    .hero-image {
        width: 100%;
        max-width: 400px;
        transform: translateY(0%);
    }
}

@media (min-width: 426px) and (max-width: 768px) {
    .wrapper .fs-1 {
        font-size: 19px !important;
    }

    .wrapper .fs-4 {
        font-size: 14px !important;
    }

    .wrapper p {
        font-size: 10px !important;
    }

    .animated-words {
        height: 1.5em;
    }

    .animated-words span {
        height: 2em;
    }

    .hero-image {
        width: 100%;
        max-width: 400px;
        transform: translateY(13.5%);
    }

}


/* Specializations section */
.marquee {
    overflow: hidden;
    position: relative;
}

.marquee-inner {
    display: flex;
    width: max-content;
    animation: scroll-left 15s linear infinite;
}

.marquee:hover .marquee-inner {
    animation-play-state: paused;
}

.marquee-content {
    display: flex;
}

.marquee-content a {
    display: inline-block;
    font-size: 20px;
    padding: 0 1rem;
    text-decoration: none;
    background-color: green;
    border-radius: 5px;
    color: white;
    ;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

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




/* about section */

.about-text-image {
    margin-left: 230px;
}

.about-text-content {
    width: 100%;
    max-width: 600px;
    margin-left: 200px;
}


.about-image {
    width: 100%;
}

.doctor-image {
    width: 400px;
}



/* Media Query */
@media (max-width: 425px) {
    .about-text-image {
        margin-left: 0;
        margin-top: -100px;
    }

    .about-text-content {
        width: 100%;
        max-width: 300px;
        margin-left: 0;
        padding: 10px;
        margin-top: 40px;

    }

    .about-text-content h1 {
        font-size: 10px;
    }

    .about-text-content p {
        font-size: 8px;
    }

    .about-text-content h4 {
        font-size: 10px;
    }

    .about-text-content ul li {
        font-size: 8px;
    }

    .about-text-content .btn {
        margin-left: 100px;
    }

}


/* Media Query */
@media (min-width: 426px) and (max-width: 768px) {
    .about-text-image {
        margin-left: 150px;
    }

    .about-text-content {
        width: 100%;
        max-width: 400px;
        margin-left: 100px;
    }

    .doctor-image {
        width: 60%;
    }


    .about-text-content h1 {
        font-size: 10px;
    }

    .about-text-content p {
        font-size: 8px;
    }

    .about-text-content h4 {
        font-size: 10px;
    }

    .about-text-content ul li {
        font-size: 8px;
    }

    .about-text-content .btn {
        margin-left: 80px;
    }

}

/* Time Schedule */
.time-schedule-content {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    border-radius: 10px;
}

.time-schedule-content:hover {
    transform: translateZ(0) scale(1.02) translateY(-5px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
    background-color: #eef1f3 !important;
}


.card-blue {
    background-color: green;
    color: white;
    border-radius: 1rem;
}

/* service card */
.service-card {
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 128, 0, 0.274);
    color: green;
    transition: transform 0.2s ease;
    height: 100%;

}

.service-card:hover {
    transform: translateY(-5px);
}


.service-icon {
    width: 100%; 
    height: 180px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: green;
    /* border-radius: 50%; */
    padding: 5px;
}


.specialist-card {
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 128, 0, 0.274);
    color: green;
    transition: transform 0.2s ease;
    height: 100%;
    border-radius: 10px; /* চাইলে কোণাগুলো হালকা গোল করতে পারো */
    background: #fff; /* card সাদা হলে সবসময় clear দেখাবে */
}

.specialist-card:hover {
    transform: translateY(-5px);
}

.specialist-icon {
    width: 100%; /* Makes image responsive inside the card */
    height: 180px; /* Fixed height for uniformity */
    object-fit: cover; /* Crop & maintain aspect ratio */
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: green;
    /* border-radius: 50%; */
    padding: 5px;
}

.view-all-btn {
    background-color: #ffffff;
    color: green;
    border: 1px solid rgba(0, 128, 0, 0.329);
    font-weight: bold;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.view-all-btn:hover {
    background-color: green;
    color: rgb(255, 255, 255);
}

@media (max-width: 425px) {
    .service-card {
        padding: 10px;
    }

    /*.service-icon {*/
    /*    height: 40px;*/
    /*}*/

    .service-card h5 {
        font-size: 14px;
    }

    .service-card p {
        font-size: 10px;
    }

    .view-all-btn {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* new service section */
.soft-border {
    border-right: 1px solid #dee2e6 !important;
}

.nav-tabs .nav-link {
    color: black !important
}

.nav-tabs .nav-link.active {
    position: relative;
    color: #198754 !important;
    border: none;
}

.nav-tabs .nav-link.active::after {
    content: '';
    position: absolute;
    right: -2px;
    top: 0;
    width: 3px;
    height: 100%;
    background-color: #198754;
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        height: 0;
        top: 0;
    }

    to {
        height: 100%;
        top: 0;
    }
}

.nav-tabs .nav-link:hover {
    background-color: #089e53 !important;
    color: #ffffff !important;
}

@media (max-width: 768px) {
    .soft-border {
        border-right: none !important;
    }

    .nav-tabs .nav-link {
        position: relative;
        padding-bottom: 10px;
    }

    .nav-tabs .nav-link.active::after {
        content: none !important;
        display: none !important;
    }

    .nav-tabs .nav-link.active::before {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: 3px;
        background-color: #198754;
        animation: slideBottom 0.4s ease forwards;
    }

    @keyframes slideBottom {
        from {
            width: 0;
            left: 50%;
        }

        to {
            width: 100%;
            left: 0;
        }
    }

    .nav-tabs .nav-link:hover {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
}


/* Gallery section */
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.295);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.position-relative:hover .hover-overlay {
    opacity: 1;
}


.preview-card,
.video-card {
    background: rgb(0, 128, 43);
}

/* article section */
@media (max-width: 425px) {
    .card-body {
        font-size: 10px;
    }

    .Article-section h1 {
        font-size: 25px;
    }

    .Article-section a {
        font-size: 16px !important;
    }

    .section-top-text h1 {
        font-size: 18px;
    }

}


/* publication section */
.project-box {
    border: 1px solid hsl(211, 32%, 86%);
    border-radius: 0.5rem;
    overflow: hidden;
    background: green;
    transition: transform 0.2s ease-in-out;
    height: 100%;
}

.project-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 1rem;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.project-text {
    color: white;
    font-size: 0.95rem;
}

.status-button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}



/* Review section */
.review-section {
    width: min(70rem, 100%);
    margin: 0 auto;
    min-height: 100vh;
    padding-block: min(20vh, 3rem);
    text-align: center;
}

.swiper-container {
    position: relative;
}

.swiper {
    width: 100%;
    padding: 60px 0 95px 0;
}

.swiper-slide {
    background: green;
    width: 10rem;
    height: 30rem;
    position: relative;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.review-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #ffffff;
}

.review-name {
    font-weight: 600;
    margin-bottom: 10px;
    color: #ffffff;
}

.review-text {
    font-size: 0.95rem;
    color: #ffffff;
}

.swiper-button-prev,
.swiper-button-next {
    border-radius: 50%;
    background-color: #fff;
    width: 50px;
    height: 50px;
    box-shadow: 0px 2px 11px rgba(0, 0, 0, 0.17);
    top: 50%;
    transform: translateY(-50%);
}
@media (max-width:769px) {
    .swiper-button-prev,
    .swiper-button-next {
        width: 20px;
        height: 20px;
    }

    .swiper-button-prev i,
    .swiper-button-next i {
        font-size: 13px !important;
    }
}



.swiper-button-prev::after,
.swiper-button-next::after {
    content: "";
}

.swiper-button-prev i,
.swiper-button-next i {
    font-size: 25px;
}



/* review page  */
.hero-sections {
    color: white;
    padding: 80px 0;
    text-align: center;
    border-bottom: 5px solid #ffc107;
}

.review-summary {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-top: -60px;
    z-index: 10;
    position: relative;
}

.review-box {
    background: #fff;
    border: 1px solid rgba(0, 128, 0, 0.26);
    color: green;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.star-rating i {
    color: #ffc107;
}



.reviewer-name {
    font-weight: 600;
}

.review-date {
    font-size: 0.85rem;
    color: #888;
}

.pagination {
    justify-content: center;
}

.page-link,
.page-link {
    color: green !important;
    border: 1px solid green !important;
}

.active>.page-link,
.page-link.active {
    background-color: green !important;
    color: white !important;
    border: 1px solid green !important;
}

.footer ul li a:hover {
    color: yellow !important;
    font-weight: bold !important;
}

.socialIcons :hover {
    background-color: yellow !important;
    border-radius: 50% !important;
    padding: 5px;
    color: green !important;
}


/* ----------------------------------------------------------------------------------------- */
/* About section */
.sidebar {
    width: 300px;
    position: fixed;
    left: 0;
    top: 30px;
    color: rgb(97, 211, 97);
    padding: 20px;

    z-index: 1000;
}


.sidebar.absolute {
    position: absolute;
}

.sidebar img {
    width: 50%;
    border-radius: 50%;
}

.sidebar .nav-link {
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    color: green;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover {
    background-color: #f1f1f1;
    border-radius: 5px;
    color: green;
}

h1.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 3px solid #0d6efd;
    display: inline-block;
    padding-bottom: 5px;
}

.skill-item {
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.timeline {
    position: relative;
}

.timeline .timeline-event {
    position: relative;
    padding-top: 5px;
    padding-bottom: 5px;
}

.timeline .timeline-event .timeline-content {
    position: relative;
    width: calc(40% - 40px);
}

.timeline .timeline-event::before {
    display: block;
    content: "";
    width: 2px;
    height: calc(50% - 30px);
    position: absolute;
    background: #d2d2d2;
    left: calc(50% - 1px);
    top: 0;
}

.timeline .timeline-event::after {
    display: block;
    content: "";
    width: 2px;
    height: calc(50% - 30px);
    position: absolute;
    background: #d2d2d2;
    left: calc(50% - 1px);
    top: calc(50% + 30px);
}

.timeline .timeline-event:first-child::before {
    display: none;
}

.timeline .timeline-event:last-child::after {
    display: none;
}

.timeline .timeline-event:nth-child(even) .timeline-content {
    margin-left: calc(50% + 50px);
}

.timeline .timeline-event:nth-child(odd) .timeline-content {
    margin-left: calc(0% + 50px);
}

.timeline .timeline-badge {
    display: block;
    position: absolute;
    width: 40px;
    height: 40px;
    background: #d2d2d2;
    top: calc(50% - 20px);
    right: calc(50% - 20px);
    border-radius: 50%;
    text-align: center;
    cursor: default;
}

.timeline .timeline-badge i {
    font-size: 25px;
    line-height: 40px;
}

@media (min-width:769px) {
    .main-content {
        margin-left: 280px;

    }
}

@media (max-width: 600px) {
    .timeline .timeline-event .timeline-content {
        width: calc(100% - 70px);
    }

    .timeline .timeline-event::before {
        left: 19px;
    }

    .timeline .timeline-event::after {
        left: 19px;
    }

    .timeline .timeline-event:nth-child(even) .timeline-content {
        margin-left: 50px;
    }

    .timeline .timeline-event:nth-child(odd) .timeline-content {
        margin-left: 50px;
    }

    .timeline .timeline-badge {
        left: 0;
    }
}
