/* Global Styles - إعدادات عامة محسنة */

/* إعدادات أساسية محسنة */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    font-family: var(--primary-font);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--primary-font);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-color);
    letter-spacing: var(--letter-spacing-normal);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
}

/* WordPress specific body styles */
body:not(.wp-admin):not([class*="login"]),
body.block-editor-page,
.phenix-wp-design:not(.wp-admin) {
    --body-bg: var(--wp--preset--color--background);
    --typography-color: var(--wp--preset--color--text);
    --white: white;
    --inherit: inherit;
    --transparent: transparent;
}

@property --gradient-rotation {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false
}

/* ====== إعدادات التجاوب الشاملة ====== */

/* تجاوب للشاشات الكبيرة */
@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
    }
    
    h1 {
        font-size: var(--font-size-6xl);
    }
    
    h2 {
        font-size: var(--font-size-5xl);
    }
    
    h3 {
        font-size: var(--font-size-4xl);
    }
}

/* تجاوب للشاشات المتوسطة */
@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        max-width: 960px;
        margin: 0 auto;
        padding: 0 15px;
    }
    
    h1 {
        font-size: var(--font-size-5xl);
    }
    
    h2 {
        font-size: var(--font-size-4xl);
    }
    
    h3 {
        font-size: var(--font-size-3xl);
    }
    

}

/* تجاوب للهواتف */
@media (max-width: 767px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    body {
        font-size: 14px;
        line-height: 1.6;
    }
    
    h1 {
        font-size: var(--font-size-3xl);
        margin-bottom: 0.6em;
    }
    
    h2 {
        font-size: var(--font-size-2xl);
        margin-bottom: 0.5em;
    }
    
    h3 {
        font-size: var(--font-size-xl);
        margin-bottom: 0.4em;
    }
    

    
    p {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 1em;
    }
    
    /* إصلاح مشكلة التمرير الأفقي */
    .row {
        flex-wrap: wrap;
        margin-left: -7.5px;
        margin-right: -7.5px;
    }
    
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        padding-left: 7.5px;
        padding-right: 7.5px;
    }
    
    /* إصلاح مشكلة العرض في البطاقات */
    .card {
        margin-bottom: 15px;
        border-radius: var(--border-radius);
        box-shadow: var(--box-shadow);
    }
    
    /* إصلاح مشكلة العرض في الجداول */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* إصلاح مشكلة العرض في النماذج */
    .form-control {
        font-size: 16px;
    }
    
    /* إصلاح مشكلة العرض في المودال */
    .modal-dialog {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
}

/* تجاوب للهواتف الصغيرة */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    body {
        font-size: 13px;
        line-height: 1.5;
    }
    
    h1 {
        font-size: var(--font-size-2xl);
        margin-bottom: 0.5em;
    }
    
    h2 {
        font-size: var(--font-size-xl);
        margin-bottom: 0.4em;
    }
    
    h3 {
        font-size: var(--font-size-lg);
        margin-bottom: 0.3em;
    }
    

    
    p {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 0.8em;
    }
    
    .row {
        margin-left: -5px;
        margin-right: -5px;
    }
    
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        padding-left: 5px;
        padding-right: 5px;
    }
    
    .card {
        margin-bottom: 10px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: var(--border-radius);
    }
}

/* تجاوب للهواتف الصغيرة جداً */
@media (max-width: 360px) {
    .container {
        padding: 0 8px;
    }
    
    body {
        font-size: 12px;
        line-height: 1.4;
    }
    
    h1 {
        font-size: var(--font-size-xl);
        margin-bottom: 0.4em;
    }
    
    h2 {
        font-size: var(--font-size-lg);
        margin-bottom: 0.3em;
    }
    
    h3 {
        font-size: var(--font-size-base);
        margin-bottom: 0.2em;
    }
    

    
    p {
        font-size: 12px;
        line-height: 1.4;
        margin-bottom: 0.6em;
    }
    
    .row {
        margin-left: -4px;
        margin-right: -4px;
    }
    
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        padding-left: 4px;
        padding-right: 4px;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* إصلاحات خاصة للآيفون */
@media screen and (max-width: 767px) and (-webkit-min-device-pixel-ratio: 2) {
    body {
        -webkit-text-size-adjust: 100%;
    }
    
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* إعدادات الخطوط للعناوين */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--accent-font);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--text-color);
    margin-bottom: 0.5em;
    letter-spacing: var(--letter-spacing-tight);
}

