/* ==========================================================================
   نادي الصقور للتنمية - ملف التنسيقات الموحد للصفحة الرئيسية
   ========================================================================== */

/* جدول المحتويات
   1. المتغيرات العامة
   2. التنسيقات الأساسية
   3. تنسيقات البريدكرمب
   4. السلايدر الرئيسي (الكاروسيل)
   5. قسم من نحن
   6. قسم الخدمات
   7. قسم الأخبار
   8. قسم الإعلانات
   9. قسم المشروعات
   10. قسم الرحلات الداخلية
   11. قسم التنويه
   12. قسم مجلس الإدارة
   13. تنسيقات الاستجابة للشاشات المختلفة
   ========================================================================== */

/* ==========================================================================
   1. المتغيرات العامة
   ========================================================================== */
:root {
    /* الألوان الرئيسية */
    --primary-color: #0a2463;
    --secondary-color: #d00000;
    --accent-color: #3e92cc;
    
    /* ألوان القطاعات */
    --ads-color: #d00000;
    --projects-color: #0077b6;
    --trips-color: #38b000;
    --services-color: #ff9500;
    --news-color: #7209b7;
    
    /* ألوان الخلفيات */
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --dark-bg: #212529;
    --gradient-bg: linear-gradient(135deg, var(--primary-color) 0%, #1e3a8a 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-color) 0%, #90e0ef 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, #e85d04 100%);
    
    /* ألوان النصوص */
    --text-color: #333333;
    --light-text: #f8f9fa;
    --dark-text: #212529;
    --muted-text: #6c757d;
    
    /* الظلال والتأثيرات */
    --shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    --card-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    --inset-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    --primary-shadow: 0 10px 25px rgba(10, 36, 99, 0.2);
    --secondary-shadow: 0 10px 25px rgba(208, 0, 0, 0.2);
    --services-shadow: 0 10px 25px rgba(255, 149, 0, 0.2);
    
    /* الزوايا والحدود */
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --border-radius-circle: 50%;
    
    /* التحولات والتأثيرات الحركية */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;
    --transition-bounce: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* المسافات والحشوات */
    --section-padding: 6rem 0;
    --section-padding-sm: 4rem 0;
    --card-padding: 2rem;
    --card-padding-sm: 1.5rem;
}

/* ==========================================================================
   2. التنسيقات العامة
   ========================================================================== */
body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--secondary-color);
}

/* ==========================================================================
   3. تنسيقات البريدكرمب
   ========================================================================== */
.breadcrumb-container {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 30px;
    margin-top: 15px;
}

.breadcrumb {
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

.breadcrumb-item.active {
    color: var(--secondary-color);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* تنسيق الأقسام */
.section-padding {
    padding: var(--section-padding);
}

/* رأس الأقسام المتطور */
.section-header {
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-header h2 {
    color: var(--primary-color);
    font-weight: 800;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 2.8rem;
    z-index: 1;
}

.section-header h2::before {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-circle);
    background-color: rgba(62, 146, 204, 0.1);
    right: -15px;
    top: -15px;
    z-index: -1;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: var(--border-radius-sm);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
}

/* تأثيرات الحركة */
.animate-down { animation: animate-down 1s; }
.animate-right { animation: animate-right 1s; }

@keyframes animate-down {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes animate-right {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   3. السلايدر الرئيسي (الكاروسيل)
   ========================================================================== */
#mainCarousel {
    width: 100% !important;
    height: 80vh !important;
    overflow: hidden !important;
}

#mainCarousel .carousel-inner,
#mainCarousel .carousel-item {
    height: 100% !important;
}

#mainCarousel .carousel-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

#mainCarousel .carousel-caption {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    bottom: auto !important;
    right: auto !important;
    text-align: center !important;
    width: 80% !important;
    max-width: 800px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    padding: 2rem !important;
    border-radius: 10px !important;
    backdrop-filter: blur(5px) !important;
}

#mainCarousel .carousel-control-prev {
    left: 0;
    right: auto;
}

#mainCarousel .carousel-control-next {
    right: 0;
    left: auto;
}

/* ==========================================================================
   4. قسم من نحن
   ========================================================================== */
.about-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.about-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: var(--border-radius-circle);
    background: rgba(62, 146, 204, 0.05);
    top: -100px;
    right: -100px;
    z-index: 0;
}

.about-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius-circle);
    background: rgba(208, 0, 0, 0.05);
    bottom: -80px;
    left: -80px;
    z-index: 0;
}

.about-content {
    position: relative;
    z-index: 1;
}

