/* ============================================
   Hiwa Charity Website - Main Stylesheet
   Green charity theme matching template design
   ============================================ */

/* --- Custom Fonts --- */
@font-face {
    font-family: 'Open Sans';
    src: url('../../font/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 300 900;
    font-stretch: 75% 100%;
    font-display: swap;
}

@font-face {
    font-family: 'Noto Kufi Arabic';
    src: url('../../font/NotoKufiArabic-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 900;
    font-display: swap;
}

/* --- CSS Variables --- */
:root {
    --primary: #5bb450;
    --primary-light: #6cc461;
    --primary-dark: #449a3a;
    --primary-darker: #357a2d;
    --secondary: #2d802f;
    --secondary-light: #3da040;
    --accent: #5bb450;
    --accent-light: #6cc461;
    --gold: #f39c12;
    --light-bg: #f8f9fa;
    --lighter-bg: #f0f7ef;
    --white: #ffffff;
    --dark: #1a1a2e;
    --dark-section: #16213e;
    --text: #333333;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

/* --- Base --- */
* { box-sizing: border-box; }

body {
    font-family: 'Open Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body[dir="rtl"] {
    font-family: 'Noto Kufi Arabic', 'Open Sans', sans-serif;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] h5, 
[dir="rtl"] h6 {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

img { max-width: 100%; height: auto; }

.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 60px 0; }

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--dark);
    margin-bottom: 15px;
    position: relative;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header h2 span {
    color: var(--primary);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Navbar --- */
.navbar-hiwa {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
    padding: 10px 0;
    transition: var(--transition);
    z-index: 1050;
}

.navbar-hiwa.scrolled {
    padding: 6px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-hiwa .navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
}

.navbar-hiwa .navbar-brand img {
    height: 55px;
    width: auto;
}

.navbar-hiwa .nav-link {
    font-weight: 500;
    color: var(--dark);
    padding: 8px 16px !important;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-hiwa .nav-link:hover,
.navbar-hiwa .nav-link.active {
    color: var(--primary);
}

.navbar-hiwa .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.btn-donate-nav {
    background: var(--primary);
    color: var(--white) !important;
    border: none;
    padding: 10px 24px !important;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-donate-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 180, 80, 0.3);
    color: var(--white) !important;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 10px;
}

.lang-switcher a {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.lang-switcher a.active,
.lang-switcher a:hover {
    background: var(--primary);
    color: var(--white);
}

/* --- Hero Section (Template-matching two-column with background image) --- */
.hero-section {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-section) 60%, var(--primary-darker) 100%);
    color: var(--white);
    padding: 80px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 550px;
}

/* Hero with background image */
.hero-section.hero-with-image {
    background-image: url('https://images.unsplash.com/photo-1488521787991-ed7bbaae773c?w=1920&h=800&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 650px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(22, 33, 62, 0.75) 50%, rgba(53, 122, 45, 0.7) 100%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1.hero-main-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Poppins', sans-serif;
}

.hero-section h1 span.hero-subtitle-line {
    color: var(--white);
    display: block;
    font-size: 4rem;
    font-weight: 900;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Open Sans', sans-serif;
}

.hero-section h1 span {
    color: var(--primary);
    display: block;
}

.hero-section p.hero-desc {
    font-size: 1.05rem;
    opacity: 0.85;
    margin-bottom: 30px;
    max-width: 500px;
    line-height: 1.7;
    font-weight: 300;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-hero-primary {
    background: var(--white);
    color: var(--primary);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(91, 180, 80, 0.3);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid rgba(255,255,255,0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--white);
    color: var(--white);
}

/* Hero Donation Card (right side) */
.hero-donate-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 20px;
    padding: 35px;
    color: var(--dark);
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
}

.hero-donate-card .donate-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.hero-donate-card .donate-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.3rem;
    flex-shrink: 0;
}

.hero-donate-card h5 {
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-donate-card label {
    display: block;
    margin-bottom: 10px;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-donate-card select,
.hero-donate-card input {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    color: var(--dark);
    background-color: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
    margin-bottom: 20px;
}

.hero-donate-card select:hover,
.hero-donate-card select:focus {
    border-color: var(--primary);
    background-color: #fff;
}

.hero-donate-card .select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 5px;
}

.hero-donate-card .select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid var(--dark);
    pointer-events: none;
}

.hero-donate-card .btn-donate-hero {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: none;
    color: #fff;
    border-radius: 10px;
    padding: 15px 28px;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(91, 180, 80, 0.3);
}

.hero-donate-card .btn-donate-hero:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91, 180, 80, 0.4);
}

