/* ========================================
   ICOM Palestine - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    /* Palette chaude et élégante - inspirée du patrimoine */
    --primary-dark: #1c1917;
    --primary: #292524;
    --primary-light: #44403c;
    --primary-lighter: #57534e;
    --secondary: #166534;
    --accent: #b45309;
    --accent-light: #d97706;
    --accent-dark: #92400e;
    --gold: #b8860b;
    --olive: #4d7c0f;
    --terracotta: #c2410c;
    --sand: #fef3c7;
    --off-white: #faf9f7;
    --white: #ffffff;
    --black: #0c0a09;
    --gray-50: #fafaf9;
    --gray-100: #f5f5f4;
    --gray-200: #e7e5e4;
    --gray-300: #d6d3d1;
    --gray-400: #a8a29e;
    --gray-500: #78716c;
    --gray-600: #57534e;
    --gray-700: #44403c;
    --gray-800: #292524;
    --gray-900: #1c1917;
    --gray-dark: #44403c;
    --gray-medium: #78716c;
    --gray-light: #e7e5e4;
    --success: #16a34a;
    --error: #dc2626;
    --font-primary: 'Cormorant Garamond', serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-heading: 'Cormorant Garamond', serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 2px;
    --radius-lg: 4px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-dark);
}

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

ul {
    list-style: none;
}

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

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

h1 { font-size: 3.5rem; letter-spacing: 0.02em; }
h2 { font-size: 2.8rem; letter-spacing: 0.01em; font-weight: 500; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; }

.lead {
    font-size: 1.25rem;
    color: var(--gray-dark);
    font-weight: 300;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

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

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

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}

.btn-white:hover {
    background: var(--sand);
    border-color: var(--sand);
    color: var(--accent-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Flag Strip Decoration */
.flag-strip {
    height: 6px;
    width: 100%;
    display: flex;
}
.flag-color { flex: 1; height: 100%; }
.bg-pal-black { background-color: #000000; }
.bg-pal-red { background-color: #EE2A35; }
.bg-pal-green { background-color: #009736; }
.bg-pal-white { background-color: #FFFFFF; border: 1px solid #eee; border-top: 0; border-bottom: 0;}

/* Header */
.main-header {
    background: var(--white);
    padding: 20px 0;
    position: sticky;
    top: -6px; /* Adjust for flag strip */
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--primary);
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1;
}

.logo-subtitle-ar {
    font-size: 0.8rem;
    color: var(--accent);
    direction: rtl;
}

.nav-list {
    display: flex;
    gap: 5px;
}

.nav-list a {
    color: var(--primary);
    padding: 10px 18px;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--accent);
}

.nav-list a.active::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 18px;
    right: 18px;
    height: 2px;
    background-color: var(--accent);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-color: var(--black);
    background-image: linear-gradient(rgba(28,25,23,0.65), rgba(28,25,23,0.75)), url('https://images.unsplash.com/photo-1544966503-7cc5ac882d5f?w=1920&q=80');
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.hero::before {
    display: none;
}

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

.hero h1 {
    font-size: 5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1;
    font-family: var(--font-heading);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-body);
}

.hero-arabic {
    font-family: 'Amiri', serif;
    font-size: 1.6rem;
    color: var(--accent-light);
    direction: rtl;
    margin-bottom: 50px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 120px 20px 100px;
    text-align: center;
    color: var(--white);
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--secondary));
}

.page-hero h1 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 3.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--accent-light);
    font-family: var(--font-heading);
    font-style: italic;
    letter-spacing: 0.02em;
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    color: var(--primary);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    margin: 20px auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-dark);
    margin-top: -30px;
    margin-bottom: 50px;
    font-family: var(--font-heading);
    font-style: italic;
}

.bg-light {
    background-color: var(--off-white);
}

.bg-primary {
    background-color: var(--primary);
    color: var(--white); /* Black bg, white text */
}

.bg-primary h2 {
    color: var(--white);
}

.bg-primary .section-title::after {
    background: var(--secondary); /* Green underline on black bg */
}

/* Intro Section */
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.intro-text h2 {
    margin-bottom: 20px;
}