.about-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow);
    transform: rotate(-3deg);
    transition: var(--transition-medium);
    margin: 20px 0;
    z-index: 1;
}

.about-image-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px dashed rgba(62, 146, 204, 0.3);
    border-radius: var(--border-radius-lg);
    top: 15px;
    left: 15px;
    z-index: -1;
}

.about-image-wrapper:hover {
    transform: rotate(0deg) translateY(-10px);
    box-shadow: var(--primary-shadow);
}

.about-text {
    position: relative;
    z-index: 1;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.8rem;
    font-weight: 700;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.about-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-medium);
}

.about-text:hover h3::after {
    width: 100px;
    background: var(--gradient-accent);
}

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

.about-text .highlight {
    color: var(--accent-color);
    font-weight: 600;
}

.about-text .btn-about {
    display: inline-block;
    padding: 0.8rem 2.5rem;
    background: var(--gradient-accent);
    color: white;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    margin-top: 1rem;
    transition: var(--transition-bounce);
    box-shadow: var(--primary-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.about-text .btn-about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
    z-index: -1;
}

.about-text .btn-about:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(62, 146, 204, 0.3);
}

.about-text .btn-about:hover::before {
    width: 100%;
}

.about-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 350px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 36, 99, 0) 70%, rgba(10, 36, 99, 0.5) 100%);
    z-index: 1;
    opacity: 0;
    transition: var(--transition-medium);
}

.about-image:hover::before {
    opacity: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.about-image:hover img {
    transform: scale(1.1);
}

.about-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--card-shadow);
    z-index: 2;
    transform: rotate(5deg);
    transition: var(--transition-bounce);
}

.about-image:hover .about-badge {
    background: var(--primary-color);
    color: white;
    transform: rotate(0deg) scale(1.1);
}

/* ==========================================================================
   10. قسم التنويه
   ========================================================================== */
.services-note {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.05) 0%, rgba(255, 149, 0, 0.15) 100%);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    margin-top: 4rem;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    border-right: 4px solid var(--services-color);
    transition: var(--transition-medium);
}

.services-note::before {
    content: '\f0a1';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    color: rgba(255, 149, 0, 0.05);
    z-index: 0;
    line-height: 1;
}

.services-note:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.services-note h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.services-note h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--services-color);
    border-radius: var(--border-radius-sm);
}

.services-note p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.services-note .btn-note {
    display: inline-block;
    padding: 10px 25px;
    background: var(--services-color);
    color: white;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: var(--transition-fast);
    box-shadow: 0 5px 15px rgba(255, 149, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.services-note .btn-note::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
    z-index: -1;
}

.services-note .btn-note:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 149, 0, 0.3);
    color: white;
}

.services-note .btn-note:hover::before {
    width: 100%;
}

/* ==========================================================================
   11. قسم مجلس الإدارة
   ========================================================================== */
.board-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.board-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: var(--border-radius-circle);
    background: rgba(10, 36, 99, 0.03);
    bottom: -200px;
    left: -200px;
    z-index: 0;
}

.board-section .section-header h2::before {
    background-color: rgba(10, 36, 99, 0.1);
}

.board-member {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
    transition: var(--transition-medium);
}

.board-member:hover {
    transform: translateY(-10px);
}

.board-image-container {
    width: 180px;
    height: 180px;
    border-radius: var(--border-radius-circle);
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 5px solid rgba(10, 36, 99, 0.1);
    transition: var(--transition-medium);
    position: relative;
    box-shadow: var(--card-shadow);
}

.board-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 36, 99, 0) 70%, rgba(10, 36, 99, 0.7) 100%);
    z-index: 1;
    opacity: 0;
    transition: var(--transition-medium);
}

.board-member:hover .board-image-container {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(10, 36, 99, 0.2);
}

.board-member:hover .board-image-container::before {
    opacity: 0.7;
}

.board-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.board-member:hover .board-image-container img {
    transform: scale(1.1);
}

.board-social {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-medium);
}

.board-member:hover .board-social {
    opacity: 1;
    transform: translateY(0);
}

.board-social a {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-fast);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.board-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.board-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: var(--transition-fast);
}

.board-member:hover .board-name {
    color: var(--accent-color);
}

.board-title {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.board-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: var(--border-radius-sm);
}

.board-bio {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 300px;
    margin: 0 auto;
}

/* ==========================================================================
   12. تنسيقات الاستجابة للشاشات المختلفة
   ========================================================================== */