h1 {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
}

h3 {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
}

h4 {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
}

h5 {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
}

h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
}

/* إعدادات الخطوط للروابط */
a {
    text-decoration: none;
    color: inherit;
    font-family: var(--primary-font);
    font-weight: var(--font-weight-normal);
    transition: color 0.3s ease;
    cursor: pointer;
}

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

/* إعدادات الخطوط للفقرات */
p {
    font-family: var(--primary-font);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--text-color);
    margin-bottom: 1em;
    letter-spacing: var(--letter-spacing-normal);
}

/* إعدادات الخطوط للقوائم */
ul, ol {
    font-family: var(--primary-font);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-relaxed);
    color: var(--text-color);
    margin-bottom: 1em;
    padding-left: 1.5em;
}

li {
    margin-bottom: 0.5em;
    letter-spacing: var(--letter-spacing-normal);
}

/* إعدادات الخطوط للنصوص الصغيرة */
small, .text-small {
    font-family: var(--secondary-font);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--text-color);
    opacity: 0.8;
}

/* إعدادات الخطوط للنصوص الكبيرة */
.text-large {
    font-family: var(--accent-font);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-relaxed);
    color: var(--text-color);
}

/* إعدادات الخطوط للنصوص السميكة */
.text-bold {
    font-weight: var(--font-weight-bold);
}

.text-semibold {
    font-weight: var(--font-weight-semibold);
}

/* إعدادات الخطوط للنصوص المائلة */
.text-italic {
    font-style: italic;
}

/* إعدادات الخطوط للنصوص المائلة */
.text-uppercase {
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wider);
}

/* ====== تحسين تصميم البطاقات في الصفحة الرئيسية ====== */
.values-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    padding: 4rem 0;
    max-width: 1400px;
    margin: 6.3rem auto 0 auto; /* إضافة هامش علوي 4 سنتي */
}

/* ====== خط فاصل ثابت على شكل نقشة ====== */
.values.py-5.bg-light {
    position: relative;
    padding-top: 8rem !important; /* تباعد أكبر من الأعلى */
    padding-bottom: 7rem !important; /* تباعد من الأسفل */
}

/* جعل النصوص داخل البطاقات أكثر سمكاً */
.values.py-5.bg-light .card-body p {
    font-weight: 600 !important;
    color: #2d3748 !important;
    line-height: 1.8 !important;
}

/* خط فاصل بسيط احترافي 
.values.py-5.bg-light::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
}*/

/* نص "هويتنا المؤسسية" في وسط الخط */
.values.py-5.bg-light .container::before {
    content: 'هويتنا المؤسسية';
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #333;
    padding: 0 2rem;
    font-family: var(--accent-font);
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.2;
}

/* خط تحت "هويتنا المؤسسية" */
.values.py-5.bg-light .container::after {
    content: '';
    position: absolute;
    top: 5.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2.7px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* تجاوب النص مع الشاشات المتوسطة */
@media (max-width: 768px) {
    .values.py-5.bg-light .container::before {
        font-size: 1.5rem;
        padding: 0 1.5rem;
        letter-spacing: 1px;
    }
}

/* تجاوب النص مع الهواتف */
@media (max-width: 480px) {
    .values.py-5.bg-light .container::before {
        font-size: 1.2rem;
        padding: 0 1rem;
        letter-spacing: 0.5px;
        top: 2.5rem;
    }
}

/* تجاوب النص مع الهواتف الصغيرة */
@media (max-width: 360px) {
    .values.py-5.bg-light .container::before {
        font-size: 1rem;
        padding: 0 0.8rem;
        letter-spacing: 0.3px;
        top: 1.8rem;
    }
}



.value-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 50%, #f0f2f5 100%);
    border-radius: 30px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 10px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid rgba(66, 103, 179, 0.08);
    backdrop-filter: blur(20px);
    direction: rtl;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 1rem;
}

.value-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
    border-width: 3px;
}

