/* HealingTech Initiative — site styles */

:root {
    --ht-navy: #1a2744;
    --ht-teal: #2d8fa8;
    --ht-orange: #e8943a;
    --ht-gold: #fdb833;
    --ht-warm: #f5a623;
    --ht-dark: #20212B;
}

html { scroll-behavior: smooth; }

.powered-by-bar { display: none !important; }

.board-section {
    padding: 50px 0 70px;
    background: #f8f9fa;
}

.board-member-card {
    background: #fff;
    border-radius: 8px;
    padding: 22px 18px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
    height: 100%;
    border-left: 4px solid var(--ht-gold);
}

.board-member-card h3 {
    font-size: 1.05rem;
    color: var(--ht-navy);
    margin-bottom: 6px;
    line-height: 1.35;
}

.board-member-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.labs-link-card {
    background: linear-gradient(135deg, var(--ht-navy) 0%, #2d8fa8 100%);
    color: #fff;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
}

/* Uniform team card image sizes */
.team .row > [class*="col-"] {
    display: flex;
}

.team .team-item {
    width: 100%;
}

.team .team-img {
    aspect-ratio: 3 / 4;
    background: #e9ecef;
}

.team .team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    margin-bottom: 0 !important;
    transform: none;
    transition: transform 0.3s ease;
}

.team .team-item:hover .team-img img {
    margin: 0 !important;
    transform: scale(1.05);
}

.team .team-img.team-img-face-up img {
    object-position: center 32%;
    transform: scale(0.84);
    transform-origin: center 28%;
}

.team .team-item:hover .team-img.team-img-face-up img {
    transform: scale(0.88);
    transform-origin: center 28%;
}

.team .team-text h2 {
    font-size: 16px;
    line-height: 1.3;
}

.labs-link-card h3 { color: #fff; margin-bottom: 12px; }
.labs-link-card p { color: rgba(255,255,255,0.88); margin-bottom: 20px; }

.pillar-card {
    background: #fff;
    border-radius: 10px;
    padding: 32px 24px;
    height: 100%;
    text-align: center;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    border-bottom: 4px solid var(--ht-gold);
    transition: transform 0.3s ease;
}

.pillar-card:hover { transform: translateY(-5px); }
.pillar-card i { font-size: 2.2rem; color: var(--ht-orange); margin-bottom: 16px; }
.pillar-card h3 { font-size: 1.2rem; color: var(--ht-navy); margin-bottom: 10px; }

.program-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

.program-card-img {
    height: 180px;
    background: linear-gradient(135deg, var(--ht-navy) 0%, var(--ht-teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 3rem;
    overflow: hidden;
}

.program-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.program-card-body { padding: 24px; }
.program-card-body h3 { color: var(--ht-navy); font-size: 1.2rem; margin-bottom: 10px; }

.impact-stat {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    border: 1px dashed rgba(255,255,255,0.35);
}

.impact-stat .stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ht-gold);
    line-height: 1;
}

.impact-stat .stat-label {
    color: rgba(255,255,255,0.85);
    margin-top: 8px;
    font-size: 14px;
}

.impact-stat .stat-note {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #eef2f7, #dce4ef);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--ht-navy);
    transition: transform 0.3s ease;
}

.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item i { font-size: 2.5rem; color: var(--ht-orange); margin-bottom: 8px; opacity: 0.7; }
.gallery-item span { font-size: 13px; opacity: 0.7; }

.cta-grid .btn { margin: 6px; min-width: 160px; }

.tagline-bar {
    background: var(--ht-gold);
    color: var(--ht-navy);
    text-align: center;
    padding: 14px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand-wrap {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.brand-logo {
    height: 48px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    border-radius: 4px;
}

.brand-text {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff !important;
}

.brand-text strong {
    color: var(--ht-orange);
    font-weight: 700;
}

.about-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 30px;
}

.about-logo-wrap img,
.about-logo {
    max-width: 100%;
    max-height: 340px;
    object-fit: contain;
}

.page-breadcrumb {
    font-size: 14px;
}

.page-breadcrumb a {
    color: var(--ht-orange);
}

.labs-hero-mini {
    color: #fff;
}

.labs-hero-mini h1 {
    color: #fff;
    font-weight: 700;
}

.labs-hero-mini p.lead {
    color: rgba(255,255,255,0.88);
    max-width: 720px;
}

.labs-section {
    padding: 80px 0;
}

.labs-section-alt {
    background: #f8f9fa;
}

.labs-card-logo {
    max-height: 80px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
    border-radius: 6px;
}

.labs-card {
    background: #fff;
    border-radius: 10px;
    padding: 32px 28px;
    height: 100%;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--ht-orange);
}

.labs-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

.labs-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--ht-navy);
}

