@media screen and (min-width: 768px) {
    :root :where(.is-layout-constrained)>* {
        margin-top: 1.5rem;
    }

}

.p_single p {
    line-height: calc(35 / 20);
    font-weight: 500;
}

@media screen and (min-width: 768px) {
    .p_single .main_padding {
        padding-top: 200px;
    }
}

.p_single .single_inner {
    font-size: 1rem;
    border-top: 1px solid #222;

    margin-top: 40px;
    padding-block: 40px;
}

@media screen and (min-width: 768px) {
    .p_single .single_inner {
        font-size: 1.25rem;

        margin-top: 80px;
        padding-block: 77px ;
        border-bottom: 1px solid var(--secondary_color);;
    }
}

@media screen and (min-width: 768px) {
    .p_single .post_item_thumb__time {
        font-size: 1rem;
        padding: 6px 9px 3px 1px;
    }
}

.p_single .post_item_title {
    font-size: 1.375rem;
    margin-top: 16px;
}

@media screen and (min-width: 768px) {
    .p_single .post_item_title {
        font-size: 2rem;
        line-height: 1.3;

        margin-top: 33px;
    }
}

@media screen and (min-width: 768px) {
    .p_single .post_item_cats {
        font-size: 1rem;
        margin-top: 21px;
    }
}

@media screen and (min-width: 768px) {
    .p_single .post_item_tags {
        margin-top: 29px;
    }
}

@media screen and (min-width: 768px) {
    .p_single .post_item_date {
        font-size: 1rem;
        margin-top: 12px;
    }
}

.p_single .single_content {
    margin-top: 26px;
}

@media screen and (min-width: 768px) {
    .p_single .single_content {
        width: 960px;
        max-width: calc(100% - 40px);
        margin-top: 56px;
        margin-left: auto;
        margin-right: auto;
    }
}

.p_single .single_legend {
    overflow: hidden;
    margin-top: 25px;
    margin-bottom: 25px;
    padding-top: 20px;
}

@media screen and (min-width: 768px) {
    .p_single .single_legend {
        margin-top: 64px;
    }
}

.p_single .single_legend .legend_box {
    position: relative;
    padding: 30px 20px 20px;
    border: 2px solid var(--secondary_color);
    border-top: 0;
}

@media screen and (min-width: 768px) {
    .p_single .single_legend .legend_box {
        border-width: 5px;
        padding: 53px 55px 49px;
    }
}

.p_single .single_legend .legend_title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--secondary_color);
    position: absolute;
    top: -14px;
    left: 38px;
}

.p_single .single_legend .legend_title::before,
.p_single .single_legend .legend_title::after {
    content: '';
    width: 100vw;
    height: 2px;
    position: absolute;
    top: 50%;
    background-color: var(--secondary_color);
}

.p_single .single_legend .legend_title::after {
    left: 108%;
}

.p_single .single_legend .legend_title::before {
    right: 108%;
}

@media screen and (min-width: 768px) {
    .p_single .single_legend .legend_title {
        font-size: 1.5625rem;
        top: -19px;
    }

    .p_single .single_legend .legend_title::before,
    .p_single .single_legend .legend_title::after {
        height: 5px;
    }
}

@media screen and (min-width: 768px) {
    .p_single .single_box_flex {
        display: flex;
        gap: 40px;
    }
}

@media screen and (min-width: 768px) {

    .p_single .single_box_desc,
    .p_single .single_box_figure {
        width: 460px;
        max-width: calc(50% - 20px);
    }
}

@media screen and (min-width: 768px) {
    .p_single .single_box_desc {
        margin-top: -3px;
    }
}

.p_single .single_box_figure {
    margin-top: 15px;
}

@media screen and (min-width: 768px) {
    .p_single .single_box_figure {
        margin-top: 0;
    }
}

.p_single h3 {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.6;
    font-size: 1rem;
    margin-top: 30px;
    margin-bottom: 20px;
    padding: 10px 20px;
    color: #fff;
    background-color: var(--primary_color);
}

.p_single h3+h2,
.p_single h3+h3,
.p_single h3+h4,
.p_single h3+h5 {
    margin-top: 20px;
}

@media screen and (min-width: 768px) {
    .p_single h3 {
        font-size: 1.25rem;
        margin-top: 60px;
        margin-bottom: 25px;
        padding: 15px 30px 13px;
    }

    .p_single h3+h2,
    .p_single h3+h3,
    .p_single h3+h4,
    .p_single h3+h5 {
        margin-top: 0px;
    }
}

