/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-color: #00a385;
    --primary-dark: #00a385;
    --primary-light: #00a385;
    --secondary-color: #f8f9fa;
    --accent-color: #84d960;
    --text-color: #333;
    --light-text: #fff;
    --border-color: #e1e1e1;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --border-radius-xl: 20px;
    --border-radius-circle: 50%;
    --font-primary: 'Alexandria', sans-serif;
    --font-secondary: 'Cairo', sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background-color: #f5f5f5;
    line-height: 1.6;
    direction: rtl;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-normal);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeIn 1s ease;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    margin-bottom: 15px;
    font-family: var(--font-primary);
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    transition: width var(--transition-normal);
}

.section-title:hover h2::after {
    width: 120px;
}

.section-title p {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 18px;
    font-family: var(--font-secondary);
}

/* القسم العلوي */
header {
    padding: 15px 0;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo {
    max-width: 100px;
}

.logo img {
    width: 100%;
    height: auto;
}

.nav-menu ul {
    display: flex;
    gap: 20px;
}

.nav-menu ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
}

.nav-menu ul li a:hover,
.nav-menu ul li a.active {
    color: var(--primary-color);
    background-color: rgba(0, 163, 133, 0.1);
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.login-btn,
.register-btn {
    padding: 8px 20px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
}

.login-btn {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.login-btn:hover {
    background-color: rgba(0, 163, 133, 0.1);
}

.register-btn {
    background-color: var(--primary-color);
    color: white;
}

.register-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 163, 133, 0.2);
}

/* زر الهامبرجر */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* تعديلات للشاشات المتوسطة */
@media (max-width: 992px) {
    .auth-buttons {
        order: 3;
        margin-top: 15px;
        width: 100%;
        justify-content: center;
    }
    
    .nav-menu {
        order: 2;
    }
}

/* تعديلات للشاشات الصغيرة */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        order: 3;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 20px;
        transition: all 0.4s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu ul li {
        width: 100%;
    }
    
    .nav-menu ul li a {
        display: block;
        padding: 12px 15px;
    }
    
    .auth-buttons {
        order: 2;
        margin-top: 0;
        width: auto;
    }
    
    /* تعديل شكل زر الهامبرجر عند فتح القائمة */
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* إضافة طبقة داكنة خلف القائمة عند فتحها */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* تعديلات للشاشات الصغيرة جدًا */
@media (max-width: 576px) {
    .logo {
        max-width: 100px;
    }
    
    .auth-buttons {
        gap: 10px;
    }
    
    .login-btn,
    .register-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
}

/* قسم البانر الرئيسي */
.hero {
    background-color: #ffffff;
    color: var(--text-color);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.hero-content {
    flex: 1;
    min-width: 300px;
    animation: fadeInRight 1s ease;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
}

.hero-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #555;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
    animation: fadeInLeft 1s ease;
}

.hero-image img {
    max-width: 100%;
    border-radius: 10px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), #2a9d47);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(30, 126, 52, 0.3);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(30, 126, 52, 0.4);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* للأجهزة المحمولة */
@media (max-width: 768px) {
    .hero-wrapper {
        flex-direction: column;
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }
    
    .hero-content h1::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .hero-image {
        order: 1;
    }
}

/* قسم الإحصائيات */
.stats {
    background: white;
    color: var(--text-color);
    padding: 80px 0;
    margin-top: -50px;
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    z-index: 10;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/—Pngtree—golden-seamless-islamic-pattern_7694885.png);
    opacity: 0.05;
}

.stats::after {
    content: '';
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(30, 126, 52, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    text-align: center;
    position: relative;
    z-index: 2;
    gap: 20px;
}

.stat-item {
    flex: 1;
    min-width: 220px;
    margin: 10px;
    padding: 40px 25px;
    background-color: white;
    border-radius: var(--border-radius-md);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    transform: translateZ(-10px);
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: -15px;
    width: 50px;
    height: 50px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.4s ease;
}

.stat-item:hover {
    transform: translateY(-15px) rotateY(5deg);
    background-color:#00a385;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-item:hover::before {
    opacity: 1;
}

.stat-item:hover::after {
    opacity: 1;
    transform: scale(1.5);
}

.stat-icon {
    font-size: 45px;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    display: inline-block;
}

.stat-icon::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.2) translateY(-5px);
    color: white;
}

