@charset "UTF-8";

/* Government Portal Style - Standardized */

/* --- DYNAMIC ICON ANIMATIONS --- */
@keyframes icon-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes icon-wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-10deg);
    }

    75% {
        transform: rotate(10deg);
    }
}

@keyframes icon-float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes icon-spin-slow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* GENERAL ICON TWEAKS */
i {
    display: inline-block;
}

/* Required for transform */

/* APPLY ANIMATIONS */
.fa-circle-check {
    color: green;
    animation: icon-pulse 2s infinite ease-in-out;
}

.fa-hourglass-start,
.fa-hourglass {
    color: orange;
    animation: icon-float 2s infinite ease-in-out;
}

.fa-users {
    animation: icon-wave 3s infinite ease-in-out;
    /* Removed global color override that clashes with navbar */
}

/* Ensure Nav Icons are White */
.main-nav .fa-users {
    color: #fff !important;
}

.fa-qrcode {
    animation: icon-pulse 1.5s infinite;
}

.fa-calendar,
.fa-clock {
    animation: icon-float 4s infinite ease-in-out;
}

.utility-bar i {
    animation: icon-float 3s infinite;
}

:root {
    --gov-red: #da251d;
    --gov-red-gradient-start: #ff6b6b;
    --gov-red-gradient-end: #c92a2a;
    --gov-yellow: #ffcd00;
    --gov-blue: #0056b3;
    --gov-text: #333;
    --gov-bg: #f8f9fa;
    --gov-border: #dcdcdc;
    --success-green: #22c55e;
    --pending-orange: #f59e0b;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* 1. RESET & FUNDAMENTALS */
body {
    background-color: var(--gov-bg);
}

/* 2. HERO SECTION - STATE BANNER STYLE */
.donation-hero-v2 {
    background: #fff;
    border-top: 5px solid var(--gov-red);
    border-bottom: 1px solid var(--gov-border);
    padding: 20px 0;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border-radius: 0 !important;
}

.donation-hero-v2::before {
    display: none;
}

/* Remove background emblem if it interferes */

.donation-hero-v2 h1 {
    font-family: 'Times New Roman', Times, serif;
    color: var(--gov-red);
    font-size: 32px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 10px 0;
    letter-spacing: 0.5px;
    text-shadow: none !important;
}

.donation-hero-v2 p {
    font-family: Arial, sans-serif;
    color: #555;
    font-size: 16px;
    font-weight: normal;
}

/* 3. LAYOUT GRID */
.premium-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    /* Standard Ratio */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 15px;
}

/* 4. OVERRIDE GLASS EFFECT -> STANDARD BOX */
.glass-effect,
.donation-card-sticky {
    background: #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #ccc !important;
    border-radius: 0 !important;
    /* Sharp corners */
    box-shadow: none !important;
    padding: 0 !important;
    /* Reset padding for internal structure */
}

.detail-main-content {
    padding: 20px !important;
}

/* 5. SIDEBAR / DONATION BOX */
.donation-card-sticky {
    position: sticky;
    top: 20px;
}

/* Fake Header for Sidebar Box */
#donation-form-container {
    padding: 20px;
}

#donation-form-container::before {
    display: none;
}

#donation-form-container h3 {
    display: block;
}

/* Show dynamic title */
#donation-form-container p {
    display: block;
}

/* Hide subtitle */

/* 6. PROGRESS BAR */
.progress-container {
    background: #f8f9fa;
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 20px;
}

.progress-label {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.progress-bar-bg {
    background: #e9ecef;
    height: 12px;
    border-radius: 2px;
    border: 1px solid #ccc;
}

.progress-bar-fill {
    background: linear-gradient(90deg, var(--gov-red-gradient-start), var(--gov-red-gradient-end));
    height: 100%;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.progress-bar-fill::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%);
    }
}

/* 7. BANK CARD -> INFO BLOCK */
.bank-card-premium {
    background: #eef7ff;
    /* Light blue bg */
    border: 1px solid #b8daff;
    color: #004085;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.bank-card-premium::after {
    display: none;
}