/* شريط الإتقان للبطاقة الرابعة */
.value-card.vision-card::before {
    content: "إتقان";
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    color: white;
    padding: 10px 45px;
    font-family: var(--accent-font);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    transform: rotate(45deg);
    box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
    z-index: 10;
}

/* عنوان البطاقة - كبير وبارز */
.value-card h3 {
    font-family: var(--accent-font);
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-black);
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.value-card h3::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(66, 103, 179, 0.4);
}

/* أيقونة البطاقة - أكبر وأجمل */
.value-card .card-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    box-shadow: 
        0 15px 40px rgba(66, 103, 179, 0.4),
        0 8px 20px rgba(66, 103, 179, 0.2),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.value-card:hover .card-icon {
    transform: scale(1.2) rotate(10deg);
    box-shadow: 
        0 25px 50px rgba(66, 103, 179, 0.5),
        0 12px 25px rgba(66, 103, 179, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.value-card .card-icon i {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* النص الفرعي - واضح ومقروء */
.value-card .card-subtitle {
    font-family: var(--secondary-font);
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    line-height: 1.4;
    opacity: 0.95;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* النص الرئيسي - أصغر وواضح */
.value-card .card-text {
    font-family: var(--primary-font);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    line-height: 2.2;
    color: #2d3748;
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0.95;
    letter-spacing: 0.02em;
    text-align: justify;
    text-align-last: center;
    hyphens: auto;
    word-break: keep-all;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
}

/* زر البطاقة - عصري وجذاب */
.value-card .card-btn {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(145deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-family: var(--accent-font);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    line-height: 1.5;
    letter-spacing: 0.02em;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 2px solid transparent;
    cursor: pointer;
    box-shadow: 
        0 12px 30px rgba(66, 103, 179, 0.4),
        0 6px 15px rgba(66, 103, 179, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
    min-width: 180px;
    text-transform: none;
    margin-top: auto;
}

.value-card .card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
}

.value-card .card-btn:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 45px rgba(66, 103, 179, 0.5),
        0 10px 25px rgba(66, 103, 179, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(145deg, var(--secondary-color) 0%, var(--accent-color) 50%, var(--primary-color) 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.value-card .card-btn:hover::before {
    left: 100%;
}

.value-card .card-btn:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(66, 103, 179, 0.4);
}

/* تحسين الألوان حسب نوع البطاقة */
.value-card.values-card {
    border-top: 5px solid var(--primary-color);
}

.value-card.goals-card {
    border-top: 5px solid var(--secondary-color);
}

.value-card.mission-card {
    border-top: 5px solid var(--accent-color);
}

.value-card.vision-card {
    border-top: 5px solid #ff6b9d;
}

/* تحسين التجاوب */
@media (max-width: 768px) {
    .values-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .value-card {
        padding: 2.5rem 2rem;
        min-height: 400px;
        margin: 0.5rem;
    }
    
    .value-card h3 {
        font-size: var(--font-size-2xl);
    }
    
    .value-card .card-icon {
        width: 80px;
        height: 80px;
    }
    
    .value-card .card-icon i {
        font-size: 2rem;
    }
    
    .value-card .card-btn {
        padding: 14px 28px;
        font-size: var(--font-size-base);
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .value-card {
        padding: 2rem 1.5rem;
        margin: 0.25rem;
        min-height: 380px;
    }
    
    .value-card h3 {
        font-size: var(--font-size-xl);
    }
    
    .value-card .card-text {
        font-size: var(--font-size-sm);
        line-height: 1.7;
    }
    
    .value-card .card-btn {
        padding: 12px 24px;
        font-size: var(--font-size-sm);
    }
}

/* ====== تحسين الأزرار في الموقع ====== */
.btn {
    font-family: var(--accent-font, 'Almarai', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif);
    font-weight: var(--font-weight-semibold, 600);
    font-size: var(--font-size-base, 1rem);
    line-height: var(--line-height-normal, 1.5);
    letter-spacing: var(--letter-spacing-wide, 0.025em);
    text-transform: none;
    border-radius: 30px;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    display: inline-block;
    min-width: 120px;
}

/* تأثير التوهج للأزرار */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

/* الأزرار الأولية */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(66, 103, 179, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(66, 103, 179, 0.4), 0 5px 15px rgba(66, 103, 179, 0.2);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(66, 103, 179, 0.3);
}

/* الأزرار الثانوية */
.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(110, 189, 99, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--secondary-color) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(110, 189, 99, 0.4), 0 5px 15px rgba(110, 189, 99, 0.2);
}

.btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(110, 189, 99, 0.3);
}

/* الأزرار المحددة */
.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(66, 103, 179, 0.1);
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(66, 103, 179, 0.3);
}

.btn-outline-secondary {
    background: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    box-shadow: 0 4px 15px rgba(110, 189, 99, 0.1);
}

.btn-outline-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(110, 189, 99, 0.3);
}

img {
    max-width: 100%;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Button Styles */
.btn {
    display: inline-block;
    /* background-color: var(--primary-color); */
    color: #09128b;
    padding: 12px 24px;
    width: 45%;
    border-radius: 30px;
    border: solid 1px;
    cursor: pointer;
    font-family: var(--accent-font);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: var(--line-height-normal);
    letter-spacing: var(--letter-spacing-wide);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(66, 103, 179, 0.2);
    text-transform: none;
    text-decoration: none;
    text-align: center;
}

.btn:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s ease;
    z-index: -1;
    border-radius: 30px;
}

.btn:hover:before {
    width: 100%;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(66, 103, 179, 0.3);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(66, 103, 179, 0.2);
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    color: var(--primary-color);
    font-size: 32px;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
}

.section-title h2:after {
    content: 'هويتنا المؤسسية';
    position: absolute;
    width: 200px;
    height: 2.7px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color)) !important;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
}

/* Header */
.header {
    /* background-color: var(--light-color); */
    /* padding: 15px 0; */
    /* box-shadow: var(--box-shadow); */
    /* padding: 5px 0; */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header.sticky {
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    background-color: var(--light-color);
    /* padding: 15px 0; */

}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: var(--transition);
}

.header.sticky .logo img {
    height: 40px;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li {
    margin-left: 30px;
    position: relative;
}

.navbar ul li a {
    color: var(--text-color);
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
    cursor: pointer;
}

.navbar ul li a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.navbar ul li a:hover:after,
.navbar ul li a.active:after {
    width: 100%;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: var(--primary-color);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.login-btn,
.register-btn {
    padding: 6px 19px !important;
    border-radius: 8px !important;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.login-btn {
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid #ddd;
}

.login-btn:hover {
    background-color: #f0f0f0;
    border-color: #ccc;
    transform: translateY(-2px);
}

.register-btn {
    background-color: var(--primary-color);
    color: var(--light-color);
    box-shadow: 0 4px 10px rgba(66, 103, 179, 0.2);
}

.register-btn:hover {
    background-color: #345494;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(66, 103, 179, 0.3);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    /* background-color: ; */
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(66, 103, 179, 0.05);
    z-index: 0;
}

.hero:after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(110, 189, 99, 0.05);
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    background: linear-gradient(to right, var(--danger-color), #5848D2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
    font-size: 51px;
    font-weight: 700;
    /* color: var(--primary-color); */
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-text p {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero-text .btn {
    animation: fadeInUp 1s ease 0.4s forwards;
    opacity: 0;
}

.hero-image {
    flex: 1;
    max-width: 500px;
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

.hero-image img {
    /* border-radius: var(--border-radius); */
    /* box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); */
    animation: float 6s ease-in-out infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Values Section */
.values {
    padding: 100px 0;
    /* background-image: linear-gradient(var(--gradient-rotation), #fff, var(--secondary-offwhite)) !important; */

    position: relative;
}

.values:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.png');
    background-size: cover;
    opacity: 0.03;
    z-index: 0;
}

.values-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.value-card {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    transform: translateY(30px);
    opacity: 0;
    cursor: pointer;
}

.value-card.animate {
    transform: translateY(0);
    opacity: 1;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.value-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(66, 103, 179, 0.02), transparent);
    z-index: -1;
    transition: var(--transition);
}

.value-card:hover:before {
    height: 100%;
}

.value-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-color: #f9f9f9;
    transition: var(--transition);
}

.value-card:hover .value-image {
    background-color: #f5f7fa;
}

.value-image img {
    max-height: 100%;
    max-width: 100%;
    transition: var(--transition);
}

.value-card:hover .value-image img {
    transform: scale(1.05);
}

.value-content {
    padding: 25px;
    text-align: center;
}

.value-content h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.value-content h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.value-card:hover .value-content h3:after {
    width: 60px;
}

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

.value-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 8px 25px;
    border: 1px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
}

.value-btn:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(66, 103, 179, 0.2);
}

.featured {
    border-top: 4px solid var(--primary-color);
}

.feature-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(66, 103, 179, 0.2);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.portfolio:before {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(66, 103, 179, 0.03);
    z-index: 0;
}

.portfolio:after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 189, 62, 0.03);
    z-index: 0;
}

/* تحسين عنوان القسم */
.portfolio .section-title h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.portfolio .section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2.7px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(66, 103, 179, 0.2);
}

