
/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
    --primary-color: #1c87c9;
    --secondary-color: #f7b731;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --body-color: #f5f8fa;
    --text-color: #495057;
    --heading-color: #212529;
    --border-color: #dee2e6;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--body-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0056b3;
    text-decoration: none;
}

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    bottom: 0;
    left: calc(50% - 30px);
}

.section-title p {
    font-size: 16px;
    margin-bottom: 0;
    color: #6c757d;
}

.btn {
    border-radius: 4px;
    padding: 10px 24px;
    transition: 0.5s;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #e5a403;
    border-color: #e5a403;
}
.btn-add-to-cart {
    background-color: #28a745; /* لون أخضر */
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 5px;
}
.btn-add-to-cart:hover {
    background-color: #218838; /* لون أغمق عند التمرير */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.top-bar {
    font-size: 14px;
}

.top-bar .top-contact span {
    display: inline-block;
    margin-right: 15px;
}

.top-bar .top-social a {
    display: inline-block;
    width: 25px;
    height: 25px;
    line-height: 25px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.top-bar .top-social a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.navbar {
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 100px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover, 
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
    background: url('../img/hero-bg.jpg') no-repeat center center/cover;
    padding: 150px 0;
    position: relative;
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    display: inline-block;
}

/*--------------------------------------------------------------
# Project Cards
--------------------------------------------------------------*/
.project-card {
    border-radius: 10px;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.project-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.project-card .card-body {
    padding: 20px;
}

.project-card .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-card .card-text {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.project-card .project-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.project-card .project-info span {
    font-size: 14px;
    color: #6c757d;
}

.project-card .progress {
    height: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.project-card .progress-bar {
    background-color: var(--success-color);
}

.project-card .card-footer {
    background-color: transparent;
    border-top: 1px solid var(--border-color);
    padding: 15px 20px;
}

.project-card .btn-donate {
    width: 100%;
}

/*--------------------------------------------------------------
# Impact Counter
--------------------------------------------------------------*/
.impact-counter {
    background: var(--primary-color);
    padding: 60px 0;
    color: #fff;
}

.counter-box {
    text-align: center;
}

.counter-box i {
    font-size: 40px;
    margin-bottom: 15px;
    display: inline-block;
}

.counter-box h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}

.counter-box p {
    font-size: 16px;
    margin-bottom: 0;
    text-transform: uppercase;
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonial-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    background: #fff;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.testimonial-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.testimonial-card h6 {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}

.testimonial-card .stars {
    color: var(--warning-color);
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
}

/*--------------------------------------------------------------
# Partners
--------------------------------------------------------------*/
.partners {
    background: #f8f9fa;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease;
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-logo img {
    max-width: 80%;
    max-height: 80%;
}

/*--------------------------------------------------------------
# Project Details
--------------------------------------------------------------*/
.project-header {
    background: #f8f9fa;
    padding: 60px 0;
}

.project-header h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.project-meta-item {
    margin-right: 30px;
    margin-bottom: 15px;
}

.project-meta-item .label {
    display: block;
    font-size: 14px;
    color: #6c757d;
}

.project-meta-item .value {
    display: block;
    font-size: 16px;
    font-weight: 600;
}

.project-progress {
    margin-top: 30px;
}

.project-progress .progress {
    height: 15px;
    border-radius: 7px;
}

.project-details-content {
    padding: 60px 0;
}

.project-details-content h3 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.project-gallery {
    margin-top: 40px;
}

.gallery-item {
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.project-updates {
    margin-top: 40px;
}

.update-card {
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    background: #fff;
}

.update-card .date {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 10px;
}

.update-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}

.recent-donations {
    margin-top: 40px;
}

.donation-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    margin-bottom: 15px;
}

.donation-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
}

.donation-info {
    flex-grow: 1;
}

.donation-info h5 {
    font-size: 16px;
    margin-bottom: 5px;
}

.donation-info .date {
    font-size: 12px;
    color: #6c757d;
}

.donation-amount {
    font-size: 16px;
    font-weight: 600;
    color: var(--success-color);
}

/*--------------------------------------------------------------
# Donation Form
--------------------------------------------------------------*/
.donation-form {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.donation-form h3 {
    margin-bottom: 20px;
}

.donation-amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.amount-option {
    position: relative;
    flex: 1;
    min-width: 80px;
}

.amount-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.amount-option label {
    display: block;
    background: #f8f9fa;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.amount-option input[type="radio"]:checked + label {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.custom-amount {
    margin-top: 10px;
}

/*--------------------------------------------------------------
# User Pages
--------------------------------------------------------------*/
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 30px;
}

.auth-card .logo {
    text-align: center;
    margin-bottom: 20px;
}

.auth-card .logo img {
    max-height: 80px;
}

.auth-card .form-group {
    margin-bottom: 20px;
}

.profile-container {
    padding: 60px 0;
}

.profile-sidebar {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.profile-picture {
    text-align: center;
    margin-bottom: 20px;
}

.profile-picture img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.profile-nav {
    margin-top: 30px;
}

.profile-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    color: var(--text-color);
}

.profile-nav .nav-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.profile-nav .nav-link.active, 
.profile-nav .nav-link:hover {
    background: var(--primary-color);
    color: #fff;
}

.profile-content {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
    color: #fff;
    font-size: 14px;
    background: var(--dark-color);
}

.footer a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.footer a:hover {
    color: var(--primary-color);
}

.footer .contact-info p {
    margin-bottom: 10px;
}

.footer .social-icons a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer .social-icons a:hover {
    background: var(--primary-color);
    color: #fff;
}

/*--------------------------------------------------------------
# Responsive Styles
--------------------------------------------------------------*/
@media (max-width: 992px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .counter-box h2 {
        font-size: 32px;
    }
    
    .counter-box i {
        font-size: 32px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 100px 0;
    }
    
    .hero h1 {
        font-size: 30px;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .counter-box {
        margin-bottom: 30px;
    }
    
    .project-header h1 {
        font-size: 28px;
    }
    
    .auth-container {
        padding: 50px 0;
    }
    
    .profile-sidebar {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 24px;
    }
    
    .hero .btn {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .top-bar .top-contact,
    .top-bar .top-social {
        text-align: center;
        margin-bottom: 5px;
    }
    
    .section-title h2 {
        font-size: 22px;
    }
    
    .auth-card {
        padding: 20px;
    }
}