/* Palestinian Food Bank Foundation - Main Stylesheet */

/* Import Google Fonts for Arabic and English */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700&family=Noto+Kufi+Arabic:wght@300;400;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
    --primary-green: #2E7D32;
    --secondary-green: #4CAF50;
    --light-green: #E8F5E8;
    --dark-green: #1B5E20;
    --accent-green: #66BB6A;
    --text-primary: #333;
    --text-secondary: #666;
    --text-light: #999;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--white);
}

/* RTL Support */
[dir="rtl"] {
    font-family: 'Noto Kufi Arabic', 'Cairo', sans-serif;
    text-align: right;
}

[dir="ltr"] {
    font-family: 'Cairo', sans-serif;
    text-align: left;
}

/* RTL Navigation */
[dir="rtl"] .navbar-nav .nav-link {
    margin: 0 0.5rem;
}

[dir="rtl"] .navbar-brand {
    flex-direction: row-reverse;
}

[dir="rtl"] .navbar-logo {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Center navbar menu on all screen sizes */
.navbar-nav.mx-auto {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile menu centering */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem !important;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-green) !important;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.navbar-brand:hover {
    color: var(--primary-green) !important;
}

.navbar-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    margin: 0 1rem;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    border-radius: 6px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green) !important;
    background-color: var(--light-green);
}

.navbar-nav .nav-link.active {
    color: var(--primary-green) !important;
    background-color: var(--light-green);
    font-weight: 600;
}



.btn-donate {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    color: var(--white);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: var(--transition);
}

.btn-donate:hover {
    background-color: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-2px);
}

/* Language Switcher */
.language-switcher {
    margin-left: 1rem;
}

.language-switcher .dropdown-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-weight: 500;
}

.language-switcher .dropdown-menu {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* Mobile Navigation Styling */
@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        background-color: var(--white);
        border-radius: 8px;
        box-shadow: var(--shadow);
        padding: 1rem;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    .navbar-collapse.show {
        opacity: 1;
        transform: translateY(0);
    }
    
    .navbar-collapse.navbar-collapse-open {
        opacity: 1;
        transform: translateY(0);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
        transition: all 0.3s ease;
        text-align: center;
        display: block;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--light-green);
        border-radius: 5px;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Mobile controls styling */
    .language-switcher.d-lg-none .dropdown-toggle {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
        margin: 0.25rem 0;
    }
    
    .btn-donate.d-lg-none {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
        margin: 0.25rem 0;
    }
    
    /* Mobile menu items styling */
    .navbar-collapse .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-collapse .d-lg-none {
        text-align: center;
        margin: 0.5rem 0;
    }
    
    /* Ensure mobile menu doesn't interfere with body scrolling */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Mobile menu toggle animation */
    .navbar-toggler {
        border: none;
        padding: 0.5rem;
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    .navbar-toggler-icon {
        transition: all 0.3s ease;
    }
}

/* Hero Carousel Section */
.hero-carousel {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slide {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.8), rgba(76, 175, 80, 0.7));
    z-index: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".25" fill="%23ffffff"></path></svg>') repeat-x;
    background-size: 1200px 120px;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    padding: 0;
    margin-top: 0;
    transform: translateY(15%);
}

.hero h1, .hero-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    line-height: 1.1;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hero h1, .hero-content h1 {
        font-size: 2.5rem;
        white-space: normal;
    }
}

.hero p, .hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-donate-hero {
    background-color: var(--white);
    color: var(--primary-green);
    border: 2px solid var(--white);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
}

.btn-donate-hero:hover {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--primary-green);
    border-color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
    margin: 0;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    background-color: transparent !important;
    margin: 0 5px !important;
    padding: 0 !important;
    text-indent: -999px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    outline: none;
    display: block;
    box-sizing: border-box;
}

.carousel-indicators button.active {
    background-color: white !important;
    border-color: white !important;
    opacity: 1 !important;
}

.carousel-indicators button:hover {
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-color: white !important;
}

/* Carousel Fade Animation */
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* About Section Styles */
.about-section {
    padding: 20px 0 80px 0;
    background: #f8f9fa;
    margin-bottom: 0px;
    position: relative;
}