/* تحسين أزرار الفلتر */
.portfolio-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    gap: 15px;
}

.filter-btn {
    padding: 12px 28px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    background-color: white;
    color: #666;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(66, 103, 179, 0.15);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 103, 179, 0.25);
}

/* تحسين البطاقات */
.portfolio-item {
    margin-bottom: 30px;
    transition: all 0.4s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    background: white;
    cursor: pointer;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item .portfolio-content {
    padding: 25px;
    background: white;
}

.portfolio-item h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.portfolio-item p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* تجاوب للشاشات الكبيرة */
@media (min-width: 1200px) {
    .portfolio {
        padding: 120px 0;
    }
    
    .portfolio .section-title h2 {
        font-size: 3rem;
    }
    
    .filter-btn {
        padding: 15px 35px;
        font-size: 1.1rem;
    }
    
    .portfolio-item img {
        height: 280px;
    }
}

/* تجاوب للشاشات المتوسطة */
@media (min-width: 768px) and (max-width: 1199px) {
    .portfolio {
        padding: 60px 0;
    }
    
    .portfolio .section-title h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .portfolio .section-title h2::after {
        width: 70%;
        height: 2.5px;
    }
    
    .portfolio-filter {
        gap: 12px;
        margin-bottom: 35px;
    }
    
    .filter-btn {
        padding: 10px 25px;
        font-size: 0.95rem;
        min-width: 110px;
    }
    
    .portfolio-container {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
    
    .portfolio-item img {
        height: 200px;
    }
    
    .portfolio-item .portfolio-content {
        padding: 18px;
    }
    
    .portfolio-item h3 {
        font-size: 1.2rem;
    }
    
    .portfolio-item p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
}

/* تجاوب للهواتف */
@media (max-width: 767px) {
    .portfolio {
        padding: 40px 0;
    }
    
    .portfolio .section-title h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .portfolio .section-title h2::after {
        width: 60%;
        height: 2px;
    }
    
    .portfolio-filter {
        gap: 8px;
        margin-bottom: 25px;
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 20px;
        min-width: 120px;
        margin: 2px 0;
    }
    
    .portfolio-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .portfolio-item {
        margin-bottom: 15px;
    }
    
    .portfolio-item img {
        height: 180px;
    }
    
    .portfolio-item .portfolio-content {
        padding: 15px;
    }
    
    .portfolio-item h3 {
        font-size: 1.1rem;
    }
    
    .portfolio-item p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* تجاوب للهواتف الصغيرة */
@media (max-width: 480px) {
    .portfolio {
        padding: 30px 0;
    }
    
    .portfolio .section-title h2 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }
    
    .portfolio .section-title h2::after {
        width: 70%;
        height: 1.5px;
    }
    
    .portfolio-filter {
        gap: 5px;
        margin-bottom: 20px;
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
        border-radius: 15px;
        min-width: 100px;
        margin: 1px 0;
    }
    
    .portfolio-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .portfolio-item {
        margin-bottom: 10px;
    }
    
    .portfolio-item img {
        height: 150px;
    }
    
    .portfolio-item .portfolio-content {
        padding: 10px;
    }
    
    .portfolio-item h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .portfolio-item p {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 10px;
    }
}

.portfolio-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.portfolio-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgb(0 0 0 / 26%);
    transition: var(--transition);
    position: relative;
    transform: translateY(30px);
    opacity: 0;
}

.portfolio-item.animate {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(66, 103, 179, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--light-color);
    padding: 20px;
    text-align: center;
    opacity: 0;
    transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 22px;
    margin-bottom: 10px;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.1s;
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay p {
    font-size: 16px;
    margin-bottom: 15px;
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.2s;
    opacity: 0;
}

.portfolio-item:hover .portfolio-overlay p {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay .btn {
    transform: translateY(20px);
    transition: var(--transition);
    transition-delay: 0.3s;
    opacity: 1;
    padding: 8px 20px;
    font-size: 14px;
    background: #0059e0;
    color: #ffffff;
}

.portfolio-item:hover .portfolio-overlay .btn {
    transform: translateY(0);
    opacity: 1;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light-color);
    position: relative;
}

.contact:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.png');
    background-size: cover;
    opacity: 0.03;
    z-index: 0;
}

.contact-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.contact-item {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 40px 30px;
    text-align: center;
    flex: 0 0 calc(50% - 40px);
    max-width: 350px;
    transition: var(--transition);
    transform: translateY(30px);
    opacity: 0;
    cursor: pointer;
}

.contact-item.animate {
    transform: translateY(0);
    opacity: 1;
}

.contact-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
    display: inline-block;
}

