﻿* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Cairo', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ec 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* الهيدر */
header {
    background: linear-gradient(135deg, #1c2a3a 0%, #0d1a29 100%);
    color: white;
    text-align: center;
    padding: 15px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.header-content {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

header img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

header h2 {
    font-size: 1.8rem;
    margin: 10px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* القائمة */
nav {
    background: linear-gradient(135deg, #1c2a3a 0%, #0d1a29 100%);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
}

    nav a {
        color: white;
        text-decoration: none;
        padding: 15px 20px;
        font-weight: bold;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        z-index: 2;
        white-space: nowrap;
    }

        nav a:hover {
            background-color: #2c3e50;
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            right: 0;
            width: 0;
            height: 3px;
            background: #4a9fe3;
            transition: width 0.3s ease;
        }

        nav a:hover::after {
            width: 100%;
            left: 0;
        }

        nav a i {
            font-size: 1.2rem;
        }

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: linear-gradient(135deg, #1c2a3a 0%, #0d1a29 100%);
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    padding: 12px 20px;
    display: block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .dropdown-content a:last-child {
        border-bottom: none;
    }

    .dropdown-content a:hover {
        background-color: #2c3e50;
        padding-right: 25px;
    }

    .dropdown-content a i {
        font-size: 1rem;
        min-width: 20px;
        text-align: center;
    }

/* محتوى صفحة النشاطات */
.activities-page {
    padding: 40px 20px;
    min-height: calc(100vh - 120px);
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.page-title {
    text-align: center;
    color: #1c2a3a;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid #4a9fe3;
    font-size: 2rem;
}

/* أزرار الفلترة */
.filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    padding: 15px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.filter-btn {
    padding: 10px 25px;
    background-color: #e9ecef;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    color: #495057;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .filter-btn:hover {
        background-color: #d0e5ff;
    }

    .filter-btn.active {
        background-color: #4a9fe3;
        color: white;
    }

/* بطاقات النشاطات */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.activity-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
    position: relative;
}

    .activity-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(to right, #4a9fe3, #1c2a3a);
        border-radius: 12px 12px 0 0;
    }

    .activity-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }

.activity-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.activity-content {
    padding: 20px;
}

.activity-type {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.visit-type {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.meeting-type {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.workshop-type {
    background-color: #fff3e0;
    color: #ef6c00;
}

.activity-title {
    color: #1c2a3a;
    margin: 10px 0;
    font-size: 1.4rem;
}

.activity-date {
    color: #6c757d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-description {
    color: #444;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    padding: 8px 20px;
    background: #4a9fe3;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid #3a8fd3;
}

    .read-more:hover {
        background: #3a8fd3;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(74, 159, 227, 0.3);
    }

.no-results {
    text-align: center;
    font-size: 1.2rem;
    color: #6c757d;
    margin: 40px 0;
    grid-column: 1 / -1;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* الفوتر */
footer {
    background: #1c2a3a;
    color: #fff;
    text-align: center;
    padding: 25px 0;
    margin-top: auto;
    font-size: 1rem;
    position: relative;
    width: 100%;
}

    footer::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(to right, #4a9fe3, #1c2a3a);
    }

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 15px 0;
}

    .footer-links a {
        color: #a0d0ff;
        text-decoration: none;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .footer-links a:hover {
            color: #fff;
            text-decoration: underline;
        }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

    .social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: white;
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

        .social-icons a:hover {
            background: #4a9fe3;
            transform: translateY(-3px);
        }

/* التكيف مع الشاشات الصغيرة */
@media (max-width: 992px) {
    .activities-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .page-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 1.6rem;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 1rem;
    }

    header h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 1.4rem;
    }

    .filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

        nav a {
            width: 100%;
            text-align: center;
        }
}

</style >
