/* ============================================
   BLOG DESIGNER PRO - Frontend Styles
   ============================================ */

/* Reset & Base */
.bdp-blog-wrap, .bdp-single-wrap {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.bdp-blog-wrap *, .bdp-single-wrap * {
    box-sizing: border-box;
}

.bdp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   BREADCRUMB
   ============================================ */
.bdp-breadcrumb {
    background: var(--bdp-breadcrumb-bg);
    padding: 14px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.bdp-breadcrumb .bdp-container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
}
.bdp-breadcrumb a {
    color: var(--bdp-breadcrumb-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}
.bdp-breadcrumb a:hover {
    opacity: 0.7;
}
.bdp-bread-sep {
    color: var(--bdp-breadcrumb-text);
    opacity: 0.5;
}
.bdp-bread-current {
    color: var(--bdp-breadcrumb-text);
    font-weight: 400;
}

/* Single breadcrumb */
.bdp-single-wrap .bdp-breadcrumb {
    background: var(--bdps-breadcrumb-bg);
}
.bdp-single-wrap .bdp-breadcrumb a {
    color: var(--bdps-breadcrumb-color);
}
.bdp-single-wrap .bdp-bread-sep,
.bdp-single-wrap .bdp-bread-current {
    color: var(--bdps-breadcrumb-text);
}

/* ============================================
   SECTION HEADER
   ============================================ */
.bdp-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bdp-primary);
}
.bdp-section-title {
    font-size: var(--bdp-section-title-size);
    color: var(--bdp-section-title-color);
    font-weight: 700;
    margin: 0;
    position: relative;
    padding-left: 15px;
}
.bdp-section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--bdp-primary);
    border-radius: 2px;
}

/* Slider Nav */
.bdp-slider-nav {
    display: flex;
    gap: 8px;
}
.bdp-slider-nav button {
    width: 38px;
    height: 38px;
    border: 2px solid var(--bdp-primary);
    background: transparent;
    color: var(--bdp-primary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}
.bdp-slider-nav button:hover {
    background: var(--bdp-primary);
    color: #fff;
}

/* ============================================
   SLIDER
   ============================================ */
.bdp-latest-slider {
    margin-bottom: 50px;
    padding-bottom: 35px;
}
.bdp-latest-slider .swiper-slide {
    height: auto;
}

.bdp-slider-card {
    background: var(--bdp-card-bg);
    border-radius: var(--bdp-card-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.bdp-slider-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.bdp-slider-img-wrap img,
.bdp-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}
.bdp-hover .bdp-slider-img-wrap:hover img {
    transform: scale(1.05);
}

/* ============================================
   CARD STYLES (shared for slider + grid)
   ============================================ */
.bdp-card {
    background: var(--bdp-card-bg);
    border-radius: var(--bdp-card-radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.bdp-shadow {
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}
.bdp-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.bdp-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.bdp-card-img-wrap img,
.bdp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}
.bdp-hover .bdp-card-img-wrap:hover img {
    transform: scale(1.05);
}

/* No Image Placeholder */
.bdp-no-img {
    aspect-ratio: 16/10;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bdp-no-img-sm {
    aspect-ratio: 16/10;
}

/* Category Badge */
.bdp-cat-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--bdp-category-bg);
    color: var(--bdp-category-color);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.bdp-cat-inline {
    display: inline-block;
    color: var(--bdp-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

/* Overlay (Template 2) */
.bdp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: var(--bdp-overlay-color);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    z-index: 1;
}
.bdp-overlay .bdp-card-title a {
    color: #fff !important;
}
.bdp-overlay .bdp-card-meta {
    color: rgba(255,255,255,0.8) !important;
}
.bdp-overlay .bdp-card-meta span {
    color: rgba(255,255,255,0.8) !important;
}

/* Card Body */
.bdp-card-body {
    padding: var(--bdp-card-padding);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.bdp-card-title {
    font-size: var(--bdp-heading-size);
    margin: 0 0 10px;
    line-height: 1.35;
    font-weight: 700;
}
.bdp-card-title a {
    color: var(--bdp-heading-color);
    text-decoration: none;
    transition: color 0.2s;
}
.bdp-card-title a:hover {
    color: var(--bdp-primary);
}

.bdp-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
    font-size: var(--bdp-meta-size);
    color: var(--bdp-meta-color);
}
.bdp-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--bdp-meta-color);
}
.bdp-card-meta svg {
    flex-shrink: 0;
}

.bdp-card-excerpt {
    font-size: var(--bdp-text-size);
    color: var(--bdp-text-color);
    line-height: 1.65;
    margin: 0 0 14px;
    flex: 1;
}

.bdp-readmore {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: var(--bdp-readmore-size);
    font-weight: 600;
    color: var(--bdp-readmore-color);
    background: var(--bdp-readmore-bg);
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    align-self: flex-start;
}
.bdp-readmore:hover {
    opacity: 0.85;
    transform: translateX(3px);
}

/* ============================================
   BLOG GRID
   ============================================ */
.bdp-blog-grid {
    display: grid;
    gap: var(--bdp-card-margin);
    margin-bottom: 40px;
}
.bdp-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.bdp-blog-item {
    display: flex;
}

/* ============================================
   PAGINATION
   ============================================ */
.bdp-pagination {
    text-align: center;
    padding: 20px 0 40px;
}
.bdp-pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.bdp-pagination li {
    display: inline-block;
}
.bdp-pagination li a,
.bdp-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #e0e0e0;
    color: #555;
    background: #fff;
}
.bdp-pagination li a:hover {
    background: var(--bdp-pagination-color);
    color: #fff;
    border-color: var(--bdp-pagination-color);
}
.bdp-pagination li .current {
    background: var(--bdp-pagination-color);
    color: #fff;
    border-color: var(--bdp-pagination-color);
}

.bdp-no-posts {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #888;
}

/* Slider Pagination */
.bdp-slider-pagination {
    text-align: center;
    margin-top: 15px;
}
.bdp-slider-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--bdp-primary);
    opacity: 0.3;
}
.bdp-slider-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ============================================
   TEMPLATE 1 - Classic Card (default above)
   ============================================ */

