/* ========== GLOBAL FONT (TAJAWAL) ========== */
body .cbb-single-wrapper,
body .cbb-post-grid,
body .cbb-sidebar-box,
body .cbb-post-box {
    font-family: "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ========== GRID LAYOUT (CARDS) ========== */

.cbb-post-grid {
    display: grid;
    gap: 24px;
}

.cbb-post-grid.cbb-cols-1 {
    grid-template-columns: minmax(0, 1fr);
}

.cbb-post-grid.cbb-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cbb-post-grid.cbb-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cbb-post-grid.cbb-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .cbb-post-grid.cbb-cols-3,
    .cbb-post-grid.cbb-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cbb-post-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 18px;
    }
}

/* ========== BASE CARD (SHARED) ========== */

.cbb-post-box {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    transform-origin: center;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border 0.25s ease,
        background 0.25s ease;
    background: #ffffff;
}

/* ========== THUMBNAIL & SHINE (COMMON) ========== */

.cbb-post-thumb-wrapper {
    position: relative;
    overflow: hidden;
}

.cbb-post-thumb {
    position: relative;
    padding-top: 60%;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
    transition: transform 0.45s ease;
}

.cbb-post-box:hover .cbb-post-thumb {
    transform: scale(1.08);
}

.cbb-post-thumb--noimg {
    background: linear-gradient(135deg, #e5e7eb, #cbd5f5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cbb-post-noimg-text {
    color: #6b7280;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Shine effect */
.cbb-thumb-shine {
    content: "";
    position: absolute;
    top: -80%;
    left: -50%;
    width: 60%;
    height: 260%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.05)
    );
    transform: rotate(18deg);
    opacity: 0;
    transition: opacity 0.32s ease, transform 0.7s ease;
}

.cbb-post-box:hover .cbb-thumb-shine {
    opacity: 1;
    transform: translateX(320px) rotate(22deg);
}

/* CATEGORY BADGE */

.cbb-post-category-badge {
    position: absolute;
    bottom: 14px;
    left: 14px;
    background: rgba(31, 41, 55, 0.85);
    color: #f9fafb;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* CARD CONTENT COMMON */

.cbb-post-content {
    padding: 16px 18px 14px;
}

.cbb-post-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.5;
    color: #111827;
}

.cbb-post-meta {
    font-size: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 8px;
    color: #6b7280;
}

.cbb-post-dot {
    opacity: 0.55;
}

.cbb-post-excerpt {
    margin: 0 0 10px;
    font-size: 13px;
    color: #4b5563;
}

/* SHARE ROW IN CARDS */

.cbb-post-share {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 11.5px;
    color: #6b7280;
}

.cbb-share-label {
    margin-inline-end: 4px;
    font-weight: 500;
}

/* Social icons (cards + single) */

.cbb-share-icon {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid currentColor;
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.cbb-share-icon::before {
    content: "";
    position: absolute;
    inset: 3px;
}

/* Facebook icon (abstract F) */
.cbb-share-facebook::before {
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    border-radius: 3px;
    transform: skewX(-13deg);
}

/* X icon */
.cbb-share-x::before {
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

/* WhatsApp icon */
.cbb-share-wa::before {
    border-radius: 50%;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(22deg);
}

.cbb-share-icon:hover {
    transform: translateY(-1px);
    background: currentColor;
    color: #f9fafb;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.6);
}

/* ========== 12 CARD STYLES ========== */

/* 1) كلاسيك أبيض بظل بسيط */
.cbb-style1 .cbb-post-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.35);
}
.cbb-style1 .cbb-post-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(148, 163, 184, 0.6);
}