.about-content {
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 350px;
    margin-bottom: 0px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid var(--primary-green);
    height: 100px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.about-feature:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

[dir="rtl"] .about-feature {
    border-left: none;
    border-right: 5px solid var(--primary-green);
}

.about-feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.about-feature-icon i {
    color: white;
    font-size: 24px;
}

.about-feature-text {
    flex: 1;
    position: relative;
    padding-right: 40px;
}

.about-feature-text h4 {
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.about-feature-text p {
    color: #666;
    line-height: 1.4;
    margin-bottom: 0;
    font-size: 14px;
}

.about-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    font-size: 16px;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.about-feature:hover .about-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(5px);
}

[dir="rtl"] .about-arrow {
    left: 15px;
    right: auto;
    transform: translateY(-50%);
}

[dir="rtl"] .about-feature:hover .about-arrow {
    transform: translateY(-50%) translateX(-5px);
}

[dir="rtl"] .about-feature-text {
    padding-right: 0;
    padding-left: 40px;
}

[dir="rtl"] .about-arrow i {
    transform: rotate(180deg);
}

.about-images {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 350px;
    margin-bottom: 40px;
}

/* Tablet only responsive design - keep desktop original */
@media (max-width: 991.98px) and (min-width: 768px) {
    .about-section .row {
        display: flex;
        flex-direction: column;
    }
    
    .about-section .row > div:first-child {
        order: 2 !important;
    }
    
    .about-section .row > div:last-child {
        order: 1 !important;
    }
    
    .about-images {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 15px;
        height: 280px;
        margin-bottom: 40px;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-img-main {
        grid-row: 1 / 3;
        grid-column: 1 / 2;
    }
    
    .about-img-main img,
    .about-img-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 10px;
    }
    
    .about-content {
        height: auto;
        padding-right: 0;
        margin-bottom: 0;
    }
    
    .about-feature {
        margin-bottom: 15px;
        height: auto;
        min-height: 80px;
    }
}

/* Mobile layout container */
@media (max-width: 767.98px) {
    .mobile-layout {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* Mobile images container */
@media (max-width: 767.98px) {
    .about-section {
        padding: 0px 0 60px 0;
        margin-top: -10px;
    }
    
    .about-images-mobile {
        margin-bottom: 40px;
        margin-top: 20px;
        order: 1 !important;
    }

    /* Mobile content container */
    .about-content-mobile {
        order: 2 !important;
        margin-top: 0;
    }
}

.about-content-mobile .about-feature {
    margin-bottom: 10px;
    height: auto;
    min-height: 70px;
}

/* Mobile specific - Images under title, then cards */
@media (max-width: 767.98px) {
    .about-images-mobile .about-images {
        display: grid;
        grid-template-columns: 2fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 8px;
        height: 210px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .about-images-mobile .about-img-main {
        grid-row: 1 / 3;
        grid-column: 1 / 2;
    }
    
    .about-images-mobile .about-img-item:nth-child(2) {
        grid-row: 1 / 2;
        grid-column: 2 / 3;
        height: 101px;
    }
    
    .about-images-mobile .about-img-item:nth-child(3) {
        grid-row: 2 / 3;
        grid-column: 2 / 3;
        height: 101px;
    }
    
    .about-images-mobile .about-img-main img,
    .about-images-mobile .about-img-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 8px;
    }
    
    .about-content {
        height: auto;
        padding-right: 0;
        margin-bottom: 0;
    }
    
    .about-feature {
        margin-bottom: 10px;
        height: auto;
        min-height: 70px;
    }
}

@media (max-width: 575.98px) {
    .about-images {
        height: 180px;
        gap: 8px;
        max-width: 280px;
    }
    
    .about-feature {
        min-height: 60px;
        padding: 15px;
    }
    
    .about-feature-text h4 {
        font-size: 1.1rem;
    }
    
    .about-feature-text p {
        font-size: 13px;
    }
}

.about-img-main {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
}

.about-img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.about-img-item {
    grid-column: 2 / 3;
}

.about-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.about-img-item:nth-child(2) {
    grid-row: 1 / 2;
}

.about-img-item:nth-child(3) {
    grid-row: 2 / 3;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .about-section .row {
        flex-direction: column-reverse;
    }
    
    .about-images {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        height: auto;
        margin-bottom: 30px;
    }
    
    .about-img-main {
        grid-row: 1 / 2;
        grid-column: 1 / 2;
        height: 200px;
    }
    
    .about-img-item:nth-child(2) {
        grid-row: 2 / 3;
        height: 200px;
    }
    
    .about-img-item:nth-child(3) {
        grid-row: 3 / 4;
        height: 200px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-slide {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .btn-donate-hero {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .about-content {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .about-images {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .about-img-main {
        grid-row: 1;
        grid-column: 1;
        height: 250px;
    }
    
    .about-img-grid {
        grid-column: 1;
        flex-direction: row;
        height: 150px;
    }
    
    /* Mobile Service Cards - Unified Design */
    .service-card {
        height: 300px;
        width: 100%;
        padding: 2rem 1.5rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
        margin-bottom: 1.2rem;
        flex-shrink: 0;
    }
    
    .service-card h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
        min-height: 2.5rem;
        max-height: 2.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        text-align: center;
        line-height: 1.2;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.4;
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 0;
        padding: 0 0.5rem;
        min-height: 3rem;
    }
}

/* Tablet Service Cards - Unified Design */
@media (max-width: 991.98px) and (min-width: 769px) {
    .service-card {
        height: 320px;
        width: 100%;
        padding: 2.2rem 1.8rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }
    
    .service-icon {
        width: 75px;
        height: 75px;
        font-size: 1.9rem;
        margin-bottom: 1.3rem;
        flex-shrink: 0;
    }
    
    .service-card h4 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
        min-height: 3rem;
        max-height: 3rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        text-align: center;
        line-height: 1.2;
    }
    
    .service-card p {
        font-size: 0.95rem;
        line-height: 1.4;
        flex-grow: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        margin: 0;
        padding: 0 0.5rem;
        min-height: 3.5rem;
    }
}

.hero .btn {
    font-size: 1.1rem;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    margin: 0.5rem;
    transition: var(--transition);
}

.btn-outline-white {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary-green);
}

/* Section Styling */
.section {
    padding: 4rem 0;
    margin-top: 0;
    background: white;
    position: relative;
    z-index: 2;
}

/* Services Section - Remove white gap */
.section.bg-light-green {
    background: #f8f9fa !important;
    margin-top: -1px;
}

/* Services Section Improvements */
#services .row {
    display: flex;
    align-items: stretch;
}

#services .col-lg-4 {
    display: flex;
    margin-bottom: 2rem;
}

/* Ensure equal height for all screen sizes */
@media (min-width: 992px) {
    #services .row {
        display: flex;
        align-items: stretch;
    }
    
    #services .col-lg-4 {
        display: flex;
    }
}

@media (max-width: 991.98px) {
    #services .row {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
    
    #services .col-lg-4 {
        display: flex;
        width: 100%;
        margin-bottom: 1.5rem;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 1rem;
}

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

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-header {
    background-color: var(--light-green);
    border-bottom: none;
    padding: 1.5rem;
}

.card-body {
    padding: 2rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

/* Service Cards - Unified Design */
.service-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    margin-bottom: 2rem;
    height: 320px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--white);
    font-size: 2rem;
    flex-shrink: 0;
}

