:root {
    --tele-dark: #252a2f;
    --tele-dark-alt: #30363d;
    --tele-primary: #4bac52;
    --tele-primary-deep: #3e9144;
    --tele-accent: #f17357;
    --tele-soft: #f5f7f8;
    --tele-border: #d9dee3;
    --tele-text: #24313c;
    --tele-muted: #6b7785;
    --tele-info: #4aa0be;
    --tele-shadow: 0 1rem 2rem rgba(37, 42, 47, 0.08);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Open Sans", sans-serif;
    color: var(--tele-text);
    background:
        radial-gradient(circle at top right, rgba(75, 172, 82, 0.15), transparent 24rem),
        linear-gradient(180deg, #f9fbfb 0%, #f4f6f7 100%);
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.brand-name {
    font-family: "Oswald", sans-serif;
    letter-spacing: 0.02em;
}

.tele-alert-stack {
    position: sticky;
    top: 5.5rem;
    z-index: 1030;
    margin: 1rem auto 0;
    max-width: min(100%, 1200px);
    padding: 0 1rem;
}

.eyebrow,
.brand-kicker {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--tele-primary);
}

.brand-name {
    font-size: 1.1rem;
    line-height: 1;
}

.topline-bar {
    background: var(--tele-dark);
    color: rgba(255, 255, 255, 0.88);
}

.topline-bar a {
    color: #72d279;
    text-decoration: none;
}

.tele-navbar {
    background:
        linear-gradient(90deg, rgba(37, 42, 47, 0.98) 0%, rgba(48, 54, 61, 0.98) 100%);
    backdrop-filter: blur(10px);
}

.tele-navbar .navbar-brand,
.tele-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.tele-navbar .nav-link {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-inline: 0.8rem;
}

.tele-navbar .nav-link:hover,
.tele-navbar .nav-link.active {
    color: white;
}

.tele-navbar .nav-link.active {
    position: relative;
}

.tele-navbar .nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0;
    height: 3px;
    background: var(--tele-primary);
    border-radius: 999px;
}

.btn-accent {
    background: var(--tele-primary);
    border-color: var(--tele-primary);
    color: white;
}

.btn-accent:hover,
.btn-accent:focus {
    background: var(--tele-primary-deep);
    border-color: var(--tele-primary-deep);
    color: white;
}

.btn-outline-light:hover {
    color: var(--tele-dark);
}

.page-banner {
    padding: 4.5rem 0 3rem;
}

.banner-card,
.tele-panel,
.dashboard-hero,
.dashboard-sidebar,
.tele-card,
.chat-panel {
    border-radius: 1.35rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--tele-shadow);
}

.banner-card {
    padding: 2rem;
    border: 1px solid rgba(75, 172, 82, 0.14);
    position: relative;
    overflow: hidden;
}

.banner-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 8rem;
    height: 8rem;
    background: radial-gradient(circle, rgba(75, 172, 82, 0.2), transparent 70%);
}

.status-dot {
    width: 0.9rem;
    height: 0.9rem;
    display: inline-block;
    border-radius: 50%;
    background: var(--tele-primary);
    box-shadow: 0 0 0 0.3rem rgba(75, 172, 82, 0.18);
}

.hero-section {
    position: relative;
    padding: 5.5rem 0 5rem;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 1rem auto auto 50%;
    width: 42rem;
    height: 42rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(75, 172, 82, 0.22), transparent 60%);
    transform: translateX(-10%);
}

.hero-section .hero-copy,
.hero-card-grid {
    position: relative;
    z-index: 1;
}

.hero-highlight {
    background: linear-gradient(180deg, rgba(37, 42, 47, 0.98) 0%, rgba(48, 54, 61, 0.95) 100%);
    color: white;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0 1.5rem 2.5rem rgba(37, 42, 47, 0.18);
}

.hero-highlight .metric {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1rem;
}

.metric-value {
    font-size: 2rem;
    font-family: "Oswald", sans-serif;
    color: white;
}

.section-block {
    padding: 4.5rem 0;
}

.section-block.section-soft {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(244, 247, 248, 0.96) 100%);
}

.section-heading {
    max-width: 42rem;
    margin-bottom: 2.5rem;
}

.feature-card,
.tele-card,
.timeline-item,
.video-session-card,
.resource-card {
    background: white;
    border: 1px solid rgba(37, 42, 47, 0.06);
    border-radius: 1.25rem;
    box-shadow: 0 1rem 2rem rgba(37, 42, 47, 0.06);
}

