/* ============================================================
   DR MD FERDOUS — MAIN STYLESHEET
   drmdferdous.com
   ============================================================ */

/* ------------------------------------------------------------
   1. RESET & VARIABLES
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Noto Sans Bengali', 'Hind Siliguri', Tahoma, sans-serif;
    overflow-x: hidden;
    background: #ffffff;
    color: #1b4332;
    line-height: 1.6;
    scroll-behavior: smooth;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

:root {
    --green-dark:  #0b3d2e;
    --green-deep:  #1b4332;
    --green-main:  #2d6a4f;
    --green-mid:   #40916c;
    --green-light: #52b788;
    --green-soft:  #95d5b2;
    --green-pale:  #d8f3dc;
    --green-bg:    #f8fdf9;
    --text-muted:  #6c9b7f;
    --wa-green:    #25d366;
    --wa-dark:     #128c7e;
    --shadow-sm:   0 4px 16px rgba(45,106,79,0.08);
    --shadow-md:   0 6px 24px rgba(45,106,79,0.10);
    --shadow-lg:   0 14px 40px rgba(45,106,79,0.15);
    --radius:      16px;
    --transition:  all 0.3s ease;
}

.min-vh-100   { min-height: 100vh; }
.text-muted   { color: var(--text-muted) !important; }
.rounded-pill { border-radius: 50px !important; }

.text-gradient {
    background: linear-gradient(90deg, #2d6a4f, #52b788);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* ------------------------------------------------------------
   2. NAVBAR
   ------------------------------------------------------------ */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    padding: 14px 0;
    transition: var(--transition);
    z-index: 1030;
}
#navbar.scrolled {
    background: rgba(255,255,255,0.99);
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    padding: 8px 0;
}
#navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}
#navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--green-deep);
    white-space: nowrap;
}
.nav-logo { height: 40px; width: auto; border-radius: 8px; }

#navbar .navbar-toggler {
    border: none;
    background: transparent;
    padding: 6px 10px;
}
#navbar .navbar-toggler:focus { box-shadow: none; outline: none; }
#navbar .navbar-toggler-icon {
    display: inline-block;
    width: 24px; height: 24px;
    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='%232d6a4f' stroke-width='2.5' stroke-linecap='round' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
}
#navbar .navbar-collapse { flex-basis: 100%; flex-grow: 1; }
#navbar .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
#navbar .nav-link {
    color: var(--green-main);
    font-weight: 500;
    padding: 8px 14px !important;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}
#navbar .nav-link:hover,
#navbar .nav-link.active {
    color: var(--green-light);
    background: var(--green-bg);
}
#navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--green-light);
    border-radius: 2px;
}

/* ------------------------------------------------------------
   3. BLOG TITLE MARQUEE — single line, RTL scroll
   ------------------------------------------------------------ */
@keyframes btmScroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
@keyframes btmBell {
    0%, 100% { transform: rotate(0); }
    25%      { transform: rotate(-12deg); }
    75%      { transform: rotate(12deg); }
}

.blog-title-marquee {
    display: flex;
    align-items: stretch;
    background: #1b4332;
    color: #fff;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(82,183,136,0.3);
    height: 52px;
    margin-top: 68px; /* space for fixed navbar */
}

/* Left label badge */
.blog-title-marquee .btm-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 22px;
    background: linear-gradient(90deg, #52b788, #2d6a4f);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 5;
    box-shadow: 4px 0 16px rgba(0,0,0,0.3);
}
.blog-title-marquee .btm-label i {
    animation: btmBell 2s ease-in-out infinite;
}

/* Clipping wrapper */
.blog-title-marquee .btm-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

/* Animated track */
.blog-title-marquee .btm-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 50px;
    height: 100%;
    width: max-content;
    padding: 0 30px;
    animation: btmScroll 60s linear infinite;
    will-change: transform;
}
.blog-title-marquee:hover .btm-track {
    animation-play-state: paused;
}

