/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0056b3; /* Darker Blue */
    --secondary-color: #007bff; /* Lighter Blue */
    --accent-color: #ffc107; /* Example Accent - Yellow */
    --text-color: #343a40; /* Dark Gray */
    --light-gray: #f8f9fa;
    --medium-gray: #e9ecef;
    --dark-gray: #6c757d;
    --white: #fff;
    --black: #000;
    --success-color: #28a745;
    --font-family: 'Cairo', sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.7;
    color: var(--text-color);
    direction: rtl;
    background-color: var(--light-gray);
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700; /* Bolder headings */
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Utility Classes */
.bg-light { background-color: var(--white); }
.bg-dark { background-color: var(--text-color); color: var(--white); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem; /* Use rem for padding */
}

/* Header and Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.5rem 0; /* Reduced padding */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    container-type: inline-size;
    container-name: navbar;
}

nav .logo img {
    height: 55px; /* Slightly larger logo */
    vertical-align: middle;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-right: 1.5rem; /* Adjusted spacing */
}

nav ul li:last-child {
    margin-right: 0;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
}

nav ul li a::after { /* Underline effect */
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

nav ul li a.active {
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem; /* Adjusted padding */
    border-radius: 25px; /* Rounded buttons */
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--dark-gray);
    color: var(--white);
    border-color: var(--dark-gray);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    border-color: var(--text-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Hero Section v2 */
.hero-v2 {
    background-size: cover;
    background-position: center center;
    color: var(--white);
    text-align: center;
    padding: 8rem 1rem; /* Increased padding */
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-v2::before { /* Darker Overlay */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 850px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem; /* Larger heading */
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--white);
}

.hero-content p {
    font-size: 1.25rem; /* Slightly larger text */
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.cta-buttons a {
    margin: 0.5rem;
}

/* General Section Styling */
section {
    padding: 5rem 1rem; /* Increased padding */
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
}

/* Why Choose Us Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adjusted minmax */
    gap: 2rem;
    text-align: right;
}

.feature-item {
    background-color: var(--white);
    padding: 2.5rem 2rem; /* Increased padding */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center align content */
    text-align: center;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.feature-item i { /* Placeholder for icon */
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.feature-item p {
    color: var(--dark-gray);
    font-size: 0.95rem;
}

/* Services Overview Section */
.services-overview {
    background-color: var(--white);
}

.service-item-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-item {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: right;
    display: flex;
    flex-direction: column;
}

.service-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-item img {
    width: 100%;
    height: 220px; /* Increased height */
    object-fit: cover;
}

.service-item-content {
    padding: 1.5rem;
    flex-grow: 1; /* Allow content to grow */
}

.service-item h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.service-item p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.services-overview .text-center a.btn {
    margin-top: 1rem;
}

/* Partners Section */
.partners {
    background-color: var(--medium-gray);
}

.partner-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem; /* Increased gap */
    margin-top: 3rem;
}

.partner-logos img {
    height: 65px; /* Adjusted logo height */
    max-width: 160px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Testimonials Section */
.testimonial-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); /* Adjusted minmax */
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-item {
    background-color: var(--white);
    padding: 2.5rem; /* Increased padding */
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    text-align: center;
    position: relative;
    border-top: 4px solid var(--primary-color);
}

.testimonial-item img {
    width: 90px; /* Larger image */
    height: 90px;
    border-radius: 50%;
    margin: -70px auto 1.5rem; /* Position image half outside */
    object-fit: cover;
    border: 4px solid var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.testimonial-item blockquote {
    font-style: normal; /* Remove italic */
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.testimonial-item cite {
    font-weight: 700;
    color: var(--text-color);
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Final CTA Section */
.final-cta {
    background: linear-gradient(rgba(0, 86, 179, 0.85), rgba(0, 86, 179, 0.85)), url('../images/placeholder_cta_bg.jpg') no-repeat center center/cover; /* Placeholder BG */
    color: var(--white);
    padding: 6rem 1rem;
}

.final-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
}

.final-cta p {
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--text-color);
    color: #adb5bd;
    padding-top: 4rem;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: right;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after { /* Underline for footer headings */
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-logo {
    height: 50px;
    margin-bottom: 1.5rem;
}

.footer-section p,
.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: #adb5bd;
}

.footer-section ul li a:hover {
    color: var(--white);
    padding-right: 5px; /* Slight indent on hover */
}

.footer-section ul {
    padding-right: 0;
}

.social-links a {
    color: #adb5bd;
    margin-left: 1.2rem; /* Use margin-left for RTL */
    font-size: 1.4rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-links a:hover {
    color: var(--white);
    transform: scale(1.2);
}

.footer-bottom {
    background-color: #212529;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
    border-top: 1px solid #495057;
}

/* Page Header */
.page-header {
    background-size: cover;
    background-position: center center;
    color: var(--white);
    text-align: center;
    padding: 5rem 1rem;
    position: relative;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.page-header h1, .page-header p {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.page-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* About Page Specifics */
.about-intro .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: right;
}

.about-intro .about-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.vision-mission-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    text-align: right;
}

.vision, .mission {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.vision h3, .mission h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.core-values .values-grid, .our-values .values-container, .why-us-detailed .why-us-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center; /* Center align value items */
}

.value-item, .why-us-item {
    padding: 1.5rem;
}

.value-item i, .why-us-item i { /* Placeholder for icons */
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.value-item h4, .why-us-item h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.our-team .team-placeholder {
    padding: 3rem;
    background-color: var(--medium-gray);
    border-radius: 10px;
    text-align: center;
    color: var(--dark-gray);
}

/* Services Page Specifics */
.detailed-services .service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    text-align: right;
}

.detailed-services .service-detail-item.reverse {
    grid-template-columns: 1.5fr 1fr;
}

.detailed-services .service-detail-item.reverse .service-image {
    order: 2;
}

.detailed-services .service-image img {
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.detailed-services .service-text h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.detailed-services .service-text h4 {
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.detailed-services .service-text ul {
    padding-right: 1.5rem; /* Indent list */
    list-style: disc; /* Use standard bullets */
    color: var(--dark-gray);
}

.detailed-services .service-text ul li {
    margin-bottom: 0.75rem;
}

/* Contact Page Specifics */
.contact-page-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    text-align: right;
}

.contact-details h2, .contact-form-container h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-details ul {
    padding-right: 0;
    margin-bottom: 2rem;
}

.contact-details ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.contact-details ul li i { /* Placeholder for icons */
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-left: 1rem; /* Space between icon and text */
    width: 20px; /* Fixed width for alignment */
    text-align: center;
}

.social-links-contact a {
    color: var(--dark-gray);
    margin-left: 1rem;
    font-size: 1.6rem;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.social-links-contact a:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

.contact-form-container .form-group {
    margin-bottom: 1.5rem;
}

.contact-form-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-form-container input[type="text"],
.contact-form-container input[type="email"],
.contact-form-container input[type="tel"],
.contact-form-container textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-family: var(--font-family);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form-container input:focus,
.contact-form-container textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.25);
}

.contact-form-container textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-container .required {
    color: red;
    margin-right: 2px;
}

.contact-form-container button[type="submit"] {
    width: 100%;
    padding: 0.8rem;
}

#form-status {
    margin-top: 1rem;
    font-weight: 600;
}

.map-section #map-placeholder {
    height: 450px;
    background-color: var(--medium-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    border-radius: 10px;
    font-style: italic;
}

/* FAQ Page Specifics */
.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-container h3 {
    color: var(--primary-color);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
   
(Content truncated due to size limit. Use line ranges to read in chunks)

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed !important; /* Added !important for testing */
    width: 65px; /* Slightly larger */
    height: 65px; /* Slightly larger */
    bottom: 35px !important; /* Added !important for testing */
    right: 35px !important; /* Added !important for testing */
    background-color: #25D366 !important; /* WhatsApp Green - Added !important */
    color: #FFF !important; /* Added !important */
    border-radius: 50%; /* Changed from 50px to ensure circle */
    text-align: center;
    font-size: 35px; /* Slightly larger icon */
    box-shadow: 3px 3px 8px rgba(0,0,0,0.4); /* Enhanced shadow */
    z-index: 1001; /* Increased z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF; /* Ensure color remains white on hover */
}



/* FAQ Page Specifics - Accordion Style Update */
.faq-item {
    border-bottom: 1px solid var(--medium-gray);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-weight: 600;
    cursor: pointer;
    position: relative;
    padding-left: 25px; /* Space for the arrow */
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--primary-color);
}

.faq-question::before { /* Arrow Icon */
    content: '\f0d9'; /* FontAwesome angle-left icon for RTL */
    font-family: 'Font Awesome 6 Free'; /* Ensure FontAwesome is loaded */
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: var(--primary-color);
}

.faq-item.active .faq-question::before {
    transform: translateY(-50%) rotate(-90deg); /* Rotate arrow down */
}

.faq-answer {
    /* display: none; */ /* Hide answer by default - Rely on max-height */
    padding-top: 1rem;
    padding-right: 1rem; /* Indent answer slightly */
    color: var(--dark-gray);
    line-height: 1.8;
    /* Use max-height transition for smooth accordion effect */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding-top 0.4s ease-out;
}

.faq-item.active .faq-answer {
    display: block; /* Show answer when active */
    max-height: 500px; /* Adjust max-height as needed, should be larger than any possible answer height */
}

/* Remove previous simple display toggle if present in JS */
/* The JS should only toggle the 'active' class */





/* New Floating WhatsApp Icon */
.new-whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px; /* For LTR, adjust to left for RTL if needed */
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
    z-index: 1001; /* Higher than previous z-index */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.new-whatsapp-float:hover {
    transform: scale(1.1);
    color: #FFF; /* Ensure color remains white on hover */
}

/* RTL adjustment for WhatsApp icon if body has dir="rtl" */
body[dir="rtl"] .new-whatsapp-float {
    right: auto;
    left: 30px;
}


/* Form Status Message Styles (Added for contact form) */
#form-status {
    padding: 10px;
    margin-top: 15px;
    border-radius: 5px;
    display: none; 
}
#form-status.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block !important; 
}
#form-status.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block !important; 
}
#form-status.info {
    background-color: #cce5ff;
    color: #004085;
    border: 1px solid #b8daff;
    display: block !important; 
}

