/* Header */
header {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

/* Gray Section */
.gray-section {
    background-color: #f8f9fa;
    padding: 40px 0;
    width: 100%;
}

/* Banner Section */
.banner-section {
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

.banner-image-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin: 0;
}

.banner-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Add padding to the body to prevent content from being hidden behind fixed header */
body {
    padding-top: 0;
}

@media (max-width: 768px) {
    .banner-image-container img {
        max-height: 150px;
    }
}

/* About Page Styles */
.about-area {
    padding: 0;
    position: relative;
    background-color: #fff;
}

/* RTL Support */
[dir="rtl"] {
    text-align: right;
}

/* Section Styling */
.about-section {
    padding: 80px 0;
}

.about-section:nth-child(even) {
    background-color: #f9f9f9;
}

.about-section:nth-child(odd) {
    background-color: #fff;
}

.about-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.banner-area {
    background-image: url('../images/about-banner.jpg');
    background-size: cover;
    background-position: center;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
}

.banner-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.banner-content {
    position: relative;
    z-index: 1;
}

.banner-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    font-weight: 700;
}

.banner-content ul {
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.banner-content ul li {
    display: inline-block;
    margin: 0 5px;
    color: #fff;
}

.banner-content ul li a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'Tajawal', sans-serif;
}

.banner-content ul li a:hover {
    color: #3f59a8;
}

/* About Content */
.about-content {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.section-title {
    margin-bottom: 60px;
    text-align: center;
    padding: 0 15px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #3f59a8;
    font-weight: 700;
}

.section-title p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: #3f59a8;
    font-weight: 700;
}

.section-title p {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.about-text h3 {
    font-size: 28px;
    margin: 0 0 20px 0;
    color: #3f59a8;
    position: relative;
    font-weight: 600;
    text-align: right;
}

.about-text p {
    text-align: right;
    line-height: 1.8;
    margin-bottom: 20px;
}


.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
    margin-bottom: 20px;
}

.list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.list li {
    padding: 10px 0;
    padding-right: 30px;
    position: relative;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.list li i {
    color: #3f59a8;
    margin-left: 10px;
    position: absolute;
    right: 0;
    top: 12px;
}

/* Image Gallery */
.about-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

/* RTL Support */
[dir="rtl"] .about-text h3 {
    padding-right: 0;
    padding-left: 20px;
}

[dir="rtl"] .about-text h3::after {
    right: auto;
    left: 0;
}

[dir="rtl"] .list li {
    padding-right: 0;
    padding-left: 30px;
}

[dir="rtl"] .list li i {
    margin-left: 0;
    margin-right: 10px;
    right: auto;
    left: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 36px;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .about-content {
        padding: 20px;
    }
    
    .about-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .banner-content h1 {
        font-size: 28px;
    }
    
    .about-gallery {
        grid-template-columns: 1fr;
    }
}
