/* ============================================
   CATEGORY POSTS GRID ENHANCED - STYLES
   ============================================ */

.cpge-wrapper {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    background-color: #F5F5F5;
    padding: 40px 20px;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    box-sizing: border-box;
}

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

.cpge-category-header {
    background-color: #00BCD4;
    color: #FFFFFF;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    border-radius: 4px 4px 0 0;
    font-family: 'Lexend Deca', sans-serif;
    letter-spacing: 1px;
    transition: background-color 0.3s ease;
}

.cpge-category-posts-list {
    background-color: #FFFFFF;
    border-radius: 0 0 4px 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cpge-post-item {
    padding: 15px 20px;
    border: 2px solid #00BCD4;
    margin: 15px;
    border-radius: 6px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: #2F343C;
}

.cpge-post-item:hover {
    background-color: #E0F7FA;
    box-shadow: 0 4px 12px rgba(0, 188, 212, 0.2);
    transform: translateX(5px);
}

.cpge-post-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #2F343C;
    font-family: 'Lexend Deca', sans-serif;
    margin: 0;
}

/* ============================================
   GRID LAYOUT 1 - 3 COLUMN LAYOUT
   ============================================ */

.cpge-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.cpge-category-column {
    background-color: #FFFFFF;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cpge-category-column:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.cpge-category-column .cpge-category-header {
    border-radius: 0;
}

.cpge-category-column .cpge-post-item {
    margin: 10px;
    border-radius: 4px;
}

.cpge-category-column .cpge-post-item:last-child {
    margin-bottom: 10px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .cpge-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .cpge-categories-grid {
        grid-template-columns: 1fr;
    }

    .cpge-post-item {
        margin: 10px;
    }

    .cpge-category-header {
        font-size: 16px;
        padding: 12px 15px;
    }

    .cpge-post-item p {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .cpge-wrapper {
        padding: 20px 10px;
    }

    .cpge-post-item {
        margin: 8px;
        padding: 12px 15px;
    }

    .cpge-category-header {
        font-size: 14px;
        padding: 10px 12px;
    }

    .cpge-post-item p {
        font-size: 12px;
        line-height: 1.4;
    }
}
