/* الألوان والخطوط الأساسية */


:root {
    --primary-dark-blue: #0A192F; 
    --secondary-blue: #112240;   
    --accent-orange: #FF7F00;   
    --text-light: #A8B2D1;      
    --text-white: #FFFFFF;
    --background-light: #F4F7F6; 
    --font-family-base: 'Tajawal', sans-serif;
}

/* التنسيقات العامة والاتجاه من اليمين لليسار (RTL) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-base);
    background-color: var(--background-light);
    color: #333;
    direction: rtl; /* ضبط اتجاه النص للمحتوى العربي */
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--primary-dark-blue);
    font-weight: 800;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* شريط "visit now" الصغير في الزاوية */
.top-visit-bar {
    position: absolute;
    top: 0;
    left: 0; 
    background-color: var(--secondary-blue);
    color: var(--text-white);
    padding: 5px 20px;
    font-size: 14px;
    z-index: 10;
}

.top-visit-bar a {
    color: var(--accent-orange);
    margin-left: 5px; 
}

/* 1. الشريط العلوي (Header) */
.main-header {
    background-color: var(--text-white);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark-blue);
}

.logo span {
    font-size: 14px;
    font-weight: 400;
    display: block;
    line-height: 1;
}

.main-nav {
    position: relative;
}

/* القائمة بشكل افتراضي */
.main-nav ul {
    display: flex;
    transition: all 0.3s ease-in-out;
}

.main-nav li {
    margin-right: 30px; 
}

.main-nav a {
    color: var(--primary-dark-blue);
    font-weight: 700;
    padding-bottom: 5px;
    text-decoration: none;
}

.main-nav li.active a,
.main-nav a:hover {
    color: var(--accent-orange);
    border-bottom: 2px solid var(--accent-orange);
}

/* زر القائمة للموبايل */
.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--primary-dark-blue);
}

/* استجابة للموبايل */
@media (max-width: 768px) {
    .main-nav ul {
        display: none;
        flex-direction: column;
        background: #fff;
        position: fixed;
        top: 60px;         /* ارتفاع القائمة */
        left: 0;           /* تظهر من اليسار */
        width: 220px;
        padding: 15px;
        border-radius: 0 8px 8px 0;
        box-shadow: 2px 4px 12px rgba(0,0,0,0.15);
        z-index: 999;
    }

    .main-nav ul.show {
        display: flex;
        animation: slideLeft 0.3s ease;
    }

    .menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1000;
    }

    .main-nav li {
        margin: 12px 0;
    }
}

/* حركة انزلاق من اليسار */
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}


/* 2. القسم الرئيسي (Hero Section) */
.hero-section {
    background-color: var(--primary-dark-blue);
    color: var(--text-white);
    padding: 100px 0 150px;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%); 
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-content {
    flex: 1;
    max-width: 45%;
    text-align: right;
}

.hero-image {
    flex: 1;
    max-width: 50%;
    text-align: left; 
}

.desktop-graphic {
    max-width: 100%;
    height: auto;
}

.hero-content h1 {
    font-size: 52px;
    color: var(--text-white);
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    margin: 15px 0 40px;
    color: var(--text-light);
}

.cta-button {
    background-color: var(--accent-orange);
    color: var(--text-white);
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    transition: background-color 0.3s;
    display: inline-block; 
    text-align: center;
}

.cta-button:hover {
    background-color: #E66A00;
}

/* 3. قسم معلومات أولارا */
.awlira-info-section {
    padding: 50px 0;
    background-color: var(--background-light); 
}

.info-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.info-card {
    background-color: var(--text-white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    flex: 1;
    position: relative;
    top: -50px; 
}

.info-card .info-icon {
    font-size: 36px;
    color: var(--accent-orange);
    margin-bottom: 15px;
}

.info-text-content {
    flex: 2;
    padding-top: 20px;
    text-align: right;
}

.info-text-content .intro-text {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-dark-blue);
}

.info-text-content .years-exp {
    line-height: 1.8;
    color: #555;
}

/* 4. قسم مميزات أولارا (الروابط التفاعلية) */
.why-awlira-cards {
    padding: 80px 0;
    text-align: center;
    background-color: var(--text-white);
}

.why-awlira-cards h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

.features-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.feature-card.button-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none; 
    color: inherit; 
    
    background-color: var(--background-light);
    border: none;
    cursor: pointer; 
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-basis: 30%;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.feature-card.button-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background-color: #ffffff; 
}