.service-card h4 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 1rem;
    line-height: 1.3;
    min-height: 3.5rem;
    max-height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-shrink: 0;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    hyphens: auto;
    word-wrap: break-word;
    padding: 0 0.5rem;
    min-height: 4rem;
}

/* Project Cards */
.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--light-green), var(--accent-green));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    font-size: 3rem;
}

.project-content {
    padding: 2rem;
}

.project-title {
    color: var(--primary-green);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about-feature {
    display: flex;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--light-green);
    border-radius: 15px;
    border-left: 5px solid var(--primary-green);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: var(--white);
    font-size: 1.5rem;
}

[dir="rtl"] .about-feature-icon {
    margin-left: 1rem;
    margin-right: 0;
}

/* Stats Section */
.stats {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.9);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #407F48, #407F48);
    color: white;
    padding: 2rem 0 1rem;
}

.footer-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-navigation .nav {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.footer-navigation .nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 1rem;
    transition: color 0.3s;
    font-size: 0.95rem;
    line-height: 1.2;
}

.footer-navigation .nav-link:hover {
    color: #d4edda;
}

.footer-content {
    text-align: right;
}

.footer-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: white;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn-donate-footer {
    border: 2px solid white;
    color: white;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    font-size: 0.95rem;
}

.btn-donate-footer:hover {
    background: white;
    color: #4a7c59;
}

