/* DevineCare Blog Editor — Plugin Styles v2.0 */

/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */

/* Headlines — Cormorant Garamond */
.dcbe-blog-header h1,
.dcbe-card-title,
.dcbe-hero-title,
.dcbe-post-header h1,
.dcbe-post-content h2,
.dcbe-post-content h3,
.dcbe-related-title,
.dcbe-cta-box h3,
.dcbe-related-body h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

/* Body — Outfit */
.dcbe-blog-wrap,
.dcbe-single-bg,
.dcbe-card-body,
.dcbe-post-content,
.dcbe-post-meta,
.dcbe-hero-meta,
.dcbe-card-meta,
.dcbe-breadcrumb,
.dcbe-toc,
.dcbe-share-wrap,
.dcbe-author-info,
.dcbe-related-body,
.dcbe-cta-box p,
.dcbe-filter-btn,
.dcbe-search-bar input,
.dcbe-readmore,
.dcbe-cat-badge,
.dcbe-cat-tag {
    font-family: 'Outfit', system-ui, sans-serif;
}

/* ═══════════════════════════════════════
   READING PROGRESS BAR
═══════════════════════════════════════ */
#dcbe-progress-bar {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #0A7B7B, #12B8B8);
    z-index: 10000;
    transition: width .08s linear;
}

/* ═══════════════════════════════════════
   BLOG LISTING PAGE
═══════════════════════════════════════ */
.dcbe-blog-wrap { min-height: 60vh; }

/* ── Header Banner ── */
.dcbe-blog-header {
    padding: 52px 20px 44px;
    text-align: center;
}
.dcbe-blog-header-inner { max-width: 660px; margin: 0 auto; }
.dcbe-blog-header h1 {
    font-size: clamp(26px, 4vw, 40px);
    margin: 0 0 10px;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
}
.dcbe-blog-header p { font-size: 16px; opacity: .82; margin: 0; line-height: 1.6; }

/* ── Container ── */
.dcbe-blog-container { max-width: 1180px; margin: 0 auto; padding: 36px 24px 80px; }

/* ── Controls Bar ── */
.dcbe-controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e8f0f0;
}
.dcbe-search-bar { flex: 1; min-width: 220px; max-width: 380px; }
.dcbe-search-bar form {
    display: flex;
    border: 1.5px solid #D0E8E8;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: border-color .18s, box-shadow .18s;
}
.dcbe-search-bar form:focus-within {
    border-color: #0A7B7B;
    box-shadow: 0 0 0 3px rgba(10,123,123,.1);
}
.dcbe-search-bar input {
    flex: 1;
    padding: 9px 14px;
    border: none;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: #1A2B2B;
}
.dcbe-search-bar input::placeholder { color: #aac4c4; }
.dcbe-search-bar button {
    padding: 9px 13px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: #7aadad;
    transition: color .15s;
}
.dcbe-search-bar button:hover { color: #0A7B7B; }

.dcbe-filter-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.dcbe-filter-btn {
    padding: 6px 16px;
    border: 1.5px solid #D0E8E8;
    border-radius: 6px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    color: #3d6565;
    transition: all .15s;
}
.dcbe-filter-btn:hover  { background: #E6F5F5; border-color: #0A7B7B; color: #065757; }
.dcbe-filter-btn.active { background: #0A7B7B; border-color: #0A7B7B; color: #fff; }

/* ── Grid ── */
.dcbe-posts-grid { display: grid; gap: 36px; transition: opacity .2s; }
.dcbe-cols-1 { grid-template-columns: 1fr; }
.dcbe-cols-2 { grid-template-columns: repeat(2, 1fr); }
.dcbe-cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .dcbe-cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .dcbe-cols-2, .dcbe-cols-3 { grid-template-columns: 1fr; } }

/* ── Card ── */
.dcbe-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8f0f0;
    display: flex;
    flex-direction: column;
    transition: box-shadow .22s, transform .22s;
}
.dcbe-card:hover {
    box-shadow: 0 8px 32px rgba(10,80,80,.1);
    transform: translateY(-3px);
}

/* Image — 16:9 ratio */
.dcbe-img-link { display: block; overflow: hidden; }
.dcbe-img-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #e8f3f3;
}
.dcbe-img-wrap::before {
    content: '';
    display: block;
    padding-top: 56.25%; /* 16:9 */
}
.dcbe-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s cubic-bezier(.22,1,.36,1);
}
.dcbe-card:hover .dcbe-thumb { transform: scale(1.04); }

