/* =========================================================================
   Single Blog Post — Two Column Layout (content + sidebar)
   ========================================================================= */

.single-post-section {
    padding: 60px 0 70px;
}

.single-post-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4%;
}

.single-post-row {
    --bs-gutter-x: 50px;
}

/* =========================================================================
   LEFT — Article Content
   ========================================================================= */
.single-featured-media {
    margin-bottom: 26px;
}

.single-featured-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Byline / meta line */
.single-meta-line {
    font-size: 15px;
    color: #8a8a8a;
    margin-bottom: 20px;
    line-height: 1.6;
}

.single-meta-line .meta-item a {
    color: #2f6fb0;
    text-decoration: none;
    font-weight: 400;
}

.single-meta-line .meta-item a:hover {
    color: #ff382e;
    text-decoration: underline;
}

.single-meta-line .meta-sep {
    margin: 0 10px;
    color: #b5b5b5;
}

/* Title */
.single-post-title {
    font-family: "Oswald", sans-serif;
    font-size: 36px;
    line-height: 1.2;
    font-weight: 700;
    color: #ff382e;
    margin-bottom: 22px;
}

/* Body content */
.single-post-content {
    font-size: 16px;
    line-height: 1.85;
    color: #3d3d3d;
}

.single-post-content p {
    margin-bottom: 22px;
}

.single-post-content h2 {
    font-family: "Oswald", sans-serif;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
    color: #ff382e;
    margin: 34px 0 16px;
}

.single-post-content h3 {
    font-family: "Oswald", sans-serif;
    font-size: 23px;
    font-weight: 700;
    color: #1a2744;
    margin: 28px 0 14px;
}

.single-post-content h4 {
    font-size: 19px;
    font-weight: 700;
    color: #1a2744;
    margin: 24px 0 12px;
}

.single-post-content strong {
    color: #1a1a1a;
    font-weight: 700;
}

.single-post-content a {
    color: #1a3a6b;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid rgba(26, 58, 107, 0.35);
}

.single-post-content a:hover {
    color: #ff382e;
    border-bottom-color: #ec1c24;
}

.single-post-content ul,
.single-post-content ol {
    margin: 0 0 24px;
    padding-left: 22px;
}

.single-post-content ul li,
.single-post-content ol li {
    margin-bottom: 12px;
    line-height: 1.7;
}

.single-post-content ul {
    list-style: disc;
}

.single-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.single-post-content blockquote {
    border-left: 4px solid #ec1c24;
    background: #fbf3f3;
    padding: 18px 24px;
    margin: 0 0 24px;
    border-radius: 0 8px 8px 0;
    color: #444;
}

/* =========================================================================
   RIGHT — Sidebar
   ========================================================================= */
.single-post-sidebar {
    /* keeps the panel aligned to the top of the content column */
}

/* ---- Enquiry Form Card ---- */
.sidebar-form-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    padding: 34px 30px;
    margin-bottom: 38px;
}

.sidebar-card-title {
    font-family: "Oswald", sans-serif;
    font-size: 23px;
    font-weight: 700;
    color: #222;
    margin: 0 0 22px;
    padding-bottom: 14px;
    position: relative;
}

.sidebar-card-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 3px;
    background: #ec1c24;
    border-radius: 2px;
}

/* CF7 form fields */
.single-post-sidebar .wpcf7-form p {
    margin: 0;
}

.single-post-sidebar .wpcf7-form input.wpcf7-form-control:not([type="submit"]):not([type="checkbox"]),
.single-post-sidebar .wpcf7-form .wpcf7-form-control.wpcf7-text,
.single-post-sidebar .wpcf7-form .wpcf7-form-control.wpcf7-email,
.single-post-sidebar .wpcf7-form .wpcf7-form-control.wpcf7-tel,
.single-post-sidebar .wpcf7-form .wpcf7-form-control.wpcf7-url {
    width: 100%;
    border: 1px solid #d8d8d8;
    border-radius: 6px;
    padding: 14px 16px;
    font-size: 15px;
    color: #333;
    background: #fff;
    margin-bottom: 16px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.single-post-sidebar .wpcf7-form input::placeholder {
    color: #9a9a9a;
}

.single-post-sidebar .wpcf7-form input:focus {
    outline: none;
    border-color: #ec1c24;
    box-shadow: 0 0 0 3px rgba(236, 28, 36, 0.12);
}

/* Our Services box */
.cf7-services-box {
    background: #fde3e3;
    border-radius: 12px;
    padding: 22px 24px;
    margin: 6px 0 22px;
}

.cf7-services-title {
    font-family: "Oswald", sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #222;
    margin: 0 0 6px;
}

.cf7-services-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #5a5a5a;
    margin: 0 0 14px;
}

