/* ===== Homepage Styles - جمعية الأقصى ===== */

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 450px;
    max-height: 700px;
    overflow: hidden;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 800px;
}

.slide-title {
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    line-height: 1.3;
}

.slide-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255,255,255,0.95);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-default {
    background: linear-gradient(135deg, var(--primary-color, #1a1a1a) 0%, #2d2d2d 100%);
}

.hero-default .slide-title {
    color: #fff;
}

.hero-default .slide-subtitle {
    color: rgba(255,255,255,0.9);
}

.btn-hero {
    display: inline-block;
    padding: 14px 35px;
    background: var(--secondary-color, #D32F2F);
    color: #fff !important;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.4);
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(211, 47, 47, 0.5);
    background: var(--accent-color, #388E3C);
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slider-dots .dot.active {
    background: #fff;
    transform: scale(1.2);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.slider-arrow:hover {
    background: rgba(255,255,255,0.3);
    border-color: #fff;
}

.slider-prev { right: 20px; }
.slider-next { left: 20px; }

/* Statistics Section */
.statistics-section {
    background: linear-gradient(135deg, var(--primary-color, #1a1a1a) 0%, #2a2a2a 100%);
    padding: 50px 0;
    margin-top: -5px;
    position: relative;
    z-index: 5;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-card {
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.8rem;
    color: var(--accent-color, #388E3C);
}

.stat-card h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
}

/* Section Common */
.home-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(56, 142, 60, 0.15);
    color: var(--accent-color, #388E3C);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary-color, #1a1a1a);
    margin-bottom: 0.75rem;
}

.section-desc {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* Projects Grid */
.projects-section {
    background: #f8f9fa;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-img img,
.card-img .project-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-img .project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 100%);
    color: #aaa;
    font-size: 3rem;
}

.project-card:hover .card-img img {
    transform: scale(1.08);
}

.category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-color, #388E3C);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.25rem;
    color: var(--primary-color, #1a1a1a);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.card-content p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.progress-wrap {
    margin-bottom: 1rem;
}

.progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-bar .progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color, #D32F2F), var(--accent-color, #388E3C));
    border-radius: 4px;
    transition: width 0.6s ease;
}

.progress-text {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 700;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #555;
}

.project-meta strong {
    color: var(--secondary-color);
}

/* Activities Section */
.activities-section {
    background: #fff;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.activity-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1px solid #eee;
}

.activity-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.activity-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.activity-img img,
.activity-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.activity-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    color: #999;
    font-size: 3rem;
}

.activity-card:hover .activity-img img {
    transform: scale(1.05);
}

.activity-date {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.activity-content {
    padding: 1.25rem;
}

.activity-content h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.activity-content p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Orphans Section */
.orphans-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 100%);
}

.orphans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.orphan-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
    text-align: center;
}

.orphan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.orphan-img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.orphan-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.orphan-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.orphan-content {
    padding: 1.25rem;
}

.orphan-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.orphan-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}

.orphan-content i {
    color: var(--accent-color);
    margin-left: 5px;
}

.btn-orphan {
    display: block;
    margin: 0 1.25rem 1.25rem;
    padding: 10px;
    background: var(--accent-color);
    color: #fff !important;
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-orphan:hover {
    background: var(--primary-color);
}

.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: #fff !important;
}

/* Testimonials Section */
.testimonials-section {
    background: #f8f9fa;
}

.testimonials-grid-home {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card-home {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}

.testimonial-card-home:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.testimonial-quote-icon {
    color: var(--accent-color);
    font-size: 2rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

.testimonial-text-home {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.testimonial-author-home {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.25rem;
    border-top: 1px solid #eee;
}

.testimonial-author-home img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-avatar-home {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.25rem;
}

.testimonial-author-home strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 3px;
}

.testimonial-author-home span {
    font-size: 0.9rem;
    color: #777;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color, #1a1a1a) 0%, #2d2d2d 100%);
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: #fff;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary {
    padding: 16px 40px;
    background: var(--secondary-color);
    color: #fff !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}

.btn-cta-secondary {
    padding: 16px 40px;
    background: transparent;
    color: #fff !important;
    border: 2px solid #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.btn-cta-secondary:hover {
    background: #fff;
    color: var(--primary-color) !important;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: #999;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-slider {
        height: 70vh;
        min-height: 400px;
    }

    .stats-grid {
        gap: 1.5rem;
    }

    .projects-grid,
    .activities-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 60vh;
        min-height: 350px;
    }

    .slide-content {
        padding: 1rem;
    }

    .slider-arrow {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .slider-prev { right: 10px; }
    .slider-next { left: 10px; }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-card {
        padding: 1rem;
    }

    .home-section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .projects-grid,
    .activities-grid,
    .orphans-grid,
    .testimonials-grid-home {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        min-height: 300px;
    }

    .card-img {
        height: 180px;
    }

    .orphan-img {
        height: 200px;
    }
}