.contact-item:hover i {
    transform: scale(1.1) rotate(10deg);
}

.contact-item h3 {
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.contact-item h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.contact-item:hover h3:after {
    width: 60px;
}

.contact-item p {
    color: #666;
    font-size: 18px;
    transition: var(--transition);
}

.contact-item:hover p {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: #f6f9ff;
    color: #000000;
    padding: 0px 0;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.footer p {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.wave {
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
    height: 15px;
    background: url('../images/wave.svg');
    background-size: 1000px 100%;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background-color: var(--primary-color);
    color: var(--light-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    animation: pulse 2s infinite;
}

.back-to-top:hover {
    background-color: #345494;
    transform: translateY(-5px);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 103, 179, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(66, 103, 179, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(66, 103, 179, 0);
    }
}

/* Animation for scroll reveal */
.fade-in {
    opacity: 1 !important;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 991px) {
    .section-title h2 {
        font-size: 28px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 40px;
    }

    .value-card,
    .portfolio-item,
    .contact-item {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
        z-index: 1010;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        height: 45vh;
        width: 100%;
        background-color: var(--light-color);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease-in-out;
        flex-direction: column;
        padding: 80px 30px 30px;
        z-index: 1005;
    }

    .navbar.show {
        right: 0;
        display: block;
    }

    .navbar ul {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    .navbar ul li {
        margin: 10px 0;
        width: 100%;
    }

    .navbar ul li a {
        display: block;
        padding: 10px 0;
        width: 100%;
        font-size: 18px;
    }

    .auth-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        left: 0;
        padding: 0 30px;
        bottom: 80px;
    }

    .auth-buttons a {
        display: block;
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }

    /* تعديلات لمعرض المشاريع في وضع الهاتف */
    .portfolio-container {
        grid-template-columns: 1fr !important;
    }

    .portfolio-filter button {
        margin-bottom: 8px;
    }

    .contact-item {
        margin-bottom: 30px;
    }

    /* تعديلات إضافية لضمان تجاوب أفضل في وضع الهاتف */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-image {
        margin-top: 30px;
        max-width: 100%;
    }

    .hero-text {
        padding: 0 20px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {

    /* نخفي نص span داخل زر الواتساب */
    .whatsapp-btn span.d-none.d-md-inline {
        display: none !important;
    }

    .contact-btn span.d-none.d-md-inline {
        display: none !important;
    }

    /* نعيد ضبط البادينغ حتى لا يختفي الأيقونة */
    .whatsapp-btn {
        padding: 0.5rem;
        /* عدّله حسب ما يناسب تصميمك */
    }

    .contact-btn {
        padding: 0.5rem;
        /* عدّله حسب ما يناسب تصميمك */
    }

    /* ونتأكد أن الأيقونة تظهر بالحجم الطبيعي */
    .whatsapp-btn i {
        font-size: 1.25rem;
    }

    .contact-btn i {
        font-size: 1.25rem;
    }

}

@media (max-width: 576px) {
    .section-title h2 {
        font-size: 22px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text p {
        font-size: 16px;
    }

    .values-container {
        grid-template-columns: 1fr;
    }

    .portfolio-container {
        grid-template-columns: 1fr;
    }

    .portfolio-filter {
        flex-wrap: wrap;
        justify-content: center;
    }

    .filter-btn {
        margin: 5px;
        padding: 8px 15px;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
    }
}

/* تنسيقات للشاشات المتوسطة-الكبيرة */
@media (min-width: 992px) and (max-width: 1411px) {

    /* تنسيقات القائمة والهيدر */
    .header {
        padding: 10px 0;
    }

    .header .container {
        display: flex;
        justify-content: normal;
        align-items: center;
    }

    .navbar {
        padding-right: 100px;
    }

    .navbar ul li {
        margin-left: 45px;
        position: relative;
    }

    .navbar ul li a {
        font-size: 15px;
    }

    /* تنسيقات العناوين */
    h1,
    .h1 {
        font-size: 2.5rem;
    }

    h2,
    .h2 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 30px;
    }

    /* قسم البطاقات */
    .value-card {
        padding: 25px;
    }

    .value-content h3 {
        font-size: 1.3rem;
    }

    /* تنسيقات معرض الأعمال */
    .portfolio-container {
        gap: 20px;
    }

    .portfolio-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 1.5rem;
    }

    .portfolio-item img {
        height: 240px;
    }

    /* تنسيقات التواصل */
    .contact-item {
        padding: 25px 20px;
    }

    .contact-item i {
        font-size: 2.5rem;
    }

    /* الأزرار والعناصر الأخرى */
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .auth-buttons .btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    /* تحسينات للجالري */
    .gallery-card {
        margin-bottom: 20px;
    }

    .gallery-body {
        padding: 15px;
    }

    .gallery-title {
        font-size: 1.1rem;
    }

    .gallery-description {
        font-size: 0.85rem;
    }
}

/* تنسيقات للشاشات المتوسطة-الكبيرة */
@media (min-width: 1411px) {
    /* تنسيقات القائمة والهيدر */
    /* .header {
        padding: 10px 0;
    } */

    .header .container {
        display: flex;
        justify-content: normal !important;
        align-items: center;
    }

    .navbar {
        padding-right: 170px;
    }

    .navbar ul li {
        margin-left: 45px;
        position: relative;
    }

    .navbar ul li a {
        font-size: 15px;
    }

    /* تنسيقات العناوين */
    h1,
    .h1 {
        font-size: 2.5rem;
    }

    h2,
    .h2 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 30px;
    }

    /* قسم البطاقات */
    .value-card {
        padding: 25px;
    }

    .value-content h3 {
        font-size: 1.3rem;
    }

    /* تنسيقات معرض الأعمال */
    .portfolio-container {
        gap: 20px;
    }

    .portfolio-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    .portfolio-item img {
        height: 240px;
    }

    /* تنسيقات التواصل */
    .contact-item {
        padding: 25px 20px;
    }

    .contact-item i {
        font-size: 2.5rem;
    }

    /* الأزرار والعناصر الأخرى */
    .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .auth-buttons .btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    /* تحسينات للجالري */
    .gallery-card {
        margin-bottom: 20px;
    }

    .gallery-body {
        padding: 15px;
    }

    .gallery-title {
        font-size: 1.1rem;
    }

    .gallery-description {
        font-size: 0.85rem;
    }
}

/* ====== قسم آراء الطلاب (مطابق للصورة الأولى) ====== */
.testimonials-section {
    background: url('../images/bg/testimonials-bg-3.webp') top 55px center no-repeat;
    background-size: auto 80%;
    /* padding: 30px 0 80px; */
    text-align: center;
    overflow-x: hidden;
}

.lineunder {
    text-align: center;
    background: url('../images/bg/voiceline2.webp') bottom center no-repeat;
    background-size: 150px auto;
    padding-bottom: 13px;
    margin-bottom: 30px;
}

.quote {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.8;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    /* transition: all 0.3s ease-in-out; */
    position: relative;

}

.quote p {
    background: url('../images/bg/quote.svg') top right no-repeat;
    background-size: 26px auto;
    padding-inline-start: 36px;

}

/* ========== تخصيص زر الإغلاق في الهيدر ========= */
.modal-header .btn-close {
    width: 32px;
    height: 32px;
    margin: -8px -8px -8px auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background .2s;
}

.modal-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* ========== تحسين أزرار التعديل والحذف ========= */
.btn-group .edit-comment,
.btn-group .delete-comment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 1rem;
    transition: transform .2s, box-shadow .2s;
}

.btn-group .edit-comment {
    color: #fff;
    background-color: #0d6efd;
    border: none;
}

.btn-group .edit-comment:hover {
    background-color: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.3);
}

.btn-group .delete-comment {
    color: #dc3545;
    background: transparent;
    border: 2px solid #dc3545;
}

.btn-group .delete-comment:hover {
    background-color: #dc3545;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.3);
}

/* ========== تنسيق أزرار المودال في الفوتر ========= */
.modal-footer .btn-outline-secondary {
    border-radius: 4px;
    padding: 0.5rem 1rem;
}

.modal-footer .btn-outline-secondary:hover {
    background-color: #f8f9fa;
}

.modal-footer .btn-primary {
    border-radius: 4px;
    padding: 0.5rem 1.2rem;
}

.modal-footer .btn-primary:hover {
    background-color: #0056b3;
}

/* ========== تحسين ظهور الجدول ========= */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.1);
}

