/* General Body Styles */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll on zoom/clump */
}

body {
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    text-align: right; /* Right-to-left for Arabic */
    direction: rtl; /* Right-to-left for Arabic */
    opacity: 0; /* Start invisible for fade-in */
    animation: fadeIn 1s ease-in-out forwards; /* Apply fade-in animation */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Placeholder for scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header Styles */
header {
    background-color: #003366; /* Dark blue */
    color: #fff;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-and-name {
    display: flex;
    align-items: center;
}

.logo-container {
    width: 60px; /* Adjust as needed */
    height: 60px; /* Adjust as needed */
    margin-left: 15px; /* Space between logo and text */
}

.logo-container img {
    max-width: 100%;
    height: auto;
    border-radius: 50%; /* If you want a rounded logo */
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    white-space: nowrap; /* Prevent text wrapping */
}

/* Navigation Styles (if you add a nav later) */
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #ffd700; /* Gold */
}

/* Hero Section Styles */
.hero-banner-wrap {
    position: relative;
    width: 100%;
    height: 400px; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    /* Removed background-image and filter from here */
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2; /* Ensure it's behind the overlay and content */
    filter: blur(5px); /* Apply blur directly to the image, weaker blur */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: -1;
    /* backdrop-filter was here, now removed */
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* Main Content Sections */
main {
    padding: 20px;
    max-width: 1200px;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
    width: calc(100% - 40px); /* Adjust width for padding */
}

section {
    padding: 40px 0;
    border-bottom: 1px solid #eee;
}

section:last-of-type {
    border-bottom: none;
}

/* General h2 styling, overridden by more specific selectors */
h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #003366;
    margin-bottom: 30px;
    position: relative;
}

/* Specific styling for h2 within hero-content */
.hero-content h2 {
    color: #fff; /* Should be white */
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%; /* Adjust for RTL */
    transform: translateX(50%); /* Adjust for RTL */
    width: 80px;
    height: 4px;
    background-color: #ffd700;
    border-radius: 2px;
}

/* About Us Section */
#about-us {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-around;
}

.about-content-wrapper {
    flex: 1;
    min-width: 300px;
    padding: 20px;
}

.about-content-wrapper p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #003366; /* Changed to #003366 */
}

.map-container {
    flex: 1;
    min-width: 300px;
    padding: 20px;
    text-align: center;
}

.map-container img {
    max-width: 100%;
    height: auto;
    /* Removed border and border-radius as requested */
}

/* Services Section (currently commented out in HTML) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.service-item {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
}

.service-item h3 {
    color: #003366;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-item p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.btn-small {
    display: inline-block;
    background-color: #003366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-small:hover {
    background-color: #002244;
}

/* Footer Styles */
footer {
    background-color: #003366;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    border-top: 5px solid #ffd700;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin: 20px;
    text-align: right; /* Adjust for RTL */
}

.footer-section h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #ffd700;
}

.footer-section p {
    margin: 5px 0;
    font-size: 1rem;
}

.footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.9rem;
}

/* Facebook Button Styles */
.facebook-follow-us-button {
    text-align: center;
    margin-top: 20px;
}

.facebook-button {
    display: inline-flex;
    align-items: center;
    background-color: #003366; /* Changed to #003366 */
    color: #fff; /* Text color white */
    padding: 10px 20px;
    border-radius: 25px; /* Rounded corners */
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
    border: 2px solid #003366; /* Border color #003366 */
}

.facebook-button:hover {
    background-color: #002244; /* Darker blue on hover */
    border-color: #002244;
}

.facebook-logo {
    width: 24px; /* Size of the Facebook logo */
    height: 24px;
    margin-left: 10px; /* Space between text and logo for RTL */
    /* Removed filter as the SVG should now be white by default */
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        padding: 0 10px; /* Adjust padding for smaller screens */
    }

    .logo-and-name {
        margin-bottom: 15px;
    }

    .logo-container {
        margin-left: 0;
        margin-bottom: 10px;
    }

    header h1 {
        font-size: 1.5rem; /* Smaller font size for mobile */
    }

    .hero-banner-wrap {
        height: 300px; /* Adjust hero height for mobile */
    }

    .hero-content h2 {
        font-size: 2rem; /* Smaller font size for mobile */
    }

    .hero-content p {
        font-size: 0.9rem; /* Smaller font size for mobile */
    }

    main {
        padding: 10px;
        margin: 10px auto;
        width: calc(100% - 20px); /* Adjust width for padding */
    }

    section {
        padding: 20px 0; /* Adjust section padding */
    }

    h2 {
        font-size: 2rem; /* Smaller h2 for mobile */
    }

    #about-us {
        flex-direction: column;
    }

    .about-content-wrapper,
    .map-container {
        min-width: unset;
        width: 100%;
        padding: 10px; /* Adjust padding */
    }

    .about-content-wrapper p {
        font-size: 1rem; /* Adjust font size */
    }

    .facebook-button {
        padding: 8px 15px; /* Smaller button padding */
        font-size: 1rem; /* Smaller button font size */
    }

    .facebook-logo {
        width: 20px;
        height: 20px;
    }

    .footer-content {
        flex-direction: column;
        padding: 20px 10px; /* Adjust padding */
    }

    .footer-section {
        margin: 10px 0;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.5rem; /* Smaller footer h3 */
    }

    .footer-section p {
        font-size: 0.8rem; /* Smaller footer text */
    }
}
