/* ==========================================================================
   Rahmah Foundation — Modern Islamic & Humanitarian Charity Stylesheet
   ========================================================================== */

:root {
    --rf-primary: #0d5c3a;
    --rf-primary-hover: #08432a;
    --rf-primary-light: #e8f5ed;
    --rf-accent: #d9a036;
    --rf-accent-hover: #b88224;
    --rf-accent-soft: #fcf4e3;
    --rf-dark: #12221a;
    --rf-body-bg: #f8faf9;
    --rf-card-bg: #ffffff;
    --rf-text-muted: #5e6d65;
    --rf-border: #e2e8e4;
    --rf-font-bengali: 'Noto Sans Bengali', 'Hind Siliguri', sans-serif;
    --rf-font-heading: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
    --rf-shadow-sm: 0 2px 8px rgba(13, 92, 58, 0.04);
    --rf-shadow-md: 0 8px 24px rgba(13, 92, 58, 0.08);
    --rf-shadow-lg: 0 16px 36px rgba(13, 92, 58, 0.12);
}

body {
    font-family: var(--rf-font-bengali);
    background-color: var(--rf-body-bg);
    color: #243029;
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--rf-font-heading);
    font-weight: 700;
    color: var(--rf-dark);
}

a {
    text-decoration: none;
    transition: all 0.25s ease;
}

/* --- Top Information Bar --- */
.top-bar {
    background: #094028;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-bar a {
    color: rgba(255, 255, 255, 0.9);
}
.top-bar a:hover {
    color: var(--rf-accent);
}

/* --- Main Navbar --- */
.rf-navbar {
    background: #ffffff;
    box-shadow: var(--rf-shadow-sm);
    padding: 0.85rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
    transition: all 0.3s ease;
}
.rf-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.rf-brand-logo-image {
    width: auto;
    height: 72px;
    max-width: 180px;
    object-fit: contain;
}
.rf-brand-logo-image-footer {
    height: 48px;
    max-width: 80px;
}
.rf-brand-text {
    display: flex;
    flex-direction: column;
}
.rf-brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--rf-primary);
    line-height: 1.1;
}
.rf-brand-tag {
    font-size: 0.75rem;
    color: var(--rf-text-muted);
    font-weight: 500;
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3b33 !important;
    padding: 0.5rem 1rem !important;
    transition: color 0.2s ease;
}
.nav-link:hover, .nav-link.active {
    color: var(--rf-primary) !important;
}