/* ============================================
   TEMPLATE 2 - Overlay Style
   ============================================ */
.bdp-template-2 .bdp-card-img-wrap {
    aspect-ratio: 16/11;
}
.bdp-template-2 .bdp-slider-img-wrap {
    aspect-ratio: 16/9;
}
.bdp-template-2 .bdp-card {
    border-radius: var(--bdp-card-radius);
}

/* ============================================
   TEMPLATE 3 - Minimal Clean
   ============================================ */
.bdp-template-3 .bdp-card {
    background: transparent;
    box-shadow: none !important;
    border-bottom: 1px solid #eee;
    border-radius: 0;
}
.bdp-template-3 .bdp-card-img-wrap {
    border-radius: var(--bdp-card-radius);
    overflow: hidden;
}
.bdp-template-3 .bdp-readmore {
    background: transparent;
    color: var(--bdp-primary);
    padding: 0;
    font-weight: 600;
}
.bdp-template-3 .bdp-slider-card {
    background: transparent;
    box-shadow: none !important;
}
.bdp-template-3 .bdp-section-header {
    border-bottom-color: #eee;
}

/* ============================================
   TEMPLATE 4 - Magazine Grid
   ============================================ */
.bdp-template-4 .bdp-card {
    border: 1px solid #e8e8e8;
}
.bdp-template-4 .bdp-card-body {
    border-top: 3px solid var(--bdp-primary);
}
.bdp-template-4 .bdp-readmore {
    border-radius: 4px;
}
.bdp-template-4 .bdp-section-title::before {
    width: 6px;
    border-radius: 0;
}

/* ============================================
   TEMPLATE 5 - Modern Boxed
   ============================================ */
