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

:root {
    /* Palestinian Flag Colors */
    --flag-black: #1a1a1a;
    --flag-white: #ffffff;
    --flag-green: #009639;
    --flag-red: #E4312B;
    --flag-green-dark: #007a30;
    --light-bg: #f8f9fa;
    --text-dark: #2d2d2d;
    --text-gray: #666;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cairo', sans-serif;
}

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

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--flag-black) 0%, #2d2d2d 100%);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.3);
    border-bottom: 3px solid var(--flag-green);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--flag-white);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.logo p {
    color: var(--flag-green);
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--flag-white);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    font-size: 0.95rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--flag-green);
    transition: width 0.3s;
}

.nav-menu a:hover {
    color: var(--flag-green);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.85) 0%, rgba(0, 150, 57, 0.7) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="pattern" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle fill="%23ffffff" opacity="0.03" cx="20" cy="20" r="2"/></pattern></defs><rect fill="%231a1a1a" width="1200" height="600"/><rect fill="url(%23pattern)" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        var(--flag-red) 0%, 
        transparent 5%,
        transparent 95%,
        var(--flag-green) 100%);
    opacity: 0.15;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    color: var(--flag-white);
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: var(--flag-green);
    color: var(--flag-white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--flag-green);
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1.1rem 2.8rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s;
    font-size: 1rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--flag-green);
    color: var(--flag-white);
    border: 2px solid var(--flag-green);
}

.btn-primary:hover {
    background: var(--flag-green-dark);
    border-color: var(--flag-green-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 150, 57, 0.4);
}

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

.btn-secondary:hover {
    background: var(--flag-white);
    color: var(--flag-black);
    transform: translateY(-3px);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--flag-black);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    font-weight: 400;
    margin-top: 1rem;
}

.section-subtitle-light {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
    margin-top: 1rem;
}

.underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--flag-red) 0%, var(--flag-black) 33%, var(--flag-white) 66%, var(--flag-green) 100%);
    margin: 0 auto;
}

.underline-light {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--flag-red) 0%, var(--flag-white) 50%, var(--flag-green) 100%);
    margin: 0 auto 1.5rem;
}

/* About Section */
.about {
    background: var(--light-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-content h3,
.about-values h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--flag-black);
}

.about-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.9;
    color: var(--text-gray);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--flag-white);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border-top: 4px solid var(--flag-green);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--flag-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-gray);
    font-weight: 600;
}

.value-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--flag-white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-left: 4px solid var(--flag-green);
}

.value-item:hover {
    transform: translateX(10px);
}

.value-icon {
    font-size: 2.5rem;
}

.value-text h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--flag-black);
}

.value-text p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Mission Section */
.mission {
    background: linear-gradient(135deg, var(--flag-black) 0%, #2d2d2d 100%);
    color: var(--flag-white);
    position: relative;
}

.mission::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, var(--flag-green) 100%);
    opacity: 0.1;
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.mission-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--flag-white);
    text-align: center;
}

.mission-statement {
    font-size: 1.4rem;
    line-height: 1.9;
    margin: 2rem 0 3rem;
    text-align: center;
    color: rgba(255,255,255,0.95);
}

.mission-points {
    display: grid;
    gap: 1.5rem;
}

.mission-point {
    display: flex;
    gap: 1.5rem;
    align-items: start;
    padding: 1.5rem;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    border-left: 4px solid var(--flag-green);
    transition: all 0.3s;
}

.mission-point:hover {
    background: rgba(255,255,255,0.08);
    transform: translateX(10px);
}

.point-marker {
    color: var(--flag-green);
    font-size: 1.5rem;
    font-weight: 800;
}

.mission-point p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Programs Section */
.programs {
    background: var(--flag-white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.program-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 15px;
    transition: all 0.3s;
    border: 2px solid transparent;
    border-top: 4px solid var(--flag-green);
}

.program-card:hover {
    border-color: var(--flag-green);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 150, 57, 0.15);
}

.program-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.program-icon {
    font-size: 3.5rem;
}

.program-card h3 {
    font-size: 1.5rem;
    color: var(--flag-black);
    line-height: 1.3;
}

.program-card > p {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.program-features {
    list-style: none;
    padding-left: 0;
}

.program-features li {
    padding: 0.6rem 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 1.8rem;
}

.program-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--flag-green);
    font-weight: 800;
    font-size: 1.2rem;
}

/* Events Section */
.events {
    background: linear-gradient(135deg, #2d2d2d 0%, var(--flag-black) 100%);
    color: var(--flag-white);
    position: relative;
}

.events::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, transparent 0%, var(--flag-green) 100%);
    opacity: 0.05;
}

.events-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.event-featured {
    text-align: center;
    margin-bottom: 3rem;
}

.event-featured h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--flag-green);
}

.event-featured p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.event-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.event-type {
    background: rgba(255,255,255,0.08);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--flag-red);
    transition: all 0.3s;
}

.event-type:nth-child(2) {
    border-left-color: var(--flag-green);
}

.event-type:nth-child(3) {
    border-left-color: var(--flag-white);
}

.event-type:nth-child(4) {
    border-left-color: var(--flag-red);
}

.event-type:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-5px);
}

.event-type h4 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: var(--flag-white);
}

.event-type p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: var(--light-bg);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--flag-black);
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--flag-white);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border-left: 4px solid var(--flag-green);
    transition: transform 0.3s;
}

.info-item:hover {
    transform: translateX(8px);
}

.info-icon {
    font-size: 2.5rem;
    color: var(--flag-green);
}

.info-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--flag-black);
}

.info-content p {
    color: var(--text-gray);
    line-height: 1.7;
}

.contact-form-wrapper {
    background: var(--flag-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.contact-form-wrapper h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--flag-black);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--flag-black);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--flag-green);
}

.contact-form button {
    cursor: pointer;
    border: none;
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--flag-black) 0%, #2d2d2d 100%);
    color: var(--flag-white);
    padding: 4rem 0 1.5rem;
    border-top: 4px solid var(--flag-green);
}

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

.footer-section h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--flag-white);
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--flag-green);
}

.footer-tagline {
    color: var(--flag-green);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--flag-green);
}

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

.footer-bottom p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
}

.footer-note {
    color: var(--flag-green);
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}

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

/* Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--flag-green);
    outline-offset: 2px;
}
