/* Also Read Section Frontend Styles */
.also-read-section {
    margin: 2rem 0;
    padding: 1.5rem;
    border: 1px solid #eaeaea;
    border-radius: 5px;
}

.ars-heading {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #333;
}

.ars-heading-icon {
    margin-right: 0.5rem;
}

.ars-grid {
    display: grid;
    grid-gap: 1.5rem;
}

.ars-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ars-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ars-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.ars-item {
    background: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ars-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ars-image {
    overflow: hidden;
}

.ars-image img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.ars-item:hover .ars-image img {
    transform: scale(1.05);
}

.ars-content {
    padding: 1rem;
}

.ars-title {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.ars-title a {
    color: #333;
    text-decoration: none;
}

.ars-title a:hover {
    color: #0073aa;
}

.ars-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.ars-meta span {
    margin-right: 0.5rem;
}

.ars-excerpt {
    font-size: 0.9rem;
    color: #555;
}

/* List view */
.ars-list .ars-item {
    display: flex;
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid #eaeaea;
    border-radius: 5px;
}

.ars-list .ars-image {
    flex: 0 0 30%;
    margin-right: 1rem;
}

.ars-list .ars-content {
    flex: 1;
    padding: 0;
}

/* Slider view */
.ars-slider {
    position: relative;
}

.ars-slider-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.ars-slider-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}

.ars-slider .ars-slide {
    flex: 0 0 auto;
    width: 300px;
    margin-right: 1rem;
}

.ars-slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.ars-slider-nav button {
    background: #333;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    cursor: pointer;
    border-radius: 3px;
}

.ars-slider-nav button:hover {
    background: #0073aa;
}

/* Mobile hidden */
.ars-mobile-hidden {
    display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    .ars-columns-3,
    .ars-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ars-list .ars-item {
        flex-direction: column;
    }
    
    .ars-list .ars-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .ars-mobile-hidden {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .ars-grid {
        grid-template-columns: 1fr;
    }
    
    .ars-slider .ars-slide {
        width: 250px;
    }
}

/* RTL support */
.rtl .ars-meta span {
    margin-right: 0;
    margin-left: 0.5rem;
}

.rtl .ars-list .ars-image {
    margin-right: 0;
    margin-left: 1rem;
}

.rtl .ars-heading-icon {
    margin-right: 0;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .rtl .ars-list .ars-image {
        margin-left: 0;
    }
}