/* ✅ Mobile Navbar Fix */
/* Navbar Toggler Normal */
.navbar-toggler {
    border: 2px solid #198754; /* Normal border color */
    transition: all 0.3s ease;
}

/* Hover State */
.navbar-toggler:hover {
    border-color: #145c37; /* Darker green on hover */
}

/* Focus / Active State (clicked) */
.navbar-toggler:focus,
.navbar-toggler.collapsed:focus,
.navbar-toggler:active {
    border-color: #0f3e20; /* Even darker green when clicked */
    outline: none;
    box-shadow: none;
}
a.nav-link.text-success:hover {
    color: #234a38 !important;
}

/* ✅ Navbar spacing fix */
body {
    padding-top: 70px;
}
    /********************************************************************** Home Page css ******************************************/

.carousel-item img {
    height: 90vh;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    text-align: center;
    padding: 0 15px;
}

.carousel-caption h1,
.carousel-caption p {
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.text-shadow {
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

p.card-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ✅ Indicators Fix */
.carousel-indicators {
    z-index: 4 !important;
}

/* ✅ Testimonials */
.dr-testimonials-section {
    background-color: rgb(201 223 208);
}

/* ✅ Blog Card Hover */
.blog-card img {
    transition: transform 0.4s ease, filter 0.3s ease;
}

.blog-card:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* ✅ Update Card */
.update-card img {
    transition: transform 0.4s ease, filter 0.3s ease;
}

.update-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}

.update-card {
    border: none;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.update-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ✅ Same height images */
.card-img-wrapper {
    height: 200px;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card-img-wrapper img:hover {
    transform: scale(1.05);
}

/* Shared Card Styles */
    .card-hover-effect {
        background: #fff;
        border-radius: 16px;
        text-align: center;
        transition: transform 0.3s, box-shadow 0.3s;
        position: relative;
        padding: 30px;
    }
    .card-hover-effect:hover {
        transform: translateY(-6px);
        box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    }
    .card-hover-effect h5 {
        font-weight: 600;
        margin-bottom: 10px;
    }
    .card-hover-effect p {
        color: #555;
        font-size: 15px;
        height: 70px;
        overflow: auto;
    }
    /* Read more buttons */
    .dr-men-s-details .read-more-btn {
        background: #28a745;
        color: #fff;
    }
    .dr-men-s-details .read-more-btn:hover { background: #218838; transform: scale(1.1); }
    .dr-women-s-details .read-more-btn {
        background: #c2185b;
        color: #fff;
    }
    .dr-women-s-details .read-more-btn:hover { background: #9c1450; transform: scale(1.1); }
    .read-more-btn {
        font-size: 20px;
        border-radius: 50%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: 45px;
        height: 45px;
        text-decoration: none;
        transition: 0.3s;
    }

    /* Section Backgrounds */
    .dr-men-s-prob-wrapper { background: linear-gradient(135deg, #e6f7ff 0%, #f8f9fa 100%); }
    .dr-women-s-prob-wrapper { background: linear-gradient(135deg, #fff0f6 0%, #fdf0f7 100%); }

    /* Section Headings */
    .dr-men-s-prob-wrapper h1,
    .dr-women-s-prob-wrapper h1 {
        font-weight: bold;
        color: #333;
    }

    /* Owl nav styling */
    .owl-nav { display: flex !important; justify-content: center; margin-top: 25px; gap: 12px; }
    .owl-nav button {
        border-radius: 50%; width: 45px; height: 45px; font-size: 20px !important;
        transition: 0.3s; color: #fff !important;
    }
    .dr-men-s-prob-wrapper .owl-nav button { background-color: #28a745 !important; }
    .dr-men-s-prob-wrapper .owl-nav button:hover { background-color: #218838 !important; }
    .dr-women-s-prob-wrapper .owl-nav button { background-color: #c2185b !important; }
    .dr-women-s-prob-wrapper .owl-nav button:hover { background-color: #9c1450 !important; }
    .owl-nav span { color: #fff !important; font-size: 18px !important; }
    .owl-nav button:focus { outline: none; box-shadow: none; }

    #scrollTopBtn {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 999;
        background-color: #fff; /* Bootstrap primary color */
        color: #198754;
        border: none;
        outline: none;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        cursor: pointer;
        display: none; /* Hidden by default */
        font-size: 18px;
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
        transition: all 0.3s ease;
    }

    #scrollTopBtn:hover {
        background-color: #fff; /* Bootstrap primary color */
        transform: translateY(-3px);
    }
    .testimonial-card {
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }
    .testimonial-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    }
    p.fst-italic.text-muted {
        height: 80px;
        overflow: auto;
    }
    p.fst-italic.text-muted::-webkit-scrollbar {
        width: 6px;  /* Scrollbar width */
    }
    p.fst-italic.text-muted::-webkit-scrollbar-thumb {
        background-color: #28a745; /* Green color */
        border-radius: 10px;       /* Rounded corners */
    }
    p.fst-italic.text-muted::-webkit-scrollbar-track {
        background-color: #f0f0f0; /* Light gray background */
        border-radius: 10px;
    }

    /********************************************************************** Home Page css ******************************************/
    /********************************************************************** About US Page css ******************************************/
    /* Accordion Header Styling */
    .accordion-button {
    transition: all 0.3s ease-in-out;
    border: none;
    box-shadow: none !important;
    }

    /* Hover Effect */
    .accordion-button:hover {
        background-color: #198754; /* theme green */
        color: #fff;
    }


    /* Active / Open Accordion */
    .accordion-button:not(.collapsed) {
    background-color: #198754 !important; /* Bootstrap success */
    color: #fff !important;
    box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .125);
    }

    /* Remove Default Icon Rotation */
    .accordion-button::after {
    filter: invert(0.4);
    transition: transform 0.3s ease;
    }

    /* Rotate icon when open */
    .accordion-button:not(.collapsed)::after {
    transform: rotate(180deg);
    filter: invert(1);
    }

    /* Accordion Body */
    .accordion-body {
    background-color: #fff;
    border-top: 1px solid #e5e5e5;
    }

    /* Shadow & Rounded Items */
    .accordion-item {
    border-radius: 10px;
    overflow: hidden;
    }

    /********************************************************************** About US Page css ******************************************/

/* ✅ Responsive */
@media (max-width: 768px) {
    .navbar-brand img {
        width: 120px;
    }

    .btn {
        padding: 6px 12px;
        font-size: 14px;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }
    .carousel-caption p {
        font-size: 1rem;
    }

    .carousel-text-wrapper {
        max-width: 90%;
    }

    .update-card img {
        height: auto;
    }
}