.labs-card .labs-icon {
    font-size: 2rem;
    color: var(--ht-orange);
    margin-bottom: 16px;
}

.labs-tag {
    display: inline-block;
    background: rgba(232,148,58,0.15);
    color: var(--ht-orange);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.labs-tag-coming {
    background: rgba(45,143,168,0.15);
    color: var(--ht-teal);
}

.labs-tag-ongoing {
    background: rgba(253,184,51,0.2);
    color: #b8860b;
}

.labs-tag-previous {
    background: rgba(100,100,100,0.12);
    color: #666;
}

.tech-badge {
    display: inline-block;
    background: var(--ht-navy);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    margin: 4px;
    font-size: 13px;
    font-weight: 500;
}

.initiative-banner {
    background: linear-gradient(135deg, #1a2744 0%, #2d8fa8 100%);
    color: #fff;
    padding: 60px 0;
}

.initiative-banner img.initiative-logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

.faq-item {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.faq-item .faq-q {
    padding: 18px 22px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item .faq-a {
    padding: 0 22px 18px;
    color: #555;
    display: none;
}

.faq-item.open .faq-a { display: block; }

/* AI Assistant */
.ai-chat-page { min-height: 70vh; padding: 40px 0 80px; }

.ai-chat-container {
    max-width: 820px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 560px;
}

.ai-chat-header {
    background: var(--ht-navy);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-chat-header img { height: 36px; border-radius: 4px; }

.ai-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #f4f6f9;
}

.ai-msg {
    margin-bottom: 16px;
    max-width: 85%;
    animation: fadeIn 0.3s ease;
}

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

.ai-msg.user { margin-left: auto; }

.ai-msg-bubble {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.55;
}

.ai-msg.user .ai-msg-bubble {
    background: var(--ht-navy);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.ai-msg.bot .ai-msg-bubble {
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.ai-msg-bubble strong { color: var(--ht-navy); }

.ai-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.ai-typing span {
    width: 8px;
    height: 8px;
    background: #aaa;
    border-radius: 50%;
    animation: bounce 1.2s infinite;
}

.ai-typing span:nth-child(2) { animation-delay: 0.2s; }
.ai-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

.ai-chat-input {
    display: flex;
    padding: 16px;
    border-top: 1px solid #eee;
    gap: 10px;
}

.ai-chat-input input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
}

.ai-chat-input button {
    background: var(--ht-orange);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
}

.ai-chat-input button:hover { background: #d4822f; }

.volunteer-form-panel {
    background: rgba(255,255,255,0.95);
    padding: 28px;
    border-radius: 8px;
    margin-top: 20px;
}

.volunteer-form-panel .form-control {
    margin-bottom: 12px;
}

.footer-designed {
    color: var(--ht-orange) !important;
    font-weight: 600;
}

.skeleton {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 6px;
    height: 16px;
    margin-bottom: 8px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767px) {
    .brand-logo { height: 38px; }
    .brand-text { font-size: 0.95rem; }
    .ai-chat-container { height: 480px; margin: 0 15px; }
}


/* Clean contact & layout fixes */
.contact-clean { padding: 60px 0 80px; background: #f8f9fa; }

.contact-info-bar {
    background: #fff;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    height: 100%;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.contact-info-bar i { color: var(--ht-orange); font-size: 1.5rem; margin-bottom: 10px; }
.contact-info-bar h5 { font-size: 1rem; margin-bottom: 8px; color: var(--ht-navy); }
.contact-info-bar p { margin: 0; font-size: 14px; color: #555; line-height: 1.5; }

.contact-form-box {
    background: #fff;
    border-radius: 10px;
    padding: 32px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}

.contact-form-box label {
    font-weight: 600;
    font-size: 14px;
    color: var(--ht-navy);
    margin-bottom: 6px;
}

.contact-form-box .form-control {
    margin-bottom: 16px;
    border-radius: 6px;
    border: 1px solid #ddd;
    padding: 12px 14px;
}

.contact-sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 28px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.07);
    height: 100%;
}

.btn-labs {
    background: var(--ht-navy);
    color: #fff !important;
    border: none;
    padding: 14px 24px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
    width: 100%;
    text-align: center;
    margin-bottom: 12px;
    transition: background 0.2s;
}

.btn-labs:hover {
    background: var(--ht-teal);
    color: #fff;
    text-decoration: none;
}

.site-nav .nav-link.external::after {
    content: " ↗";
    font-size: 11px;
    opacity: 0.7;
}

.resource-link-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    color: var(--ht-navy);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--ht-gold);
}

.resource-link-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    color: var(--ht-navy);
    text-decoration: none;
}

.resource-link-card h4 { margin-bottom: 6px; font-size: 1.1rem; }
.resource-link-card p { margin: 0; font-size: 14px; color: #666; }

/* Prevent contact page template overlap */
.contact .contact-img { display: none; }
.contact .contact-form { max-width: 100%; margin: 0; }

@media (max-width: 767px) {
    .contact-form-box, .contact-sidebar { margin-bottom: 24px; }
    .navbar-nav .nav-link { padding: 10px 15px; }
}

/* ═══════════════════════════════════════════════════════════
   PREMIUM WORLD-CLASS ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */

:root {
    --ht-orange-deep: #d97706;
    --ht-orange-glow: rgba(232, 148, 58, 0.18);
    --ht-navy-soft: #243352;
    --ht-section-pad: 100px;
    --ht-radius: 14px;
    --ht-radius-sm: 10px;
    --ht-shadow: 0 8px 32px rgba(26, 39, 68, 0.08);
    --ht-shadow-hover: 0 20px 48px rgba(26, 39, 68, 0.14);
}

body {
    font-family: 'Quicksand', sans-serif;
    color: #3a3a3a;
    -webkit-font-smoothing: antialiased;
}

/* Section rhythm */
.about, .service, .event, .team, .volunteer, .facts, .blog, .contact {
    padding: var(--ht-section-pad) 0;
}

.labs-section {
    padding: var(--ht-section-pad) 0;
}

.board-section {
    padding: var(--ht-section-pad) 0 calc(var(--ht-section-pad) - 20px);
}

/* Section headers — premium hierarchy */
.section-header {
    margin-bottom: 56px;
}

.section-header p {
    color: var(--ht-orange);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 13px;
    margin-bottom: 12px;
}

.section-header h2 {
    color: var(--ht-navy);
    font-weight: 700;
    line-height: 1.25;
    position: relative;
    display: inline-block;
}

.section-header.text-center h2::after {
    content: '';
    display: block;
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--ht-orange), var(--ht-gold));
    border-radius: 2px;
    margin: 16px auto 0;
}

/* Buttons */
.btn.btn-custom {
    border-radius: 8px;
    padding: 14px 28px;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 4px 16px var(--ht-orange-glow);
}

.btn.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232, 148, 58, 0.35);
}

/* Carousel — logo mark + premium overlay */
/* Carousel — uniform hero height (all slides same size) */
.carousel .owl-carousel .owl-stage-outer,
.carousel .owl-carousel .owl-stage,
.carousel .owl-carousel .owl-item {
    height: 520px;
}

.carousel .carousel-item {
    position: relative;
    width: 100%;
    height: 520px;
    min-height: 520px;
    max-height: 520px;
    overflow: hidden;
    display: block;
}

.carousel .carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.carousel .carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.carousel .carousel-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 48px);
    max-width: 700px;
}

