@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary-green: #10A66A;
    --dark-green: #087C50;
    --light-green: #EAF7F1;
    --background: #F7FBF9;
    --white: #FFFFFF;
    --text-main: #173128;
    --text-secondary: #66766E;
    --border-color: #E2E8F0;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--dark-green);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--text-main);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navigation */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo-img {
    height: 40px;
    width: auto;
    border-radius: var(--radius-sm);
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-size: 1rem;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-green);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    padding: 10px 22px; /* adjust for border */
}

.btn-secondary:hover {
    background-color: var(--light-green);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}

.btn-block {
    width: 100%;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    background-color: var(--background);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    color: var(--text-main);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}



/* Radial Carousel */
.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    margin-top: 40px;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 20%, black 80%, transparent 100%);
}

.hero-carousel-circle {
    position: absolute;
    top: 20px;
    left: 50%;
    margin-left: -3000px;
    width: 6000px;
    height: 6000px;
    border-radius: 50%;
    animation: rotateCarousel 600s linear infinite;
}

@keyframes rotateCarousel {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

.carousel-arc-item {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -110px; /* half of 220px */
    width: 220px;
    height: 260px;
    border-radius: 16px;
    overflow: hidden;
    transform-origin: 50% 3000px; /* Matches circle radius */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.carousel-arc-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Categories */
.categories {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-list {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.category-pill {
    background-color: var(--light-green);
    color: var(--dark-green);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.category-pill:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* Campaign Cards */
.campaigns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    padding: 60px 0;
}

.campaign-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    display: flex;
    flex-direction: column;
}

.campaign-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.campaign-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #E2E8F0;
}

.campaign-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.campaign-title {
    font-size: 1.125rem;
    margin-bottom: 8px;
    color: var(--text-main);
    line-height: 1.4;
}

.campaign-organizer {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.campaign-stats {
    margin-top: auto;
}

.campaign-raised {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.25rem;
}

.campaign-goal {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Progress Bar */
.progress-container {
    width: 100%;
    height: 8px;
    background-color: var(--light-green);
    border-radius: var(--radius-full);
    margin: 12px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-green);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* Footer */
.site-footer {
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 16px;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-main);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.pt-8 { padding-top: 32px; }
.pb-8 { padding-bottom: 32px; }
.text-primary { color: var(--primary-green); }
.text-secondary { color: var(--text-secondary); }
.font-bold { font-weight: 700; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px var(--light-green);
}

/* Alerts / Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--light-green);
    color: var(--dark-green);
}

.badge-verified {
    background-color: var(--light-green);
    color: var(--dark-green);
}

/* Card General */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.mobile-nav-bar {
    display: none;
}

/* Mobile visibility helper */
.mobile-only {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding-bottom: 70px; /* Space for mobile nav */
    }
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: flex !important;
    }
    .mobile-icon-btn {
        background: none;
        border: none;
        color: var(--text-main);
        padding: 4px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .nav-container {
        height: 60px;
        justify-content: space-between; /* Space out search, logo, and hamburger */
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.125rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-carousel-wrapper {
        height: 280px; /* Reduce empty gap on mobile */
    }
    
    /* Mobile App Nav Bar */
    .mobile-nav-bar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--white);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        height: 70px;
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        font-size: 0.75rem;
        font-weight: 500;
        text-decoration: none;
        gap: 4px;
    }
    
    .mobile-nav-item:hover, .mobile-nav-item:active {
        color: var(--primary-green);
    }
    
    .mobile-nav-icon {
        font-size: 1.25rem;
    }
    
    .mobile-nav-icon-circle {
        background-color: var(--primary-green);
        color: white;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        margin-bottom: 2px;
        box-shadow: 0 4px 10px rgba(16, 166, 106, 0.3);
    }
    
    .mobile-nav-item-primary {
        color: var(--primary-green);
        margin-top: -10px;
    }
}

/* Search Page */
.search-page-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-container {
    display: flex;
    align-items: center;
    background-color: #F3F4F6;
    border-radius: 12px;
    padding: 0 16px;
    height: 50px;
}

.search-input-container .search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    margin-right: 12px;
}

.search-input-container .search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
}

