/**
 * Blocks Styles for Urdu Newsify
 * 
 * @package Urdu_Newsify
 */

/* ==========================================================================
   Block 1 - Featured Slider with Side Lists
   ========================================================================== */

.news-block {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	max-width: 1200px;
    margin: 14px auto;
}

.news-block-1 {
    padding: 20px;
}

/* Block Header */
.block-header {
    margin-bottom: 20px;
    padding-bottom: 9px;
    border-bottom: 3px solid #0066cc;
}

.block-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0066cc;
    margin: 0;
    display: inline-block;
    position: relative;
}

.block-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    right: 0;
    width: 100%;
    height: 3px;
    background: #ff0505;
}

/* Section Titles */
.section-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0066cc;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: #ff6600;
}

/* Main Grid Layout */
.block-main-grid {
    display: grid;
    grid-template-columns: 300px 1fr 250px;
    gap: 20px;
    margin-bottom: 30px;
}

/* Right Sidebar - Mini Posts with Thumbnails */
.block-right-sidebar {
    display: flex;
    flex-direction: column;
}

.right-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mini-post {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mini-post:hover {
    background: #f0f0f0;
    transform: translateX(-3px);
}

.mini-post-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
}

.mini-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mini-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mini-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 8px 0;
}

.mini-post-title a {
    color: #333;
}

.mini-post-title a:hover {
    color: #0066cc;
}

.mini-post-meta {
    font-size: 0.8rem;
    color: #999;
}

.post-date {
    display: inline-block;
}

/* Center Slider - Featured Post Carousel */
.block-center-slider {
    position: relative;
}

.featured-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 450px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.featured-post-image {
    position: relative;
    height: 100%;
    min-height: 450px;
    width: 100%;
}

.featured-post-image img {
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    display: block;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.3) 70%, transparent 100%);
    padding: 30px 25px;
    z-index: 3;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
	padding-bottom: 30px;
}

.featured-title a {
    color: #fff;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: #ffd700;
}

/* Carousel Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    font-size: 2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
}

.carousel-control:hover {
    background: rgba(0,102,204,0.9);
    border-color: rgba(255,255,255,0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-control-icon {
    display: block;
    line-height: 1;
    font-size: 2.5rem;
    font-weight: bold;
}

.carousel-prev {
    right: 15px;
}

.carousel-next {
    left: 15px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    padding: 10px 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.carousel-indicators .indicator:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.2);
}

.carousel-indicators .indicator.active {
    background: #fff;
    border-color: #0066cc;
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,102,204,0.5);
}

/* Left Sidebar - Text-Only Posts */
.block-left-sidebar {
    display: flex;
    flex-direction: column;
}

.left-posts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.text-post {
    padding: 12px;
    background: #f9f9f9;
    border-right: 4px solid #0066cc;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.text-post:hover {
    background: #e8f4ff;
    border-right-color: #004999;
    transform: translateX(-3px);
}

.text-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    color: #333;
}

.text-post-title a {
    color: #333;
}

.text-post-title a:hover {
    color: #0066cc;
}

/* Trending Section */
.block-trending-section {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid #e0e0e0;
}

.trending-header {
    margin-bottom: 20px;
}

.trending-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff6600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.trending-icon {
    font-size: 1.8rem;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.trending-post {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.trending-post:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.trending-post-thumb {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
}

.trending-post-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.3) 100%);
}

.trending-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.trending-post:hover .trending-post-thumb img {
    transform: scale(1.1);
}

.trending-post-content {
    padding: 15px;
}

.trending-post-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    color: #333;
}

.trending-post-title a {
    color: #333;
}

.trending-post-title a:hover {
    color: #0066cc;
}

/* ==========================================================================
   Responsive Design - Block 1
   ========================================================================== */

