@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);
} 
 / *   - - -   D I G I T A L   C E R T I F I C A T E   S T Y L E S   - - -   * /  
 . c e r t - m o d a l - o v e r l a y   {  
         p o s i t i o n :   f i x e d ;  
         t o p :   0 ;  
         l e f t :   0 ;  
         w i d t h :   1 0 0 % ;  
         h e i g h t :   1 0 0 % ;  
         b a c k g r o u n d :   r g b a ( 0 ,   0 ,   0 ,   0 . 8 5 ) ;  
         z - i n d e x :   9 9 9 9 9 ;  
         d i s p l a y :   f l e x ;   / *   H i d d e n   b y   d e f a u l t   v i a   i n l i n e   s t y l e   * /  
         j u s t i f y - c o n t e n t :   c e n t e r ;  
         a l i g n - i t e m s :   c e n t e r ;  
         b a c k d r o p - f i l t e r :   b l u r ( 5 p x ) ;  
         a n i m a t i o n :   f a d e I n   0 . 3 s   e a s e - o u t ;  
 }  
  
 . c e r t - m o d a l - c o n t e n t   {  
         b a c k g r o u n d :   t r a n s p a r e n t ;  
         p a d d i n g :   0 ;  
         p o s i t i o n :   r e l a t i v e ;  
         m a x - w i d t h :   9 0 % ;  
         m a x - h e i g h t :   9 5 v h ;  
         d i s p l a y :   f l e x ;  
         f l e x - d i r e c t i o n :   c o l u m n ;  
         a l i g n - i t e m s :   c e n t e r ;  
 }  
  
 . c e r t - c l o s e - b t n   {  
         p o s i t i o n :   a b s o l u t e ;  
         t o p :   - 4 0 p x ;  
         r i g h t :   0 ;  
         c o l o r :   w h i t e ;  
         f o n t - s i z e :   3 0 p x ;  
         c u r s o r :   p o i n t e r ;  
         z - i n d e x :   1 0 0 0 0 0 ;  
 }  
  
 . c e r t - c l o s e - b t n : h o v e r   {  
         c o l o r :   v a r ( - - g o v - r e d ) ;  
 }  
  
 / *   P A P E R   S T Y L E   * /  
 . c e r t i f i c a t e - p a p e r   {  
         b a c k g r o u n d :   # f f f d f 5   u r l ( ' h t t p s : / / w w w . t r a n s p a r e n t t e x t u r e s . c o m / p a t t e r n s / c r e a m - p a p e r . p n g ' ) ;   / *   S u b t l e   t e x t u r e   * /  
         w i d t h :   8 0 0 p x ;   / *   A 4   L a n d s c a p e   R a t i o   a p p r o x   * /  
         h e i g h t :   5 6 6 p x ;    
         p a d d i n g :   2 0 p x ;  
         b o x - s h a d o w :   0   1 0 p x   3 0 p x   r g b a ( 0 , 0 , 0 , 0 . 5 ) ;  
         p o s i t i o n :   r e l a t i v e ;  
         f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   T i m e s ,   s e r i f ;  
         c o l o r :   # 3 3 3 ;  
         o v e r f l o w :   h i d d e n ;  
 }  
  
 / *   B O R D E R S   * /  
 . c e r t - b o r d e r - o u t e r   {  
         b o r d e r :   5 p x   s o l i d   # b d 9 b 5 3 ;   / *   G o l d   o u t e r   * /  
         h e i g h t :   1 0 0 % ;  
         p a d d i n g :   5 p x ;  
 }  
  
 . c e r t - b o r d e r - i n n e r   {  
         b o r d e r :   3 p x   d o u b l e   # d a 2 5 1 d ;   / *   R e d   i n n e r   d o u b l e   * /  
         h e i g h t :   1 0 0 % ;  
         p o s i t i o n :   r e l a t i v e ;  
         d i s p l a y :   f l e x ;  
         f l e x - d i r e c t i o n :   c o l u m n ;  
         a l i g n - i t e m s :   c e n t e r ;  
         p a d d i n g :   2 0 p x   4 0 p x ;  
         b a c k g r o u n d - i m a g e :   r a d i a l - g r a d i e n t ( c i r c l e ,   r g b a ( 2 5 5 , 2 5 5 , 2 5 5 , 0 . 8 )   0 % ,   r g b a ( 2 5 5 , 2 5 3 , 2 4 5 , 0 . 2 )   1 0 0 % ) ;  
 }  
  
 / *   C O R N E R   D E C O R A T I O N   ( C S S   S h a p e s )   * /  
 . c e r t - b o r d e r - i n n e r : : b e f o r e ,  
 . c e r t - b o r d e r - i n n e r : : a f t e r   {  
         c o n t e n t :   " â Ü& " ;  
         p o s i t i o n :   a b s o l u t e ;  
         c o l o r :   # b d 9 b 5 3 ;  
         f o n t - s i z e :   2 0 p x ;  
 }  
 . c e r t - b o r d e r - i n n e r : : b e f o r e   {   t o p :   5 p x ;   l e f t :   5 p x ;   }  
 . c e r t - b o r d e r - i n n e r : : a f t e r   {   t o p :   5 p x ;   r i g h t :   5 p x ;   }  
  
 / *   C O N T E N T   E L E M E N T S   * /  
 . c e r t - h e a d e r   {   t e x t - a l i g n :   c e n t e r ;   m a r g i n - b o t t o m :   1 0 p x ;   }  
 . c e r t - n a t i o n   {   f o n t - w e i g h t :   b o l d ;   t e x t - t r a n s f o r m :   u p p e r c a s e ;   f o n t - s i z e :   1 6 p x ;   }  
 . c e r t - m o t t o   {   f o n t - w e i g h t :   b o l d ;   f o n t - s i z e :   1 4 p x ;   p a d d i n g - b o t t o m :   5 p x ;   p o s i t i o n :   r e l a t i v e ;   }  
 . c e r t - l i n e   {   w i d t h :   1 0 0 p x ;   h e i g h t :   1 p x ;   b a c k g r o u n d :   # 3 3 3 ;   m a r g i n :   0   a u t o ;   }  
  
 . c e r t - e m b l e m   {   m a r g i n :   1 0 p x   0 ;   }  
 . c e r t - e m b l e m   i m g   {   w i d t h :   7 0 p x ;   h e i g h t :   a u t o ;   d i s p l a y :   b l o c k ;   }  
  
 . c e r t - t i t l e   {  
         f o n t - s i z e :   3 2 p x ;  
         f o n t - w e i g h t :   9 0 0 ;  
         c o l o r :   # d a 2 5 1 d ;  
         t e x t - t r a n s f o r m :   u p p e r c a s e ;  
         t e x t - s h a d o w :   1 p x   1 p x   0 p x   r g b a ( 0 , 0 , 0 , 0 . 1 ) ;  
         m a r g i n - b o t t o m :   5 p x ;  
         l e t t e r - s p a c i n g :   1 p x ;  
 }  
  
 . c e r t - s u b t i t l e   {  
         f o n t - s i z e :   2 4 p x ;  
         f o n t - w e i g h t :   b o l d ;  
         c o l o r :   # b d 9 b 5 3 ;  
         t e x t - t r a n s f o r m :   u p p e r c a s e ;  
         m a r g i n - b o t t o m :   2 0 p x ;  
         l e t t e r - s p a c i n g :   2 p x ;  
 }  
  
 . c e r t - b o d y   {   t e x t - a l i g n :   c e n t e r ;   w i d t h :   1 0 0 % ;   f l e x :   1 ;   }  
  
 . c e r t - t e x t   {   f o n t - s i z e :   1 6 p x ;   m a r g i n :   5 p x   0 ;   f o n t - s t y l e :   i t a l i c ;   }  
 . c e r t - t e x t - b o l d   {   f o n t - s i z e :   1 6 p x ;   f o n t - w e i g h t :   b o l d ;   t e x t - t r a n s f o r m :   u p p e r c a s e ;   m a r g i n :   1 0 p x   0 ;   }  
  
 . c e r t - d o n o r - n a m e   {  
         f o n t - s i z e :   2 8 p x ;  
         f o n t - w e i g h t :   b o l d ;  
         c o l o r :   # d a 2 5 1 d ;  
         t e x t - t r a n s f o r m :   u p p e r c a s e ;  
         m a r g i n :   1 0 p x   0 ;  
         f o n t - f a m i l y :   ' T i m e s   N e w   R o m a n ' ,   s e r i f ;  
 }  
  
 . c e r t - a m o u n t   {  
         f o n t - s i z e :   2 2 p x ;  
         f o n t - w e i g h t :   b o l d ;  
         c o l o r :   # 3 3 3 ;  
         m a r g i n - b o t t o m :   1 5 p x ;  
 }  
  
 . c e r t - d e t a i l s   {   f o n t - s i z e :   1 5 p x ;   c o l o r :   # 5 5 5 ;   m a r g i n - b o t t o m :   1 5 p x ;   }  
 . c e r t - t h a n k s   {   f o n t - s i z e :   1 5 p x ;   f o n t - s t y l e :   i t a l i c ;   m a r g i n - t o p :   1 0 p x ;   m a x - w i d t h :   8 0 % ;   m a r g i n - l e f t :   a u t o ;   m a r g i n - r i g h t :   a u t o ;   }  
  
 . c e r t - f o o t e r   {  
         w i d t h :   1 0 0 % ;  
         m a r g i n - t o p :   2 0 p x ;  
         d i s p l a y :   f l e x ;  
         f l e x - d i r e c t i o n :   c o l u m n ;  
         a l i g n - i t e m s :   f l e x - e n d ;  
         p a d d i n g - r i g h t :   2 0 p x ;  
 }  
  
 . c e r t - l o c a t i o n   {   f o n t - s t y l e :   i t a l i c ;   f o n t - s i z e :   1 4 p x ;   m a r g i n - b o t t o m :   5 p x ;   }  
 . c e r t - s i g n a t u r e - b l o c k   {   t e x t - a l i g n :   c e n t e r ;   w i d t h :   2 0 0 p x ;   }  
 . c e r t - r o l e   {   f o n t - w e i g h t :   b o l d ;   f o n t - s i z e :   1 3 p x ;   t e x t - t r a n s f o r m :   u p p e r c a s e ;   }  
 . c e r t - r o l e - t i t l e   {   f o n t - w e i g h t :   b o l d ;   f o n t - s i z e :   1 4 p x ;   t e x t - t r a n s f o r m :   u p p e r c a s e ;   c o l o r :   # d a 2 5 1 d ;   m a r g i n - b o t t o m :   3 0 p x ;   }  
 . c e r t - s i g n e r - n a m e   {   f o n t - w e i g h t :   b o l d ;   f o n t - s i z e :   1 4 p x ;   t e x t - t r a n s f o r m :   u p p e r c a s e ;   }  
  
 / *   A C T I O N S   * /  
 . c e r t - a c t i o n s   {   m a r g i n - t o p :   2 0 p x ;   d i s p l a y :   f l e x ;   g a p :   1 5 p x ;   }  
 . c e r t - b t n - p r i n t ,   . c e r t - b t n - d o w n l o a d   {  
         p a d d i n g :   1 0 p x   2 0 p x ;  
         b o r d e r :   n o n e ;  
         b o r d e r - r a d i u s :   5 p x ;  
         f o n t - w e i g h t :   b o l d ;  
         c u r s o r :   p o i n t e r ;  
         f o n t - s i z e :   1 4 p x ;  
         d i s p l a y :   f l e x ;  
         a l i g n - i t e m s :   c e n t e r ;  
         g a p :   8 p x ;  
         t r a n s i t i o n :   t r a n s f o r m   0 . 2 s ;  
 }  
 . c e r t - b t n - p r i n t   {   b a c k g r o u n d :   # 3 3 3 ;   c o l o r :   w h i t e ;   }  
 . c e r t - b t n - d o w n l o a d   {   b a c k g r o u n d :   # d a 2 5 1 d ;   c o l o r :   w h i t e ;   }  
 . c e r t - b t n - p r i n t : h o v e r ,   . c e r t - b t n - d o w n l o a d : h o v e r   {   t r a n s f o r m :   t r a n s l a t e Y ( - 2 p x ) ;   b o x - s h a d o w :   0   4 p x   8 p x   r g b a ( 0 , 0 , 0 , 0 . 2 ) ;   }  
  
 / *   R E S P O N S I V E   S C A L I N G   f o r   M o b i l e   * /  
 @ m e d i a   ( m a x - w i d t h :   8 5 0 p x )   {  
         . c e r t i f i c a t e - p a p e r   {  
                 z o o m :   0 . 5 ;   / *   Q u i c k   s c a l e   d o w n   * /  
                 / *   O r   u s e   t r a n s f o r m :   s c a l e ( 0 . 5 ) ;   t r a n s f o r m - o r i g i n :   t o p   c e n t e r ;   * /  
         }  
 }  
  
 / *   I C O N   I N   L I S T   * /  
 . b t n - v i e w - c e r t   {  
         b a c k g r o u n d :   n o n e ;  
         b o r d e r :   n o n e ;  
         c o l o r :   # b d 9 b 5 3 ;  
         c u r s o r :   p o i n t e r ;  
         m a r g i n - l e f t :   8 p x ;  
         f o n t - s i z e :   1 6 p x ;  
         t r a n s i t i o n :   c o l o r   0 . 2 s ;  
 }  
 . b t n - v i e w - c e r t : h o v e r   {   c o l o r :   # d a 2 5 1 d ;   t r a n s f o r m :   s c a l e ( 1 . 1 ) ;   }  
 
 / *   - - -   P R I N T   R U L E S   F O R   M O D A L   - - -   * / 
 @ m e d i a   p r i n t   { 
         b o d y   *   {   v i s i b i l i t y :   h i d d e n ;   } 
         # c e r t i f i c a t e - p r i n t - a r e a ,   # c e r t i f i c a t e - p r i n t - a r e a   *   {   v i s i b i l i t y :   v i s i b l e ;   } 
         # c e r t i f i c a t e - p r i n t - a r e a   {   p o s i t i o n :   a b s o l u t e ;   l e f t :   0 ;   t o p :   0 ;   w i d t h :   1 0 0 % ;   } 
         . c e r t - a c t i o n s ,   . c e r t - c l o s e - b t n   {   d i s p l a y :   n o n e   ! i m p o r t a n t ;   } 
 }  
 