@media (max-width: 1199.98px) {
    :root {
        --section-padding: 5rem 0;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    #mainCarousel .carousel-caption {
        max-width: 80%;
    }
    
    #mainCarousel .carousel-caption .main-title {
        font-size: 2.8rem;
    }
    
    .news-image-container,
    .project-image,
    .trip-image,
    .ad-image {
        height: 200px;
    }
}

@media (max-width: 991.98px) {
    :root {
        --section-padding: 4rem 0;
        --card-padding: 1.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    #mainCarousel .carousel-item {
        height: 70vh;
        min-height: 450px;
    }
    
    #mainCarousel .carousel-caption {
        max-width: 90%;
        padding: 2rem;
    }
    
    #mainCarousel .carousel-caption .main-title {
        font-size: 2.4rem;
    }
    
    #mainCarousel .carousel-caption .subtitle-right,
    #mainCarousel .carousel-caption .subtitle-left {
        font-size: 1.2rem;
    }
    
    .about-image-wrapper::before {
        display: none;
    }
    
    .news-card,
    .project-card,
    .trip-card,
    .ad-card {
        margin-bottom: 2rem;
    }
    
    .news-image-container,
    .project-image,
    .trip-image,
    .ad-image {
        height: 220px;
    }
    
    .board-image-container {
        width: 150px;
        height: 150px;
    }
    
    .services-note {
        padding: 2rem;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 3.5rem 0;
        --card-padding: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    #mainCarousel .carousel-item {
        height: 60vh;
        min-height: 400px;
    }
    
    #mainCarousel .carousel-caption {
        padding: 1.5rem;
        bottom: 40%;
    }
    
    #mainCarousel .carousel-caption .main-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    #mainCarousel .carousel-caption .subtitle-right,
    #mainCarousel .carousel-caption .subtitle-left {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    #mainCarousel .carousel-caption .btn-group {
        margin-top: 1.5rem;
    }
    
    #mainCarousel .carousel-caption .btn {
        padding: 10px 20px;
    }
    
    .news-image-container,
    .project-image,
    .trip-image,
    .ad-image {
        height: 180px;
    }
    
    .project-card h3,
    .trip-card h3 {
        font-size: 1.1rem;
    }
    
    .services-note h3 {
        font-size: 1.3rem;
    }
    
    .services-note p {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --section-padding: 3rem 0;
        --card-padding: 1.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header h2::before {
        width: 30px;
        height: 30px;
    }
    
    #mainCarousel .carousel-item {
        height: 50vh;
        min-height: 300px;
    }
    
    #mainCarousel .carousel-caption {
        padding: 1rem;
        background: rgba(0, 33, 71, 0.8);
        max-width: 95%;
    }
    
    #mainCarousel .carousel-caption .main-title {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    #mainCarousel .carousel-caption .subtitle-right,
    #mainCarousel .carousel-caption .subtitle-left {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    #mainCarousel .carousel-caption .btn-group {
        margin-top: 1rem;
        flex-direction: column;
        gap: 10px;
    }
    
    #mainCarousel .carousel-caption .btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    #mainCarousel .carousel-control-prev,
    #mainCarousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .news-image-container,
    .project-image,
    .trip-image,
    .ad-image {
        height: 160px;
    }
    
    .news-title,
    .project-title,
    .trip-title,
    .ad-title {
        font-size: 1.2rem;
    }
    
    .news-excerpt,
    .project-description,
    .trip-description,
    .ad-description {
        font-size: 0.9rem;
    }
    
    .services-note {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .services-note h3 {
        font-size: 1.2rem;
    }
    
    .board-image-container {
        width: 120px;
        height: 120px;
    }
    
    .board-name {
        font-size: 1.2rem;
    }
    
    .board-title {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   5. قسم الخدمات
   ========================================================================== */
/* تنسيق لعرض 5 بطاقات في صف واحد */
.col-lg-2-4 {
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    max-width: 20%;
}

@media (max-width: 991.98px) {
    .col-lg-2-4 {
        -ms-flex: 0 0 33.333333%;
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (max-width: 767.98px) {
    .col-lg-2-4 {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 575.98px) {
    .col-lg-2-4 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}
.services-note-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

/* ==========================================================================
   قسم الإعلانات
   ========================================================================== */

/* ==========================================================================
   قسم الإحصائيات
   ========================================================================== */
.statistics-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%);
    position: relative;
    overflow: hidden;
}

.statistics-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: var(--border-radius-circle);
    background: rgba(10, 36, 99, 0.03);
    top: -100px;
    right: -100px;
    z-index: 0;
}

.statistics-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius-circle);
    background: rgba(208, 0, 0, 0.03);
    bottom: -50px;
    left: -50px;
    z-index: 0;
}

