اريد اضافة لغة عربية للموقع
Browse files- index.html +88 -32
- style.css +126 -3
index.html
CHANGED
|
@@ -37,11 +37,14 @@ document.addEventListener('DOMContentLoaded', function() {
|
|
| 37 |
|
| 38 |
// Custom styles
|
| 39 |
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
|
|
|
|
|
|
|
|
|
| 45 |
/* Rest of your custom styles */
|
| 46 |
|
| 47 |
|
|
@@ -349,9 +352,10 @@ Route::prefix('admin')->group(function () {
|
|
| 349 |
<meta charset="UTF-8">
|
| 350 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 351 |
<title>موقع الشركة</title>
|
|
|
|
| 352 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 353 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 354 |
-
|
| 355 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
|
| 356 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>
|
| 357 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollToPlugin.min.js"></script>
|
|
@@ -362,10 +366,8 @@ Route::prefix('admin')->group(function () {
|
|
| 362 |
<link rel="stylesheet" href="https://unpkg.com/tippy.js@6/dist/tippy.css"/>
|
| 363 |
<script src="https://unpkg.com/tippy.js@6/dist/tippy.min.js"></script>
|
| 364 |
<style>
|
| 365 |
-
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');
|
| 366 |
-
|
| 367 |
/* Mouse Follower Effect */
|
| 368 |
-
|
| 369 |
position: fixed;
|
| 370 |
width: 40px;
|
| 371 |
height: 40px;
|
|
@@ -439,42 +441,54 @@ Route::prefix('admin')->group(function () {
|
|
| 439 |
<div class="w-12 h-12 bg-blue-600 rounded-full flex items-center justify-center text-white font-bold text-xl mr-2">ش</div>
|
| 440 |
<h1 class="text-xl font-bold text-gray-800">شركتنا</h1>
|
| 441 |
</div>
|
| 442 |
-
|
| 443 |
<!-- Navigation -->
|
| 444 |
<nav class="hidden md:block">
|
| 445 |
<ul class="flex space-x-6 space-x-reverse">
|
| 446 |
-
<li><a href="#" class="text-blue-600 font-medium hover:text-blue-800">الرئيسية</a></li>
|
| 447 |
-
<li><a href="#" class="text-gray-600 hover:text-blue-600">من نحن</a></li>
|
| 448 |
-
<li><a href="#" class="text-gray-600 hover:text-blue-600">خدماتنا</a></li>
|
| 449 |
-
<li><a href="#" class="text-gray-600 hover:text-blue-600">معرض الصور</a></li>
|
| 450 |
-
<li><a href="#" class="text-gray-600 hover:text-blue-600">الفيديوهات</a></li>
|
| 451 |
-
<li><a href="#" class="text-gray-600 hover:text-blue-600">اتصل بنا</a></li>
|
| 452 |
</ul>
|
| 453 |
</nav>
|
| 454 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 455 |
<!-- Mobile Menu Button -->
|
| 456 |
<button id="mobile-menu-button" class="md:hidden text-gray-600">
|
| 457 |
<i class="fas fa-bars text-2xl"></i>
|
| 458 |
</button>
|
| 459 |
-
|
| 460 |
-
<!-- Admin Login -->
|
| 461 |
-
<button id="admin-login-btn" class="hidden md:block bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition duration-300">
|
| 462 |
-
<i class="fas fa-lock mr-2"></i>لوحة التحكم
|
| 463 |
-
</button>
|
| 464 |
-
</div>
|
| 465 |
-
|
| 466 |
<!-- Mobile Menu -->
|
| 467 |
<div id="mobile-menu" class="hidden md:hidden bg-white py-2 px-4 shadow-lg">
|
| 468 |
<ul class="flex flex-col space-y-3">
|
| 469 |
-
<li><a href="#" class="block py-2 text-blue-600 font-medium">الرئيسية</a></li>
|
| 470 |
-
<li><a href="#" class="block py-2 text-gray-600 hover:text-blue-600">من نحن</a></li>
|
| 471 |
-
<li><a href="#" class="block py-2 text-gray-600 hover:text-blue-600">خدماتنا</a></li>
|
| 472 |
-
<li><a href="#" class="block py-2 text-gray-600 hover:text-blue-600">معرض الصور</a></li>
|
| 473 |
-
<li><a href="#" class="block py-2 text-gray-600 hover:text-blue-600">الفيديوهات</a></li>
|
| 474 |
-
<li><a href="#" class="block py-2 text-gray-600 hover:text-blue-600">اتصل بنا</a></li>
|
| 475 |
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 476 |
</div>
|
| 477 |
-
|
| 478 |
|
| 479 |
<!-- Enhanced Slider Section with Swiper -->
|
| 480 |
<section class="relative overflow-hidden">
|
|
@@ -954,12 +968,54 @@ Route::prefix('admin')->group(function () {
|
|
| 954 |
</div>
|
| 955 |
|
| 956 |
<script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 957 |
// Custom Cursor Effect
|
| 958 |
const cursorFollower = document.createElement('div');
|
| 959 |
cursorFollower.classList.add('cursor-follower');
|
| 960 |
document.body.appendChild(cursorFollower);
|
| 961 |
-
|
| 962 |
-
document.addEventListener('mousemove', (e) => {
|
| 963 |
gsap.to(cursorFollower, {
|
| 964 |
x: e.clientX,
|
| 965 |
y: e.clientY,
|
|
|
|
| 37 |
|
| 38 |
// Custom styles
|
| 39 |
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');
|
| 40 |
+
body {
|
| 41 |
+
font-family: 'Tajawal', sans-serif;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
/* Smooth transitions for language switching */
|
| 45 |
+
.lang-text, [data-ar][data-en] {
|
| 46 |
+
transition: opacity 0.3s ease;
|
| 47 |
+
}
|
| 48 |
/* Rest of your custom styles */
|
| 49 |
|
| 50 |
|
|
|
|
| 352 |
<meta charset="UTF-8">
|
| 353 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 354 |
<title>موقع الشركة</title>
|
| 355 |
+
<link rel="stylesheet" href="style.css">
|
| 356 |
<script src="https://cdn.tailwindcss.com"></script>
|
| 357 |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
| 358 |
+
<!-- Advanced Animation Libraries -->
|
| 359 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
|
| 360 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollTrigger.min.js"></script>
|
| 361 |
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/ScrollToPlugin.min.js"></script>
|
|
|
|
| 366 |
<link rel="stylesheet" href="https://unpkg.com/tippy.js@6/dist/tippy.css"/>
|
| 367 |
<script src="https://unpkg.com/tippy.js@6/dist/tippy.min.js"></script>
|
| 368 |
<style>
|
|
|
|
|
|
|
| 369 |
/* Mouse Follower Effect */
|
| 370 |
+
.cursor-follower {
|
| 371 |
position: fixed;
|
| 372 |
width: 40px;
|
| 373 |
height: 40px;
|
|
|
|
| 441 |
<div class="w-12 h-12 bg-blue-600 rounded-full flex items-center justify-center text-white font-bold text-xl mr-2">ش</div>
|
| 442 |
<h1 class="text-xl font-bold text-gray-800">شركتنا</h1>
|
| 443 |
</div>
|
|
|
|
| 444 |
<!-- Navigation -->
|
| 445 |
<nav class="hidden md:block">
|
| 446 |
<ul class="flex space-x-6 space-x-reverse">
|
| 447 |
+
<li><a href="#" class="text-blue-600 font-medium hover:text-blue-800" data-ar="الرئيسية" data-en="Home">الرئيسية</a></li>
|
| 448 |
+
<li><a href="#" class="text-gray-600 hover:text-blue-600" data-ar="من نحن" data-en="About">من نحن</a></li>
|
| 449 |
+
<li><a href="#" class="text-gray-600 hover:text-blue-600" data-ar="خدماتنا" data-en="Services">خدماتنا</a></li>
|
| 450 |
+
<li><a href="#" class="text-gray-600 hover:text-blue-600" data-ar="معرض الصور" data-en="Gallery">معرض الصور</a></li>
|
| 451 |
+
<li><a href="#" class="text-gray-600 hover:text-blue-600" data-ar="الفيديوهات" data-en="Videos">الفيديوهات</a></li>
|
| 452 |
+
<li><a href="#" class="text-gray-600 hover:text-blue-600" data-ar="اتصل بنا" data-en="Contact">اتصل بنا</a></li>
|
| 453 |
</ul>
|
| 454 |
</nav>
|
| 455 |
|
| 456 |
+
<!-- Language Switcher -->
|
| 457 |
+
<div class="flex items-center gap-4">
|
| 458 |
+
<div class="lang-switcher hidden md:flex">
|
| 459 |
+
<button class="lang-btn active" onclick="switchLanguage('ar')" id="btn-ar" aria-label="تغيير للعربية">العربية</button>
|
| 460 |
+
<button class="lang-btn" onclick="switchLanguage('en')" id="btn-en" aria-label="Switch to English">English</button>
|
| 461 |
+
</div>
|
| 462 |
+
|
| 463 |
+
<!-- Admin Login -->
|
| 464 |
+
<button id="admin-login-btn" class="hidden md:block bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 transition duration-300">
|
| 465 |
+
<i class="fas fa-lock mr-2"></i><span class="lang-text" data-ar="لوحة التحكم" data-en="Admin">لوحة التحكم</span>
|
| 466 |
+
</button>
|
| 467 |
+
</div>
|
| 468 |
+
|
| 469 |
<!-- Mobile Menu Button -->
|
| 470 |
<button id="mobile-menu-button" class="md:hidden text-gray-600">
|
| 471 |
<i class="fas fa-bars text-2xl"></i>
|
| 472 |
</button>
|
| 473 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 474 |
<!-- Mobile Menu -->
|
| 475 |
<div id="mobile-menu" class="hidden md:hidden bg-white py-2 px-4 shadow-lg">
|
| 476 |
<ul class="flex flex-col space-y-3">
|
| 477 |
+
<li><a href="#" class="block py-2 text-blue-600 font-medium lang-text" data-ar="الرئيسية" data-en="Home">الرئيسية</a></li>
|
| 478 |
+
<li><a href="#" class="block py-2 text-gray-600 hover:text-blue-600 lang-text" data-ar="من نحن" data-en="About">من نحن</a></li>
|
| 479 |
+
<li><a href="#" class="block py-2 text-gray-600 hover:text-blue-600 lang-text" data-ar="خدماتنا" data-en="Services">خدماتنا</a></li>
|
| 480 |
+
<li><a href="#" class="block py-2 text-gray-600 hover:text-blue-600 lang-text" data-ar="معرض الصور" data-en="Gallery">معرض الصور</a></li>
|
| 481 |
+
<li><a href="#" class="block py-2 text-gray-600 hover:text-blue-600 lang-text" data-ar="الفيديوهات" data-en="Videos">الفيديوهات</a></li>
|
| 482 |
+
<li><a href="#" class="block py-2 text-gray-600 hover:text-blue-600 lang-text" data-ar="اتصل بنا" data-en="Contact">اتصل بنا</a></li>
|
| 483 |
</ul>
|
| 484 |
+
<div class="mt-4 pt-4 border-t border-gray-200">
|
| 485 |
+
<div class="lang-switcher flex justify-center">
|
| 486 |
+
<button class="lang-btn active" onclick="switchLanguage('ar')" id="btn-ar-mobile">العربية</button>
|
| 487 |
+
<button class="lang-btn" onclick="switchLanguage('en')" id="btn-en-mobile">English</button>
|
| 488 |
+
</div>
|
| 489 |
+
</div>
|
| 490 |
</div>
|
| 491 |
+
</header>
|
| 492 |
|
| 493 |
<!-- Enhanced Slider Section with Swiper -->
|
| 494 |
<section class="relative overflow-hidden">
|
|
|
|
| 968 |
</div>
|
| 969 |
|
| 970 |
<script>
|
| 971 |
+
// Language Switcher Functionality
|
| 972 |
+
let currentLang = localStorage.getItem('website-lang') || 'ar';
|
| 973 |
+
|
| 974 |
+
function switchLanguage(lang) {
|
| 975 |
+
if (lang === currentLang) return;
|
| 976 |
+
|
| 977 |
+
currentLang = lang;
|
| 978 |
+
localStorage.setItem('website-lang', lang);
|
| 979 |
+
|
| 980 |
+
// Update direction
|
| 981 |
+
document.documentElement.setAttribute('dir', lang === 'ar' ? 'rtl' : 'ltr');
|
| 982 |
+
document.documentElement.setAttribute('lang', lang);
|
| 983 |
+
|
| 984 |
+
// Update text content for all elements with data attributes
|
| 985 |
+
document.querySelectorAll('[data-ar][data-en]').forEach(element => {
|
| 986 |
+
element.textContent = element.getAttribute(`data-${lang}`);
|
| 987 |
+
});
|
| 988 |
+
|
| 989 |
+
// Update buttons state
|
| 990 |
+
document.querySelectorAll('.lang-btn').forEach(btn => {
|
| 991 |
+
btn.classList.remove('active');
|
| 992 |
+
});
|
| 993 |
+
document.querySelectorAll(`[id^="btn-${lang}"]`).forEach(btn => {
|
| 994 |
+
btn.classList.add('active');
|
| 995 |
+
});
|
| 996 |
+
|
| 997 |
+
// Update page title
|
| 998 |
+
document.title = lang === 'ar' ? 'موقع الشركة' : 'Company Website';
|
| 999 |
+
|
| 1000 |
+
// Trigger text animations
|
| 1001 |
+
document.body.classList.add('lang-loading');
|
| 1002 |
+
setTimeout(() => {
|
| 1003 |
+
document.body.classList.remove('lang-loading');
|
| 1004 |
+
}, 300);
|
| 1005 |
+
}
|
| 1006 |
+
|
| 1007 |
+
// Initialize language on load
|
| 1008 |
+
document.addEventListener('DOMContentLoaded', function() {
|
| 1009 |
+
if (currentLang === 'en') {
|
| 1010 |
+
switchLanguage('en');
|
| 1011 |
+
}
|
| 1012 |
+
});
|
| 1013 |
+
|
| 1014 |
// Custom Cursor Effect
|
| 1015 |
const cursorFollower = document.createElement('div');
|
| 1016 |
cursorFollower.classList.add('cursor-follower');
|
| 1017 |
document.body.appendChild(cursorFollower);
|
| 1018 |
+
document.addEventListener('mousemove', (e) => {
|
|
|
|
| 1019 |
gsap.to(cursorFollower, {
|
| 1020 |
x: e.clientX,
|
| 1021 |
y: e.clientY,
|
style.css
CHANGED
|
@@ -1,10 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
body {
|
| 2 |
-
padding:
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
}
|
| 5 |
|
| 6 |
h1 {
|
| 7 |
-
font-size:
|
| 8 |
margin-top: 0;
|
| 9 |
}
|
| 10 |
|
|
@@ -13,16 +35,117 @@ p {
|
|
| 13 |
font-size: 15px;
|
| 14 |
margin-bottom: 10px;
|
| 15 |
margin-top: 5px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
}
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
.card {
|
| 19 |
max-width: 620px;
|
| 20 |
margin: 0 auto;
|
| 21 |
padding: 16px;
|
| 22 |
border: 1px solid lightgray;
|
| 23 |
border-radius: 16px;
|
|
|
|
| 24 |
}
|
| 25 |
|
| 26 |
.card p:last-child {
|
| 27 |
margin-bottom: 0;
|
| 28 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');
|
| 3 |
+
|
| 4 |
+
/* RTL Support Base */
|
| 5 |
+
html[dir="rtl"] {
|
| 6 |
+
text-align: right;
|
| 7 |
+
}
|
| 8 |
+
|
| 9 |
+
html[dir="ltr"] {
|
| 10 |
+
text-align: left;
|
| 11 |
+
}
|
| 12 |
+
|
| 13 |
body {
|
| 14 |
+
padding: 0;
|
| 15 |
+
margin: 0;
|
| 16 |
+
font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Arial", sans-serif;
|
| 17 |
+
line-height: 1.6;
|
| 18 |
+
color: #374151;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
/* Arabic Typography Enhancements */
|
| 22 |
+
h1, h2, h3, h4, h5, h6 {
|
| 23 |
+
font-family: 'Tajawal', sans-serif;
|
| 24 |
+
font-weight: 700;
|
| 25 |
+
line-height: 1.4;
|
| 26 |
}
|
| 27 |
|
| 28 |
h1 {
|
| 29 |
+
font-size: 2em;
|
| 30 |
margin-top: 0;
|
| 31 |
}
|
| 32 |
|
|
|
|
| 35 |
font-size: 15px;
|
| 36 |
margin-bottom: 10px;
|
| 37 |
margin-top: 5px;
|
| 38 |
+
line-height: 1.8;
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
/* RTL Specific Adjustments */
|
| 42 |
+
[dir="rtl"] .space-x-2 > * + * {
|
| 43 |
+
--tw-space-x-reverse: 1;
|
| 44 |
+
margin-right: 0;
|
| 45 |
+
margin-left: 0.5rem;
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
[dir="rtl"] .space-x-4 > * + * {
|
| 49 |
+
--tw-space-x-reverse: 1;
|
| 50 |
+
margin-right: 0;
|
| 51 |
+
margin-left: 1rem;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
[dir="rtl"] .space-x-6 > * + * {
|
| 55 |
+
--tw-space-x-reverse: 1;
|
| 56 |
+
margin-right: 0;
|
| 57 |
+
margin-left: 1.5rem;
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
[dir="rtl"] .mr-2 {
|
| 61 |
+
margin-right: 0;
|
| 62 |
+
margin-left: 0.5rem;
|
| 63 |
+
}
|
| 64 |
+
|
| 65 |
+
[dir="rtl"] .mr-4 {
|
| 66 |
+
margin-right: 0;
|
| 67 |
+
margin-left: 1rem;
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
[dir="rtl"] .ml-4 {
|
| 71 |
+
margin-left: 0;
|
| 72 |
+
margin-right: 1rem;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
/* Language Switcher Styles */
|
| 76 |
+
.lang-switcher {
|
| 77 |
+
display: inline-flex;
|
| 78 |
+
align-items: center;
|
| 79 |
+
background: #f3f4f6;
|
| 80 |
+
border-radius: 9999px;
|
| 81 |
+
padding: 0.25rem;
|
| 82 |
+
gap: 0.25rem;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
.lang-btn {
|
| 86 |
+
padding: 0.5rem 1rem;
|
| 87 |
+
border-radius: 9999px;
|
| 88 |
+
border: none;
|
| 89 |
+
background: transparent;
|
| 90 |
+
cursor: pointer;
|
| 91 |
+
font-family: 'Tajawal', sans-serif;
|
| 92 |
+
font-weight: 500;
|
| 93 |
+
transition: all 0.3s ease;
|
| 94 |
+
color: #6b7280;
|
| 95 |
}
|
| 96 |
|
| 97 |
+
.lang-btn.active {
|
| 98 |
+
background: white;
|
| 99 |
+
color: #2563eb;
|
| 100 |
+
box-shadow: 0 1px 3px rgba(0,0,0,0.1);
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
.lang-btn:hover:not(.active) {
|
| 104 |
+
color: #374151;
|
| 105 |
+
}
|
| 106 |
+
|
| 107 |
+
/* Card Component */
|
| 108 |
.card {
|
| 109 |
max-width: 620px;
|
| 110 |
margin: 0 auto;
|
| 111 |
padding: 16px;
|
| 112 |
border: 1px solid lightgray;
|
| 113 |
border-radius: 16px;
|
| 114 |
+
background: white;
|
| 115 |
}
|
| 116 |
|
| 117 |
.card p:last-child {
|
| 118 |
margin-bottom: 0;
|
| 119 |
}
|
| 120 |
+
|
| 121 |
+
/* Arabic Text Justification */
|
| 122 |
+
.arabic-text {
|
| 123 |
+
text-align: justify;
|
| 124 |
+
text-justify: inter-word;
|
| 125 |
+
word-spacing: normal;
|
| 126 |
+
line-height: 1.8;
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
/* Smooth Scrolling for Arabic Content */
|
| 130 |
+
html {
|
| 131 |
+
scroll-behavior: smooth;
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
/* Selection Color */
|
| 135 |
+
::selection {
|
| 136 |
+
background: #3b82f6;
|
| 137 |
+
color: white;
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
/* Focus States for Accessibility */
|
| 141 |
+
*:focus-visible {
|
| 142 |
+
outline: 2px solid #3b82f6;
|
| 143 |
+
outline-offset: 2px;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
/* Loading State for Language Switch */
|
| 147 |
+
.lang-loading {
|
| 148 |
+
opacity: 0.7;
|
| 149 |
+
pointer-events: none;
|
| 150 |
+
transition: opacity 0.3s ease;
|
| 151 |
+
}
|