:root {
    --primary-color: #003df8; /* Blue for TUKUTUKU PEDULI */
    --primary-hover: #002ec2;
    --secondary-color: #e3f2fd;
    --text-color: #333333;
    --light-text: #757575;
    --background-color: #F4F6F9;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --blue-verified: #4caf50;
    --success-color: #4caf50;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
}

.desktop-nav ul li a {
    font-weight: 500;
    color: var(--text-color);
    font-size: 15px;
}

.desktop-nav ul li a:hover {
    color: var(--primary-color);
}

.btn-login {
    border: 1px solid var(--primary-color);
    padding: 8px 24px;
    border-radius: 50px;
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

.btn-login:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
}

/* Breadcrumb */
.breadcrumb {
    margin: 20px 0;
    font-size: 13px;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i {
    font-size: 10px;
}

/* Campaign Page */
.campaign-page {
    padding-bottom: 60px;
}

.campaign-header-mobile {
    display: none; /* Shown on mobile only usually, but structure depends on design */
    margin-bottom: 20px;
}

.campaign-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.left-column {
    flex: 2;
    min-width: 0; /* Prevent flex item from overflowing */
}

.right-column {
    flex: 1;
    position: sticky;
    top: 90px;
}

.campaign-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

.campaign-image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* Mobile Donation Info (Hidden on Desktop) */
.mobile-donation-info {
    display: none;
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

/* Story Content */
.story-section {
    margin-top: 30px;
}

.story-card {
    margin: 20px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--white);
}

.story-card img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.story-card .caption {
    padding: 15px;
    font-size: 14px;
    font-style: italic;
    color: var(--light-text);
    background: #fafafa;
    border-left: 4px solid var(--primary-color);
}

.prayer-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin: 30px 0;
    border: 1px solid #90caf9;
}

.prayer-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
}

.prayer-box p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    font-weight: 500;
}

.divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 30px 0;
}

/* Tabs */
.tabs-container {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.tabs {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Hide scrollbar */
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 0;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--light-text);
    position: relative;
    transition: color 0.3s;
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* Description Content */
.description-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--text-color);
    display: none; /* Hidden as it's often redundant with header */
}

