/*
Theme Name: kc-theme
Theme URI: https://kcnet.in
Author: KCNet
Author URI: https://kcnet.in
Description: A custom theme built from scratch based purely on the public frontend view of kcnet.in.
Version: 1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kc-theme
*/

/* ==========================================================================
   Post Tags Styling
   ========================================================================== */
.post-tags-wrapper {
    margin: 40px 0;
    padding: 20px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
}

.tags-heading {
    font-size: 16px;
    font-weight: 700;
    color: #143745;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tags-heading i {
    margin-right: 8px;
    color: #007bff;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.post-tag-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.post-tag-badge:hover {
    color: #ffffff;
    background-color: #007bff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    text-decoration: none;
    transform: translateY(-2px);
}

/* ==========================================================================
   Sidebar Tag Cloud Widget
   ========================================================================== */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 10px;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 6px 12px;
    font-size: 13px !important;
    font-weight: 600;
    color: #143745;
    background-color: #f1f5f9;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.widget_tag_cloud .tagcloud a::before {
    content: "#";
    margin-right: 1px;
    color: #007bff;
    transition: all 0.3s ease;
}

.widget_tag_cloud .tagcloud a:hover {
    color: #ffffff;
    background-color: #007bff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    text-decoration: none;
    transform: translateY(-2px);
}

.widget_tag_cloud .tagcloud a:hover::before {
    color: #ffffff;
}

/* ==========================================================================
   Related Posts Redesign
   ========================================================================== */
.related-post-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.related-post-img-link {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: #f8f9fa;
}

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

.related-post-card:hover .related-post-img {
    transform: scale(1.05);
}

.related-post-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
}

.related-post-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-post-content .mg-blog-category a {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #007bff;
    margin-bottom: 10px;
    display: inline-block;
}

.related-post-content .title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.related-post-content .title a {
    color: #143745;
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-post-content .title a:hover {
    color: #007bff;
}

.related-post-content .mg-blog-meta {
    margin-top: auto;
    font-size: 13px;
    color: #6c757d;
}

.related-post-content .mg-blog-meta i {
    margin-right: 5px;
    color: #007bff;
}

/* ==========================================================================
   Background Image Cards Text (You Missed / Related Posts)
   ========================================================================== */
.back-img .title,
.back-img .title a,
.mg-blog-post-3 .title a {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.7);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.back-img .mg-blog-meta,
.back-img .mg-blog-meta a,
.back-img .mg-blog-date {
    color: #f1f5f9 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}