/* Tablet View */
@media (max-width: 992px) {
    .block-main-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .block-right-sidebar .right-posts-list,
    .block-left-sidebar .left-posts-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .featured-post,
    .featured-carousel {
        min-height: 350px;
    }
    
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile View - Custom Order */
@media (max-width: 576px) {
    .news-block-1 {
        padding: 15px;
    }
    
    .block-title {
        font-size: 1.4rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    /* Mobile Order: Center → Right → Left → Trending */
    .block-main-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    /* Center slider comes first */
    .block-center-slider {
        order: 1;
    }
    
    /* Right sidebar second with 2 columns */
    .block-right-sidebar {
        order: 2;
    }
    
    .block-right-sidebar .right-posts-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    /* Left sidebar third */
    .block-left-sidebar {
        order: 3;
    }
    
    .block-left-sidebar .left-posts-list {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .mini-post {
        padding: 0px;
        flex-direction: column;
    }
    .mini-post-content {
    padding: 10px;
}
    .mini-post-thumb {
        width: 100%;
        height: 120px;
    }
    
    .mini-post-title {
        font-size: 0.9rem;
    }
    
    .featured-post-image,
    .carousel-wrapper,
    .featured-carousel {
        min-height: 250px;
    }
    
    .carousel-slide {
        min-height: 250px;
    }
    
    .featured-post-image img {
        min-height: 250px;
    }
    
    .featured-title {
        font-size: 1.3rem;
    }
    
    .featured-overlay {
        padding: 20px 15px;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .carousel-control-icon {
        font-size: 2rem;
    }
    
    .carousel-prev {
        right: 10px;
    }
    
    .carousel-next {
        left: 10px;
    }
    
    .carousel-indicators {
        bottom: 10px;
        padding: 8px 15px;
    }
    
    .carousel-indicators .indicator {
        width: 8px;
        height: 8px;
    }
    
    .carousel-indicators .indicator.active {
        width: 20px;
    }
    
    /* Trending with 2 columns */
    .trending-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .trending-title {
        font-size: 1.2rem;
    }
    
    .trending-post-thumb {
        height: 120px;
    }
}

/* Extra Small Mobile */
@media (max-width: 380px) {

    
    .mini-post-thumb {
        height: 150px;
    }
}

/* ==========================================================================
   Block 2 - Two Column Layout (Left List + Right 2 Large)
   ========================================================================== */

.news-block-2 {
    padding: 20px;
}

/* Block 2 Two Column Layout */
.block-2-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
	direction: ltr;
}

/* Left Column - List Posts */
.block-2-left {
    padding: 0 20px 0 20px;
    border-radius: 8px;
}

.left-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.list-post-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    transition: all 0.3s ease;
	direction: rtl;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.list-post-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateX(-3px);
}

.list-post-thumb {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
}

.list-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.list-post-item:hover .list-post-thumb img {
    transform: scale(1.1);
}

.list-post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.list-post-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 6px 0;
}

.list-post-title a {
    color: #333;
}

.list-post-title a:hover {
    color: #0066cc;
}

.list-post-meta {
    font-size: 0.8rem;
    color: #999;
}

/* Right Column - 2 Large Posts */
.block-2-right {
    display: flex;
    flex-direction: column;
}

.right-large-posts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.large-post-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.large-post-thumb {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.large-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.large-post-item:hover .large-post-thumb img {
    transform: scale(1.05);
}

.large-post-content {
    padding: 20px;
	direction: rtl;
}

.large-post-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 35px;
    margin: 0 0 12px 0;
}

.large-post-title a {
    color: #222;
}

.large-post-title a:hover {
    color: #0066cc;
}

.large-post-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin: 0 0 10px 0;
}

.large-post-meta {
    font-size: 0.85rem;
    color: #999;
}

/* ==========================================================================
   Responsive Design - Block 2
   ========================================================================== */

/* Tablet View */
@media (max-width: 992px) {
    .block-2-layout {
        grid-template-columns: 1fr;
        gap: 20px;
		direction: rtl;
    }
    
    .left-posts-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .right-large-posts {
        grid-template-columns: 1fr;
    }
    
    .large-post-thumb {
        height: 300px;
    }
}

