/* ============================================
   مدارس لندن الدولية - ملف الأنماط المخصصة
   London International Schools - Custom Styles
   ============================================ */

/* ============================================
   CSS Custom Properties (المتغيرات)
   ============================================ */
:root {
    /* الألوان الأساسية */
    --primary-color: #1e3a5f;
    --primary-dark: #152a45;
    --primary-light: #2c5282;
    --accent-color: #d4a853;
    --accent-light: #e8c77b;
    --accent-dark: #b8923f;

    /* ألوان النصوص */
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --text-light: #ffffff;

    /* ألوان الخلفية */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #1a1a2e;

    /* ألوان الحالة */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;

    /* الظلال */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.2);

    /* التحولات */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* الأبعاد */
    --navbar-height: 80px;
    --section-padding: 100px;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* ============================================
   الأنماط العامة - Global Styles
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
    min-height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 100vw;
}

/* LTR (English) Font */
html[dir="ltr"] body {
    font-family: 'Inter', sans-serif;
}

/* Main content wrapper */
main {
    flex: 1 0 auto;
}

/* Footer stays at bottom */
footer {
    flex-shrink: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.4;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   الأزرار - Buttons
   ============================================ */
.btn {
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border: none;
    color: var(--text-light);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline-light:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* ============================================
   النافبار - Navbar
   ============================================ */
#mainNavbar {
    background: var(--primary-color);
    padding: 15px 0;
    transition: var(--transition-normal);
    z-index: 1050;
    box-shadow: var(--shadow-md);
}

#mainNavbar.scrolled {
    background: var(--primary-color);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 45px;
    width: auto;
    transition: var(--transition-normal);
    filter: none;
    display: none;
}

.brand-logo-mobile {
    display: block;
}

/* في سطح المكتب: اللوجو على اليسار */
@media (min-width: 992px) {
    .brand-logo-desktop {
        display: block;
    }

    .brand-logo-mobile {
        display: none;
    }
}

.navbar-nav .nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 10px 18px;
    margin: 0 3px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    color: var(--accent-color);
    transform: translateY(-2px);
}

.dropdown-menu {
    background: var(--bg-white);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    padding: 15px 0;
    margin-top: 10px;
}

.dropdown-item {
    padding: 12px 25px;
    font-weight: 500;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item i {
    color: var(--accent-color);
}

.dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    padding-right: 30px;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 8px 12px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-extra .btn {
    padding: 8px 20px;
}

/* Auth Icons in Navbar */
.nav-auth-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.nav-auth-icon:hover {
    background: var(--accent-color);
    color: var(--text-light);
    transform: scale(1.1);
}

.nav-auth-icon.btn-logout {
    background: rgba(220, 53, 69, 0.2);
}

.nav-auth-icon.btn-logout:hover {
    background: var(--danger-color);
}

/* ============================================
   الكاروسيل - Carousel
   ============================================ */
#heroCarousel {
    position: relative;
}

.carousel-item {
    position: relative;
    min-height: 100vh;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(44, 82, 130, 0.7) 100%);
}

.carousel-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--text-light);
}

.carousel-badge {
    display: inline-block;
    background: rgba(212, 168, 83, 0.3);
    color: var(--accent-color);
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid var(--accent-color);
}

.carousel-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.carousel-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    transition: var(--transition-normal);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--accent-color);
}

.carousel-control-prev {
    right: auto;
    left: 30px;
}

.carousel-control-next {
    left: auto;
    right: 30px;
}

/* تصحيح اتجاه الأسهم في RTL */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    transform: rotate(180deg);
}

.carousel-indicators {
    bottom: 40px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 8px;
    transition: var(--transition-normal);
}

.carousel-indicators button.active {
    background: var(--accent-color);
    transform: scale(1.3);
}

/* ============================================
   عناوين الأقسام - Section Headers
   ============================================ */