.card-bank-name {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.card-number {
    color: var(--gov-red);
    font-size: 18px;
    font-weight: bold;
    font-family: Arial, sans-serif;
    margin-bottom: 5px;
    text-shadow: none !important;
}

.card-holder,
.card-holder-name {
    font-size: 13px;
    color: #333;
}

/* 8. FORM ELEMENTS */
.p-input-group label {
    font-weight: bold;
    color: #333;
    font-size: 13px;
    margin-bottom: 5px;
    display: block;
}

.p-input-control {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    /* Softer corners */
    padding: 14px 16px;
    /* AIRY: Larger padding */
    width: 100%;
    font-size: 15px;
    background: #fff;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
}

.p-input-control:focus {
    border-color: var(--gov-blue);
    outline: 1px solid var(--gov-blue);
    box-shadow: none;
}

/* 9. BUTTONS */
.quick-amounts-grid {
    display: flex;
    gap: 5px;
    margin: 10px 0 20px 0;
}

.btn-amount-chip {
    flex: 1;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 12px;
    font-size: 14px;
    /* Larger text */
    cursor: pointer;
    border-radius: 8px;
    /* Rounded */
    color: #374151;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-amount-chip:hover {
    background: #e2e6ea;
}

.btn-p-submit {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 16px;
    /* Taller button */
    width: 100%;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 16px;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.3) !important;
    opacity: 1;
    transition: all 0.3s;
    margin-top: 15px;
}

.btn-p-submit:hover {
    background: #c9302c;
}

.btn-p-submit:disabled {
    background: #d9534f;
    opacity: 0.6;
}

.pulse-red {
    animation: none !important;
}

/* 10. CONTRIBUTOR LIST / TABLE */
.contributor-list-card {
    border: 1px solid #ddd;
    border-top: 3px solid var(--gov-blue);
    /* Header accent */
}

.contributor-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.contributor-item:nth-child(even) {
    background: #f9f9f9;
    /* Zebra striping */
}