/* Item */
.blog-title-marquee .btm-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    color: #d8f3dc;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    flex-shrink: 0;
    transition: color 0.25s ease;
}
.blog-title-marquee .btm-item:hover {
    color: #52b788;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.blog-title-marquee .btm-item .btm-dot {
    color: #52b788;
    font-size: 0.7rem;
}
.blog-title-marquee .btm-item .btm-date {
    color: rgba(216,243,220,0.6);
    font-size: 0.8rem;
}

/* Mobile */
@media (max-width: 768px) {
    .blog-title-marquee {
        height: 46px;
        margin-top: 60px;
    }
    .blog-title-marquee .btm-label {
        padding: 0 14px;
        font-size: 0.8rem;
    }
    .blog-title-marquee .btm-track {
        gap: 35px;
        animation-duration: 45s;
    }
    .blog-title-marquee .btm-item { font-size: 0.85rem; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .blog-title-marquee .btm-track {
        animation: none !important;
    }
    .blog-title-marquee .btm-wrap {
        overflow-x: auto;
    }
    .blog-title-marquee .btm-label i {
        animation: none !important;
    }
}

/* ------------------------------------------------------------
   4. HERO
   ------------------------------------------------------------ */
.hero-modern {
    position: relative;
    background: linear-gradient(135deg, #0b3d2e 0%, #1b5e3f 45%, #2d6a4f 100%);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.hero-modern .container { position: relative; z-index: 2; }
.hero-modern .min-vh-100 { min-height: 100vh; }

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
    z-index: 1;
    animation: orbFloat 12s ease-in-out infinite;
    pointer-events: none;
}
.hero-orb-1 { width: 380px; height: 380px; background: #52b788; top: -80px; right: -60px; }
.hero-orb-2 { width: 300px; height: 300px; background: #40916c; bottom: -60px; left: -40px; animation-delay: 3s; }
.hero-orb-3 { width: 220px; height: 220px; background: #95d5b2; top: 40%; right: 30%; animation-delay: 6s; opacity: 0.35; }

@keyframes orbFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-30px) scale(1.08); }
}

.hero-badge-modern {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: var(--green-pale);
}
.hero-title-modern {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 15px 0;
    background: linear-gradient(90deg, #fff 0%, #95d5b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.hero-slogan-modern {
    font-size: 1.2rem;
    color: #b7e4c7;
    margin-bottom: 15px;
    font-weight: 500;
}
.hero-text-modern {
    font-size: 1rem;
    color: rgba(255,255,255,0.85);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 30px;
}
.hero-btns-modern {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}
.btn-hero-primary {
    background: linear-gradient(135deg, #52b788, #2d6a4f);
    color: #fff !important;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(82,183,136,0.35);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(82,183,136,0.55);
    color: #fff;
}
.btn-hero-ghost {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff !important;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-hero-ghost:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
    transform: translateY(-3px);
}
.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--green-soft);
    line-height: 1;
}
.hero-stat span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
    margin-top: 6px;
}
.hero-img-modern {
    position: relative;
    display: inline-block;
    padding: 20px;
}
.hero-img-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(82,183,136,0.4), rgba(255,255,255,0.1));
    z-index: -1;
    transform: rotate(-4deg);
}
.hero-img-modern img {
    max-width: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}
.hero-img-placeholder-modern {
    font-size: 8rem;
    padding: 60px;
    background: rgba(255,255,255,0.08);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

/* ------------------------------------------------------------
   5. SECTIONS
   ------------------------------------------------------------ */
.section { padding: 80px 0; }
.bg-light { background: var(--green-bg) !important; }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--green-deep);
    margin: 0 0 10px 0;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

/* ------------------------------------------------------------
   6. CARDS
   ------------------------------------------------------------ */
.doctor-card,
.service-card,
.product-card,
.chamber-card,
.blog-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    padding: 20px;
    background: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    color: inherit;
}
.doctor-card:hover,
.service-card:hover,
.product-card:hover,
.chamber-card:hover,
.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

