/* style.css */

/* Variables */
:root {
    --yellow: #FFCC00;
    --black: #000000;
    --white: #FFFFFF;
    --gray: #333333;
    --light-gray: #F5F5F5;
    --dark-gray: #222222;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--gray);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--dark-gray);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--yellow);
}

.section-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    color: #666;
}

.cta-button {
    display: inline-block;
    background-color: var(--yellow);
    color: var(--black);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--yellow);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--black);
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--black);
    border: 2px solid var(--yellow);
}

.cta-button.secondary:hover {
    background-color: var(--yellow);
}

/* Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo img {
    height: 80px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-item {
    margin: 0 10px;
}

.nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--yellow);
}

.donate-btn {
    background-color: var(--yellow);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--black);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/download1.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--white);
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.about-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease;
    background-color: var(--light-gray);
}

.about-item:hover {
    transform: translateY(-10px);
}

.about-icon {
    font-size: 3rem;
    color: var(--yellow);
    margin-bottom: 20px;
}

.about-item h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* Projects Section */
.projects {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}
.hidden-project {
    display: none;
}

.show-all .hidden-project {
    display: block;
}
.project-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

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

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.project-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--yellow);
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
}

.projects-cta {
    text-align: center;
}

/* Events Section - Updated with Images */
.events {
    padding: 80px 0;
    background-color: var(--white);
}

.events-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.event-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
}

.event-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--yellow);
    color: var(--black);
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    font-weight: 700;
    z-index: 2;
}

.date-day {
    display: block;
    font-size: 1.5rem;
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
}

.event-content {
    padding: 20px;
}

.event-content h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.event-info {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #666;
}

.event-info i {
    margin-right: 8px;
    color: var(--yellow);
    width: 16px;
}

.event-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.event-button {
    display: inline-block;
    background-color: var(--yellow);
    color: var(--black);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.event-button:hover {
    background-color: var(--black);
    color: var(--white);
}

/* Responsive for Events */
@media (max-width: 768px) {
    .events-container {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Team Section */
.team {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.team-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.team-tab {
    background: none;
    border: none;
    padding: 10px 20px;
    margin: 0 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    position: relative;
    color: #666;
}

.team-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--yellow);
    transition: width 0.3s ease;
}

.team-tab:hover::after,
.team-tab.active::after {
    width: 100%;
}

.team-tab.active {
    color: var(--black);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    transition: gap 0.3s ease;
}

/* 🔹 المسافة الأصغر لما نفلتر */
.team-grid.compact {
    gap: 15px;
}

.team-member {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
    width: 280px;
    margin: 0 auto;
}

.team-member:hover {
    transform: translateY(-10px);
}

/* Team Section */
.hidden-member {
    display: none;
}

.show-all-members .hidden-member {
    display: block;
}

.team-cta {
    text-align: center;
    margin-top: 40px;
}

.member-image {
    height: 267.5px;
    overflow: hidden;  
    width: 100%;
    object-fit: cover;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: 20px;
}

.member-info h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.member-info p {
    color: #666;
    margin-bottom: 15px;
}

.member-social {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.member-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background-color: var(--light-gray);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.member-social a:hover {
    background-color: var(--yellow);
    color: var(--black);
}

/* Partners Section */
.partners {
    padding: 80px 0;
    background-color: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.partner-logo:hover {
    transform: translateY(-5px);
    border-color: var(--yellow);
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.2);
}

.partner-logo img {
    max-height: 80px;
    width: auto;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
}

.partner-logo:hover img {
    filter: none;
    opacity: 1;
}

.partners-cta {
    text-align: center;
}

.partners-cta p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    height: 50px;
    background-color: var(--yellow);
    border-radius: 50%;
    font-size: 1.2rem;
}

.contact-details h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.contact-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--white);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    background-color: var(--yellow);
    color: var(--black);
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.3rem;
}

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

.footer-section ul li a {
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--yellow);
}

.footer-logo img {
    height: 40px;
    margin-bottom: 15px;
}

.footer-form {
    display: flex;
    margin-top: 15px;
}

.footer-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
}

.footer-form button {
    padding: 10px 15px;
    background-color: var(--yellow);
    color: var(--black);
    border: none;
    border-radius: 0 5px 5px 0;
    font-weight: 600;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        margin: 15px 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-content,
    .projects-grid,
    .events-container,
    .team-grid,
    .partners-grid,
    .contact-container,
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .event-card {
        flex-direction: column;
    }
    
    .event-date {
        flex-direction: row;
        justify-content: center;
        min-width: auto;
        padding: 10px;
    }
    
    .date-day {
        margin-right: 5px;
    }
    
    .team-member {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .cta-button {
        padding: 10px 20px;
    }
    
    .team-tabs {
        flex-wrap: wrap;
    }
    
    .team-tab {
        margin: 5px;
    }
}
/* Partners Section */
.hidden-partner {
    display: none;
}

.show-all-partners .hidden-partner {
    display: flex; /* استخدم flex علشان يظبط مع التصميم */
}

.partners-cta {
    text-align: center;
    margin-top: 40px;
}