@media (max-width: 991px) {
    .carousel .owl-carousel .owl-stage-outer,
    .carousel .owl-carousel .owl-stage,
    .carousel .owl-carousel .owl-item,
    .carousel .carousel-item {
        height: 420px;
        min-height: 420px;
        max-height: 420px;
    }
}

@media (max-width: 575px) {
    .carousel .owl-carousel .owl-stage-outer,
    .carousel .owl-carousel .owl-stage,
    .carousel .owl-carousel .owl-item,
    .carousel .carousel-item {
        height: 360px;
        min-height: 360px;
        max-height: 360px;
    }
}

/* Facts & Volunteer parallax — original photos, warm overlay (not flat grey) */
.facts {
    background:
        linear-gradient(135deg, rgba(26, 39, 68, 0.55) 0%, rgba(45, 143, 168, 0.35) 100%),
        url('../img/facts.jpg') center center / cover no-repeat !important;
    background-attachment: fixed;
    min-height: 420px;
    padding: 60px 0;
}

.facts .facts-item,
.facts .facts-text h3,
.facts .facts-text p {
    position: relative;
    z-index: 2;
}

.volunteer {
    background:
        linear-gradient(135deg, rgba(26, 39, 68, 0.5) 0%, rgba(232, 148, 58, 0.25) 100%),
        url('../img/volunteer.jpg') center center / cover no-repeat !important;
    background-attachment: fixed;
    min-height: 420px;
    padding: 60px 0;
}

