/* إعدادات عامة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* الأزرار العائمة على اليمين */
.floating-contact {
    position: fixed;
    bottom: 40px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.float-btn:hover {
    transform: scale(1.1);
}

.whatsapp {
    background-color: #25D366;
}

.call {
    background-color: #007bff;
}

/* شريط التنقل */
header {
    background-color: #2c3e50;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

.logo {
    font-size: 2rem;
    font-weight: 900;
    color: #f39c12;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 700;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #f39c12;
}

/* القسم الرئيسي */
.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(44, 62, 80, 0.8);
}

.hero-content {
    position: relative;
    color: white;
    padding: 0 20px;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #f39c12;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.btn {
    text-decoration: none;
    background-color: #f39c12;
    color: #fff;
    padding: 12px 35px;
    border-radius: 5px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background-color: #d68910;
}

/* قسم أعمالنا */
.portfolio {
    padding: 5rem 5%;
    text-align: center;
}

.portfolio h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.item-desc {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(44, 62, 80, 0.9);
    color: white;
    padding: 15px;
    font-weight: bold;
}

/* قسم الاتصال */
.contact {
    padding: 5rem 5%;
    background-color: #fff;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact p {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #666;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.info-box {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    min-width: 250px;
    border: 2px solid #eee;
}

.info-box i {
    font-size: 2.5rem;
    color: #f39c12;
    margin-bottom: 15px;
}

/* التذييل */
footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
}
/* =========================================
   تنسيقات صفحة المقالات
========================================= */
.articles-page {
    padding: 8rem 5% 5rem; /* مسافة علوية لتجنب تغطية شريط التنقل */
    text-align: center;
    background-color: #f9f9f9;
    min-height: 100vh;
}

.articles-page h1 {
    color: #2c3e50;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: right; /* المحاذاة لليمين للغة العربية */
    transition: transform 0.3s;
}

.article-card:hover {
    transform: translateY(-10px);
}

.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
}

.article-content h3 {
    color: #f39c12;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.article-content p {
    color: #666;
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.7;
}

.read-more {
    display: inline-block;
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.read-more i {
    margin-right: 5px;
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.read-more:hover {
    color: #f39c12;
}

.read-more:hover i {
    transform: translateX(-5px); /* حركة السهم لليسار عند التمرير */
}