/**
 * HealthFundMe - Professional Healthcare Crowdfunding Platform
 * Design inspired by modern charity/donation platforms
 */

/* =====================================
   HELPA HEALTHCARE COLOR PALETTE
   Based on professional medical branding
   ===================================== */

:root {
    /* PRIMARY COLORS - Medical Blue Palette */
    --primary-50: #e3f2fd;          /* Lightest blue tint */
    --primary-100: #bbdefb;         /* Light blue tint */
    --primary-200: #90caf9;         /* Medium light blue */
    --primary-300: #64b5f6;         /* Medium blue */
    --primary-400: #42a5f5;         /* Medium dark blue */
    --primary-500: #2196f3;         /* Base primary blue */
    --primary-600: #1e88e5;         /* Dark blue */
    --primary-700: #1976d2;         /* Darker blue */
    --primary-800: #1565c0;         /* Very dark blue */
    --primary-900: #0d47a1;         /* Darkest blue shade */

    /* SECONDARY COLORS - Healing Green Palette */
    --secondary-50: #e8f5e8;        /* Lightest green tint */
    --secondary-100: #c8e6c9;       /* Light green tint */
    --secondary-200: #a5d6a7;       /* Medium light green */
    --secondary-300: #81c784;       /* Medium green */
    --secondary-400: #66bb6a;       /* Medium dark green */
    --secondary-500: #4caf50;       /* Base secondary green */
    --secondary-600: #43a047;       /* Dark green */
    --secondary-700: #388e3c;       /* Darker green */
    --secondary-800: #2e7d32;       /* Very dark green */
    --secondary-900: #1b5e20;       /* Darkest green shade */

    /* ACCENT COLORS - Warm Healthcare Palette */
    --accent-50: #fff3e0;           /* Lightest orange tint */
    --accent-100: #ffe0b2;          /* Light orange tint */
    --accent-200: #ffcc80;          /* Medium light orange */
    --accent-300: #ffb74d;          /* Medium orange */
    --accent-400: #ffa726;          /* Medium dark orange */
    --accent-500: #ff9800;          /* Base accent orange */
    --accent-600: #fb8c00;          /* Dark orange */
    --accent-700: #f57c00;          /* Darker orange */
    --accent-800: #ef6c00;          /* Very dark orange */
    --accent-900: #e65100;          /* Darkest orange shade */

    /* NEUTRAL COLORS - Professional Gray Palette */
    --neutral-50: #fafafa;          /* Lightest gray */
    --neutral-100: #f5f5f5;         /* Very light gray */
    --neutral-200: #eeeeee;         /* Light gray */
    --neutral-300: #e0e0e0;         /* Medium light gray */
    --neutral-400: #bdbdbd;         /* Medium gray */
    --neutral-500: #9e9e9e;         /* Base neutral gray */
    --neutral-600: #757575;         /* Dark gray */
    --neutral-700: #616161;         /* Darker gray */
    --neutral-800: #424242;         /* Very dark gray */
    --neutral-900: #212121;         /* Darkest gray */

    /* SEMANTIC COLORS - Status Indicators */
    --success-light: #d4edda;       /* Light success background */
    --success-base: #28a745;        /* Base success green */
    --success-dark: #155724;        /* Dark success text */
    
    --error-light: #f8d7da;         /* Light error background */
    --error-base: #dc3545;          /* Base error red */
    --error-dark: #721c24;          /* Dark error text */
    
    --warning-light: #fff3cd;       /* Light warning background */
    --warning-base: #ffc107;        /* Base warning yellow */
    --warning-dark: #856404;        /* Dark warning text */
    
    --info-light: #d1ecf1;          /* Light info background */
    --info-base: #17a2b8;           /* Base info cyan */
    --info-dark: #0c5460;           /* Dark info text */

    /* MAIN BRAND COLORS (for backward compatibility) */
    --primary-color: var(--primary-500);
    --secondary-color: var(--secondary-500);
    --accent-color: var(--accent-500);
    --dark-color: var(--neutral-800);
    --light-color: var(--neutral-50);
    --white-color: #ffffff;
    --text-color: var(--neutral-800);
    --text-muted: var(--neutral-600);
    --border-color: var(--neutral-300);
    --success-color: var(--success-base);

    /* SHADOWS & EFFECTS */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* TRANSITIONS */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* BORDER RADIUS */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* =====================================
   DARK MODE VARIABLES
   Overrides for dark theme
   ===================================== */
[data-theme="dark"] {
    /* Background colors for dark mode */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2d2d2d;
    
    /* Text colors for dark mode */
    --text-color: #e0e0e0;
    --text-muted: #b0b0b0;
    
    /* Main brand colors (adjusted for dark mode) */
    --primary-color: var(--primary-400);
    --secondary-color: var(--secondary-400);
    --accent-color: var(--accent-400);
    --dark-color: var(--neutral-900);
    --light-color: var(--neutral-100);
    --white-color: #ffffff;
    
    /* Border colors */
    --border-color: var(--neutral-700);
    
    /* Shadow adjustments for dark mode */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5), 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6), 0 10px 10px rgba(0, 0, 0, 0.4);
}