/* 2) صورة كاملة مع شريط معلومات تحته */
.cbb-style2 .cbb-post-box {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.cbb-style2 .cbb-post-content {
    padding: 14px 16px 12px;
}
.cbb-style2 .cbb-post-meta {
    border-top: 1px dashed #e5e7eb;
    padding-top: 6px;
}

/* 3) أفقي – صورة يسار / نص يمين */
.cbb-style3 .cbb-post-box {
    flex-direction: row;
    min-height: 150px;
}
.cbb-style3 .cbb-post-thumb-wrapper {
    flex: 0 0 40%;
}
.cbb-style3 .cbb-post-thumb {
    padding-top: 100%;
}
.cbb-style3 .cbb-post-content {
    flex: 1;
}
@media (max-width: 640px) {
    .cbb-style3 .cbb-post-box {
        flex-direction: column;
    }
    .cbb-style3 .cbb-post-thumb {
        padding-top: 60%;
    }
}

/* 4) جراديانت خفيف في الخلفية */
.cbb-style4 .cbb-post-box {
    background: radial-gradient(circle at top, #e0f2fe, #ffffff);
    border: 1px solid #bfdbfe;
}
.cbb-style4 .cbb-post-title {
    color: #0f172a;
}

/* 5) حافة ملونة وShadow قوي */
.cbb-style5 .cbb-post-box {
    border-radius: 22px;
    border: 1px solid #2563eb;
    box-shadow: 0 18px 50px rgba(37, 99, 235, 0.35);
}
.cbb-style5 .cbb-post-category-badge {
    background: #2563eb;
}

/* 6) صورة دائرية صغيرة والنص يمينها */
.cbb-style6 .cbb-post-box {
    flex-direction: row;
    align-items: center;
}
.cbb-style6 .cbb-post-thumb-wrapper {
    flex: 0 0 auto;
    padding: 16px 0 16px 16px;
}
.cbb-style6 .cbb-post-thumb {
    padding-top: 0;
    width: 80px;
    height: 80px;
    border-radius: 999px;
}
.cbb-style6 .cbb-post-category-badge {
    bottom: 18px;
    left: 22px;
}
.cbb-style6 .cbb-post-content {
    padding: 16px 18px 16px;
}
@media (max-width: 640px) {
    .cbb-style6 .cbb-post-box {
        flex-direction: column;
        align-items: stretch;
    }
    .cbb-style6 .cbb-post-thumb-wrapper {
        padding: 0;
    }
    .cbb-style6 .cbb-post-thumb {
        width: 100%;
        height: auto;
        padding-top: 60%;
        border-radius: 0;
    }
}

/* 7) عنوان كبير وبادج أعلى الكارت */
.cbb-style7 .cbb-post-box {
    border: 1px solid #e5e7eb;
    position: relative;
}
.cbb-style7 .cbb-post-box::before {
    content: "مقال مميز";
    position: absolute;
    top: 10px;
    right: 14px;
    background: #f97316;
    color: #ffffff;
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 999px;
}
.cbb-style7 .cbb-post-title {
    font-size: 18px;
}

/* 8) خلفية ملونة بالكامل ونص أبيض */
.cbb-style8 .cbb-post-box {
    background: linear-gradient(135deg, #2563eb, #22c55e);
    border: none;
    box-shadow: 0 18px 50px rgba(37, 99, 235, 0.5);
}
.cbb-style8 .cbb-post-title,
.cbb-style8 .cbb-post-excerpt,
.cbb-style8 .cbb-post-meta,
.cbb-style8 .cbb-post-share {
    color: #f9fafb;
}
.cbb-style8 .cbb-post-category-badge {
    background: rgba(15, 23, 42, 0.25);
}

/* 9) حد نقطي وكارت بسيط */
.cbb-style9 .cbb-post-box {
    border: 1px dashed #d1d5db;
    background: #f9fafb;
}
.cbb-style9 .cbb-post-content {
    padding: 14px 16px 12px;
}

/* 10) شريط علوي ملون */
.cbb-style10 .cbb-post-box {
    border: 1px solid #e5e7eb;
    position: relative;
}
.cbb-style10 .cbb-post-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #22c55e, #2563eb);
}

/* 11) نيو مورفزم – ظل داخلي ناعم */
.cbb-style11 .cbb-post-box {
    background: #f3f4f6;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow:
        8px 8px 18px rgba(148, 163, 184, 0.7),
        -6px -6px 16px rgba(255, 255, 255, 0.9);
}

/* 12) أفقي مع صورة كبيرة (70/30) */
.cbb-style12 .cbb-post-box {
    flex-direction: row;
}
.cbb-style12 .cbb-post-thumb-wrapper {
    flex: 0 0 65%;
}
.cbb-style12 .cbb-post-thumb {
    padding-top: 80%;
}
.cbb-style12 .cbb-post-content {
    flex: 1;
}
@media (max-width: 640px) {
    .cbb-style12 .cbb-post-box {
        flex-direction: column;
    }
    .cbb-style12 .cbb-post-thumb {
        padding-top: 60%;
    }
}

/* ========== SINGLE POST LAYOUT (LIGHT) ========== */

.cbb-single-wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 30px 16px 56px;
    color: #0f172a;
    background: #f3f4f6;
}

.cbb-single-layout {
    display: flex;
    gap: 26px;
    align-items: flex-start;
}

/* MAIN COLUMN */
.cbb-single-main {
    flex: 1 1 auto;
    min-width: 0;
}

/* HERO CARD */
.cbb-single-hero {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 20px;
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(148, 163, 184, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.cbb-single-thumb {
    position: relative;
    overflow: hidden;
}

.cbb-single-thumb-img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 420px;
}

.cbb-single-thumb-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.35));
    pointer-events: none;
}