/* Image placeholder */
.dcbe-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E6F5F5, #cce8e8);
}
.dcbe-img-placeholder svg { opacity: .2; }

/* Card body */
.dcbe-card-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }

/* Category tags */
.dcbe-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 11px; }
.dcbe-cat-badge {
    display: inline-block;
    color: #0A7B7B;
    background: #E6F5F5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.dcbe-card-title { margin: 0 0 10px; line-height: 1.3; }
.dcbe-card-title a {
    text-decoration: none;
    color: #1A2B2B;
    transition: color .15s;
}
.dcbe-card-title a:hover { color: #0A7B7B; }

.dcbe-card-excerpt { font-size: 14px; line-height: 1.65; margin: 0 0 16px; color: #4a6262; flex: 1; }

/* Meta */
.dcbe-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 12.5px;
    color: #7aadad;
    margin-bottom: 16px;
    align-items: center;
}
.dcbe-meta-item { display: flex; align-items: center; gap: 5px; }
.dcbe-meta-item svg { flex-shrink: 0; opacity: .8; }

/* Read more */
.dcbe-readmore {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #0A7B7B;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    align-self: flex-start;
    transition: gap .18s, color .15s;
}
.dcbe-readmore:hover { color: #065757; gap: 8px; }

/* No posts */
.dcbe-no-posts {
    grid-column: 1/-1;
    text-align: center;
    padding: 80px 20px;
    font-size: 16px;
    color: #7aadad;
}

/* ── Pagination ── */
.dcbe-pagination { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 56px; }
.dcbe-pagination a,
.dcbe-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    border: 1.5px solid #D0E8E8;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #1A2B2B;
    background: #fff;
    transition: all .15s;
}
.dcbe-pagination a:hover { border-color: #0A7B7B; color: #0A7B7B; }

/* ── Load More ── */
.dcbe-load-more-wrap { text-align: center; margin-top: 52px; }
#dcbe-load-more {
    padding: 12px 40px;
    border: 2px solid #0A7B7B;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    color: #0A7B7B;
    background: #fff;
    transition: all .18s;
}
#dcbe-load-more:hover { background: #0A7B7B; color: #fff; }
#dcbe-load-more:disabled { opacity: .45; cursor: default; }

/* ═══════════════════════════════════════
   SINGLE POST PAGE
═══════════════════════════════════════ */
.dcbe-single-bg { padding: 0 0 80px; background: #fff; }
.dcbe-single-wrap { margin: 0 auto; }

/* ── Hero ── */
.dcbe-hero-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0d3030;
}
.dcbe-hero-wrap::before {
    content: '';
    display: block;
    padding-top: 42%; /* ~2.4:1 wide cinematic */
}
@media (max-width: 768px) { .dcbe-hero-wrap::before { padding-top: 56.25%; } }
.dcbe-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dcbe-hero-overlay .dcbe-hero-img {
    opacity: .72;
}
.dcbe-hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5,50,50,.8) 0%, rgba(5,50,50,.15) 60%, transparent 100%);
}
.dcbe-hero-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 48px 40px;
    z-index: 2;
    color: #fff;
}
.dcbe-hero-inner { max-width: 860px; margin: 0 auto; }
.dcbe-hero-title {
    font-size: clamp(22px, 3.5vw, 38px);
    margin: 10px 0 16px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.025em;
}
.dcbe-hero-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; opacity: .9; align-items: center; }

/* ── Post header area (below hero) ── */
.dcbe-post-top {
    max-width: 860px;
    margin: 0 auto;
    padding: 32px 24px 0;
}

