/* Shri Anjani / BigNGO-style tenant microsite */
:root {
    --tenant-primary: #1d4ed8;
    --tenant-primary-dark: #1e3a8a;
    --tenant-accent: #0ea5e9;
    --site-text: #0f172a;
    --site-muted: #64748b;
    --site-border: #e2e8f0;
    --site-bg: #f8fafc;
}

body.theme-modern { --tenant-primary: #1d4ed8; }
body.theme-classic { --tenant-primary: #059669; }

.tenant-topbar {
    background: var(--tenant-primary-dark);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.4rem 0;
}

.tenant-topbar a { color: rgba(255,255,255,.9); text-decoration: none; }
.tenant-topbar a:hover { color: #fff; }

.tenant-navbar {
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.tenant-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1rem;
    color: var(--site-text) !important;
    max-width: 280px;
    line-height: 1.3;
}

.tenant-navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--site-text) !important;
    padding: 0.5rem 0.85rem !important;
}

.tenant-navbar .nav-link:hover { color: var(--tenant-primary) !important; }

.btn-tenant-primary {
    background: var(--tenant-primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
}

.btn-tenant-primary:hover {
    background: var(--tenant-primary-dark);
    color: #fff;
}

.btn-tenant-outline {
    border: 2px solid #fff;
    color: #fff;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    background: transparent;
}

.btn-tenant-outline:hover { background: rgba(255,255,255,.15); color: #fff; }

.lang-bar {
    background: #f1f5f9;
    border-bottom: 1px solid var(--site-border);
    padding: 0.35rem 0;
    overflow-x: auto;
    white-space: nowrap;
}

.lang-bar a {
    font-size: 0.75rem;
    color: var(--site-muted);
    text-decoration: none;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

.lang-bar a:hover, .lang-bar a.active { color: var(--tenant-primary); background: #e0e7ff; }

/* Hero */
.site-hero {
    background: linear-gradient(135deg, var(--tenant-primary-dark) 0%, var(--tenant-primary) 60%, var(--tenant-accent) 100%);
    color: #fff;
    padding: 4rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.site-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
}

.site-hero .lead {
    font-size: 1.05rem;
    opacity: 0.92;
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

/* Section titles */
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--tenant-primary);
    margin-bottom: 0.35rem;
}

.section-title {
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--site-text);
    margin-bottom: 1.5rem;
}

.site-section { padding: 3.5rem 0; }
.site-section-alt { background: var(--site-bg); }

/* Stats */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-icon { color: var(--tenant-primary); font-size: 1.25rem; margin-bottom: 0.5rem; }

.stat-card .stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--tenant-primary);
    line-height: 1;
}

.stat-card .stat-desc {
    font-size: 0.85rem;
    color: var(--site-muted);
    margin-top: 0.35rem;
}

/* Program cards */
.program-card {
    border: 1px solid var(--site-border);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    transition: box-shadow 0.2s, transform 0.2s;
    background: #fff;
}

.program-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-3px);
}

.program-card-img {
    height: 160px;
    background: linear-gradient(135deg, var(--tenant-primary), var(--tenant-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.5rem;
}

.program-card-body { padding: 1.25rem; }

.program-card h5 { font-weight: 700; font-size: 1rem; }

.program-card .explore-link {
    color: var(--tenant-primary);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}

/* Campaign */
.campaign-featured {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--site-border);
    background: #fff;
}

.campaign-featured-img {
    min-height: 200px;
    background: linear-gradient(135deg, #7c3aed, var(--tenant-primary));
}

.campaign-progress {
    height: 10px;
    border-radius: 5px;
    background: #e2e8f0;
}

.campaign-progress-bar {
    height: 100%;
    border-radius: 5px;
    background: var(--tenant-primary);
}

.campaign-card-sm {
    border: 1px solid var(--site-border);
    border-radius: 10px;
    padding: 1.25rem;
    height: 100%;
    background: #fff;
}

/* Blog */
.blog-card {
    border: 1px solid var(--site-border);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    background: #fff;
    transition: box-shadow 0.2s;
}

.blog-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }

.blog-card-meta {
    font-size: 0.75rem;
    color: var(--tenant-primary);
    font-weight: 600;
    text-transform: uppercase;
}

.blog-card h5 { font-weight: 700; font-size: 1rem; }
.blog-card h5 a { color: var(--site-text); text-decoration: none; }
.blog-card h5 a:hover { color: var(--tenant-primary); }

/* Team */
.team-card {
    text-align: center;
    padding: 1.5rem 1rem;
}

.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tenant-primary), var(--tenant-accent));
    color: #fff;
    font-weight: 800;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.team-card h6 { font-weight: 700; margin-bottom: 0.15rem; }
.team-card small { color: var(--site-muted); }

/* Testimonials */
.testimonial-card {
    border: 1px solid var(--site-border);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    background: #fff;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 3rem;
    color: var(--tenant-primary);
    opacity: 0.25;
    line-height: 1;
    position: absolute;
    top: 0.5rem;
    left: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--site-border);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tenant-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Values */
.value-card {
    border-left: 3px solid var(--tenant-primary);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}

.value-card h6 { font-weight: 700; margin-bottom: 0.35rem; }
.value-card p { font-size: 0.9rem; color: var(--site-muted); margin: 0; }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; }

.timeline::before {
    content: '';
    position: absolute;
    left: 0.4rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--site-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.65rem;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--tenant-primary);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--tenant-primary);
}