.cf7-services-box .wpcf7-checkbox {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cf7-services-box .wpcf7-list-item {
    margin: 0;
    display: block;
}

.cf7-services-box .wpcf7-list-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #333;
    cursor: pointer;
}

.cf7-services-box .wpcf7-list-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ec1c24;
    cursor: pointer;
    flex: 0 0 auto;
}

/* Submit button — white pill with red text (override global red-gradient) */
.cf7-submit-wrap {
    margin-top: 6px;
}

body .single-post-sidebar .wpcf7-form input.sidebar-enquiry-btn,
body .single-post-sidebar .sidebar-enquiry-btn {
    display: inline-block;
    background: #fff !important;
    background-image: none !important;
    color: #ff382e !important;
    border: 1px solid #f0dada !important;
    border-radius: 50px !important;
    padding: 14px 34px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10) !important;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease !important;
}

body .single-post-sidebar .sidebar-enquiry-btn:hover {
    background: #ec1c24 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* CF7 response messages */
.single-post-sidebar .wpcf7-response-output {
    margin: 14px 0 0 !important;
    font-size: 14px;
    border-radius: 6px;
}

/* ---- Sidebar block headings (Popular / Recent) ---- */
.sidebar-block {
    margin-bottom: 38px;
}

.sidebar-heading {
    font-family: "Oswald", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 22px;
    padding-bottom: 12px;
    position: relative;
}

.sidebar-heading::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 3px;
    background: #ec1c24;
    border-radius: 2px;
}

/* ---- Popular Posts ---- */
.sidebar-popular-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.sidebar-popular-item:last-child {
    margin-bottom: 0;
}

.sp-thumb {
    flex: 0 0 78px;
    width: 78px;
    height: 78px;
    display: block;
    border-radius: 6px;
    overflow: hidden;
}

.sp-thumb img {
    width: 78px;
    height: 78px;
    object-fit: cover;
    display: block;
}

.sp-body {
    flex: 1;
}

.sp-date {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #1a3a6b;
    margin-bottom: 6px;
}

.sp-title {
    font-family: "Oswald", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #1a3a6b;
    text-decoration: none;
    display: block;
    transition: color 0.25s ease;
}

.sp-title:hover {
    color: #ff382e;
}

/* ---- Recent Posts ---- */
.sidebar-recent-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-recent-item {
    position: relative;
    padding-left: 22px;
    margin-bottom: 16px;
    line-height: 1.45;
}

.sidebar-recent-item:last-child {
    margin-bottom: 0;
}

.sidebar-recent-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 7px;
    width: 9px;
    height: 9px;
    background: #ec1c24;
}

.sidebar-recent-item a {
    color: #1a3a6b;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.25s ease;
}

.sidebar-recent-item a:hover {
    color: #ff382e;
}

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 991px) {
    .single-post-row {
        --bs-gutter-x: 1.5rem;
    }

    .single-post-sidebar {
        margin-top: 50px;
    }

    .single-post-title {
        font-size: 30px;
    }

    .single-post-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .single-post-section {
        padding: 40px 0 50px;
    }

    .single-post-title {
        font-size: 26px;
    }

    .sidebar-form-card {
        padding: 28px 22px;
    }
}

/* ===== Author + Reviewer credits box ===== */
.post-people {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #ececf1;
}

.post-people .person-card {
    background: #fafbfc;
    border: 1px solid #ececf1;
    border-radius: 14px;
    padding: 20px 22px;
}

.post-people .person-card--reviewer {
    background: #fff8f8;
    border-color: #f6dede;
}

.post-people .person-role-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #e10600;
    margin-bottom: 12px;
}

.post-people .person-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.post-people .person-avatar {
    flex: 0 0 auto;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    background: #eee;
}

.post-people .person-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-people .person-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e10600;
    color: #fff;
    font-size: 26px;
}

.post-people .person-name {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f1b3d;
    text-decoration: none;
}

.post-people .person-name:hover {
    color: #e10600;
}

.post-people .person-subrole {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #e10600;
    margin-top: 2px;
}

.post-people .person-bio {
    margin: 8px 0 0;
    font-size: .9rem;
    line-height: 1.55;
    color: #5b6473;
}

@media (max-width: 767px) {
    .post-people {
        grid-template-columns: 1fr;
    }
}