/* Mobile View */
@media (max-width: 576px) {
    .news-block-2 {
        padding: 15px;
    }
    
    .block-2-left {
        padding: 15px;
    }
    
    .left-posts-list {
        grid-template-columns: 1fr;
    }
    
    .list-post-item {
        padding: 10px;
    }
    
    .list-post-thumb {
        width: 80px;
        height: 60px;
    }
    
    .list-post-title {
        font-size: 0.9rem;
    }
    
    .right-large-posts {
        grid-template-columns: 1fr;
    }
    
    .large-post-thumb {
        height: 220px;
    }
    
    .large-post-content {
        padding: 15px;
    }
    
    .large-post-title {
        font-size: 1.1rem;
    }
    
    .large-post-excerpt {
        font-size: 0.9rem;
    }
}

/* ==========================================================================
   Block 3 - Four Column Grid
   ========================================================================== */

.news-block-3 {
    padding: 20px;
}

/* Block 3 Grid */
.block-3-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

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

.grid-post-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.grid-post-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.grid-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.grid-post-item:hover .grid-post-thumb img {
    transform: scale(1.1);
}

.grid-post-content {
    padding: 20px;
}

.grid-post-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px 0;
}

.grid-post-title a {
    color: #222;
}

.grid-post-title a:hover {
    color: #0066cc;
}

.grid-post-excerpt {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #666;
    margin: 0 0 10px 0;
}

.grid-post-meta {
    font-size: 0.85rem;
    color: #999;
}

/* ==========================================================================
   Responsive Design - Block 3
   ========================================================================== */

/* Tablet View */
@media (max-width: 992px) {
    .block-3-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile View */
@media (max-width: 576px) {
    .news-block-3 {
        padding: 15px;
    }
    
    .block-3-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .grid-post-thumb {
        height: 180px;
    }
    
    .grid-post-content {
        padding: 15px;
    }
    
    .grid-post-title {
        font-size: 1rem;
    }
    
    .grid-post-excerpt {
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   Block 4 - Professional Image Slider
   ========================================================================== */

.news-block-4 {
    padding: 30px 20px;
}

.block-4-title {
    color: #fff;
}

.block-4-slider-wrapper {
    margin-top: 20px;
}

.block-4-slider {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.slider-track {
    position: relative;
    width: 100%;
    height: 500px;
}

.slider-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    z-index: 1;
}

.slider-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slider-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 40%, rgba(0,0,0,0.4) 70%, transparent 100%);
    padding: 40px 30px;
    z-index: 3;
}

.slider-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
	padding-bottom: 33px;
    text-align: center;
}

.slider-title a {
    color: #fff;
    transition: color 0.3s ease;
}

.slider-title a:hover {
    color: #ffd700;
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    padding: 0;
    outline: none;
}

.slider-nav:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav svg {
    width: 28px;
    height: 28px;
}

.slider-prev {
    right: 20px;
}

.slider-next {
    left: 20px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    padding: 12px 24px;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    border-radius: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: 2px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.slider-dot:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.2);
}

.slider-dot.active {
    background: #fff;
    border-color: #ffd700;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 0 15px rgba(255,215,0,0.6);
}

/* ==========================================================================
   Responsive Design - Block 4
   ========================================================================== */

/* Tablet View */
@media (max-width: 992px) {
    .slider-track {
        height: 400px;
    }
    
    .slider-title {
        font-size: 1.6rem;
    }
    
    .slider-overlay {
        padding: 30px 20px;
    }
    
    .slider-nav {
        width: 50px;
        height: 50px;
    }
    
    .slider-nav svg {
        width: 24px;
        height: 24px;
    }
}

