/* General Styles & RTL */
body {
    font-family: 'Arial', sans-serif; /* You can choose a better Arabic font if you like, e.g., Noto Sans Arabic from Google Fonts */
    margin: 0;
    padding: 0;
    direction: rtl; /* Right-to-left for Arabic */
    text-align: right; /* Default text alignment for RTL */
    color: #333;
    line-height: 1.6;
    background-color: #f4f7f6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    color: #0056b3;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.primary-btn {
    background-color: #007bff;
    color: #fff;
    border: 1px solid #007bff;
}

.primary-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.secondary-btn {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.secondary-btn:hover {
    background-color: #e6f0ff;
    color: #0056b3;
}

/* Header */
header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Allows items to wrap on smaller screens */
}

.logo h1 {
    margin: 0;
    color: #007bff;
    font-size: 2.2em;
    display: inline-block;
}

.logo p {
    margin: 0;
    font-size: 0.9em;
    color: #555;
    display: inline-block;
    margin-right: 5px; /* Space between "Asdaa" and "Services" */
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-right: 25px; /* For RTL, margin-right means space to the left of the item */
}

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

header nav ul li a {
    color: #333;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #007bff;
}

.call-btn {
    background-color: #28a745; /* Green for call to action */
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 8px; /* Space between icon and text */
    transition: background-color 0.3s ease;
}

.call-btn:hover {
    background-color: #218838;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('https://via.placeholder.com/1500x600/007bff/ffffff?text=Asdaa+Finance+Background') no-repeat center center/cover; /* Placeholder image */
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h2 {
    font-size: 3em;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Styling */
section {
    padding: 60px 0;
    text-align: center;
}

section h3 {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%; /* For RTL, start from right */
    transform: translateX(50%); /* Adjust for center alignment */
    width: 80px;
    height: 4px;
    background-color: #007bff;
    border-radius: 2px;
}


/* Services Overview */
.services-overview-section {
    background-color: #f9f9f9;
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.service-cards .card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-cards .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.service-cards .card i {
    font-size: 3em;
    color: #007bff;
    margin-bottom: 20px;
}

.service-cards .card h4 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #333;
}

.service-cards .card p {
    color: #666;
    font-size: 1.1em;
}

/* Why Choose Us Section */
.why-choose-us-section {
    background-color: #fff;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-item {
    background-color: #e6f0ff; /* Light blue background */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.feature-item i {
    font-size: 2.5em;
    color: #007bff;
    margin-bottom: 15px;
}

.feature-item p {
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

/* Rates and Fees Table */
.rates-fees-section table {
    width: 80%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden; /* Ensures rounded corners apply to content */
}

.rates-fees-section th,
.rates-fees-section td {
    padding: 15px;
    border: 1px solid #ddd;
    text-align: center;
}

.rates-fees-section th {
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
}

.rates-fees-section tr:nth-child(even) {
    background-color: #f2f2f2;
}

.rates-fees-section tr:hover {
    background-color: #e9e9e9;
}

/* Contact Section */
.contact-section {
    background-color: #f9f9f9;
}

.contact-details p {
    font-size: 1.2em;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center; /* Center horizontally */
    gap: 10px;
    color: #555;
}

.contact-details i {
    color: #007bff;
}

/* Optional: Contact Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 30px auto 0;
    text-align: right; /* For RTL */
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    width: 100%;
    box-sizing: border-box; /* Include padding in element's total width */
}

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

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9em;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-info p {
    margin: 5px 0;
}

.footer-info a {
    color: #fff;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.footer-info a:hover {
    color: #007bff;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.footer-nav ul li a {
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
    color: #007bff;
}

.copyright {
    margin-top: 20px;
    color: #aaa;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 10px;
    }

    header nav ul li {
        margin: 0;
    }

    .hero-section h2 {
        font-size: 2.2em;
    }

    .hero-section p {
        font-size: 1em;
    }

    .service-cards,
    .features-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-cards .card,
    .feature-item {
        width: 90%;
        max-width: 400px;
    }

    .rates-fees-section table {
        width: 95%;
        font-size: 0.9em;
    }

    .rates-fees-section th,
    .rates-fees-section td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 15px;
    }

    .hero-section h2 {
        font-size: 1.8em;
    }

    section h3 {
        font-size: 2em;
    }
}