.description-content p {
    margin-bottom: 15px;
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

.highlight-box {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
    padding: 15px;
    margin: 20px 0;
    border-radius: 4px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    margin-top: 20px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 10px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: #e0e0e0;
}

.timeline-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.timeline-icon {
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    z-index: 2;
    flex-shrink: 0;
}

.timeline-content {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    flex-grow: 1;
    border: 1px solid var(--border-color);
}

.timeline-item.start .timeline-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.timeline-content .date {
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 8px;
    display: block;
    font-weight: 500;
}

.timeline-content h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.timeline-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

/* Donor List */
.donor-list li {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.donor-avatar {
    width: 45px;
    height: 45px;
    background-color: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #757575;
    font-size: 14px;
}

.donor-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.donor-info .name {
    font-weight: 600;
    color: var(--text-color);
    font-size: 15px;
}

.donor-info .meta {
    font-size: 12px;
    color: var(--light-text);
}

.donor-info .amount {
    font-weight: 600;
    color: var(--text-color);
    margin-top: 2px;
}

.donor-message {
    font-size: 13px;
    font-style: italic;
    color: #666;
    margin-top: 4px;
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    border-left: 2px solid #ddd;
}

.donor-time {
    font-size: 12px;
    color: var(--light-text);
    white-space: nowrap;
}

.load-more-donors {
    text-align: center;
    margin-top: 20px;
}

.load-more-donors button {
    background: none;
    border: 1px solid var(--border-color);
    padding: 10px 25px;
    border-radius: 50px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.load-more-donors button:hover {
    border-color: var(--text-color);
}

/* Desktop Donation Card */
.desktop-donation-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.desktop-donation-card h1 {
    font-size: 22px;
    margin-bottom: 20px;
    line-height: 1.4;
}

.organizer-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.org-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.org-details {
    display: flex;
    flex-direction: column;
}

.org-name {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.text-blue {
    color: var(--blue-verified);
}

.verified-badge, .verified-badge-large i {
    color: var(--blue-verified);
}

.org-status {
    font-size: 12px;
    color: var(--light-text);
}

.raised-info-card {
    margin-bottom: 15px;
}

.raised-info-card .label {
    display: block;
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.raised-info-card .amount {
    display: block;
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 5px;
}

.raised-info-card .sub-text {
    font-size: 12px;
    color: var(--light-text);
}

.progress-bar {
    background-color: #f1f1f1;
    height: 8px;
    border-radius: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress {
    background-color: var(--primary-color);
    height: 100%;
    border-radius: 4px;
}

.stats-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat strong {
    font-size: 16px;
    color: var(--text-color);
}

.stat span {
    font-size: 12px;
    color: var(--light-text);
}

.donate-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    box-shadow: 0 4px 6px rgba(216, 27, 96, 0.3);
}

.donate-btn:hover {
    background-color: var(--primary-hover);
}

.share-campaign {
    margin-top: 25px;
    text-align: center;
}

.share-campaign p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.3s;
    font-size: 18px;
}

.social-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.social-btn.facebook:hover { color: #1877f2; border-color: #1877f2; }
.social-btn.whatsapp:hover { color: #25d366; border-color: #25d366; }
.social-btn.twitter:hover { color: #1da1f2; border-color: #1da1f2; }

/* Footer */
footer {
    background-color: #f8f9fa;
    color: #333;
    padding: 60px 0 0;
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-section:first-child h3 {
    font-size: 24px;
}

.footer-section p {
    color: #666;
    max-width: 300px;
    margin-bottom: 20px;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #666;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-section ul li i {
    width: 20px;
    color: var(--primary-color);
    margin-right: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background-color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    box-shadow: var(--shadow-sm);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    color: #888;
    font-size: 13px;
}

/* Donation Page Styles */
.donation-page {
    max-width: 600px;
    margin: 30px auto;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.donation-wrapper {
    padding: 30px;
}

.secure-badge {
    color: var(--success-color);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.campaign-summary {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.campaign-summary img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.summary-text p {
    font-size: 14px;
    color: var(--light-text);
    margin-bottom: 5px;
}

.summary-text h3 {
    font-size: 16px;
    color: var(--text-color);
    line-height: 1.4;
}

.form-section {
    margin-bottom: 25px;
}

.form-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.amount-btn {
    padding: 12px;
    border: 1px solid var(--border-color);
    background-color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.2s;
}

.amount-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.amount-btn.selected {
    background-color: var(--secondary-color);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.custom-amount {
    position: relative;
    margin-bottom: 8px;
}

.custom-amount .currency {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 600;
    color: var(--light-text);
}

.custom-amount input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.custom-amount input:focus {
    border-color: var(--primary-color);
}

.min-donation-info {
    font-size: 12px;
    color: var(--light-text);
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.payment-option input:checked + .payment-content {
    border-color: var(--primary-color);
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.input-group {
    margin-bottom: 15px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 14px;
    outline: none;
}

.input-group textarea {
    resize: vertical;
    min-height: 80px;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary-color);
}

.anon-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-color);
    cursor: pointer;
}

.submit-donation-btn {
    width: 100%;
    padding: 16px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-top: 10px;
}

.submit-donation-btn:hover {
    background-color: var(--primary-hover);
}

@media (max-width: 768px) {
    .donation-page {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }
    
    .donation-wrapper {
        padding: 20px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header-container {
        padding: 0 16px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .campaign-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }

    .right-column {
        display: none; /* Hide standard right column on mobile */
    }

    .campaign-header-mobile {
        display: block;
        margin-top: 10px;
    }

    .campaign-header-mobile h1 {
        font-size: 20px;
        line-height: 1.3;
        margin-bottom: 8px;
        color: var(--text-color);
    }

    .verified-badge-large {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 13px;
        color: var(--text-color);
        font-weight: 500;
    }

    .badge-tag {
        background-color: #e3f2fd;
        color: #1976d2;
        padding: 2px 8px;
        border-radius: 4px;
        font-size: 10px;
        text-transform: uppercase;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .verified-badge i {
        color: var(--blue-verified);
    }

    .campaign-image {
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
        margin-bottom: 20px;
        box-shadow: none;
    }

    .mobile-donation-info {
        display: block;
        margin-bottom: 20px;
        padding: 0;
        box-shadow: none;
        background: transparent;
    }

    .mobile-donation-info .raised-info {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 10px;
    }

    .mobile-donation-info .label {
        font-size: 13px;
        color: var(--light-text);
    }

    .mobile-donation-info .amount {
        font-size: 18px;
        color: var(--primary-color);
        font-weight: 700;
    }

    .mobile-donation-info .stats-row {
        margin-bottom: 0;
        border-top: 1px solid #eee;
        padding-top: 15px;
        margin-top: 15px;
    }

    .mobile-sticky-footer {
        display: flex;
        gap: 12px;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 12px 16px;
        padding-bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 999;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    }

    .share-btn-mobile {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
        background-color: var(--white);
        border: 1px solid var(--border-color);
        color: var(--text-color);
        border-radius: var(--radius-md);
        font-size: 20px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
    }

    .share-btn-mobile:active {
        background-color: #f5f5f5;
        transform: scale(0.95);
    }

    .donate-btn-mobile {
        flex-grow: 1;
        height: 48px;
        padding: 0 20px;
        background-color: var(--primary-color);
        color: var(--white);
        border: none;
        border-radius: var(--radius-md);
        font-size: 16px;
        font-weight: 700;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background-color 0.2s;
    }
    
    .donate-btn-mobile:active {
        background-color: var(--primary-hover);
        transform: scale(0.98);
    }

    .sticky-mobile {
        display: none;
    }

    .tabs-container {
        margin: 0 -16px 20px -16px;
        padding: 0 16px;
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 64px; /* Adjust based on header height */
        background: var(--white);
        z-index: 90;
    }

    .tabs {
        gap: 25px;
    }

    .tab-btn {
        padding: 12px 0;
        font-size: 14px;
    }

    .campaign-page {
        padding-bottom: 80px; /* Space for sticky footer */
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Donation Page Mobile Adjustments */
    .donation-page {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding-bottom: 20px;
    }
    
    .donation-wrapper {
        padding: 20px 16px;
    }

    .amount-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Donation Notification Popup */
#donation-notification-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 260px;
    width: 100%;
    pointer-events: none;
}

.donation-notification {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    border-left: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.donation-notification.fade-out {
    animation: slideOut 0.5s forwards;
}

.notif-icon {
    width: 32px;
    height: 32px;
    background: rgba(230, 240, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 14px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-content {
    flex-grow: 1;
}

.notif-title {
    font-size: 10px;
    color: #666;
    margin-bottom: 1px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notif-message {
    font-size: 11px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
    margin-bottom: 2px;
}

.notif-time {
    font-size: 9px;
    color: #888;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50px);
    }
}

/* Mobile responsive for notification */
@media (max-width: 480px) {
    #donation-notification-container {
        left: 10px;
        right: 10px;
        bottom: 80px; /* Above sticky footer if exists */
        width: auto;
        max-width: none;
    }
}