.statistic-card {
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
    box-shadow: var(--card-shadow);
    height: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.statistic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: -1;
}

.statistic-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.statistic-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-circle);
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: var(--transition-medium);
}

.statistic-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(10deg);
    background: rgba(255, 255, 255, 0.3);
}

.statistic-card .icon-wrapper i {
    font-size: 1.8rem;
    color: white;
}

.statistic-card .counter {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.statistic-card .title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    opacity: 0.9;
}

@media (max-width: 767.98px) {
    .statistic-card {
        min-height: 180px;
    }
    
    .statistic-card .icon-wrapper {
        width: 50px;
        height: 50px;
    }
    
    .statistic-card .icon-wrapper i {
        font-size: 1.5rem;
    }
    
    .statistic-card .counter {
        font-size: 2rem;
    }
    
    .statistic-card .title {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   قسم مجلس الإدارة
   ========================================================================== */
.council-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.council-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin: 0 10px 20px;
    transition: var(--transition-medium);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    height: 100%;
    z-index: 1;
}

.council-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

/* تصغير حجم صور مجلس الإدارة لمنع التداخل */
.member-image {
    width: 120px !important;
    height: 120px !important;
    margin: 0 auto 20px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 3px solid rgba(10, 36, 99, 0.1) !important;
    position: relative !important;
    transition: var(--transition-medium) !important;
    box-shadow: var(--card-shadow) !important;
    display: inline-block !important;
}

.council-card:hover .member-image {
    border-color: var(--primary-color);
}

.member-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: var(--transition-medium) !important;
    border-radius: 50% !important;
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

/* إزالة أي تنسيقات Bootstrap قد تؤثر على الصور */
.rounded-circle.member-image img,
img.rounded-circle {
    aspect-ratio: 1/1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.council-card:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: 10px 0;
}

.member-info h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.member-info .position {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.member-info .join-date {
    color: var(--text-color);
    font-size: 0.8rem;
}

/* تنسيق أزرار التنقل في سويبر مجلس الإدارة */
.council-swiper .swiper-button-next,
.council-swiper .swiper-button-prev {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.council-swiper .swiper-button-next:after,
.council-swiper .swiper-button-prev:after {
    font-size: 1.2rem;
}

.council-swiper .swiper-button-next:hover,
.council-swiper .swiper-button-prev:hover {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: scale(1.1);
    box-shadow: var(--card-shadow);
}
.ads-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%);
    position: relative;
    overflow: hidden;
}

#adsCarousel .carousel-control-prev {
    left: 0;
    right: auto;
}

#adsCarousel .carousel-control-next {
    right: 0;
    left: auto;
}

/* تصحيح اتجاه الأسهم لكاروسيل الإعلانات */
#adsCarousel .carousel-control-prev i.fas.fa-chevron-right {
    transform: rotate(180deg);
}

#adsCarousel .carousel-control-next i.fas.fa-chevron-left {
    transform: rotate(180deg);
}

#adsCarousel .carousel-control-prev i,
#adsCarousel .carousel-control-next i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.7);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

#adsCarousel .carousel-control-prev:hover i,
#adsCarousel .carousel-control-next:hover i {
    background-color: var(--white);
    color: var(--secondary-color);
    transform: scale(1.1);
}

.services-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #edf2f7 100%);
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: var(--border-radius-circle);
    background: rgba(255, 149, 0, 0.05);
    top: -150px;
    left: -150px;
    z-index: 0;
}

.services-section::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: var(--border-radius-circle);
    background: rgba(10, 36, 99, 0.05);
    bottom: -100px;
    right: -100px;
    z-index: 0;
}

.services-section .section-header {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.services-section .section-header h2::before {
    background-color: rgba(255, 149, 0, 0.1);
}

.service-card, .service-note {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    transition: var(--transition-medium);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid transparent;
    height: 100%;
    z-index: 1;
}

/* تنسيقات البطاقات بألوان مختلفة */
.note-blue {
    border-color: var(--primary-color);
}

.note-green {
    border-color: var(--trips-color);
}

.note-purple {
    border-color: var(--news-color);
}

.note-orange {
    border-color: var(--services-color);
}

.note-red {
    border-color: var(--secondary-color);
}

/* تنسيق صورة الخدمة */
.service-image-home-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    border-radius: var(--border-radius-circle);
    overflow: hidden;
    border: 3px solid rgba(0, 0, 0, 0.1);
    position: relative;
    transition: var(--transition-medium);
}

.service-note:hover .service-image-home-container {
    transform: scale(1.1);
    box-shadow: var(--card-shadow);
}

