/* تصميم الشبكة لعرض الفروع */
.branch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    direction: rtl; /* لضبط اتجاه النصوص للغة العربية */
}

/* تصميم البطاقة لكل فرع */
.branch-card {
    background: linear-gradient(135deg, #f9f9f9, #ffffff);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    text-align: right; /* لضبط النصوص للغة العربية */
    z-index: 0; /* تأكد من أن الأيقونات تظهر فوق البطاقة */
}

.branch-card::before {
    content: '';
    position: absolute;
    top: -75%;
    right: -75%;
    width: 200%;
    height: 200%;
    background: rgba(235, 130, 39, 0.15); /* اللون البرتقالي */
    transform: rotate(45deg);
    transition: all 0.3s;
}

.branch-card:hover::before {
    top: -50%;
    right: -50%;
    background: rgba(235, 130, 39, 0.3); /* تأثير عند التمرير */
}

.branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* تصميم العناوين والنص */
.branch-card h2 {
    font-size: 2em;
    color: #EB8227; /* اللون البرتقالي */
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    text-transform: uppercase; /* لجعل النص بأحرف كبيرة */
    font-weight: 700; /* تكبير الوزن لجعل النص أكثر وضوحاً */
    letter-spacing: 1px; /* إضافة بعض المسافة بين الحروف */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1); /* إضافة ظل خفيف */
    text-decoration: none; /* تأكد من عدم وجود خط */
}

.branch-card p {
    font-size: 1.2em;
    color: #333;
    position: relative;
    z-index: 1;
    margin-bottom: 10px;
    line-height: 1.5; /* لتحسين قابلية القراءة */
}

.branch-card p strong {
    color: #90B63D; /* اللون الأخضر */
}

/* تنسيق أيقونات وسائل التواصل الاجتماعي */
.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: #EB8227; /* اللون البرتقالي لفيسبوك وواتساب */
    margin-right: 10px;
    text-decoration: none; /* تأكد من إزالة الخط */
    transition: color 0.3s ease;
    position: relative;
    z-index: 1; /* تأكد من أن الأيقونات قابلة للنقر */
}

.social-icons i {
    font-size: 24px;
    pointer-events: none; /* تأكد من أن النقر يكون على الرابط وليس الأيقونة */
}

.social-icons a:hover {
    color: #90B63D; /* اللون الأخضر عند التمرير */
}

/* تحسين الرابط الخاص بعرض النشاطات */
.activities-link {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 15px;
    background-color: #EB8227;
    color: #fff;
    text-decoration: none; /* إزالة الخط تحت النص */
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 10; /* ضمان أن الرابط فوق جميع العناصر الأخرى */
    position: relative;
    text-align: center;
}

.activities-link:hover {
    background-color: #90B63D;
    color: #fff;  /* لضمان أن النص يبقى مرئيًا */
    text-decoration: none; /* إزالة أي تأثيرات غير مرغوبة */
}

/* تصميم متجاوب لأجهزة الهاتف */
@media (max-width: 768px) {
    .branch-card {
        padding: 15px;
    }

    .branch-card h2 {
        font-size: 1.5em;
    }

    .branch-card p {
        font-size: 1em;
    }
}

/* تأثير ظهور الأيقونات */
.social-icons a {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسين عرض قائمة النشاطات */
.branch-activities {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px; /* الفجوة بين البطاقات */
}

/* تحسين تصميم البطاقة لكل نشاط */
.branch-activities ul li {
    background: #fff;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    text-align: center; /* محاذاة النص */
}

.branch-activities ul li:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.branch-activities ul li a {
    color: #EB8227;
    font-size: 1.2em;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-bottom: 10px; /* مسافة أسفل العنوان */
    transition: color 0.3s ease;
}

.branch-activities ul li a:hover {
    color: #90B63D;
}

.activity-thumbnail {
    margin-bottom: 15px;
}

.activity-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 10px; /* لتدوير الصورة */
}

/* تحسين الأزرار */
.button-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #EB8227;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button-link:hover {
    background-color: #90B63D;
    text-decoration: none; /* إزالة الخط السفلي عند التمرير */
}

