/* SJJF News Module Styles */

.sjjf-news-header,
.sjjf-news-overlay{
    direction: rtl;
    text-align: right;
}

.sjjf-news-track {
    display: flex;
    gap: 20px;
}

.sjjf-news-container {
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.sjjf-news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.sjjf-news-slider::-webkit-scrollbar{
    display:none;
}

.sjjf-news-header h2 {
    font-size: 40px;
    font-weight: 900;
    margin: 0;
    color: #1a1a1a;
}

/* Slider Controls */
.sjjf-news-nav {
    display: flex;
    gap: 12px;
}

.sjjf-news-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #2c2f36;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    padding: 0;
}

.sjjf-news-btn:hover {
    background: #00ff9c;
    color: #1a1a1a;
}

.sjjf-news-btn::after {
    content: "";
    position: absolute;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: 0.3s ease;
    pointer-events: none;
}

.sjjf-news-btn:hover::after {
    border-color: #00ff9c;
    transform: translate(-50%, -50%) scale(1.05);
}

/* Slider Track */
.sjjf-news-slider {
    overflow:hidden;
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
    padding: 20px 0 40px;
    width: 100%;
    position: relative;
}

.sjjf-news-slider:active {
    cursor: grabbing;
}



/* News Card */
.sjjf-news-card {
    flex: 0 0 300px;
    height: 480px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    isolation:isolate;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}



.sjjf-news-card{
    display:flex;
    align-items:stretch;
}

.sjjf-news-card img{
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
}

.sjjf-news-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    box-sizing: border-box;

    background: linear-gradient(
        to top,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.55) 45%,
        transparent 100%
    );
}

.sjjf-news-overlay h3{
    white-space:normal;
}
.sjjf-news-tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    backdrop-filter: blur(4px);
}

.sjjf-news-overlay h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
}

/* Hover States */
.sjjf-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

.sjjf-news-card:hover img {
    transform: scale(1.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .sjjf-news-header h2 {
        font-size: 32px;
    }
    .sjjf-news-card {
        flex: 0 0 280px;
        width: auto;
    }
}