.contributor-name {
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.contributor-amount {
    color: var(--gov-red);
    font-weight: bold;
    font-size: 14px;
}

.verified-badge {
    color: var(--success-green);
    margin-left: 5px;
}

.pending-badge {
    color: var(--pending-orange);
    margin-left: 5px;
}

/* RESPONSIVE */
.donation-steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

.step-item {
    background: #fefefe;
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.2s;
}

.step-icon {
    font-size: 30px;
    margin-bottom: 5px;
}

.text-blue {
    color: var(--gov-blue);
}

.text-red {
    color: var(--gov-red);
}

.text-green {
    color: green;
}

.step-title {
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.step-desc {
    font-size: 12px;
    color: #666;
    display: none;
    /* Hide desc on desktop default to keep it clean, show on hover or mobile? */
}

/* Mobile Redesign */
@media (max-width: 768px) {
    .premium-detail-grid {
        grid-template-columns: 1fr;
    }

    /* COMPACT MOBILE VIEW */
    .donation-hero-v2 {
        padding: 10px 0;
        /* Reduced from 20px */
        margin-bottom: 10px;
        /* Reduced from 20px */
    }

    .premium-detail-grid {
        margin-top: 0;
        /* Remove top margin */
        gap: 10px;
        padding: 0 5px;
        /* WIDEN: Reduced from 15px */
    }

    /* Fix Big Title */
    .donation-hero-v2 h1 {
        font-size: 20px;
        /* Even smaller */
        margin: 5px 0;
        line-height: 1.2;
    }

    .donation-hero-v2 p {
        font-size: 14px;
        margin-bottom: 5px;
    }

    /* Reduce Header/Intro spacing */
    .detail-main-content {
        padding: 10px !important;
        /* WIDEN: Reduced from 15px or 20px */
    }

    /* Pull "Ngày đăng" closer */
    .detail-main-content>div:first-child {
        margin-bottom: 15px !important;
        padding-bottom: 10px !important;
    }

    /* Adjust Navigation Padding if possible (assuming .main-nav exists elsewhere, but override here) */
    .main-nav a {
        padding: 10px 15px;
        /* Reduce nav padding if applicable */
    }

    /* Fix Big Title */
    .donation-hero-v2 h1 {
        font-size: 24px;
        margin: 5px 0;
        line-height: 1.3;
    }

    /* REDESIGN STEPS: Vertical List */
    .donation-steps-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 10px;
    }

    .step-item {
        display: flex;
        align-items: center;
        /* Align icon and text vertically */
        text-align: left;
        /* Left align text */
        padding: 12px 15px;
        gap: 15px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }

    .step-icon {
        font-size: 24px;
        margin-bottom: 0;
        /* Reset margin */
        width: 30px;
        /* Fixed width for alignment */
        text-align: center;
    }

    .step-content {
        flex: 1;
    }

    .step-title {
        font-size: 15px;
        margin-bottom: 2px;
    }

    .step-desc {
        display: block;
        /* Show description on mobile for clarity */
        font-size: 13px;
    }

    /* Fix Padding */
    .detail-main-content {
        padding: 15px !important;
    }

    /* Fix Contribution List Header */
    .detail-main-content h4 {
        font-size: 16px !important;
    }

    /* Fix Contribution List */
    .contributor-item {
        padding: 10px;
    }

    .contributor-name {
        font-size: 13px;
    }

    /* MOBILE STICKY FOOTER */
    .mobile-sticky-action {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 10px 15px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        align-items: center;
        gap: 15px;
        border-top: 1px solid #eee;
    }

    /* Add padding to body so footer doesn't cover content */
    body {
        padding-bottom: 70px;
    }
}

/* Default state: Hide Sticky Footer on Desktop */
.mobile-sticky-action {
    display: none;
}

/* ADDED FOR MODAL ANIMATION */
@keyframes popIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal Overlay Animation */
#donor-modal-overlay {
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ====== FORMAL GOVERNMENT-STYLE FUND CARDS ====== */

.fund-card {
    background: #ffffff;
    border: 2px solid #d1d5db;
    border-top: 4px solid var(--gov-red);
    /* Red accent line */
    border-radius: 4px;
    /* Minimal rounding */
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    /* Subtle shadow */
    transition: all 0.2s ease;
    position: relative;
}

.fund-card:hover {
    transform: translateY(-2px);
    /* Less dramatic lift */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
    border-color: #9ca3af;
}

.fund-image-header {
    height: 180px;
    /* Slightly shorter */
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}

.fund-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Remove zoom effect - too playful for formal style */
.fund-card:hover .fund-image-header img {
    transform: none;
}

.fund-badge-container {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 3px;
    /* Sharp corners */
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.badge-hot {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    color: white;
    border: 1px solid #7f1d1d;
}

.badge-new {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
    border: 1px solid #065f46;
}

.fund-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.fund-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.4;
    font-family: 'Times New Roman', serif;
    /* More formal font */
}

.fund-description {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
    text-align: justify;
    /* Formal alignment */
}

/* Progress Section - More Structured */
.fund-progress {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
    padding: 12px;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.current-amount {
    font-size: 18px;
    font-weight: 700;
    color: var(--gov-red);
    font-family: 'Courier New', monospace;
    /* Formal number font */
}

.target-amount {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.progress-bar-modern {
    width: 100%;
    height: 8px;
    /* Thinner bar */
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 6px;
    border: 1px solid #d1d5db;
    /* Border around progress bar */
}

.progress-bar-fill {
    height: 100%;
    background: var(--gov-red);
    /* Solid color, no gradient */
    transition: width 1s ease-out;
    position: relative;
}

/* Remove shimmer - too flashy for formal style */
.progress-bar-fill::after {
    display: none;
}

.progress-percentage {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    text-align: right;
    font-family: 'Courier New', monospace;
}

/* Meta Information - Grid Layout */
.fund-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 3px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    font-weight: 600;
}

.meta-item i {
    color: var(--gov-blue);
    font-size: 14px;
}

/* Action Buttons - Formal Style */
.fund-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.btn {
    padding: 11px 16px;
    border-radius: 3px;
    /* Sharp corners */
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--gov-red);
    color: white;
    border-color: var(--gov-red);
    box-shadow: 0 2px 4px rgba(190, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #a80000;
    border-color: #a80000;
    box-shadow: 0 3px 6px rgba(190, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* Budget Button - Green for Revenue Collection */
.btn-budget {
    background: #047857;
    /* Green-700 */
    color: white;
    border-color: #047857;
    box-shadow: 0 2px 4px rgba(4, 120, 87, 0.2);
}

.btn-budget:hover {
    background: #065f46;
    /* Green-800 */
    border-color: #065f46;
    box-shadow: 0 3px 6px rgba(4, 120, 87, 0.3);
    transform: translateY(-1px);
}

.btn-secondary {
    background: white;
    color: var(--gov-blue);
    border: 2px solid var(--gov-blue);
}

.btn-secondary:hover {
    background: var(--gov-blue);
    color: white;
    transform: translateY(-1px);
}

/* Fund Grid Layout */
.funds-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
    margin-top: 20px;
}

/* Responsive Adjustments for Fund Cards */
@media (max-width: 1200px) {
    .funds-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .funds-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .fund-image-header {
        height: 160px;
    }

    .fund-content {
        padding: 16px;
    }

    .fund-title {
        font-size: 17px;
    }

    .current-amount {
        font-size: 16px;
    }

    .fund-actions {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .btn {
        width: 100%;
    }

    /* Stack meta items on mobile */
    .fund-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* ====== PHASE 2: SCROLL ANIMATIONS ====== */

/* Initial state for elements to animate */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animations for fund cards - DISABLED to prevent opacity issues */
/* Cards will display immediately without fade-in animation */

/* Progress bar animation */
.progress-fill {
    width: 0 !important;
    /* Start at 0 */
}

.progress-fill.animated {
    /* Width will be set by JavaScript */
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

/* ====== PHASE 2: HERO SECTION WITH STATISTICS ====== */

.donation-hero-modern {
    background: linear-gradient(135deg, #be0000 0%, #8b0000 100%);
    color: white;
    text-align: center;
    padding: 60px 20px 50px;
    margin: -20px -20px 30px -20px;
    /* Bleed to edges */
    position: relative;
    overflow: hidden;
}

.donation-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,%3Csvg width="60" height="60" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath d="M30 15 L30 45 M15 30 L45 30" stroke="rgba(255,255,255,0.05)" stroke-width="2"/%3E%3C/svg%3E');
    opacity: 0.3;
}

.hero-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: icon-float 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.donation-hero-modern h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.donation-hero-modern .hero-subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Statistics Counter Grid */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 20px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    font-family: 'Roboto', monospace;
    margin-bottom: 8px;
    color: #ffff00;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
    font-weight: 600;
}

/* Responsive Hero */
@media (max-width: 768px) {
    .donation-hero-modern {
        padding: 40px 15px 35px;
        margin: 0 0 20px 0;
    }

    .donation-hero-modern h1 {
        font-size: 24px;
    }

    .hero-icon {
        font-size: 48px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-number {
        font-size: 28px;
    }
}

/* ====== PHASE 3: TABBED INTRO SECTION ====== */

.intro-section-modern {
    margin-bottom: 30px;
}

.intro-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.tab-btn:hover {
    color: var(--gov-red);
    background: #fef2f2;
}

.tab-btn.active {
    color: var(--gov-red);
    border-bottom-color: var(--gov-red);
    background: #fff5f5;
}

.intro-content {
    position: relative;
    min-height: 200px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.tab-panel.active {
    display: block;
}

.tab-panel-content {
    background: #fffcfc;
    border-left: 4px solid var(--primary-red);
    padding: 25px;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

/* Mobile tabs */
@media (max-width: 768px) {
    .intro-tabs {
        flex-direction: column;
        border-bottom: none;
        gap: 8px;
    }

    .tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
        text-align: left;
        border-radius: 6px;
    }

    .tab-btn.active {
        border-left-color: var(--gov-red);
    }
}

/* ====== PHASE 3: FILTER & SEARCH ====== */

.funds-toolbar {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    justify-content: space-between;
}

.search-box {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--gov-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.search-box .search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
}

.filter-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-pill:hover {
    border-color: var(--gov-blue);
    color: var(--gov-blue);
    background: #eff6ff;
}

.filter-pill.active {
    background: var(--gov-blue);
    color: white;
    border-color: var(--gov-blue);
}

.sort-dropdown {
    position: relative;
}

.sort-dropdown select {
    padding: 10px 36px 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 12 12"%3E%3Cpath fill="%23666" d="M6 9L1 4h10z"/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all 0.2s ease;
}

.sort-dropdown select:focus {
    outline: none;
    border-color: var(--gov-blue);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

/* Mobile toolbar */
@media (max-width: 768px) {
    .funds-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
        min-width: auto;
    }

    .filter-pills {
        width: 100%;
        justify-content: center;
    }

    .sort-dropdown {
        width: 100%;
    }

    .sort-dropdown select {
        width: 100%;
    }
}

/* ====== PHASE 3: SKELETON LOADING ====== */

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.skeleton-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skeleton-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer-loading 1.5s infinite;
}

@keyframes shimmer-loading {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

.skeleton-content {
    padding: 20px;
}

.skeleton-line {
    height: 16px;
    background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer-loading 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 12px;
}

.skeleton-line.title {
    height: 20px;
    width: 80%;
}

.skeleton-line.text {
    width: 100%;
}

.skeleton-line.text:last-child {
    width: 60%;
}

.skeleton-progress {
    height: 10px;
    background: #e5e7eb;
    border-radius: 10px;
    margin: 16px 0;
}

.skeleton-buttons {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.skeleton-button {
    flex: 1;
    height: 44px;
    background: #e5e7eb;
    border-radius: 8px;
}

/* Responsive skeleton */
@media (max-width: 1200px) {
    .skeleton-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
    }

    .skeleton-image {
        height: 180px;
    }
}

/* ====== PHASE 3: EMPTY STATES ====== */

.no-results-state {
    text-align: center;
    padding: 60px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.no-results-state .icon {
    font-size: 64px;
    color: #d1d5db;
    margin-bottom: 20px;
}

.no-results-state h3 {
    color: #374151;
    margin-bottom: 10px;
    font-size: 20px;
}

.no-results-state p {
    color: #6b7280;
    line-height: 1.6;
}

.no-results-state .reset-btn {
    margin-top: 20px;
    padding: 10px 24px;
    background: var(--gov-blue);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.no-results-state .reset-btn:hover {
    background: #004080;
    transform: translateY(-2px);
}