/* ================================================== */
/* EUROPEAN CHURCH DEVELOPMENT PLATFORM CSS */
/* ================================================== */

/* ===== GLOBAL RESET & BASE STYLES ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: #374151;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding: 0;
}

/* ===== HERO BANNER ===== */
.hero-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: clamp(2rem, 4vw, 2.5rem) 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-title i {
    margin-right: 0.5rem;
    color: #ffd700;
}

.hero-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CONTROLS SECTION ===== */
.controls {
    max-width: 1200px;
    margin: 30px auto 20px auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filters {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
}

select {
    padding: 8px 12px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 140px;
}

select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.view-toggle {
    display: flex;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.view-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.view-btn.active {
    background: #667eea;
    color: white;
}

.view-btn:hover:not(.active) {
    background: #f8f9fa;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== PROJECT CARDS ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.project-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #e8e8e8;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #667eea;
}

/* Grid View Specific Styles */
.projects-grid .project-card {
    display: flex;
    flex-direction: column;
    height: 460px;
}

.projects-grid .project-image {
    height: 120px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.projects-grid .project-content {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projects-grid .project-main-content {
    flex: 1;
}

/* List View Specific Styles */
.projects-list .project-card {
    display: flex;
    min-height: 160px;
    align-items: stretch;
}

.projects-list .project-image {
    width: 200px;
    flex-shrink: 0;
    background: linear-gradient(45deg, #667eea, #764ba2);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-list .project-content {
    flex: 1;
    padding: 14px;
    display: flex;
    flex-direction: column;
}

.projects-list .project-main-content {
    flex: 1;
}

/* Common Image Styles */
.project-image i {
    font-size: 2.2rem;
    color: white;
    opacity: 0.9;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-subtitle {
    font-size: 0.9rem;
    color: #5b6476;
    font-weight: 600;
    margin: -6px 0 10px;
    line-height: 1.45;
}

/* Badge Styles */
.project-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.featured-badge {
    background: #ffd700;
    color: #333;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

.urgency-badge {
    background: #dc3545;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 600;
    animation: pulse 2s infinite;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Content Header */
.content-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.project-location-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #667eea;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
}

.verified-badge {
    background: #28a745;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Title and Description */
.project-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 6px;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-description {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Project Meta Info */
.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.7rem;
    color: #777;
    gap: 10px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* Budget Section */
.budget-section {
    margin-bottom: 10px;
}

.budget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.budget-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #333;
}

.budget-percentage {
    font-size: 0.75rem;
    font-weight: 600;
    color: #28a745;
}

.budget-bar {
    background: #e9ecef;
    border-radius: 8px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 4px;
}

.budget-progress {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    transition: width 1.5s ease;
    border-radius: 8px;
}

.budget-amounts {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #666;
}

.raised-amount {
    font-weight: 600;
    color: #28a745;
}

.target-amount {
    font-weight: 600;
    color: #333;
}

/* Supporters Section */
.supporters-section {
    margin-bottom: 10px;
}

.supporters-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 4px;
}

.supporters-list {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.supporter-tag {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 0.65rem;
    color: #555;
    border: 1px solid #e8e8e8;
}

/* Project Footer Wrapper */
.project-footer-wrapper {
    margin-top: auto;
}

/* Project Footer */
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
    border-top: 1px solid #eee;
    gap: 8px;
}

.project-actions {
    display: flex;
    gap: 8px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.65rem;
    color: #666;
    transition: color 0.3s;
    padding: 2px;
}

.action-btn i {
    font-size: 0.75rem;
}

.action-btn:hover {
    color: #667eea;
}

.action-btn.liked {
    color: #e74c3c;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

/* Compact Gallery Button - Same row as Details & Donate */
.gallery-btn-compact {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 5px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(240, 147, 251, 0.25);
    white-space: nowrap;
}

.gallery-btn-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.35);
    background: linear-gradient(135deg, #f5576c 0%, #f093fb 100%);
}

.gallery-btn-compact:active {
    transform: translateY(0);
}

.gallery-btn-compact i {
    font-size: 12px;
}

.details-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.details-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.details-btn i {
    font-size: 12px;
}

.donate-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 6px 8px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 11.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    white-space: nowrap;
}

.donate-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.donate-btn i {
    font-size: 12px;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 30px 0;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    font-size: 0.85rem;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

.page-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* ===== DETAIL PAGE STYLES ===== */
.detail-page {
    display: none;
    min-height: 100vh;
    background: #f8f9fa;
}

.detail-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: clamp(2rem, 4vw, 3rem) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin: 0;
    width: 100%;
}

.detail-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.detail-banner .hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.project-status-badge {
    display: inline-block;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    animation: slideInDown 0.8s ease;
}

.detail-banner h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    animation: slideInUp 0.8s ease 0.2s both;
}

.detail-banner h1 i {
    color: #ffd700;
    margin-right: 0.5rem;
}

.detail-banner p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.95;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease 0.4s both;
}

.detail-location-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease 0.6s both;
}

.location-badge, .project-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

/* Progress Summary */
.progress-summary {
    background: white;
    margin: -30px auto 0;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.progress-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    padding: 30px 20px;
    gap: 20px;
}

.progress-item {
    text-align: center;
    padding: 15px;
}

.progress-number {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.progress-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.progress-divider {
    width: 1px;
    background: #e9ecef;
    margin: 10px 0;
}

.progress-bar-container {
    padding: 0 30px 30px;
}

.progress-bar {
    background: #e9ecef;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 2s ease;
}

/* Main Content */
.detail-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Biblical Section */
.biblical-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.bible-verse {
    max-width: 600px;
    margin: 0 auto;
}

.bible-verse i {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 15px;
}

.bible-verse p {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-style: italic;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.bible-verse cite {
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
}

/* Proposal Sections */
.proposal-section {
    background: white;
    border-radius: 15px;
    padding: clamp(2rem, 4vw, 3rem);
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.section-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #333;
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 1rem;
    border-bottom: 3px solid #667eea;
}

.section-title i {
    color: #667eea;
    font-size: 1.5rem;
}

.section-content {
    color: #555;
    line-height: 1.8;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
}

.section-content h4 {
    color: #333;
    margin: 20px 0 10px;
    font-weight: 600;
}

.section-content ul {
    margin: 15px 0;
    padding-left: 25px;
}

.section-content li {
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Executive Summary Styles */
.summary-highlight {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    text-align: center;
}

.summary-text {
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    text-align: center;
}

.cta-section .section-title {
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.cta-section .section-title i {
    color: #ffd700;
}

.final-cta {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    margin-bottom: 20px;
    color: white;
}

.cta-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
    opacity: 0.95;
}

.bible-verse-small {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    font-style: italic;
    backdrop-filter: blur(10px);
}

.bible-verse-small i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.bible-verse-small cite {
    display: block;
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.donate-btn-primary {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.donate-btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.4);
}

.share-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 13px 28px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.share-btn:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.back-btn {
    position: fixed;
    top: 70px;
    left: 20px;
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.back-btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

/* ===== PAYMENT PAGE STYLES ===== */
.payment-page {
    display: none;
    min-height: 100vh;
    background-color: #f9fafb;
    color: #333;
    line-height: 1.6;
    padding: 0;
}

/* Payment Header */
.payment-header {
    text-align: center;
    margin: 0 0 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: clamp(2rem, 4vw, 2.5rem) 0;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.payment-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

.payment-header-content {
    position: relative;
    z-index: 1;
}

.payment-page-title {
    font-size: 2.1rem;
    color: white;
    margin-bottom: 5px;
}

.payment-page-subtitle {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.payment-section-title {
    color: #4a5568;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
}

.payment-section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #2b6cb0, #4c51bf);
    margin: 10px auto 0;
    border-radius: 2px;
}

.payment-donation-description {
    text-align: center;
    margin-bottom: 30px;
    color: #718096;
}

.payment-donation-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Form Tabs */
.payment-form-tabs {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.payment-form-tab {
    flex: 1;
    padding: 12px 5px;
    text-align: center;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    color: #718096;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.payment-form-tab.payment-active {
    color: #4c51bf;
    border-bottom-color: #4c51bf;
}

.payment-form-tab i {
    margin-right: 8px;
    font-size: 16px;
}

/* Progress Indicator */
.payment-progress-indicator {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
}

.payment-progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e2e8f0;
    position: relative;
}

.payment-progress-dot.payment-active {
    background-color: #4c51bf;
}

.payment-progress-dot:not(:last-child):after {
    content: '';
    position: absolute;
    height: 2px;
    width: 15px;
    background-color: #e2e8f0;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
}

.payment-progress-dot.payment-active:not(:last-child):after {
    background-color: #4c51bf;
}

/* Form Steps */
.payment-form-step {
    display: none;
    animation: paymentFadeIn 0.5s ease;
}

.payment-form-step.payment-active {
    display: block;
}

@keyframes paymentFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Form Elements */
.payment-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.payment-form-row .payment-form-group {
    flex: 1;
}

.payment-form-group {
    margin-bottom: 20px;
}

.payment-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
}

.payment-input, .payment-select, .payment-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
    background-color: #ffffff;
}

.payment-input:focus, .payment-select:focus, .payment-textarea:focus {
    border-color: #4c51bf;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.1);
}

.payment-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.payment-checkbox-group input {
    width: auto;
    margin-top: 5px;
}

/* Amount Selection */
.payment-amount-section {
    display: flex;
    margin-bottom: 20px;
    gap: 20px;
    align-items: center;
}

.payment-amount-options-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.payment-amount-options {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.payment-amount-option {
    flex: 0 0 auto;
    width: 60px;
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.payment-amount-option:hover {
    background-color: #f7fafc;
    border-color: #2b6cb0;
}

.payment-amount-option.payment-selected {
    background-color: #4c51bf;
    border-color: #4c51bf;
    color: white;
    box-shadow: 0 4px 6px rgba(76, 81, 191, 0.1);
}

.payment-custom-amount {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    flex: 1;
}

.payment-custom-amount .payment-label {
    margin-bottom: 0;
    white-space: nowrap;
}

.payment-custom-amount .payment-input {
    flex: 1;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.payment-method {
    border: 1px solid #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.payment-method-header {
    padding: 15px;
    background-color: #f7fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.payment-method.payment-active .payment-method-header {
    background-color: rgba(76, 81, 191, 0.1);
    border-left: 4px solid #4c51bf;
}

.payment-icon {
    font-size: 20px;
    color: #718096;
}

.payment-method.payment-active .payment-icon {
    color: #4c51bf;
}

.payment-method-header h4 {
    margin: 0;
    font-size: 18px;
}

.payment-method-content {
    padding: 20px;
    display: none;
    border-top: 1px solid #e2e8f0;
}

.payment-method.payment-active .payment-method-content {
    display: block;
}

/* Step Navigation */
.payment-step-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

/* Buttons */
.payment-btn {
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.payment-btn-primary {
    background-color: #4c51bf;
    color: white;
}

.payment-btn-primary:hover {
    background-color: #3c3f9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.payment-btn-secondary {
    background-color: #718096;
    color: white;
}

.payment-btn-secondary:hover {
    background-color: #5a6984;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Donation Summary */
.payment-donation-summary {
    background-color: #f7fafc;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 25px;
}

.payment-donation-summary h4 {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4a5568;
    font-size: 18px;
}

.payment-summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.payment-summary-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.payment-summary-item span:first-child {
    color: #718096;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-divider {
    margin: 30px 0;
    border: none;
    height: 1px;
    background-color: #e2e8f0;
}

.payment-thank-you-message {
    font-style: italic;
    text-align: center;
    margin-top: 20px;
    color: #718096;
}

/* ===== SUCCESS MODAL ===== */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    backdrop-filter: blur(5px);
}

.success-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: successSlideIn 0.5s ease;
}

@keyframes successSlideIn {
    from { transform: translateY(-30px) scale(0.9); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: white;
    animation: successPulse 0.8s ease;
}

@keyframes successPulse {
    0% { transform: scale(0.5); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.success-message {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.success-details {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    text-align: left;
}

.success-detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.success-detail-row:last-child {
    margin-bottom: 0;
    font-weight: 600;
    border-top: 1px solid #dee2e6;
    padding-top: 8px;
}

.success-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.success-btn {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 120px;
}

.success-btn.primary {
    background: #667eea;
    color: white;
}

.success-btn.primary:hover {
    background: #5a67d8;
}

.success-btn.secondary {
    background: #e9ecef;
    color: #333;
}

.success-btn.secondary:hover {
    background: #dee2e6;
}

/* ===== NOTIFICATION MODAL ===== */
.notification-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.notification-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 600px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalAppear 0.4s ease;
    border: 1px solid #e5e7eb;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(-30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.notification-modal-header {
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.notification-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a202c;
}

.notification-modal-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6b7280;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-modal-close:hover {
    color: #0066cc;
    background: #f3f4f6;
    transform: scale(1.1);
}

.notification-modal-body {
    padding: 24px;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.6;
    color: #374151;
}

.notification-modal-footer {
    padding: 24px;
    border-top: 1px solid #e5e7eb;
    text-align: right;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
}

.notification-modal-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.notification-modal-close-btn {
    background: #6b7280;
    color: white;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 10003;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    width: 100%;
}

.toast {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.warning {
    border-left: 4px solid #f59e0b;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #10b981;
}

.toast.error .toast-icon {
    color: #ef4444;
}

.toast.warning .toast-icon {
    color: #f59e0b;
}

.toast.info .toast-icon {
    color: #3b82f6;
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    font-size: 16px;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 4px;
    border-radius: 4px;
    flex-shrink: 0;
}

.toast-close:hover {
    color: #374151;
    background: #f3f4f6;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #10b981);
    transition: width 0.1s linear;
}

/* ===== FLOATING SOCIAL ICONS ===== */
.floating-social {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1500;
}

.social-icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6b7280;
    font-size: 18px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
    backdrop-filter: blur(12px);
    background: #ffffff;
    cursor: pointer;
}

.social-icon:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: #d1d5db;
}

.social-icon:nth-child(1) i {
    color: #f59e0b;
}

.social-icon:nth-child(1):hover i {
    color: #d97706;
}

.social-icon:nth-child(2) i {
    color: #0084ff;
}

.social-icon:nth-child(2):hover i {
    color: #0066cc;
}

.social-icon:nth-child(3) i {
    color: #25d366;
}

.social-icon:nth-child(3):hover i {
    color: #1da851;
}

.social-icon:nth-child(4) i {
    color: #8b5cf6;
}

.social-icon:nth-child(4):hover i {
    color: #7c3aed;
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    font-size: 1.2rem;
    color: #667eea;
}

.loading i {
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error State */
.error-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.error-state i {
    font-size: 3rem;
    color: #ef4444;
    margin-bottom: 1rem;
}

.error-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.error-state p {
    margin-bottom: 1.5rem;
}

.retry-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.retry-btn:hover {
    background: #5a67d8;
}

/* No Projects State */
.no-projects {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.no-projects i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.no-projects h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

/* Input Error States */
.payment-input.error,
.payment-select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* ===== ANIMATIONS ===== */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: slideInUp 0.6s ease;
}

/* ===== SHOW/HIDE PAGES ===== */
.show-main #mainPage {
    display: block;
}

.show-main #detailPage,
.show-main #paymentPage {
    display: none;
}

.show-detail #detailPage {
    display: block;
}

.show-detail #mainPage,
.show-detail #paymentPage {
    display: none;
}

.show-payment #paymentPage {
    display: block;
}

.show-payment #mainPage,
.show-payment #detailPage {
    display: none;
}

/* ===== GALLERY PAGE STYLES ===== */
.gallery-page {
    padding: 0;
    max-width: 100%;
    margin: 0;
}

.gallery-header {
    text-align: center;
    margin: 0 0 40px 0;
    padding: 30px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0;
    color: white;
    width: 100%;
}

.gallery-page-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.gallery-page-title i {
    font-size: 36px;
}

.gallery-page-subtitle {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

.gallery-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    padding: 0;
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    background: #f3f4f6;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    padding: 20px;
    text-align: center;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay i {
    font-size: 48px;
    margin-bottom: 12px;
}

.gallery-item-overlay p {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
}

/* Update action-buttons to support 3 buttons (Gallery, Details & Donate) */
.action-buttons .gallery-btn-compact,
.action-buttons .details-btn,
.action-buttons .donate-btn {
    flex: 1;
}

/* ===== LIGHTBOX STYLES ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(90vh - 100px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.lightbox-info {
    text-align: center;
    color: white;
}

.lightbox-caption {
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 8px 0;
}

.lightbox-counter {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    body {
        padding-top: 56px;
        padding-bottom: 80px;
    }

    /* Gallery responsive */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
        padding: 5px;
    }

    .gallery-page-title {
        font-size: 24px;
    }

    .gallery-page-title i {
        font-size: 28px;
    }

    .gallery-header {
        padding: 20px 0;
        margin-bottom: 24px;
    }

    .action-buttons {
        gap: 5px;
    }

    .action-buttons .gallery-btn-compact,
    .action-buttons .details-btn,
    .action-buttons .donate-btn {
        padding: 7px 9px;
        font-size: 11px;
    }

    .action-buttons button i {
        font-size: 11.5px;
    }

    /* Lightbox responsive */
    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
        top: 10px;
        right: 10px;
    }

    .lightbox-caption {
        font-size: 16px;
    }

    .lightbox-counter {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-page-title {
        font-size: 20px;
    }

    .gallery-item-overlay i {
        font-size: 36px;
    }

    .gallery-item-overlay p {
        font-size: 14px;
    }

    .action-buttons {
        flex-direction: column;
        gap: 6px;
    }

    .action-buttons .gallery-btn-compact,
    .action-buttons .details-btn,
    .action-buttons .donate-btn {
        width: 100%;
        padding: 10px 14px;
        font-size: 13px;
        justify-content: center;
    }

    .action-buttons button i {
        font-size: 13px;
    }
}

/* ===== MISSION & VISION SECTION ===== */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.mission-box, .vision-box {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.mission-box:hover, .vision-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.15);
}

.mv-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 24px;
}

.mission-box h3, .vision-box h3 {
    color: #1f2937;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.mission-box p, .vision-box p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
}

/* ===== IMPACT METRICS GRID ===== */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.impact-card {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.impact-card:hover {
    border-color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
}

.impact-icon {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 15px;
}

.impact-number {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.impact-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

/* ===== BUDGET BREAKDOWN ===== */
.budget-breakdown {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.budget-item {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.budget-category {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #1f2937;
    font-size: 15px;
}

.budget-category i {
    color: #667eea;
    font-size: 18px;
    width: 24px;
}

.budget-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.budget-bar-bg {
    flex: 1;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.budget-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    transition: width 0.8s ease;
}

.budget-percent {
    font-weight: 700;
    color: #667eea;
    font-size: 14px;
    min-width: 40px;
    text-align: right;
}

/* ===== ACTIVITIES LIST ===== */
.activities-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.activity-item {
    display: flex;
    gap: 20px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.activity-item:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    transform: translateX(5px);
}

.activity-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.activity-content h4 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.activity-content p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== CONTACT GRID ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-3px);
}

.contact-item > i {
    font-size: 24px;
    color: #667eea;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
    border-radius: 8px;
}

.contact-info {
    flex: 1;
}

.contact-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 15px;
    color: #1f2937;
    font-weight: 600;
}

/* ===== REASONS GRID ===== */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.reason-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.reason-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.reason-card > i {
    font-size: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.reason-card h4 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.reason-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== RESPONSIVE FOR NEW SECTIONS ===== */
@media (max-width: 768px) {
    .mission-vision-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .impact-number {
        font-size: 24px;
    }

    .impact-label {
        font-size: 12px;
    }

    .activities-list {
        gap: 15px;
    }

    .activity-item {
        flex-direction: column;
        padding: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .reasons-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }

    .mission-box, .vision-box {
        padding: 20px;
    }

    .mv-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}


/* ===== NATURAL SECTIONS - SIMPLE & FLOWING ===== */
.natural-section {
    margin-bottom: 40px;
}

.natural-heading {
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.natural-heading i {
    color: #667eea;
    font-size: 22px;
}

.natural-subheading {
    color: #374151;
    font-size: 20px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.natural-subheading i {
    color: #667eea;
    font-size: 18px;
}

.natural-text {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
}

.natural-text i {
    margin-right: 8px;
}

.natural-text strong {
    color: #1f2937;
}

.text-success {
    color: #10b981 !important;
}

.text-primary {
    color: #667eea !important;
}

.text-warning {
    color: #f59e0b !important;
}

/* ===== IMPACT STATS - INLINE STYLE ===== */
.impact-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    font-size: 15px;
    color: #4b5563;
}

.stat-item strong {
    color: #667eea;
    font-size: 20px;
    font-weight: 700;
}

.stat-divider {
    color: #d1d5db;
    font-size: 18px;
}

/* ===== BUDGET NATURAL - SIMPLE LIST ===== */
.budget-natural {
    margin-top: 20px;
}

.budget-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 15px;
}

.budget-line:last-child {
    border-bottom: none;
}

.budget-label {
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 10px;
}

.budget-label i {
    color: #667eea;
    font-size: 16px;
    width: 20px;
}

.budget-value {
    color: #667eea;
    font-weight: 700;
    font-size: 16px;
}

/* ===== ACTIVITIES NATURAL - FLOWING LIST ===== */
.activities-natural {
    margin-top: 15px;
}

.activity-line {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 8px;
}

.activity-line i {
    color: #667eea;
    margin-right: 12px;
    font-size: 16px;
}

.activity-line strong {
    color: #1f2937;
}

/* ===== CONTACT NATURAL - SIMPLE LIST ===== */
.contact-natural {
    margin-top: 15px;
}

.contact-line {
    color: #4b5563;
    font-size: 15px;
    line-height: 2;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-line i {
    color: #667eea;
    font-size: 16px;
    width: 24px;
}

.contact-line strong {
    color: #1f2937;
    margin-right: 8px;
}

/* ===== RESPONSIVE FOR NATURAL SECTIONS ===== */
@media (max-width: 768px) {
    .natural-heading {
        font-size: 22px;
    }

    .natural-subheading {
        font-size: 18px;
    }

    .natural-text {
        font-size: 15px;
    }

    .impact-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .stat-divider {
        display: none;
    }

    .budget-line {
        font-size: 14px;
    }

    .activity-line {
        font-size: 14px;
    }

    .contact-line {
        font-size: 14px;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .natural-heading {
        font-size: 20px;
        flex-direction: column;
        align-items: flex-start;
    }

    .stat-item strong {
        font-size: 18px;
    }
}

/* ===== BUDGET TABLE ===== */
.budget-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    font-size: 15px;
}

.budget-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.budget-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
    transition: background-color 0.2s ease;
}

.budget-table tbody tr:hover {
    background-color: #f9fafb;
}

.budget-table tbody tr.total-row {
    background-color: #f3f4f6;
    border-top: 2px solid #667eea;
    border-bottom: 2px solid #667eea;
}

.budget-table tbody tr.total-row:hover {
    background-color: #e5e7eb;
}

.budget-table td {
    padding: 12px 16px;
    color: #4b5563;
}

.budget-table td i {
    color: #667eea;
    margin-right: 8px;
    font-size: 14px;
}

.budget-table td.amount {
    font-weight: 600;
    color: #1f2937;
    text-align: right;
}

.budget-table td.percent {
    font-weight: 700;
    color: #667eea;
    text-align: center;
}

.budget-table .total-row td {
    font-size: 16px;
}

/* ===== BIBLE QUOTE INLINE ===== */
.bible-quote-inline {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
    padding: 20px 24px;
    border-left: 4px solid #667eea;
    font-style: italic;
    color: #374151;
    margin: 24px 0;
}

.bible-quote-inline i {
    color: #667eea;
    font-size: 14px;
    margin-right: 8px;
}

.bible-quote-inline em {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
}

/* ===== CTA BUTTONS NATURAL ===== */
.cta-buttons-natural {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.cta-buttons-natural .donate-btn-primary,
.cta-buttons-natural .share-btn {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-buttons-natural .donate-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.cta-buttons-natural .donate-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.cta-buttons-natural .share-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.cta-buttons-natural .share-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

/* ===== RESPONSIVE FOR TABLE ===== */
@media (max-width: 768px) {
    .budget-table {
        font-size: 14px;
    }

    .budget-table th,
    .budget-table td {
        padding: 10px 12px;
    }

    .budget-table th {
        font-size: 13px;
    }

    .cta-buttons-natural {
        flex-direction: column;
    }

    .cta-buttons-natural .donate-btn-primary,
    .cta-buttons-natural .share-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .budget-table {
        font-size: 13px;
    }

    .budget-table th,
    .budget-table td {
        padding: 8px 10px;
    }

    .budget-table th:first-child,
    .budget-table td:first-child {
        min-width: 140px;
    }

    .bible-quote-inline {
        padding: 16px 18px;
        font-size: 14px;
    }
}

/* ================================================== */
/* COMPREHENSIVE MOBILE RESPONSIVE STYLES */
/* ================================================== */

/* ===== TABLET (768px - 1024px) ===== */
@media (max-width: 1024px) {
    .hero-banner {
        padding: 2rem 1.2rem;
    }

    .controls {
        padding: 0 15px;
        gap: 15px;
    }

    /* Projects grid keeps original responsive from line 2246+ */

    .detail-content {
        padding: 25px 20px;
    }

    .payment-container {
        padding: 20px 15px;
    }
}

/* ===== MOBILE LARGE (481px - 768px) ===== */
@media (max-width: 768px) {
    .hero-banner {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 0 10px;
    }

    .filters {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .filter-select {
        width: 100%;
    }

    .view-controls {
        width: 100%;
        justify-content: center;
    }

    /* Project cards keep original responsive from line 2246+ */

    .detail-banner {
        padding: 2rem 1rem;
    }

    .detail-banner h1 {
        font-size: 1.6rem;
    }

    .detail-banner p {
        font-size: 0.9rem;
    }

    .detail-location-info {
        flex-direction: column;
        gap: 10px;
    }

    .progress-summary {
        padding: 20px 15px;
    }

    .progress-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .progress-number {
        font-size: 1.3rem;
    }

    .progress-label {
        font-size: 0.8rem;
    }

    .detail-content {
        padding: 20px 15px;
    }

    .natural-section {
        margin-bottom: 30px;
    }

    .natural-heading {
        font-size: 1.4rem;
        gap: 10px;
    }

    .natural-subheading {
        font-size: 1.2rem;
    }

    .natural-text {
        font-size: 0.95rem;
    }

    .gallery-header {
        padding: 2rem 1rem;
    }

    .gallery-header h1 {
        font-size: 1.6rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 20px 10px;
    }

    .gallery-item-overlay p {
        font-size: 0.85rem;
    }

    .lightbox-content {
        width: 95%;
        max-width: none;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .lightbox-caption {
        font-size: 0.9rem;
        padding: 12px;
    }

    .payment-header {
        padding: 2rem 1rem;
    }

    .payment-page-title {
        font-size: 1.5rem;
    }

    .payment-page-subtitle {
        font-size: 0.9rem;
    }

    .payment-container {
        padding: 20px 10px;
    }

    .payment-card {
        padding: 20px 15px;
    }

    .payment-progress {
        margin-bottom: 25px;
    }

    .payment-tabs {
        flex-direction: column;
        gap: 10px;
    }

    .payment-form-tab {
        flex: 1;
        padding: 12px;
        font-size: 0.85rem;
    }

    .payment-amount-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .payment-amount-option {
        padding: 14px;
        font-size: 0.9rem;
    }

    .payment-method {
        padding: 14px;
    }

    .payment-method-header h4 {
        font-size: 0.95rem;
    }

    .payment-button-group {
        flex-direction: column;
        gap: 10px;
    }

    .payment-next-step,
    .payment-prev-step {
        width: 100%;
    }

    .payment-summary {
        padding: 15px;
    }

    .payment-summary-row {
        font-size: 0.9rem;
    }
}

/* ===== MOBILE MEDIUM (376px - 480px) ===== */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 0.85rem;
    }

    /* Project cards keep original responsive from line 2311+ */

    .detail-banner {
        padding: 1.5rem 0.8rem;
    }

    .detail-banner h1 {
        font-size: 1.4rem;
    }

    .project-status-badge {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .location-badge,
    .project-category {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .progress-summary {
        padding: 15px 10px;
    }

    .progress-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .progress-item {
        padding: 10px;
    }

    .progress-number {
        font-size: 1.2rem;
    }

    .detail-content {
        padding: 15px 10px;
    }

    .biblical-section {
        padding: 15px 10px;
    }

    .bible-verse {
        padding: 15px;
        font-size: 0.9rem;
    }

    .natural-section {
        margin-bottom: 25px;
    }

    .natural-heading {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .natural-heading i {
        font-size: 18px;
    }

    .natural-subheading {
        font-size: 1.1rem;
        margin-top: 20px;
    }

    .natural-text {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .impact-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .stat-item {
        font-size: 0.9rem;
    }

    .stat-item strong {
        font-size: 1.1rem;
    }

    .stat-divider {
        display: none;
    }

    .budget-table {
        font-size: 0.8rem;
    }

    .budget-table th,
    .budget-table td {
        padding: 8px 6px;
    }

    .activity-line {
        font-size: 0.85rem;
        line-height: 1.7;
        padding-left: 0;
    }

    .activity-line i {
        font-size: 14px;
        margin-right: 8px;
    }

    .contact-line {
        font-size: 0.85rem;
        flex-wrap: wrap;
    }

    .contact-line i {
        font-size: 14px;
    }

    .bible-quote-inline {
        padding: 15px 12px;
        font-size: 0.85rem;
    }

    .bible-quote-inline em {
        font-size: 0.75rem;
    }

    .cta-buttons-natural {
        flex-direction: column;
        gap: 12px;
    }

    .cta-buttons-natural .donate-btn-primary,
    .cta-buttons-natural .share-btn {
        width: 100%;
        padding: 12px 24px;
        font-size: 0.95rem;
        justify-content: center;
    }

    .gallery-header {
        padding: 1.5rem 0.8rem;
    }

    .gallery-header h1 {
        font-size: 1.4rem;
    }

    .gallery-header p {
        font-size: 0.85rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px 10px;
    }

    .gallery-item {
        height: 220px;
    }

    .gallery-item-overlay i {
        font-size: 30px;
    }

    .gallery-item-overlay p {
        font-size: 0.8rem;
    }

    .lightbox-content {
        width: 98%;
        margin: 10px;
    }

    .lightbox-image {
        max-height: 60vh;
    }

    .lightbox-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }

    .lightbox-close {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .lightbox-caption {
        font-size: 0.85rem;
        padding: 10px;
    }

    .lightbox-counter {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .payment-header {
        padding: 1.5rem 0.8rem;
    }

    .payment-page-title {
        font-size: 1.3rem;
    }

    .payment-page-subtitle {
        font-size: 0.85rem;
    }

    .payment-container {
        padding: 15px 8px;
    }

    .payment-card {
        padding: 15px 12px;
    }

    .payment-card-title {
        font-size: 1.1rem;
    }

    .payment-progress-dot {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    .payment-tabs {
        gap: 8px;
    }

    .payment-form-tab {
        padding: 10px;
        font-size: 0.8rem;
    }

    .payment-form-tab i {
        font-size: 14px;
    }

    .payment-label {
        font-size: 0.85rem;
    }

    .payment-input,
    .payment-select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .payment-amount-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .payment-amount-option {
        padding: 12px;
    }

    .amount-number {
        font-size: 1.3rem;
    }

    .payment-method {
        padding: 12px;
    }

    .payment-method-header {
        gap: 10px;
    }

    .payment-method-icon {
        font-size: 20px;
    }

    .payment-method-header h4 {
        font-size: 0.9rem;
    }

    .payment-next-step,
    .payment-prev-step,
    .payment-submit {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .payment-summary {
        padding: 12px;
    }

    .payment-summary-title {
        font-size: 1rem;
    }

    .payment-summary-row {
        font-size: 0.85rem;
        gap: 8px;
    }

    .payment-summary-value {
        font-size: 0.95rem;
    }

    .back-btn {
        margin: 15px 10px;
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* ===== MOBILE SMALL (320px - 375px) ===== */
@media (max-width: 375px) {
    html {
        font-size: 14px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .hero-description {
        font-size: 0.8rem;
    }

    /* Project cards keep original responsive - no override needed */

    .detail-banner h1 {
        font-size: 1.25rem;
    }

    .progress-number {
        font-size: 1.1rem;
    }

    .progress-label {
        font-size: 0.7rem;
    }

    .natural-heading {
        font-size: 1.1rem;
    }

    .natural-subheading {
        font-size: 1rem;
    }

    .natural-text {
        font-size: 0.85rem;
    }

    .budget-table {
        font-size: 0.75rem;
    }

    .budget-table tr {
        padding: 10px;
        margin-bottom: 12px;
    }

    .activity-line {
        font-size: 0.8rem;
    }

    .contact-line {
        font-size: 0.8rem;
    }

    .gallery-item {
        height: 200px;
    }

    .payment-card {
        padding: 12px 10px;
    }

    .payment-progress-dot {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .payment-form-tab {
        padding: 8px;
        font-size: 0.75rem;
    }

    .payment-amount-option {
        padding: 10px;
    }

    .amount-number {
        font-size: 1.2rem;
    }
}

/* ===== FIX HORIZONTAL SCROLL & OVERFLOW ===== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .detail-banner,
    .gallery-header,
    .payment-header {
        width: 100%;
        overflow: hidden;
    }

    table {
        word-wrap: break-word;
        word-break: break-word;
    }

    .natural-heading,
    .natural-subheading,
    .natural-text {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }

    img {
        max-width: 100%;
        height: auto;
    }
}

/* ===== LANDSCAPE MODE FIXES ===== */
@media (max-height: 500px) and (orientation: landscape) {
    .lightbox-image {
        max-height: 70vh;
    }

    .payment-progress {
        margin-bottom: 15px;
    }

    .payment-card {
        padding: 15px;
    }
}

/* ===== TOUCH OPTIMIZATION FOR MOBILE ===== */
@media (max-width: 768px) {
    button,
    .action-btn,
    .donate-btn,
    .details-btn,
    .gallery-btn-compact,
    .payment-next-step,
    .payment-prev-step {
        min-height: 44px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    .payment-amount-option,
    .payment-method {
        min-height: 48px;
        cursor: pointer;
    }

    .project-card {
        touch-action: manipulation;
    }

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    .filter-select,
    .payment-input,
    .payment-select {
        min-height: 44px;
    }
}

/* ===== PREVENT ZOOM ON INPUT FOCUS (iOS) ===== */
@media (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px;
    }
}

/* ===== IMPROVED READABILITY ON SMALL SCREENS ===== */
@media (max-width: 480px) {
    .project-description,
    .natural-text,
    .activity-line,
    .bible-verse p {
        line-height: 1.6;
        letter-spacing: 0.3px;
    }

    .project-title,
    .natural-heading,
    .payment-card-title {
        line-height: 1.3;
    }
}

/* ===== BETTER SPACING FOR MOBILE ===== */
@media (max-width: 480px) {
    /* Project cards use original responsive */

    .progress-divider {
        margin: 0 8px;
    }

    .payment-form-step {
        padding: 15px 0;
    }

    .payment-form-group {
        margin-bottom: 18px;
    }
}

/* ===== SAFE AREA FOR NOTCHED DEVICES ===== */
@media (max-width: 768px) {
    .hero-banner,
    .detail-banner,
    .gallery-header,
    .payment-header {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    .back-btn {
        margin-left: max(10px, env(safe-area-inset-left));
        margin-right: max(10px, env(safe-area-inset-right));
    }

    /* projects-grid uses original responsive */
    .detail-content,
    .gallery-grid,
    .payment-container {
        padding-left: max(10px, env(safe-area-inset-left));
        padding-right: max(10px, env(safe-area-inset-right));
    }
}

/* ===== MODAL & LIGHTBOX MOBILE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .lightbox {
        padding: 10px;
    }

    .lightbox-content {
        border-radius: 12px;
        overflow: hidden;
    }

    .lightbox-image {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .lightbox-nav {
        border-radius: 50%;
        backdrop-filter: blur(10px);
        background: rgba(0, 0, 0, 0.7);
    }

    .lightbox-close {
        border-radius: 50%;
        backdrop-filter: blur(10px);
        background: rgba(0, 0, 0, 0.7);
    }

    #successModal .modal-content {
        width: 95%;
        max-width: 400px;
        margin: 20px;
        padding: 20px;
    }

    .success-icon {
        font-size: 50px;
    }

    .modal-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .modal-buttons button {
        width: 100%;
    }
}

/* ===== GALLERY GRID MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .gallery-grid {
        gap: 10px;
    }

    .gallery-item {
        border-radius: 8px;
        overflow: hidden;
    }

    .gallery-item img {
        transition: transform 0.3s ease;
    }

    .gallery-item:active img {
        transform: scale(0.95);
    }
}

/* ===== PAYMENT FORM MOBILE OPTIMIZATION ===== */
@media (max-width: 480px) {
    .payment-progress {
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .payment-progress-steps {
        min-width: 300px;
    }

    .payment-method-details {
        padding: 12px;
    }

    .card-number-input {
        letter-spacing: 2px;
    }

    .expiry-cvv-group {
        gap: 10px;
    }

    .payment-summary-item {
        padding: 10px 0;
    }
}

/* ===== IMPROVED BUTTON HOVER FOR MOBILE ===== */
@media (hover: none) and (pointer: coarse) {
    .donate-btn:active,
    .details-btn:active,
    .gallery-btn-compact:active {
        transform: scale(0.97);
        opacity: 0.9;
    }

    .payment-amount-option:active {
        transform: scale(0.98);
    }

    .payment-method:active {
        transform: scale(0.99);
    }
}

/* ===== BIBLE VERSE MOBILE STYLES ===== */
@media (max-width: 480px) {
    .bible-verse {
        border-left-width: 3px;
    }

    .bible-verse i {
        font-size: 16px;
    }

    .bible-verse cite {
        font-size: 0.8rem;
        margin-top: 8px;
    }

    .bible-quote-inline {
        border-left-width: 3px;
        margin: 20px 0;
    }
}

/* ===== PROJECT FOOTER MOBILE LAYOUT ===== */
/* Using original responsive from line 2311+ */

/* ===== LOADING & ERROR STATES MOBILE ===== */
@media (max-width: 768px) {
    .loading,
    .error-state,
    .no-projects {
        padding: 40px 20px;
        font-size: 0.9rem;
    }

    .loading i,
    .error-state i,
    .no-projects i {
        font-size: 40px;
        margin-bottom: 15px;
    }
}

/* ===== SCROLLBAR HIDE ON MOBILE ===== */
@media (max-width: 768px) {
    .payment-progress::-webkit-scrollbar {
        display: none;
    }

    .payment-progress {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .budget-table::-webkit-scrollbar {
        height: 4px;
    }

    .budget-table::-webkit-scrollbar-thumb {
        background: #667eea;
        border-radius: 2px;
    }
}

/* ===== CRITICAL MOBILE FIXES ===== */

/* Prevent text size adjustment on orientation change */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        -moz-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
}

/* Better touch targets */
@media (max-width: 768px) {
    a, button, input, select, textarea {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    }

    .view-btn,
    .back-btn {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Fix for iOS input zoom */
@media (max-width: 768px) {
    select:focus,
    input:focus,
    textarea:focus {
        font-size: 16px !important;
    }
}

/* Improve performance on mobile */
@media (max-width: 768px) {
    .project-card,
    .gallery-item,
    .payment-method,
    .payment-amount-option {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        will-change: transform;
    }
}

/* Fix sticky positioning on mobile */
@media (max-width: 768px) {
    .payment-summary {
        position: relative;
        top: auto;
    }
}

/* Better spacing for content */
@media (max-width: 480px) {
    .main-content {
        padding-bottom: 40px;
    }

    .detail-page,
    .gallery-page,
    .payment-page {
        padding-bottom: 40px;
    }
}

/* Improve table readability on mobile */
@media (max-width: 480px) {
    .budget-table td {
        display: block;
        text-align: left !important;
        padding: 8px 0;
        border: none;
    }

    .budget-table td:first-child {
        padding-top: 12px;
        font-weight: 600;
        color: #1f2937;
        font-size: 0.85rem;
    }

    .budget-table td.amount {
        color: #667eea;
        font-weight: 700;
        font-size: 0.9rem;
    }

    .budget-table td.percent {
        color: #10b981;
        font-weight: 700;
        font-size: 0.85rem;
        text-align: left !important;
        padding-bottom: 12px;
    }

    .budget-table tr {
        display: block;
        margin-bottom: 15px;
        padding: 12px 15px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: white;
    }

    .budget-table tr.total-row {
        background: linear-gradient(135deg, #f0f4ff 0%, #e8edff 100%);
        border: 2px solid #667eea;
        padding: 15px;
    }

    .budget-table tr.total-row td:first-child {
        font-size: 0.9rem;
    }

    .budget-table tr.total-row td.amount,
    .budget-table tr.total-row td.percent {
        font-size: 1rem;
    }
}

/* Modal improvements for small screens */
@media (max-width: 375px) {
    #successModal .modal-content {
        width: 92%;
        padding: 18px;
    }

    .success-icon {
        font-size: 45px;
    }

    .modal-content h2 {
        font-size: 1.2rem;
    }

    .modal-content p {
        font-size: 0.85rem;
    }
}

/* Fix for very small devices */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.2rem;
    }

    .project-title {
        font-size: 1rem;
    }

    .natural-heading {
        font-size: 1rem;
    }

    .payment-page-title {
        font-size: 1.2rem;
    }

    .gallery-item {
        height: 180px;
    }

    .budget-table {
        font-size: 0.7rem;
    }
}

/* ===== PROJECT CARDS & GRID CORE MOBILE FIX ===== */

/* Tablet: 2-column grid, flexible card height */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .projects-grid .project-card {
        height: auto;
        min-height: 380px;
    }

    .projects-list .project-image {
        width: 130px;
    }

    select {
        width: 100%;
        min-width: unset;
    }

    .view-toggle {
        width: 100%;
        justify-content: center;
    }

    .project-footer {
        flex-wrap: wrap;
        gap: 10px;
    }

    .progress-divider {
        display: none;
    }

    .progress-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1-column grid, auto height, list stacks vertically */
@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .projects-grid .project-card {
        height: auto;
        min-height: unset;
    }

    .projects-grid .project-image {
        height: 150px;
    }

    .projects-list .project-card {
        flex-direction: column;
        min-height: unset;
    }

    .projects-list .project-image {
        width: 100%;
        height: 160px;
    }

    .project-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .project-actions {
        justify-content: flex-start;
    }

    .action-buttons {
        width: 100%;
    }

    .action-buttons .gallery-btn-compact,
    .action-buttons .details-btn,
    .action-buttons .donate-btn {
        flex: 1;
        justify-content: center;
    }
}

/* Small mobile: tighter gaps */
@media (max-width: 375px) {
    .projects-grid {
        gap: 10px;
    }

    .projects-list .project-image {
        height: 130px;
    }

    .projects-grid .project-image {
        height: 130px;
    }
}

/* Very small devices: single tight layout */
@media (max-width: 320px) {
    .projects-grid {
        gap: 8px;
    }

    .projects-grid .project-image {
        height: 110px;
    }

    .projects-list .project-image {
        height: 110px;
    }

    .project-footer {
        gap: 6px;
    }
}

/* Print styles */
@media print {
    .back-btn,
    .action-buttons,
    .cta-buttons-natural,
    .payment-button-group,
    .lightbox-nav,
    .lightbox-close {
        display: none !important;
    }

    .detail-page,
    .payment-page {
        background: white;
    }

    .budget-table {
        page-break-inside: avoid;
    }
}

/* ================================================== */
/* CRITICAL MOBILE FIXES — CORRECT CLASS NAMES        */
/* ================================================== */

/* ---- Payment form rows: stack on mobile ---- */
@media (max-width: 640px) {
    .payment-form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
    .payment-form-row .payment-form-group {
        margin-bottom: 20px;
    }

    /* Amount section: stack preset chips and custom input */
    .payment-amount-section {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }
    .payment-custom-amount {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    .payment-custom-amount .payment-input {
        width: 100%;
        flex: 1;
    }

    /* Step navigation: stack Prev / Next buttons */
    .payment-step-navigation {
        flex-direction: column-reverse;
        gap: 10px;
    }
    .payment-step-navigation .payment-btn {
        width: 100%;
        justify-content: center;
    }

    /* Form container padding (correct class) */
    .payment-donation-form-container {
        padding: 0 12px;
    }

    /* Donation summary box (correct class) */
    .payment-donation-summary {
        padding: 15px 12px;
    }
    .payment-donation-summary h4 {
        font-size: 16px;
    }

    /* Section title */
    .payment-section-title {
        font-size: 1.4rem;
    }

    /* Tabs: reduce padding */
    .payment-form-tab {
        font-size: 0.82rem;
        padding: 10px 5px;
    }
}

/* ---- Hide tab icons at very small screens ---- */
@media (max-width: 420px) {
    .payment-form-tab {
        font-size: 0.75rem;
        padding: 9px 4px;
    }
    .payment-form-tab i {
        display: none;
    }
    .payment-amount-option {
        width: 52px;
        padding: 8px 6px;
        font-size: 1rem;
    }
}

/* ---- Toast container: prevent left-side overflow ---- */
@media (max-width: 480px) {
    .toast-container {
        right: 10px;
        left: 10px;
        max-width: none;
        width: auto;
    }
}

/* ---- Floating social icons: shrink on small screens ---- */
@media (max-width: 480px) {
    .floating-social {
        bottom: 16px;
        right: 12px;
        gap: 7px;
    }
    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
}

/* ---- Back button: position below header using CSS variable ---- */
@media (max-width: 768px) {
    .back-btn {
        top: calc(var(--header-gap, 90px) + 8px);
        left: 12px;
    }
}
@media (max-width: 480px) {
    .back-btn {
        top: calc(var(--header-gap, 90px) + 6px);
        left: 10px;
        padding: 9px 14px;
        font-size: 0.85rem;
    }
}