.footer-bottom {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile responsive */
@media (max-width: 991px) {
    .footer-content {
        text-align: center;
    }
    
    .footer-navigation {
        margin-bottom: 1.5rem;
    }
    
    .footer-navigation .nav {
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
    }
    
    .footer-navigation .nav-item {
        margin-bottom: 0.3rem;
    }
    
    .footer-logo {
        width: 80px;
        height: 80px;
        padding: 12px;
    }
}

/* Donation Form */
.donation-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.amount-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.amount-option {
    flex: 1;
    min-width: 100px;
}

/* Services Section Layout Fix */
#services .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

#services .col-lg-4 {
    display: flex;
    flex-direction: column;
}

/* Ensure all service cards have the same height */
#services .service-card {
    flex: 1;
    min-height: 320px;
    max-height: 320px;
}

/* Contact Section Styles */
#contact {
    background-color: var(--light-green);
}

.contact-info-card, .contact-form-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    height: 100%;
    transition: var(--transition);
}

.contact-info-card:hover, .contact-form-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-info-header, .contact-form-header {
    text-align: center;
    margin-bottom: 1rem;
}

.contact-info-header i, .contact-form-header i {
    font-size: 2rem;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.contact-info-header h3, .contact-form-header h3 {
    color: var(--primary-green);
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-form-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0;
}

.contact-info-items {
    margin-bottom: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.7rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.contact-info-item:hover {
    background-color: var(--light-green);
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    margin-right: 0.7rem;
    flex-shrink: 0;
}

.contact-info-content h4 {
    color: var(--primary-green);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.contact-info-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.social-media-section {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.social-media-section h4 {
    color: var(--primary-green);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.social-media-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-link.whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877F2, #4267B2);
}

.social-link.instagram {
    background: linear-gradient(135deg, #E4405F, #C13584);
}

.social-link.twitter {
    background: linear-gradient(135deg, #000000, #333333);
}

.x-icon {
    font-size: 1rem;
    font-weight: bold;
    color: white;
}

.contact-form {
    margin-top: 1rem;
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form label {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.contact-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.7rem;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.contact-form .btn {
    width: 100%;
    padding: 0.7rem 1.3rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
}

/* RTL Support for Contact Section */
[dir="rtl"] .contact-info-icon {
    margin-right: 0;
    margin-left: 0.7rem;
}

/* Mobile Responsive for Contact Section */
@media (max-width: 768px) {
    .contact-info-card, .contact-form-card {
        padding: 1.2rem;
    }
    
    .contact-info-header i, .contact-form-header i {
        font-size: 1.8rem;
    }
    
    .contact-info-header h3, .contact-form-header h3 {
        font-size: 1.3rem;
    }
    
    .social-media-links {
        gap: 0.5rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .x-icon {
        font-size: 0.9rem;
    }
    
    .contact-info-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .contact-form .form-group {
        margin-bottom: 0.8rem;
    }
    
    .contact-form .form-control {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .contact-form textarea.form-control {
        min-height: 70px;
    }
    
    .contact-form .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Reorder contact sections on mobile */
    #contact .row {
        display: flex;
        flex-direction: column;
    }
    
    #contact .col-lg-6:nth-child(1) {
        order: 2;
    }
    
    #contact .col-lg-6:nth-child(2) {
        order: 1;
    }
}

.amount-option input[type="radio"] {
    display: none;
}

.amount-option label {
    display: block;
    padding: 1rem;
    background: var(--light-green);
    border: 2px solid var(--light-green);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.amount-option input[type="radio"]:checked + label {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.payment-method {
    flex: 1;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-method label {
    display: block;
    padding: 1rem;
    background: var(--light-green);
    border: 2px solid var(--light-green);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.payment-method input[type="radio"]:checked + label {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
    /* About page image and text reordering for tablets */
    .section .row.align-items-center {
        flex-direction: column-reverse;
    }
    
    .section .row.align-items-center .col-lg-6:first-child {
        order: 2;
        margin-top: 2rem;
    }
    
    .section .row.align-items-center .col-lg-6:last-child {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .project-image {
        height: 250px !important;
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .about-feature {
        flex-direction: column;
        text-align: center;
    }
    
    .about-feature-icon {
        margin: 0 0 1rem 0;
    }
    
    .amount-options {
        flex-direction: column;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Mobile specific adjustments for about page */
    .section .row.align-items-center {
        flex-direction: column-reverse;
    }
    
    .section .row.align-items-center .col-lg-6:first-child {
        order: 2;
        margin-top: 1.5rem;
    }
    
    .section .row.align-items-center .col-lg-6:last-child {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .project-image {
        height: 200px !important;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 4rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .donation-form {
        padding: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary-green { color: var(--primary-green) !important; }
.bg-primary-green { background-color: var(--primary-green) !important; }
.bg-light-green { background-color: var(--light-green) !important; }
.border-primary-green { border-color: var(--primary-green) !important; }

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Print Styles */
@media print {
    .navbar, .footer, .btn { display: none !important; }
    .hero { background: none !important; color: var(--text-primary) !important; }
    .section { page-break-inside: avoid; }
}

/* PayPal improvements */
.payment-method-description {
    margin-top: 0.5rem;
    opacity: 0.7;
}

.payment-method-description small {
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
}

/* Improved payment method styling */
.payment-method {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
}

.payment-method label {
    display: block;
    padding: 1rem 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    min-height: 80px;
    font-size: 0.9rem;
}

.payment-method label:hover {
    border-color: var(--primary-green);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.payment-method input[type="radio"]:checked + label {
    border-color: var(--primary-green);
    background: linear-gradient(135deg, #f8f9fa 0%, var(--light-green) 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.payment-method label .fa-paypal {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.payment-method label .fa-credit-card {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    color: #666;
}

.payment-method label span {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.payment-method-description {
    margin-top: 0.5rem;
    opacity: 0.8;
}

.payment-method-description small {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

/* PayPal info styling */
.paypal-info {
    margin-top: 1rem;
}

.paypal-info .alert {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    color: #1976d2;
    padding: 1rem;
    border-radius: 8px;
}

.paypal-info .alert strong {
    color: #1565c0;
}

/* Mobile responsive for payment methods */
@media (max-width: 768px) {
    .payment-methods {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .payment-method {
        min-width: 100%;
        max-width: 100%;
    }
    
    .payment-method label {
        padding: 1rem;
        text-align: center;
        min-height: 70px;
        font-size: 0.85rem;
    }
}

/* About page responsive adjustments */
@media (max-width: 1024px) {
    /* About page image and text reordering for tablets */
    .about-section .row.align-items-center {
        flex-direction: column-reverse;
    }
    
    .about-section .row.align-items-center .col-lg-6:first-child {
        order: 2;
        margin-top: 2rem;
    }
    
    .about-section .row.align-items-center .col-lg-6:last-child {
        order: 1;
        margin-bottom: 1rem;
    }
    
    .about-section .project-image {
        height: 250px !important;
        margin-bottom: 1rem;
    }
}

/* Crypto Payment Styles */
.crypto-options {
    display: block;
    margin-top: 0.5rem;
}

.crypto-method {
    position: relative;
}

.crypto-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.crypto-method label {
    display: block;
    padding: 1rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 80px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.crypto-method label:hover {
    border-color: var(--primary-green);
    background: rgba(var(--primary-green-rgb), 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.crypto-method input[type="radio"]:checked + label {
    border-color: var(--primary-green);
    background: rgba(var(--primary-green-rgb), 0.1);
    box-shadow: 0 4px 12px rgba(var(--primary-green-rgb), 0.15);
}

.crypto-method label i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    vertical-align: middle;
}

.crypto-method label span {
    font-weight: 600;
    color: #333;
    vertical-align: middle;
}

.crypto-method-description {
    margin-top: 0.25rem;
}

.crypto-method-description small {
    color: #6c757d;
    font-size: 0.875rem;
}

.crypto-address-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.crypto-address-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.crypto-selected-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.crypto-selected-info i {
    font-size: 1.5rem;
}

.crypto-amount {
    color: var(--primary-green);
    font-weight: 600;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.crypto-address-display {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.5rem;
}

.crypto-address-display input {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    background: white;
    border: 2px solid #ced4da;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.crypto-address-display button {
    white-space: nowrap;
}

.qr-placeholder {
    background: white;
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    padding: 2rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.qr-placeholder:hover {
    border-color: var(--primary-green);
    background: rgba(var(--primary-green-rgb), 0.02);
}

.qr-placeholder i {
    color: #adb5bd;
    margin-bottom: 0.5rem;
}

/* Responsive Crypto Styles */
@media (max-width: 768px) {
    .crypto-options {
        grid-template-columns: 1fr;
    }
    
    .crypto-method label {
        padding: 1rem;
        text-align: center;
    }
    
    .crypto-address-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .crypto-selected-info,
    .crypto-amount {
        align-self: stretch;
        text-align: center;
    }
    
    .crypto-address-display {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .crypto-address-display button {
        align-self: flex-start;
    }
}