.feature-card.button-link:active {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.feature-card .card-icon {
    font-size: 50px; 
    color: var(--accent-orange); 
    margin-bottom: 20px;
    width: 60px; 
    display: block;
    text-align: center;
}

.feature-card h3 {
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: #666;
}

/* 5. قسم آراء طلابنا (Testimonials) */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--secondary-blue); 
    text-align: center;
    color: var(--text-white);
}

.testimonials-section h2 {
    color: var(--text-white);
    font-size: 36px;
    margin-bottom: 50px;
}

.testimonials-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.testimonial-card {
    background-color: var(--primary-dark-blue); 
    color: var(--text-light);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-basis: calc(33.333% - 20px);
    position: relative;
    text-align: right; 
}

.testimonial-card .quote-icon {
    font-size: 30px;
    color: var(--accent-orange);
    margin-bottom: 15px;
    position: absolute;
    top: 20px;
    left: 20px; 
}

.testimonial-card .review-text {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
    font-style: italic;
}

.reviewer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
    text-align: right;
}

.reviewer-name {
    display: block;
    font-weight: 700;
    color: var(--text-white);
    font-size: 18px;
}

.reviewer-title {
    display: block;
    font-size: 14px;
    color: var(--accent-orange);
}

/* 6. التذييل (Footer) */
footer {
    background-color: var(--primary-dark-blue);
    color: var(--text-white);
    padding: 30px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    text-align: right;
}

.footer-logo {
    font-size: 24px;
    font-weight: 800;
}

.footer-nav a {
    margin: 0 10px;
    color: var(--text-light);
}

.footer-nav a:hover {
    color: var(--accent-orange);
}

/* ================================== */
/* تنسيقات صفحة تواصل معنا (contact.html) */
/* ================================== */

.contact-section {
    background-color: var(--primary-dark-blue);
    color: var(--text-white);
    padding: 80px 0;
    position: relative;
}

.contact-grid {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    align-items: flex-start;
}

.contact-form-container,
.contact-info-container {
    flex-basis: 50%;
}

.contact-form-container h2,
.contact-info-container h2 {
    color: var(--accent-orange);
    font-size: 32px;
    margin-bottom: 30px;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-light);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--secondary-blue);
    background-color: var(--secondary-blue);
    color: var(--text-white);
    border-radius: 5px;
    font-family: var(--font-family-base);
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--accent-orange);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
}

.submit-button {
    width: 100%; 
    margin-top: 15px;
    display: block;
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    color: var(--text-light);
    line-height: 1.6;
}

.info-item i {
    font-size: 24px;
    color: var(--accent-orange);
    margin-left: 15px; 
    flex-shrink: 0;
}

.contact-info-container p {
    margin: 0;
}

.social-links {
    margin-top: 40px;
    display: flex;
    justify-content: flex-start;
    gap: 20px;
}

.social-links a {
    font-size: 24px;
    color: var(--text-light);
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--accent-orange);
}


/* ================================== */
/* تنسيقات صفحة من نحن (about.html) */
/* ================================== */

.about-hero-section {
    background-color: var(--primary-dark-blue);
    color: var(--text-white);
    padding: 100px 0;
}

.about-hero-container {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: center;
}

.about-text-content {
    flex: 2;
    text-align: right;
}

.about-text-content h1 {
    font-size: 48px;
    color: var(--text-white);
    margin-bottom: 20px;
}

.about-text-content .lead-text {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-image-placeholder {
    flex: 1;
    min-height: 300px;
    background-color: var(--secondary-blue);
    border-radius: 8px;
    overflow: hidden; 
}

.about-us-graphic {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: 8px;
}

.vision-mission-cards {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.vision-card, .mission-card {
    background-color: var(--secondary-blue);
    padding: 20px;
    border-radius: 8px;
    border-right: 3px solid var(--accent-orange);
}

.vision-card h3, .mission-card h3 {
    color: var(--accent-orange);
    margin-bottom: 5px;
}

.vision-card i, .mission-card i {
    font-size: 24px;
    margin-left: 10px;
    color: var(--text-white);
}

.core-values-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--background-light);
}

.core-values-section h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

.values-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
}

.value-item {
    flex-basis: 22%; 
    padding: 20px;
    text-align: center;
}

.value-item i {
    font-size: 45px;
    color: var(--primary-dark-blue);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.value-item:hover i {
    color: var(--accent-orange);
}

.value-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.value-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}


