/* ==========================================================================
   HUM SABHI UNIFIED DESIGN SYSTEM & UTILITY STYLESHEET
   Brand Palette:
   - Deep Plum: #2D1441 / #4A154B / #3A1448
   - Warm Gold: #EAB308 / #F59E0B / #D8B66D
   - Vibrant Orange: #F97316 / #EA580C
   - Clean Neutrals: #0F172A, #334155, #64748B, #F8FAFC, #FFFFFF
   ========================================================================== */

:root {
    --hs-plum: #2d1441;
    --hs-plum-dark: #1e0a2d;
    --hs-plum-light: #4a154b;
    --hs-gold: #eab308;
    --hs-gold-warm: #f59e0b;
    --hs-gold-soft: #fef3c7;
    --hs-gold-muted: #d8b66d;
    --hs-orange: #f97316;
    --hs-orange-dark: #ea580c;
    --hs-orange-soft: #ffedd5;
    --hs-body-bg: #f8fafc;
    --hs-card-bg: #ffffff;
    --hs-text-main: #0f172a;
    --hs-text-muted: #64748b;
    --hs-border: #e2e8f0;
    --hs-border-subtle: #f1f5f9;
    --hs-font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--hs-font-family);
    font-size: 0.875rem; /* 14px */
    line-height: 1.5;
    color: var(--hs-text-main);
    background-color: var(--hs-body-bg);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   DISCIPLINED TYPOGRAPHY
   ========================================================================== */
h1,
.h1,
.hs-hero-title {
    font-size: clamp(1.75rem, 3.2vw, 2.35rem) !important;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h2,
.h2,
.hs-section-title {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem) !important;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.015em;
    margin-bottom: 0.35rem;
}

h3,
.h3,
.hs-card-title {
    font-size: 1rem !important; /* 16px */
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.4rem;
}

@media (min-width: 768px) {
    h3,
    .h3,
    .hs-card-title {
        font-size: 1.0625rem !important; /* 17px */
    }
}

h4,
.h4,
.hs-subheading {
    font-size: 0.9375rem !important; /* 15px */
    font-weight: 600;
    line-height: 1.4;
}

.hs-lead {
    font-size: 0.875rem;
    color: var(--hs-text-muted);
    line-height: 1.55;
}

.hs-meta,
.hs-caption,
small,
.small {
    font-size: 0.75rem !important; /* 12px */
    line-height: 1.4;
}

/* ==========================================================================
   GLOBAL SECTION SPACING & UTILITIES
   ========================================================================== */
.hs-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    position: relative;
}

@media (min-width: 992px) {
    .hs-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

.hs-section-header {
    margin-bottom: 1.75rem;
}

.hs-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    margin-bottom: 0.5rem;
}

.hs-eyebrow-gold {
    background-color: var(--hs-gold-soft);
    color: #92400e;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.hs-eyebrow-orange {
    background-color: var(--hs-orange-soft);
    color: #c2410c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.hs-eyebrow-plum {
    background-color: #ede9fe;
    color: var(--hs-plum-dark);
    border: 1px solid rgba(74, 21, 75, 0.2);
}

/* Text Truncation / Clamping */
.hs-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hs-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   UNIFIED BUTTON SYSTEM
   ========================================================================== */
.hs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-size: 0.8125rem; /* 13px */
    font-weight: 600;
    line-height: 1;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none !important;
    cursor: pointer;
    border: 1px solid transparent;
    white-space: nowrap;
}

.hs-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
}

.hs-btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    border-radius: 10px;
}

/* Primary Plum Button */
.hs-btn-primary {
    background-color: var(--hs-plum);
    color: #ffffff !important;
    border-color: var(--hs-plum);
}
.hs-btn-primary:hover {
    background-color: var(--hs-plum-dark);
    border-color: var(--hs-plum-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 20, 65, 0.25);
}

/* Vibrant Orange Button (Urgent Action / Donate) */
.hs-btn-orange {
    background-color: var(--hs-orange);
    color: #ffffff !important;
    border-color: var(--hs-orange);
}
.hs-btn-orange:hover {
    background-color: var(--hs-orange-dark);
    border-color: var(--hs-orange-dark);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

/* Warm Gold Button */
.hs-btn-gold {
    background-color: var(--hs-gold);
    color: var(--hs-plum-dark) !important;
    border-color: var(--hs-gold);
}
.hs-btn-gold:hover {
    background-color: var(--hs-gold-warm);
    border-color: var(--hs-gold-warm);
    color: var(--hs-plum-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

/* Outline Buttons */
.hs-btn-outline {
    background-color: transparent;
    color: var(--hs-plum);
    border-color: var(--hs-plum);
}
.hs-btn-outline:hover {
    background-color: var(--hs-plum);
    color: #ffffff !important;
}

.hs-btn-outline-white {
    background-color: transparent;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.4);
}
.hs-btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff !important;
}

/* ==========================================================================
   UNIFIED COMPACT CARD SYSTEM
   ========================================================================== */
.hs-card {
    background-color: var(--hs-card-bg);
    border: 1px solid var(--hs-border);
    border-radius: 12px;
    padding: 1rem;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}

.hs-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -4px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.hs-card-img-wrap {
    height: 175px;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    margin-bottom: 0.75rem;
    background-color: #f1f5f9;
}

.hs-card-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.hs-card:hover .hs-card-img {
    transform: scale(1.03);
}

.hs-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hs-card-footer {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--hs-border-subtle);
}