.cbb-single-meta {
    padding: 18px 22px 20px;
}

.cbb-single-category {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #2563eb;
    margin-bottom: 6px;
}

.cbb-single-title {
    font-size: 27px;
    margin: 0 0 12px;
    line-height: 1.6;
    color: #0f172a;
}

/* META ROW UNDER TITLE */

.cbb-single-submeta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.cbb-single-dot {
    opacity: 0.6;
}

/* VIEW ICON + TEXT */

.cbb-single-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.cbb-view-icon {
    width: 15px;
    height: 15px;
    border-radius: 999px;
    border: 1px solid currentColor;
    position: relative;
}

.cbb-view-icon::before {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    border: 1px solid currentColor;
}

.cbb-view-icon::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: currentColor;
    top: 5px;
    left: 5px;
}

/* ACTION BUTTONS */

.cbb-single-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 12px;
}

.cbb-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.cbb-btn span {
    display: inline-flex;
    align-items: center;
}

.cbb-btn-contact {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.cbb-btn-contact:hover {
    background: #dbeafe;
    transform: translateY(-1px);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.cbb-btn-whatsapp {
    background: #22c55e;
    color: #022c22;
    box-shadow: 0 0 0 1px rgba(5, 46, 22, 0.4);
}

.cbb-btn-whatsapp:hover {
    background: #16a34a;
    transform: translateY(-1px);
}

/* SIMPLE ICONS */

.cbb-icon {
    width: 16px;
    height: 16px;
    position: relative;
}

.cbb-icon-whatsapp::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 4px;
    border: 2px solid currentColor;
    box-sizing: border-box;
}

.cbb-icon-whatsapp::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    top: 4px;
    left: 4px;
    transform: rotate(25deg);
}

.cbb-icon-mail::before {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: 3px;
    border: 2px solid currentColor;
}

.cbb-icon-mail::after {
    content: "";
    position: absolute;
    left: 3px;
    right: 3px;
    top: 7px;
    height: 2px;
    border-left: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: skewY(18deg);
}

/* SHARE BAR SINGLE */

.cbb-single-share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 13px;
    color: #6b7280;
}

.cbb-single-share-bar .cbb-share-label {
    font-weight: 500;
}

.cbb-single-share-bar .cbb-share-icon {
    width: 22px;
    height: 22px;
}

/* CONTENT BODY */