.bdp-template-5 .bdp-card {
    border: none;
    background: var(--bdp-card-bg);
    border-radius: 16px;
}
.bdp-template-5 .bdp-card-img-wrap {
    margin: 10px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.bdp-template-5 .bdp-slider-card {
    border-radius: 16px;
}
.bdp-template-5 .bdp-slider-img-wrap {
    margin: 10px;
    border-radius: 12px;
}
.bdp-template-5 .bdp-readmore {
    border-radius: 8px;
}
.bdp-template-5 .bdp-cat-badge {
    top: 22px;
    left: 22px;
}
.bdp-template-5 .bdp-section-title {
    padding-left: 0;
}
.bdp-template-5 .bdp-section-title::before {
    display: none;
}
.bdp-template-5 .bdp-section-header {
    border-bottom: none;
    margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .bdp-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bdp-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    .bdp-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .bdp-section-title {
        font-size: 22px !important;
    }
    .bdp-container {
        padding: 0 15px;
    }
    .bdp-breadcrumb {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .bdp-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .bdp-card-body {
        padding: 12px;
    }
}


/* ============================================
   PART 2 - SINGLE POST STYLES
   ============================================ */

.bdp-single-wrap {
    background: var(--bdps-bg);
    padding-bottom: 60px;
}

/* ============================================
   SINGLE - HERO / HEADER
   ============================================ */
.bdp-single-header {
    max-width: var(--bdps-content-max-width);
    margin: 0 auto;
    padding: 0 var(--bdps-content-padding);
}

.bdp-single-title {
    font-size: var(--bdps-title-size);
    color: var(--bdps-title-color);
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 18px;
}

.bdp-single-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    font-size: var(--bdps-meta-size);
    color: var(--bdps-meta-color);
    margin-bottom: 25px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee;
}
.bdp-single-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.bdp-single-meta a {
    color: var(--bdps-primary);
    text-decoration: none;
}
.bdp-single-meta svg {
    flex-shrink: 0;
}

/* Featured Image */
.bdp-single-featured {
    max-width: var(--bdps-content-max-width);
    margin: 0 auto 30px;
    padding: 0 var(--bdps-content-padding);
}
.bdp-single-featured img {
    width: 100%;
    height: auto;
    border-radius: var(--bdps-img-radius);
    display: block;
}

/* Full-width hero image (Template 2) */
.bdp-single-hero-full {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
}
.bdp-single-hero-full img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}
.bdp-single-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
}
.bdp-single-hero-overlay .bdp-single-title {
    color: #fff;
    max-width: var(--bdps-content-max-width);
    margin: 0 auto 10px;
}
.bdp-single-hero-overlay .bdp-single-meta {
    max-width: var(--bdps-content-max-width);
    margin: 0 auto;
    color: rgba(255,255,255,0.85);
    border-bottom: none;
    padding-bottom: 0;
}
.bdp-single-hero-overlay .bdp-single-meta a {
    color: #fff;
}

/* ============================================
   CONTENT AREA
   ============================================ */
.bdp-single-content {
    max-width: var(--bdps-content-max-width);
    margin: 0 auto;
    padding: 0 var(--bdps-content-padding);
}

/* Paragraph */
.bdp-single-content p {
    font-size: var(--bdps-text-size);
    color: var(--bdps-text-color);
    line-height: var(--bdps-p-line-height);
    margin-bottom: var(--bdps-p-margin-bottom);
}

/* Links */
.bdp-single-content a {
    color: var(--bdps-link-color);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.2s;
}
.bdp-single-content a:hover {
    opacity: 0.7;
}

/* Headings */
.bdp-single-content h1 {
    font-size: var(--bdps-h1-size);
    color: var(--bdps-h1-color);
    font-weight: 800;
    margin: 40px 0 18px;
    line-height: 1.3;
    position: relative;
    padding-bottom: 10px;
}
.bdp-single-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--bdps-primary);
    border-radius: 2px;
}

.bdp-single-content h2 {
    font-size: var(--bdps-h2-size);
    color: var(--bdps-h2-color);
    font-weight: 700;
    margin: 35px 0 15px;
    line-height: 1.35;
    padding-left: 15px;
    border-left: 4px solid var(--bdps-primary);
}

.bdp-single-content h3 {
    font-size: var(--bdps-h3-size);
    color: var(--bdps-h3-color);
    font-weight: 700;
    margin: 30px 0 12px;
    line-height: 1.4;
}

.bdp-single-content h4 {
    font-size: var(--bdps-h4-size);
    color: var(--bdps-h4-color);
    font-weight: 600;
    margin: 25px 0 10px;
    line-height: 1.4;
}