.p_single h4 {
    color: #4d3329;
    line-height: 2;
    border-bottom: 2px solid var(--primary_color);
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1rem;
}

.p_single h4+h2,
.p_single h4+h3,
.p_single h4+h4,
.p_single h4+h5 {
    margin-top: 20px;
}

@media screen and (min-width: 768px) {
    .p_single h4 {
        font-size: 1.25rem;
        margin-top: 30px;
        margin-bottom: 35px;
        padding: 14px 0 15px;
    }

    .p_single h4+h2,
    .p_single h4+h3,
    .p_single h4+h4,
    .p_single h4+h5 {
        margin-top: 0px;
    }
}

.p_single h5 {
    color: #4d3329;
    line-height: 2;
    padding-left: 20px;
    position: relative;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
}

.p_single h5::before {
    content: '';
    width: 10px;
    height: 2px;
    position: absolute;
    left: 0;
    top: 20px;
    background-color: var(--primary_color);
}

.p_single h5+h2,
.p_single h5+h3,
.p_single h5+h4,
.p_single h5+h5 {
    margin-top: 20px;
}


.p_single h2 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  border-bottom: 2px solid #ddd;
  padding-bottom: 0.4rem;
  margin: 2.5rem 0 1.25rem;
  position: relative;
}

.p_single h2::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--secondary_color);
}

.p_single h3 {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 500;
  line-height: 1.5;
  color: #333;
  background-color: #f5f5f3;
  border-left: 3px solid var(--secondary_color);
  padding: 0.4rem 0.75rem;
  margin: 2rem 0 1rem;
  border-radius: 0 4px 4px 0;
}

.p_single h4 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.75rem 0 0.75rem;
}

.p_single h4::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--secondary_color);
  border-radius: 50%;
  flex-shrink: 0;
}

.p_single h5 {
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
  border-bottom: 1px dashed #ddd;
  padding-bottom: 0.3rem;
  margin: 1.5rem 0 0.75rem;
}


@media screen and (min-width: 768px) {
    .p_single h5 {
        font-size: 1.25rem;
        margin-top: 30px;
    }

    .p_single h5::before {
        top: 20px;
    }

    .p_single h5+h2,
    .p_single h5+h3,
    .p_single h5+h4,
    .p_single h5+h5 {
        margin-top: 0px;
    }
}

.p_single .wp-block-image .alignleft,
.p_single .wp-block-image .alignright {
    width: 100%;
}

@media screen and (min-width: 768px) {

    .p_single .wp-block-image .alignleft,
    .p_single .wp-block-image .alignright {
        width: calc(50% - 20px);
    }
}

.p_single .wp-block-image .alignleft img,
.p_single .wp-block-image .alignright img {
    width: 100% !important;
}

@media screen and (min-width: 768px) {
    .p_single .wp-block-image .alignright {
        margin-left: 40px;
    }
}

@media screen and (min-width: 768px) {
    .p_single .wp-block-image .alignleft {
        margin-right: 40px;
    }
}

.p_single .single_back {
    width: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 500;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 10px;
    position: relative;
}

.p_single .single_back::after {
    content: '';
    width: 100%;
    height: 2px;
    background-color: var(--secondary_color);
    position: absolute;
    left: 0;
    bottom: 0;
    transition: 350ms ease-out;
}

@media screen and (min-width: 768px) {
    .p_single .single_back {
        font-size: 1.25rem;
        margin-top: 71px;
        padding-bottom: 22px;
    }

    .p_single .single_back:hover::after {
        scale: 0 1;
    }
}

.p_single .single_back .icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-right: 10px;
}

.p_single .wp-block-image.size-full {
    padding-top: 10px;
    padding-bottom: 10px;
}

