/**
 * Public styles for Patel Blog Style plugin.
 */
.pbs-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}
.pbs-breadcrumbs {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}
.pbs-breadcrumbs a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}
.pbs-breadcrumbs a:hover {
    color: #28CBFF;
}
.pbs-breadcrumb-sep {
    margin: 0 8px;
}
.pbs-breadcrumb-current {
    color: #222;
    font-weight: 600;
}
.pbs-selected-category-title {
    font-size: 32px;
    font-weight: 700;
    margin: 20px auto;
    color: #1e1e1e;
    width: fit-content;
}
.pbs-selected-category-title::after {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='none' viewBox='0 0 200 16'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0%25' y1='0%25' x2='0%25' y2='100%25'%3E%3Cstop offset='0%25' stop-color='%2328cbff'/%3E%3Cstop offset='100%25' stop-color='%2330e78a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='none' stroke='url(%23g)' stroke-linecap='round' stroke-width='2.5' d='M2 12q98-10 196-1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    content: "";
    display: block;
    height: 12px;
    margin: 6px auto 0;
    width: 100%;
}
.pbs-categories {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}
.pbs-categories-buttons-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.pbs-categories button.pbs-cat-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 400;
    color: #000;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.2s;
    text-transform: none !important;
}
button.pbs-cat-btn:hover {
    background: #ffffff;
    background-image: linear-gradient(90deg, #28cbff45 0%, #29f28c45 100%);
}
button.pbs-cat-btn.active {
    background: #000000;
    color: white;
}
.pbs-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}
.pbs-grid-cols-1 { grid-template-columns: 1fr; }
.pbs-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.pbs-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pbs-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .pbs-grid-cols-3, .pbs-grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 768px) {
    .pbs-grid-cols-2, .pbs-grid-cols-3, .pbs-grid-cols-4 {
        grid-template-columns: 1fr;
    }
}

