.content_wrapper {
    display: flex;
    flex-direction: row;
    gap: 90px;
    align-items: center;
}
.content_wrapper.align_items_start {
    align-items: start;   
}
.content_wrapper.align_items_center {
    align-items: center;   
}
.content_wrapper.align_items_end {
    align-items: end;   
}
.fifty .blog_wrapper {
    flex-basis: calc(50% - 55px);
}
.fifty .sidebar_wrapper {
    flex-basis: 50%;
}
.sixty .blog_wrapper {
    flex-basis: calc(60% - 55px);
}
.sixty .sidebar_wrapper {
    flex-basis: 40%;
}
.seventy .blog_wrapper {
    flex-basis: calc(70% - 55px);
    flex-basis: calc(73% - 55px);
}
.seventy .sidebar_wrapper {
    flex-basis: 30%;
}

.blog_block.style_1 .blog_wrapper .blog_items_row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 30px;    
    align-items: start;
    /*margin-bottom: 80px;*/
}
.blog_block.style_1 .blog_wrapper .content_col {
    /* flex-basis: calc(50% - 15px);
    margin-bottom: 35px; */
    flex-basis: 100%;
    width: 100%;
    margin-bottom: 35px;
}
.blog_block.style_1 .blog_wrapper.featured .content_col:first-child {
    flex-basis: 100% !important;
    /* border-bottom: 1px solid #7F87C0;
    padding-bottom: 80px;
    margin-bottom: 50px; */
}
.blog_block.style_1 .img_wrap {
    /* height: 354px;
    overflow: hidden; */
    width: 100%;
    height: 530px;
    overflow: hidden;
    position: relative;
}
.blog_block.style_1 .img_wrap img {
    /* height: 100%; */
    /*width: 100%;
    object-fit: cover;
    transition: all 1s ease;*/
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.blog_wrapper .post_meta {
    color: var(--gray);
    font-family: var(--h4FontFamily);
    font-size: var(--h4DeskFont);
    font-style: normal;
    font-weight: 400;
    line-height: var(--h4DeskLineHt);
}
.blog_wrapper .blog_title {
    color: var(--color-orange);
    font-family: var(--font-MDExtBold);
    font-size: var(--fontH2);
    font-style: normal;
    font-weight: 400;
    line-height: var(--fontH2LH);
    letter-spacing: 0.1px;
}


.blog_block .blog_wrapper {
    width: 100%;
}
.blog_block.style_2 .blog_wrapper .blog_items_row {
    display: grid;
    grid-template-columns: repeat(3, minmax(440px, 1fr));
    gap: 30px;
}
.blog_block.style_2 .blog_wrapper .content_col {
    margin-bottom: 35px;
}
.blog_block.style_2 .blog_items_row .blog_item {
    border-radius: 26px;
    overflow: hidden;
    background: #F3F2F4;
    display: flex;
    flex-direction: column;
}
.blog_block.style_2 .blog_items_row .blog_item .img_wrap {
    height: 250px;
    overflow: hidden;
}
.blog_block.style_2 .blog_items_row .blog_item .img_wrap img {
    width: 100%;
}
.blog_block.style_2 .blog_items_row .blog_item .blog_content_wrapper {
    padding: 36.6px 34px 36px 34px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.sidebar_wrap {
    /*width: 337px;
    height: 484px;*/
    flex-shrink: 0;
    background: var(--secondaryFontColor);
    padding: 72px 90px;

    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: left;
    text-align: left;
}
.cat_title, .archive_title {
    font-family: var(--font-MDExtBold);
    font-size: var(--fontH2);
    font-style: normal;
    font-weight: 400;
    line-height: var(--fontH2LH);
    position: relative;
    text-align: left;
}
.cat_items a, .archive_items a {
    color: var(--gray);
    text-align: left;
    font-family: var(--font-Figtree);
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 38px;
    text-transform: uppercase;
}

.blog_wrapper .custom-nav-wrapper {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin-top: 15px;
    width: 100%;
}
.blog_wrapper .custom-nav-btn {
    background: transparent;
    color: var(--primaryFontColor);
    border: none;
    font-size: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog_wrapper .custom-nav-btn:hover {
    color: var(--secondaryFontColor);
}
.cat_items li{
    border-bottom: 1px solid var(--color-orange);
    padding-bottom: 15px;
}
.cat_items li:last-child{
    border-bottom: none;
    padding-bottom: 0;
}


/* 1) Remove the gap between image + content so the border starts right under the image */
.blog_block .blog_item > .content-flex-col.g-30 {
  gap: 0;
}

/* 2) Border ONLY around the content area */
.blog_block .blog_item .blog_content_wrapper {
  border: 1px solid #0B57FF; /* your blue */
  padding: 40px;            /* match the look */
  background: #fff;
  box-sizing: border-box;
}

/* Image + content edges align perfectly */
.blog_block .blog_item .img_wrap,
.blog_block .blog_item .blog_content_wrapper {
  width: 100%;
}


@media (min-width: 1044px) {
    .mobHide {
        display: none;
    }
    .sidebar_wrap ul {
        display: flex !important;
    }

      /* Use the row’s full width and push the columns apart */
  .blog_block .content_wrapper{
    justify-content: space-between;
    align-items: flex-start;      /* keeps sidebar aligned to top */
    gap: 60px;                   /* tighter than 90; adjust if needed */
    gap: 150px;
  }

  /* Blog column grows, sidebar becomes a fixed “design” width */
  .blog_block .content_wrapper .blog_wrapper{
    flex: 1 1 auto;
    min-width: 0;
  }

  /* This wrapper contains BOTH sidebar boxes (Categories + Archive) */
  .blog_block .content_wrapper .sidebar_outer{
    margin-left: auto;           /* key: shove to the far right */
    flex: 0 0 398px;             /* makes it bigger */
    max-width: 398px;
    align-items: stretch;
  }

  /* Ensure each sidebar box fills the sidebar_outer width */
  .blog_block .content_wrapper .sidebar_outer .sidebar_wrapper{
    width: 100%;
    flex-basis: auto;            /* override the 30%/40% flex-basis rules */
  }

  /* Optional: make the boxes feel like the mock (more presence) */
  .blog_block .content_wrapper .sidebar_outer .sidebar_wrap{
    padding: 80px 95px;          /* was 72px 90px :contentReference[oaicite:2]{index=2} */
  }
}
@media (max-width: 1450px) {
    .blog_block.style_2 .blog_wrapper .blog_items_row {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 29px 27px;
    }
}
@media (max-width: 1044px) {
    .content_wrapper {
        flex-direction: column-reverse;
    }
    .sidebar_wrapper {
        width: 100%;
    }
    .sidebar_wrap {
        padding: 40px 90px;
    }
    .sidebar_wrap .mob-ham-icon svg {
        width: 35px;
        fill: white;
    }
    .sidebar_wrap ul,
    .deskHide {
        display: none;
    }
    .mobHide {
        display: block;
        cursor: pointer;
    }
    .cat_title.mobHide{
        display: flex;
        justify-content: space-between;
    }
    .cat_title, .archive_title{
        font-size: 22px;
    }

    .cat_title{
        justify-content: space-between;
    }

    .sidebar_wrap{
        padding: 15px;
    }

    .content-flex-col{
        width: 100%;
    }

    .sidebar_wrapper:nth-of-type(2) {
        display: none;
    }
}
@media (max-width: 767px) {
    .blog_block .blog_wrapper {
        flex-direction: column;
    }
    .blog_wrapper .btns {
        justify-content: flex-start;
    }
    .blog_block .img_wrap {
        height: auto;
        max-height: 354px;
    }
    /* Mobile padding tweak (optional) */
    .blog_block .blog_item .blog_content_wrapper {
        padding: 24px;
    }
}
@media (max-width: 400px) {
    .blog_block.style_2 .blog_wrapper .blog_items_row {
        grid-template-columns: 1fr;
        gap: 29px 27px;
    }
    .blog_block.style_2 .blog_items_row .blog_item .img_wrap {
        height: auto;
    }
}