/* Mobile View */
@media (max-width: 576px) {
    .news-block-4 {
        padding: 20px 15px;
    }
    
    .slider-track {
        height: 300px;
    }
    
    .slider-title {
        font-size: 1.3rem;
    }
    
    .slider-overlay {
        padding: 20px 15px;
    }
    
    .slider-nav {
        width: 45px;
        height: 45px;
    }
    
    .slider-nav svg {
        width: 20px;
        height: 20px;
    }
    
    .slider-prev {
        right: 10px;
    }
    
    .slider-next {
        left: 10px;
    }
    
    .slider-dots {
        padding: 8px 16px;
        gap: 8px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .slider-dot.active {
        width: 24px;
    }
}

/* ==========================================================================
   Block 5 - Text Links + Image Posts
   ========================================================================== */

.news-block-5 {
    padding: 20px;
}

.block-5-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
	direction: ltr;
}

/* Left Text Links */
.block-5-left {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
}

.text-links-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.text-link-item {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    padding-right: 20px;
	display: flex;
    align-items: center;
    justify-content: flex-end;
}

.text-link-item:last-child {
    border-bottom: none;
}

.text-link-item::before {
    content: "◀";
    position: absolute;
    right: 0;
    color: #0066cc;
    font-size: 0.7rem;
}

.text-link-item a {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.text-link-item a:hover {
    color: #0066cc;
}

/* Right Image Posts */
.image-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

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

.image-post-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.image-post-thumb {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.image-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-post-item:hover .image-post-thumb img {
    transform: scale(1.1);
}

.image-post-content {
    padding: 15px;
	direction: rtl;
}

.image-post-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.image-post-title a {
    color: #333;
}

.image-post-title a:hover {
    color: #0066cc;
}

/* ==========================================================================
   Block 6 - List Posts + Large Featured (CORRECTED)
   ========================================================================== */

.news-block-6 {
    padding: 20px;
}

.block-6-layout {
    display: grid;
    grid-template-columns: 600px 1fr;
    gap: 25px;
	direction: ltr;
}

/* Left: Vertical List */
.block-6-left {
    padding: 10px;
    border-radius: 8px;
}

.vertical-list-posts {
    display: grid;
    gap: 10px;
    direction: rtl;
    grid-template-columns: repeat(2, 1fr);
}

.vertical-list-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vertical-list-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateX(-3px);
}

.vertical-list-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
}

.vertical-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vertical-list-item:hover .vertical-list-thumb img {
    transform: scale(1.1);
}

.vertical-list-content {
    flex: 1;
}

.vertical-list-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 5px 0;
}

.vertical-list-title a {
    color: #333;
}

.vertical-list-title a:hover {
    color: #0066cc;
}

.vertical-list-excerpt {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #666;
	display: none;
}

/* Right: Large Featured */
.block-6-featured {
    position: relative;
}

.block-6-featured-thumb {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.block-6-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.block-6-featured:hover .block-6-featured-thumb img {
    transform: scale(1.05);
}

.block-6-featured-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 40%, transparent 100%);
    padding: 30px 25px;
}

.block-6-featured-title {
    font-size: 26px !important;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.block-6-featured-title a {
    color: #fff;
}

.block-6-featured-title a:hover {
    color: #ffd700;
}

/* ==========================================================================
   Block 7 - Image Slider + Numbered List (CORRECTED)
   ========================================================================== */

.news-block-7 {
    padding: 20px;
}

.block-7-layout {
    display: grid;
    grid-template-columns: 1fr 600px;
    gap: 20px;
}

/* Left Slider */
.block-7-section-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 3px solid #0066cc;
}

.block-7-slider {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.block-7-track {
    position: relative;
    width: 100%;
    height: 450px;
}

.block-7-slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.block-7-slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.block-7-slide-img {
    position: relative;
    width: 100%;
    height: 100%;
}

.block-7-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.block-7-slide-text {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, transparent 100%);
    padding: 25px 20px;
}

.block-7-slide-heading {
    font-size: 28px !important;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
	text-align: center;
    padding-bottom: 32px;
}

.block-7-slide-heading a {
    color: #fff;
}

.block-7-slide-heading a:hover {
    color: #ffd700;
}

/* Navigation Arrows */
.block-7-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.block-7-arrow:hover {
    background: rgba(0,102,204,0.9);
}

.block-7-arrow-prev {
    right: 15px;
}