.stat-item:hover .stat-icon::after {
    width: 60px;
    background-color: var(--accent-color);
}

.stat-number {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.stat-number::after {
    content: '+';
    position: absolute;
    top: 0;
    left: -15px;
    font-size: 24px;
    opacity: 0.8;
    -webkit-text-fill-color: var(--accent-color);
    transition: all 0.3s ease;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    background: linear-gradient(to right, #fff, #fff);
    -webkit-background-clip: text;
}

.stat-item:hover .stat-number::after {
    -webkit-text-fill-color: white;
    transform: scale(1.1);
}

.stat-title {
    font-size: 18px;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.stat-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
    opacity: 0.7;
}

.stat-item:hover .stat-title {
    color: white;
    letter-spacing: 1.5px;
}

.stat-item:hover .stat-title::after {
    width: 50px;
    opacity: 1;
}

@media (max-width: 768px) {
    .stats {
        padding: 60px 0;
        margin-top: -30px;
    }
    
    .stat-item {
        min-width: 45%;
        margin: 10px 0;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-icon {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .stat-item {
        min-width: 100%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* قسم المميزات */
.features {
    padding: 100px 0;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/dots-pattern.png');
    opacity: 0.05;
    pointer-events: none;
}

.features-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-item {
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    padding: 40px 30px;
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-bottom: 4px solid transparent;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 126, 52, 0.05), rgba(255, 193, 7, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.feature-item:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
    border-bottom: 4px solid var(--primary-color);
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: var(--border-radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    position: relative;
    transition: all var(--transition-normal);
    box-shadow: 0 5px 15px rgba(30, 126, 52, 0.3);
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px dashed var(--primary-color);
    opacity: 0;
    transition: all var(--transition-normal);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-item:hover .feature-icon::after {
    opacity: 0.5;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.feature-item h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 22px;
    position: relative;
    padding-bottom: 15px;
    transition: all var(--transition-normal);
}

.feature-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-normal);
}

.feature-item:hover h3 {
    color: var(--primary-dark);
}

.feature-item:hover h3::after {
    width: 60px;
}

.feature-item p {
    color: #666;
    line-height: 1.7;
    transition: all var(--transition-normal);
}

.feature-item:hover p {
    color: #333;
}

/* قسم عن الأكاديمية */
.about {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(30, 126, 52, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.about::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 193, 7, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.about-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    gap: 50px;
}

.about-text {
    flex: 1;
    min-width: 300px;
    padding-left: 40px;
}

.about-text h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-right: 20px;
}

.about-text h2::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 5px;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.learn-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 20px;
    padding: 5px 0;
    position: relative;
    transition: all var(--transition-normal);
}

.learn-more::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all var(--transition-normal);
}

.learn-more:hover {
    color: var(--primary-dark);
    letter-spacing: 1px;
}

.learn-more:hover::after {
    height: 3px;
    background-color: var(--accent-color);
}

.about-video {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.about-video:hover {
    transform: scale(1.02);
}

.about-video img {
    width: 100%;
    height: auto;
    display: block;
    transition: all var(--transition-normal);
}

.about-video:hover img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.play-button::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: pulse 2s infinite;
}

.play-button:hover {
    background-color: var(--primary-dark);
    transform: translate(-50%, -50%) scale(1.1);
}

/* قسم المعلمين - النسخة المحسنة */
.teachers {
    padding: 100px 0;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.teachers::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-light.png');
    opacity: 0.05;
}

.teachers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.teacher-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.teacher-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.teacher-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.teacher-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.teacher-image {
    height: 280px;
    overflow: hidden;
    position: relative;
}

.teacher-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.teacher-card:hover .teacher-image::after {
    opacity: 1;
}

.teacher-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.teacher-card:hover .teacher-image img {
    transform: scale(1.1);
}

.teacher-info {
    padding: 25px;
    text-align: center;
    position: relative;
    background-color: white;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.teacher-name {
    margin: 0 0 10px;
    color: var(--primary-color);
    font-size: 22px;
    font-family: var(--font-primary);
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
    transition: all 0.3s ease;
}

.teacher-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.teacher-card:hover .teacher-name {
    color: var(--primary-dark);
}

.teacher-card:hover .teacher-name::after {
    width: 60px;
}

.teacher-title {
    color: #777;
    margin-bottom: 15px;
    font-size: 16px;
    font-family: var(--font-secondary);
}

.teacher-bio {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    font-family: var(--font-secondary);
}

.teacher-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.teacher-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-primary);
}

.stat-label {
    font-size: 14px;
    color: #777;
    font-family: var(--font-secondary);
}

.teacher-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.teacher-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    font-family: var(--font-secondary);
}

.view-all-teachers {
    display: block;
    margin: 50px auto 0;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 250px;
    font-family: var(--font-primary);
}

.view-all-teachers:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .teachers-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 576px) {
    .teachers-container {
        grid-template-columns: 1fr;
    }
}

/* قسم الدورات المتاحة */
.courses {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
}

.courses::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 126, 52, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.courses-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.course-card {
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    border: 1px solid var(--border-color);
    height: 100%;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}

.course-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.course-card:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.course-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.course-card:hover .course-image img {
    transform: scale(1.1);
}

.course-content {
    padding: 25px;
    text-align: right;
    width: 100%;
}

.course-icon {
    width: 70px;
    height: 70px;
    margin: -35px auto 15px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    border: 5px solid white;
    transition: all 0.3s ease;
}

.course-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.course-card:hover .course-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.course-card h3 {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.course-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.course-card:hover h3::after {
    width: 60px;
}

.course-details {
    margin-top: 15px;
    color: #666;
    font-size: 15px;
}

.course-details p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.course-details i {
    color: var(--primary-color);
    margin-left: 10px;
    font-size: 16px;
}

.course-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 18px;
}

.course-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: all 0.3s ease;
}