.service-image-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.service-note:hover .service-image-home {
    transform: scale(1.1);
}

.note-blue .service-image-home-container {
    border-color: rgba(10, 36, 99, 0.3);
}

.note-green .service-image-home-container {
    border-color: rgba(56, 176, 0, 0.3);
}

.note-purple .service-image-home-container {
    border-color: rgba(114, 9, 183, 0.3);
}

.note-orange .service-image-home-container {
    border-color: rgba(255, 149, 0, 0.3);
}

.note-red .service-image-home-container {
    border-color: rgba(208, 0, 0, 0.3);
}

/* تنسيق عنوان الخدمة */
.service-note h3 {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    transition: var(--transition-fast);
}

.note-blue h3 {
    color: var(--primary-color);
}

.note-green h3 {
    color: var(--trips-color);
}

.note-purple h3 {
    color: var(--news-color);
}

.note-orange h3 {
    color: var(--services-color);
}

.note-red h3 {
    color: var(--secondary-color);
}

/* تنسيق وصف الخدمة */
.service-note p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 20px;
    height: 80px;
    overflow: hidden;
}

/* تنسيق زر قراءة المزيد */
.service-note .read-more {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--border-radius-md);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.note-blue .read-more {
    background-color: var(--primary-color);
}

.note-green .read-more {
    background-color: var(--trips-color);
}

.note-purple .read-more {
    background-color: var(--news-color);
}

.note-orange .read-more {
    background-color: var(--services-color);
}

.note-red .read-more {
    background-color: var(--secondary-color);
}

.service-note .read-more:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
}

.service-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 149, 0, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 0 0 0 100%;
    z-index: -1;
    opacity: 0;
    transition: var(--transition-medium);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon-container {
    width: 90px;
    height: 90px;
    background: rgba(255, 149, 0, 0.1);
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    transition: var(--transition-medium);
    position: relative;
}

.service-icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-circle);
    border: 2px dashed rgba(255, 149, 0, 0.3);
    animation: spin 30s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.service-card:hover .service-icon-container {
    background: var(--services-color);
    transform: scale(1.1);
    box-shadow: 0 10px 25px rgba(255, 149, 0, 0.3);
}

.service-icon {
    font-size: 2.8rem;
    color: var(--services-color);
    transition: var(--transition-fast);
}

.service-card:hover .service-icon {
    color: white;
}

.service-title {
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    transition: var(--transition-fast);
}

.service-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--services-color);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-medium);
}

.service-card:hover .service-title {
    color: var(--services-color);
}

.service-card:hover .service-title::after {
    width: 80px;
    background: var(--gradient-accent);
}

.service-description {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.8;
    transition: var(--transition-fast);
}

.service-card:hover .service-description {
    color: var(--dark-text);
}

.service-link {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--gradient-bg);
    color: var(--white);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 5px 15px rgba(10, 36, 99, 0.2);
}

.service-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
    z-index: -1;
}

.service-link:hover {
    background: var(--services-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 149, 0, 0.3);
    color: white;
}

.service-link:hover::before {
    width: 100%;
}

/* ==========================================================================
   6. قسم الأخبار
   ========================================================================== */
.news-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.news-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: var(--border-radius-circle);
    background: rgba(114, 9, 183, 0.03);
    top: -150px;
    right: -150px;
    z-index: 0;
}

.news-section .section-header h2::before {
    background-color: rgba(114, 9, 183, 0.1);
}

.news-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    overflow: hidden;
    height: 100%;
    border-bottom: 3px solid var(--news-color);
    margin-bottom: 2.5rem;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(114, 9, 183, 0.2);
}

.news-image-container {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.news-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 70%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
    opacity: 0.7;
    transition: var(--transition-medium);
}

.news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.news-card:hover .news-image-container img {
    transform: scale(1.1);
}

.news-category {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--news-color);
    color: white;
    padding: 5px 15px;
    border-radius: var(--border-radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(114, 9, 183, 0.3);
}

.news-content {
    padding: 20px;
    position: relative;
}

.news-card .news-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--news-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.news-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.news-card .news-footer {
    padding: 0 20px 20px;
}

.news-card .btn-read-more {
    display: inline-block;
    color: var(--news-color);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-left: 20px;
}

.news-card .btn-read-more:hover {
    color: #5a0499;
}

.news-card .btn-read-more::after {
    content: '\f060';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.news-card .btn-read-more:hover::after {
    transform: translate(-5px, -50%);
}

/* ==========================================================================
   7. قسم الإعلانات
   ========================================================================== */
.text-maroon {
    color: var(--ads-color) !important;
}

.ad-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.meta-info .date-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border-radius: 4px;
    color: #666;
}