.table th,
.table td {
    vertical-align: middle;
}

/* ========== تنسيق المودال الأكبر ========= */
#testimonialModal .modal-dialog {
    max-width: 800px;
}

#testimonialModal .modal-body {
    max-height: 60vh;
    overflow-y: auto;
}

/* ========== أنماط عامة للأيقونات ========= */
.rating-star {
    font-size: 1.4rem;
    margin-right: 0.25rem;
    cursor: pointer;
    transition: transform .1s;
}

.rating-star:hover {
    transform: scale(1.2);
}

/* ===== قسم تواصل معنا ===== */
#contact {
    padding: 2rem 0;
    background: #f8f9fa;
}

#contact .section-title h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    text-align: center;
    color: var(--primary-color);
}

#contact .contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

#contact .contact-item {
    flex: 0 1 200px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 1rem;
    transition: transform .2s, box-shadow .2s;
}

#contact .contact-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* أيقونات أكبر ومركزّة */
#contact .contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: .5rem;
}

/* عناوين مصغّرة */
#contact .contact-item h3 {
    font-size: 1rem;
    margin-bottom: .25rem;
    color: #333;
}

/* نص الاتصال */
#contact .contact-item p {
    font-size: .875rem;
    color: #555;
    margin: 0;
}

/* روابط السوشيال أقل ارتفاعاً */
#contact .social-links a {
    display: inline-block;
    margin: 0 .5rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    transition: color .2s;
}

#contact .social-links a:hover {
    color: var(--primary-color-dark);
}

.contact-card {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* تضييق المسافة الرأسية للعنوان */
#contact .section-title h2 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
}

/* تصغير الأيقونات وتوحيد المسافات */
#contact i {
    display: block;
    margin: 0 auto .5rem;
}

/* نص صغير لعنوان البطاقة */
#contact h5 {
    font-size: 1rem;
    margin-bottom: .25rem;
}

/* تباعد موحد لفقرة المحتوى */
#contact p.small {
    margin: 0;
    font-size: .875rem;
}

/* روابط السوشيال */
#contact .text-center a {
    font-size: 0.8rem;
    margin: 0 .5rem;
    transition: color .2s;
}

#contact .text-center a:hover {
    /* color: var(--primary-color); */
}

/* ==== تجاوب ==== */
@media (max-width: 576px) {
    #contact .contact-item {
        flex: 0 1 100%;
        max-width: 100%;
    }
}

/* ====== Unified Interactive Element Utility Class ====== */
.interactive-element {
    cursor: pointer !important;
}