﻿/* ---- General Styles ---- */
body {
    margin: 0;
    padding: 0;
    font-family: 'Times New Roman', Times, serif;
    background-color: #FFFFFF;
    line-height: 1.2;
}

.site-container {
    max-width: 800px;
    margin: 0 auto; /* Center the layout */
    border: 4px solid #000080;
    background-color: #FFFFFF;
}

a {
    color: #000080;
    text-decoration: none;
}

a:hover {
    color: #FF0000;
    text-decoration: underline;
}

hr {
    border: 0;
    border-top: 1px solid #0000FF;
    margin: 15px 0;
}

/* ---- Header ---- */
.main-header {
   
    background-color: #000080;
    padding: 0; 
}

.header-image {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    width: 100%;      /* لجعل الصورة تملأ عرض الهيدر بالكامل */
    height: auto;     /* للحفاظ على أبعاد الصورة الأصلية ومنع تمطيطها */
    display: block;   /* لإزالة أي مسافات بيضاء صغيرة قد تظهر تحت الصورة */
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
 flex-wrap: wrap; /* هذا هو السطر الأهم: اسمح للعناصر بالالتفاف */

    gap: 5px; /* أضف مسافة بين القائمة ورقم الهاتف */
    padding: 5px 5px;

}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav ul li {
    display: inline-block;
    margin: 0 5px;
}

.main-nav ul li a, .header-tel a {
    color: #FFFFFF;
    font-family: Arial, sans-serif;
    font-size: 12pt;
    margin: 0 5px;
}

.header-tel a {
    color: #FFFFCC;
    }

/* ---- Main Content ---- */
.main-content {
    padding: 20px 25px;
}

.main-content h1 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 50pt;
    color: #FF0000;
    font-weight: 700;
    text-decoration: underline;
    text-align: center;
    margin: 20px 0;
}

.intro-text {
    line-height: 2;
    text-align: justify;
    margin: 0 50px 20px 50px;
    font-size: 16pt;
    color: #000080;
}

.info-section {
    display: flex;
    flex-direction: row-reverse;
    gap: 20px;
    margin-bottom: 20px;
}

.info-images {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-images img {
    width: 250px;
    height: auto;
    border: 0;
}

.info-text {
    flex: 1;
    text-align: justify;
    line-height: 2;
    font-size: 14pt;
    color: #000080;
}

.info-text hr {
    border-top: 1px solid #000080;
}

/* ---- Footer ---- */
.main-footer {
    padding: 10px;
    text-align: center;
    border-top: 4px solid #000080;
    background-color: #DEDEDE;
}

.footer-promo a {
    font-family: Arial, sans-serif;
    font-size: 16pt;
    font-weight: bold;
    color: #FF0000;
}
.footer-promo a:hover{
    color: #000080;
}

.footer-products {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 5px 0 5px 0;
}

.product-item {
    width: 30%;
}

.product-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 5px;
}

.product-item p {
    font-size: 14pt;
    font-weight: bold;
    color: #000080;
    margin: 0;
}

.footer-nav {
    padding: 7px 0;
}

.footer-nav span {
    font-family: Arial, sans-serif;
    font-size: 12pt;
    font-weight: bold;
    color: #000080;
}

.footer-nav a {
    font-family: Arial, sans-serif;
    font-size: 12pt;
    margin: 0 10px;
}

/* ---- Responsive Styles for Mobile & Tablets ---- */
@media screen and (max-width: 768px) {

    .site-container {
        width: 100%;
        max-width: 100%;
        border-left: none;
        border-right: none;
    }
.footer-promo a {
        font-size: 14pt;
    }

    /* ---- تعديلات الهيدر ---- */
    .main-header {

        background-position: center 60%;
    }

    .main-nav {
       /* flex-direction: column;*/ 
    justify-content: center; /* اجعل العناصر في المنتصف أفقيًا عند الالتفاف */
        padding: 5px;
    }

    .main-nav ul li {
       /* display: block; */
        text-align: center;
        margin: 0;
         
    }

    .main-nav ul li a, .header-tel a {
        font-size: 11pt;
    }
    /* ---- تعديلات المحتوى الرئيسي ---- */
    .main-content {
        padding: 15px;
    }

    .main-content h1 {
        font-size: 28pt;
    }

    .intro-text {
        margin: 0 15px 20px 15px;
        font-size: 14pt;
    }

    .info-section {
        flex-direction: column;
        align-items: center;
    }

    .info-images img {
        width: 100%;
        max-width: 300px;
    }

    /* ---- تعديلات الفوتر ---- */
    .footer-products {
        flex-direction: column;
        align-items: center;
    }

    .product-item {
        width: 80%;
        margin-bottom: 20px;
        text-align: center;
    }

    .footer-nav a {
        display: block;
        margin: 5px 0;
    }
}