.volunteer .volunteer-content,
.volunteer .volunteer-form-panel {
    position: relative;
    z-index: 2;
}

@media (max-width: 767px) {
    .facts,
    .volunteer {
        background-attachment: scroll;
    }
}

.carousel .carousel-img::after {
    background: linear-gradient(135deg, rgba(26, 39, 68, 0.82) 0%, rgba(45, 143, 168, 0.55) 100%);
}

.carousel-brand-mark {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 16px;
    border-radius: var(--ht-radius-sm);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
}

.carousel-brand-mark img {
    height: 44px;
    width: auto;
    object-fit: contain;
}

.carousel-brand-mark span {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--ht-navy);
    line-height: 1.2;
    max-width: 140px;
}

.carousel .carousel-text h1 {
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.carousel .carousel-text p {
    font-size: 17px;
    line-height: 1.65;
    max-width: 560px;
}

/* Cards — unified elevation */
.pillar-card,
.program-card,
.labs-card,
.board-member-card,
.service-item,
.event-item,
.contact-info-bar,
.contact-form-box {
    border-radius: var(--ht-radius);
}

.pillar-card {
    box-shadow: var(--ht-shadow);
    border-bottom-width: 4px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--ht-shadow-hover);
}

.program-card {
    box-shadow: var(--ht-shadow);
}

.program-card:hover {
    box-shadow: var(--ht-shadow-hover);
}

.board-member-card {
    border-left-width: 4px;
    border-radius: var(--ht-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.board-member-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ht-shadow-hover);
}

.labs-link-card {
    border-radius: var(--ht-radius);
    padding: 48px 40px;
    box-shadow: var(--ht-shadow-hover);
    text-align: left;
}