.cbb-single-content-wrapper {
    margin-top: 14px;
    background: #ffffff;
    border-radius: 22px;
    padding: 22px 22px 26px;
    box-shadow: 0 16px 50px rgba(148, 163, 184, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.cbb-single-content {
    font-size: 15.5px;
    line-height: 1.95;
    color: #111827;
}

.cbb-single-content p {
    margin-bottom: 1.35em;
}

.cbb-single-content h2,
.cbb-single-content h3 {
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    color: #0f172a;
}

.cbb-single-content a {
    color: var(--cbb-primary, #2563eb);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

/* ========== RELATED POSTS SECTION ========== */

.cbb-related-wrapper {
    margin-top: 24px;
    border-top: 1px dashed #e5e7eb;
    padding-top: 18px;
}

.cbb-related-title {
    font-size: 17px;
    margin: 0 0 10px;
    color: #111827;
}

.cbb-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.cbb-related-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 14px;
    text-decoration: none;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.cbb-related-item:hover {
    background: #eff6ff;
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.5);
    transform: translateY(-2px);
}

.cbb-related-thumb-wrap {
    flex-shrink: 0;
}

.cbb-related-thumb {
    display: block;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
}

.cbb-related-thumb--noimg {
    background: linear-gradient(135deg, #e5e7eb, #cbd5f5);
}

.cbb-related-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}

.cbb-related-cat {
    font-size: 11px;
    color: #2563eb;
    text-transform: uppercase;
    letter-spacing: 0.09em;
}

.cbb-related-post-title {
    font-size: 14px;
    margin: 0;
    color: #111827;
}

.cbb-related-date {
    font-size: 11.5px;
    color: #6b7280;
}

/* ========== SIDEBAR ========== */

.cbb-single-sidebar {
    width: 260px;
    flex: 0 0 260px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cbb-sidebar-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 16px 18px;
    box-shadow: 0 16px 45px rgba(148, 163, 184, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.cbb-sidebar-title {
    font-size: 15px;
    margin: 0 0 10px;
    color: #0f172a;
}

/* Categories list */

.cbb-sidebar-cats {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cbb-sidebar-cats li {
    margin: 0;
    padding: 5px 0;
}

.cbb-sidebar-cats a {
    text-decoration: none;
    font-size: 14px;
    color: #374151;
    display: flex;
    justify-content: space-between;
}

.cbb-sidebar-cats a:hover {
    color: var(--cbb-primary, #2563eb);
}

/* Contact box */

.cbb-sidebar-contact {
    text-align: center;
}

.cbb-contact-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 8px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #bfdbfe;
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.5);
}

.cbb-contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cbb-contact-avatar-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #22c55e);
    color: #ffffff;
    font-weight: 700;
    font-size: 20px;
}

.cbb-contact-text {
    font-size: 13px;
    color: #4b5563;
    margin-bottom: 10px;
}

.cbb-contact-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.cbb-contact-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid transparent;
    position: relative;
    display: inline-flex;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

/* WhatsApp icon in sidebar */

.cbb-contact-wa {
    background: #22c55e;
    border-color: rgba(34, 197, 94, 0.8);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.7);
}

.cbb-contact-wa::before {
    content: "";
    position: absolute;
    inset: 7px;
    border-radius: 5px;
    border: 2px solid #ffffff;
    box-sizing: border-box;
}

.cbb-contact-wa::after {
    content: "";
    position: absolute;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    top: 11px;
    left: 11px;
    transform: rotate(25deg);
}

/* Phone icon */

.cbb-contact-phone {
    background: #2563eb;
    border-color: rgba(37, 99, 235, 0.9);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.7);
}

.cbb-contact-phone::before {
    content: "";
    position: absolute;
    inset: 9px 11px;
    border-radius: 8px;
    border-left: 2px solid #ffffff;
    border-right: 2px solid #ffffff;
}

.cbb-contact-phone::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    left: 10px;
    bottom: 8px;
    transform: rotate(40deg);
}

.cbb-contact-icon:hover {
    transform: translateY(-2px);
}

/* Latest posts */

.cbb-sidebar-latest {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cbb-latest-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    padding: 5px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.cbb-latest-item:last-child {
    border-bottom: none;
}

.cbb-latest-title {
    font-size: 14px;
    color: #111827;
}

.cbb-latest-date {
    font-size: 11.5px;
    color: #6b7280;
}

.cbb-latest-item:hover .cbb-latest-title {
    color: var(--cbb-primary, #2563eb);
}

/* ========== COMMENTS STYLING ========== */

.comments-area {
    margin-top: 28px;
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 18px 22px;
    box-shadow: 0 16px 40px rgba(148, 163, 184, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.comments-area .comments-title {
    font-size: 17px;
    margin-bottom: 12px;
    color: #0f172a;
}

.comment-list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
}

.comment-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed #e5e7eb;
}

.comment-author {
    font-weight: 700;
    color: #111827;
}

.comment-metadata {
    font-size: 11.5px;
    color: #6b7280;
    margin-bottom: 4px;
}

.comment-content {
    font-size: 14px;
    color: #111827;
}

/* Comment form */

.comment-respond {
    margin-top: 10px;
}

.comment-respond .comment-reply-title {
    font-size: 16px;
    margin-bottom: 8px;
    color: #0f172a;
}

.comment-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 14px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
    grid-column: 1 / -1;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    grid-column: span 1;
}

.comment-form label {
    font-size: 13px;
    margin-bottom: 4px;
    color: #374151;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 7px 10px;
    font-size: 14px;
}

.comment-form textarea {
    min-height: 110px;
}

.comment-form input[type="submit"] {
    margin-top: 4px;
    border-radius: 999px;
    background: #2563eb;
    border: none;
    color: #f9fafb;
    padding: 8px 18px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input[type="submit"]:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.6);
}

/* ========== RESPONSIVE SINGLE LAYOUT ========== */

@media (max-width: 900px) {
    .cbb-single-layout {
        flex-direction: column;
    }

    .cbb-single-sidebar {
        width: 100%;
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .cbb-single-wrapper {
        padding: 20px 10px 40px;
    }

    .cbb-single-meta {
        padding: 16px 16px 18px;
    }

    .cbb-single-title {
        font-size: 23px;
    }

    .cbb-single-content-wrapper {
        padding: 18px 16px 22px;
        border-radius: 20px;
    }
}


/* ========== OVERRIDE: WIDER SINGLE POST + FULL-WIDTH BACKGROUND ========== */
/* Makes the single post layout a bit wider and stretches the grey background
   behind it to the full width of the screen. */

.cbb-single-wrapper {
    max-width: 1400px;          /* wider than before */
    position: relative;
    padding-left: 24px;
    padding-right: 24px;
}

/* This pseudo-element paints the background across the entire viewport width,
   while the content itself still stays nicely centered. */
.cbb-single-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;               /* full screen width */
    background: #f3f4f6;        /* same background color */
    z-index: -1;
}
