:root {
    --bg: #f7fbfd;
    --surface: #ffffff;
    --text: #0f172a;
    --muted: #475569;
    --brand: #1fb67e;
    --brand-600: #17a06f;
    --brand-700: #12885f;
    --accent: #3ba9ff;
    --ring: rgba(31, 182, 126, 0.25);
    --shadow: 0 10px 30px rgba(2, 12, 27, 0.08);
    --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}
.logo { font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.logo span { color: var(--brand); }

.nav { position: relative; }
.nav-menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav-menu a:hover { color: var(--text); }
@media (max-width: 760px) {
    .nav { position: static; }
}
.header-cta { margin-left: 14px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; z-index: 100; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: 0.2s ease; border-radius: 2px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 600; text-decoration: none; transition: transform .06s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 20px rgba(31, 182, 126, 0.35); }
.btn-primary:hover { background: var(--brand-600); }
.btn-outline { background: transparent; color: var(--brand-700); border-color: var(--brand-700); }
.btn-outline:hover { background: rgba(31, 182, 126, 0.08); }
.btn-small { padding: 10px 14px; font-size: 0.9rem; }

/* Sections */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 36px; }
.section-header h2 { margin: 0 0 8px; font-size: 2rem; }
.section-header p { margin: 0; color: var(--muted); }