/* Service items */
.service-item {
    background: #fff;
    border-radius: var(--ht-radius);
    padding: 36px 28px;
    margin-bottom: 30px;
    box-shadow: var(--ht-shadow);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    height: calc(100% - 30px);
    border-top: 3px solid transparent;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--ht-shadow-hover);
    border-top-color: var(--ht-orange);
}

/* Founder story */
.founder-story {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.founder-story-card {
    background: #fff;
    border-radius: var(--ht-radius);
    padding: 48px;
    box-shadow: var(--ht-shadow);
    border-left: 5px solid var(--ht-orange);
}

.founder-story-card blockquote {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--ht-navy);
    border-left: 4px solid var(--ht-gold);
    padding-left: 24px;
    margin: 24px 0;
    line-height: 1.7;
}

.founder-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 32px;
}

.founder-highlight {
    background: var(--ht-orange-glow);
    border-radius: var(--ht-radius-sm);
    padding: 20px;
    text-align: center;
}

.founder-highlight i {
    color: var(--ht-orange);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.founder-highlight strong {
    display: block;
    color: var(--ht-navy);
    font-size: 0.95rem;
}

.founder-profile {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

.founder-photo-wrap {
    border-radius: var(--ht-radius);
    overflow: hidden;
    box-shadow: var(--ht-shadow-hover);
    background: #fff;
    padding: 12px;
}

.founder-photo-wrap img {
    width: 100%;
    border-radius: calc(var(--ht-radius) - 4px);
    display: block;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
}

.founder-photo-caption {
    text-align: center;
    padding: 16px 8px 4px;
}

.founder-photo-caption h3 {
    font-size: 1.15rem;
    color: var(--ht-navy);
    margin-bottom: 4px;
    font-weight: 700;
}

.founder-photo-caption p {
    font-size: 13px;
    color: var(--ht-orange);
    font-weight: 600;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.founder-story-body p {
    line-height: 1.75;
    color: #555;
    margin-bottom: 16px;
}

.founder-story-body p:last-of-type {
    margin-bottom: 0;
}

.why-exists-card {
    background: linear-gradient(135deg, var(--ht-navy) 0%, #2d4a6e 100%);
    color: #fff;
    border-radius: var(--ht-radius);
    padding: 48px 40px;
    box-shadow: var(--ht-shadow-hover);
}

.why-exists-card h2 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 16px;
}

.why-exists-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.75;
    margin-bottom: 0;
    font-size: 1.05rem;
}

/* Journey timeline */
.journey-section {
    background: #f8fafc;
}

.ht-timeline {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    padding: 8px 0;
}

.ht-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--ht-orange), var(--ht-teal));
    border-radius: 3px;
}

.ht-timeline-item {
    position: relative;
    padding-left: 56px;
    padding-bottom: 36px;
}

.ht-timeline-item:last-child {
    padding-bottom: 0;
}

.ht-timeline-dot {
    position: absolute;
    left: 8px;
    top: 4px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--ht-orange);
    box-shadow: 0 0 0 4px var(--ht-orange-glow);
    z-index: 1;
}

.ht-timeline-item.future .ht-timeline-dot {
    border-color: var(--ht-teal);
    box-shadow: 0 0 0 4px rgba(45, 143, 168, 0.2);
}

