body {
    margin: 0;
    padding: 0;
    font-family: "Cairo", sans-serif;
    background: #fff;
    color: #222;
    direction: rtl;
}

/* هيدر */
.header {
    background: #1a3850;
    padding: 15px 0;
}
.header-container {
    width: 90%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}
.nav a {
    color: #fff;
    margin-left: 20px;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}
.nav a:hover {
    color: #d8a128;
}

/* البانر */
.hero {
    background: url('img/hero.jpg') center/cover no-repeat;
    height: 450px;
    position: relative;
}
.hero-overlay {
    background: rgba(0,0,0,0.55);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 60px;
    color: #fff;
}
.hero-title {
    font-size: 48px;
    font-weight: 900;
}
.btn-gold {
    background: #d8a128;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}
.btn-outline {
    border: 2px solid #fff;
    padding: 12px 24px;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    margin-right: 10px;
}
.hero-buttons {
    margin-top: 25px;
}

/* الأقسام */
.main-title {
    font-size: 34px;
    text-align: center;
    margin-bottom: 30px;
    color: #1a3850;
    font-weight: 800;
}

.about-section, .services-section, .products-preview, .map-section {
    padding: 60px 20px;
}

/* صندوق المعلومات */
.license-box {
    background: #fff3d6;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

/* الخدمات */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 20px;
}
.service-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    border-right: 5px solid #d8a128;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

/* المنتجات */
.products-preview {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.products-preview .main-title {
    font-size: 32px;
    color: #1a3850;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* كل خانة منتج */
.product-item {
    display: flex;
    justify-content: center; /* محاذاة أفقية */
    align-items: center;     /* محاذاة عمودية */
    height: 250px;           /* ارتفاع كل خانة */
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

/* تأثير Hover */
.product-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* الصور داخل كل خانة */
.product-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* للحفاظ على نسبة الصورة */
    display: block;
}

/*
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 20px;
}
.product-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 10px;
}
*/
/* خريطة */
.map-container {
    width: 90%;
    margin: auto;
    border-radius: 12px;
    overflow: hidden;
}

/* الفوتر */
.footer {
    background: #1a3850;
    color: #fff;
    padding: 20px;
    text-align: center;
}
/* سلايدر الصور */
.hero-slider {
    position: relative;
    height: 450px;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
    opacity: 1;
}

.slider-overlay {
    background: rgba(0,0,0,0.55);
    height: 100%;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 60px;
}

.slider-overlay h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 5px;
}

.slider-overlay p {
    font-size: 20px;
    font-weight: 400;
}

/* أزرار التنقل */
.slider-buttons {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 20px;
}

.slider-buttons span {
    background: rgba(0,0,0,0.5);
    color: #fff;
    padding: 10px 18px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
}

.slider-buttons span:hover {
    background: #d8a128;
}
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-text {
    font-size: 18px;
    line-height: 1.9;
    color: #333;
}

.about-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border-right: 5px solid #d8a128;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    margin-bottom: 12px;
    font-size: 17px;
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
    }
}

.legal-box {
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    margin: 35px auto;      /* هام: يحرك الصندوق للمنتصف أفقياً */
    box-shadow: 0 3px 20px rgba(0,0,0,0.08);
    border-right: 5px solid #d8a128;
    max-width: 600px;       /* الحد الأقصى للعرض */
    font-family: 'Arial', sans-serif;
    text-align: right;      /* نص عربي يبدأ من اليمين */
}


.legal-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a3850;
    margin-bottom: 20px;
    text-align: right;
    
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* عمودين متساويين */
    row-gap: 15px;
    column-gap: 30px;
    direction: rtl; /* لجعل النص عربي مرتب من اليمين لليسار */
}

.legal-label {
    font-weight: 600;
    color: #333;
    text-align: right;
}

.legal-value {
    font-weight: 700;
    color: #1a3850;
    text-align: left;
}


.contact-section {
    padding: 60px 20px;
    background: #f9f9f9;
    text-align: center;
}

.contact-section .main-title {
    font-size: 32px;
    color: #1a3850;
    margin-bottom: 40px;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    flex: 1 1 300px;
    text-align: right;
}

.contact-info h3 {
    font-size: 24px;
    color: #1a3850;
    margin-bottom: 20px;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info ul li {
    font-size: 18px;
    margin-bottom: 12px;
    color: #333;
}

.contact-info ul li a {
    color: #d8a128;
    text-decoration: none;
}

.contact-info ul li a:hover {
    text-decoration: underline;
}

/* الفورم */
.contact-form {
    flex: 1 1 400px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
}

.contact-form textarea {
    min-height: 150px;
}

.contact-form .btn-gold {
    background-color: #d8a128;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form .btn-gold:hover {
    background-color: #b89520;
}

/* الخريطة */
.map-container {
    margin-top: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media(max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 30px;
    }

    .contact-info, .contact-form {
        text-align: center;
    }

    .contact-info ul li {
        text-align: center;
    }
}