/* Doctor */
.doctor-card { text-align: center; align-items: center; }
.doctor-img-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}
.doctor-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--green-pale);
}
.doctor-status {
    position: absolute;
    bottom: 8px; right: 8px;
    width: 18px; height: 18px;
    background: var(--green-light);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(82,183,136,0.6);
}
.doctor-card h4 {
    font-size: 1.15rem;
    color: var(--green-deep);
    margin: 0 0 6px 0;
    font-weight: 700;
}
.doctor-card .text-muted {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.doctor-card .badge {
    font-size: 0.8rem;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--green-light) !important;
    color: #fff !important;
}
.doctor-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 12px 0;
    width: 100%;
}
.doctor-info span {
    display: flex;
    align-items: center;
    gap: 6px;
    justify-content: center;
}
.doctor-card .btn { margin-top: auto; }

/* Service */
.service-card { text-align: center; }
.service-icon {
    font-size: 2.8rem;
    display: block;
    margin-bottom: 12px;
    line-height: 1;
}
.service-card h4 {
    font-size: 1.1rem;
    color: var(--green-deep);
    font-weight: 700;
    margin-bottom: 10px;
}
.service-card .text-muted {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
    flex-grow: 1;
}
.service-price {
    font-weight: 700;
    margin: 10px 0;
    font-size: 1.05rem;
}

/* Product */
.product-card { text-align: center; padding: 0; overflow: hidden; }
.product-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card h4 {
    font-size: 1.1rem;
    color: var(--green-deep);
    font-weight: 700;
    margin-bottom: 10px;
}
.product-card .text-muted {
    color: var(--text-muted) !important;
    font-size: 0.9rem;
}
.product-price { margin: 10px 0; }

/* Chamber */
.chamber-card h4 {
    font-size: 1.15rem;
    color: var(--green-deep);
    font-weight: 700;
    margin: 10px 0;
}
.chamber-card p {
    margin: 6px 0;
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.chamber-card p i { margin-top: 4px; }

/* Blog grid */
.blog-card { padding: 0; overflow: hidden; }
.blog-img-link { display: block; }
.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-img { transform: scale(1.04); }
.blog-card .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.blog-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
}
.blog-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.4;
}
.blog-title a {
    color: var(--green-deep);
    transition: color 0.25s ease;
}
.blog-title a:hover,
.blog-title a:focus {
    color: var(--green-light);
    text-decoration: underline;
    text-decoration-color: var(--green-light);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}
.blog-card .text-muted {
    color: var(--text-muted) !important;
    font-size: 0.88rem;
    flex-grow: 1;
}

/* ------------------------------------------------------------
   7. TOP PATIENTS LIST
   ------------------------------------------------------------ */
.top-patients-list {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: sticky;
    top: 90px;
}
.tp-list-header {
    background: linear-gradient(135deg, #1b4332, #2d6a4f);
    color: #fff;
    padding: 22px 22px 18px;
    text-align: center;
}
.tp-list-header i {
    font-size: 1.8rem;
    color: #ff8fa3;
    margin-bottom: 8px;
    display: block;
}
.tp-list-header h4 {
    margin: 0 0 4px 0;
    font-weight: 800;
    font-size: 1.15rem;
}
.tp-list-header p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
}
.tp-list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--green-light) transparent;
}
.tp-list::-webkit-scrollbar { width: 6px; }
.tp-list::-webkit-scrollbar-thumb {
    background: var(--green-light);
    border-radius: 10px;
}
.tp-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-bottom: 1px solid #f0f7f3;
    transition: background 0.25s ease;
}
.tp-list-item:hover { background: var(--green-bg); }
.tp-list-item:last-child { border-bottom: none; }
.tp-avatar {
    flex-shrink: 0;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #52b788, #2d6a4f);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
}
.tp-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.tp-info strong {
    font-size: 0.92rem;
    color: var(--green-deep);
    font-weight: 700;
}
.tp-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.tp-check {
    color: var(--green-light);
    font-size: 1rem;
    flex-shrink: 0;
}
.tp-list-footer {
    padding: 14px 18px 18px;
    border-top: 1px solid #f0f7f3;
    background: #fafdfb;
}

