@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-color: #132435;
    --bg-gradient: linear-gradient(180deg, #132435 35%, #014415 80%);
    --card-bg: #142436;
    --card-border: #233549;
    --text-primary: #ffffff;
    --text-secondary: #ffffff;
    --gold: #f1c40f;
    --gold-hover: #e1b10d;
    --input-bg: #1e2e3f;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    padding-bottom: 50px;
}

h1,
h2,
h3,
.serif {
    font-family: 'Playfair Display', serif;
}

.text-gold {
    color: var(--gold) !important;
}

.text-center {
    text-align: center !important;
    margin-top: 30px;
}

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

/* Header Section with Logo (Matches Image 2) */
.masjid-header {
    text-align: center;
    padding: 60px 0 40px;
    background: transparent;
}

.logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.logo-circle i {
    font-size: 24px;
    color: var(--gold);
}

.masjid-header h1 {
    font-size: 2.8rem;
    /* Slightly larger */
    color: var(--gold);
    margin-bottom: 10px;
}

.masjid-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Side-by-Side Content */
.top-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
    align-items: stretch;
}

.bottom-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 40px;
    align-items: flex-start;
}

@media(max-width: 768px) {

    .top-layout,
    .bottom-layout {
        grid-template-columns: 1fr;
    }
}

.featured-box img {
    width: 100%;
    height: 100%;
    min-height: 400px;
    /* Increased height */
    object-fit: cover;
    border-radius: 20px;
}

.stats-box {
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: 20px;
    padding: 40px;
    /* Increased padding for more space */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.stats-label {
    font-size: 1.00rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 15px;
}

.stats-amount {
    font-size: 5rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 40px;
    line-height: 60px;
}

/* Form Elements (Fixed Messy Look) */
.donation-form-card {
    background: linear-gradient(135deg, #142436 0%, #0c1a2a 100%);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 35px;
    margin-top: 30px;
}

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

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    padding: 14px 18px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    background: #233549;
}

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

.amount-btn {
    background: var(--gold);
    border: 0;
    color: #000;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.amount-btn.active,
.amount-btn:hover {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.btn-submit {
    width: 100%;
    background: var(--gold);
    color: #000;
    padding: 18px;
    border: 0;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-submit:hover {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Donor Cards (Matches Image 2) */
.donor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.donor-card:first-of-type {
    margin-top: 25px;
}

.donor-avatar {
    width: 45px;
    height: 45px;
    min-width: 45px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-weight: 700;
    margin-right: 15px;
}

.donor-info {
    flex-grow: 1;
}

.donor-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 3px;
}

.donor-date {
    font-size: 0.7rem;
    color: var(--text-secondary);
    padding-top: 5px;
}

.donor-amount {
    font-weight: 700;
    color: var(--gold);
    font-size: 1.1rem;
    white-space: nowrap;
    text-align: right;
    margin-left: 10px;
}

/* Progress Bar */
.progress-container {
    background: rgba(255, 255, 255, 0.05);
    height: 10px;
    border-radius: 5px;
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gold);
    border-radius: 5px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 1.0rem;
    color: #ffffff;
    padding-bottom: 85px;
}

/* Landing Page Grid */
.donation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 40px;
}

@media(max-width: 768px) {
    .donation-grid {
        grid-template-columns: 1fr;
    }
}

.donation-card-modern {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.donation-card-modern:hover {
    transform: translateY(-10px);
    border-color: var(--gold);
}

.card-img-modern {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-body-modern {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title-modern {
    font-size: 1.6rem;
    color: var(--gold);
    margin-bottom: 10px;
}

.card-desc-modern {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.btn-view {
    background: var(--gold);
    color: #000;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    margin-top: auto;
    transition: 0.3s;
}

.btn-view:hover {
    background: #fff;
}

.footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    background: var(--card-bg);
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    text-decoration: none;
}

.page-link.active {
    background: var(--gold);
    color: #000;
}