/* --- Buttons --- */
.btn-accent {
    background-color: var(--rf-accent);
    color: #1a1505;
    font-weight: 700;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(217, 160, 54, 0.35);
    transition: all 0.25s ease;
}
.btn-accent:hover {
    background-color: var(--rf-accent-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(217, 160, 54, 0.45);
}
.btn-primary {
    background-color: var(--rf-primary);
    border-color: var(--rf-primary);
    font-weight: 700;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 12px rgba(13, 92, 58, 0.2);
}
.btn-primary:hover {
    background-color: var(--rf-primary-hover);
    border-color: var(--rf-primary-hover);
    transform: translateY(-2px);
}
.btn-outline-primary {
    color: var(--rf-primary);
    border-color: var(--rf-primary);
    font-weight: 700;
    border-radius: 10px;
}
.btn-outline-primary:hover {
    background-color: var(--rf-primary);
    color: #ffffff;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #094028 0%, #0d5c3a 50%, #13754b 100%);
    color: #ffffff;
    padding: 5rem 0 6.5rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(217, 160, 54, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero h1 {
    font-size: 2.85rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 1.25rem;
}
.hero p.lead {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 620px;
}
.badge-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
}
.hero-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-mini-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.925rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}
.hero-mini-item i {
    color: var(--rf-accent);
    font-size: 1.1rem;
}

.hero-visual {
    position: relative;
}
.hero-visual-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
}
.hero-visual-card img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.15));
}
.floating-note {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #ffffff;
    color: var(--rf-dark);
    padding: 0.9rem 1.25rem;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10;
}
.floating-note .icon-bubble {
    width: 42px;
    height: 42px;
    background: var(--rf-primary-light);
    color: var(--rf-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.floating-note strong {
    display: block;
    font-size: 0.95rem;
    color: var(--rf-dark);
}
.floating-note span {
    font-size: 0.78rem;
    color: var(--rf-text-muted);
}

/* --- Quick Donate Floating Wrapper --- */
.quick-donate-wrap {
    margin-top: -3.5rem;
    position: relative;
    z-index: 30;
    margin-bottom: 2rem;
}
.quick-donate {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.75rem 2rem;
    box-shadow: 0 12px 36px rgba(13, 92, 58, 0.12);
    border: 1px solid var(--rf-border);
}
.quick-heading {
    display: block;
}
.quick-heading h3 {
    margin: 0;
    font-size: clamp(1.45rem, 2.3vw, 2rem);
    font-weight: 800;
    color: var(--rf-primary-dark);
}
.quick-heading p {
    margin: 0.3rem 0 0;
    font-size: 0.9rem;
    color: var(--rf-text-muted);
}
.quick-donate-fields {
    display: grid;
    grid-template-columns: minmax(180px, 1.3fr) minmax(145px, 1fr) minmax(190px, 1.25fr) minmax(125px, 0.8fr) minmax(150px, 0.95fr);
    gap: 1rem;
    align-items: end;
}
#donationSubmitButton {
    min-height: 49px;
    height: auto;
    padding-inline: 0.75rem;
    white-space: nowrap;
}
@media (max-width: 1199.98px) {
    .quick-donate-fields {
        grid-template-columns: minmax(155px, 1.25fr) minmax(125px, 1fr) minmax(165px, 1.2fr) minmax(110px, 0.75fr) minmax(125px, 0.9fr);
        gap: 0.75rem;
    }
}
@media (max-width: 991.98px) {
    .quick-donate-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .quick-submit-field {
        grid-column: 1 / -1;
    }
}
@media (max-width: 575.98px) {
    .quick-donate-fields {
        grid-template-columns: 1fr;
    }
    .quick-submit-field {
        grid-column: auto;
    }
}
.icon-bubble {
    width: 44px;
    height: 44px;
    background: var(--rf-primary-light);
    color: var(--rf-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #3b4a41;
    margin-bottom: 0.4rem;
}
.form-control, .form-select {
    border: 1px solid var(--rf-border);
    border-radius: 10px;
    padding: 0.65rem 1rem;
    font-size: 0.95rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--rf-primary);
    box-shadow: 0 0 0 3px rgba(13, 92, 58, 0.15);
}

/* --- General Section Layout --- */
.section {
    padding: 5rem 0;
}
.section-sm {
    padding: 3rem 0;
}
.section-muted {
    background-color: #f0f5f2;
}
.section-kicker {
    display: inline-block;
    color: var(--rf-primary);
    font-weight: 700;
    font-size: 0.9rem;
    text-uppercase: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: 2.15rem;
    font-weight: 800;
    margin-bottom: 0.85rem;
}
.section-subtitle {
    color: var(--rf-text-muted);
    font-size: 1.05rem;
}

/* --- Feature Cards --- */
.feature-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--rf-border);
    transition: all 0.3s ease;
    height: 100%;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rf-shadow-md);
    border-color: rgba(13, 92, 58, 0.2);
}
.feature-card h4 {
    font-size: 1.2rem;
    margin: 1.2rem 0 0.6rem;
}
.feature-card p {
    color: var(--rf-text-muted);
    font-size: 0.925rem;
    margin: 0;
}

/* --- About Media Badge --- */
.about-media {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--rf-shadow-lg);
    background: #fff;
    padding: 1.5rem;
}
.about-media img {
    width: 100%;
    border-radius: 12px;
}
.about-badge {
    position: absolute;
    bottom: 25px;
    right: 25px;
    background: var(--rf-primary);
    color: #ffffff;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(13, 92, 58, 0.3);
    text-align: center;
}
.about-badge strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rf-accent);
}
.about-badge span {
    font-size: 0.8rem;
    opacity: 0.9;
}