.ht-timeline-card {
    background: #fff;
    border-radius: var(--ht-radius-sm);
    padding: 24px 28px;
    box-shadow: var(--ht-shadow);
    border-left: 4px solid var(--ht-orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ht-timeline-item.future .ht-timeline-card {
    border-left-color: var(--ht-teal);
    background: linear-gradient(135deg, #fff 0%, #f0f9fb 100%);
}

.ht-timeline-card:hover {
    transform: translateX(4px);
    box-shadow: var(--ht-shadow-hover);
}

.ht-timeline-year {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ht-orange);
    margin-bottom: 6px;
}

.ht-timeline-item.future .ht-timeline-year {
    color: var(--ht-teal);
}

.ht-timeline-card h3 {
    font-size: 1.1rem;
    color: var(--ht-navy);
    margin-bottom: 8px;
    font-weight: 700;
}

.ht-timeline-card p {
    margin: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #666;
}

@media (max-width: 991px) {
    .founder-profile {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 480px;
        margin: 0 auto;
    }
}

@media (max-width: 767px) {
    .why-exists-card { padding: 32px 24px; }
    .founder-story-card { padding: 32px 24px; }
    .ht-timeline::before { left: 14px; }
    .ht-timeline-dot { left: 2px; width: 24px; height: 24px; }
    .ht-timeline-item { padding-left: 48px; }
}

.impact-pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 28px;
}

.impact-pillar-tag {
    background: rgba(26, 39, 68, 0.06);
    color: var(--ht-navy);
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(232, 148, 58, 0.25);
    transition: background 0.2s, border-color 0.2s;
}

.impact-pillar-tag:hover {
    background: var(--ht-orange-glow);
    border-color: var(--ht-orange);
}

/* About tabs polish */
.about .about-tab .nav.nav-pills .nav-link {
    border-radius: 8px;
    font-weight: 600;
}

.about .about-tab .tab-content {
    line-height: 1.75;
    font-size: 15px;
    color: #555;
}

.about-logo-wrap {
    border-radius: var(--ht-radius);
    box-shadow: var(--ht-shadow);
    background: linear-gradient(145deg, #fff 0%, #f4f7fb 100%);
}

.brand-logo {
    height: 52px;
}

/* Tagline bar */
.tagline-bar {
    padding: 18px;
    font-size: 14px;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--ht-gold) 0%, #ffc857 50%, var(--ht-gold) 100%);
}

/* Facts counter */
.facts-item {
    transition: transform 0.3s ease;
}

.facts-item:hover {
    transform: scale(1.04);
}

/* Footer polish */
.footer {
    background: var(--ht-navy);
}

.footer-brand {
    margin-bottom: 28px;
}

.footer-logo {
    height: 72px;
    width: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.footer-tagline {
    color: var(--ht-orange);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
    font-size: 0.95rem;
}

/* Branded page loader */
#loader {
    background: linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
}

#loader .loader-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#loader .loader-logo {
    height: 88px;
    width: auto;
    object-fit: contain;
    animation: loaderPulse 1.6s ease-in-out infinite;
}

#loader .loader-bar {
    width: 120px;
    height: 4px;
    background: rgba(26, 39, 68, 0.12);
    border-radius: 999px;
    overflow: hidden;
}

#loader .loader-bar span {
    display: block;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, var(--ht-orange), var(--ht-teal));
    border-radius: 999px;
    animation: loaderSlide 1.2s ease-in-out infinite;
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.85; transform: scale(0.98); }
}

@keyframes loaderSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(260%); }
}

/* Cover banner hero on inner pages */
.labs-hero-mini {
    background:
        linear-gradient(135deg, rgba(26, 39, 68, 0.88) 0%, rgba(45, 143, 168, 0.72) 100%),
        url('../img/page-header.jpg') center center / cover no-repeat;
}

.labs-hero-mini .page-breadcrumb,
.labs-hero-mini h1,
.labs-hero-mini p.lead {
    position: relative;
    z-index: 1;
}

.labs-hero-mini::after {
    content: '';
    position: absolute;
    bottom: 24px;
    right: 32px;
    width: 72px;
    height: 72px;
    background: url('../img/official-logo.png') center / contain no-repeat;
    opacity: 0.18;
    pointer-events: none;
}

@media (max-width: 767px) {
    .footer-logo { height: 56px; }
    #loader .loader-logo { height: 72px; }
    .labs-hero-mini::after { width: 48px; height: 48px; right: 16px; bottom: 16px; }
}

/* Page hero */
.labs-hero-mini {
    padding: 100px 0 72px;
    position: relative;
    overflow: hidden;
}

.labs-hero-mini::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--ht-orange-glow) 0%, transparent 70%);
    pointer-events: none;
}