/* Hero */
.hero { position: relative; min-height: 72vh; display: grid; place-items: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,.45), rgba(15,23,42,.25)); }
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(40% 40% at 60% 20%, rgba(59,169,255,.30), transparent), radial-gradient(30% 30% at 20% 80%, rgba(31,182,126,.25), transparent); mix-blend-mode: soft-light; }
.hero-inner { position: relative; text-align: center; color: #fff; padding: 40px 0; }
.headline { font-size: clamp(2rem, 4vw, 3rem); margin: 0 0 10px; letter-spacing: -0.5px; }
.subhead { margin: 0 auto 22px; max-width: 700px; color: #e6f4ff; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.product-card { grid-column: span 4; background: var(--surface); border: 1px solid rgba(15, 23, 42, 0.06); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.product-card img { width: 100%; height: 190px; object-fit: cover; }
.product-content { padding: 16px; }
.product-content h3 { margin: 0 0 6px; font-size: 1.1rem; }
.product-content p { margin: 0 0 12px; color: var(--muted); }

/* Doctor */
.doctor-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: center; }
.doctor-photo img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.doctor-content h2 { margin: 0 0 8px; }
.doctor-content h3 { margin: 0 0 4px; }
.muted { color: var(--muted); }
.doctor-contact { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 6px; }
.doctor-contact a { color: var(--accent); text-decoration: none; }
.doctor-contact a:hover { text-decoration: underline; }

/* Comments */
.comments-header { text-align: center; margin-bottom: 40px; }
.comments-header h2 { margin: 0 0 8px; }
.comments-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.comments-form { background: var(--surface); border: 1px solid rgba(15, 23, 42, 0.06); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.comments-form h3 { margin: 0 0 20px; font-size: 1.3rem; }
.comment-form .form-group { margin-bottom: 18px; }
.comment-form label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--text); }
.comment-form .form-control { width: 100%; padding: 10px 14px; border: 1px solid rgba(15, 23, 42, 0.12); border-radius: 8px; font-size: 0.95rem; transition: border-color .2s ease; }
.comment-form .form-control:focus { outline: none; border-color: var(--brand); }
.comment-form textarea.form-control { resize: vertical; min-height: 100px; }
.comments-list h3 { margin: 0 0 20px; font-size: 1.3rem; }
.comments-items { display: grid; gap: 20px; }
.comment-item { background: var(--surface); border: 1px solid rgba(15, 23, 42, 0.06); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.comment-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.comment-author { color: var(--text); font-size: 1rem; }
.comment-date { color: var(--muted); font-size: 0.85rem; }
.comment-text { margin: 0; color: var(--text); line-height: 1.6; }

/* Testimonials */
.testimonials { background: linear-gradient(180deg, rgba(59,169,255,.03), rgba(31,182,126,.03)); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--surface); border: 1px solid rgba(15, 23, 42, 0.06); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12); }
.testimonial-content { flex: 1; margin-bottom: 20px; }
.testimonial-text { margin: 0; color: var(--text); line-height: 1.7; font-size: 1rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-info { display: flex; flex-direction: column; }
.author-name { color: var(--text); font-size: 1rem; font-weight: 600; }
.author-date { color: var(--muted); font-size: 0.85rem; }

/* Slider */
.institutions { background: linear-gradient(180deg, rgba(59,169,255,.06), rgba(31,182,126,.06)); }
.slider { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; }
.slider-btn { width: 42px; height: 42px; border-radius: 999px; border: 1px solid rgba(15, 23, 42, 0.12); background: #fff; color: var(--text); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.slider-btn:hover { background: #f2f6ff; }
.slider-track { overflow: hidden; position: relative; white-space: nowrap; }
.slider-track .slide { display: inline-flex; vertical-align: top; flex-direction: column; align-items: center; width: 320px; margin-right: 16px; background: #fff; border: 1px solid rgba(15,23,42,.06); border-radius: var(--radius); box-shadow: var(--shadow); }
.slide img { width: 100%; height: 140px; object-fit: cover; border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.slide p { margin: 10px 12px 14px; text-align: center; color: var(--muted); }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.slider-dots button { width: 8px; height: 8px; border-radius: 999px; border: none; background: rgba(15,23,42,.2); cursor: pointer; }
.slider-dots button[aria-current="true"] { background: var(--brand); }

/* Contact */
.contact-header { text-align: center; margin-bottom: 40px; }
.contact-header h2 { margin: 0 0 8px; }
.contact-inner { display: grid; place-items: center; }
.contact-form-wrapper { width: 100%; max-width: 700px; }
.contact-form { background: var(--surface); border: 1px solid rgba(15, 23, 42, 0.06); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: 500; color: var(--text); }
.contact-form .form-control { width: 100%; padding: 12px 16px; border: 1px solid rgba(15, 23, 42, 0.12); border-radius: 8px; font-size: 0.95rem; transition: border-color .2s ease; }
.contact-form .form-control:focus { outline: none; border-color: var(--brand); }
.contact-form textarea.form-control { resize: vertical; min-height: 120px; }
.contact-card { width: 100%; max-width: 820px; background: var(--surface); border: 1px solid rgba(15, 23, 42, 0.06); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; text-align: center; }

/* Footer */
.site-footer { background: #0b1220; color: #cbd5e1; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 20px; align-items: start; }
.footer-brand .logo { color: #fff; text-decoration: none; }
.footer-brand .logo span { color: var(--brand); }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #cbd5e1; text-decoration: none; }
.footer-links a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.social { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; color: #e2e8f0; background: rgba(255,255,255,0.06); border-radius: 10px; border: 1px solid rgba(255,255,255,0.08); }
.social:hover { background: rgba(255,255,255,0.12); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 24px; padding-top: 16px; text-align: center; color: #94a3b8; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }

/* Responsive */
@media (max-width: 1024px) {
    .product-card { grid-column: span 6; }
    .doctor-inner { grid-template-columns: 1fr; }
    .comments-inner { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
    .header-inner { height: 64px; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: inline-block !important; visibility: visible !important; opacity: 1 !important; margin-left: 8px; }
    .navbar-toggler.d-lg-none { display: inline-block !important; }
    #nav-menu { position: fixed !important; top: 64px !important; right: 20px !important; left: auto !important; margin: 0 !important; background: #fff; border: 1px solid rgba(15,23,42,0.06); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; display: none; flex-direction: column; gap: 10px; width: auto; min-width: 200px; max-width: calc(100vw - 40px); z-index: 9999; transform: translateX(0) !important; white-space: nowrap; }
    .nav-menu { position: fixed !important; top: 64px !important; right: 20px !important; left: auto !important; margin: 0 !important; background: #fff; border: 1px solid rgba(15,23,42,0.06); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; display: none; flex-direction: column; gap: 10px; width: auto; min-width: 200px; max-width: calc(100vw - 40px); z-index: 9999; transform: translateX(0) !important; white-space: nowrap; }
    .nav-menu.show { right: 20px !important; left: auto !important; }
    @media (max-width: 480px) {
        #nav-menu, .nav-menu { right: 10px !important; left: auto !important; max-width: calc(100vw - 20px); min-width: 180px; }
        #nav-menu.show, .nav-menu.show { right: 10px !important; left: auto !important; }
    }
    @media (max-width: 360px) {
        #nav-menu, .nav-menu { right: 10px !important; left: auto !important; max-width: calc(100vw - 20px); min-width: auto; width: calc(100vw - 20px); }
        #nav-menu.show, .nav-menu.show { right: 10px !important; left: auto !important; }
    }
    body { overflow-x: hidden; }
    .nav-menu * { box-sizing: border-box; }
    html, body { overflow-x: hidden; max-width: 100%; }
    .site-header { overflow: visible; }
    .site-header .container { overflow: visible; }
    .nav-menu.show { display: flex !important; }
    .header-cta { display: none; }
    .hero { min-height: 64vh; }
    .product-card { grid-column: span 12; }
    .footer-grid { grid-template-columns: 1fr; }
    .site-header .container { position: relative; }
    .site-header .d-flex.align-items-center.gap-3 { gap: 8px !important; }
    .site-header .btn { padding: 8px 12px; font-size: 0.85rem; }
    .nav { position: static; }
}

/* Page Header Section */
.page-header-section {
    background: linear-gradient(135deg, rgba(31, 182, 126, 0.08) 0%, rgba(59, 169, 255, 0.06) 100%);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* Breadcrumb Simple Style */
.breadcrumb-simple {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 400;
}

.breadcrumb-simple a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.breadcrumb-simple a:hover {
    color: var(--brand) !important;
}

.breadcrumb-simple span:not(.mx-2) {
    color: var(--text);
}

.breadcrumb-simple .mx-2 {
    color: var(--muted);
}
