/* Winit Content Styles */

/* Single Post Header */
.winit-single-header {
    margin-bottom: 25px;
    padding-top: 1px;
}

/* Breadcrumbs */
.winit-breadcrumbs {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.winit-breadcrumbs a {
    color: #888;
    text-decoration: none;
    transition: color 0.2s;
}

.winit-breadcrumbs a:hover {
    color: #333;
    text-decoration: underline;
}

.winit-breadcrumbs .current-page {
    color: #555;
    /* Slightly darker than links */
    font-weight: normal;
}

/* Category Badge */
.winit-header-cat {
    margin-bottom: 20px;
}

.winit-cat-badge {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #0f1c3f;
    border: 1px solid #dce1e8;
    background-color: #f8f9fa;
    border-radius: 4px;
}

/* Title */
.winit-single-header .entry-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    letter-spacing: -0.02em;
    word-break: keep-all;
}

/* Description */
.winit-header-description {
    margin-bottom: 40px;
    border-left: 3px solid #555;
    border-right: 3px solid #555;
    padding: 0 20px;
    /* Add padding to separate text from lines */
}

.winit-header-description p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #555;
    margin: 0;
    text-align: justify;
}

.winit-header-description strong {
    color: #1a1a1a;
    font-weight: 700;
}

/* Meta Data */
.winit-header-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    /* Reduced gap since we have separators */
    color: #888;
    /* Unified color */
    font-size: 1rem;
    line-height: 1;
}

.winit-meta-item {
    display: flex;
    align-items: center;
    gap: 0px;
    position: relative;
    color: #666;
    /* Text color */
}

/* Separator between items */
.winit-meta-item:not(:last-child):not(.winit-meta-tags):not(.winit-meta-readtime):after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 12px;
    background-color: #ddd;
    margin-left: 15px;
    /* Space after text */
}

/* Specific exclusions if tags are not part of this flow or are right-aligned */

/* Author */
.winit-meta-author .winit-author-icon {
    width: 20px;
    height: 20px;
    margin-right: 4px;
    margin-top: -2px;
}

.winit-author-name {
    font-weight: 600;
    color: #333;
    /* Darker for name */
}

/* Date & Read Time */
.winit-meta-date,
.winit-meta-readtime {
    color: #888;
    font-weight: 400;
}

/* Calendar Wrapper - use flex for better alignment */
.winit-icon-calendar {
    display: inline-flex;
    align-items: center;
}

.winit-icon-calendar:before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-right: 0;
    /* Space between icon and text */
}

/* Tag Icon Removed */

/* Tags */
.winit-meta-tags {
    margin-left: auto;
    /* Push to right */
    display: flex;
    gap: 8px;
}

.winit-tag-badge {
    background: #fff;
    /* Clean white bg */
    color: #555;
    padding: 6px 12px;
    /* Equal spacing around text */
    border: 1px solid #ddd;
    /* Clean light border */
    border-radius: 4px;
    /* Optional rounded */
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: default;
    /* Not clickable */
}

.winit-tag-badge:hover {
    background: #eff2f5;
    /* Soft blue/grey on hover (Image 2 style) */
    border-color: #dce1e8;
    /* Slight border change */
    color: #333;
    /* Slightly darker text */
}

/* Separator */
/* Separator */
.winit-header-separator {
    border: 0;
    border-top: 1px solid #eee;
    margin: 0;
}

.winit-header-separator.top {
    margin-bottom: 35px;
}

.winit-header-separator.bottom {
    margin-top: 35px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .winit-single-header {
        margin-bottom: 30px;
        padding-top: 0;
    }

    .winit-breadcrumbs {
        margin-top: 20px;
    }

    .winit-single-header .entry-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .winit-header-description p {
        font-size: 1.1rem;
    }

    .winit-header-description {
        margin-bottom: 30px;
    }

    .winit-header-meta {
        /* Keep row layout on mobile but allow wrapping if needed, or scroll */
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
        /* Allow wrapping if screen is very small, or use nowrap for scroll */
        gap: 15px;
        justify-content: center;
        /* Center align on mobile */
    }

    .winit-meta-item {
        font-size: 17px;
        /* Increased to 17px as requested */
    }

    .winit-meta-tags {
        margin-left: 0;
        margin-top: 10px;
    }

    /* Limit tags to 4 on mobile */
    .winit-meta-tags .winit-tag-badge:nth-child(n+5) {
        display: none;
    }
}

/* Thumbnail Settings */
.winit-single-thumbnail {
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    border-radius: 15px;
    /* Rounding on wrapper */
    overflow: hidden;
    /* Clip image content */
}

.winit-single-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0;
    /* Reset margins */
}

/* Specific spacing tweaks if needed */
.winit-single-thumbnail.top {
    margin-bottom: 40px;
}

/* Content Images */
.entry-content img {
    border-radius: 15px;
    height: auto;
    max-width: 100%;
}