/* ------------------------------------------------------------
   8. BUTTONS
   ------------------------------------------------------------ */
.btn {
    transition: var(--transition);
    border-radius: 8px;
    font-weight: 500;
}
.btn-primary {
    background: var(--green-main);
    border-color: var(--green-main);
}
.btn-primary:hover {
    background: var(--green-light);
    border-color: var(--green-light);
    transform: translateY(-2px);
}
.btn-success {
    background: var(--green-mid);
    border-color: var(--green-mid);
}
.btn-success:hover {
    background: var(--green-light);
    border-color: var(--green-light);
    transform: translateY(-2px);
}
.btn-outline-success {
    color: var(--green-main);
    border-color: var(--green-main);
}
.btn-outline-success:hover {
    background: var(--green-main);
    border-color: var(--green-main);
    color: #fff;
}
.btn-whatsapp {
    background: var(--wa-green);
    color: #fff !important;
    border: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-whatsapp:hover {
    background: var(--wa-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37,211,102,0.4);
    color: #fff;
}

/* ------------------------------------------------------------
   9. FORMS
   ------------------------------------------------------------ */
.form-control,
.form-select {
    border: 2px solid #e0f2e9;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: #fff;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--green-light);
    box-shadow: 0 0 0 4px rgba(82,183,136,0.15);
    outline: none;
}
.form-control.is-invalid { border-color: #e63946; }
.form-control.is-valid { border-color: var(--green-light); }
.form-check-input:checked {
    background-color: var(--green-main);
    border-color: var(--green-main);
}

/* ------------------------------------------------------------
   10. CONTACT
   ------------------------------------------------------------ */
.contact-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1b4332, #2d6a4f);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.contact-section::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(82,183,136,0.25), transparent 70%);
    pointer-events: none;
}
.contact-section .section-header h2 { color: #fff; }
.contact-section .card {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    background: #fff;
    color: #333;
}
.contact-section .card h5 { color: var(--green-deep); }

/* ------------------------------------------------------------
   11. FOOTER
   ------------------------------------------------------------ */
.footer {
    background: var(--green-dark);
    color: #fff;
    padding: 50px 0 20px;
}
.footer h5 { color: var(--green-soft); margin-bottom: 15px; font-weight: 700; }
.footer p { color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.7; }
.footer a { color: rgba(255,255,255,0.85); transition: var(--transition); }
.footer a:hover { color: var(--green-soft); }
.footer hr { border-color: rgba(255,255,255,0.15); margin: 25px 0 15px; opacity: 1; }
.footer .text-center { color: rgba(255,255,255,0.6); }

/* ------------------------------------------------------------
   12. FLOATING WA + BACK TO TOP
   ------------------------------------------------------------ */
.wa-float {
    position: fixed;
    bottom: 25px; right: 25px;
    width: 60px; height: 60px;
    background: var(--wa-green);
    color: #fff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 24px rgba(37,211,102,0.5);
    z-index: 9999;
    transition: var(--transition);
    animation: waPulse 2.2s infinite;
}
.wa-float:hover { background: var(--wa-dark); transform: scale(1.1); }
@keyframes waPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37,211,102,0.5); }
    50%      { box-shadow: 0 8px 34px rgba(37,211,102,0.9); }
}

#backToTop {
    position: fixed;
    bottom: 100px; left: 25px;
    width: 44px; height: 44px;
    background: var(--green-main);
    color: #fff !important;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 998;
    transition: var(--transition);
}
#backToTop:hover { background: var(--green-light); transform: translateY(-3px); }

/* ------------------------------------------------------------
   13. BADGES & ALERTS
   ------------------------------------------------------------ */