.timeline-year {
    font-weight: 800;
    color: var(--tenant-primary);
    font-size: 0.9rem;
}

/* Partners */
.partner-card {
    text-align: center;
    padding: 1.25rem;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: #fff;
}

.partner-badge {
    display: inline-block;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    margin-top: 0.5rem;
}

/* CTA band */
.site-cta {
    background: linear-gradient(135deg, var(--tenant-primary-dark), var(--tenant-primary));
    color: #fff;
    padding: 3.5rem 0;
    text-align: center;
}

.site-cta h2 { font-weight: 800; margin-bottom: 1.25rem; }

/* Footer */
.site-footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 3rem 0 1.5rem;
}

.site-footer h6 {
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.site-footer a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.85rem;
    display: block;
    padding: 0.2rem 0;
}

.site-footer a:hover { color: #fff; }

.site-footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 2rem;
    padding-top: 1.25rem;
    font-size: 0.8rem;
    color: #64748b;
}

/* Contact page */
.contact-info-card {
    border: 1px solid var(--site-border);
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff;
}

.contact-info-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #e0e7ff;
    color: var(--tenant-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

/* Cert / transparency */
.metric-card {
    text-align: center;
    padding: 1.5rem;
    border: 1px solid var(--site-border);
    border-radius: 10px;
    background: #fff;
}

.metric-card .metric-value {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--tenant-primary);
}

.metric-card .metric-label {
    font-size: 0.85rem;
    color: var(--site-muted);
}

.cert-card {
    border: 1px solid var(--site-border);
    border-radius: 10px;
    padding: 1.25rem;
    background: #fff;
}

.cert-type {
    font-weight: 800;
    color: var(--tenant-primary);
    font-size: 1.1rem;
}

.event-card {
    border: 1px solid var(--site-border);
    border-radius: 10px;
    padding: 1.25rem;
    background: #fff;
}

.page-header {
    background: var(--site-bg);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--site-border);
}

.page-header h1 {
    font-weight: 800;
    font-size: 1.85rem;
    margin: 0;
}

/* Global polish */
body.theme-modern {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--site-text);
    background: #fff;
}

.link-primary-custom {
    color: var(--tenant-primary);
}

.link-primary-custom:hover {
    color: var(--tenant-primary-dark);
}

.page-header-accent {
    background: linear-gradient(180deg, var(--site-bg) 0%, #fff 100%);
    position: relative;
}

.page-header-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--tenant-primary-dark), var(--tenant-primary), var(--tenant-accent));
}

.lang-link {
    font-size: 0.78rem;
    color: var(--site-muted);
    text-decoration: none;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: all 0.15s ease;
}

.lang-link:hover,
.lang-link.active {
    color: var(--tenant-primary);
    background: #e0e7ff;
    border-color: #c7d2fe;
}

.lang-dropdown { max-height: 280px; overflow-y: auto; }

.blog-card-inner { padding: 1.25rem; }

.team-card {
    border: 1px solid var(--site-border);
    border-radius: 12px;
    background: #fff;
    transition: box-shadow 0.2s, transform 0.2s;
}

.team-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    transform: translateY(-2px);
}

.content-card {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.site-form-card {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

.site-form-card .form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.site-form-card .form-control,
.site-form-card .form-select {
    border-radius: 8px;
    border-color: var(--site-border);
}

.site-form-card .form-control:focus,
.site-form-card .form-select:focus {
    border-color: var(--tenant-primary);
    box-shadow: 0 0 0 0.2rem rgba(29, 78, 216, 0.12);
}

.donor-wall-card {
    background: var(--site-bg);
    border: 1px solid var(--site-border);
    border-radius: 16px;
    padding: 1.5rem;
    height: 100%;
}

.donor-wall-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--site-border);
}

.donor-wall-item:last-child { border-bottom: none; }

.article-body {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #334155;
}

.article-body p { margin-bottom: 1rem; }

.stat-card {
    background: #fff;
    border: 1px solid var(--site-border);
    border-radius: 12px;
    height: 100%;
}

.campaign-card-sm,
.event-card {
    transition: box-shadow 0.2s, transform 0.2s;
}

.campaign-card-sm:hover,
.event-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
    transform: translateY(-2px);
}

.tenant-navbar .navbar-toggler {
    border-color: var(--site-border);
}

/* Hero carousel */
.site-hero-carousel .carousel-item {
    min-height: 520px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(29, 78, 216, 0.55) 100%);
}

.carousel-caption-custom {
    position: relative;
    z-index: 2;
    padding: 5rem 1rem 4rem;
    color: #fff;
}

.site-hero-carousel .carousel-control-prev-icon,
.site-hero-carousel .carousel-control-next-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.4));
}

.program-card-img {
    background-size: cover;
    background-position: center;
}

.campaign-featured-img {
    background-size: cover;
    background-position: center;
    min-height: 240px;
}

.blog-card-image {
    height: 160px;
    background-size: cover;
    background-position: center;
    margin: -1.25rem -1.25rem 1rem;
    border-radius: 10px 10px 0 0;
}

.team-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}

.card-image-top {
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 10px 10px 0 0;
}

@media (max-width: 767px) {
    .site-hero { padding: 2.75rem 0 3.25rem; }
    .site-section { padding: 2.5rem 0; }
    .site-form-card { padding: 1.25rem; }
    .site-hero-carousel .carousel-item { min-height: 420px; }
    .carousel-caption-custom { padding: 3rem 1rem 2.5rem; }
}
