/* Insaniya Core Design - Front End CSS - FINAL COMPLETE VERSION */
:root {
    --primary-color: #2E5BFF; /* أزرق حديث */
    --accent-color: #FFC107;  /* أصفر تعليمي */
    --text-dark: #1A1A2E;
    --text-gray: #6e6e80;
    --bg-light: #F9FAFC;
    --font-main: 'Cairo', sans-serif;
}

body {
    font-family: var(--font-main);
    direction: rtl;
    text-align: right;
    background-color: var(--bg-light);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ================= Hero Slider Section ================= */
.insaniya-hero-wrapper {
    position: relative;
    width: 100%;
    /* تداخل مع الإحصائيات في الأسفل */
    margin-bottom: 0; 
    padding-bottom: 100px; /* مسافة للقسم التالي */
    background: #fff;
}

.insaniya-hero-slider {
    width: 100%;
    height: 600px; /* ارتفاع السلايدر */
    border-radius: 0 0 50px 50px; /* القوس الجميل */
    overflow: hidden;
}

.hero-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* طبقة تعتيم سوداء لضمان قراءة النص */
.slide-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 900px !important;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: #fff; /* النص أبيض دائماً في السلايدر */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #f0f0f0;
    margin-bottom: 40px;
    line-height: 1.6;
}

.slide-btn {
    background-color: var(--primary-color);
    color: #fff;
    border: 2px solid transparent;
}

.slide-btn:hover {
    background-color: transparent;
    border-color: #fff;
    color: #fff;
}

/* تعديل أزرار Swiper */
.swiper-button-next, .swiper-button-prev {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
}

/* تعديل الموبايل */
@media (max-width: 768px) {
    .insaniya-hero-slider { height: 500px; }
    .hero-title { font-size: 2rem; }
}

/* ================= Stats Section ================= */
.insaniya-stats {
    background-color: var(--primary-color);
    padding: 50px 0;
    color: #fff;
    margin-top: -80px; /* تداخل مع الهيرو */
    position: relative;
    z-index: 10;
    border-radius: 20px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 20px 40px rgba(46, 91, 255, 0.2);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
    gap: 30px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* ================= About Section ================= */
.insaniya-about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    font-weight: 800;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.text-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* ================= Features Section ================= */
.insaniya-features {
    padding: 80px 0;
    background-color: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.4s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    background: #f4f7ff;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
}

.feature-card h3 {
    margin: 15px 0;
    font-size: 1.4rem;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ================= CTA Section ================= */
.insaniya-cta {
    padding: 60px 0 100px;
}

.cta-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a45e6 100%);
    border-radius: 30px;
    padding: 60px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(46, 91, 255, 0.2);
}

.cta-box h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--primary-color);
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: transform 0.2s;
}

.btn-white:hover {
    transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .insaniya-stats { width: 100%; border-radius: 0; margin-top: 0; }
    .about-grid { grid-template-columns: 1fr; }
}
/* ================= Testimonials Section ================= */
.insaniya-testimonials {
    padding: 80px 0;
    background-color: #f8f9fa; /* خلفية مختلفة قليلاً للتميز */
}

.testi-card {
    background: #fff;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
    height: 100%; /* لتوحيد الارتفاع */
}

.testi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
}

.quote-icon {
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.1;
    line-height: 1;
    margin-bottom: -20px;
    font-family: serif;
}

.testi-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto; /* دفع المعلومات للأسفل */
}

.user-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid #f0f4ff;
}

.user-info h4 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.user-info span {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* تنسيق نقاط التنقل (Dots) لتكون أسفل السلايدر */
.insaniya-testimonials .swiper-pagination {
    position: static;
    margin-top: 30px;
}