.search-input-container .search-input::placeholder {
    color: var(--text-secondary);
}

.search-filters {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 4px;
}

.search-filters::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.filter-pill {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
}

.filter-pill.active {
    border-color: var(--text-main);
    background-color: var(--white);
}

.search-section-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-result-item {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.search-result-item:hover {
    opacity: 0.9;
}

.result-image-wrapper {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.result-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--text-main);
}

.result-organizer {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.small-progress {
    height: 6px;
    background-color: #E5E7EB;
    border-radius: 4px;
}

.small-progress .progress-bar {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-carousel-wrapper {
        height: 280px; /* Reduce empty gap on mobile */
    }
    
    /* Mobile App Nav Bar */
    .mobile-nav-bar {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: var(--white);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        height: 70px;
        z-index: 1000;
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-secondary);
        font-size: 0.75rem;
        font-weight: 500;
        text-decoration: none;
        gap: 4px;
    }
    
    .mobile-nav-item:hover, .mobile-nav-item:active {
        color: var(--primary-green);
    }
    
    .mobile-nav-icon {
        font-size: 1.25rem;
    }
    
    .mobile-nav-icon-circle {
        background-color: var(--primary-green);
        color: white;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        margin-bottom: 2px;
        box-shadow: 0 4px 10px rgba(16, 166, 106, 0.3);
    }
    
    .mobile-nav-item-primary {
        color: var(--primary-green);
        margin-top: -10px;
    }
}

/* Search Page */
.search-page-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-container {
    display: flex;
    align-items: center;
    background-color: #F3F4F6;
    border-radius: 12px;
    padding: 0 16px;
    height: 50px;
}

.search-input-container .search-icon {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    margin-right: 12px;
}

.search-input-container .search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
}

.search-input-container .search-input::placeholder {
    color: var(--text-secondary);
}

.search-filters {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 4px;
}

.search-filters::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.filter-pill {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    white-space: nowrap;
}

.filter-pill.active {
    border-color: var(--text-main);
    background-color: var(--white);
}

.search-section-title {
    font-size: 1.5rem;
    font-weight: 800;
}

.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.search-result-item {
    display: flex;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.search-result-item:hover {
    opacity: 0.9;
}

.result-image-wrapper {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
}

.result-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    color: var(--text-main);
}

.result-organizer {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.small-progress {
    height: 6px;
    background-color: #E5E7EB;
    border-radius: 4px;
}

.small-progress .progress-bar {
    background-color: var(--primary-green);
    border-radius: 4px;
    height: 100%;
}

.result-raised {
    font-size: 0.95rem;
    color: var(--text-main);
}

/* Spacing Utilities */
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 24px; }
.mt-8 { margin-top: 48px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 48px; }

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--white);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    height: 60px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 24px;
}

.mobile-menu-nav a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
}

.mobile-menu-nav hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

/* How it works */
.how-it-works-list {
    display: flex;
    flex-direction: column;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-progress {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.step-num {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.step-progress circle {
    fill: none;
    stroke-width: 2;
}

.progress-bg {
    stroke: var(--border-color);
}

.progress-ring {
    stroke: var(--primary-green);
    stroke-dasharray: 138.23; /* 2 * PI * 22 = 138.23 */
    stroke-dashoffset: 138.23; /* Start empty */
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.1s linear;
}

.step-item.active .progress-ring {
    animation: fillRing 5s linear forwards;
}

@keyframes fillRing {
    to { stroke-dashoffset: 0; }
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text-main);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 1rem;
}

.step-content p:last-child {
    margin-bottom: 0;
}

.step-link a {
    color: var(--text-secondary);
    text-decoration: underline;
}

.step-link a:hover {
    color: var(--text-main);
}

.step-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 24px 0 24px 68px; /* Offset to align with text */
}

/* How It Works Desktop Layout */
.how-it-works-desktop-layout {
    display: flex;
    flex-direction: column;
}

.how-it-works-image {
    display: none;
}

@media (min-width: 992px) {
    .how-it-works-desktop-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 64px;
        align-items: center;
    }
    
    .how-it-works-image {
        display: block;
    }
    
    .how-it-works-image img {
        width: 100%;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        object-fit: cover;
        aspect-ratio: 1 / 1;
    }
}