/* تصميم صفحة نبذة عن الفروع */
.branches-overview {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.branches-stats {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.stat-box {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #EB8227, #f39c12);
    border-radius: 8px;
    color: white;
    min-width: 200px;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1em;
}

.branches-map {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.map-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.branch-location {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-right: 4px solid #EB8227;
}

.branch-location h3 {
    color: #EB8227;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
    }
    
    .stat-box {
        width: 100%;
    }
}

/* تصميم جديد للفروع */
.modern-branches {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.branch-search {
    margin-bottom: 30px;
    text-align: center;
}

.branch-search input {
    width: 100%;
    max-width: 500px;
    padding: 15px 25px;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

.branch-search input:focus {
    border-color: #EB8227;
    box-shadow: 0 0 15px rgba(235, 130, 39, 0.2);
    outline: none;
}

.modern-branch-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 30px;
}

.modern-branch-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.branch-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.modern-branch-card:hover .branch-image img {
    transform: scale(1.1);
}

.branch-content {
    padding: 25px;
}

.branch-content h2 {
    color: #333;
    margin: 0 0 15px;
    font-size: 1.8em;
}

.branch-info {
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #666;
}

.info-item i {
    margin-left: 10px;
    color: #EB8227;
    width: 20px;
}

.branch-stats {
    display: flex;
    justify-content: space-around;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    margin: 15px 0;
}

.stat-item {
    text-align: center;
}

.stat-item .number {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    color: #EB8227;
}

.stat-item .label {
    color: #666;
    font-size: 0.9em;
}

.branch-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.social-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: transform 0.3s ease;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.whatsapp {
    background: #25D366;
}

.view-branch-btn {
    flex: 1;
    text-align: center;
    padding: 10px 20px;
    background: #EB8227;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.view-branch-btn:hover {
    background: #90B63D;
    color: white;
}

@media (min-width: 768px) {
    .branch-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 30px;
    }
}

/* تنسيق صفحة الفرع الواحد */
.branch-single-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.branch-header {
    text-align: center;
    margin-bottom: 40px;
}

.branch-title-section h1 {
    font-size: 2.5em;
    color: #EB8227;
    margin-bottom: 20px;
}

.branch-featured-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.branch-featured-image img {
    width: 100%;
    height: auto;
}

.branch-contact-info {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.info-item i {
    margin-left: 10px;
    color: #EB8227;
    width: 24px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.branch-content {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
    text-align: right;
}

/* تنسيق قسم النشاطات */
.branch-activities-section {
    margin-top: 40px;
}

.branch-activities-section h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.activity-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.activity-details {
    padding: 15px;
}

.activity-details h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.activity-details h3 a {
    color: #333;
    text-decoration: none;
}

.activity-date, .activity-type {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.activity-date i, .activity-type i {
    margin-left: 5px;
    color: #EB8227;
}

@media (max-width: 768px) {
    .activities-grid {
        grid-template-columns: 1fr;
    }
    
    .branch-title-section h1 {
        font-size: 2em;
    }
}

/* ...existing code... */

.view-activity-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #EB8227;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.view-activity-btn:hover {
    background: #90B63D;
    color: white;
}

.activity-excerpt {
    color: #666;
    margin: 10px 0;
    line-height: 1.5;
}

.no-activities {
    text-align: center;
    color: #666;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 20px;
}

/* ...existing code... */

/* تحسين عرض معلومات الفرع */
.branch-details-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .branch-details-container {
        grid-template-columns: 350px 1fr;
    }
}

.branch-contact-info {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.contact-header, .description-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.contact-header i, .description-header i {
    font-size: 1.5em;
    color: #EB8227;
    margin-left: 10px;
}

.contact-header h2, .description-header h2 {
    color: #333;
    font-size: 1.5em;
    margin: 0;
}

.contact-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.info-box {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: translateY(-3px);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: #EB8227;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.info-icon i {
    color: white;
    font-size: 1.2em;
}

.info-content {
    flex: 1;
}

.info-content label {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.info-content span {
    display: block;
    color: #333;
    font-size: 1.1em;
    font-weight: 500;
}

.social-links-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.social-links-container h3 {
    color: #333;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-btn span {
    margin-right: 8px;
}

.social-btn:hover {
    transform: translateY(-3px);
    color: white;
}

.branch-description {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.description-content {
    color: #444;
    line-height: 1.8;
}

/* تحسين التصميم المتجاوب */
@media (max-width: 768px) {
    .branch-details-container {
        padding: 15px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* ...existing code... */

/* تنسيق زر العودة للفروع */
.back-to-branches {
    margin-bottom: 30px;
    text-align: right;
}

.back-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    color: #333;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.back-link i {
    margin-left: 8px;
    font-size: 1.1em;
    color: #EB8227;
}

.back-link span {
    font-size: 1.1em;
}

.back-link:hover {
    background: #EB8227;
    color: white;
    transform: translateX(-5px);
}

.back-link:hover i {
    color: white;
}

/* ...existing code... */

/* تنسيق محتوى الفرع */
.branch-description {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.description-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
}

.extra-info {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px dashed #eee;
}

.branch-statistics {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.branch-statistics h3 {
    color: #EB8227;
    text-align: center;
    margin-bottom: 20px;
}

.stats-wrapper {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.stats-wrapper .stat-item {
    text-align: center;
    padding: 15px 25px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.stats-wrapper .stat-item i {
    font-size: 2em;
    color: #EB8227;
    margin-bottom: 10px;
}

.stats-wrapper .stat-number {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #333;
}

.stats-wrapper .stat-label {
    color: #666;
    font-size: 0.9em;
}

/* ...existing code... */

.latest-activity {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.latest-activity .activity-icon {
    font-size: 2em;
    color: #EB8227;
    margin-bottom: 15px;
}

.latest-activity h4 {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.latest-activity h4 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-activity h4 a:hover {
    color: #EB8227;
}

.latest-activity .activity-meta {
    color: #666;
    font-size: 0.9em;
}

.latest-activity .activity-meta i {
    margin-left: 5px;
    color: #90B63D;
}

.no-activity {
    color: #666;
    text-align: center;
    font-style: italic;
}

/* ...existing code... */

/* تحسين تصميم أزرار التواصل الاجتماعي */
.social-btn.facebook {
    background: linear-gradient(45deg, #1877f2, #0099ff);
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 140px;
}

.social-btn.facebook i {
    font-size: 1.2em;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-btn.facebook:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.3);
    background: linear-gradient(45deg, #0099ff, #1877f2);
}

.social-btn span {
    font-size: 1.1em;
}

/* ...existing code... */

/* تصميم صفحة النشاط الواحد */
.activity-single-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 20px;
}

.activity-header {
    text-align: center;
    margin-bottom: 40px;
}

.activity-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.4;
}

.activity-meta-banner {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0 auto 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    max-width: 600px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.meta-item i {
    color: #EB8227;
    font-size: 1.2em;
}

.activity-featured-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.activity-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.activity-content-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    text-align: right;
    line-height: 1.8;
    color: #444;
    font-size: 1.1em;
}

/* ...existing code... */

/* تصميم صفحة النشاط الواحد */
.activity-single-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.back-to-branch {
    margin-bottom: 30px;
}

.activity-title {
    font-size: 2.5em;
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.4;
}

.activity-meta-banner {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.activity-meta-banner .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
}

.activity-meta-banner i {
    color: #EB8227;
    font-size: 1.2em;
}

.activity-meta-banner a {
    color: #EB8227;
    text-decoration: none;
    transition: color 0.3s ease;
}

.activity-meta-banner a:hover {
    color: #90B63D;
}

.activity-featured-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.activity-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.activity-content-wrapper {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.activity-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    text-align: right;
}

.activity-social-share {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px dashed #eee;
    text-align: center;
}

.activity-social-share h3 {
    color: #333;
    font-size: 1.3em;
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.share-btn i {
    margin-left: 8px;
    font-size: 1.2em;
}

.share-btn.facebook {
    background: linear-gradient(45deg, #1877f2, #0099ff);
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.2);
}

.share-btn.whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.share-btn:hover {
    transform: translateY(-3px);
    color: white;
}

@media (max-width: 768px) {
    .activity-meta-banner {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .activity-title {
        font-size: 2em;
    }

    .activity-content-wrapper {
        padding: 20px;
    }

    .share-buttons {
        flex-direction: column;
    }
}

/* ...existing code... */

/* ...existing code... */

/* ...existing code... */

/* تصميم قسم آخر الأنشطة */
.latest-activities-section {
    padding: 40px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    color: #333;
    font-size: 2.2em;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, #EB8227, #90B63D);
    border-radius: 2px;
}

.latest-activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.latest-activity-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.latest-activity-card:hover {
    transform: translateY(-10px);
}

.latest-activity-card .activity-image {
    height: 200px;
    overflow: hidden;
}

.latest-activity-card .activity-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.latest-activity-card:hover .activity-image img {
    transform: scale(1.1);
}

.latest-activity-card .activity-content {
    padding: 20px;
    position: relative;
}

.activity-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: #EB8227;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.latest-activity-card h3 {
    margin: 10px 0;
    font-size: 1.3em;
    line-height: 1.4;
}

.latest-activity-card h3 a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-activity-card h3 a:hover {
    color: #EB8227;
}

.latest-activity-card .activity-meta {
    display: flex;
    gap: 15px;
    color: #666;
    font-size: 0.9em;
    margin: 10px 0;
}

.latest-activity-card .activity-meta span {
    display: flex;
    align-items: center;
}

.latest-activity-card .activity-meta i {
    color: #EB8227;
    margin-left: 5px;
}

.latest-activity-card .activity-excerpt {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin-top: 10px;
}

.view-all-activities {
    text-align: center;
    margin-top: 40px;
}

.view-all-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #EB8227, #f39c12);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(235, 130, 39, 0.2);
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(235, 130, 39, 0.3);
    color: white;
}

@media (max-width: 768px) {
    .latest-activities-grid {
        grid-template-columns: 1fr;
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.8em;
    }
}

/* ...existing code... */

/* تصميم صفحة أرشيف النشاطات */
.activities-archive-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 15px;
}

.archive-description {
    color: #666;
    font-size: 1.1em;
}

.activities-filters {
    margin-bottom: 40px;
}

.search-activities {
    position: relative;
    margin-bottom: 30px;
}

.search-activities input[type="text"] {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.search-activities i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    background: #f8f9fa;
    color: #666;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #EB8227;
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: #EB8227;
    color: white;
    box-shadow: 0 4px 15px rgba(235, 130, 39, 0.2);
}

.pagination {
    margin-top: 40px;
    text-align: center;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0 5px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination .page-numbers.current {
    background: #EB8227;
    color: white;
}

.pagination .page-numbers:hover:not(.current) {
    background: #90B63D;
    color: white;
    transform: translateY(-2px);
}

.no-activities {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border-radius: 15px;
    color: #666;
}

.no-activities i {
    font-size: 3em;
    color: #EB8227;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2em;
    }
    
    .filter-buttons {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}

/* ...existing code... */

.activity-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 30px 0;
    padding: 0;
    list-style: none;
}

.activity-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.activity-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.activity-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.activity-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-gallery-item:hover img {
    transform: scale(1.1);
}

/* تحسين تجربة Lightbox */
.lb-outerContainer {
    border-radius: 10px;
    background-color: transparent;
}

.lb-image {
    border-radius: 8px;
    border: none !important;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

.lb-data .lb-caption {
    font-family: inherit;
    font-size: 1.1em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.lb-data .lb-number {
    font-family: inherit;
    color: rgba(255,255,255,0.8);
}

/* تحسين العرض على الأجهزة المحمولة */
@media (max-width: 768px) {
    .activity-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
}

/* تحسين عرض الصورة الرئيسية للنشاط */
.activity-featured-image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    aspect-ratio: 16/9;
}

.activity-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-featured-image:hover img {
    transform: scale(1.05);
}

/* عنوان معرض الصور */
.activity-gallery-title {
    text-align: center;
    margin: 40px 0 20px;
    color: #333;
    font-size: 1.8em;
    position: relative;
    padding-bottom: 15px;
}

.activity-gallery-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #EB8227, #90B63D);
    border-radius: 2px;
}

/* رسالة عند عدم وجود صور */
.no-gallery-images {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
    margin: 20px 0;
}

.no-gallery-images i {
    font-size: 2em;
    color: #EB8227;
    margin-bottom: 10px;
    display: block;
}

/* تحسين عرض معرض الصور */
.activity-gallery-section {
    margin: 40px 0;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.activity-gallery-title {
    text-align: center;
    color: #333;
    font-size: 1.8em;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.activity-gallery-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #EB8227, #90B63D);
    border-radius: 2px;
}

.activity-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px;
}

.activity-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1;
}

.activity-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.activity-gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.activity-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.activity-gallery-item:hover img {
    transform: scale(1.1);
}

/* تحسين Lightbox */
.lb-outerContainer {
    border-radius: 10px;
    background-color: transparent !important;
}

.lb-image {
    border-radius: 8px;
    border: none !important;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.8;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}

.lb-data .lb-caption {
    font-family: inherit;
    font-size: 1.1em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}

.lb-data .lb-number {
    font-family: inherit;
    color: rgba(255,255,255,0.8);
}

/* تحسين العرض على الأجهزة المحمولة */
@media (max-width: 768px) {
    .activity-gallery {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
    }
    
    .activity-gallery-title {
        font-size: 1.5em;
    }
}

/* رسالة عند عدم وجود صور */
.no-gallery-images {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 10px;
    color: #666;
    margin: 20px 0;
}

.no-gallery-images i {
    font-size: 2em;
    color: #EB8227;
    margin-bottom: 10px;
    display: block;
}

/* ... existing code ... */