@media (max-width: 992px) {
    .value-item {
        flex-basis: 45%; 
    }
}

/* التنسيقات للشاشات الصغيرة (الهواتف الذكية) */
@media (max-width: 768px) {
    
    /* 1. الشريط العلوي (Header) */
    .header-container {
        flex-direction: column;
        align-items: flex-start;
    }


    /* 2. القسم الرئيسي (Hero Section) */
    .hero-container {
        flex-direction: column-reverse; /* وضع الصورة في الأعلى والنص بالأسفل */
        text-align: center;
    }

    .hero-content, .hero-image {
        max-width: 100%;
        text-align: center;
    }

    .hero-image {
        margin-bottom: 40px;
    }

    .hero-content h1 {
        font-size: 36px; /* تصغير حجم العنوان الرئيسي */
    }

    /* 3. قسم معلومات أولارا */
    .info-container {
        flex-direction: column;
    }

    .info-card {
        top: 0; /* إلغاء خاصية top السالبة */
        position: static;
        margin-bottom: 20px;
        flex: none;
    }

    /* 4. قسم مميزات أولارا */
    .features-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-card.button-link {
        flex-basis: 100%; /* جعل البطاقات تأخذ العرض الكامل */
    }

    /* 5. قسم آراء طلابنا */
    .testimonials-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .testimonial-card {
        flex-basis: 100%;
        padding: 30px 20px;
    }

    .testimonial-card .quote-icon {
        font-size: 24px;
    }

    /* 6. التذييل (Footer) */
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    .footer-nav {
        margin: 10px 0;
    }
    
    /* ====== صفحات أخرى ======= */
    
    /* صفحة التواصل (contact.html) */
    .contact-grid {
        flex-direction: column;
        gap: 30px;
    }

    .contact-form-container, .contact-info-container {
        flex-basis: 100%;
    }
    
    .contact-form-container h2, .contact-info-container h2 {
        font-size: 28px;
    }

    /* صفحة من نحن (about.html) */
    .about-hero-container {
        flex-direction: column-reverse;
        gap: 30px;
    }
    
    .about-text-content h1 {
        font-size: 34px;
        text-align: center;
    }

    .about-text-content {
        text-align: center;
    }

    .vision-mission-cards {
        flex-direction: column;
        gap: 20px;
    }
    
    .vision-card, .mission-card {
        border-right: none;
        border-bottom: 3px solid var(--accent-orange);
    }
    
    /* القيم الأساسية */
    .values-grid {
        gap: 20px;
    }

    .value-item {
        flex-basis: 45%; /* عمودين في الأجهزة اللوحية الصغيرة */
    }
}

/* تنسيقات إضافية للهواتف الأصغر (أقل من 576 بكسل) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    /* تقليل الأحجام الرأسية */
    .hero-section, 
    .testimonials-section, 
    .core-values-section, 
    .contact-section,
    .about-hero-section {
        padding: 60px 0;
    }

    /* القيم الأساسية: عمود واحد */
    .value-item {
        flex-basis: 100%; 
    }
}
#translate-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: white;
    font-size: 22px;
    padding: 14px 18px;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 9999;
  }

  #translate-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  }

  /* الصندوق */
  #translate-box {
    position: fixed;
    bottom: 80px;
    left: 20px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 15px;
    width: 240px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.25);
    display: none;
    animation: fadeInUp 0.3s ease;
    z-index: 9999;
  }

  #translate-box h4 {
    margin: 0 0 12px;
    font-size: 16px;
    color: #333;
    text-align: center;
    font-weight: bold;
  }

  /* شبكة اللغات */
  .lang-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .lang-grid span {
    padding: 8px 10px;
    background: rgba(240, 240, 240, 0.9);
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    transition: 0.25s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }

  .lang-grid span:hover {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: #fff;
    transform: scale(1.05);
  }

  /* أنيميشن */
  @keyframes fadeInUp {
    from {opacity: 0; transform: translateY(15px);}
    to {opacity: 1; transform: translateY(0);}
  }

  /* إخفاء بانر الترجمة */
.goog-te-banner-frame.skiptranslate {
  display: none !important;
} 

body {
  top: 0px !important;
}

/* إخفاء البانر العلوي تبع جوجل */
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
}

/* إخفاء مربع العلامة المائية */
.goog-logo-link,
.goog-te-gadget span,
.goog-te-balloon-frame {
  display: none !important;
}