.pbs-post {
    display: flex;
    position: relative;
    overflow: hidden;
    padding: 4px;
    box-shadow: 0 0 50px 0 rgba(5, 5, 5, .078);
}
.pbs-post:has(.pbs-featured) {
    grid-column: 1 / -1;
    margin-top: 20px;
    margin-bottom: 10px;
}
.pbs-post-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 50px 0 rgba(5, 5, 5, .078);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-flow: column;
    position: relative;
}
.pbs-post-thumb {
    height: 245px;
    overflow: hidden;
}
.pbs-post-thumb img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
}
.pbs-zoom-effect {
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}
.pbs-zoom-effect img {
    transition: transform 0.3s ease;
}
.pbs-post-card:hover .pbs-zoom-effect img {
    transform: scale(1.1);
}
.pbs-post-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.pbs-post-title {
    margin: 0 0 15px;
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
}
.pbs-post-title a {
    text-decoration: none;
    color: #1e1e1e;
}
.pbs-excerpt {
    line-height: 1.5;
    color: #444;
    margin-bottom: 20px;
}
.pbs-post-category {
    margin-bottom: 15px;
}
.pbs-category-link {
    display: inline-block;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
}
.pbs-post-footer {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.pbs-post-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-image: linear-gradient(90deg, #28CBFF 0%, #29F28C 100%);
    transition: width 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.pbs-post-card:hover .pbs-post-footer::before {
    width: 100%;
}
.pbs-footer-avatar img {
    border-radius: 50%;
    width: 48px;
    height: auto;
    object-fit: cover;
}
.pbs-footer-info {
    display: flex;
    flex-direction: column;
}
.pbs-footer-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: #222;
}
.pbs-footer-bio {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.3;
}
.pbs-featured {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: row;
    gap: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 50px 0 rgba(5, 5, 5, .078);
}
.pbs-featured .pbs-post-thumb {
    flex: 1;
    height: 384px;
    overflow: hidden;
}
.pbs-featured .pbs-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pbs-featured .pbs-post-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.pbs-featured:hover .pbs-post-thumb img {
    transform: scale(1.05);
}
@media (max-width: 768px) {
    .pbs-featured {
        flex-direction: column;
        margin-top: 0;
    }
    .pbs-featured .pbs-post-thumb {
        height: 200px;
    }
}
@media (min-width: 768px) {
    .pbs-featured .pbs-post-title a {
        font-size: 1.65rem;
    }
    .pbs-featured .pbs-zoom-effect {
        border-radius: 10px 0 0 10px;
    }
}
.pbs-banner {
    padding: 20px;
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    box-sizing: border-box;
    height: 100%;
    font-size: 14px;
    color: #333;
    border-radius: 10px;
    box-shadow: 0 0 50px 0 rgba(5, 5, 5, .078);
}
.pbs-no-posts,
.pbs-loading,
.pbs-error {
    text-align: center;
    padding: 20px;
}
.pbs-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.pbs-loading::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #e0e0e0;
    border-top-color: #000000;
    border-radius: 50%;
    animation: pbs-spin 0.8s linear infinite;
}
.pbs-error {
    color: #d32f2f;
}
.pbs-loader {
    text-align: center;
    padding: 20px;
    color: #000000;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.pbs-loader::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top-color: #000000;
    border-radius: 50%;
    animation: pbs-spin 0.8s linear infinite;
}
@keyframes pbs-spin {
    to { transform: rotate(360deg); }
}
.pbs-new-badge {
    animation: shimmer 4s ease-in-out infinite;
    animation-delay: 1s;
    background-image: linear-gradient(90deg, #28CBFF 0%, #29F28C 100%);
    color: #fff;
    font-size: 0.7rem;
    font-style: italic;
    font-weight: 700;
    height: 26px;
    left: -42px;
    letter-spacing: 0;
    line-height: 26px;
    position: absolute;
    text-align: center;
    text-indent: -10px;
    text-transform: uppercase;
    top: 10px;
    transform: rotate(-45deg);
    width: 150px;
    z-index: 10;
}
.pbs-new-badge:before,
.pbs-new-badge:after {
    border-style: solid;
    bottom: 0;
    content: "";
    height: 0;
    position: absolute;
    width: 0;
}
.pbs-new-badge:after {
    border-color: transparent transparent #269168;
    border-width: 0 5px 5px 0;
    right: 25px;
    top: 24px;
    transform: rotate(-45deg);
}
.pbs-new-badge:before {
    border-color: transparent transparent #2a707b;
    border-width: 0 0 6px 6px;
    left: 9px;
    top: 23px;
    transform: rotate(45deg);
}
.pbs-arrow {
    background: #fff;
    color: #28f18e;
    font-size: 19px;
    font-weight: 700;
    line-height: 1;
    opacity: 0;
    padding: 0 10px;
    position: absolute;
    right: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, .1);
    top: -10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 10;
}
.pbs-post-card:hover .pbs-arrow {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.18s;
}
.pbs-grid-wrapper .pbs-categories-toggle {
    display: none;
}
@media (max-width: 768px) {
    .pbs-categories {
        display: block;
        position: relative;
        margin-bottom: 20px;
    }
    .pbs-grid-wrapper .pbs-categories-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background: transparent !important;
        border: none;
        border-bottom: 1px solid #ddd;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        color: #000 !important;
        padding: 15px 0;
        transition: background 0.2s;
        text-transform: none !important;
    }
    .pbs-categories-toggle:hover {
        background: #e9e9e9;
    }
    .pbs-toggle-icon {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
    }
    .pbs-categories-open .pbs-toggle-icon-open {
        transform: rotate(90deg);
    }
    .pbs-categories-open .pbs-toggle-icon-close {
        transform: rotate(180deg);
    }
    .pbs-categories-buttons-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        margin-top: 15px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, opacity 0.3s ease;
    }
    .pbs-categories.pbs-categories-open .pbs-categories-buttons-wrapper {
        max-height: 500px;
        opacity: 1;
    }
    .pbs-categories-open .pbs-cat-btn {
        width: 100%;
        text-align: center;
        background: #fff;
        border: 0px solid #ddd;
        border-radius: 6px;
        padding: 10px;
        font-size: 14px;
    }
    .pbs-categories-open .pbs-cat-btn.active {
        background: #000000;
        color: white;
        border-color: #000000;
    }
}
.pbs-toc {
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #ebeef0;
    border-radius: 10px;
}
.pbs-toc-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e1e1e;
}
.pbs-toc-title::after {
    content: "";
    width: 100%;
    height: 2px;
    background-image: linear-gradient(90deg, #28CBFF 0%, #29F28C 100%);
    display: block;
    margin-top: 15px;
}
.pbs-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pbs-toc-item {
    margin-bottom: 8px;
}
.pbs-toc-level-2 {
    margin-left: 0;
    font-weight: 600;
}
.pbs-toc-level-3 {
    margin-left: 20px;
}
.pbs-toc-level-4 {
    margin-left: 40px;
}
.pbs-toc-link {
    text-decoration: none;
    color: #444;
    transition: color 0.2s;
    font-size: 13px;
    font-weight: 400;
}
.pbs-toc-link:hover {
    color: #28CBFF;
}
.pbs-author-bio-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.pbs-author-avatar img {
    border-radius: 50%;
    width: 60px;
    height: auto;
}
.pbs-author-info {
    flex: 1;
}
.pbs-author-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e1e1e;
    text-transform: uppercase;
}
.pbs-author-description {
    color: #555;
    font-size: 13px;
}
.pbs-author-description-wrapper {
    max-height: 42px;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.pbs-author-description-wrapper.expanded {
    max-height: 500px;
}
button.pbs-author-read-more {
    color: #666;
    background: none !important;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    padding: 0;
    transition: color 0.2s;
    text-transform: none !important;
    min-height: 20px;
}
button.pbs-author-read-more:hover {
    color: #28CBFF;
}
.pbs-related-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}
.pbs-related-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #28CBFF, #29F28C);
}
.pbs-related-loader {
    text-align: center;
    padding: 20px;
    color: #000000;
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.pbs-related-loader::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e0e0e0;
    border-top-color: #000000;
    border-radius: 50%;
    animation: pbs-spin 0.8s linear infinite;
}