.intro-text p {
    margin-bottom: 15px;
}

.intro-text .btn {
    margin-top: 20px;
}

.image-placeholder {
    background-color: var(--gray-light);
    border-radius: var(--radius);
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray-medium);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.image-placeholder.large {
    height: 400px;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 45px 35px;
    border: none;
    border-radius: var(--radius);
    text-align: left;
    transition: var(--transition);
    box-shadow: 0 2px 15px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.feature-icon {
    width: 65px;
    height: 65px;
    background-color: var(--sand);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background-color: var(--accent);
    color: var(--white);
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.6rem;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1590076215667-875d4ef2d7de?w=1920&q=80') center/cover;
    opacity: 0.1;
}

.cta-content {
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.cta-content p {
    margin-bottom: 30px;
    opacity: 0.9;
    color: var(--gray-300);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* News Preview */
.news-card-single {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    box-shadow: var(--shadow-md);
    max-width: 800px;
    margin: 0 auto 40px;
    border-left: 5px solid var(--accent);
}

.news-date {
    background-color: var(--off-white);
    color: var(--black);
    padding: 15px 25px;
    border: 1px solid var(--gray-200);
    text-align: center;
    min-width: 80px;
}

.news-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary); /* Green for date */
    line-height: 1;
}

.news-info h3 {
    margin-bottom: 10px;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 500;
    margin-top: 10px;
}

.link-arrow:hover {
    gap: 12px;
}

/* About Page */
.about-block {
    margin-bottom: 60px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text p {
    margin-bottom: 20px;
}

.mission-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.mission-icon {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    color: var(--accent);
    box-shadow: var(--shadow);
}

.mission-icon i {
    font-size: 2.5rem;
}

.mission-text p {
    margin-bottom: 20px;
}

.mission-list {
    margin-top: 20px;
}

.mission-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.mission-list i {
    color: var(--accent);
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 30px;
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: var(--off-white);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.value-icon i {
    font-size: 2rem;
}

.value-card h3 {
    margin-bottom: 10px;
}

/* Membership Page */
.membership-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.members-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.members-grid.large {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
}

.member-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    display: block;
    color: inherit;
}

.member-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    color: inherit;
}

.member-card.no-link {
    cursor: default;
}

.member-card.no-link:hover {
    transform: none;
}

.member-image {
    height: 150px;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.member-image i {
    font-size: 3rem;
    color: var(--gray-medium);
}

.member-info {
    padding: 20px;
    text-align: center;
}

.member-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
}

.member-link {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Join Steps */
.join-steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 60px;
    bottom: -20px;
    width: 2px;
    background: var(--gray-light);
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--secondary); /* Green steps */
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 10px;
}

.step-content ul {
    margin-top: 15px;
    padding-left: 20px;
}

.step-content li {
    list-style: disc;
    margin-bottom: 8px;
}

