﻿
    .news-box {
        display: flex;
        /*gap: 24px;*/
        background-color :white ;
        width :80%; 
        border-radius :30px;
        margin :0px auto;
        padding :15px;
    }

    /* سمت راست: خبر اصلی بزرگ */
    .main-news-box {
        flex: 1 1 40%;
        /*background: #f9f9f9;*/
        padding: 16px;
        /*border-radius: 12px;*/
    }

    .main-news-link {
        display: block;
        text-decoration: none;
        color: inherit;
        cursor: pointer;
    }

        .main-news-link img {
            width: 100%;
            border-radius: 12px;
            object-fit: cover;
            margin-bottom: 12px;
        }

    .main-news-title {
        font-size: 22px;
        font-weight: bold;
        margin-bottom: 8px;
        text-align: right;
    }

    .main-news-desc {
        font-size: 11px;
        color: #1f2dae;
        line-height: 1.4;
        text-align: right;
    }

    .side-news {
        flex: 1 1 38%;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .side-news-item {
        display: flex;
        gap: 12px;
        /*background: #f2f2f2;*/
        padding: 12px;
        border-radius: 10px;
        text-decoration: none;
        color: black;
        font-weight: 500;
        align-items: flex-start;
        transition: background 0.3s ease;
        border-bottom: 1px solid #ddd; /* خط نازک طوسی */
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
        .side-news-item:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .side-news-item:hover {
            background: #e0e0e0;
        }

        .side-news-item img {
            width: 100px;
            height: 70px;
            object-fit: cover;
            border-radius: 8px;
        }

    .side-news-text {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: right;
    }

    .side-news-title {
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 6px;
    }

    .side-news-desc {
        font-size: 14px;
        color: #0026ff;
        line-height: 1.4;
    }
    .image-report-grid {
        display: grid;
        grid-template-columns: repeat(2, 300px); /* ستون‌های با عرض ثابت */
        gap: 24px;
        justify-content: center; /* وسط‌چینی دقیق */
        padding: 20px;
    }

    .report-box {
        text-align: center;
    }

    .report-link {
        text-decoration: none;
        color: inherit;
        display: block;
    }

    .report-box img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 16px;
        display: block;
    }

    .report-title {
        margin-top: 10px;
        font-size: 14px;
    }

    body {
        /*margin: 0;*/
     background-color: #dde9ef;
    }

    .header-pattern {
        background-image: url('pattern-top.png'); /* تصویر نوار بالا */
        background-repeat: repeat-x;
        height: 40px;
    }

    .news-section {
        text-align: center;
        padding: 10px 10px;
        position: relative;
    }

    .rss-icon {
        width: 60px;
        margin: 0 auto;
    }

        .rss-icon img {
            width: 100%;
        }

    .section-title {
        font-size: 24px;
        color: #003e78;
        margin-top: 10px;
        font-weight: bold;
    }

        .section-title::after {
            content: "";
            display: block;
            width: 80px;
            margin: 10px auto;
            border-bottom: 3px solid #c5a645;
        }

    .buttons {
        margin-top: 20px;
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .btn {
        padding: 12px 30px;
        border-radius: 10px;
        font-size: 18px;
        border: none;
        cursor: pointer;
    }

    .btn-news {
        background-color: #003e78;
        color: white;
    }

    .btn-image {
        background-color: #e6f0f5;
        color: #333;
    }

    .scroll-up {
        position: fixed;
        bottom: 20px;
        left: 20px;
        background: white;
        border-radius: 50%;
        padding: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .bot-icon {
        position: fixed;
        bottom: 20px;
        right: 20px;
    }

        .bot-icon img {
            width: 60px;
        }



 
        /* 📱 ریسپانسیو برای موبایل‌ها و تبلت‌ها */
@media (max-width: 768px) {
    .news-box {
        flex-direction: column;
        width: 95%;
        padding: 10px;
    }

    .main-news-box,
    .side-news {
        flex: 1 1 100%;
        padding: 8px;
    }

    .side-news-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .side-news-item img {
        width: 100%;
        height: auto;
    }

    .side-news-text {
        text-align: center;
        margin-top: 10px;
    }

    .main-news-link img {
        height: auto;
    }

    .main-news-title {
        font-size: 18px;
    }

    .side-news-title {
        font-size: 15px;
    }

    .side-news-desc {
        font-size: 13px;
    }

    .buttons {
        flex-direction: column;
        gap: 8px;
    }

    .btn {
        width: 100%;
        font-size: 16px;
    }

    .image-report-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .report-box img {
        height: 180px;
    }
}