.badge {
    font-size: 0.78rem;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
}
.badge.bg-success { background: var(--green-light) !important; }
.badge.bg-secondary { background: #6c757d !important; }
.badge.bg-danger { background: #dc3545 !important; }

.alert {
    border-radius: 10px;
    border: none;
    padding: 14px 18px;
    font-size: 0.95rem;
}
.alert-success { background: #d8f3dc; color: var(--green-deep); }
.alert-danger { background: #ffe5e5; color: #b00020; }
.alert-warning { background: #fff4d6; color: #8a6300; }

/* ------------------------------------------------------------
   14. ADMIN PANEL
   ------------------------------------------------------------ */
.admin-body { background: #f0f2f5; margin: 0; }

.sidebar {
    background: linear-gradient(180deg, #1b4332, #2d6a4f);
    min-height: 100vh;
    color: #fff;
    position: fixed;
    width: 230px;
    z-index: 1000;
    overflow-y: auto;
}
.sidebar .brand {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar .brand img {
    width: 50px; height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--green-light);
}
.sidebar .brand h6 {
    color: #fff;
    font-weight: 700;
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 0.95rem;
}
.sidebar a {
    color: rgba(255,255,255,0.8);
    padding: 10px 15px;
    display: block;
    margin: 2px 8px;
    border-radius: 8px;
    transition: var(--transition);
    font-size: 0.9rem;
}
.sidebar a:hover,
.sidebar a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}
.sidebar a i { width: 22px; text-align: center; margin-right: 8px; }
.sidebar hr { border-color: rgba(255,255,255,0.15); margin: 10px 15px; }

.main-content {
    margin-left: 230px;
    padding: 25px;
    min-height: 100vh;
}
.main-content .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.main-content .card-header {
    background: var(--green-main);
    color: #fff;
    border-radius: 15px 15px 0 0 !important;
    padding: 12px 20px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.form-section {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #dee2e6;
}
.preview-image {
    max-width: 150px;
    max-height: 150px;
    border-radius: 10px;
    border: 3px solid var(--green-light);
    object-fit: cover;
}
.stat-card {
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.stat-card i { font-size: 2rem; margin-bottom: 8px; }
.stat-card h3 {
    font-weight: 800;
    margin: 0;
    color: var(--green-deep);
}
.stat-card p {
    margin: 0;
    color: #6c757d;
    font-size: 0.85rem;
}

/* ------------------------------------------------------------
   15. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 992px) {
    #navbar .navbar-collapse {
        margin-top: 12px;
        background: #fff;
        border-radius: 12px;
        padding: 12px;
        box-shadow: var(--shadow-md);
    }
    #navbar .navbar-nav {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        width: 100%;
    }
    #navbar .nav-link {
        padding: 10px 14px !important;
        width: 100%;
    }
    #navbar .nav-link.active::after { display: none; }
    #navbar .btn { width: 100%; margin: 4px 0; }

    .hero-title-modern { font-size: 2.4rem; }
    .section-header h2 { font-size: 1.9rem; }

    .top-patients-list { position: static; margin-top: 30px; }
    .tp-list { max-height: 300px; }

    .sidebar { position: static; width: 100%; min-height: auto; }
    .main-content { margin-left: 0; padding: 15px; }
}

@media (max-width: 768px) {
    .section { padding: 55px 0; }
    .section-header { margin-bottom: 35px; }
    .section-header h2 { font-size: 1.7rem; }

    .hero-modern .min-vh-100 { min-height: auto; padding: 60px 0; }
    .hero-title-modern { font-size: 2rem; margin-bottom: 10px; }
    .hero-slogan-modern { font-size: 1rem; }
    .hero-text-modern { font-size: 0.92rem; }
    .hero-btns-modern { gap: 10px; margin-bottom: 30px; }
    .btn-hero-primary,
    .btn-hero-ghost {
        padding: 12px 22px;
        font-size: 0.92rem;
    }
    .hero-stats { gap: 22px; padding-top: 20px; }
    .hero-stat strong { font-size: 1.4rem; }
    .hero-stat span { font-size: 0.78rem; }
    .hero-img-placeholder-modern { font-size: 5rem; padding: 40px; }

    .doctor-img { width: 100px; height: 100px; }
    .service-icon { font-size: 2.3rem; }
    .blog-img, .product-img { height: 180px; }

    .contact-section { padding: 55px 0; }
    .contact-section .card { padding: 20px !important; }

    .footer { padding: 40px 0 15px; text-align: center; }
    .footer .text-md-end { text-align: center !important; margin-top: 15px; }

    .wa-float { width: 54px; height: 54px; font-size: 24px; bottom: 20px; right: 20px; }
    #backToTop { width: 40px; height: 40px; bottom: 85px; left: 20px; font-size: 14px; }
}

@media (max-width: 480px) {
    .hero-title-modern { font-size: 1.75rem; }
    .section-header h2 { font-size: 1.5rem; }
    .hero-stats { gap: 15px; }
    .hero-stat strong { font-size: 1.25rem; }
    .hero-stat span { font-size: 0.72rem; }
    .btn-hero-primary,
    .btn-hero-ghost {
        padding: 11px 18px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
    .hero-btns-modern { flex-direction: column; }
    .doctor-card, .service-card, .chamber-card { padding: 16px; }
}

/* ------------------------------------------------------------
   16. PRINT
   ------------------------------------------------------------ */
@media print {
    #navbar, .wa-float, #backToTop, .hero-orb, .blog-title-marquee {
        display: none !important;
    }
    body { background: #fff; color: #000; }
}
/* ============================================================
   BLOG TITLE MARQUEE — Modern glassmorphism design
   ============================================================ */

/* --- Animations --- */
@keyframes btmScroll {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}
@keyframes btmBell {
    0%, 100% { transform: rotate(0); }
    15%      { transform: rotate(-14deg); }
    30%      { transform: rotate(14deg); }
    45%      { transform: rotate(-8deg); }
    60%      { transform: rotate(0); }
}
@keyframes btmShine {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(300%); }
}
@keyframes btmPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(82,183,136,0.5),
                    0 8px 24px rgba(0,0,0,0.25);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(82,183,136,0),
                    0 8px 24px rgba(0,0,0,0.25);
    }
}

/* --- Container --- */
.blog-title-marquee {
    position: relative;
    display: flex;
    align-items: stretch;
    height: 60px;
    margin-top: 68px;
    overflow: hidden;
    background: linear-gradient(135deg, #0b3d2e 0%, #1b4332 30%, #2d6a4f 70%, #1b4332 100%);
    border-bottom: 1px solid rgba(82,183,136,0.25);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.06),
        0 4px 20px rgba(0,0,0,0.15);
    isolation: isolate;
}

/* Subtle animated sheen across the whole bar */
.blog-title-marquee::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(82,183,136,0.06) 40%,
        rgba(149,213,178,0.10) 50%,
        rgba(82,183,136,0.06) 60%,
        transparent 100%
    );
    animation: btmShine 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

/* Edge fade masks */
.blog-title-marquee::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background:
        linear-gradient(90deg, #0b3d2e 0%, transparent 5%),
        linear-gradient(270deg, #0b3d2e 0%, transparent 5%);
}

/* --- Label (left badge) --- */
.blog-title-marquee .btm-label {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px;
    background: linear-gradient(135deg, #52b788 0%, #2d6a4f 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
    animation: btmPulse 3s ease-in-out infinite;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        4px 0 20px rgba(0,0,0,0.3);
    clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
    padding-right: 32px;
}

/* Live pulse dot */
.blog-title-marquee .btm-label .btm-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 0 rgba(255,255,255,0.9);
    animation: btmPulse 1.6s ease-in-out infinite;
    flex-shrink: 0;
}

/* Bell icon */
.blog-title-marquee .btm-label i.fa-bullhorn {
    font-size: 1rem;
    animation: btmBell 2.4s ease-in-out infinite;
    transform-origin: top center;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}

.blog-title-marquee .btm-label span {
    position: relative;
    z-index: 2;
}

/* --- Clipping wrapper --- */
.blog-title-marquee .btm-wrap {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

/* --- Animated track --- */
.blog-title-marquee .btm-track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    height: 100%;
    width: max-content;
    padding: 0 40px;
    animation: btmScroll 65s linear infinite;
    will-change: transform;
}
.blog-title-marquee:hover .btm-track {
    animation-play-state: paused;
}

/* --- Item (each blog title) --- */
.blog-title-marquee .btm-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    padding: 6px 22px;
    margin: 0 4px;
    border-radius: 30px;
    color: #d8f3dc;
    font-size: 0.94rem;
    font-weight: 500;
    text-decoration: none;
    flex-shrink: 0;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(82,183,136,0.15);
    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease,
        box-shadow 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
}

/* Soft glow hover */
.blog-title-marquee .btm-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at center,
        rgba(82,183,136,0.18) 0%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.blog-title-marquee .btm-item:hover {
    color: #fff;
    background: rgba(82,183,136,0.14);
    border-color: rgba(82,183,136,0.5);
    transform: translateY(-1px);
    box-shadow:
        0 6px 20px rgba(82,183,136,0.25),
        inset 0 1px 0 rgba(255,255,255,0.1);
    text-decoration: none;
}
.blog-title-marquee .btm-item:hover::before {
    opacity: 1;
}

/* Dot separator (hidden — we use cards now) */
.blog-title-marquee .btm-item .btm-dot {
    display: none;
}

/* Small "new" indicator dot */
.blog-title-marquee .btm-item::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #52b788;
    box-shadow: 0 0 8px rgba(82,183,136,0.9);
    margin-left: 4px;
    flex-shrink: 0;
}

/* Date badge */
.blog-title-marquee .btm-item .btm-date {
    color: rgba(216,243,220,0.5);
    font-size: 0.78rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-left: 8px;
    border-left: 1px solid rgba(82,183,136,0.2);
    margin-left: 2px;
}
.blog-title-marquee .btm-item .btm-date i {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* --- Hover state: pause sheen too --- */
.blog-title-marquee:hover::before {
    animation-play-state: paused;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .blog-title-marquee { height: 54px; margin-top: 62px; }
    .blog-title-marquee .btm-label {
        padding: 0 18px;
        padding-right: 26px;
        font-size: 0.85rem;
    }
    .blog-title-marquee .btm-label i.fa-bullhorn { font-size: 0.9rem; }
    .blog-title-marquee .btm-item {
        font-size: 0.88rem;
        padding: 5px 16px;
    }
    .blog-title-marquee .btm-item .btm-date { font-size: 0.72rem; }
}

@media (max-width: 768px) {
    .blog-title-marquee {
        height: 48px;
        margin-top: 58px;
    }
    .blog-title-marquee .btm-label {
        padding: 0 14px;
        padding-right: 22px;
        font-size: 0.78rem;
        gap: 6px;
    }
    .blog-title-marquee .btm-label .btm-live-dot {
        width: 6px;
        height: 6px;
    }
    .blog-title-marquee .btm-label i.fa-bullhorn { font-size: 0.8rem; }

    .blog-title-marquee .btm-track {
        animation-duration: 45s;
        padding: 0 24px;
    }
    .blog-title-marquee .btm-item {
        font-size: 0.82rem;
        padding: 4px 14px;
        gap: 8px;
    }
    .blog-title-marquee .btm-item .btm-date {
        font-size: 0.68rem;
        padding-left: 6px;
    }
}

@media (max-width: 480px) {
    .blog-title-marquee { height: 44px; }
    .blog-title-marquee .btm-label {
        font-size: 0.72rem;
        padding: 0 12px;
        padding-right: 18px;
    }
    .blog-title-marquee .btm-label span { display: none; } /* icon only on tiny screens */
    .blog-title-marquee .btm-label::after {
        content: 'ব্লগ';
        margin-left: 4px;
    }
    .blog-title-marquee .btm-item {
        font-size: 0.78rem;
        padding: 4px 12px;
    }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
    .blog-title-marquee .btm-track {
        animation: none !important;
    }
    .blog-title-marquee::before {
        animation: none !important;
    }
    .blog-title-marquee .btm-label,
    .blog-title-marquee .btm-label i,
    .blog-title-marquee .btm-label .btm-live-dot {
        animation: none !important;
    }
    .blog-title-marquee .btm-wrap {
        overflow-x: auto;
    }
}