/*
 * CSS of category.php, moved verbatim from its inline <style> blocks, in source order.
 * Loaded by kosmos_page_template_css (functions/actions.php).
 */

/* category.php, <style> at line 5 */
/* CSS cho sidebar related categories */
.related_categories_sidebar {
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}
.sidebar_title {
    font-size: 20px;
    font-weight: 700;
    color: #E31937;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E31937;
}
.related_categories_list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.related_cat_item {
    display: flex;
    gap: 10px;
    padding: 5px 12px;
    border-radius: 6px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    position: relative;
}
.related_cat_item:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.related_cat_link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.related_cat_thumb {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    border-radius: 6px;
}
.related_cat_thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.related_cat_item:hover .related_cat_thumb img {
    transform: scale(1.1);
}
.related_cat_content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.related_cat_title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.related_cat_desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CSS cho category extra content */
.category_extra_content {
    padding: 60px 0;
    background: #f9f9f9;
}
.cat_description_wrap {
    margin-bottom: 40px;
}
.cat_desc_title {
    font-size: 28px;
    font-weight: 700;
    color: #E31937;
    margin-bottom: 20px;
}
.cat_description_content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease;
}
.cat_description_content.expanded {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.desc_content_wrapper {
    position: relative;
    max-height: 200px;
    overflow: hidden;
    transition: max-height 0.5s ease;
}
.desc_content_wrapper.expanded {
    max-height: none;
}
.desc_content {
    line-height: 1.8;
    color: #333;
}
.desc_fade {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.desc_content_wrapper.expanded .desc_fade {
    opacity: 0;
}
.read_more_btn {
    background: #E31937;
    color: #fff;
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-align: center;
    display: block;
    margin: 0 auto;
}
.read_more_btn:hover {
    background: #c0152e;
    transform: translateY(-2px);
}
.cat_keywords_wrap {
    margin-top: 40px;
}
.cat_keyword_title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
}
.keywords_list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.keyword_item {
    display: inline-block;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #E31937;
    border-radius: 25px;
    color: #E31937;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.keyword_item:hover {
    background: #E31937;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 25, 55, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .related_categories_sidebar {
        padding: 20px;
    }
    .related_cat_thumb {
        width: 80px;
        height: 80px;
    }
    .related_cat_title {
        font-size: 14px;
    }
    .related_cat_desc {
        font-size: 12px;
    }
    .category_extra_content {
        padding: 40px 0;
    }
    .cat_desc_title {
        font-size: 22px;
    }
    .cat_description_content {
        padding: 20px;
    }
    .desc_content_wrapper {
        max-height: 180px;
    }
    .keyword_item {
        font-size: 13px;
        padding: 8px 16px;
    }
}