/* Payment Icons */
.payment-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

.payment-icon {
    height: 24px;
    width: auto;
    max-width: 45px;
    object-fit: contain;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-icon:hover {
    opacity: 1;
}

.payment-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.hero-policy-badge {
    text-align: center;
    margin-top: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Emergency / Featured Section --- */
.emergency-section {
    padding: 80px 0;
    background: var(--white);
}

.emergency-section .emergency-image {
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    min-height: 350px;
}

.emergency-section .emergency-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.emergency-content {
    background: var(--lighter-bg);
    border-radius: var(--radius);
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.emergency-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    line-height: 1.3;
}

.emergency-content h3 span {
    color: var(--primary);
}

.emergency-content p {
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.8;
}

.emergency-content .cta-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 0.95rem;
}

/* --- Impact Stats --- */
.impact-section {
    background: var(--lighter-bg);
}

.stat-card {
    text-align: center;
    padding: 35px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--white);
    font-size: 1.6rem;
}

.stat-card h3 {
    font-size: 2.4rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 800;
}

.stat-card p {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

/* --- Project Cards --- */
.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.project-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.project-card .status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active { background: var(--primary); color: var(--white); }
.status-badge.completed { background: var(--dark); color: var(--white); }
.status-badge.ongoing { background: var(--gold); color: var(--white); }

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

.project-card .card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    text-transform: uppercase;
}

.project-card .card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
    margin-bottom: 15px;
}

/* Progress bar */
.progress-wrapper {
    margin: 15px 0;
}

.progress-wrapper .progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.progress-wrapper .progress-info .raised { color: var(--primary); }
.progress-wrapper .progress-info .goal { color: var(--text-muted); }

.progress-wrapper .progress {
    height: 8px;
    border-radius: 10px;
    background: #f2f2f2;
    overflow: hidden;
    box-shadow: inset 0 1px 4px rgba(0,0,0,0.09);
}

.progress-wrapper .progress-bar {
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    border-radius: 10px;
    transition: width 1s ease;
}