.section-padding {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    display: inline-block;
    color: var(--accent-color);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   ترويسة الصفحات - Page Headers / Heroes
   ============================================ */
.page-hero {
    position: relative;
    padding: 120px 0 80px;
    margin-top: 80px;
    background-size: cover;
    background-position: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
}

/* التراكب المتدرج لتحسين قراءة النص */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.95) 0%, rgba(44, 82, 130, 0.85) 100%);
    z-index: 1;
}

/* زخرفة خلفية */
.page-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-hero .lead {
    font-size: 1.25rem;
    font-weight: 400;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.page-hero .breadcrumb {
    justify-content: center;
    margin-top: 20px;
    opacity: 0.8;
}

.page-hero .breadcrumb-item a {
    color: var(--text-light);
}

.page-hero .breadcrumb-item.active {
    color: var(--accent-light);
}

.page-hero .breadcrumb-item+.breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* تخصيصات لكل صفحة */
.teacher-hero::before {
    background: linear-gradient(135deg, rgba(29, 53, 87, 0.95) 0%, rgba(69, 123, 157, 0.9) 100%);
}

.student-hero::before {
    background: linear-gradient(135deg, rgba(42, 157, 143, 0.95) 0%, rgba(38, 70, 83, 0.9) 100%);
}

.branch-hero::before {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.95) 0%, rgba(168, 218, 220, 0.1) 100%), linear-gradient(to bottom, #1d3557, #1d3557);
    /* Dark blue base */
}

.about-hero::before {
    background: linear-gradient(135deg, rgba(8, 28, 21, 0.95) 0%, rgba(45, 106, 79, 0.9) 100%);
}

.news-hero::before {
    background: linear-gradient(135deg, rgba(58, 12, 163, 0.95) 0%, rgba(114, 9, 183, 0.9) 100%);
}