.feature-card {
    height: 100%;
    padding: 2rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1.5rem 2.5rem rgba(37, 42, 47, 0.1);
}

.feature-icon,
.info-chip {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(75, 172, 82, 0.14);
    color: var(--tele-primary-deep);
    font-weight: 700;
}

.text-bg-success-subtle {
    background: rgba(75, 172, 82, 0.14) !important;
}

.text-success-emphasis {
    color: var(--tele-primary-deep) !important;
}

.tele-card .card-header,
.chat-panel .card-header {
    background: linear-gradient(180deg, rgba(37, 42, 47, 0.98), rgba(48, 54, 61, 0.94));
    color: white;
    border-radius: 1.25rem 1.25rem 0 0 !important;
    border-bottom: none;
}

.form-control,
.form-select {
    border-radius: 0.9rem;
    border-color: var(--tele-border);
    padding: 0.85rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(75, 172, 82, 0.7);
    box-shadow: 0 0 0 0.25rem rgba(75, 172, 82, 0.16);
}

.form-label {
    font-weight: 600;
}

.tele-cta-card {
    border-radius: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8f4 100%);
}

.site-footer {
    background: linear-gradient(180deg, #2b3137 0%, #20252a 100%);
}

.footer-main {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links li + li {
    margin-top: 0.6rem;
}

.footer-links a,
.footer-links li {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-links a:hover {
    color: #72d279;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar .list-group-item {
    color: var(--tele-muted);
    font-weight: 600;
}

.dashboard-sidebar .list-group-item:hover,
.dashboard-sidebar .list-group-item.active {
    background: rgba(75, 172, 82, 0.14);
    color: var(--tele-primary-deep);
}

.avatar-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--tele-primary), #83d48a);
    color: white;
    font-weight: 700;
}

.stat-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 248, 0.98));
    border-radius: 1.2rem;
    border: 1px solid rgba(37, 42, 47, 0.06);
    padding: 1.5rem;
    box-shadow: 0 0.8rem 1.5rem rgba(37, 42, 47, 0.06);
}

.stat-card .display-6 {
    color: var(--tele-dark);
}

.chat-thread {
    max-height: 28rem;
    overflow-y: auto;
    padding: 1.5rem;
    background: linear-gradient(180deg, rgba(244, 247, 248, 0.9), rgba(255, 255, 255, 0.98));
}

.chat-bubble {
    max-width: 85%;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.chat-bubble.patient {
    background: rgba(75, 172, 82, 0.14);
    margin-right: auto;
}

.chat-bubble.nurse,
.chat-bubble.admin {
    background: rgba(37, 42, 47, 0.94);
    color: white;
    margin-left: auto;
}

.timeline-item {
    padding: 1.5rem;
    position: relative;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 1.25rem;
    top: 1.5rem;
    bottom: 1.5rem;
    width: 2px;
    background: rgba(75, 172, 82, 0.2);
}

.timeline-dot {
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: var(--tele-primary);
    display: inline-block;
    position: relative;
    z-index: 1;
    margin-right: 0.9rem;
}

.video-session-card {
    padding: 2rem;
    background:
        linear-gradient(135deg, rgba(37, 42, 47, 0.98) 0%, rgba(48, 54, 61, 0.95) 100%),
        url("../img/hero-pattern.svg") center/cover no-repeat;
    color: white;
}

.resource-card {
    height: 100%;
    padding: 1.8rem;
}

.pill-nav .nav-link {
    border-radius: 999px;
    color: var(--tele-muted);
}

.pill-nav .nav-link.active {
    background: var(--tele-primary);
    color: white;
}

.table thead th {
    color: var(--tele-dark);
    font-family: "Roboto Condensed", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.table-hover > tbody > tr:hover > * {
    background: rgba(75, 172, 82, 0.08);
}

.consent-box {
    border-radius: 1rem;
    border: 1px solid rgba(241, 115, 87, 0.26);
    background: rgba(241, 115, 87, 0.08);
    padding: 1rem 1.1rem;
}

.badge.text-bg-warning {
    color: #5b4200 !important;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 4rem;
    }

    .tele-alert-stack {
        top: 4.75rem;
    }
}

@media (max-width: 767.98px) {
    .page-banner,
    .section-block {
        padding-block: 3.5rem;
    }

    .hero-highlight,
    .banner-card,
    .feature-card,
    .video-session-card {
        padding: 1.5rem;
    }

    .chat-bubble {
        max-width: 100%;
    }
}