.meta-info .date-badge i {
    margin-left: 6px;
    color: var(--ads-color);
}

/* تنسيقات جديدة للتحكم في ارتفاع حاوية الإعلانات */
.ads-section .carousel-item {
    height: auto; /* إزالة الارتفاع الثابت */
}

.ad-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    background-color: #fff;
}

.ad-image-container {
    position: relative;
    overflow: hidden;
    height: 300px; /* تحديد ارتفاع ثابت للحاوية - يمكن تعديله حسب الحاجة */
}

.ad-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* يضمن تغطية الصورة للمساحة بالكامل مع الحفاظ على النسبة */
    object-position: center; /* توسيط الصورة */
}

.ad-ribbon {
    position: absolute;
    top: 10px;
    right: -30px;
    transform: rotate(45deg);
    z-index: 1;
    width: 150px;
    background-color: var(--ads-color);
    text-align: center;
    padding: 5px 0;
}

.ad-ribbon span {
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
}

.ad-content {
    padding: 20px;
    text-align: right;
}

.ad-content h3 {
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.ad-content p {
    color: #666;
    margin-bottom: 20px;
}

.ad-content .btn {
    display: inline-block;
    padding: 8px 18px;
    background-color: var(--ads-color);
    color: white;
    border-radius: 5px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ad-content .btn:hover {
    background-color: #600000;
    transform: translateY(-2px);
}

/* تنسيقات لأزرار التنقل */
.ads-section .carousel-control-prev,
.ads-section .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(128, 0, 0, 0.7);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ads-section .carousel-control-prev {
    right: auto;
    left: 15px;
}

.ads-section .carousel-control-next {
    left: auto;
    right: 15px;
}

.ads-section .carousel-control-prev i,
.ads-section .carousel-control-next i {
    color: white;
    font-size: 1.2rem;
}

/* تنسيق المؤشرات */
.ads-section .carousel-indicators {
    bottom: -15px;
}

.ads-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
}

.ads-section .carousel-indicators button.active {
    background-color: var(--ads-color);
}

/* ==========================================================================
   8. قسم المشروعات
   ========================================================================== */
.projects-section {
    padding: 60px 0;
}

.project-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    overflow: hidden;
    height: 100%;
    border-bottom: 3px solid var(--projects-color);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
}

.project-card .news-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.project-card .news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .news-image-container img {
    transform: scale(1.05);
}

.project-card .news-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--projects-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-card .news-content {
    padding: 20px;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.project-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.project-card .news-footer {
    padding: 0 20px 20px;
}

.project-card .btn-read-more {
    display: inline-block;
    color: var(--projects-color);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-left: 20px;
}

.project-card .btn-read-more:hover {
    color: #0d47a1;
}

.project-card .btn-read-more::after {
    content: '\f060';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.project-card .btn-read-more:hover::after {
    transform: translate(-5px, -50%);
}

/* ==========================================================================
   9. قسم الرحلات الداخلية
   ========================================================================== */
.trips-section {
    padding: 60px 0;
}

.trip-card {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    overflow: hidden;
    height: 100%;
    border-bottom: 3px solid var(--trips-color);
}

.trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.2);
}

.trip-card .news-image-container {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.trip-card .news-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trip-card:hover .news-image-container img {
    transform: scale(1.05);
}

.trip-card .news-date {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--trips-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
}

.trip-card .news-content {
    padding: 20px;
}

.trip-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
}

.trip-card p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.trip-card .news-footer {
    padding: 0 20px 20px;
}

.trip-card .btn-read-more {
    display: inline-block;
    color: var(--trips-color);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding-left: 20px;
}

.trip-card .btn-read-more:hover {
    color: #2e7d32;
}

.trip-card .btn-read-more::after {
    content: '\f060';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.trip-card .btn-read-more:hover::after {
    transform: translate(-5px, -50%);
}

/* ==========================================================================
   10. قسم التنويه
   ========================================================================== */
.services-note-section {
    padding: 40px 0;
}

.services-note {
    background-color: #f8f9fa;
    border-right: 4px solid var(--projects-color);
    transition: all 0.3s ease;
}

.services-note:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.services-note h3 {
    color: var(--projects-color);
    font-weight: 600;
}

.services-note p {
    color: #555;
}

.services-note .btn-primary {
    background-color: var(--projects-color);
    border-color: var(--projects-color);
    padding: 10px 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.services-note .btn-primary:hover {
    background-color: #0d47a1;
    border-color: #0d47a1;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

/* ==========================================================================
   11. قسم مجلس الإدارة
   ========================================================================== */
.council-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.council-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: var(--border-radius-circle);
    background: rgba(10, 36, 99, 0.03);
    top: -150px;
    right: -150px;
    z-index: 0;
}

.council-section::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: var(--border-radius-circle);
    background: rgba(208, 0, 0, 0.05);
    bottom: -80px;
    left: -80px;
    z-index: 0;
}

.council-section .swiper-container {
    padding: 30px 0;
    overflow: visible;
    position: relative;
    z-index: 1;
}

.swiper-slide {
    width: 320px !important;
    margin-right: 25px !important;
}

.council-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition-medium);
    height: 100%;
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.council-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-bg);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.council-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
}

