/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #FAF6F1 0%, #F5EFE7 100%);
    color: #3E2723;
    line-height: 1.6;
}

/* Header & Navigation */
header {
    background: rgba(250, 246, 241, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid #c4b056;
}

.navbar {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    background: transparent;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-text-wrapper {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.8em;
    font-weight: 700;
    background: linear-gradient(135deg, #c4b056 0%, #8D6E63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-slogan {
    font-size: 0.85em;
    color: #6D4C41;
    font-style: italic;
    font-weight: 500;
}

/* Projects Section - Now uses same grid style as News */
.projects-section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.project-card-grid {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-card-grid:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 176, 86, 0.3);
}

.project-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-card-content {
    padding: 20px;
}

.project-card-date {
    font-size: 0.9em;
    color: #8D6E63;
    margin-bottom: 10px;
    font-weight: 500;
}

.project-card-content h3 {
    font-size: 1.25em;
    margin-bottom: 10px;
    color: #3E2723;
    line-height: 1.4;
}

.project-card-content p {
    color: #6D4C41;
    line-height: 1.6;
    font-size: 0.95em;
}

/* Media Grid */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.media-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.media-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.media-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 176, 86, 0.3);
}

.video-container {
    position: relative;
    width: 100%;
    background: #000;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    max-height: 300px;
}

.media-content {
    padding: 20px;
}

.media-content h3 {
    font-size: 1.4em;
    margin-bottom: 12px;
    color: #3E2723;
}

.media-content p {
    color: #6D4C41;
    line-height: 1.7;
    font-size: 1em;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 176, 86, 0.3);
}

.project-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.project-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #c4b056 0%, #8D6E63 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: white;
}

.project-content {
    padding: 20px;
}

.project-date {
    font-size: 0.9em;
    color: #8D6E63;
    margin-bottom: 10px;
    font-weight: 500;
}

.project-content h3 {
    font-size: 1.25em;
    margin-bottom: 10px;
    color: #3E2723;
    line-height: 1.4;
}

.project-content p {
    color: #6D4C41;
    line-height: 1.6;
    font-size: 0.95em;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 176, 86, 0.3);
}

.news-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.news-img {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #c4b056 0%, #8D6E63 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4em;
    color: white;
}

.news-content {
    padding: 20px;
}

.news-date {
    font-size: 0.9em;
    color: #8D6E63;
    margin-bottom: 10px;
    font-weight: 500;
}

.news-content h3 {
    font-size: 1.25em;
    margin-bottom: 10px;
    color: #3E2723;
    line-height: 1.4;
}

.news-content p {
    color: #6D4C41;
    line-height: 1.6;
    font-size: 0.95em;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8em;
    color: #c4b056;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #3E2723;
    font-weight: 600;
    font-size: 1.05em;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #c4b056, #8D6E63);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 80%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #c4b056;
}

/* Hero Section */
.hero {
    padding: 100px 40px;
    text-align: center;
    background: linear-gradient(180deg, #F5EFE7 0%, #E8DACC 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(196, 176, 86, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 25px;
    background: linear-gradient(135deg, #c4b056 0%, #8D6E63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
}

.hero p {
    font-size: 1.4em;
    margin-bottom: 40px;
    color: #6D4C41;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 18px 45px;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: rgba(196, 176, 86, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid #c4b056;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #c4b056 0%, #d4af37 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(196, 176, 86, 0.4);
}

/* Section Styles */
.section {
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 40px;
}

.section-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #c4b056 0%, #8D6E63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #6D4C41;
    margin-bottom: 50px;
}

/* About Cards */
.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.about-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 2px solid rgba(196, 176, 86, 0.2);
    text-align: center;
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 176, 86, 0.3);
}

.about-card h3 {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #c4b056;
}

.about-card p {
    color: #6D4C41;
    line-height: 1.8;
}

/* Committees Grid - موحد لكل اللجان السبعة */
.committees-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.committee-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(245, 239, 231, 0.9) 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid rgba(196, 176, 86, 0.3);
    text-align: center;
}

.committee-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 45px rgba(196, 176, 86, 0.3);
}

.committee-icon {
    font-size: 3em;
    color: #c4b056;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.committee-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #3E2723;
}

.committee-card p {
    color: #6D4C41;
    line-height: 1.7;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(196, 176, 86, 0.3);
}

.contact-icon {
    font-size: 3em;
    color: #c4b056;
    margin-bottom: 20px;
}

.contact-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #3E2723;
}

.contact-card a {
    color: #6D4C41;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
    direction: ltr;
    display: inline-block;
}

.contact-card a:hover {
    color: #c4b056;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #3E2723 0%, #6D4C41 100%);
    color: white;
    padding: 60px 40px 30px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #c4b056;
    margin-bottom: 20px;
    font-size: 1.4em;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #c4b056;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(196, 176, 86, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3em;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #c4b056;
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
    100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Form Modal */
.form-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.form-modal.active {
    display: flex;
}

.form-container {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #c4b056;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: #8D6E63;
    transform: rotate(90deg);
}

.form-iframe {
    width: 100%;
    height: 600px;
    border: none;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        margin-top: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.2em;
    }

    .hero p {
        font-size: 1.1em;
    }

    .section-title {
        font-size: 2em;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

    .logo-text {
        font-size: 1.2em;
    }

    .logo-slogan {
        font-size: 0.75em;
    }

    .navbar {
        padding: 15px 20px;
    }

    .section {
        padding: 0 20px;
    }

    .committees-grid {
        grid-template-columns: 1fr;
    }

    .form-iframe {
        height: 500px;
    }
    
    .full-width-image {
        height: 180px; /* Even smaller on mobile */
    }
    
    .full-width-content {
        padding: 25px 30px; /* Reduced padding on mobile */
    }
    
    .full-width-content h3 {
        font-size: 1.3em; /* Smaller title on mobile */
    }
}