/* Breadcrumb */
.dcbe-breadcrumb {
    font-size: 13px;
    margin-bottom: 28px;
    color: #7aadad;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}
.dcbe-breadcrumb a { text-decoration: none; color: #7aadad; transition: color .15s; }
.dcbe-breadcrumb a:hover { color: #0A7B7B; }
.dcbe-breadcrumb .sep { margin: 0 2px; opacity: .5; }

/* Post header without hero */
.dcbe-post-header { margin-bottom: 32px; }
.dcbe-post-header h1 {
    font-size: clamp(24px, 3.8vw, 38px);
    margin: 10px 0 18px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -.025em;
    color: #0d1f1f;
}
.dcbe-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13.5px;
    color: #7aadad;
    align-items: center;
    padding-bottom: 22px;
    border-bottom: 1px solid #e8f0f0;
    margin-bottom: 28px;
}
.dcbe-meta-item { display: flex; align-items: center; gap: 6px; }

/* Category tag */
.dcbe-cat-tag {
    display: inline-block;
    color: #0A7B7B;
    background: #E6F5F5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 4px;
}

/* ── Content area ── */
.dcbe-post-body {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── TOC ── */
.dcbe-toc {
    margin: 0 0 36px;
    padding: 22px 26px;
    background: #f6fbfb;
    border: 1px solid #D0E8E8;
    border-left: 4px solid #0A7B7B;
    border-radius: 0 10px 10px 0;
}
.dcbe-toc strong { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 14px; color: #065757; text-transform: uppercase; letter-spacing: .05em; }
.dcbe-toc ol { margin: 0; padding-left: 20px; }
.dcbe-toc li { margin-bottom: 7px; font-size: 14.5px; }
.dcbe-toc a { text-decoration: none; font-weight: 500; color: #1A6060; transition: color .15s; }
.dcbe-toc a:hover { color: #0A7B7B; text-decoration: underline; }
.dcbe-toc a.dcbe-toc-active { color: #0A7B7B; font-weight: 700; }

/* ── Post content typography ── */
.dcbe-post-content { margin-bottom: 40px; }
.dcbe-post-content h2 {
    font-size: 25px;
    margin: 44px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #E6F5F5;
    font-weight: 800;
    letter-spacing: -.015em;
    color: #0d1f1f;
}
.dcbe-post-content h3 { font-size: 20px; margin: 30px 0 10px; font-weight: 700; color: #1A2B2B; }
.dcbe-post-content p { margin-bottom: 20px; }
.dcbe-post-content ul,
.dcbe-post-content ol { padding-left: 24px; margin-bottom: 20px; }
.dcbe-post-content li { margin-bottom: 8px; line-height: 1.72; }
.dcbe-post-content img { max-width: 100%; border-radius: 8px; margin: 10px 0; display: block; }
.dcbe-post-content blockquote {
    border-left: 4px solid #0A7B7B;
    padding: 14px 22px;
    margin: 28px 0;
    background: #f6fbfb;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #2a4a4a;
}
.dcbe-post-content table { width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px; }
.dcbe-post-content th { background: #0A7B7B; color: #fff; padding: 11px 14px; text-align: left; font-weight: 600; }
.dcbe-post-content td { padding: 10px 14px; border-bottom: 1px solid #E6F5F5; }
.dcbe-post-content tr:nth-child(even) td { background: #f6fbfb; }
.dcbe-post-content a { text-decoration: underline; text-underline-offset: 3px; }
.dcbe-post-content a:hover { opacity: .8; }

/* ── Share buttons ── */
.dcbe-share-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 22px 0;
    border-top: 1px solid #e8f0f0;
    border-bottom: 1px solid #e8f0f0;
    margin: 36px 0;
}
.dcbe-share-label { font-size: 13px; font-weight: 700; color: #1A2B2B; margin-right: 4px; }
.dcbe-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
}
.dcbe-share-btn:hover { opacity: .88; transform: translateY(-1px); }
.dcbe-share-wa { background: #25D366; color: #fff; }
.dcbe-share-fb { background: #1877F2; color: #fff; }
.dcbe-share-tw { background: #000; color: #fff; }
.dcbe-share-tg { background: #26A5E4; color: #fff; }
.dcbe-share-li { background: #0A66C2; color: #fff; }
.dcbe-copy-link { background: #f3f4f6; color: #374151; border: none; }
.dcbe-copy-link:hover { background: #e5e7eb; }

/* ── CTA Box ── */
.dcbe-cta-box {
    background: #f6fbfb;
    border: 1.5px solid #A8D8D8;
    border-left: 5px solid #0A7B7B;
    border-radius: 0 12px 12px 0;
    padding: 28px 32px;
    margin: 44px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    justify-content: space-between;
}
.dcbe-cta-text-wrap { flex: 1; min-width: 200px; }
.dcbe-cta-box h3 {
    font-size: 19px;
    margin: 0 0 6px;
    color: #065757;
    font-weight: 800;
}
.dcbe-cta-box p { font-size: 14px; margin: 0; color: #3d6565; line-height: 1.5; }
.dcbe-cta-buttons { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.dcbe-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
    padding: 11px 26px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: opacity .18s, transform .18s;
    white-space: nowrap;
}
.dcbe-cta-btn:hover { opacity: .9; transform: translateY(-1px); color: #fff; }
.dcbe-cta-call {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #065757;
    background: #fff;
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border: 1.5px solid #A8D8D8;
    transition: background .15s;
    white-space: nowrap;
}
.dcbe-cta-call:hover { background: #E6F5F5; }

/* ── Author Box ── */
.dcbe-author-box {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #f6fbfb;
    border-radius: 10px;
    padding: 22px 24px;
    border: 1px solid #D0E8E8;
    margin: 40px 0;
}
.dcbe-avatar-img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid #D0E8E8; }
.dcbe-author-info strong { font-size: 15px; display: block; margin-bottom: 5px; color: #065757; font-weight: 700; }
.dcbe-author-info p { font-size: 13.5px; margin: 0; color: #4a6262; line-height: 1.6; }

/* ── Prev/Next Nav ── */
.dcbe-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 40px 0; }
.dcbe-prev-post,
.dcbe-next-post {
    background: #fff;
    border: 1px solid #e8f0f0;
    border-radius: 10px;
    padding: 18px 20px;
    transition: border-color .15s, background .15s;
}
.dcbe-prev-post:hover,
.dcbe-next-post:hover { border-color: #0A7B7B; background: #f6fbfb; }
.dcbe-next-post { text-align: right; }
.dcbe-prev-post span,
.dcbe-next-post span {
    display: block;
    font-size: 11px;
    color: #7aadad;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-weight: 600;
}
.dcbe-prev-post a,
.dcbe-next-post a { font-weight: 600; font-size: 14px; text-decoration: none; color: #1A2B2B; line-height: 1.4; }
.dcbe-prev-post a:hover,
.dcbe-next-post a:hover { color: #0A7B7B; }

/* ── Related Posts ── */
.dcbe-related-wrap { margin: 52px 0 0; }
.dcbe-related-title { font-size: 19px; font-weight: 800; margin-bottom: 22px; color: #0d1f1f; letter-spacing: -.015em; }
.dcbe-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dcbe-related-card {
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e8f0f0;
    background: #fff;
    display: block;
    transition: box-shadow .2s, transform .2s;
}
.dcbe-related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(10,80,80,.1); }
.dcbe-related-img { position: relative; overflow: hidden; }
.dcbe-related-img::before { content: ''; display: block; padding-top: 56.25%; }
.dcbe-rel-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.dcbe-related-card:hover .dcbe-rel-thumb { transform: scale(1.04); }
.dcbe-related-body { padding: 14px 16px 18px; }
.dcbe-related-cat {
    display: inline-block;
    color: #0A7B7B;
    background: #E6F5F5;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 7px;
}
.dcbe-related-body h4 { font-size: 14px; margin: 0 0 6px; color: #1A2B2B; line-height: 1.4; font-weight: 600; }
.dcbe-related-body span { font-size: 12px; color: #7aadad; }

@media (max-width: 700px) { .dcbe-related-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .dcbe-related-grid { grid-template-columns: repeat(2, 1fr); } }

/* ── WhatsApp Float ── */
.dcbe-whatsapp-float {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 54px; height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 18px rgba(37,211,102,.45);
    z-index: 9999;
    transition: transform .2s, box-shadow .2s;
}
.dcbe-whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 26px rgba(37,211,102,.55); }

/* ── Responsive ── */
@media (max-width: 768px) {
    .dcbe-hero-content { padding: 28px 20px; }
    .dcbe-post-top,
    .dcbe-post-body { padding-left: 16px; padding-right: 16px; }
    .dcbe-cta-box { flex-direction: column; border-left-width: 1.5px; border-top: 5px solid #0A7B7B; border-radius: 0 0 12px 12px; }
    .dcbe-post-nav { grid-template-columns: 1fr; }
    .dcbe-author-box { flex-direction: column; }
}
@media (max-width: 600px) {
    .dcbe-controls-bar { flex-direction: column; align-items: stretch; }
    .dcbe-search-bar { max-width: 100%; }
}