.check-list {
    margin: 1.5rem 0;
}
.check-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.85rem;
    font-size: 0.975rem;
    font-weight: 600;
}
.check-item i {
    width: 26px;
    height: 26px;
    background: var(--rf-primary-light);
    color: var(--rf-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* --- Fund Cards --- */
.fund-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--rf-border);
    box-shadow: var(--rf-shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.fund-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--rf-shadow-md);
}
.fund-image {
    position: relative;
    background: #eef5f1;
    padding: 2rem 1.5rem;
    text-align: center;
}
.fund-image img {
    max-height: 150px;
    width: auto;
}
.fund-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--rf-accent);
    color: #1a1505;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}
.fund-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.fund-body h4 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}
.fund-body p {
    color: var(--rf-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.progress {
    height: 9px;
    border-radius: 50px;
    background-color: #e6ede8;
    overflow: hidden;
    margin-bottom: 0.75rem;
}
.progress-bar {
    background: linear-gradient(90deg, var(--rf-primary) 0%, #1a965f 100%);
    border-radius: 50px;
}
.fund-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.825rem;
    font-weight: 600;
    color: #3b4c42;
}

/* --- Impact Counter Section --- */
.impact {
    background: linear-gradient(135deg, #094028 0%, #0d5c3a 100%);
    color: #ffffff;
    position: relative;
}
.impact .section-title {
    color: #ffffff;
}
.stat-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
}
.stat-card .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--rf-accent);
    line-height: 1.1;
    margin-bottom: 0.4rem;
}
.stat-card p {
    margin: 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* --- Project & Blog Cards --- */
.project-card, .blog-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--rf-border);
    transition: all 0.3s ease;
    height: 100%;
}
.project-card:hover, .blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--rf-shadow-md);
}
.project-card img, .blog-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background: #f2f7f4;
    padding: 1.5rem;
}
.project-card .body, .blog-card .body {
    padding: 1.5rem;
}
.project-card h4, .blog-card h4 {
    font-size: 1.15rem;
    margin-top: 0.5rem;
    margin-bottom: 0.6rem;
}
.project-card p, .blog-card p {
    color: var(--rf-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.blog-card .meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--rf-text-muted);
    margin-bottom: 0.4rem;
}

.hover-link {
    color: var(--rf-primary);
    font-weight: 700;
    font-size: 0.925rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hover-link:hover {
    color: var(--rf-primary-hover);
    gap: 8px;
}

/* --- Monthly Callout Banner --- */
.callout {
    background: linear-gradient(135deg, var(--rf-accent-soft) 0%, #fff8ea 100%);
    border: 1px solid rgba(217, 160, 54, 0.25);
    border-radius: 20px;
    padding: 2.5rem;
}
.callout h3 {
    font-size: 1.65rem;
    color: #4a360f;
    margin-bottom: 0.5rem;
}

/* --- Beneficiary Stories & Testimonials --- */
.story-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--rf-border);
    box-shadow: var(--rf-shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}
.story-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--rf-shadow-md);
    border-color: rgba(13, 92, 58, 0.25);
}
.story-quote-icon {
    font-size: 2.5rem;
    color: var(--rf-primary-light);
    line-height: 1;
    margin-bottom: 0.5rem;
}
.story-content {
    font-size: 0.95rem;
    color: #38483e;
    font-style: italic;
    margin-bottom: 1.5rem;
    flex: 1;
}
.story-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 1rem;
    border-top: 1px solid #f0f5f2;
}
.story-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--rf-primary-light);
    color: var(--rf-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.story-author-info h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--rf-dark);
}
.story-author-info span {
    font-size: 0.8rem;
    color: var(--rf-text-muted);
}