.download-buttons {
    display: flex;
    gap: 15px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.fees-grid {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.fee-card {
    background: var(--white);
    padding: 20px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.fee-type {
    display: block;
    color: var(--gray-500);
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.fee-amount {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.important-notice {
    background-color: var(--off-white);
    border-left: 4px solid var(--accent);
    color: var(--primary);
    padding: 25px 30px;
    border-radius: var(--radius);
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.important-notice i {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

/* News Page */
.events-list {
    max-width: 800px;
    margin: 0 auto;
}

.event-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    gap: 30px;
    border: 1px solid var(--gray-200);
    margin-bottom: 20px;
}

.event-card.featured {
    border-left: 4px solid var(--accent);
}

.event-date {
    background-color: var(--black);
    color: var(--white);
    padding: 15px;
    border-radius: var(--radius);
    text-align: center;
    min-width: 80px;
    height: fit-content;
}

.event-date .year {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
}

.event-content {
    flex: 1;
}

.event-badge {
    display: inline-block;
    background: var(--secondary); /* Green badge */
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.event-content h3 {
    margin-bottom: 10px;
}

.event-note {
    color: var(--gray-dark);
    font-style: italic;
    margin-top: 15px;
}

.event-note i {
    margin-right: 5px;
}

.no-more-events {
    text-align: center;
    padding: 60px;
    color: var(--gray-medium);
}

.no-more-events i {
    font-size: 3rem;
    margin-bottom: 15px;
}

/* Photo Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 1;
    box-shadow: var(--shadow-md);
}

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

.gallery-item:hover img {
    transform: scale(1.08);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-placeholder {
    background: var(--white);
    border-radius: var(--radius);
    padding: 80px;
    text-align: center;
    color: var(--gray-medium);
    border: 1px dashed var(--gray-300);
}

.gallery-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.gallery-placeholder p {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--gray-600);
}

.newsletter-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--black);
    color: var(--white);
    padding: 40px;
    border-radius: var(--radius);
}

.newsletter-text h2 {
    margin-bottom: 10px;
}

/* Resources Page */
.resources-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.resource-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    border: 1px solid var(--gray-200);
    display: flex;
    gap: 30px;
}

.resource-icon {
    width: 60px;
    height: 60px;
    background-color: var(--off-white);
    color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.resource-icon i {
    font-size: 1.8rem;
}

.resource-content h3 {
    margin-bottom: 15px;
}

.resource-meta {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin: 15px 0;
}

.resource-meta i {
    margin-right: 5px;
    color: var(--error);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.link-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    gap: 20px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    color: inherit;
}

.link-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    color: inherit;
}

.link-icon {
    width: 50px;
    height: 50px;
    background-color: var(--off-white);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.link-icon i {
    font-size: 1.2rem;
    color: var(--accent);
}

.link-content h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.external-link {
    color: var(--accent);
    font-size: 0.9rem;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2,
.contact-form-wrapper h2 {
    margin-bottom: 20px;
}

.contact-details {
    margin: 30px 0;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1rem;
    color: var(--white);
}

.contact-text h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-text p,
.contact-text a {
    color: var(--gray-dark);
}

.map-container {
    margin-top: 30px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Form */
.contact-form {
    background: var(--off-white);
    padding: 40px;
    border-radius: var(--radius);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
}

.required {
    color: var(--error);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(197, 160, 89, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.alert-success {
    background: #ecfdf5;
    color: var(--success);
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: var(--error);
    border: 1px solid #fecaca;
}

.alert i {
    font-size: 1.5rem;
}

/* Footer */
.main-footer {
    background: var(--primary); /* Black */
    color: var(--gray-medium);
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

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

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

.arabic-text {
    direction: rtl;
    font-size: 0.9rem;
}

.footer-section ul li {
    margin-bottom: 10px;
    color: var(--white);
}

.newsletter-text p {
    color: var(--gray-300);
}

.footer-section ul a {
    color: var(--gray-medium);
}

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

.footer-section i {
    margin-right: 10px;
    color: var(--secondary); /* Green icons in footer */
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray-dark);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 30px;
    padding: 20px;
    cursor: pointer;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Responsive */
@media (max-width: 1024px) {
    .features-grid,
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .members-grid.large {
        grid-template-columns: repeat(2, 1fr);
    }

    .resources-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-list.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .intro-grid,
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .values-grid,
    .members-grid,
    .members-grid.large {
        grid-template-columns: 1fr;
    }

    .mission-content {
        flex-direction: column;
    }

    .step {
        flex-direction: column;
        gap: 15px;
    }

    .step::after {
        display: none;
    }

    .fees-grid {
        flex-direction: column;
    }

    .event-card {
        flex-direction: column;
    }

    .resource-card {
        flex-direction: column;
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .news-card-single {
        flex-direction: column;
    }

    .logo-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .section {
        padding: 50px 0;
    }

    .page-hero {
        padding: 50px 15px;
    }

    .contact-form {
        padding: 25px;
    }

    .download-buttons {
        flex-direction: column;
    }

    .important-notice {
        flex-direction: column;
        text-align: center;
    }
}

/* Image Grid for Home */
.image-grid-section {
    padding-bottom: 50px;
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.grid-img-item {
    height: 250px;
    overflow: hidden;
    border-radius: var(--radius);
}
.grid-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.grid-img-item:hover img {
    transform: scale(1.05);
}
