/* ===================== */
/* Reset and Base Styles */
/* ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', Arial, sans-serif;
    line-height: 1.8;
    color: #333;
    background: #f9f9f9;
    direction: rtl;
    min-width: 320px;
    overflow-x: hidden;
}

/* ===================== */
/* Header */
/* ===================== */
header {
    background: linear-gradient(135deg,
        #FF7700 0%,
        #FFA500 20%,
        #1E90FF 50%,
        #00008B 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row-reverse;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
}

.logo img {
    height: 90px;
    margin-left: 10px;
    max-width: 100%;
}

.logo h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
}

/* ===================== */
/* Navigation (بنفس الرئيسية) */
/* ===================== */
nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-right: 1.5rem; /* نفس المسافة زي الرئيسية */
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

nav ul li a:hover {
    color: #FFA500;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: #FFA500;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

/* ===================== */
/* Main Content */
/* ===================== */
main {
    min-height: calc(100vh - 220px);
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-section h2 {
    color: #00008B;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #FF7700;
}

.about-section p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-list {
    list-style-type: none;
    padding: 0;
    margin: 1rem 0;
}

.about-list li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

/* ===================== */
/* قسم الماركات مع الصورة */
/* ===================== */
.brands-layout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-direction: row; /* النص على اليمين والصورة على الشمال */
    margin-bottom: 2.5rem;
}

.brands-content {
    flex: 1;
}

.brands-image {
    flex: 0 0 200px;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-top: 6rem; /* تنزل أكتر لتحت */
    margin-right: 70px; /* تقرب أكتر ناحية الكلام */
}

.brand-img {
    width: 180px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.brand-img.enlarged {
    transform: scale(1.8);
}

/* ===================== */
/* Footer */
/* ===================== */
footer {
    background: linear-gradient(135deg, #FF7700 0%, #FFA500 30%, #1E90FF 60%, #00008B 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 2rem;
}

.footer-column h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    color: white;
    text-align: right;
}

.footer-column p,
.footer-column ul,
.footer-column li {
    color: #f0f0f0;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    min-height: 44px;
    min-width: 44px;
    line-height: 44px;
}

.footer-column ul li a:hover {
    color: #FFD700;
    padding-right: 8px;
    letter-spacing: 0.5px;
}

.footer-column i {
    margin-left: 8px;
    color: #FFD700;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #FFA500;
    color: #00008B;
    transform: translateY(-3px);
}

.copyright {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: white;
}

/* ===================== */
/* Responsive Design */
/* ===================== */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .header-container {
        flex-direction: column-reverse;
        padding: 0.5rem 1rem;
    }

    .logo {
        flex-direction: row;
        gap: 15px;
        margin-top: 0.5rem;
        justify-content: center;
    }

    .logo img {
        height: 70px;
        margin-left: 0;
    }

    .logo h1 {
        font-size: 1.6rem;
        white-space: normal;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        padding: 0.5rem 0;
    }

    nav ul li {
        margin: 0 0.5rem;
    }

    nav ul li a {
        font-size: 0.9rem;
        padding: 0.3rem;
    }

    .brands-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .brands-image {
        margin-top: 2rem;
        margin-right: 0;
        justify-content: center;
    }

    .brand-img {
        width: 70%;
        max-width: 300px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-column h3 {
        text-align: center;
    }

    .footer-column p,
    .footer-column ul,
    .footer-column li {
        text-align: center;
    }
}