/* ألوان متناسقة مع الموقع الرئيسي */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #667eea;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
}

/* تصميم قائمة المؤسسات */
.modern-organization-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    overflow: hidden;
}

.organization-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.organization-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-gradient);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.organization-item:hover {
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.12);
    border-color: var(--accent-color);
}

.organization-icon {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.organization-icon:hover {
    box-shadow: 0 12px 25px rgba(102, 126, 234, 0.4);
}

/* تصميم بطاقات الخدمات */
.modern-service-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.modern-service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.modern-service-card:hover {
    box-shadow: 0 30px 60px rgba(102, 126, 234, 0.2);
    border-color: var(--accent-color);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-service-card:hover .service-icon::before {
    opacity: 0.1;
}

.service-icon i {
    position: relative;
    z-index: 2;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.modern-service-card:hover .service-icon i {
    color: var(--accent-color);
}

/* تحسين الاستجابة */
@media (max-width: 768px) {
    .modern-service-card {
        margin-bottom: 25px;
    }

    .organization-item {
        margin-bottom: 15px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }
}

/* تأثيرات إضافية للبطاقات */
.modern-service-card .service-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.08));
    border: 2px solid rgba(102, 126, 234, 0.1);
}

.modern-service-card:hover .service-icon {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15), rgba(118, 75, 162, 0.15));
    border-color: var(--accent-color);
}

/* تحسين النصوص */
.modern-service-card h5 {
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.4;
}

.modern-service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* تحسين الأزرار */
.modern-service-card a {
    color: var(--accent-color);
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.modern-service-card a:hover {
    color: var(--accent-color);
}

.modern-service-card a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.modern-service-card a:hover::after {
    width: 100%;
}

/* خط Tajawal لصفحات الموقع */
@font-face {
    font-family: 'Tajawal';
    src: url('../../assets_v2/fonts/Tajawal-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../../assets_v2/fonts/Tajawal-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../../assets_v2/fonts/Tajawal-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Tajawal';
    src: url('../../assets_v2/fonts/Tajawal-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

.website-page-fonts {
    font-family: 'Tajawal', sans-serif;
}

.website-page-fonts h1,
.website-page-fonts h2,
.website-page-fonts h3,
.website-page-fonts h4,
.website-page-fonts h5,
.website-page-fonts h6,
.website-page-fonts .font-heading {
    font-family: 'Tajawal', sans-serif;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.website-page-fonts p,
.website-page-fonts span,
.website-page-fonts a,
.website-page-fonts button {
    font-family: 'Tajawal', sans-serif;
}

.website-page-fonts .fw-medium {
    font-weight: 500;
}

.website-page-fonts .fw-semibold {
    font-weight: 600;
}

.website-page-fonts .fw-bold {
    font-weight: 700;
}

.website-page-fonts p {
    line-height: 1.85;
}

.website-page-fonts .modern-service-card h5 {
    font-size: 1.2rem;
    line-height: 1.5;
}

/* صفحة عرض الخدمات */
.services-page-hero {
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.services-page-hero__top {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.services-page-hero__back.btn {
    background-color: hsl(var(--main-h), var(--main-s), var(--main-l)) !important;
    color: #fff !important;
    border: none !important;
    padding: 0.55rem 1.35rem !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px !important;
    line-height: 1.5 !important;
}

.services-page-hero__back.btn:hover {
    opacity: 0.9;
    color: #fff !important;
}

.services-page-hero__body {
    max-width: 720px;
    margin-inline: auto;
}

.services-page-badge {
    display: inline-block;
    background: hsl(var(--main-h), var(--main-s), calc(var(--main-l) + (100% - var(--main-l)) * 0.85));
    color: hsl(var(--main-h), var(--main-s), var(--main-l));
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.4rem 1.25rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.services-page-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: hsl(var(--main-h), var(--main-s), var(--main-l));
    line-height: 1.35;
    margin-bottom: 1rem;
}

.services-page-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.85;
    margin-bottom: 0;
}

.services-org-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding: 0.75rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    font-weight: 600;
    color: var(--text-primary);
}

.services-org-chip i {
    color: var(--accent-color);
    font-size: 1.25rem;
}

.services-org-chip .badge {
    font-size: 0.8rem;
}

.services-org-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.services-org-tab {
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 999px;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.services-org-tab:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.12);
}

.services-org-tab.is-selected {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.services-org-tab .badge {
    margin-inline-start: 0.5rem;
    font-size: 0.75rem;
}

.services-org-tab.is-selected .badge {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
}

/* شريط التنقل */
.website-navbar {
    font-family: 'Tajawal', sans-serif;
}

.website-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 999;
}

.website-header .header.fixed-header {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.website-header__inner {
    padding: 0.85rem 0;
}

.website-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.05rem;
    transition: opacity 0.2s ease;
}

.website-header__brand:hover {
    color: var(--text-primary);
    opacity: 0.85;
}

.website-header__logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 10px;
    padding: 4px;
    background: hsl(var(--main-h), var(--main-s), calc(var(--main-l) + (100% - var(--main-l)) * 0.9));
}

.website-header__nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.website-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.15rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.website-nav-link:hover {
    color: hsl(var(--main-h), var(--main-s), var(--main-l));
    background: hsl(var(--main-h), var(--main-s), calc(var(--main-l) + (100% - var(--main-l)) * 0.9));
}

.website-nav-link.is-active {
    color: #fff;
    background: hsl(var(--main-h), var(--main-s), var(--main-l));
    border-color: hsl(var(--main-h), var(--main-s), var(--main-l));
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.35);
}

.website-header__login {
    padding: 0.55rem 1.35rem !important;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 999px !important;
}

.website-header__menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.website-header__menu-toggle:hover {
    border-color: hsl(var(--main-h), var(--main-s), var(--main-l));
    color: hsl(var(--main-h), var(--main-s), var(--main-l));
    background: hsl(var(--main-h), var(--main-s), calc(var(--main-l) + (100% - var(--main-l)) * 0.9));
}

.website-mobile-menu {
    border-inline-start: 1px solid #e5e7eb;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.08);
}

.website-mobile-menu .website-nav-link {
    width: 100%;
    justify-content: flex-start;
    margin-bottom: 0.5rem;
}

.website-mobile-menu .website-header__brand {
    margin-bottom: 1.5rem;
}

.website-mobile-menu .close-button {
    border: 1px solid #e5e7eb;
}

/* التذييل */
.website-footer {
    font-family: 'Tajawal', sans-serif;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}

.website-footer__main {
    padding: 3.5rem 0 2.5rem;
}

.website-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.website-footer__brand:hover {
    color: var(--text-primary);
}

.website-footer__logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 12px;
    padding: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.website-footer__desc {
    color: var(--text-secondary);
    line-height: 1.85;
    max-width: 520px;
    margin-bottom: 0;
}

.website-footer__title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.website-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.website-footer__link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}

.website-footer__link:hover {
    color: hsl(var(--main-h), var(--main-s), var(--main-l));
    transform: translateX(-3px);
}

.website-footer__bottom {
    border-top: 1px solid #e5e7eb;
    padding: 1.25rem 0;
    background: #fff;
}

.website-footer__copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}