.course-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .courses-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .courses-container {
        grid-template-columns: 1fr;
    }
}

/* قسم الشهادات والتقييمات */
.testimonials {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(30, 126, 52, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.testimonial-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: -40px auto 20px;
    border: 5px solid white;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 2;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-content {
    padding: 0 30px 30px;
    text-align: center;
}

.testimonial-rating {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.testimonial-text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 50px;
    color: rgba(30, 126, 52, 0.1);
    position: absolute;
    font-family: serif;
}

.testimonial-text::before {
    top: -20px;
    right: -10px;
}

.testimonial-text::after {
    bottom: -40px;
    left: -10px;
}

.testimonial-author h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 18px;
}

.testimonial-author span {
    color: #888;
    font-size: 14px;
}

/* قسم الأسئلة الشائعة */
.faq {
    padding: 100px 0;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(30, 126, 52, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.faq-container {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    background-color: white;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.faq-question h3 {
    font-size: 18px;
    color: var(--text-color);
    transition: all var(--transition-normal);
}

.faq-icon {
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.faq-item.active .faq-icon i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-normal);
    border-top: 0px solid var(--border-color);
}

.faq-item.active .faq-answer {
    padding: 0 30px 20px;
    max-height: 1000px;
    border-top: 1px solid var(--border-color);
}

.faq-item.active .faq-question h3 {
    color: var(--primary-color);
}

.faq-answer p {
    color: #666;
    line-height: 1.8;
}

/* قسم المدونة */
.blog {
    padding: 100px 0;
    background-color: #fff;
    position: relative;
    overflow: hidden;
}

.blog::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background-color: rgba(255, 193, 7, 0.05);
    border-radius: 50%;
    z-index: 0;
}

.blog-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background-color: white;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #046e5b;
    color: white;
    padding: 10px 15px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.blog-date span:first-child {
    font-size: 20px;
    font-weight: 700;
}

.blog-date span:last-child {
    font-size: 14px;
}

.blog-content {
    padding: 25px;
}

.blog-category {
    display: inline-block;
    background-color: rgba(30, 126, 52, 0.1);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
}

.blog-card h3 {
    margin-bottom: 15px;
    transition: all var(--transition-normal);
}

.blog-card h3 a {
    color: var(--text-color);
}

.blog-card:hover h3 a {
    color: var(--primary-color);
}

.blog-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-normal);
}

