/* =================================================== */
/* ==============  الأكثر قراءة بالرئيسية    =================== */
/* =================================================== */


/* --- Widget Container --- */
.most-read-hp-widget {
    border: 2px solid #e9ecef;
    border-radius: 6px;
    width: 100%;
    max-width: 1500px;
    background-color: #f8f9fa;
    padding: 20px;
}

/* --- Articles Grid --- */
.most-read-hp-grid {
    display: grid;
    grid-template-columns: 1fr;
    padding: 7px;
}

/* --- List Styles --- */
.most-read-hp-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

/* --- Main Link Item --- */
.most-read-hp-item {
    display: flex;
    align-items: center;
    padding: 20px 5px;
    border-bottom: 2px solid #e9ecef;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
    background-color: #ffffff;
    border-radius: 6px;
}

.most-read-hp-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.07);
}

.most-read-hp-list a:last-child {
    border-bottom: none;
}

/* --- Item Number (Overlapping Style) --- */
.most-read-hp-rank {
    position: absolute;
    top: 85%;
    right: 0px;
    transform: translateY(-50%);
    font-size: 5.5rem;
    font-weight: 900;
    color: #f1616194;
    user-select: none;
    z-index: 99;
}

/* --- Item Content & Image --- */
.most-read-hp-content,
.most-read-hp-image-container {
    position: relative;
    z-index: 1;
}

.most-read-hp-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

/* --- Category Style --- */
.most-read-hp-category {
    display: inline-block;
    color: var(--seyasa-live-red-color);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 10px 2px 0;
    margin-bottom: 8px;
    border-right: 4px solid var(--seyasa-live-red-color);
}

/* --- Title Style --- */
.most-read-hp-title {
    font-size: 1rem;
    font-weight: 600;
    color: #34495e;
    line-height: 1.7;
    text-decoration: none;
    transition: color 0.25s ease;
    margin: 0;
}

.most-read-hp-title-inner {
    display: inline;
    box-shadow: inset 0px 0px 0 rgba(226, 183, 74, 0.2);
    text-decoration: none;
    transition: all 0.25s ease;
}

.most-read-hp-item:hover .most-read-hp-title {
    color: var(--seyasa-secondary-color);
}

.most-read-hp-item:hover .most-read-hp-title-inner {
    box-shadow: inset 0px -8px 0px 0px rgba(226, 183, 74, 0.2);
}

/* --- Image Container and Image Styles --- */
.most-read-hp-image-container {
    width: 200px;
    height: 130px;
    border-radius: 6px;
    margin-left: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    display: block;
    overflow: hidden;
}

.most-read-hp-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.most-read-hp-item:hover .most-read-hp-image {
    transform: scale(1.1);
}

/* --- END: Class names have been updated --- */

/* --- START: Responsive Adjustments --- */

/* For Tablets and Medium Screens */
@media (min-width: 768px) {
    .most-read-hp-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0 20px;
    }
}

/* For Large Desktop Screens */
@media (min-width: 1200px) {
    .most-read-hp-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* For Mobile Phones */
@media (max-width: 767px) {
    .most-read-hp-item {
        flex-direction: column;
        /* Stack image and content vertically */
        align-items: flex-start;
        padding: 15px;
    }

    .most-read-hp-image-container {
        width: 100%;
        /* Image takes full width */
        height: 180px;
        /* Adjust height for mobile */
        margin-left: 0;
        margin-bottom: 15px;
        /* Space between image and text */
    }

    .most-read-hp-content {
        width: 100%;
        padding: 0 5px;
    }

    .most-read-hp-rank {
        top: 168px;
        right: 15px;
        font-size: 6.5rem;
    }

    .most-read-hp-title {
        font-size: 1.1rem;
        /* Slightly larger title for better readability on mobile */
    }
}

/* --- END: Class names have been updated --- */

.trend-button-icon {
    width: 2.5rem;
    /* تم تكبير العرض */
    height: 2rem;
    /* تم تكبير الارتفاع */
    color: var(--primary-color);
    /* إضافة خاصية الانتقال (transition) لجعل الانعكاس سلساً */
    transition: transform 0.6s ease-in-out;
    /* مدة 0.6 ثانية مع تسارع وتباطؤ */
}

/* تأثير الانعكاس عند التحويم (hover) على الـ header-card بأكمله */
.header-card:hover .trend-button-icon {
    transform: scaleX(-1);
    /* يقوم بقلب العنصر أفقياً (انعكاس) */
}

.header-title-text {
    font-size: 1.125rem;
    /* text-lg */
    font-weight: 700;
    /* font-bold */
    color: #111827;
    /* text-gray-900 */
    margin: 0;
}