* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, sans-serif;
    background: #f3f5f9;
    color: #172033;
    direction: rtl;
}

a {
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 30px));
    margin: auto;
}

.top-header {
    background: linear-gradient(135deg, #111827, #1e3a5f);
    color: #fff;
    padding: 22px 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #f5c542;
    color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: bold;
}

.logo-box h1 {
    margin: 0;
    font-size: 28px;
}

.logo-box p {
    margin: 5px 0 0;
    color: #d7deea;
    font-size: 14px;
}

.date-box {
    background: rgba(255, 255, 255, 0.12);
    padding: 10px 14px;
    border-radius: 12px;
    color: #f5c542;
    font-weight: bold;
}

.main-nav {
    background: #ffffff;
    border-bottom: 1px solid #dde3ee;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-content {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px 0;
}

.nav-content a {
    color: #1f2937;
    background: #f1f5f9;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
    transition: 0.2s;
}

.nav-content a:hover {
    background: #1e3a5f;
    color: #fff;
}

.main-layout {
    padding: 28px 0;
}

.hero-news {
    background: #fff;
    border-radius: 22px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
    border: 1px solid #e4e9f2;
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
    display: block;
}

.hero-text {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.badge {
    width: fit-content;
    background: #f5c542;
    color: #111827;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 14px;
}

.hero-text h2 {
    margin: 0 0 15px;
    font-size: 32px;
    line-height: 1.5;
    color: #111827;
}

.hero-text p {
    margin: 0 0 25px;
    color: #526070;
    line-height: 1.9;
    font-size: 16px;
}

.read-more,
.card-link,
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    background: #1e3a5f;
    color: #fff;
    padding: 11px 20px;
    border-radius: 12px;
    font-weight: bold;
    transition: 0.2s;
}

.read-more:hover,
.card-link:hover,
.back-link:hover {
    background: #f5c542;
    color: #111827;
}

.section-title {
    margin: 35px 0 18px;
}

.section-title h3 {
    margin: 0;
    font-size: 25px;
    color: #111827;
}

.section-title p {
    margin: 6px 0 0;
    color: #6b7280;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.news-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #e4e9f2;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: 0.2s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.news-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.news-card-body {
    padding: 16px;
}

.news-meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 10px;
}

.news-meta span:first-child {
    color: #1e3a5f;
    font-weight: bold;
}

.news-card h4 {
    margin: 0 0 10px;
    font-size: 17px;
    color: #111827;
    line-height: 1.6;
}

.news-card p {
    margin: 0 0 15px;
    color: #526070;
    font-size: 14px;
    line-height: 1.8;
}

.card-link {
    padding: 9px 15px;
    font-size: 13px;
}

.details-card {
    background: #fff;
    padding: 22px;
    border-radius: 22px;
    border: 1px solid #e4e9f2;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.08);
}

.details-image {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 18px;
    display: block;
    margin: 20px 0;
}

.details-card h2 {
    margin: 10px 0 15px;
    font-size: 34px;
    color: #111827;
    line-height: 1.5;
}

.details-summary {
    font-size: 18px;
    color: #475569;
    line-height: 2;
    border-right: 4px solid #f5c542;
    padding-right: 15px;
}

.details-content {
    font-size: 17px;
    color: #1f2937;
    line-height: 2.1;
}

.footer {
    background: #111827;
    color: #d1d5db;
    padding: 18px 0;
    text-align: center;
    margin-top: 30px;
}

.footer p {
    margin: 0;
}

@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-news {
        grid-template-columns: 1fr;
    }

    .hero-image img {
        min-height: 260px;
    }
}

@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-box h1 {
        font-size: 23px;
    }

    .date-box {
        width: 100%;
        text-align: center;
    }

    .hero-text {
        padding: 22px;
    }

    .hero-text h2 {
        font-size: 24px;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .details-card h2 {
        font-size: 25px;
    }
}