.block-7-arrow-next {
    left: 15px;
}

/* Indicators */
.block-7-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.block-7-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.block-7-indicator:hover {
    background: rgba(255,255,255,0.8);
}

.block-7-indicator.active {
    background: #fff;
    width: 25px;
    border-radius: 5px;
}

/* Right: Numbered List */
.block-7-numbered-list {
    list-style: none;
    counter-reset: num;
    margin: 0;
    padding: 0;
	display: grid;
    gap: 10px;
    direction: rtl;
    grid-template-columns: repeat(2, 1fr);
}

.block-7-numbered-item {
    counter-increment: num;
    padding: 12px 50px 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    position: relative;
    transition: all 0.3s ease;
}

.block-7-numbered-item:hover {
    background: #f5f5f5;
}

.block-7-numbered-item::before {
    content: counter(num);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background: #0066cc;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.block-7-numbered-item a {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.block-7-numbered-item a:hover {
    color: #0066cc;
}

/* ==========================================================================
   Responsive Design - Blocks 5, 6, 7
   ========================================================================== */

/* Tablet */
@media (max-width: 992px) {
    .block-5-layout,
    .block-6-layout,
    .block-7-layout {
        grid-template-columns: 1fr;
    }
    
    .image-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vertical-list-posts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .block-6-featured-thumb {
        height: 350px;
    }
    
    .block-7-track {
        height: 350px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .news-block-5,
    .news-block-6,
    .news-block-7 {
        padding: 15px;
    }
    
    .block-5-left,
    .block-6-left {
        padding: 15px;
    }
    .block-7-numbered-list {
    grid-template-columns: repeat(1, 1fr);
}
    .image-posts-grid,
    .vertical-list-posts {
        grid-template-columns: 1fr;
    }
    
    .block-6-featured-thumb {
        height: 250px;
    }
    
    .block-6-featured-title {
        font-size: 1.3rem;
    }
    
    .block-7-track {
        height: 250px;
    }
    
    .block-7-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .block-7-slide-heading {
        font-size: 1.1rem;
    }
}

/* ==========================================================================
   Block 8 - List + Featured (Same as Block 6)
   ========================================================================== */

.news-block-8 {
    padding: 20px;
}

.block-8-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
	direction: ltr;
}

/* Left List */
.block-8-left {
    padding: 0 20px 0 20px;
    border-radius: 8px;
}

.block-8-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
	direction: rtl;
}

.block-8-list-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.block-8-list-item:hover {
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: translateX(-3px);
}

.block-8-list-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
}

.block-8-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.block-8-list-item:hover .block-8-list-thumb img {
    transform: scale(1.1);
}

.block-8-list-content {
    flex: 1;
}

.block-8-list-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 5px 0;
}

.block-8-list-title a {
    color: #333;
}

.block-8-list-title a:hover {
    color: #0066cc;
}

.block-8-list-excerpt {
    font-size: 0.85rem;
    line-height: 1.4;
    color: #666;
	display: none;
}

/* Right Featured */
.block-8-featured-thumb {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.block-8-featured-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.block-8-featured:hover .block-8-featured-thumb img {
    transform: scale(1.05);
}

.block-8-featured-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 40%, transparent 100%);
    padding: 30px 25px;
}

.block-8-featured-title {
    font-size: 28px !important;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.block-8-featured-title a {
    color: #fff;
}

.block-8-featured-title a:hover {
    color: #ffd700;
}

/* Responsive - Block 8 */
@media (max-width: 992px) {
    .block-8-layout {
        grid-template-columns: 1fr;
    }
    
    .block-8-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .block-8-featured-thumb {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .news-block-8 {
        padding: 15px;
    }
    
    .block-8-left {
        padding: 15px;
    }
    
    .block-8-list {
        grid-template-columns: 1fr;
    }
    
    .block-8-featured-thumb {
        height: 250px;
    }
    
    .block-8-featured-title {
        font-size: 1.3rem;
    }
	.news-block { margin: 0 auto;
    padding: 14px 0 !important;}
}