.read-more i {
    margin-right: 5px;
    transition: transform var(--transition-normal);
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more:hover i {
    transform: translateX(-5px);
}

.view-all-container {
    text-align: center;
    margin-top: 50px;
}

.view-all-btn {
    display: inline-block;
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: all var(--transition-normal);
    border: 2px solid var(--primary-color);
}

.view-all-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* قسم التطبيق */
.app {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(30, 126, 52, 0.05), rgba(255, 193, 7, 0.05));
    position: relative;
    overflow: hidden;
}

.app-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 50px;
}

.app-content {
    flex: 1;
    min-width: 300px;
}

.app-content h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
}

.app-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.app-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.app-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: white;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.app-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.app-feature i {
    color: var(--primary-color);
    font-size: 20px;
}

.app-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.app-btn i {
    font-size: 24px;
}

.app-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.app-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.app-image img {
    max-width: 40%;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
    transition: all var(--transition-normal);
    animation: float 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .app-container {
        flex-direction: column-reverse;
    }
    
    .app-content h2::after {
        right: 50%;
        transform: translateX(50%);
    }
    
    .app-content {
        text-align: center;
    }
    
    .app-features {
        justify-content: center;
    }
    
    .app-buttons {
        justify-content: center;
    }
}
    .pricing {
    padding: 100px 0;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-light.png');
    opacity: 0.05;
    pointer-events: none;
}

.pricing-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    perspective: 1000px;
}

.pricing-card {
    width: 320px;
    margin: 0;
    padding: 50px 30px;
    background-color: white;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    z-index: 1;
    border-bottom: 5px solid transparent;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 126, 52, 0.03), rgba(255, 193, 7, 0.03));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.pricing-card.featured {
    transform: scale(1.05) translateY(-10px);
    border-bottom: 5px solid var(--primary-color);
    box-shadow: 0 15px 35px rgba(30, 126, 52, 0.2);
    z-index: 2;
}

.pricing-card.featured::before {
    opacity: 1;
}

.pricing-card.featured::after {
    content: 'الأكثر شيوعاً';
    position: absolute;
    top: 20px;
    right: -35px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 8px 40px;
    font-size: 14px;
    font-weight: 600;
    transform: rotate(45deg);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 3;
}

.pricing-card:hover {
    transform: translateY(-20px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-bottom: 5px solid var(--accent-color);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-20px) rotateY(5deg);
}

.pricing-header {
    position: relative;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
}

.pricing-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 26px;
    position: relative;
    display: inline-block;
}

.pricing-card h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.pricing-card:hover h3::after {
    width: 80px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.price::before {
    content: 'دولار';
    position: absolute;
    top: 5px;
    left: -40px;
    font-size: 16px;
    font-weight: 500;
    color: #777;
}

.price-period {
    display: block;
    color: #777;
    font-size: 14px;
    margin-top: 5px;
}

.pricing-card ul {
    margin-bottom: 35px;
    padding: 0 10px;
}

.pricing-card ul li {
    margin-bottom: 15px;
    position: relative;
    padding-right: 30px;
    text-align: right;
    color: #555;
    transition: all 0.3s ease;
}

.pricing-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    right: 0;
    top: 2px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.pricing-card:hover ul li {
    transform: translateX(-5px);
}

.pricing-card:hover ul li::before {
    color: var(--accent-color);
    transform: scale(1.2);
}

.subscribe-btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    padding: 12px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(30, 126, 52, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid transparent;
}

.subscribe-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: all 0.6s ease;
}

.subscribe-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(30, 126, 52, 0.4);
}

.subscribe-btn:hover::before {
    left: 100%;
}