/* Badge system */
.hs-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    line-height: 1.2;
}

.hs-badge-urgent {
    background-color: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.hs-badge-success {
    background-color: #dcfce7;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.hs-badge-gold {
    background-color: var(--hs-gold-soft);
    color: #92400e;
    border: 1px solid #fde68a;
}

.hs-badge-plum {
    background-color: #ede9fe;
    color: var(--hs-plum);
    border: 1px solid #ddd6fe;
}

/* Progress Bar */
.hs-progress {
    height: 6px;
    border-radius: 9999px;
    background-color: #e2e8f0;
    overflow: hidden;
    margin: 0.5rem 0;
}

.hs-progress-bar {
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--hs-gold) 0%,
        var(--hs-orange) 100%
    );
    border-radius: 9999px;
    transition: width 0.4s ease;
}

/* ==========================================================================
   HEADER TICKER & QUICK ACTION STRIP
   ========================================================================== */
.hs-ticker-bar {
    background: linear-gradient(90deg, #1e0a2d 0%, #2d1441 50%, #4a154b 100%);
    color: #ffffff;
    font-size: 0.78125rem; /* 12.5px */
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(234, 179, 8, 0.25);
    overflow: hidden;
    position: relative;
    z-index: 100;
}

.hs-ticker-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.hs-ticker-badge {
    background-color: var(--hs-gold);
    color: var(--hs-plum-dark);
    font-weight: 700;
    font-size: 0.6875rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.hs-ticker-marquee {
    flex-grow: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        black 3%,
        black 97%,
        transparent 100%
    );
}

.hs-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    animation: hsMarquee 38s linear infinite;
    will-change: transform;
}

.hs-ticker-track:hover {
    animation-play-state: paused;
}

@keyframes hsMarquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.hs-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #f8fafc;
    font-size: 0.78125rem;
}

/* Quick Action Strip (Right below Hero) */
.hs-quick-strip {
    background-color: #ffffff;
    border-bottom: 1px solid var(--hs-border);
    padding: 0.75rem 0;
    box-shadow: 0 4px 15px -3px rgba(15, 23, 42, 0.04);
    position: relative;
    z-index: 20;
}

.hs-quick-strip .hs-pill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    border-radius: 9999px;
    background-color: #f8fafc;
    border: 1px solid var(--hs-border);
    color: var(--hs-text-main);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hs-quick-strip .hs-pill-btn i {
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.hs-quick-strip .hs-pill-btn:hover {
    background-color: var(--hs-plum);
    border-color: var(--hs-plum);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 20, 65, 0.15);
}

.hs-quick-strip .hs-pill-btn:hover i {
    transform: scale(1.15);
}

.hs-quick-strip .hs-pill-btn.hs-pill-primary {
    background-color: var(--hs-plum);
    border-color: var(--hs-plum);
    color: #ffffff !important;
}

.hs-quick-strip .hs-pill-btn.hs-pill-primary:hover {
    background-color: var(--hs-plum-dark);
}

.hs-quick-strip .hs-pill-btn.hs-pill-orange {
    background-color: var(--hs-orange);
    border-color: var(--hs-orange);
    color: #ffffff !important;
}

.hs-quick-strip .hs-pill-btn.hs-pill-orange:hover {
    background-color: var(--hs-orange-dark);
}

/* ==========================================================================
   COMPACT HERO SECTION (min-height: 72vh on desktop)
   ========================================================================== */
.hs-compact-hero {
    min-height: 72vh;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(249, 115, 22, 0.2) 0%,
            transparent 45%
        ),
        radial-gradient(
            circle at 15% 85%,
            rgba(234, 179, 8, 0.15) 0%,
            transparent 40%
        ),
        linear-gradient(135deg, #1e0a2d 0%, #2d1441 55%, #3b1449 100%);
    color: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    padding: 3rem 0;
    overflow: hidden;
}

.hs-hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(234, 179, 8, 0.4);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    color: var(--hs-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    max-width: 100%;
    white-space: normal; /* Zero clipping fix */
}

/* Premier drive card horizontal layout */
.hs-premier-drive-card {
    background: #ffffff;
    border: 1px solid var(--hs-border);
    border-radius: 14px;
    overflow: hidden;
    max-height: 320px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

@media (max-width: 991px) {
    .hs-premier-drive-card {
        max-height: none;
    }
}

.hs-premier-drive-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    max-height: 320px;
    object-fit: cover;
}

/* Ensure no horizontal overflow on mobile screens */
@media (max-width: 480px) {
    .container,
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}