.bdp-single-content h5 {
    font-size: var(--bdps-h5-size);
    color: var(--bdps-h5-color);
    font-weight: 600;
    margin: 22px 0 8px;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bdp-single-content h6 {
    font-size: var(--bdps-h6-size);
    color: var(--bdps-h6-color);
    font-weight: 600;
    margin: 20px 0 8px;
    line-height: 1.45;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Blockquote */
.bdp-single-content blockquote {
    background: var(--bdps-bq-bg);
    border-left: 5px solid var(--bdps-bq-border);
    margin: 30px 0;
    padding: 25px 30px;
    border-radius: 0 8px 8px 0;
    font-size: var(--bdps-bq-size);
    color: var(--bdps-bq-color);
    font-style: italic;
    line-height: 1.6;
    position: relative;
}
.bdp-single-content blockquote::before {
    content: '"';
    font-size: 60px;
    color: var(--bdps-bq-border);
    position: absolute;
    top: -5px;
    left: 15px;
    opacity: 0.3;
    font-family: Georgia, serif;
}
.bdp-single-content blockquote p {
    margin-bottom: 0;
    font-size: inherit;
    color: inherit;
}
.bdp-single-content blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    color: var(--bdps-primary);
}

/* Lists */
.bdp-single-content ul,
.bdp-single-content ol {
    font-size: var(--bdps-list-size);
    color: var(--bdps-list-color);
    line-height: 1.8;
    margin: 15px 0 25px 20px;
    padding: 0;
}
.bdp-single-content ul li,
.bdp-single-content ol li {
    margin-bottom: 8px;
    padding-left: 5px;
}
.bdp-single-content ul li::marker {
    color: var(--bdps-primary);
}
.bdp-single-content ol li::marker {
    color: var(--bdps-primary);
    font-weight: 700;
}

/* Code */
.bdp-single-content code {
    background: var(--bdps-code-bg);
    color: var(--bdps-code-color);
    font-size: var(--bdps-code-size);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'SFMono-Regular', Consolas, monospace;
}
.bdp-single-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 25px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 25px 0;
    font-size: var(--bdps-code-size);
    line-height: 1.6;
}
.bdp-single-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* Table */
.bdp-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: var(--bdps-text-size);
    border-radius: 8px;
    overflow: hidden;
}
.bdp-single-content table th {
    background: var(--bdps-table-header-bg);
    color: var(--bdps-table-header-color);
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
}
.bdp-single-content table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--bdps-table-border);
    color: var(--bdps-text-color);
}
.bdp-single-content table tr:nth-child(even) td {
    background: rgba(0,0,0,0.02);
}

/* Images */
.bdp-single-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--bdps-img-radius);
    margin: 15px 0;
}

/* Figure */
.bdp-single-content figure {
    margin: 25px 0;
}
.bdp-single-content figcaption {
    text-align: center;
    font-size: 13px;
    color: var(--bdps-meta-color);
    margin-top: 8px;
    font-style: italic;
}

/* HR */
.bdp-single-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--bdps-primary), transparent);
    margin: 40px 0;
}

/* Strong / Em */
.bdp-single-content strong {
    font-weight: 700;
    color: var(--bdps-h3-color);
}

/* ============================================
   TAGS
   ============================================ */
.bdp-single-tags {
    max-width: var(--bdps-content-max-width);
    margin: 30px auto;
    padding: 0 var(--bdps-content-padding);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.bdp-single-tags .bdp-tag-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--bdps-text-color);
    margin-right: 5px;
}
.bdp-single-tags a {
    display: inline-block;
    background: var(--bdps-tag-bg);
    color: var(--bdps-tag-color);
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}
.bdp-single-tags a:hover {
    opacity: 0.8;
}

/* ============================================
   SHARE BUTTONS
   ============================================ */
.bdp-share-buttons {
    max-width: var(--bdps-content-max-width);
    margin: 25px auto;
    padding: 20px var(--bdps-content-padding);
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.bdp-share-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--bdps-text-color);
}
.bdp-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-decoration: none;
    color: #fff;
    font-size: 16px;
    transition: transform 0.2s, opacity 0.2s;
}
.bdp-share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}
.bdp-share-fb { background: #1877f2; }
.bdp-share-tw { background: #1da1f2; }
.bdp-share-li { background: #0a66c2; }
.bdp-share-wa { background: #25d366; }
.bdp-share-pi { background: #e60023; }

/* ============================================
   POST NAVIGATION
   ============================================ */
.bdp-post-nav {
    max-width: var(--bdps-content-max-width);
    margin: 35px auto;
    padding: 0 var(--bdps-content-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.bdp-post-nav-item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    border: 1px solid #eee;
}
.bdp-post-nav-item:hover {
    border-color: var(--bdps-primary);
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}
.bdp-post-nav-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--bdps-primary);
    font-weight: 600;
    margin-bottom: 6px;
}
.bdp-post-nav-title {
    font-size: 15px;
    color: var(--bdps-text-color);
    font-weight: 600;
    line-height: 1.4;
}
.bdp-post-nav-item.bdp-nav-next {
    text-align: right;
}

/* ============================================
   RELATED POSTS
   ============================================ */
.bdp-related-posts {
    max-width: var(--bdps-content-max-width);
    margin: 50px auto;
    padding: 0 var(--bdps-content-padding);
}
.bdp-related-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--bdps-title-color);
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bdps-primary);
    position: relative;
    padding-left: 15px;
}
.bdp-related-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: var(--bdps-primary);
    border-radius: 2px;
}
.bdp-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.bdp-related-card {
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}
.bdp-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.bdp-related-card-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.bdp-related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
    margin: 0;
    border-radius: 0;
}
.bdp-related-card:hover .bdp-related-card-img img {
    transform: scale(1.05);
}
.bdp-related-card-body {
    padding: 16px;
}
.bdp-related-card-body h4 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.4;
}
.bdp-related-card-body h4 a {
    color: var(--bdps-title-color);
    text-decoration: none;
}
.bdp-related-card-body h4 a:hover {
    color: var(--bdps-primary);
}
.bdp-related-card-date {
    font-size: 12px;
    color: var(--bdps-meta-color);
}