/* --- Zakat Calculator --- */
.zakat-calc-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 2.5rem;
    border: 1px solid var(--rf-border);
    box-shadow: var(--rf-shadow-md);
}
.zakat-result-box {
    background: linear-gradient(135deg, #094028 0%, #0d5c3a 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 2rem;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 16px 34px rgba(9, 64, 40, 0.22);
}
.zakat-result-label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    font-weight: 600;
}
.zakat-total-display {
    color: #ffffff;
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.zakat-payable-panel {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.25rem;
}
.zakat-val-display {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffd46f;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

/* --- Payment Methods Grid & Nav Tabs --- */
.payment-nav-pills {
    background: #eef4f0;
    padding: 6px;
    border-radius: 50px;
    display: inline-flex;
    gap: 4px;
}
.payment-nav-pills .nav-link {
    border-radius: 50px !important;
    padding: 0.65rem 1.75rem !important;
    font-weight: 700;
    color: var(--rf-dark) !important;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}
.payment-nav-pills .nav-link.active {
    background-color: var(--rf-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(13, 92, 58, 0.25);
}

.payment-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.75rem;
    border: 1px solid var(--rf-border);
    box-shadow: var(--rf-shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.payment-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
}
.payment-card.card-bkash::before { background: #e2136e; }
.payment-card.card-nagad::before { background: #f7921e; }
.payment-card.card-rocket::before { background: #8c3494; }
.payment-card.card-upay::before { background: #005baa; }
.payment-card.card-bank-ibbl::before { background: #0d5c3a; }
.payment-card.card-bank-dbbl::before { background: #0288d1; }

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--rf-shadow-md);
    border-color: rgba(13, 92, 58, 0.25);
}

.payment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.payment-brand-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}
.bg-bkash { background: #fce4ec; color: #e2136e; }
.bg-nagad { background: #fff3e0; color: #f7921e; }
.bg-rocket { background: #f3e5f5; color: #8c3494; }
.bg-upay { background: #e1f5fe; color: #005baa; }
.bg-bank { background: #e8f5ed; color: #0d5c3a; }

.payment-copy-box {
    background: #f8faf9;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.payment-copy-box strong {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: var(--rf-dark);
}

.bank-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
}
.bank-detail-row:last-child {
    border-bottom: none;
}
.bank-detail-row label {
    color: var(--rf-text-muted);
    font-weight: 500;
}
.bank-detail-row span {
    font-weight: 700;
    color: var(--rf-dark);
}

/* --- Transparency Breakdown --- */
.transparency-item {
    margin-bottom: 1.5rem;
}
.transparency-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

/* --- Accordion FAQ --- */
.accordion-rf .accordion-item {
    border: 1px solid var(--rf-border);
    border-radius: 14px !important;
    margin-bottom: 1rem;
    overflow: hidden;
}
.accordion-rf .accordion-button {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--rf-dark);
    background: #ffffff;
    padding: 1.25rem;
}
.accordion-rf .accordion-button:not(.collapsed) {
    color: var(--rf-primary);
    background-color: var(--rf-primary-light);
    box-shadow: none;
}
.accordion-rf .accordion-body {
    font-size: 0.95rem;
    color: var(--rf-text-muted);
    padding: 1.25rem;
    background: #ffffff;
}

/* --- Footer --- */
.site-footer {
    background: #0b1a13;
    color: rgba(255, 255, 255, 0.75);
    padding: 4.5rem 0 2rem;
    font-size: 0.925rem;
}
.site-footer h5 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.65rem;
}
.footer-links a {
    color: rgba(255, 255, 255, 0.75);
}
.footer-links a:hover {
    color: var(--rf-accent);
    padding-left: 4px;
}
.footer-bottom {
    margin-top: 3.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.15rem;
    }
    .hero-visual {
        margin-top: 2rem;
    }
    .quick-donate-wrap {
        margin-top: 1rem;
    }
    .zakat-result-box {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .rf-navbar .rf-brand-logo-image {
        height: 60px;
        max-width: 150px;
    }
}