/* --- Buttons --- */
.btn-primary-hiwa {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-primary-hiwa:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-secondary-hiwa {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-secondary-hiwa:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-donate {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-donate:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 180, 80, 0.3);
}

/* --- Tabs --- */
.project-tabs .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    border: none;
    padding: 10px 20px;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.project-tabs .nav-link:hover {
    color: var(--primary);
    background: var(--lighter-bg);
}

.project-tabs .nav-link.active {
    background: var(--primary);
    color: var(--white);
}

/* --- About / Info Section --- */
.about-card {
    padding: 40px 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-card .icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.8rem;
}

.about-card h4 {
    color: var(--dark);
    margin-bottom: 10px;
}

/* --- Donation Form --- */
.donate-section {
    background: var(--lighter-bg);
}

.donate-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.amount-option {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    background: var(--white);
}

.amount-option:hover,
.amount-option.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

.gift-aid-box {
    background: #fff8e1;
    border: 2px solid #ffd54f;
    border-radius: var(--radius-sm);
    padding: 20px;
    margin: 20px 0;
}

.gift-aid-box h5 {
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gift-aid-box .form-check-label {
    font-weight: 600;
}

.gift-aid-box .gift-aid-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* --- Payment Method Tabs --- */
.payment-method-tabs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-tab {
    flex: 1;
    min-width: 140px;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--dark);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.payment-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.payment-tab.active {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

/* --- Transparency Section --- */
.spending-chart {
    max-width: 400px;
    margin: 0 auto;
}

.audit-doc {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    transition: var(--transition);
}

.audit-doc:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
}

.audit-doc .doc-icon {
    width: 45px;
    height: 45px;
    background: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* --- Contact Section --- */
.contact-info-card {
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    height: 100%;
}

.contact-info-card h4 {
    color: var(--white);
    margin-bottom: 30px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-info-item .icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-right: 10px;
    transition: var(--transition);
}

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

/* --- Footer (template matching dark style) --- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 60px 0 0;
}

.footer .footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 15px;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin: 0 5px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* --- Page Header (inner pages) --- */
.page-header {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-section) 60%, var(--primary-darker) 100%);
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.page-header p {
    opacity: 0.85;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.page-header .breadcrumb {
    justify-content: center;
    background: transparent;
    margin-top: 15px;
}

.page-header .breadcrumb-item a {
    color: rgba(255,255,255,0.7);
}

.page-header .breadcrumb-item.active {
    color: var(--white);
}

/* --- Success / Alert Pages --- */
.result-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.result-icon {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.5rem;
}

.result-icon.success {
    background: #d4edda;
    color: var(--primary);
}

.result-icon.error {
    background: #f8d7da;
    color: #dc3545;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .hero-section { padding: 60px 0 50px; min-height: auto; }
    .hero-section.hero-with-image { min-height: 550px; }
    .hero-section h1 { font-size: 2.2rem; }
    .hero-section h1.hero-main-title { font-size: 2.5rem; }
    .hero-section h1 span.hero-subtitle-line { font-size: 2.5rem; }
    .section-padding { padding: 50px 0; }
    .section-header h2 { font-size: 1.8rem; }
    .stat-card h3 { font-size: 1.8rem; }
    .hero-donate-card { margin-top: 30px; }
    .emergency-content { margin-top: 20px; }
}

@media (max-width: 767.98px) {
    .hero-section { min-height: auto; }
    .hero-section.hero-with-image { min-height: auto; }
    .hero-section h1 { font-size: 1.8rem; }
    .hero-section h1.hero-main-title { font-size: 2rem; }
    .hero-section h1 span.hero-subtitle-line { font-size: 2rem; }
    .hero-section p.hero-desc { font-size: 0.95rem; }
    .donate-card { padding: 25px; }
    .hero-donate-card { padding: 25px; }
    .amount-option { min-width: 60px; padding: 10px; }
    .contact-info-card { margin-top: 30px; }
    .emergency-content { padding: 25px; }
    .hero-btns { flex-direction: column; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
    .payment-icons { gap: 8px; }
    .payment-icon { height: 20px; max-width: 35px; }
}

/* --- Utility --- */
.text-primary-hiwa { color: var(--primary) !important; }
.bg-primary-hiwa { background: var(--primary) !important; }
.text-accent { color: var(--primary) !important; }
.fw-800 { font-weight: 800; }

/* Flash messages */
.flash-message {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Loading spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top.show {
    display: flex;
}

/* Arrow icon for buttons (template matching) */
.arrow-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
}

/* Form controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(91, 180, 80, 0.25);
}

/* Project card read more button */
.btn-readmore {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.btn-readmore:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}


/* ============================================
   RTL (Right-to-Left) Support for Arabic & Kurdish
   Bootstrap RTL handles layout automatically
   ============================================ */

/* Arabic/Kurdish Font */
[dir="rtl"] body {
    font-family: 'Noto Kufi Arabic', sans-serif;
}

/* Hero section headings in RTL */
[dir="rtl"] .hero-section h1,
[dir="rtl"] .hero-section h1.hero-main-title,
[dir="rtl"] .hero-section h1 span.hero-subtitle-line {
    font-family: 'Noto Kufi Arabic', sans-serif !important;
}

/* Dropdown arrows in RTL */
[dir="rtl"] .select-wrapper::after,
[dir="rtl"] .hero-donate-card .select-wrapper::after {
    right: auto;
    left: 16px;
}

/* Back to top button */
[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

@media (max-width: 767.98px) {
    [dir="rtl"] .back-to-top {
        left: 20px;
    }
}