/* ============================================
   SINGLE TEMPLATE VARIATIONS
   ============================================ */

/* Template 2 - Full Width Hero */
.bdp-single-tpl-2 .bdp-single-header {
    text-align: center;
}
.bdp-single-tpl-2 .bdp-single-meta {
    justify-content: center;
}

/* Template 3 - Minimal */
.bdp-single-tpl-3 .bdp-single-content h2 {
    border-left: none;
    padding-left: 0;
}
.bdp-single-tpl-3 .bdp-single-content h1::after {
    display: none;
}
.bdp-single-tpl-3 .bdp-related-title::before {
    display: none;
}
.bdp-single-tpl-3 .bdp-related-title {
    padding-left: 0;
}

/* Template 4 - Magazine */
.bdp-single-tpl-4 .bdp-single-title {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--bdps-primary);
    margin-bottom: 20px;
}
.bdp-single-tpl-4 .bdp-single-meta {
    justify-content: center;
    border-bottom: none;
}
.bdp-single-tpl-4 .bdp-single-content h2 {
    border-left: none;
    padding-left: 0;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bdps-primary);
}
.bdp-single-tpl-4 .bdp-single-content h1::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Template 5 - Boxed Elegant */
.bdp-single-tpl-5 .bdp-single-header,
.bdp-single-tpl-5 .bdp-single-featured,
.bdp-single-tpl-5 .bdp-single-content,
.bdp-single-tpl-5 .bdp-single-tags,
.bdp-single-tpl-5 .bdp-share-buttons,
.bdp-single-tpl-5 .bdp-post-nav,
.bdp-single-tpl-5 .bdp-related-posts {
    background: #fff;
    border-radius: 12px;
    padding-top: 30px;
    padding-bottom: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.bdp-single-tpl-5 {
    background: #f5f5f5;
}

/* Author Box */
.bdp-author-box {
    max-width: var(--bdps-content-max-width);
    margin: 30px auto;
    padding: 25px var(--bdps-content-padding);
    display: flex;
    gap: 20px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
}
.bdp-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}
.bdp-author-info {
    flex: 1;
}
.bdp-author-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--bdps-title-color);
    margin: 0 0 6px;
}
.bdp-author-bio {
    font-size: 14px;
    color: var(--bdps-text-color);
    line-height: 1.6;
    margin: 0;
}

/* Reading Time */
.bdp-reading-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* TOC */
.bdp-toc {
    max-width: var(--bdps-content-max-width);
    margin: 0 auto 30px;
    padding: 20px var(--bdps-content-padding);
}
.bdp-toc-box {
    background: #f8faf9;
    border: 1px solid #e0e8e4;
    border-radius: 10px;
    padding: 20px 25px;
}
.bdp-toc-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--bdps-title-color);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bdp-toc-box ul {
    margin: 0;
    padding: 0 0 0 20px;
    list-style: decimal;
}
.bdp-toc-box li {
    margin-bottom: 6px;
    font-size: 14px;
}
.bdp-toc-box a {
    color: var(--bdps-primary);
    text-decoration: none;
    font-weight: 500;
}
.bdp-toc-box a:hover {
    text-decoration: underline;
}

/* ============================================
   SINGLE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .bdp-single-hero-full,
    .bdp-single-hero-full img {
        max-height: 280px;
        height: 280px;
    }
    .bdp-single-hero-overlay {
        padding: 20px;
    }
    .bdp-post-nav {
        grid-template-columns: 1fr;
    }
    .bdp-related-grid {
        grid-template-columns: 1fr 1fr;
    }
    .bdp-author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    .bdp-share-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .bdp-related-grid {
        grid-template-columns: 1fr;
    }
}