.tutorials-hero::before {
    background: linear-gradient(135deg, rgba(247, 37, 133, 0.95) 0%, rgba(181, 23, 158, 0.9) 100%);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .page-hero {
        padding: 100px 0 60px;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .page-hero {
        padding: 80px 0 50px;
        margin-top: 70px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero .lead {
        font-size: 1rem;
    }
}

/* ============================================
   قسم عن المدرسة - About Section
   ============================================ */
.about-image-wrapper {
    position: relative;
}

.about-image-main {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-placeholder-image {
    height: 450px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.about-placeholder-image i {
    font-size: 5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.about-placeholder-image span {
    font-size: 1.2rem;
    opacity: 0.6;
}

/* صورة المدرسة الحقيقية */
.about-school-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

.about-experience-badge {
    position: absolute;
    bottom: -30px;
    left: 30px;
    background: var(--accent-color);
    color: var(--text-light);
    padding: 20px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-experience-badge .years {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.about-experience-badge .text {
    font-size: 0.9rem;
    font-weight: 500;
}

.about-content {
    padding-right: 30px;
}

.about-heading {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 1.05rem;
}

/* الأكورديون */
.about-accordion .accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.about-accordion .accordion-button {
    font-weight: 600;
    padding: 18px 25px;
    background: var(--bg-white);
    color: var(--primary-color);
    gap: 15px;
}

.about-accordion .accordion-button:not(.collapsed) {
    background: var(--primary-color);
    color: var(--text-light);
}

.about-accordion .accordion-button:not(.collapsed) i {
    color: var(--accent-color);
}

.about-accordion .accordion-button::after {
    margin-right: auto;
    margin-left: 0;
}

.about-accordion .accordion-button i {
    font-size: 1.2rem;
    color: var(--accent-color);
}

.about-accordion .accordion-body {
    padding: 20px 25px;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   قسم آراء العملاء - Testimonials Section
   ============================================ */
#testimonials {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 40px 0 0 0;
}

#testimonials .section-header {
    margin-bottom: 70px;
}

.testimonial-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    position: relative;
    margin: 20px 0 0 0;
}

.testimonial-quote {
    position: absolute;
    top: -20px;
    right: 50px;
    width: 50px;
    height: 50px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-quote i {
    font-size: 1.5rem;
    color: var(--text-light);
}

.testimonial-text {
    font-size: 1.2rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin: 0 3px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.author-info h5 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.author-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* أزرار تنقل الآراء */
#testimonialCarousel {
    position: relative;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    position: absolute;
    top: 25%;
    transform: translateY(-50%);
    opacity: 1;
}

#testimonialCarousel .carousel-control-prev {
    left: 0;
    right: auto;
}

#testimonialCarousel .carousel-control-next {
    right: 0;
    left: auto;
}

.carousel-nav-btn {
    width: 45px;
    height: 45px;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.carousel-nav-btn i {
    font-size: 1.2rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.carousel-nav-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.carousel-nav-btn:hover i {
    color: var(--text-light);
}

/* ============================================
   قسم الإنجازات - Achievements Section
   ============================================ */
#achievements {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
    padding: 50px 0 80px 0;
}

#achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.achievement-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.achievement-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.achievement-icon i {
    font-size: 2.2rem;
    color: var(--text-light);
}

.achievement-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1;
    margin-bottom: 10px;
}

.achievement-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* بطاقات المميزات */
.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.feature-card i {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.feature-card h4 {
    color: var(--text-light);
    margin-bottom: 15px;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ============================================
   قسم الفريق - Team Section
   ============================================ */
#team {
    background: linear-gradient(180deg, #fdf8f3 0%, #fef9f5 50%, #fff8f0 100%);
    position: relative;
}

/* Subtle decorative accent line at top */
#team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--primary-color) 100%);
    border-radius: 2px;
}

.team-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.team-image {
    position: relative;
    overflow: hidden;
}

.team-placeholder {
    height: 280px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-placeholder.female {
    background: linear-gradient(135deg, #8b5a8b 0%, #a06ea0 100%);
}

.team-placeholder i {
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.5);
}

.team-social {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 30px 20px 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.team-card:hover .team-social {
    opacity: 1;
    transform: translateY(0);
}

.team-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.team-social a:hover {
    background: var(--accent-color);
    color: var(--text-light);
}

.team-info {
    padding: 25px;
    text-align: center;
}

.team-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-position {
    display: block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.team-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   قسم الاستوديو - Studio/Gallery Section
   ============================================ */
.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    cursor: pointer;
}

.gallery-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.gallery-placeholder i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.7;
}

.gallery-placeholder span {
    font-size: 1rem;
    opacity: 0.5;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    font-size: 2.5rem;
    color: var(--text-light);
    transform: scale(0.5);
    transition: var(--transition-normal);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ============================================
   قسم اتصل بنا - Contact Section
   ============================================ */
.contact-form-wrapper {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.form-floating label {
    right: 0;
    left: auto;
    padding-right: 1rem;
}

.form-floating label i {
    margin-left: 8px;
    color: var(--accent-color);
}

.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: var(--border-radius);
    padding: 15px 20px;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.form-floating>.form-control,
.form-floating>.form-select {
    padding-top: 1.625rem;
    padding-bottom: 0.625rem;
}

.contact-info-wrapper {
    height: 100%;
}

.contact-info-card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 25px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.4rem;
    color: var(--text-light);
}

.contact-details h5 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.contact-details p {
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.contact-details a {
    color: var(--primary-color);
}

.contact-details a:hover {
    color: var(--accent-color);
}

/* روابط التواصل الاجتماعي */
.social-links-wrapper {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.social-links-wrapper h5 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-normal);
}

.social-link:hover {
    transform: translateY(-5px);
    color: var(--text-light);
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.whatsapp {
    background: #25d366;
}

.social-link.youtube {
    background: #ff0000;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link.tiktok {
    background: #000000;
}

/* ============================================
   الفوتر - Footer
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer-main {
    padding: 80px 0 50px;
}

.footer-brand {
    margin-bottom: 25px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

.footer-logo:hover {
    color: var(--accent-color);
}

.footer-brand p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-links h5 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-right: 10px;
}

.footer-links a i {
    font-size: 0.9rem;
}

.footer-newsletter h5 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-newsletter p {
    margin-bottom: 20px;
}

.newsletter-form .input-group {
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.newsletter-form .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 0.95rem;
}

.newsletter-form .btn {
    border-radius: 0;
    padding: 15px 25px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 20px 0;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

.developer-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.developer-link:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* ============================================
   زر العودة للأعلى - Back to Top
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color);
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 1.3rem;
}

/* ============================================
   التنسيق المتجاوب - Responsive Design
   ============================================ */

/* الأجهزة اللوحية */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 70px;
    }

    .carousel-title {
        font-size: 2.8rem;
    }

    .carousel-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .about-content {
        padding-right: 0;
        margin-top: 50px;
    }

    .about-experience-badge {
        bottom: -20px;
        left: 20px;
        padding: 15px 25px;
    }

    .testimonial-card {
        padding: 40px 30px;
    }

    .contact-form-wrapper,
    .contact-info-card {
        padding: 30px;
    }
}

/* الهواتف */
@media (max-width: 767.98px) {
    :root {
        --section-padding: 50px;
        --navbar-height: 70px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .brand-icon {
        font-size: 1.5rem;
    }

    .carousel-title {
        font-size: 2rem;
    }

    .carousel-subtitle {
        font-size: 1rem;
    }

    .carousel-cta .btn {
        padding: 12px 25px;
        font-size: 0.95rem;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .carousel-control-prev {
        left: 15px;
    }

    .carousel-control-next {
        right: 15px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
    }

    .about-placeholder-image {
        height: 300px;
    }

    .about-heading {
        font-size: 1.4rem;
    }

    .testimonial-card {
        padding: 30px 20px;
    }

    .testimonial-text {
        font-size: 1.1rem;
    }

    .testimonial-quote {
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .testimonial-quote i {
        font-size: 1.2rem;
    }

    .achievement-number {
        font-size: 2.5rem;
    }

    .achievement-icon {
        width: 60px;
        height: 60px;
    }

    .achievement-icon i {
        font-size: 1.6rem;
    }

    .team-placeholder {
        height: 220px;
    }

    .gallery-placeholder {
        height: 180px;
    }

    .contact-form-wrapper,
    .contact-info-card,
    .social-links-wrapper {
        padding: 25px;
    }

    .footer-main {
        padding: 60px 0 40px;
    }

    .footer-links h5 {
        margin-top: 30px;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
    }
}

/* الهواتف الصغيرة */
@media (max-width: 575.98px) {
    .carousel-title {
        font-size: 1.6rem;
    }

    .carousel-badge {
        font-size: 0.85rem;
        padding: 6px 18px;
    }

    .carousel-cta {
        flex-direction: column;
        align-items: center;
    }

    .carousel-cta .btn {
        width: 100%;
        max-width: 250px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .about-experience-badge .years {
        font-size: 2rem;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .contact-info-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}

/* ============================================
   الرسوم المتحركة - Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate__fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate__fadeInDown {
    animation: fadeInDown 0.8s ease forwards;
}

/* تأخير الرسوم المتحركة */
.carousel-item.active .carousel-badge {
    animation-delay: 0.2s;
}

.carousel-item.active .carousel-title {
    animation-delay: 0.4s;
}

.carousel-item.active .carousel-subtitle {
    animation-delay: 0.6s;
}

.carousel-item.active .carousel-cta {
    animation-delay: 0.8s;
}

/* ============================================
   حالات التركيز للوصول - Accessibility Focus States
   ============================================ */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.btn:focus {
    box-shadow: 0 0 0 4px rgba(212, 168, 83, 0.4);
}

/* تقليل الحركة للمستخدمين الذين يفضلون ذلك */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   Language Switcher Styles
   ============================================ */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.language-switcher:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
    color: white !important;
}

.language-switcher:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(212, 168, 83, 0.3);
}

.language-switcher .bi-globe2 {
    font-size: 1.1rem;
}

.language-switcher::after {
    margin-left: 4px;
    border-top-color: white;
}

/* Language Dropdown Menu */
.language-dropdown {
    min-width: 140px;
    padding: 8px 0;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.language-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.language-dropdown .dropdown-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.language-dropdown .dropdown-item.active {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
    color: white;
}

.language-dropdown .dropdown-item .flag-icon {
    font-size: 1.2rem;
}

/* Scrolled Navbar Language Switcher */
.navbar.scrolled .language-switcher {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.3);
}

.navbar.scrolled .language-switcher:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    box-shadow: 0 4px 15px rgba(30, 58, 95, 0.4);
}

/* ============================================
   LTR (English) Layout Fixes
   ============================================ */

/* Footer LTR Alignment */
html[dir="ltr"] .footer-brand,
html[dir="ltr"] .footer-links {
    text-align: left;
}

html[dir="ltr"] .footer-links ul {
    padding-left: 0;
}

html[dir="ltr"] .footer-links ul li {
    text-align: left;
}

/* Hide footer h5 underline in LTR */
html[dir="ltr"] .footer-links h5::after {
    display: none;
}

html[dir="ltr"] .footer-social {
    justify-content: flex-start;
}

html[dir="ltr"] .footer-bottom .col-md-6:first-child {
    text-align: left !important;
}

html[dir="ltr"] .footer-bottom .col-md-6:last-child {
    text-align: right !important;
}

/* Navbar LTR Alignment */
html[dir="ltr"] .navbar-nav {
    margin-left: 0;
    margin-right: auto;
}

/* Section Headers LTR */
html[dir="ltr"] .section-header {
    text-align: center;
}

/* Form Labels LTR */
html[dir="ltr"] .form-label {
    text-align: left;
}

/* Card Content LTR */
html[dir="ltr"] .card-body {
    text-align: left;
}

/* Contact Info LTR */
html[dir="ltr"] .contact-details {
    text-align: left;
}

/* Team Info LTR */
html[dir="ltr"] .team-info {
    text-align: center;
}

/* Dropdown Menu LTR */
html[dir="ltr"] .dropdown-menu {
    text-align: left;
}

/* Icon Margins for LTR */
html[dir="ltr"] .bi.me-1,
html[dir="ltr"] .bi.me-2,
html[dir="ltr"] .bi.me-3 {
    margin-right: 0.25rem;
    margin-left: 0;
}

html[dir="ltr"] .me-1 {
    margin-right: 0.25rem !important;
    margin-left: 0 !important;
}

html[dir="ltr"] .me-2 {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
}

/* ============================================
   RTL Mobile Horizontal Overflow Fix
   (Mobile Only - Does not affect desktop)
   ============================================ */
@media (max-width: 767.98px) {

    html[dir="rtl"],
    html[dir="rtl"] body {
        overflow-x: hidden;
        max-width: 100%;
    }

    html[dir="rtl"] .container,
    html[dir="rtl"] .container-fluid {
        max-width: 100%;
        overflow-x: hidden;
    }

    html[dir="rtl"] .row {
        margin-right: 0;
        margin-left: 0;
    }

    html[dir="rtl"] *,
    html[dir="rtl"] *::before,
    html[dir="rtl"] *::after {
        max-width: 100vw;
    }

    html[dir="rtl"] section,
    html[dir="rtl"] .section-padding {
        overflow-x: hidden;
    }

    html[dir="rtl"] .carousel-item,
    html[dir="rtl"] .carousel-content {
        max-width: 100%;
    }

    /* Fix ticker overflow on mobile */
    html[dir="rtl"] .ticker-wrapper {
        max-width: 100%;
        overflow: hidden;
    }

    /* Fix swiper overflow */
    html[dir="rtl"] .swiper {
        max-width: 100%;
        overflow: hidden;
    }

    /* Fix page-hero container horizontal overflow */
    html[dir="rtl"] .page-hero .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }
}