body {
    margin: 0;
    font-family: "Tahoma", system-ui, sans-serif;
    background-color: #111;
    color: #eee;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* ===================== SLIDER ===================== */
.slider-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 35px;
    background-color: #000;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    flex: 0 0 100%;
    position: relative;
}

.slide img {
    width: 100%;
    display: block;
}

.slide-overlay {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0));
    text-align: right;
}



.slide-title {
    font-size: 1.6rem;
    font-family:Tanseek;
    font-weight: 800;
    color: #ffcc66;
    margin-bottom: 28px;
    line-height: 1.4;
    text-shadow:
        0 0 5px #000,
        0 0 8px #000,
        0 0 12px #000,
        2px 2px 10px #000,
        -2px -2px 10px #000;
}

.slide-category-link {
    position : relative;
    top : -20px;
    display: inline-block;
    background-color: #ffcc66 !important;  
    font-weight:bold;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family:Roboto;
    text-decoration: none !important;
    color:#000 !important
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid #a0060e;;
    background: transparent;
    cursor: pointer;
}

.slider-dot.active {
    background: #ffcc66;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.55);
    color: #ffcc66;
    font-size: 26px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    z-index: 5;
}

.slider-arrow-prev {
    inset-inline-start: 10px;
}

.slider-arrow-next {
    inset-inline-end: 10px;
}

/* Desktop max width */
@media (min-width: 768px) {
    #home-slider .slider-wrapper {
        max-width: 620px;
        margin: 0 auto;
    }
}


/* ===================== FEATURED ===================== */

.featured-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 15px;
    row-gap: 32px;
}


/* Mobile only: 2 columns, items left & right */
@media (max-width: 767px) {
    #featured-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)); /* 2 equal columns */
        column-gap: 12px;  /* space between the two thumbs in a row */
        row-gap: 16px;     /* space between rows */
    }

    /* Make sure cards don’t force full width */
    #featured-grid .featured-card {
        width: 100%;
        box-sizing: border-box;
    }
}


.featured-card {
    background: #1a1a1a;
    width: 140px;
    flex: 0 0 140px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 6px rgba(0,0,0,0.7);
    transition: 0.2s;
}


.featured-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 12px rgba(0,0,0,0.9);
}

.featured-card-img-wrap {
    position: relative;
}

.featured-card img {
    width: 100%;
    display: block;
}


.featured-card a {
    color: #E3E3E3;
    text-decoration: none;
}

/* TAG BADGE */
.featured-card-category {
    position: absolute;
    inset-inline-end: 8px; /* top-left in RTL */
    top: 8px;
    background: rgba(0,0,0,0.85);
    color: #ffcc66 !important;
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    text-decoration: none !important;
    z-index: 5;
    font-family:Tahoma;
    font-weight:400
}

.featured-card-title {
    padding: 7px 8px 10px;
    font-size: 0.8rem;
    line-height: 1.4;
    font-family:Roboto;
    text-decoration: none !important;
    color: #E3E3E3 !important;
    font-weight:200;

}


#featured-posts {
    margin-top: 40px !important; /* increase or decrease as you like */
}

.featured-main-title {
    font-family: 'Tanseek', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffcc66;
    margin: 30px 0 20px;
    padding-right: 12px; /* لأن RTL */
    border-right: 4px solid #a0060e; /* الشريط العمودي */
}

.featured-main-title span {
    display: inline-block;
}


@media (min-width: 768px) {
    #featured-posts,
    #featured-content {
        max-width: 620px;
        margin: 0 auto;
    }

    .slide-title {
        font-size: 2.5rem;
    }

}




.featured-card-title a {
    color: #E3E3E3;
    text-decoration: none;
}



/* عندما يصبح الرابط visited */
.featured-card-title a:visited {
    color: #E3E3E3 !important;
    text-decoration: none !important;
}

/* عند المرور hover — نفس اللون */
.featured-card-title a:hover {
    color: #E3E3E3 !important;
    opacity: 0.85; /* تأثير خفيف فقط */
}