:root {
    --primary-color: #00513f;
    --primary-dark: #003d30;
    --primary-soft: #e6f1ed;
    --accent-color: #c9a646;
    --accent-soft: #f6efd9;
    --bg-light: #f7faf7;
    --card-border: #dfe9e4;
    --text-dark: #12352c;
    --text-muted: #64756f;
    --footer-bg: #003d30;
}

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

h1,
h2,
h3,
.hero-title-wrapper,
.footer-heading {
    font-family: Georgia, 'Times New Roman', serif;
}

.container {
    max-width: 90%;
}

a {
    text-decoration: none;
}

.btn-custom-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: 1px solid var(--primary-color);
    box-shadow: 0 10px 22px rgba(0, 81, 63, 0.18);
    transition: all 0.3s ease;
}

.btn-custom-primary:hover,
.btn-custom-primary:focus {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(0, 61, 48, 0.24);
}

.custom-navbar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 81, 63, 0.1);
    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;
}

.website-profile-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 81, 63, 0.16);
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 81, 63, 0.12);
    flex: 0 0 38px;
}

.website-profile-avatar-sm {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.website-profile-upload {
    width: 118px;
    height: 118px;
    position: relative;
}

.website-profile-upload img {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 16px 34px rgba(0, 81, 63, 0.18);
    background: var(--primary-soft);
}

.website-profile-upload-btn {
    width: 38px;
    height: 38px;
    position: absolute;
    right: 4px;
    bottom: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #ffffff;
    background: var(--primary-color);
    border: 2px solid #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 81, 63, 0.22);
}

.website-profile-upload-btn:hover {
    background: var(--primary-dark);
}

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

.btn-outline-secondary {
    color: var(--primary-color);
    border-color: rgba(0, 81, 63, 0.35);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    color: #ffffff;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.badge.bg-light,
.bg-light {
    background-color: var(--bg-light) !important;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(0, 81, 63, 0.14);
}

.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(0, 61, 48, 0.9) 0%, rgba(0, 81, 63, 0.78) 58%, rgba(13, 93, 73, 0.66) 100%),
        radial-gradient(circle at 82% 16%, rgba(201, 166, 70, 0.2) 0, rgba(201, 166, 70, 0) 32%);
    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, #ffffff, #f1d98d);
    -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, var(--primary-color) 0%, #0d6b54 100%);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    box-shadow: 0 10px 25px rgba(0, 81, 63, 0.2);
    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, var(--primary-color) 0%, #0d6b54 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-compact {
    padding: 24px 0;
}

.footer-compact-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.footer-brand img {
    height: 42px;
    max-width: 210px;
    object-fit: contain;
}

.footer-compact-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    white-space: nowrap;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
    text-align: right;
}

.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(0, 81, 63, 0.16);
}

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: 8px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
    background-color: #ffffff;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 81, 63, 0.1);
}

.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 12px 26px rgba(0, 81, 63, 0.12) !important;
}

.webinar-grid-card .card-img-top {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: contain;
    background-color: var(--primary-soft);
}

.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: #00513f !important;
}
.text-orange {
    color: #c07f22 !important;
}
.text-teal {
    color: #0d6b54 !important;
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.72) !important;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    margin-bottom: 0;
    display: inline-flex;
    font-weight: 400;
}

.footer-link:hover {
    color: #f1d98d !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: #ffffff;
    color: var(--primary-color);
    transform: translateY(-3px);
}

@media (max-width: 991px) {
    .footer-compact-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 18px;
    }

    .footer-compact-links {
        flex-wrap: wrap;
        gap: 14px 22px;
    }

    .footer-copyright {
        text-align: center;
    }
}

.cta-section {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--primary-dark) 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 */
}

.session-watch-hero {
    background:
        linear-gradient(135deg, rgba(0, 61, 48, 0.98) 0%, rgba(0, 81, 63, 0.94) 68%, rgba(13, 107, 84, 0.9) 100%),
        radial-gradient(circle at 86% 20%, rgba(201, 166, 70, 0.2) 0, rgba(201, 166, 70, 0) 34%);
    padding: 34px 0 96px;
}

.session-watch-kicker {
    display: inline-flex;
    color: #f1d98d;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.session-watch-section {
    background-color: var(--bg-light);
    margin-top: -78px;
    padding-bottom: 70px;
}

.session-watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 24px;
    align-items: start;
}

.session-watch-player {
    background: #000000;
    border: 8px solid #ffffff;
    box-shadow: 0 22px 45px rgba(0, 61, 48, 0.18);
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.session-watch-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.session-detail-panel,
.session-comments-panel {
    background: #ffffff;
    border: 1px solid var(--card-border);
    box-shadow: 0 12px 30px rgba(0, 81, 63, 0.08);
}

.session-detail-panel {
    padding: 24px;
    margin-top: 18px;
}

.session-detail-title {
    color: var(--text-dark);
    font-size: 1.9rem;
    line-height: 1.22;
    margin-bottom: 0;
}

.session-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 16px 0;
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.session-detail-meta div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-detail-description {
    color: var(--text-muted);
    line-height: 1.75;
    margin: 18px 0 0;
}

.session-comments-panel {
    padding: 0;
    position: sticky;
    top: 82px;
    max-height: calc(100vh - 98px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-top: 4px solid var(--accent-color);
}

.session-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    background:
        linear-gradient(135deg, rgba(0, 81, 63, 0.96), rgba(11, 110, 83, 0.94)),
        radial-gradient(circle at 100% 0, rgba(201, 166, 70, 0.2), transparent 34%);
    border-bottom: 0;
}

.session-comments-header h2 {
    font-size: 1.28rem;
    margin: 0;
    color: #ffffff;
}

.session-comments-eyebrow {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.session-comments-header > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-color);
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 37, 28, 0.24);
}

.session-comment-form {
    padding: 18px 20px;
    border-bottom: 1px solid var(--card-border);
    background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
}

.session-comment-form textarea {
    resize: vertical;
    min-height: 100px;
    border-color: rgba(0, 81, 63, 0.14);
    background: #ffffff;
}

.session-comment-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 81, 63, 0.12);
}

.session-comments-panel.is-posting .session-comment-form button {
    opacity: 0.78;
}

.session-comments-list {
    display: grid;
    gap: 12px;
    padding: 18px 18px 20px;
    overflow-y: auto;
}

.session-comment-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    background: #f8fbfa;
    border: 1px solid rgba(0, 81, 63, 0.08);
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.session-comment-item.is-new {
    background: #fff8df;
    border-color: rgba(201, 166, 70, 0.46);
    transform: translateY(-2px);
}

.session-comment-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #000;
    border-radius: 50%;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(0, 81, 63, 0.18);
}

.session-comment-body {
    min-width: 0;
}

.session-comment-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.session-comment-topline strong {
    color: var(--text-dark);
    font-size: 0.92rem;
}

.session-comment-topline span {
    color: var(--text-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

.session-comment-item p,
.session-comments-empty p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    font-size: 0.9rem;
}

.session-comments-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 36px 12px;
    text-align: center;
}

.session-comments-empty i {
    color: var(--primary-color);
    font-size: 1.7rem;
}

@media (max-width: 991px) {
    .session-watch-hero {
        padding: 28px 0 92px;
    }

    .session-watch-layout {
        grid-template-columns: 1fr;
    }

    .session-comments-panel {
        position: static;
        max-height: none;
    }

    .session-detail-title {
        font-size: 1.45rem;
    }
}
