:root {
    --primary-color: #252270;
    --secondary-color: #47D247;
    --primary-light: #353580;
    --secondary-light: #5de25d;
}

body {
    font-family: 'Poppins', sans-serif;
}

/* Top Bar Styles */
.top-bar {
    background: var(--primary-color);
    font-size: 0.9rem;
}

.top-bar a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.top-bar a:hover {
    opacity: 0.8;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    padding: 0.5rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.3rem 0;
    background: rgba(37, 34, 112, 0.95) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    padding: 0;
}

.navbar-brand img {
    transition: height 0.3s;
}

.scrolled .navbar-brand img {
    height: 40px;
}

.navbar .nav-item .btn {
    padding: 0.5rem 1rem;
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    height: 100%;
}

.navbar .nav-item {
    display: flex;
    align-items: center;
}

.navbar .nav-link {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
}

.nav-item:last-child .nav-link {
    padding-right: 0 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 1.2rem;
    left: 1rem;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

/* Remove the ::after for dropdown toggles */
.nav-link.dropdown-toggle::after {
    display: none;
}

/* Only show underline effect on non-dropdown items */
.nav-item:not(.dropdown) .nav-link:hover::after,
.nav-item:not(.dropdown) .nav-link.active::after {
    width: calc(100% - 2rem);
}

.dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 1rem 0;
    margin-top: 0;
}

.dropdown-item {
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.dropdown-item:hover {
    background-color: rgba(71, 210, 71, 0.1);
    color: var(--secondary-color);
    padding-left: 2rem;
}

.navbar .btn-primary {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    margin-top: 0;
    display: inline-flex;
    align-items: center;
}

.navbar .btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(71, 210, 71, 0.3);
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--primary-color);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 0.5rem;
    }

    .nav-link {
        padding: 0.7rem 1rem !important;
    }

    .nav-link::after {
        bottom: 0.5rem;
    }

    .dropdown-menu {
        background: transparent;
        box-shadow: none;
        border-left: 2px solid var(--secondary-color);
        padding: 0 0 0 1rem;
        margin: 0.5rem 0;
    }

    .dropdown-item {
        color: rgba(255,255,255,0.8);
    }

    .dropdown-item:hover {
        background: transparent;
        color: var(--secondary-color);
    }

    .navbar .btn-primary {
        margin-top: 1rem;
        width: 100%;
    }
}

.carousel-item {
    height: 100vh;
    min-height: 600px;
    background-position: center;
    background-size: cover;
    position: relative;
}

.carousel-caption {
    bottom: 50%;
    transform: translateY(50%);
    text-align: left;
    left: 10%;
    right: 10%;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(37, 34, 112, 0.7), rgba(37, 34, 112, 0.4));
}

.carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.5s ease forwards;
}

.carousel-caption p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.5s ease 0.2s forwards;
}

.carousel-caption .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.5s ease 0.4s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

.carousel-indicators {
    bottom: 40px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

.card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 15px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-body {
    padding: 2rem;
}

.btn-primary {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(71, 210, 71, 0.3);
    background-color: var(--secondary-light);
    border-color: var(--secondary-light);
}

.btn-outline-primary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-outline-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.form-control {
    padding: 0.8rem;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: none;
}

.action-buttons {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    color: var(--primary-color);
}

.action-btn:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
    color: #fff;
}

.blog-card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
    border-radius: 15px;
    overflow: hidden;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.blog-image-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

.blog-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.blog-card:hover .blog-image-overlay {
    opacity: 1;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: var(--primary-color);
}

.blog-excerpt {
    color: #6c757d;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-meta {
    font-size: 0.875rem;
    color: #6c757d;
}

.blog-meta i {
    color: var(--secondary-color);
}

@media (max-width: 767.98px) {
    .blog-image-wrapper {
        height: 200px;
    }
    
    .blog-title {
        font-size: 1.1rem;
    }
    
    .blog-excerpt {
        -webkit-line-clamp: 2;
    }
}

.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
}

.stats-box {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stats-box h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Footer Styles */
.footer {
    background: url('../images/footer-bg.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 5rem 0 2rem;
    position: relative;
}

.footer-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(37, 34, 112, 0.97), rgba(37, 34, 112, 0.95));
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}

.footer .social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer .list-inline-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer .list-inline-item a:hover {
    color: var(--secondary-color);
}

.footer .list-inline-item:not(:last-child) {
    margin-right: 1.5rem;
}

@media (max-width: 767.98px) {
    .footer {
        padding: 3rem 0 1rem;
    }
    
    .footer .col-md-3:not(:last-child) {
        margin-bottom: 2rem;
    }
}

/* About Section Styles */
.about-image-wrapper {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.about-image-wrapper img {
    transition: transform 0.5s ease;
}

.about-image-wrapper:hover img {
    transform: scale(1.05);
}

.about-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(37, 34, 112, 0.4), rgba(71, 210, 71, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.about-image-wrapper:hover .about-image-overlay {
    opacity: 1;
}

.feature-item {
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
}

.feature-item i {
    transition: transform 0.3s ease;
}

.feature-item:hover i {
    transform: scale(1.2);
}

.about-content {
    position: relative;
}

@media (max-width: 991.98px) {
    .about-content {
        padding-left: 0 !important;
        margin-top: 2rem;
    }
}

/* Dropdown Icon Styles */
.nav-dropdown-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.dropdown.show .nav-dropdown-icon {
    transform: rotate(180deg);
}

@media (max-width: 991.98px) {
    .nav-dropdown-icon {
        float: right;
        margin-top: 0.4rem;
    }
}

.page-header {
    position: relative;
    background: url('../images/consultation/online-doctor.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    min-height: 300px;
    display: flex;
    align-items: center;
    padding: 80px 0;
    margin-top: -2px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(37, 34, 112, 0.8), rgba(37, 34, 112, 0.6));
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.page-header .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.6);
}

.page-header .breadcrumb-item a {
    color: #fff;
    text-decoration: none;
}

.page-header .breadcrumb-item a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.8);
}

/* Add responsive adjustments */
@media (max-width: 991.98px) {
    .page-header {
        min-height: 250px;
        padding: 60px 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .page-header {
        min-height: 200px;
        padding: 40px 0;
    }
    
    .page-header h1 {
        font-size: 1.75rem;
    }
}