/* Navbar subtle shadow on scroll handled by existing JS if any */
.site-nav {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

/* Five-column leadership team */
.team-row-five {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: -12px;
    margin-right: -12px;
}

.team-row-five .col-team {
    flex: 0 0 20%;
    max-width: 20%;
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 24px;
}

@media (max-width: 1199px) {
    .team-row-five .col-team {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 767px) {
    .team-row-five .col-team {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 479px) {
    .team-row-five .col-team {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.labs-team-photo-wrap {
    border-radius: var(--ht-radius);
    overflow: hidden;
    box-shadow: var(--ht-shadow-hover);
}

.labs-team-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

/* Accessibility — skip link */
.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 10px 18px;
    background: var(--ht-orange);
    color: #fff;
    font-weight: 600;
    border-radius: var(--ht-radius-sm);
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 16px;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--ht-orange);
    outline-offset: 2px;
}

.page-breadcrumb a {
    color: var(--ht-teal);
    text-decoration: none;
}

.page-breadcrumb a:hover,
.page-breadcrumb a:focus-visible {
    color: var(--ht-orange);
    text-decoration: underline;
}

.challenge-teaser {
    padding: 40px 0;
    background: #f8f9fa;
}

.challenge-teaser-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.challenge-teaser-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    color: var(--ht-orange);
    font-weight: 600;
    margin: 10px 0 6px;
}

.challenge-teaser h2 {
    color: var(--ht-navy);
    font-weight: 700;
    font-size: 1.65rem;
    margin-bottom: 12px;
}

.challenge-teaser-lead {
    color: #555;
    font-size: 0.98rem;
    line-height: 1.6;
    margin-bottom: 14px;
}

.challenge-teaser-focus {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid rgba(26, 39, 68, 0.12);
    border-radius: 999px;
    font-size: 0.82rem;
    color: var(--ht-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.challenge-teaser-focus i {
    color: var(--ht-orange);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.challenge-teaser-points {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.challenge-teaser-points li {
    background: #fff;
    border: 1px solid rgba(26, 39, 68, 0.1);
    border-left: 3px solid var(--ht-orange);
    padding: 6px 12px;
    border-radius: var(--ht-radius-sm);
    font-size: 0.85rem;
    color: var(--ht-navy);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.challenge-section-page {
    padding-top: 48px;
}

@media (max-width: 991px) {
    .challenge-teaser {
        padding: 32px 0;
    }
    .challenge-teaser h2 {
        font-size: 1.45rem;
    }
    .challenge-teaser-focus {
        font-size: 0.78rem;
        padding: 7px 12px;
        border-radius: var(--ht-radius-sm);
        text-align: left;
    }
}

/* Why HealingTech Matters — Challenge section (full page) */
.challenge-section {
    position: relative;
    padding: var(--ht-section-pad) 0;
    background: linear-gradient(165deg, #0f1829 0%, var(--ht-navy) 45%, #1e3a5f 100%);
    color: #fff;
    overflow: hidden;
}

.challenge-bg-glow {
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(232, 148, 58, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.challenge-launch-tag {
    background: rgba(232, 148, 58, 0.2) !important;
    color: var(--ht-orange) !important;
    border: 1px solid rgba(232, 148, 58, 0.35);
    margin-bottom: 16px;
}

.challenge-eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    color: var(--ht-orange);
    font-weight: 600;
    margin-bottom: 8px;
}

.challenge-header h2 {
    color: #fff;
    font-weight: 700;
    font-size: 2.35rem;
    margin-bottom: 16px;
}

.challenge-lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.05rem;
    line-height: 1.7;
}

.challenge-visual-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 28px auto 24px;
    max-width: 640px;
}

.challenge-photo {
    position: relative;
    border-radius: var(--ht-radius-sm);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    height: 120px;
    background: rgba(0, 0, 0, 0.2);
}

.challenge-photo img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    object-position: center center;
    display: block;
    transition: transform 0.35s ease;
}

.challenge-photo:hover img {
    transform: scale(1.04);
}

.challenge-map-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--ht-radius-sm);
    backdrop-filter: blur(8px);
}

.challenge-map-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ht-orange);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.challenge-stats-grid {
    margin-bottom: 48px;
}

.challenge-stat-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ht-radius);
    padding: 28px 24px;
    height: 100%;
    backdrop-filter: blur(12px);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    margin-bottom: 24px;
}

.challenge-stat-card:hover,
.challenge-stat-card:focus {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(232, 148, 58, 0.45);
    outline: none;
}

.challenge-stat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 12px;
}

