/* ==========================================================================
   Navbharat Bihar Pravasi Sahayata Kendra - Enterprise CSS Design System
   Modern Glassmorphic Theme with Vibrant Gradients & Micro-animations
   ========================================================================== */

:root {
    --primary-color: #dc2626;
    --primary-gradient: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    --secondary-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --accent-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --accent-success: linear-gradient(135deg, #10b981 0%, #047857 100%);
    --accent-info: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --sidebar-bg: #0f172a;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: #f8fafc;
    color: #334155;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Navbar */
.navbar-custom {
    background: #ffffff;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    height: 70px;
}

.brand-title {
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Sidebar */
.sidebar {
    width: 260px;
    min-height: calc(100vh - 70px);
    background: var(--sidebar-bg);
    color: #94a3b8;
    transition: all 0.3s ease;
}

.sidebar .nav-link {
    color: #94a3b8;
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 0.5rem;
    margin: 0.2rem 0.75rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.sidebar .nav-link:hover, .sidebar .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link i {
    width: 24px;
    font-size: 1.1rem;
    margin-right: 0.75rem;
}

.sidebar .nav-link.active i {
    color: #ef4444;
}

/* Dashboard Cards */
.card-stat {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
    position: relative;
}

.card-stat:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-stat .icon-shape {
    width: 56px;
    height: 56px;
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
}

.bg-gradient-danger { background: var(--primary-gradient); }
.bg-gradient-dark { background: var(--secondary-gradient); }
.bg-gradient-gold { background: var(--accent-gold); }
.bg-gradient-success { background: var(--accent-success); }
.bg-gradient-info { background: var(--accent-info); }

/* Target Progress Bar */
.target-progress-container {
    background: #e2e8f0;
    border-radius: 1rem;
    height: 18px;
    overflow: hidden;
    position: relative;
}

.target-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 1rem;
    transition: width 1s ease-in-out;
}

/* Glassmorphic Widget */
.glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
}

/* Tables */
.table-custom {
    border-collapse: separate;
    border-spacing: 0 0.5rem;
}

.table-custom tbody tr {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border-radius: 0.5rem;
}

.table-custom tbody td {
    padding: 1rem;
    vertical-align: middle;
}

.table-custom tbody td:first-child {
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
}

.table-custom tbody td:last-child {
    border-top-right-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Custom Badges */
.badge-gold {
    background: var(--accent-gold);
    color: #ffffff;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* ==========================================================================
   Footer Component Styles
   ========================================================================== */
.app-footer {
    background: linear-gradient(180deg, #0f172a 0%, #070a12 100%);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #ef4444 0%, #f59e0b 50%, #10b981 100%) 1;
    color: #cbd5e1;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
}

.footer-top-callout {
    background: rgba(15, 23, 42, 0.6);
}

.footer-heading {
    font-family: var(--font-heading);
    letter-spacing: 0.3px;
    font-size: 1.05rem;
}

.footer-heading .heading-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2.5px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.text-light-50 {
    color: #94a3b8 !important;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-links a i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.footer-links a:hover i {
    color: #ef4444 !important;
}

.footer-social-icons .social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social-icons .social-btn:hover {
    background: var(--primary-gradient);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
    border-color: transparent;
}

.status-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.back-to-top-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-color: rgba(255, 255, 255, 0.2);
}

.back-to-top-btn:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #fff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Partners Smooth Marquee Carousel
   ========================================================================== */
.partners-section {
    background: #f8fafc;
    overflow: hidden;
    position: relative;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 1.5rem 0;
}

.marquee-container::before,
.marquee-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-container::before {
    left: 0;
    background: linear-gradient(90deg, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
}

.marquee-container::after {
    right: 0;
    background: linear-gradient(270deg, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
}

.marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 2rem;
    animation: marqueeScroll 45s linear infinite;
}


.marquee-container:hover .marquee-track {
    animation-play-state: paused;
}

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

.partner-card {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.partner-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(220, 38, 38, 0.15);
    border-color: #ef4444;
}

.partner-card img {
    height: 42px;
    width: 110px;
    object-fit: contain;
    filter: grayscale(15%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-card:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.partner-info {
    text-align: left;
}

.partner-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
    display: block;
    line-height: 1.2;
}

.partner-category {
    font-size: 0.72rem;
    font-weight: 600;
    color: #ef4444;
    display: inline-block;
    background: #fef2f2;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    margin-top: 0.2rem;
}

/* ==========================================================================
   About Page Hero, Team Cards & Counter Styling
   ========================================================================== */
.about-hero-banner {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 440px;
}

.about-hero-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(185, 28, 28, 0.88) 100%);
    min-height: 440px;
    display: flex;
    align-items: center;
}

.team-card {
    background: #ffffff;
    border-radius: 1.25rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e2e8f0;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.12);
    border-color: #fca5a5;
}

.team-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #0f172a;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.06);
}

.team-role-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.team-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.25s ease;
}

.team-social-btn:hover {
    background: #ef4444;
    color: #ffffff;
    transform: translateY(-2px);
}

.counter-box {
    background: #ffffff;
    border-radius: 1.25rem;
    padding: 2rem 1.5rem;
    border-top: 4px solid #ef4444;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.counter-box:hover {
    transform: translateY(-4px);
}

.counter-number {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.4rem;
    color: #0f172a;
    line-height: 1.1;
}

/* Animated Statewide Impact Section */
.impact-section {
    position: relative;
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 50%, #881337 100%);
    overflow: hidden;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 65%);
    animation: impactGlow 8s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes impactGlow {
    0% { transform: scale(0.9) translate(-2%, -2%); }
    100% { transform: scale(1.1) translate(2%, 2%); }
}

.impact-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 1.25rem;
    padding: 2.25rem 1.5rem;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.impact-card:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.impact-icon-circle {
    width: 65px;
    height: 65px;
    margin: 0 auto 1.25rem auto;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2);
}

.impact-card:hover .impact-icon-circle {
    transform: rotate(12deg) scale(1.15);
    background: #ffffff;
    color: #dc2626 !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
}