.council-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.member-image-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    border-radius: var(--border-radius-circle);
    overflow: hidden;
    border: 6px solid rgba(10, 36, 99, 0.1);
    position: relative;
    transition: var(--transition-medium);
    box-shadow: var(--card-shadow);
}

.council-card:hover .member-image-container {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(10, 36, 99, 0.2);
}

.member-image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 36, 99, 0) 70%, rgba(10, 36, 99, 0.7) 100%);
    z-index: 1;
    opacity: 0;
    transition: var(--transition-medium);
}

.council-card:hover .member-image-container::before {
    opacity: 0.7;
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.council-card:hover .member-image {
    transform: scale(1.1);
}

.member-info {
    position: relative;
    z-index: 1;
}

.member-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

.council-card:hover .member-info h3 {
    color: var(--accent-color);
}

.member-info .position {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.member-info .position::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: var(--border-radius-sm);
}

.member-info .join-date {
    color: var(--muted-text);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.member-social {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-medium);
}

.council-card:hover .member-social {
    opacity: 1;
    transform: translateY(0);
}

.member-social a {
    width: 35px;
    height: 35px;
    background: white;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-fast);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.member-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* تنسيقات Swiper */
.council-swiper {
    padding: 30px 50px;
    margin: 20px 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: var(--border-radius-circle);
    box-shadow: 0 5px 15px rgba(10, 36, 99, 0.2);
    transition: var(--transition-fast);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

/* ==========================================================================
   3. الكاروسيل الرئيسي
   ========================================================================== */
#mainCarousel {
    position: relative;
    margin-bottom: 0;
    overflow: hidden;
}

#mainCarousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 10; /* زيادة قيمة z-index ولكن أقل من قيمة الكابشن */
    pointer-events: none; /* للسماح بوصول النقرات إلى العناصر خلفها */
}

#mainCarousel .carousel-inner {
    position: relative;
    z-index: 0;
}

#mainCarousel .carousel-item {
    height: 90vh;
    min-height: 500px;
    position: relative;
}

#mainCarousel .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
    filter: brightness(0.9);
    transition: transform 10s ease;
}

#mainCarousel .carousel-item.active img {
    transform: scale(1.1);
}

#mainCarousel .carousel-caption {
    background: rgba(0, 33, 71, 0.7);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    max-width: 70%;
    margin: 0 auto;
    bottom: 50%;
    transform: translateY(50%);
    z-index: 50; /* زيادة قيمة z-index للكابشن */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease;
    pointer-events: auto; /* للتأكد من أن الإطار يسمح بالنقر */
}

#mainCarousel .carousel-caption .main-title {
    color: white;
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

#mainCarousel .carousel-caption .main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: var(--border-radius-sm);
}

#mainCarousel .carousel-caption .subtitle-right,
#mainCarousel .carousel-caption .subtitle-left {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#mainCarousel .carousel-caption .btn-group {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 15px;
}

#mainCarousel .carousel-caption .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    text-transform: none;
    position: relative;
    overflow: hidden;
    z-index: 200; /* زيادة قيمة z-index للزر */
    border: none;
    transition: all 0.4s ease;
    cursor: pointer;
    pointer-events: auto !important; /* للتأكد من استجابة الزر للنقر */
}

#mainCarousel .carousel-caption .btn-primary {
    background: var(--gradient-bg);
    color: white;
    box-shadow: 0 5px 15px rgba(10, 36, 99, 0.3);
}

#mainCarousel .carousel-caption .btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 36, 99, 0.4);
}

#mainCarousel .carousel-caption .btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

#mainCarousel .carousel-caption .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    transform: translateY(-5px);
}

#mainCarousel .carousel-control-prev,
#mainCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: var(--border-radius-circle);
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 100; /* زيادة قيمة z-index للتأكد من ظهور الأزرار فوق أي عنصر آخر */
}