.challenge-stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(232, 148, 58, 0.18);
    color: var(--ht-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.challenge-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.challenge-stat-number sup {
    font-size: 1.1rem;
    top: -0.6em;
    color: var(--ht-orange);
}

.challenge-stat-vs {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 4px;
}

.challenge-stat-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.35;
}

.challenge-stat-why {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
    margin-bottom: 12px;
}

.challenge-stat-response {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.55;
    margin-bottom: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.challenge-stat-response strong {
    color: var(--ht-orange);
}

.challenge-stat-source {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.2px;
    margin: 0;
}

.challenge-timeline {
    margin: 56px 0 48px;
    padding: 40px 32px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--ht-radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.challenge-timeline h3 {
    color: #fff;
    font-weight: 700;
}

.challenge-timeline-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    position: relative;
}

.challenge-timeline-track::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--ht-orange), var(--ht-teal));
    opacity: 0.5;
}

.challenge-timeline-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.challenge-timeline-dot {
    display: block;
    width: 36px;
    height: 36px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--ht-navy);
    border: 3px solid var(--ht-orange);
    box-shadow: 0 0 0 6px rgba(232, 148, 58, 0.15);
}

.challenge-timeline-step h4 {
    color: var(--ht-orange);
    font-weight: 700;
    margin-bottom: 8px;
}

.challenge-timeline-step p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    max-width: 220px;
    margin-left: auto;
    margin-right: auto;
}

.challenge-cta {
    padding: 48px 32px;
    background: linear-gradient(135deg, rgba(232, 148, 58, 0.12) 0%, rgba(45, 143, 168, 0.12) 100%);
    border-radius: var(--ht-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.challenge-cta h3 {
    color: #fff;
    font-weight: 700;
    font-size: 1.65rem;
    margin-bottom: 12px;
}

.challenge-cta p {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
}

.challenge-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.challenge-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    color: #fff !important;
    background: transparent !important;
}

.challenge-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #fff !important;
}

@media (max-width: 991px) {
    .challenge-visual-strip {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        gap: 8px;
    }
    .challenge-photo,
    .challenge-photo img {
        height: 96px;
    }
    .challenge-timeline-track {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .challenge-timeline-track::before {
        display: none;
    }
    .challenge-header h2 {
        font-size: 1.85rem;
    }
}

/* Responsive refinements */
@media (max-width: 991px) {
    :root { --ht-section-pad: 72px; }
    .carousel-brand-mark { top: 16px; left: 16px; padding: 8px 12px; }
    .carousel-brand-mark img { height: 36px; }
    .carousel-brand-mark span { display: none; }
    .founder-story-card { padding: 32px 24px; }
    .labs-link-card { padding: 32px 24px; text-align: center; }
}

@media (max-width: 767px) {
    :root { --ht-section-pad: 56px; }
    .section-header { margin-bottom: 36px; }
    .section-header h2 { font-size: 1.65rem; }
    .carousel .carousel-text h1 { font-size: 1.75rem; }
    .carousel .carousel-text p { font-size: 15px; }
    .impact-pillars { gap: 8px; }
    .impact-pillar-tag { font-size: 12px; padding: 8px 14px; }
}
