﻿/* Services Section Styles */
.services-section {
    padding: 0;
    direction: rtl;
    width: 1200px;
    max-width: 1200px;
    height: auto;
    min-height: 400px;
    margin: 0 auto;
    background-color: #F5FAFC;
    border-radius: 16px;
    overflow: visible;
    position: relative;
    box-sizing: border-box;
}

.services-section .container {
    width: 100%;
    max-width: 1200px;
    padding: 40px 0 0 40px !important;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
}

.services-header {
    width: 100%;
    text-align: right;
    margin: 20px 0 40px;
    /* padding-right:10px; */
}

.services-section .section-title {
    color: #00937B;
    font-size: 35px !important;
    font-family: 'Droid Arabic Kufi', sans-serif !important;
    font-weight: 700 !important;
    line-height: 150% !important;
    letter-spacing: 0% !important;
    text-align: right !important;
    padding-right: 30px !important;
    margin: 0;
}

.services-section .most-used-title {
    text-align: center;
    width: 100%;
}

/* Sub header */
.sub-header {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.sub-header h3 {
    color: #00937B;
    font-size: var(--font-lg);
    font-weight: 600;
    margin: 0;
}

.sub-header-mobile { display: none !important; }
.sub-header-desktop { display: block !important; }
@media (max-width: 768px) {
  .sub-header-mobile { display: block !important; }
  .sub-header-desktop {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
}

/* Services Top Section */
.services-section .services-top {
    display: flex;
    gap: 30px;
    flex: 1;
    margin-bottom: 0;
    overflow: hidden;
    align-items: flex-start;
    min-height: 200px;
    width: 100%;
    box-sizing: border-box;
    padding-right: 0 !important;
}

/* Main Content Wrapper */
.main-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding: 0 10px;
    min-height: 200px;
    justify-content: flex-start;
}

/* Tab Container */
.tab-container {
    display: flex;
    gap: 8px;
    margin-bottom: 36px !important;
    width: 784px;
    height: 43px;
    justify-content: center;
    padding: 0;
    flex-wrap: nowrap;
    align-items: center;
    box-sizing: border-box;
}

.tab-publish,
.tab-portal {
    padding: 10px 20px;
    border-radius: 25px;
    border: 1px solid #ddd;
    font-size: var(--font-base);
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
    text-align: center;
    color: #333;
    text-decoration: none;
    width: calc(50% - 4px);
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.tab-publish.active {
    background-color: #00937B;
    color: white;
    border-color: #00937B;
}

/* Sidebar Menu */
.services-section .sidebar-menu {
    width: 276px;
    max-width: 276px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    right: 0;
    margin-top: 65px;
    margin-right: 0;
    margin-left: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.services-section .sidebar-link {
    display: block;
    width: 276px;
    max-width: 276px;
    height: 48px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin-right: 0;
    margin-left: 0;
    right: 0;
}

.services-section .sidebar-btn {
    background-color: #00937B;
    color: #fff;
    border: none;
    border-radius: 28px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
    width: 276px;
    max-width: 276px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    gap: 10px;
    overflow: hidden;
    box-sizing: border-box;
    margin-right: 0;
    margin-left: 0;
    /* خصائص النص المطلوبة */
    font-family: 'Droid Arabic Kufi', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
}

.sidebar-btn img {
    display: none;
}

.sidebar-btn:hover {
    background-color: #E76A2E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.sidebar-btn.active {
    background-color: #00937B;
    color: #fff;
}

/* Services Cards */
.services-cards {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow: visible;
    width: 784px;
    min-height: 210px;
    padding: 0 0 50px 0;
    margin-bottom: 5px !important;
    position: relative;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    box-sizing: border-box;
    transition: margin-bottom 0.4s ease;
}

.services-cards:has(.service-card:hover) {
    padding-bottom: 80px;
    margin-bottom: 40px !important;
}

/* Arrow Wrapper */
.slider-arrow-wrapper {
    position: relative !important;
    right: -50px !important;
    top: 0 !important;
    width: 60px !important;
    height: 150px !important;
    margin-top: 10px !important;
    margin-right: 40px !important;
    margin-bottom: 40px !important;
    margin-left: 40px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.services-cards-wrapper {
    position: relative;
    width: 100%;
    margin-top: 20px;
}

/* Slider Navigation - Hidden */
/* .slider-navigation {
    display: none;
} */

/* Arrow Button */
.slider-arrow {
    position: relative;
    width: 36px;
    height: 36px;
    /* background-color: #ffffff; */
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    z-index: 3;
    /* transition: all 0.3s ease; */
    flex-shrink: 0;
    padding: 10px;
    box-sizing: border-box;
    text-decoration: none;
    /* box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1); */
}

.slider-arrow img,
.slider-arrow .arrow-icon {
    width: 36px !important;
    height: 36px !important;
    /* filter: none; */
    max-width: none !important;
    /* transform: rotate(-180deg); */
    /* transition: transform 0.3s ease; */
}

.slider-arrow:hover {
    /* transform: scale(1.1); */
    background-color: rgba(0, 147, 123, 0.1);
}

.slider-arrow:hover img {
    /* transform: rotate(-180deg) scale(1.1); */
}

.service-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 21px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 256px;
    min-width: 256px;
    height: 208px;
    box-shadow: 0px 0px 16.7px -3px rgba(0, 0, 0, 0.21);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    z-index: 1;
    gap: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    justify-content: space-between;
    overflow: visible;
    margin-bottom: 0;
}

.service-card:hover {
    transform: scale(1.05);
    height: 155px;
    z-index: 2;
    box-shadow: 0px 12px 30px rgba(0, 0, 0, 0.2);
    padding: 20px 18px 0px;
    justify-content: flex-start;
    gap: 0;
}

.service-card .card-desc {
    margin-bottom: 0;
    font-size: 14px;
}

.service-card:hover .card-desc {
    margin-bottom: 0;
}

.more-btn {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    padding: 6px 14px;
    background-color: #E76A2E;
    border-radius: 20px;
    transform: translateY(10px);
    margin-top: 0;
    margin-bottom: 0;
    font-weight: 500;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 8px rgba(231, 106, 46, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
}

.service-card:hover .more-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(-2px);
    margin-top: -2px;
}

.more-btn:hover {
    background-color: #d55d23;
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .card-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    transform: scale(1.02);
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
    filter: brightness(1);
}

.service-card:hover .card-icon img {
    filter: brightness(1.08) saturate(1.15);
}

.service-title {
    font-family: 'Droid Arabic Kufi', sans-serif !important;
    font-weight: 700 !important; 
    font-size: 8px !important;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    color: #333;
    margin: 0 0 6px;
    transition: all 0.3s ease;
}

.service-card:hover .service-title {
    font-size: 9px !important;
    margin: 0 0 6px;
    color: #00827A;
    font-weight: 800 !important;
    line-height: 140%;
}

.card-desc {
    font-family: 'Droid Arabic Kufi', sans-serif !important;
    font-weight: 400 !important;
    font-size: 10px !important;
    line-height: 150%;
    letter-spacing: 0%;
    text-align: center;
    color: #666;
    margin: 0 0 0;
    transition: all 0.3s ease;
    flex: 1;
}

.service-card:hover .card-desc {
    font-size: 10px !important;
    margin: 0 0 -2px;
    color: #555;
    line-height: 145%;
    flex: 1;
}

/* Community Programs Section */
.community-programs-section {
    width: 1200px;
    height: 160px;
    padding: 64px 10px;
    text-align: center;
    background-color: transparent;
    position: relative;
    cursor: pointer;
    transition: all 0.4s ease;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
    border-top: 1px solid #00AFA9;
    margin: 0 auto;
    gap: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.community-programs-section:hover {
    background-color: #00AFA9;
    transform: scale(1.02);
}

.community-programs-section h3 {
    margin: 0;
    text-align: center;
    color: #00827A;
    /* font-size: var(--font-2xl); */
    font-weight: 500;
    transition: color 0.3s ease;
}

.community-programs-section:hover h3 {
    color: #ffffff;
}

.community-programs-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #00AFA9;
}

/* تأكيد المقاسات المطلوبة */
.services-section {
    width: 1200px !important;
    max-width: 1200px !important;
    height: auto !important;
    min-height: 400px !important;
    border-radius: 16px !important;
}

/* تأكيد مقاسات التبويب */
.tab-container {
    width: 784px !important;
    height: 43px !important;
    gap: 8px !important;
}

/* تأكيد مقاسات الكروت - محاذاة مع التبويب */
.services-cards {
    width: 784px !important;
    height: 150px !important;
    gap: 8px !important;
    justify-content: flex-start !important;
    margin-bottom: 5px !important;
}

/* تأكيد مقاسات البطاقات - 4 كروت بعرض التبويب */
.service-card {
    width: 190px !important;
    min-width: 190px !important;
    height: 150px;
}

.service-card:hover {
    width: 190px !important;
    min-width: 190px !important;
}

/* تأكيد مقاسات السهم خارج التبويب */
.slider-arrow-wrapper {
    position: relative !important;
    right: -50px !important;
    top: 0 !important;
    width: 60px !important;
    height: 150px !important;
    margin-top: 10px !important;
    margin-right: 40px !important;
    margin-bottom: 40px !important;
    margin-left: 40px !important;
}

/* تأكيد مقاسات السهم */
.slider-arrow {
    width: 36px !important;
    height: 36px !important;
    border-radius: 100px !important;
    padding: 10px !important;
}

.slider-arrow img {
    /* transform: rotate(-180deg) !important; */
}

/* تأكيد مقاسات برامج المجتمع */
.community-programs-section {
    width: 1200px !important;
    height: 160px !important;
    padding: 64px 10px !important;
    border-bottom-right-radius: 16px !important;
    border-bottom-left-radius: 16px !important;
    border-top: 1px solid #00AFA9 !important;
    gap: 10px !important;
}

/* تأكيد مقاسات الأزرار الجانبية */
.services-section .sidebar-menu {
    gap: 10px !important;
}

.services-section .sidebar-btn {
    width: 276px !important;
    height: 48px !important;
    padding: 10px !important;
    gap: 10px !important;
    border-radius: 28px;

}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-section {
        width: 95% !important;
        max-width: 95% !important;
        min-width: auto;
        height: auto !important;
        min-height: 500px !important;
    }
    
    .services-section .container {
        /* padding: 30px; */
    }
    
    .services-top {
        min-height: 350px;
    }
    
    .service-card {
        width: calc(33.33% - 20px);
    }
    
    .community-programs-section {
        width: calc(100% - 60px);
        max-width: none;
        margin: 15px 30px 0;
    }
}

@media (max-width: 992px) {
    .services-section {
        margin: 30px auto;
        min-height: 600px;
    }
    
    .services-section .container {
        padding: 25px;
        gap: 15px;
        overflow: hidden;
    }

    .services-top {
        flex-direction: column;
        min-height: 450px;
    }
    
    .sidebar-menu {
        width: 100%;
        max-width: 100%;
        right: 0;
        margin-top: 10px;
        margin-right: 0;
        overflow: hidden;
    }
    
    .sidebar-link {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
        margin-right: 0;
        right: 0;
    }
    
    .sidebar-btn {
        width: 100%;
        max-width: 100%;
        border-top-left-radius: 12px;
        border-bottom-left-radius: 12px;
        border-top-right-radius: 12px;
        border-bottom-right-radius: 12px;
        font-family: 'Droid Arabic Kufi', sans-serif !important;
        font-weight: 700 !important;
        font-size: 14px !important;
        line-height: 150%;
        letter-spacing: 0%;
        text-align: center;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .main-content-wrapper {
        min-height: 300px;
    }
    
    .service-card {
        width: 240px;
        min-width: 240px;
        height: 195px;
        padding: 21px 20px;
    }
    
    .service-card:hover {
        height: 155px;
        padding: 20px 18px 0px;
    }
    
    .services-cards {
        min-height: 195px;
        padding-bottom: 50px;
    }
    
    .services-cards:has(.service-card:hover) {
        padding-bottom: 70px;
        margin-bottom: 30px !important;
    }
    
    .community-programs-section {
        margin: 15px 20px 0;
        width: calc(100% - 40px);
    }
}

@media (max-width: 768px) {
    .services-section .container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .services-top {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        gap: 0 !important;
        min-height: unset !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .sidebar-menu {
        position: relative !important;
        margin-bottom: 0 !important;
    }
    .sidebar-menu:after {
        content: '';
        display: block;
        width: 80%;
        height: 1.5px;
        background: #E0E0E0;
        margin: 24px auto 0 auto;
        border-radius: 1px;
    }
    .main-content-wrapper {
        order: 2;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .tab-container {
        width: 100% !important;
        justify-content: center !important;
        margin-bottom: 18px !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 0 !important;
    }
    .services-slider {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    .services-cards {
        display: flex !important;
        flex-direction: row !important;
        gap: 16px !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        padding: 8px 0 50px 0 !important;
        margin: 0 !important;
        width: 100% !important;
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        margin-bottom: 0 !important;
        min-height: 185px !important;
        transition: margin-bottom 0.4s ease !important;
    }
    

    .services-cards::-webkit-scrollbar {
        display: none;
    }
    .service-card {
        width: 220px;
        min-width: 220px;
        height: 190px;
        padding: 21px 20px;
        margin-bottom: 0;
        gap: 0;
    }
    
    .service-card:hover {
        height: 155px;
        padding: 20px 18px 0px;
    }
    
    .services-cards {
        min-height: 190px;
        padding-bottom: 40px;
        margin-bottom: 5px !important;
    }
    
    .services-cards:has(.service-card:hover) {
        padding-bottom: 60px;
        margin-bottom: 25px !important;
    }
    
    .service-card .card-desc {
        flex: 1 !important;
    }
    
    .service-card .more-btn {
        margin-top: 0 !important;
        flex-shrink: 0 !important;
    }
    
    .service-card:hover .more-btn {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(-2px) !important;
        margin-top: -2px !important;
    }
    .slider-arrow-wrapper {
        display: none !important;
    }
    .services-header .section-title {
        color: #00937B !important;
        font-family: 'Droid Arabic Kufi', sans-serif !important;
        font-weight: 700 !important;
        font-size: 24px !important;
        text-align: center !important;
        margin-bottom: 18px !important;
        padding: 0 !important;
    }
    .sidebar-menu {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        align-items: center !important;
        margin-bottom: 18px !important;
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0 !important;
    }
    .sidebar-link {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .sidebar-btn {
        width: 258px !important;
        height: 45px !important;
        border-radius: 28px !important;
        padding: 8px !important;
        box-shadow: 0px 0px 9px 0px #00000066 !important;
        background: #158885 !important;
        color: #fff !important;
        font-family: 'Droid Arabic Kufi', sans-serif !important;
        font-size: 22px !important;
        font-weight: 700 !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto 24px auto !important;
        box-sizing: border-box !important;
    }
    .sidebar-menu::before {
        content: '';
        display: block;
        position: absolute;
        right: -48px;
        top: 0;
        width: 38px;
        height: 38px;
        background: #158885 url('../../assets/icons/support.svg') no-repeat center/60%;
        border-radius: 50%;
        z-index: 2;
        transform: translateY(-50%);
    }
    .sub-header {
        margin-top: 8px !important;
        margin-bottom: 18px !important;
        text-align: center !important;
        font-size: 20px !important;
        color: #158885 !important;
        font-family: 'Droid Arabic Kufi', sans-serif !important;
        font-weight: 700 !important;
        display: block !important;
    }
    .tab-publish, .tab-portal {
        border-radius: 24px !important;
        border: 1px solid #158885 !important;
        background: #fff !important;
        color: #158885 !important;
        font-family: 'Droid Arabic Kufi', sans-serif !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        padding: 6px 18px !important;
        min-width: 110px !important;
        width: auto !important;
        height: 36px !important;
        box-shadow: none !important;
        text-align: center !important;
    }
    .tab-publish.active, .tab-portal.active {
        background: #158885 !important;
        color: #fff !important;
    }
    .community-programs-section {
        width: 358px !important;
        height: 72px !important;
        gap: 10px !important;
        padding: 24px 10px !important;
        border-bottom-right-radius: 16px !important;
        border-bottom-left-radius: 16px !important;
        border-top: 1px solid #E0E0E0 !important;
        background: #F5FAFC !important;
        color: #00A19A !important;
        font-family: 'Droid Arabic Kufi', sans-serif !important;
        font-size: 24px !important;
        font-weight: 700 !important;
        text-align: center !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    .community-programs-section h3 {
        font-family: 'Droid Arabic Kufi', sans-serif !important;
        font-weight: 700 !important;
        font-size: 16px !important;
        line-height: 150% !important;
        letter-spacing: 0% !important;
        text-align: center !important;
        margin: 0 !important;
        color: #00A19A !important;
        white-space: nowrap !important;
    }
    .services-slider {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}

@media (max-width: 480px) {
    .services-section {
        min-height: 700px;
    }
    
    .services-section .container {
        padding: 15px;
        overflow: hidden;
    }
    
    .services-top {
        min-height: 450px;
    }
    
    .service-card {
        width: 200px;
        min-width: 200px;
        height: 155px;
        padding: 21px 20px;
        margin-bottom: 0;
        gap: 0;
    }
    
    .service-card:hover {
        height: 155px;
        padding: 20px 18px 0px;
    }
    
    .services-cards {
        min-height: 185px;
        padding-bottom: 35px;
        margin-bottom: 5px !important;
    }
    
    .services-cards:has(.service-card:hover) {
        padding-bottom: 55px;
        margin-bottom: 20px !important;
    }
    
    .tab-publish,
    .tab-portal {
        width: 220px;
        padding: 8px 50px;
        font-size: var(--font-xs);
    }
    
    .tab-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
        gap: 10px;
    }
    
    .community-programs-section {
        margin: 10px 10px 0;
        width: calc(100% - 20px);
        padding: 15px 0 10px;
    }
}

/* Force sidebar alignment - Higher Specificity Rules */
.services-section .services-top .sidebar-menu {
    position: relative !important;
    right: 0 !important;
    margin-right: 0 !important;
    align-self: flex-start !important;
    justify-self: flex-end !important;
}

.services-section .services-top .sidebar-menu .sidebar-link {
    margin-right: 0 !important;
    padding-right: 0 !important;
}

.services-section .services-top .sidebar-menu .sidebar-btn {
    /* margin-right: 0 !important; */
    padding-left: 10px !important;
    padding-right: 10px !important;
}