@media screen and (min-width: 768px) {

    .p_single .wp-block-media-text,
    .p_single .wp-block-media-text.has-media-on-the-right {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

.p_single .wp-block-media-text {
    padding-top: 10px;
    padding-bottom: 10px;
}

.p_single .wp-block-media-text .wp-block-media-text__content,
.p_single .wp-block-media-text .wp-block-media-text__media {
    width: 100%;
}

.p_single .wp-block-media-text .wp-block-media-text__content {
    padding: 0;
    padding-top: 15px;
}

@media screen and (min-width: 768px) {
    .p_single .wp-block-media-text .wp-block-media-text__content {
        padding-top: 0;
    }
}

.p_single .wp-block-media-text .wp-block-media-text__media {
    padding-top: 5px;
}


.single_contact {
    background-color: var(--primary_color);
    margin-top: 25px;
}

.single_contact_wrap {
    display: grid;
    grid-template-columns: 260px;
    padding-block: 40px;
    padding-inline: 15px;
    justify-content: center;
    column-gap: 10px;
    row-gap: 10px;
    align-items: center;
}

.single_contact_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 260px;
    padding-inline: 15px;
    padding-block: 15px;
    background-color: #fff;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 900;
}

@media only screen and (min-width: 768px) {
    .single_contact {
        margin-top: 36px;
    }

    .single_contact_wrap {
        grid-template-columns: repeat(2, 260px);
        row-gap: 20px;
        column-gap: 40px;
        padding-block: 60px;
        align-items: stretch;
    }

    .single_contact_btn {
        font-size: 1.25rem;
        padding-block: 25px;
    }
}

.single_buttons {
    display: flex;
}

.single_prev,
.single_next {
    width: 160px;
    height: 44px;

    border: 1px solid currentColor;
    border-radius: 99px;

    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;

    padding: 6px 14px;
    font-size: 0.875rem;

    margin-top: 40px;
    margin-inline: auto;
}

.single_prev {
    margin-left: 0;
}

@media screen and (min-width: 768px) {

    .single_prev,
    .single_next {
        width: 200px;
        height: 60px;

        font-size: 1rem;

        margin-top: 78px;
        margin-right: 0;
        padding: 10px 24px 10px 29px;

        transition: opacity 300ms ease;

    }

    .single_prev:hover,
    .single_next:hover {
        opacity: 0.7;
    }
}

.single_prev::before,
.single_next::after {
    content: '';

    width: 10px;
    height: 10px;

    border: 0;
    border-top: 1px solid currentColor;
    border-right: 1px solid currentColor;

    rotate: 45deg;
}

.single_prev::before {
    rotate: -135deg;
}

.totop {
    bottom: 17.9487179487vw;
}

@media screen and (min-width: 768px) {
    .totop {
        bottom: 20px;
    }
}

.p_single .single_banner{
    margin-top: 50px;
}

@media screen and (min-width: 768px) {
    .p_single .single_banner {
        margin-top: 80px;
    }
}

.p_single .single_banner__link{
    max-width: 760px;
    
    display: block;
    margin-inline: auto;
    overflow: hidden;

    filter: drop-shadow( 0px 3px 10px rgba(34,34,34, 0.2));
    transition: 600ms ease;
}
@media screen and (min-width: 768px) {
    .p_single .single_banner__link:hover{
        filter: drop-shadow( 0px 3px 10px rgba(34,34,34, 0));
    }
}
.p_single .single_banner__link img{
    border-radius: 10px;
}

.p_single .single_related{
    max-width: 760px;

    display: block;
    margin-inline: auto;
    padding-block: 40px 80px;
}
@media screen and (min-width: 768px) {
    .p_single .single_related{
        padding-block: 70px;
    }
}

.p_single .single_related__title{
    /* font-size: 1rem; */
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.5;

    display: flex;
    gap: 8px;
    align-items: center;
}
@media screen and (min-width: 768px) {
    .p_single .single_related__title{
    }
}
.p_single .single_related__title img{
    /* width: 20px; */
    width: 30px;
}
@media screen and (min-width: 768px) {
    .p_single .single_related__title img{
    } 
}

.p_single .single_related__list{
    background-color: #fff;

    list-style-type: none;

    display: flex;
    gap: 30px;
    flex-direction: column;

    margin: 0;
    margin-top: 20px;
    padding: 20px;
}

@media screen and (min-width: 768px) {
    .p_single .single_related__list {
        padding: 40px;
    }
}
.p_single .single_related__item{}
.p_single .single_related__link{
    display: flex;
    gap: 10px;
    flex-direction: column;
}

@media screen and (min-width: 768px) {
    .p_single .single_related__link{
        gap: 20px;
        flex-direction: row;

        transition: 300ms ease;
    }
    .p_single .single_related__link:hover{
        opacity: 0.8;
    }
    .p_single .single_related__link:hover .single_related__txt{
        text-decoration-color: #0000;
    }
}

.p_single .single_related__thumb{}
@media screen and (min-width: 768px) {
    .single_related__thumb {
        width: 200px;
        flex-shrink: 0;
    }
}
.p_single .single_related__txt{
    text-decoration: underline;
    text-underline-offset: 2px;

    transition: 300ms ease;
}