/* ========================================
   HORIZONTAL 4-COLUMN BLOG LAYOUT
   Clean, modern design with categories side-by-side
   ======================================== */

.dynamic-blog-sections.horizontal-layout {
    width: 100%;
    max-width: 1400px;
    margin: 80px auto;
    padding: 0 30px;
}

/* Main Section Header */
.sections-header {
    text-align: center;
    margin-bottom: 60px;
}

.main-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(135deg, #00F0FF, #FFD700, #FF00FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.main-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

/* 4-Column Horizontal Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

/* Individual Category Column */
.category-column {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.category-column:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--category-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-5px);
}

/* Column Header */
.column-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.column-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 28px;
}

.column-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.column-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
    line-height: 1.4;
}

/* Posts Stack (Vertical) */
.posts-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* Compact Post Card */
.post-card-compact {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.post-card-compact:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

.post-card-link {
    text-decoration: none;
    display: block;
}

/* Post Thumbnail */
.post-thumbnail {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1), rgba(255, 215, 0, 0.1));
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card-compact:hover .post-thumbnail img {
    transform: scale(1.1);
}

.post-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
}

.post-thumbnail.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--category-color);
}

/* Post Content */
.post-content {
    padding: 15px;
}

.post-date {
    display: inline-block;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 8px;
    font-weight: 400;
}

.post-date i {
    margin-right: 5px;
}

.post-title {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-excerpt {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Column Footer - View All Button */
.column-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.view-all-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--category-color)20, var(--category-color)10);
    border: 1px solid var(--category-color);
    border-radius: 10px;
    color: var(--category-color);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: var(--category-color);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px var(--category-color)50;
}

.view-all-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablet: 2 columns */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .main-title {
        font-size: 40px;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .dynamic-blog-sections.horizontal-layout {
        padding: 0 20px;
        margin: 50px auto;
    }

    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .main-title {
        font-size: 32px;
    }

    .main-subtitle {
        font-size: 16px;
    }

    .column-title {
        font-size: 20px;
    }

    .post-thumbnail {
        height: 180px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .category-column {
        padding: 20px;
    }

    .column-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .post-title {
        font-size: 14px;
    }

    .post-excerpt {
        font-size: 12px;
    }
}