/* Dark mode body and background */
html[data-theme="dark"] body {
    background-color: var(--bg-primary) !important;
    color: var(--text-color) !important;
    transition: background-color var(--transition), color var(--transition);
}

html[data-theme="dark"] .main-content {
    background-color: var(--bg-primary) !important;
    color: var(--text-color) !important;
}

/* Dark mode typography */
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6 {
    color: var(--text-color) !important;
}

html[data-theme="dark"] p,
html[data-theme="dark"] span,
html[data-theme="dark"] div,
html[data-theme="dark"] li,
html[data-theme="dark"] td,
html[data-theme="dark"] th {
    color: var(--text-color);
}

html[data-theme="dark"] .section-title,
html[data-theme="dark"] .section-description {
    color: var(--text-color) !important;
}

html[data-theme="dark"] .lead {
    color: var(--text-color) !important;
}

/* Dark mode navigation */
[data-theme="dark"] .navbar {
    background-color: var(--bg-secondary) !important;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .navbar-light {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .navbar-nav .nav-link {
    color: var(--text-color) !important;
}

[data-theme="dark"] .navbar-nav .nav-link:hover {
    color: var(--primary-300) !important;
    background: rgba(33, 150, 243, 0.2);
}

[data-theme="dark"] .navbar-nav .nav-link.active {
    color: var(--primary-300) !important;
    background: rgba(33, 150, 243, 0.25);
}

[data-theme="dark"] .navbar-toggler {
    border-color: var(--border-color);
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28224, 224, 224, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dark mode cards */
[data-theme="dark"] .card {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .card-body {
    color: var(--text-color);
}

[data-theme="dark"] .card-header {
    background-color: var(--bg-tertiary);
    border-bottom-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .card-footer {
    background-color: var(--bg-tertiary);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .list-group-item {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .list-group-flush .list-group-item {
    border-color: var(--border-color);
}

/* Dark mode buttons */
[data-theme="dark"] .btn-outline-primary {
    border-color: var(--primary-400);
    color: var(--primary-400);
}

[data-theme="dark"] .btn-outline-primary:hover {
    background-color: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
}

[data-theme="dark"] .btn-outline-light {
    border-color: var(--text-color);
    color: var(--text-color);
}

[data-theme="dark"] .btn-outline-light:hover {
    background-color: var(--text-color);
    color: var(--bg-primary);
}

/* Dark mode backgrounds */
[data-theme="dark"] .bg-light {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .bg-white {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

/* Dark mode text utilities */
[data-theme="dark"] .text-dark {
    color: var(--text-color) !important;
}

[data-theme="dark"] .text-secondary {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .text-black {
    color: var(--text-color) !important;
}

[data-theme="dark"] .text-white {
    color: var(--text-color) !important;
}

/* Dark mode background utilities */
[data-theme="dark"] .bg-dark {
    background-color: var(--bg-secondary) !important;
}

/* Dark mode container and wrapper backgrounds */
[data-theme="dark"] .container,
[data-theme="dark"] .container-fluid {
    background-color: transparent;
}

[data-theme="dark"] .row {
    background-color: transparent;
}

[data-theme="dark"] .col,
[data-theme="dark"] .col-md-6,
[data-theme="dark"] .col-lg-4,
[data-theme="dark"] .col-lg-6,
[data-theme="dark"] .col-lg-8,
[data-theme="dark"] .col-lg-12 {
    background-color: transparent;
}

/* Dark mode forms */
[data-theme="dark"] .form-control {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .form-control:focus {
    background-color: var(--bg-tertiary);
    border-color: var(--primary-400);
    color: var(--text-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

[data-theme="dark"] .form-control::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .form-select {
    background-color: var(--bg-tertiary);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .form-label {
    color: var(--text-color);
}

/* Dark mode footer */
[data-theme="dark"] footer {
    background-color: var(--bg-secondary) !important;
    color: var(--text-color);
}

[data-theme="dark"] footer .text-light {
    color: var(--text-color) !important;
}

[data-theme="dark"] footer a.text-light {
    color: var(--text-muted) !important;
}

[data-theme="dark"] footer a.text-light:hover {
    color: var(--primary-300) !important;
}

/* Dark mode alerts */
[data-theme="dark"] .alert {
    border-color: var(--border-color);
}

[data-theme="dark"] .alert-light {
    background-color: var(--bg-tertiary);
    color: var(--text-color);
    border-color: var(--border-color);
}

/* Dark mode tables */
[data-theme="dark"] .table {
    color: var(--text-color);
}

[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: var(--bg-tertiary);
}

[data-theme="dark"] .table-hover > tbody > tr:hover > td {
    background-color: var(--bg-secondary);
}

/* Dark mode modals */
[data-theme="dark"] .modal-content {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Dark mode hero sections */
[data-theme="dark"] .hero-section::before {
    opacity: 0.9;
}

[data-theme="dark"] .stat-box {
    background: rgba(30, 30, 30, 0.95);
    border-color: var(--border-color);
    color: var(--text-color);
}

/* Dark mode service cards and campaign cards */
[data-theme="dark"] .service-card,
[data-theme="dark"] .campaign-card,
[data-theme="dark"] .core-feature-card {
    background-color: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-color);
}

[data-theme="dark"] .service-card:hover,
[data-theme="dark"] .campaign-card:hover,
[data-theme="dark"] .core-feature-card:hover {
    background-color: var(--bg-tertiary);
}

/* Dark mode badges */
[data-theme="dark"] .badge {
    border-color: var(--border-color);
}

/* Dark mode specific sections */
[data-theme="dark"] .campaigns-section {
    background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .statistics-section {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .how-we-work-section {
    background-color: var(--bg-primary) !important;
}

[data-theme="dark"] .auth-section,
[data-theme="dark"] .otp-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 50%, var(--bg-secondary) 100%) !important;
}

[data-theme="dark"] .auth-section::before,
[data-theme="dark"] .otp-section::before {
    background: linear-gradient(45deg, 
        var(--neutral-800) 0%, 
        transparent 25%, 
        transparent 75%, 
        var(--neutral-700) 100%);
    opacity: 0.4;
}

[data-theme="dark"] .auth-card {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-color) !important;
}

[data-theme="dark"] .auth-title,
[data-theme="dark"] .auth-subtitle {
    color: var(--text-color) !important;
}

[data-theme="dark"] .counter-label {
    color: var(--text-muted) !important;
}

/* Theme toggle button - Modern Aesthetic Design */
.theme-toggle {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
    border: none;
    color: var(--primary-600);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 0.5rem;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15), 
                0 1px 3px rgba(33, 150, 243, 0.1);
    position: relative;
    overflow: hidden;
    outline: none;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.theme-toggle:hover::before {
    width: 100%;
    height: 100%;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, var(--primary-400) 0%, var(--primary-600) 100%);
    border: none;
    color: white;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3), 
                0 2px 8px rgba(33, 150, 243, 0.2);
}

.theme-toggle:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2), 
                0 1px 3px rgba(33, 150, 243, 0.15);
}

.theme-toggle i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover i {
    transform: rotate(15deg) scale(1.1);
}

[data-theme="dark"] .theme-toggle {
    background: linear-gradient(135deg, var(--neutral-700) 0%, var(--neutral-800) 100%);
    border: none;
    color: var(--primary-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 
                0 1px 3px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .theme-toggle::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
}

[data-theme="dark"] .theme-toggle:hover {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-700) 100%);
    border: none;
    color: var(--neutral-100);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4), 
                0 2px 8px rgba(33, 150, 243, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .theme-toggle:active {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 
                0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Dark mode progress bars */
[data-theme="dark"] .progress {
    background-color: var(--bg-tertiary);
}

[data-theme="dark"] .progress-bar {
    background-color: var(--primary-400);
}

/* General Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background-color var(--transition), color var(--transition);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

/* Layout */
.main-content {
    width: 100%;
    margin: 0;
    padding: 0;
}

.container-fluid {
    padding-left: 2rem;
    padding-right: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.min-vh-80 {
    min-height: 80vh;
}

/* Bootstrap Color Overrides */
.text-primary { color: var(--primary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }

/* Section Badges */
.section-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #0d0d0e 0%, #222422 50%, #3b3a38 100%), url('../images/bgimage.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #0d0d0e 0%, #222422 50%, #3b3a38 100%);
    opacity: 0.85;
    z-index: 1;
}

.hero-section .container-fluid {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-description {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-buttons .btn {
    margin-bottom: 1rem;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem;
}

.stat-box {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    background: rgba(255, 255, 255, 0.98);
}

.stat-box .stat-icon {
    color: var(--primary-500);
    transition: var(--transition);
}

.stat-box:hover .stat-icon {
    color: var(--secondary-500);
    transform: scale(1.1);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.stat-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-badge {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 2rem;
}

.medical-icon-large {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.about-features {
    margin: 2rem 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 1rem 0;
}

.feature-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-text {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Service Cards Section */
.service-cards-section {
    padding: 5rem 0;
}

.service-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.service-card.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.service-card.active h4,
.service-card.active p {
    color: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.service-card.active .service-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.service-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Core Features Section */
.core-features-section {
    padding: 5rem 0;
}

.core-feature-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
}

.core-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
}

.core-feature-card h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.core-feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Campaigns Section */
.campaigns-section {
    padding: 5rem 0;
}

.campaign-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}

.campaign-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.campaign-category {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin: 1.5rem 1.5rem 0;
    border-radius: 20px;
}

.campaign-content {
    padding: 1.5rem;
}

.campaign-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.campaign-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.campaign-progress {
    position: relative;
    margin-bottom: 1.5rem;
}

.progress {
    height: 8px;
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
}

.progress-text {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.campaign-details {
    margin-bottom: 1.5rem;
}

.campaign-amounts {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.campaign-donors {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.campaign-actions {
    display: flex;
    gap: 0.5rem;
}

.campaign-actions .btn {
    flex: 1;
}

/* Statistics Section */
.statistics-section {
    padding: 5rem 0;
    background: var(--light-color);
}

.stat-counter {
    text-align: center;
    padding: 2rem 1rem;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.counter-label {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* How We Work Section */
.how-we-work-section {
    padding: 5rem 0;
}

.work-steps {
    padding: 2rem 0;
}

.work-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
}

.work-step:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.step-content p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.95rem;
}

.work-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.medical-team-icon {
    /* opacity: 0.1; */
    height: 100%;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 0;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.testimonial-quote {
    margin-bottom: 2rem;
}

.testimonial-quote i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.testimonial-quote p {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: var(--primary-color);
}

.author-info h5 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: var(--text-color);
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Final CTA Section */
.final-cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.final-cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.final-cta-section .lead {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-200) !important;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--primary-100) !important;
    transform: scale(1.02);
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    color: var(--neutral-900) !important;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-200) !important;
    background: rgba(33, 150, 243, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    color: var(--primary-200) !important;
    background: rgba(33, 150, 243, 0.15);
}

/* Donate Button in Navbar */
.btn-donate {
    padding: 0.6rem 1.8rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: var(--radius-full) !important;
    text-transform: none !important;
    margin-left: 1rem;
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%) !important;
    border: 2px solid var(--accent-400);
    color: white !important;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-donate:hover::before {
    left: 100%;
}

.btn-donate:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-700) 100%) !important;
    border-color: var(--accent-500);
}

.btn-donate i {
    animation: heartbeat 2s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1.05); }
    75% { transform: scale(1.15); }
}

/* Buttons */
.btn {
    border-radius: var(--radius-lg);
    font-weight: 500;
    padding: 0.75rem 2rem;
    transition: var(--transition);
    border: none;
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    color: white;
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-600) 0%, var(--secondary-700) 100%);
    color: white;
}

.btn-outline-primary {
    border: 2px solid var(--primary-500);
    color: var(--primary-500);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-500);
    color: white;
    border-color: var(--primary-500);
}

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

.btn-light:hover {
    background: var(--light-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
}

/* Footer */
footer {
    background: var(--dark-color) !important;
}

footer h5 {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-section {
        background-attachment: scroll;
        min-height: 70vh;
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
    }
    
    .stat-box {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
    
    .campaign-actions {
        flex-direction: column;
    }
    
    .work-step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .final-cta-section h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .hero-stats {
        flex-direction: column;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    .btn-lg {
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
}

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

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading states */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Utility classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
} 

/* Authentication Pages */
.auth-section, .otp-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 50%, var(--accent-50) 100%);
    position: relative;
}

.auth-section::before, .otp-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        var(--primary-100) 0%, 
        transparent 25%, 
        transparent 75%, 
        var(--secondary-100) 100%);
    opacity: 0.6;
    z-index: 1;
}

.auth-card {
    background: var(--white-color);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    border: 1px solid var(--neutral-200);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.auth-card:hover {
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-300);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo i {
    color: var(--primary-500);
    transition: var(--transition);
}

.auth-title {
    color: var(--primary-700);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--neutral-600);
    font-size: 1rem;
}

/* Social Login Buttons */
.btn-facebook {
    background: linear-gradient(135deg, #4267b2 0%, #365899 100%);
    border: none;
    color: white;
    transition: var(--transition);
}

.btn-facebook:hover {
    background: linear-gradient(135deg, #365899 0%, #2d4373 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-google {
    background: linear-gradient(135deg, #db4437 0%, #c23321 100%);
    border: none;
    color: white;
    transition: var(--transition);
}

.btn-google:hover {
    background: linear-gradient(135deg, #c23321 0%, #a52714 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Form Elements */
.form-control {
    border: 2px solid var(--neutral-300);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: var(--transition-fast);
    background: var(--white-color);
}

.form-control:focus {
    border-color: var(--primary-400);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.15);
    background: var(--primary-50);
}

.form-control:hover {
    border-color: var(--primary-300);
}

.form-label {
    color: var(--neutral-700);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.input-group-text {
    background: var(--primary-100);
    border: 2px solid var(--neutral-300);
    color: var(--primary-700);
    font-weight: 500;
}

/* OTP Input Fields */
.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.otp-digit {
    width: 3.5rem;
    height: 3.5rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 3px solid var(--neutral-300);
    border-radius: var(--radius-lg);
    background: var(--white-color);
    color: var(--primary-700);
    transition: var(--transition-fast);
}

.otp-digit:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.2);
    background: var(--primary-50);
    outline: none;
}

.otp-digit.filled {
    border-color: var(--secondary-500);
    background: var(--secondary-50);
    color: var(--secondary-700);
}

/* Alert/Flash Messages */
.alert {
    border-radius: var(--radius-lg);
    border: none;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: var(--success-light);
    color: var(--success-dark);
    border-left: 4px solid var(--success-base);
}

.alert-error, .alert-danger {
    background: var(--error-light);
    color: var(--error-dark);
    border-left: 4px solid var(--error-base);
}

.alert-info {
    background: var(--info-light);
    color: var(--info-dark);
    border-left: 4px solid var(--info-base);
}

.alert-warning {
    background: var(--warning-light);
    color: var(--warning-dark);
    border-left: 4px solid var(--warning-base);
}

/* Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid transparent;
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== CAMPAIGNS PAGE STYLES ===== */

/* Banner Section */
.campaigns-banner {
    position: relative;
    height: 60vh;
    min-height: 500px;
    overflow: hidden;
}

.banner-slide {
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 50%, var(--accent-500) 100%);
}

.banner-slide.healthcare-emergency {
    background: linear-gradient(135deg, var(--primary-700) 0%, var(--primary-500) 100%);
}

.banner-slide.healthcare-surgery {
    background: linear-gradient(135deg, var(--secondary-700) 0%, var(--secondary-500) 100%);
}

.banner-slide.healthcare-mental {
    background: linear-gradient(135deg, var(--accent-700) 0%, var(--accent-500) 100%);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 2rem 0;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: white;
}

.banner-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-200);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.banner-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.banner-image {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.banner-icon {
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(2deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(-5px) rotate(-1deg); }
}

.min-vh-60 {
    min-height: 60vh;
}

/* Campaign Filters */
.campaigns-filters {
    background: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
}

.section-title {
    color: var(--primary-700);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--neutral-600);
    margin-bottom: 0;
}

.filters-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: flex-end;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 300px;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-500);
    pointer-events: none;
}

.filter-dropdown, .sort-dropdown {
    min-width: 160px;
}

/* Campaign Grid */
.campaigns-grid {
    background: var(--white-color);
}

.campaign-card {
    background: var(--white-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    border: 2px solid var(--neutral-200);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.campaign-card.border-danger {
    border-color: var(--error-base);
}

.campaign-card.border-warning {
    border-color: var(--warning-base);
}

.campaign-card.border-primary {
    border-color: var(--primary-400);
}

.campaign-card.border-success {
    border-color: var(--success-base);
}

/* Campaign Image/Icon */
.campaign-image {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-100) 0%, var(--secondary-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--neutral-200);
}

.campaign-icon-placeholder {
    font-size: 4rem;
    color: var(--primary-500);
    opacity: 0.8;
}

.campaign-urgency {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

/* Campaign Content */
.campaign-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.campaign-header {
    margin-bottom: 1.5rem;
}

.campaign-title {
    color: var(--primary-700);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.campaign-description {
    color: var(--neutral-600);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

/* Progress Section */
.campaign-progress-section {
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.amount-raised {
    display: flex;
    flex-direction: column;
}

.raised-amount {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-600);
}

.goal-amount {
    font-size: 0.85rem;
    color: var(--neutral-600);
}

.progress-percentage {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-600);
}

.campaign-progress {
    background: var(--neutral-200);
    border-radius: var(--radius-full);
    height: 8px;
    overflow: hidden;
    position: relative;
}

.campaign-progress-bar {
    background: linear-gradient(90deg, var(--secondary-400) 0%, var(--secondary-500) 100%);
    height: 100%;
    border-radius: var(--radius-full);
    transition: width 1.5s ease;
    position: relative;
}

.campaign-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

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

/* Campaign Stats */
.campaign-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--neutral-200);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neutral-600);
    font-size: 0.85rem;
}

.stat-item i {
    color: var(--primary-500);
    font-size: 0.9rem;
}

/* Campaign Actions */
.campaign-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.campaign-actions .btn {
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.campaign-actions .flex-grow-1 {
    flex-grow: 1;
}

/* Pagination */
.pagination-section {
    background: var(--neutral-50);
    padding: 3rem 0;
    border-top: 1px solid var(--neutral-200);
}

.pagination .page-link {
    color: var(--primary-600);
    border: 1px solid var(--neutral-300);
    padding: 0.75rem 1rem;
    margin: 0 0.25rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-50);
    border-color: var(--primary-400);
    color: var(--primary-700);
}

.pagination .page-item.active .page-link {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: var(--neutral-400);
    background: var(--neutral-100);
    border-color: var(--neutral-300);
}

.pagination-info {
    color: var(--neutral-600);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
    border-top: 1px solid var(--neutral-200);
}

.cta-content {
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-700);
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    color: var(--neutral-700);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Additional Secondary/Accent Button Styles */
.btn-accent {
    background: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    border: none;
    color: white;
    transition: var(--transition);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-700) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease;
}

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

/* Responsive Design */
@media (max-width: 1200px) {
    .banner-title {
        font-size: 3rem;
    }
    
    .banner-icon {
        font-size: 12rem;
    }
    
    .filters-row {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-description {
        font-size: 1.1rem;
    }
    
    .banner-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .banner-actions {
        flex-direction: column;
    }
    
    .banner-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .campaigns-banner {
        height: 50vh;
        min-height: 400px;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .banner-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .banner-content {
        padding: 1rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .campaign-image {
        height: 150px;
    }
    
    .campaign-icon-placeholder {
        font-size: 3rem;
    }
    
    .campaign-content {
    padding: 1rem;
    }
    
    .filters-row {
        margin-top: 1rem;
    }
}

@media (max-width: 576px) {
    .banner-title {
        font-size: 1.75rem;
    }
    
    .banner-description {
        font-size: 0.95rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .campaign-title {
        font-size: 1rem;
    }
    
    .campaign-description {
        font-size: 0.85rem;
    }
    
    .campaign-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .cta-description {
        font-size: 1rem;
    }
}

/* Password Toggle Button Styles */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    padding: 0.5rem;
    color: var(--neutral-600);
    z-index: 10;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
}

.password-toggle:hover {
    color: var(--primary-500);
    background: rgba(33, 150, 243, 0.1);
    border-radius: 50%;
}

.password-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.25);
    border-radius: 50%;
}

.password-toggle i {
    font-size: 1rem;
    pointer-events: none;
}

.form-control-lg + .password-toggle {
    padding: 0.625rem;
    min-width: 35px;
    min-height: 35px;
}

[data-theme="dark"] .password-toggle {
    color: var(--text-muted);
}

[data-theme="dark"] .password-toggle:hover {
    color: var(--primary-400);
    background: rgba(33, 150, 243, 0.2);
}

/* Responsive Auth Pages */
@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 15px;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .auth-section,
    .otp-section {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .feature-highlight {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .auth-card {
        padding: 1.5rem 1rem;
    }
    
    .auth-title {
        font-size: 1.6rem;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
} 

/* Responsive Navigation */
@media (max-width: 991px) {
    .btn-donate {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-collapse {
        padding-top: 1rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .btn-donate {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
} 

/* LOGO STYLING */
.navbar-logo {
    height: 40px;
    width: auto;
    margin-right: 0.75rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}

.navbar-logo:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.brand-text {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-200) !important;
    vertical-align: middle;
}

.footer-logo {
    height: 32px;
    width: auto;
    border-radius: var(--radius-sm);
    vertical-align: middle;
}

.footer-brand h5 {
    color: var(--primary-200) !important;
    vertical-align: middle;
} 

/* Campaign Cards */
.campaign-card {
    background: var(--white-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
}

.campaign-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-300);
}

.campaign-progress {
    background: var(--neutral-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.campaign-progress-bar {
    background: linear-gradient(90deg, var(--secondary-400) 0%, var(--secondary-500) 100%);
    transition: width 1s ease;
}

.campaign-amount {
    color: var(--primary-600);
    font-weight: 700;
}

.campaign-goal {
    color: var(--neutral-600);
}

/* Feature Cards */
.feature-card {
    background: var(--white-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--neutral-200);
    padding: 2rem;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-300);
}

.feature-icon {
    color: var(--primary-500);
    background: var(--primary-50);
    border-radius: var(--radius-full);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary-100);
    color: var(--primary-700);
    transform: scale(1.1);
}

/* Statistics Section */
.statistics-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-50) 0%, var(--secondary-50) 100%);
}

.stat-counter {
    text-align: center;
    padding: 2rem 1rem;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-600);
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.counter-label {
    color: var(--neutral-600);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
} 

/* Mobile adjustments for CTA buttons on home hero */
@media (max-width: 576px) {
    .cta-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        margin-top: 16px;
        margin-bottom: 24px;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 320px;
        margin: 0; /* override any inline spacing like me-3 */
    }
    
    /* Theme toggle responsive adjustments */
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle i {
        font-size: 1rem;
    }
}

/* Additional responsive styles for theme toggle */
@media (max-width: 576px) {
    .theme-toggle {
        width: 38px;
        height: 38px;
        margin-left: 0.25rem;
    }
    
    .theme-toggle i {
        font-size: 0.95rem;
    }
    
    .navbar-nav.align-items-center {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
}

/* =====================================
   DARK MODE CRITICAL OVERRIDES
   These must come last to override Bootstrap utilities
   ===================================== */

/* Force dark mode body background - must override all Bootstrap utilities */
html[data-theme="dark"] body {
    background-color: var(--bg-primary) !important;
    color: var(--text-color) !important;
}

/* Override Bootstrap navbar classes in dark mode */
html[data-theme="dark"] .navbar.bg-light,
html[data-theme="dark"] .navbar-light {
    background-color: var(--bg-secondary) !important;
    border-bottom-color: var(--border-color) !important;
}

/* Override Bootstrap footer bg-dark in dark mode */
html[data-theme="dark"] footer.bg-dark {
    background-color: var(--bg-secondary) !important;
}

/* Override Bootstrap text utilities in dark mode */
html[data-theme="dark"] .text-light {
    color: var(--text-color) !important;
}

html[data-theme="dark"] .text-dark {
    color: var(--text-color) !important;
}

/* Override Bootstrap background utilities in dark mode */
html[data-theme="dark"] .bg-light {
    background-color: var(--bg-secondary) !important;
}

html[data-theme="dark"] .bg-white {
    background-color: var(--bg-secondary) !important;
}

html[data-theme="dark"] .bg-dark {
    background-color: var(--bg-secondary) !important;
}

/* Dark mode work-step boxes with bevel and shadow effect */
html[data-theme="dark"] .work-step {
    background: #2d2d2d !important;
    color: #ffffff !important;
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.5),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1),
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .work-step:hover {
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.6),
        inset 2px 2px 4px rgba(255, 255, 255, 0.15),
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .work-step .step-content h4 {
    color: #ffffff !important;
}

html[data-theme="dark"] .work-step .step-content p {
    color: #e0e0e0 !important;
}

/* Dark mode testimonial cards with bevel and shadow effect */
html[data-theme="dark"] .testimonial-card {
    background: #2d2d2d !important;
    color: #ffffff !important;
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.5),
        inset 2px 2px 4px rgba(255, 255, 255, 0.1),
        0 4px 6px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .testimonial-card:hover {
    box-shadow: 
        inset -2px -2px 4px rgba(0, 0, 0, 0.6),
        inset 2px 2px 4px rgba(255, 255, 255, 0.15),
        0 6px 12px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

html[data-theme="dark"] .testimonial-quote p {
    color: #ffffff !important;
}

html[data-theme="dark"] .testimonial-author .author-info h5 {
    color: #ffffff !important;
}

html[data-theme="dark"] .testimonial-author .author-info span {
    color: #e0e0e0 !important;
}

html[data-theme="dark"] .testimonial-quote i {
    color: var(--primary-color) !important;
}

/* Ensure all main content areas respect dark mode */
html[data-theme="dark"] main,
html[data-theme="dark"] .main-content,
html[data-theme="dark"] section {
    background-color: transparent;
    color: var(--text-color);
}
