:root {
    --primary-color: #17a2b8;
    --primary-dark: #117a8b;
    --purple-color: #9c27b0;
    --bg-light: #f6f7f8;
    --card-border: #eef0f2;
    --text-dark: #0e2540;
    --text-muted: #6b767d;
    --footer-bg: #1a2b48;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.container {
    max-width: 90%;
}

a {
    text-decoration: none;
}

.btn-custom-primary {
    background: linear-gradient(135deg, #17a2b8 0%, #9c27b0 100%);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-custom-primary:hover,
.btn-custom-primary:focus {
    color: #fff;
    transform: translateY(-2px);
}

.custom-navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 700;
    position: relative;
}

.desktop-menu .navbar-nav .nav-link.active::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    margin: 2px auto 0;
}

.nav-link:hover,
.login-link:hover {
    color: var(--primary-color) !important;
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 1050;
    padding: 20px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}

.home-hero {
    position: relative;
    background-image: url("../image/doctors_bg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: calc(100vh - 86px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-bottom: 80px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(7, 71, 78, 0.75) 0%,   
        rgba(57, 34, 112, 0.7) 100%  
    );
    z-index: 1;
}

.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    background: linear-gradient(
        to bottom,
        rgba(246, 247, 248, 0) 0%,
        rgba(246, 247, 248, 1) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.content-layer {
    z-index: 3;
}

.hero-title-main {
    font-size: 2.8rem; 
    line-height: 1.1;
    margin-bottom: 5px;
}

.hero-title-sub {
    font-size: 2.0rem; 
    line-height: 1.2;
    margin-bottom: 5px;
}

.hero-title-small {
    font-size: 1.6rem; 
    line-height: 1.2;
    white-space: nowrap;
}

.hero-desc {
    line-height: 1.8;
    max-width: 600px;
}

.text-gradient-light-gold {
    background: linear-gradient(90deg, #fff59d, #ffe082);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}



.btn-white-hero {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid #fff;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-white-hero:hover {
    background-color: #fff;
    color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-hero {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50px;
    backdrop-filter: blur(4px);
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-hero:hover {
    background-color: #fff;
    color: var(--primary-dark);
    border-color: #fff;
    transform: translateY(-2px);
}

.stat-icon-box {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #17a2b8 0%, #9c27b0 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 10px 25px rgba(156, 39, 176, 0.25);
    transition: transform 0.3s ease;
}

.stat-icon-box:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 600;
    background: linear-gradient(135deg, #17a2b8 0%, #9c27b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.stat-label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 1rem;
    opacity: 0.8;
}

.text-custom {
    color: var(--primary-color) !important;
}

.footer-section {
    background-color: var(--footer-bg);
}

.footer-section .hover-white:hover {
    color: #fff !important;
    text-decoration: underline !important;
}

.footer-desc {
    max-width: 350px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(23, 162, 184, 0.25);
}

label.error {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

.form-control.error {
    border-color: #dc3545;
    background-image: none !important;
}

.specialty-card {
    border-radius: 12px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #ffffff;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.specialty-icon-img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    display: block;
}

.webinar-grid-card {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.webinar-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08) !important;
}

.webinar-grid-card .card-img-top {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: contain;
    background-color: #f8f9fa;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-custom-primary {
    background-color: var(--primary-color) !important;
    color: white;
}

.text-purple {
    color: #9c27b0 !important;
}
.text-orange {
    color: #fd7e14 !important;
}
.text-teal {
    color: #20c997 !important;
}

.live-indicator {
    width: 6px;
    height: 6px;
}

.footer-link {
    color: #b0b0b0 !important;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    margin-bottom: 12px;
    display: block;
    font-weight: 400;
}

.footer-link:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
    padding-left: 0;
}

.footer-heading {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
}

.footer-social-btn {
    width: 42px;
    height: 42px;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: white;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.footer-social-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.cta-section {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--purple-color) 100%
    );
}

.btn-white {
    background-color: #fff;
    color: var(--primary-color);
    border: 2px solid #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-white:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    color: var(--primary-dark);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-outline-white {
    background-color: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-white:hover {
    background-color: #fff;
    color: var(--primary-color);
    border-color: #fff;
    transform: translateY(-2px);
}

.cta-icon-box {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    backdrop-filter: blur(5px);
}

.hero-carousel-wrapper {
    max-width: 750px; 
    width: 100%;      
    margin-left: auto;
    position: relative;
    border-radius: 0;
    overflow: hidden;
}

.hero-slider-img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: contain;

    border-radius: 0;   
    display: block;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .home-hero {
        min-height: auto;
        padding-bottom: 80px;
    }

    .hero-carousel-wrapper {
        margin-left: auto;
        margin-right: auto; 
        max-width: 100%;    
    }

    .desktop-menu {
        display: none !important;
    }

    .custom-toggler {
        display: block !important;
    }

    .hero-title-main {
        font-size: 2.5rem;
    }
    .hero-title-sub {
        font-size: 2rem;
    }
    .hero-title-small {
        font-size: 1.3rem;
        white-space: normal;
    }

    .stat-number {
        font-size: 1.8rem;
    }

}

@media (min-width: 992px) {
    .custom-toggler {
        display: none !important;
    }
}

@media (min-width: 1600px) {
    body {
        font-size: 1.1rem;
    }
    .container {
        max-width: 1500px;
    }
    .hero-title-main {
        font-size: 4rem;
    }
    .hero-title-sub {
        font-size: 3.2rem;
    }
    .hero-title-small {
        font-size: 2rem;
    }
}

.mw-700 {
    max-width: 700px;
}

.lh-18 {
    line-height: 1.8;
}

.lh-16 {
    line-height: 1.6;
}

.fs-07 {
    font-size: 0.7rem !important;
}

.fs-08 {
    font-size: 0.8rem !important;
}
@media (min-width: 992px) {
    .profile-dropdown {
        padding-bottom: 15px; 
        position: relative; 
    }

    .profile-dropdown:hover .dropdown-menu,
    .profile-dropdown .dropdown-menu.show {
        display: block;
        margin-top: 0 !important; /* Change 3: Isko 0 kar diya taki Bootstrap force na kare */
        top: 100%; /* Change 4: Dropdown ko directly padding ke exactly niche place karne ke liye */
        right: 0 !important; 
        left: auto !important;
    }

    .profile-dropdown span {
        font-size: 16px;
        margin-left: 8px;
    }
}

/* Dropdown ke upar Arrow (Pointer) banane ka logic */
.custom-dropdown {
    position: absolute;
    overflow: visible !important; /* Arrow box ke bahar dikhe isliye */
}

.custom-dropdown::before {
    content: '';
    position: absolute;
    top: -8px; /* Box ke upar nikalne ke liye */
    right: 25px; /* Profile icon ke theek niche align karne ke liye (jarurat pade to value adjust kar lena) */
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #ffffff; /* Box ke background color se match karta hua */
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.05)); /* Halki si shadow realistic look ke liye */
}

.profile-dropdown .dropdown-menu {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.profile-dropdown .dropdown-item {
    padding: 10px 20px;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}

.profile-dropdown .dropdown-item:hover {
    background-color: #ffeaea; /* Halka red background hover pe */
    color: #dc3545; /* Bootstrap text-danger color */
}