/* تعديل اتجاه الأسهم لتتناسب مع اللغة العربية */
/* تصحيح اتجاه الأسهم للكاروسيل الرئيسي */
#mainCarousel .carousel-control-prev-icon {
    transform: rotate(180deg);
}

#mainCarousel .carousel-control-next-icon {
    transform: rotate(180deg);
}

#mainCarousel:hover .carousel-control-prev,
#mainCarousel:hover .carousel-control-next {
    opacity: 1;
}

#mainCarousel .carousel-control-prev {
    left: 30px;
}

#mainCarousel .carousel-control-next {
    right: 30px;
}

#mainCarousel .carousel-control-prev:hover,
#mainCarousel .carousel-control-next:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

#mainCarousel .carousel-indicators {
    bottom: 30px;
    z-index: 10;
}

#mainCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: var(--border-radius-circle);
    background-color: rgba(255, 255, 255, 0.5);
    margin: 0 8px;
    position: relative;
    transition: all 0.4s ease;
    border: none;
    opacity: 0.7;
}

#mainCarousel .carousel-indicators button.active {
    background-color: white;
    width: 30px;
    border-radius: 10px;
    opacity: 1;
}

/* تأثيرات حركية خاصة بالكاروسيل */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(70%); }
    to { opacity: 1; transform: translateY(50%); }
}

/* عناصر زخرفية للكاروسيل */
.carousel-decoration {
    position: absolute;
    z-index: 2;
    opacity: 0.5;
}

.carousel-decoration-1 {
    top: 10%;
    left: 5%;
    width: 100px;
    height: 100px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-circle);
    animation: animate-spin 20s linear infinite;
}

.carousel-decoration-2 {
    bottom: 10%;
    right: 5%;
    width: 150px;
    height: 150px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-circle);
    animation: animate-spin 30s linear infinite reverse;
}

.carousel-decoration-3 {
    top: 20%;
    right: 10%;
    width: 70px;
    height: 70px;
    background: rgba(208, 0, 0, 0.1);
    border-radius: var(--border-radius-circle);
    animation: animate-float 5s ease-in-out infinite;
}

/* ==========================================================================
   12. تنسيقات الاستجابة للشاشات المختلفة
   ========================================================================== */
/* تحسينات التجاوب للكاروسيل */
@media (max-width: 1200px) {
    #mainCarousel {
        height: 70vh !important;
    }
    
    #mainCarousel .carousel-caption {
        width: 85% !important;
    }
}

@media (max-width: 992px) {
    #mainCarousel {
        height: 65vh !important;
    }
    
    #mainCarousel .carousel-caption {
        width: 90% !important;
        padding: 1.5rem !important;
    }
    
    #mainCarousel .carousel-caption .main-title {
        font-size: 2rem !important;
    }
    
    .news-image-container {
        height: 250px;
    }
    
    .news-content {
        padding: 1.25rem;
    }
    
    .news-content h3 {
        font-size: 1.1rem;
    }
    
    .swiper-slide {
        width: 250px !important;
        margin-right: 10px !important;
    }
    
    .council-card {
        padding: 20px;
    }
    
    .member-image-container {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    #mainCarousel {
        height: 60vh !important;
    }
    
    #mainCarousel .carousel-caption {
        width: 95% !important;
        padding: 1.2rem !important;
    }
    
    #mainCarousel .carousel-caption .main-title {
        font-size: 1.8rem !important;
    }
    
    .news-section {
        padding: 3rem 0;
    }
    
    .news-card {
        margin-bottom: 20px;
    }
    
    .news-image-container {
        height: 220px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .ad-image-container {
        height: 200px; /* ارتفاع أقل للشاشات الصغيرة */
    }
    
    .ad-content {
        padding: 15px;
    }
    
    .ad-content h3 {
        font-size: 1.2rem;
    }
    
    .project-card .news-image-container,
    .trip-card .news-image-container {
        height: 180px;
    }
    
    .project-card h3,
    .trip-card h3 {
        font-size: 1.1rem;
    }
    
    .services-note h3 {
        font-size: 1.3rem;
    }
    
    .services-note p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    #mainCarousel {
        height: 50vh !important;
        min-height: 300px !important;
    }
    
    #mainCarousel .carousel-caption {
        padding: 1rem !important;
        background: rgba(0, 0, 0, 0.7) !important;
    }
    
    #mainCarousel .carousel-caption .main-title {
        font-size: 1.4rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .news-image-container {
        height: 200px;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .project-card .news-image-container,
    .trip-card .news-image-container {
        height: 160px;
    }
    
    .services-note .btn-primary {
        width: 100%;
    }
}