/* Dashboard Layout */
.dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}

/* Sidebar */
.dashboard-sidebar {
    background-color: #F9FAFB;
    border-radius: 16px;
    padding: 32px 24px;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 24px;
    padding-left: 16px;
    color: var(--text-main);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.sidebar-link:hover {
    background-color: #F3F4F6;
    color: var(--text-main);
}

.sidebar-link.active {
    background-color: var(--light-green);
    color: var(--primary-green);
}

.sidebar-link svg {
    width: 20px;
    height: 20px;
}

/* Dashboard Main */
.dashboard-main {
    min-width: 0; /* Prevents CSS Grid blowout from the table */
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dashboard-header h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* Fundraiser Card */
.fundraiser-card {
    display: flex;
    gap: 24px;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.fundraiser-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}

.fc-image {
    width: 240px;
    flex-shrink: 0;
}

.fc-image img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.fc-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.fc-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.3;
}

.badge-active {
    background-color: #DCFCE7;
    color: #166534;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.fc-stats {
    margin-bottom: 24px;
}

.fc-stats-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.fc-stats-text strong {
    color: var(--text-main);
}

.fc-actions {
    margin-top: auto;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-outline-danger {
    background-color: transparent;
    color: #DC2626;
    border: 1px solid #FECACA;
    text-decoration: none;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.btn-outline-danger:hover {
    background-color: #FEF2F2;
    border-color: #DC2626;
}

/* Dashboard Table */
.section-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.table-container {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.dashboard-table th {
    background-color: #F9FAFB;
    padding: 16px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border-color);
}

.dashboard-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-main);
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.link-primary { color: var(--primary-green); text-decoration: underline; font-weight: 500; }
.link-primary:hover { color: var(--dark-green); }

/* Responsive Dashboard */
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .dashboard-sidebar {
        position: static;
        padding: 0;
        background-color: transparent;
        min-width: 0; /* Prevents flexbox children from stretching the grid */
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 12px;
        -webkit-overflow-scrolling: touch;
        gap: 12px;
        /* Hide scrollbar for cleaner look */
        scrollbar-width: none; 
    }
    
    .sidebar-nav::-webkit-scrollbar {
        display: none;
    }
    
    .sidebar-link {
        white-space: nowrap;
        background-color: #F9FAFB;
        padding: 8px 16px;
        border-radius: 9999px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .dashboard-header .btn {
        width: 100%;
        text-align: center;
    }
    
    .fundraiser-card {
        flex-direction: column;
        padding: 16px;
    }
    
    .fc-image {
        width: 100%;
    }
    
    .fc-image img {
        height: 200px;
    }
    
    .table-container {
        overflow-x: auto;
    }
}


/* --- Informational Hub Pages (Help, Trust, About) --- */
.hub-header {
    text-align: center;
    padding: 64px 20px 48px;
    background-color: var(--white);
}

.hub-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.hub-search-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hub-search-input {
    width: 100%;
    padding: 16px 24px 16px 56px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-size: 1.125rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s;
}

.hub-search-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.hub-search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
    margin-bottom: 48px;
}

.topic-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: all 0.2s;
    text-decoration: none;
    color: var(--text-primary);
}

.topic-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.topic-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #f0fdf4;
    color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.topic-content h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.topic-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.5;
}

.action-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 64px;
}


.promo-banner {
    padding: 40px;
    border-radius: var(--radius-lg);
    text-decoration: none;
    display: block;
    transition: transform 0.2s;
}

.promo-banner:hover {
    transform: translateY(-4px);
}

.promo-banner.dark {
    background-color: #1f2937;
    color: #ffffff;
}

.promo-banner.dark h3, .promo-banner.dark p {
    color: #ffffff;
}

.promo-banner.light {
    background-color: #fde68a;
    color: #92400e;
}

.promo-banner.light h3, .promo-banner.light p {
    color: #92400e;
}

.promo-banner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.promo-banner p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .action-banners {
        grid-template-columns: 1fr;
    }
}