.pricing-card.featured .subscribe-btn {
    background: linear-gradient(45deg, var(--accent-color), #ffdb4d);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.pricing-card.featured .subscribe-btn:hover {
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.4);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 30px;
    background-color: var(--accent-color);
    color: white;
    font-size: 12px;
    padding: 5px 15px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(-100%);
    transition: all 0.5s ease;
}

.pricing-card:hover .pricing-badge {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card.featured .pricing-badge {
    background-color: var(--primary-color);
}

@media (max-width: 768px) {
    .pricing-card {
        width: 100%;
        max-width: 350px;
        margin-bottom: 30px;
    }
    
    .pricing-card.featured {
        transform: scale(1.03);
    }
    
    .pricing-card:hover,
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

.pricing-card ul li:last-child {
    margin-bottom: 0;
}

/* الفوتر */
footer {
    background-color: white;
    color: var(--text-color);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border-color);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--primary-color));
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    flex: 1;
    min-width: 250px;
}

.footer-logo img {
    height: 70px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-links, 
.footer-contact, 
.footer-social {
    flex: 1;
    min-width: 200px;
}

footer h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    font-size: 22px;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: #666;
    transition: all var(--transition-normal);
    position: relative;
    padding-right: 15px;
}

.footer-links ul li a::before {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-right: 20px;
}

.footer-links ul li a:hover::before {
    color: var(--accent-color);
}

.footer-contact p {
    margin-bottom: 15px;
    color: #666;
    display: flex;
    align-items: center;
}

.footer-contact p i {
    color: var(--primary-color);
    margin-left: 15px;
    font-size: 18px;
    width: 25px;
    text-align: center;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #f5f5f5;
    border-radius: 50%;
    color: #666;
    font-size: 18px;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: #666;
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-content {
        gap: 30px;
    }
    
    .footer-logo, 
    .footer-links, 
    .footer-contact, 
    .footer-social {
        min-width: 100%;
    }
    
    footer h3::after {
        right: 0;
        left: 0;
        margin: auto;
    }
    
    .footer-links ul li a::before {
        right: 0;
    }
    
    .footer-links, 
    .footer-contact, 
    .footer-social,
    footer h3 {
        text-align: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* نموذج التواصل والاشتراك */
.contact {
    padding: 100px 0;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../images/quran-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url(/—Pngtree—golden-seamless-islamic-pattern_7694885.png);
    opacity: 0.05;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.contact-info {
    flex: 1;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 24px;
    position: relative;
    padding-bottom: 15px;
}

.contact-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 163, 133, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    color: var(--primary-color);
    font-size: 20px;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.contact-info-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-info-text p {
    color: #666;
    line-height: 1.6;
}



.contact-form {
    flex: 1.5;
    background-color: white;
    padding: 40px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.contact-form h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    color: var(--text-color);
    font-size: 16px;
    transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    background-color: white;
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
    color: #999;
}

.form-group .input-icon {
    position: absolute;
    top: 42px;
    left: 15px;
    color: #999;
    transition: all 0.3s ease;
}

.form-group input:focus + .input-icon,
.form-group textarea:focus + .input-icon {
    color: var(--primary-color);
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 5px 15px rgba(0, 163, 133, 0.2);
    position: relative;
    overflow: hidden;
}

.submit-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: all 0.6s;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 163, 133, 0.3);
}

.submit-btn:hover::before {
    left: 100%;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.form-check input {
    margin-left: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.form-check label {
    color: #666;
    font-size: 14px;
}

@media (max-width: 992px) {
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .contact-form, .contact-info {
        padding: 30px 20px;
    }
}

/* قسم الشركاء */
.partners {
    padding: 80px 0;
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-light.png');
    opacity: 0.05;
}

.partners .section-title {
    margin-bottom: 50px;
}

.partners-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
}

.partners-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(30, 126, 52, 0.1), transparent);
}

.partners-container img {
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-normal);
    padding: 10px 20px;
    background-color: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-sm);
}

.partners-container img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .partners-container {
        gap: 20px;
    }
    
    .partners-container img {
        height: 50px;
    }
}
        