/*------------------------------------------------------------------
 # BLOG PAGE STYLING
 # Matches design system defined in custom.css
 # Colors: primary #3a3a5e | mustard #fb9c23 | text #585887
------------------------------------------------------------------*/

/* ─── SECTION WRAPPER ─────────────────────────────────────────── */
.blog-tabs-section {
    background-color: #f8f8f8;
}

.blog-tabs-inner-section {
    max-width: 100%;
}

/* ─── NAV TABS ────────────────────────────────────────────────── */
.blog-tabs-section .nav-tabs {
    border-bottom: 2px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 40px;
}

.blog-tabs-section .nav-tabs .nav-item .nav-link {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #585887;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 10px 22px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease-in-out;
    position: relative;
    bottom: -2px;
}

.blog-tabs-section .nav-tabs .nav-item .nav-link:hover {
    color: #fb9c23;
    background-color: #fff8ef;
    border-color: #fb9c23 #fb9c23 transparent;
}

.blog-tabs-section .nav-tabs .nav-item .nav-link.active {
    color: #ffffff;
    background-color: #fb9c23;
    border-color: #fb9c23 #fb9c23 transparent;
    box-shadow: 0 4px 15px rgba(251, 156, 35, 0.35);
}

/* ─── BLOG GRID ───────────────────────────────────────────────── */
.single-blog-outer-con {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* ─── BLOG CARD ───────────────────────────────────────────────── */
.single-blog-box {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(58, 58, 94, 0.07);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-blog-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(58, 58, 94, 0.14);
}

/* ─── CARD IMAGE ──────────────────────────────────────────────── */
.single-blog-box figure {
    overflow: hidden;
    height: 220px;
    flex-shrink: 0;
}

.single-blog-box figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.single-blog-box:hover figure img {
    transform: scale(1.05);
}

/* ─── CARD BODY ───────────────────────────────────────────────── */
.single-blog-details {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* ─── META (author / date) ────────────────────────────────────── */
.single-blog-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.single-blog-details ul li {
    font-size: 13px;
    color: #a2a2bf;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.single-blog-details ul li i {
    color: #fb9c23;
    font-size: 13px;
}

/* ─── CARD TITLE ──────────────────────────────────────────────── */
.single-blog-details h4 {
    font-size: 18px;
    font-weight: 700;
    line-height: 26px;
    margin-bottom: 10px;
    color: #3a3a5e;
}

.single-blog-details h4 a {
    color: #3a3a5e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.single-blog-details h4 a:hover {
    color: #fb9c23;
}

/* ─── CARD EXCERPT ────────────────────────────────────────────── */
.single-blog-details p {
    font-size: 15px;
    line-height: 24px;
    color: #585887;
    margin-bottom: 20px;
    flex-grow: 1;

    /* Clamp to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── READ MORE BUTTON ────────────────────────────────────────── */
.generic-btn2 {
    margin-top: auto;
}

.generic-btn2 a {
    display: inline-block;
    font-family: "Noto Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fb9c23;
    text-decoration: none;
    border: 2px solid #fb9c23;
    border-radius: 50px;
    padding: 8px 22px;
    transition: all 0.3s ease-in-out;
}

.generic-btn2 a:hover {
    background-color: #fb9c23;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(251, 156, 35, 0.35);
}

/* ─── PAGINATION ──────────────────────────────────────────────── */
.blog-tabs-section nav[aria-label="..."] {
    display: flex;
    justify-content: center;
}

.blog-tabs-section .pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.blog-tabs-section .pagination .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background-color: #ffffff;
    color: #585887;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: "Inter", sans-serif;
}

.blog-tabs-section .pagination .page-item .page-link:hover {
    background-color: #fb9c23;
    border-color: #fb9c23;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(251, 156, 35, 0.35);
}

.blog-tabs-section .pagination .page-item.active .page-link {
    background-color: #3a3a5e;
    border-color: #3a3a5e;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(58, 58, 94, 0.3);
}

.blog-tabs-section .pagination .page-item.disabled .page-link {
    background-color: #f8f8f8;
    border-color: #e0e0e0;
    color: #c0c0d0;
    cursor: not-allowed;
    pointer-events: none;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 1199px) {
    .single-blog-outer-con {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .single-blog-outer-con {
        grid-template-columns: 1fr;
    }

    .single-blog-box figure {
        height: 200px;
    }

    .blog-tabs-section .nav-tabs .nav-item .nav-link {
        font-size: 13px;
        padding: 8px 14px;
    }

    .single-blog-details {
        padding: 18px 20px 22px;
    }

    .single-blog-details h4 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .blog-tabs-section .nav-tabs {
        gap: 4px;
    }

    .blog-tabs-section .nav-tabs .nav-item .nav-link {
        font-size: 12px;
        padding: 7px 10px;
        letter-spacing: 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   SINGLE BLOG PAGE
═══════════════════════════════════════════════════════════════ */

/* ─── SECTION ─────────────────────────────────────────────────── */
.singleblog-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

/* ─── MAIN CONTENT COLUMN ─────────────────────────────────────── */
.singleblog-section .main-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 36px;
    box-shadow: 0 4px 28px rgba(58, 58, 94, 0.07);
}

/* ─── HERO IMAGE ──────────────────────────────────────────────── */
.singleblog-section .image1 img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 12px;
}

/* ─── ARTICLE TITLE ───────────────────────────────────────────── */
.singleblog-section .content1 h4 {
    font-size: 26px;
    font-weight: 700;
    color: #3a3a5e;
    line-height: 36px;
    margin-bottom: 14px;
}

/* ─── META BAR (author / date) ────────────────────────────────── */
.span-fa-outer-con {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 14px;
    color: #a2a2bf;
    font-weight: 500;
}

.span-fa-outer-con i {
    color: #fb9c23;
}

.span-fa-outer-con .text-mr {
    margin-right: 10px;
}

/* ─── BODY TEXT ───────────────────────────────────────────────── */
.singleblog-section .text-size-14 {
    font-size: 15px;
    line-height: 27px;
    color: #585887;
}

.singleblog-section .text {
    margin-bottom: 28px;
}

/* ─── QUOTE BLOCK ─────────────────────────────────────────────── */
.singleblog-section .content2 {
    position: relative;
    margin: 32px 0;
}

.singleblog-section .content2 .singleblog-quoteimage {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
}

.singleblog-section .content2 .singleblog-quoteimage img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 180px;
    filter: brightness(0.55);
}

.singleblog-section .content2 p {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    text-align: center;
    font-size: 18px;
    font-style: italic;
    font-weight: 600;
    line-height: 30px;
    color: #ffffff;
    margin: 0;
}

/* ─── SECOND IMAGE ────────────────────────────────────────────── */
.singleblog-section .content3 .image1 img {
    height: 320px;
}

/* ─── TAGS + SOCIAL ROW ───────────────────────────────────────── */
.singleblog-section .content4 {
    border-top: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
    padding: 22px 0;
    margin: 32px 0;
}

.singleblog-section .content4 h5 {
    font-size: 16px;
    font-weight: 700;
    color: #3a3a5e;
    margin-bottom: 12px;
}

/* Tag pills */
.singleblog-section .content4 .tag ul,
.singleblog-section .box4 .tag {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.singleblog-section .content4 .tag ul li a,
.singleblog-section .box4 .tag li a {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #585887;
    background-color: #f2f2f8;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 5px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.singleblog-section .content4 .tag ul li a:hover,
.singleblog-section .box4 .tag li a:hover {
    background-color: #fb9c23;
    border-color: #fb9c23;
    color: #ffffff;
}

/* Social share */
.singleblog-section .content4 .icon {
    position: relative;
}

.singleblog-section .content4 .icon .social-icons {
    position: relative !important;
}

.singleblog-section .content4 .icon ul,
.singleblog-section .box3 .social-icons ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
    margin: 0;
}

.social-networks {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #3a3a5e;
    color: #ffffff !important;
    font-size: 14px;
    transition: all 0.3s ease;
}

.social-networks:hover {
    background-color: #fb9c23;
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(251, 156, 35, 0.35);
}

/* ─── PREV / NEXT BUTTONS ─────────────────────────────────────── */
.singleblog-section .buttons {
    display: flex;
    gap: 12px;
    margin: 32px 0;
}

.singleblog-section .buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Noto Sans", sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 28px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.singleblog-section .buttons .prev {
    background-color: #f2f2f8;
    color: #3a3a5e;
    border: 2px solid #e0e0e0;
}

.singleblog-section .buttons .prev:hover {
    background-color: #3a3a5e;
    border-color: #3a3a5e;
    color: #ffffff;
}

.singleblog-section .buttons .next {
    background-color: #fb9c23;
    border: 2px solid #fb9c23;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(251, 156, 35, 0.3);
}

.singleblog-section .buttons .next:hover {
    background-color: #3a3a5e;
    border-color: #3a3a5e;
    box-shadow: none;
}

/* ─── AUTHOR BIO (content5) ───────────────────────────────────── */
.singleblog-section .content5 {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    background: #f8f8f8;
    border-left: 4px solid #fb9c23;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 36px;
}

.singleblog-section .content5 .singleblog-review1 img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid #fb9c23;
}

.singleblog-section .content5 .content h4 {
    font-size: 18px;
    font-weight: 700;
    color: #3a3a5e;
    margin-bottom: 2px;
}

.singleblog-section .content5 .content span {
    font-size: 13px;
    color: #fb9c23;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}

.singleblog-section .content5 .content p {
    font-size: 14px;
    line-height: 24px;
    color: #585887;
    margin: 0;
}

/* ─── COMMENTS (content6) ─────────────────────────────────────── */
.singleblog-section .content6 {
    margin-bottom: 36px;
}

.singleblog-section .content6 h4 {
    font-size: 20px;
    font-weight: 700;
    color: #3a3a5e;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eeeeee;
}

.singleblog-section .comment {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eeeeee;
}

.singleblog-section .comment:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.singleblog-section .comment .image img.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #e0e0e0;
}

.singleblog-section .comment .content {
    flex: 1;
}

.singleblog-section .comment .content h5 {
    font-size: 16px;
    font-weight: 700;
    color: #3a3a5e;
    margin-bottom: 2px;
    display: inline;
}

.singleblog-section .comment .content span {
    font-size: 13px;
    color: #a2a2bf;
    margin-left: 10px;
}

.singleblog-section .comment .content a.reply {
    float: right;
    font-size: 13px;
    font-weight: 600;
    color: #fb9c23;
    text-decoration: none;
    transition: color 0.3s ease;
}

.singleblog-section .comment .content a.reply:hover {
    color: #3a3a5e;
}

.singleblog-section .comment .content .text_holder {
    margin-top: 10px;
}

.singleblog-section .comment .content .text_holder p {
    font-size: 14px;
    line-height: 24px;
    color: #585887;
    margin: 0;
}

/* ─── COMMENT FORM (content7) ─────────────────────────────────── */
.singleblog-section .content7 h4 {
    font-size: 20px;
    font-weight: 700;
    color: #3a3a5e;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eeeeee;
}

.singleblog-section .content7 .row {
    margin-bottom: 16px;
}

.singleblog-section .content7 .row:last-child {
    margin-bottom: 0;
}

.form_style {
    width: 100%;
    padding: 14px 20px;
    font-size: 15px;
    color: #3a3a5e;
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-family: "Inter", sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.form_style::placeholder {
    color: #a2a2bf;
}

.form_style:focus {
    border-color: #fb9c23;
    box-shadow: 0 0 0 3px rgba(251, 156, 35, 0.15);
    background-color: #ffffff;
}

.form_style.text-mb {
    margin-bottom: 0;
}

.singleblog-section textarea.form_style {
    resize: vertical;
    min-height: 120px;
}

.post_comment {
    font-family: "Noto Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #fb9c23;
    border: 2px solid #fb9c23;
    border-radius: 50px;
    padding: 12px 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.post_comment:hover {
    background-color: #3a3a5e;
    border-color: #3a3a5e;
    box-shadow: 0 6px 18px rgba(58, 58, 94, 0.25);
}

/* ─── SIDEBAR ─────────────────────────────────────────────────── */
.singleblog-section .column {
    position: relative;
}

.singleblog-section .box1 {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 24px rgba(58, 58, 94, 0.07);
    margin-bottom: 28px;
}

.singleblog-section .box1 h5 {
    font-size: 17px;
    font-weight: 700;
    color: #3a3a5e;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fb9c23;
    display: inline-block;
}

/* Search box (box1) */
.singleblog-section .box1 .form-row {
    position: relative;
}

.singleblog-section .box1 input.upper_layer {
    width: 100%;
    padding: 12px 50px 12px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    color: #3a3a5e;
    background: #f8f8f8;
    outline: none;
    font-family: "Inter", sans-serif;
    transition: border-color 0.3s ease;
}

.singleblog-section .box1 input.upper_layer::placeholder {
    color: #a2a2bf;
}

.singleblog-section .box1 input.upper_layer:focus {
    border-color: #fb9c23;
    background: #ffffff;
}

.singleblog-section .box1 .form-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.singleblog-section .box1 .form-button .search {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fb9c23;
    border: none;
    color: #ffffff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0;
}

.singleblog-section .box1 .form-button .search:hover {
    background: #3a3a5e;
}

/* Categories (box2) */
.singleblog-section .box2 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.singleblog-section .box2 ul li {
    border-bottom: 1px solid #f0f0f0;
    padding: 9px 0;
}

.singleblog-section .box2 ul li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.singleblog-section .box2 ul li a {
    font-size: 15px;
    color: #585887;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: flex;
    align-items: center;
}

.singleblog-section .box2 ul li a::before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
    color: #fb9c23;
    margin-right: 10px;
    transition: margin-right 0.3s ease;
}

.singleblog-section .box2 ul li a:hover {
    color: #fb9c23;
    padding-left: 4px;
}

/* Follow Us (box3) */
.singleblog-section .box3 .social-icons ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0;
    list-style: none;
    margin: 0;
}

/* Tags sidebar (box4) */
.singleblog-section .box4 .tag {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    list-style: none;
    margin: 0;
}

/* Feeds (box5) */
.singleblog-section .box5 .feed {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.singleblog-section .box5 .feed.feed4 {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.singleblog-section .box5 .feed .feed-image {
    flex-shrink: 0;
    width: 72px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
}

.singleblog-section .box5 .feed .feed-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.singleblog-section .box5 .feed:hover .feed-image img {
    transform: scale(1.08);
}

.singleblog-section .box5 .feed a {
    font-size: 14px;
    font-weight: 600;
    color: #3a3a5e;
    text-decoration: none;
    line-height: 20px;
    transition: color 0.3s ease;
}

.singleblog-section .box5 .feed a:hover {
    color: #fb9c23;
}

/* ─── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 991px) {
    .singleblog-section .column {
        margin-top: 40px;
    }

    .singleblog-section .main-box {
        padding: 24px;
    }
}

@media (max-width: 767px) {
    .singleblog-section {
        padding: 50px 0;
    }

    .singleblog-section .image1 img {
        height: 260px;
    }

    .singleblog-section .content1 h4 {
        font-size: 21px;
    }

    .singleblog-section .buttons {
        flex-wrap: wrap;
    }

    .singleblog-section .buttons a {
        flex: 1;
        text-align: center;
        justify-content: center;
    }

    .singleblog-section .content5 {
        flex-direction: column;
    }

    .singleblog-section .content2 p {
        font-size: 15px;
    }
}