/* إعدادات الخطوط والتصفير الأساسي */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* الهيدر */
.main-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
}

.logo span {
    color: #2563eb; /* اللون الأزرق الإخباري */
}

.nav-links a {
    text-decoration: none;
    color: #64748b;
    margin-right: 1.5rem;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #2563eb;
}

.btn-subscribe {
    background-color: #0f172a;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-subscribe:hover {
    background-color: #2563eb;
}

/* شريط الأخبار العاجلة */
.breaking-news {
    background-color: #2563eb;
    color: white;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.breaking-news .container {
    display: flex;
    align-items: center;
}

.badge {
    background-color: #ef4444;
    padding: 0.2rem 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-right: 1rem;
}

.ticker {
    overflow: hidden;
    white-space: nowrap;
}

/* شبكة الأخبار */
.main-content {
    padding: 3rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.card-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.category {
    color: #2563eb;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card h3, .card h2 {
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.card p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more {
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    margin-top: auto;
}

/* تخصيص المقال الكبير */
.featured-card {
    grid-column: span 2;
}
.featured-card .card-img {
    height: 350px;
}

/* تذييل الموقع والاشتراك */
.newsletter-section {
    background-color: #0f172a;
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-top: 4rem;
}

.newsletter-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.newsletter-section p {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.subscribe-form input {
    width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    border: 1px solid #334155;
    background-color: #1e293b;
    color: white;
}

.subscribe-form button {
    padding: 0.75rem 1.5rem;
    background-color: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

/* شاشات الهواتف المتجاوبة */
@media (max-width: 900px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    .featured-card {
        grid-column: span 1;
    }
    .main-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    .subscribe-form {
        flex-direction: column;
        width: 100%;
    }
    .subscribe-form input {
        width: 100%;
    }
}