/* Infinity blog identity layer */
:root {
    --blog-navy: #062838;
    --blog-teal: #19aeb6;
    --blog-cyan: #67d7db;
    --blog-ink: #17313d;
    --blog-muted: #60747d;
    --blog-surface: #f4f8f9;
}

/* Let the Blog and Blog Single hero images begin directly below the header. */
.blog-breadcrumb .breadcrumb-style1__inner {
    margin-top: 0;
}

@media (min-width: 1200px) {
    .blog-breadcrumb .breadcrumb-style1__inner {
        margin-top: 170px;
    }

    .blog-breadcrumb .breadcrumb-style1-bg {
        top: -170px;
    }
}

.blog-breadcrumb .breadcrumb-style1-bg {
    opacity: 1;
    background-size: cover;
    background-position: center 58%;
    background-repeat: no-repeat;
}

.blog-breadcrumb .breadcrumb-style1-bg::before {
    background: linear-gradient(180deg, rgba(2, 12, 18, .04), rgba(2, 12, 18, .28));
}

.blog-breadcrumb .title h2 {
    color: #fff;
    text-shadow: 0 3px 22px rgba(0, 0, 0, .38);
}

.blog-page-three,
.blog-details {
    background: var(--blog-surface);
    direction: ltr;
    text-align: left;
}

.blog-page-three h1,
.blog-page-three h2,
.blog-page-three h3,
.blog-page-three h4,
.blog-page-three h5,
.blog-page-three h6,
.blog-details h1,
.blog-details h2,
.blog-details h3,
.blog-details h4,
.blog-details h5,
.blog-details h6,
.blog-page-three p,
.blog-details p,
.blog-page-three li,
.blog-details li {
    direction: ltr;
    text-align: left;
}

.single-blog-page-three,
.blog-details-top,
.blog-details-text1,
.blog-details-text2,
.blog-details-quote,
.blog-details-tag,
.blog-details-author,
.blog-details-prev-next-option,
.single-sidebar-box,
.sidebar-search-box-one,
.blog-page__sidebar > .subscribe-sidebar-box {
    border-radius: 18px;
}

.single-blog-page-three {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(6, 40, 56, .09);
    box-shadow: 0 18px 45px rgba(6, 40, 56, .08);
    transition: transform .35s ease, box-shadow .35s ease;
}

.single-blog-page-three .content-box {
    padding: 28px 30px 32px;
}

.single-blog-page-three .content-box .top-box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.single-blog-page-three .content-box .top-box .category {
    flex: 0 0 auto;
    margin: 0;
    padding-right: 17px;
    white-space: nowrap;
}

.single-blog-page-three .content-box .top-box .category .icon {
    margin-right: 10px;
}

.single-blog-page-three .content-box .top-box ul {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 24px;
    margin: 0;
    padding: 0;
}

.single-blog-page-three .content-box .top-box ul::before,
.single-blog-page-three .content-box .top-box ul::after,
.single-blog-page-three .content-box .top-box ul li::before {
    display: none;
}

.single-blog-page-three .content-box .top-box ul li + li {
    margin-left: 0;
}

.single-blog-page-three .content-box .top-box ul li h6,
.single-blog-page-three .content-box .top-box .category h6 {
    white-space: nowrap;
}

.single-blog-page-three .content-box .title-box {
    padding-top: 22px;
}

.single-blog-page-three .content-box .title-box h3 {
    max-width: 720px;
    margin-bottom: 12px;
    font-size: clamp(25px, 2.4vw, 32px);
    line-height: 1.25;
    letter-spacing: -.025em;
}

.single-blog-page-three .content-box .title-box p {
    max-width: 720px;
    color: var(--blog-muted);
    font-size: 16px;
    line-height: 1.75;
}

.single-blog-page-three:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 55px rgba(6, 40, 56, .14);
}

.single-blog-page-three .img-box img,
.blog-details-top .img-box img {
    width: 100%;
    object-fit: cover;
}

.single-blog-page-three .img-box img {
    aspect-ratio: 3 / 2;
}

.blog-details-top .img-box img {
    aspect-ratio: 16 / 9;
}

.single-blog-page-three .content-box .top-box,
.blog-details-top .content-box .top-box,
.single-blog-page-three .btn-box,
.blog-details-tag,
.blog-details-prev-next-option {
    direction: ltr;
}

.single-blog-page-three .btn-box {
    display: flex !important;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px 18px;
    max-width: none !important;
    overflow: visible !important;
    margin-top: 24px !important;
}

.single-blog-page-three .content-box .btn-box .show-btn {
    position: static;
    flex: 0 0 auto;
    min-width: auto;
    padding: 0;
    color: var(--blog-muted);
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
    opacity: 1;
    transform: none;
}

.single-blog-page-three:hover .content-box .btn-box .show-btn {
    opacity: 1;
    transform: none;
}

.single-blog-page-three .content-box .btn-box .show-btn i {
    display: none;
}

.single-blog-page-three .content-box .btn-box .overlay-btn {
    position: static;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 999px;
    background: var(--blog-teal);
    color: #fff;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
    opacity: 1;
    transform: none;
    box-shadow: 0 8px 22px rgba(25, 174, 182, .20);
}

.single-blog-page-three:hover .content-box .btn-box .overlay-btn {
    opacity: 1;
    transform: translateY(-2px);
}

.single-blog-page-three .content-box .btn-box .overlay-btn:hover {
    background: var(--blog-navy);
    color: #fff;
}

.single-blog-page-three .btn-box a,
.back-to-blog-post-btn a,
.comment-form button,
.subscribe-sidebar-form button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.blog-details-text1 p,
.blog-details-text2 p {
    color: var(--blog-muted);
    line-height: 1.85;
}

.infinity-article-lead {
    color: var(--blog-ink) !important;
    font-size: 19px;
    line-height: 1.75 !important;
}

.infinity-article-points {
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.infinity-article-points li {
    position: relative;
    margin-bottom: 12px;
    padding-left: 28px;
    color: var(--blog-muted);
}

.infinity-article-points li::before {
    content: "\2713";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--blog-teal);
    font-weight: 800;
}

.single-blog-page-three .category h6,
.blog-details .category h6,
.single-sidebar-box .sidebar-title h3 {
    color: var(--blog-teal);
}

.single-blog-page-three .title-box h3 a,
.blog-details .title-box h3 a,
.single-sidebar__post .title-box h4 a {
    color: var(--blog-navy);
}

.single-blog-page-three .title-box h3 a:hover,
.single-sidebar__post .title-box h4 a:hover {
    color: var(--blog-teal);
}

.single-blog-page-three .btn-box .overlay-btn,
.styled-pagination li a:hover,
.styled-pagination li a.active {
    background: var(--blog-teal);
    color: #fff;
}

.blog-page__sidebar > div,
.single-sidebar-box {
    background: #fff;
    border-color: rgba(6, 40, 56, .09);
    box-shadow: 0 12px 35px rgba(6, 40, 56, .06);
}

.blog-page__sidebar > .subscribe-sidebar-box {
    isolation: isolate;
    padding: 30px 28px 32px;
    border: 1px solid rgba(103, 215, 219, .20);
    background:
        radial-gradient(circle at 92% 8%, rgba(103, 215, 219, .22), transparent 36%),
        linear-gradient(145deg, #062838 0%, #0a4556 100%);
    box-shadow: 0 18px 42px rgba(6, 40, 56, .18);
}

.subscribe-sidebar-box .shape1,
.subscribe-sidebar-box .shape2 {
    display: none;
}

.subscribe-sidebar-box .tilte-box,
.subscribe-sidebar-box .subscribe-sidebar-form {
    position: relative;
    z-index: 1;
}

.subscribe-sidebar-box .tilte-box h3 {
    margin-bottom: 7px;
    color: #fff;
    font-size: 25px;
    line-height: 1.25;
}

.subscribe-sidebar-box .tilte-box p {
    color: rgba(255, 255, 255, .76);
    line-height: 1.65;
}

.subscribe-sidebar-form form input[type="email"] {
    height: 58px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    color: var(--blog-navy);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
    outline: none;
}

.subscribe-sidebar-form form input[type="email"]:focus {
    border-color: var(--blog-cyan);
    box-shadow: 0 0 0 4px rgba(103, 215, 219, .16);
}

.subscribe-sidebar-form form input[type="email"]::placeholder {
    color: #6b7c84;
    opacity: 1;
}

.subscribe-sidebar-form form .checked-box1 label {
    color: rgba(255, 255, 255, .76);
    font-size: 14px;
    line-height: 1.5;
}

.subscribe-sidebar-form form .checked-box1 label span {
    border-color: rgba(255, 255, 255, .55);
}

.subscribe-sidebar-form form .btn-box .btn-one {
    min-width: 178px;
    min-height: 52px;
    padding: 8px 24px;
    border: 0;
    background: var(--blog-cyan);
    color: var(--blog-navy);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.subscribe-sidebar-form form .btn-box .btn-one::before {
    background: #fff;
}

.subscribe-sidebar-form form .btn-box .btn-one:hover {
    color: var(--blog-navy);
}

.sidebar-search-box-one form input[type="search"],
.sidebar-search-box-one form input[type="text"] {
    border-color: rgba(6, 40, 56, .13);
}

.sidebar-search-box-one form button,
.subscribe-sidebar-form button {
    background: var(--blog-teal);
}

.blog-details-quote__inner {
    background: linear-gradient(135deg, var(--blog-navy), #0b5365);
    border-color: rgba(103, 215, 219, .45);
    box-shadow: 0 16px 34px rgba(6, 40, 56, .16);
}

.blog-details-quote::before {
    border-color: rgba(25, 174, 182, .72);
    background: linear-gradient(135deg, rgba(103, 215, 219, .22), rgba(25, 174, 182, .08));
}

.blog-details-quote .blog-details-quote__inner .text-box p,
.blog-details-quote .blog-details-quote__inner .words-by p,
.blog-details-quote .blog-details-quote__inner .words-by p span,
.blog-details-quote__inner h4 {
    color: #fff;
}

.blog-details-quote .blog-details-quote__inner .words-by p {
    color: rgba(255, 255, 255, .78);
}

.blog-details-tag a:hover,
.single-sidebar__tag li a:hover {
    background: var(--blog-teal);
    border-color: var(--blog-teal);
    color: #fff;
}

.blog-details-author .img-box {
    position: relative;
    top: auto;
    left: auto;
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 14px;
    background: #e8f0f2;
}

.blog-details-author-inner {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    align-items: center;
    gap: 26px;
    padding-left: 0;
}

.blog-details-author .content-box {
    min-width: 0;
    padding-right: 150px;
}

.blog-details-author .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.comment-box .single-comment .img-box {
    position: relative;
    top: auto;
    left: auto;
    width: 70px;
    height: 70px;
    margin: 0;
    overflow: hidden;
    border-radius: 50%;
    background: #e8f0f2;
    box-shadow: 0 7px 20px rgba(6, 40, 56, .12);
}

.comment-box .single-comment-inner {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: start;
    gap: 22px;
    padding-left: 0;
}

.comment-box .single-comment .content-box {
    min-width: 0;
}

.comment-box .single-comment .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.comment-box .single-comment .content-box .title p {
    color: var(--blog-muted);
    line-height: 1.75;
}

.comment-box .single-comment .content-box .title h6 span {
    color: var(--blog-navy);
}

.comment-box .single-comment .btn-box a {
    color: var(--blog-teal);
}

.comment-box .single-comment .btn-box a:hover {
    color: var(--blog-navy);
}

.add-comment-box {
    margin-top: 42px;
    padding: 30px;
    border: 1px solid rgba(6, 40, 56, .09);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(6, 40, 56, .07);
}

#add-comment-form .input-box input,
#add-comment-form .input-box textarea {
    width: 100%;
    border: 1px solid rgba(6, 40, 56, .14);
    border-radius: 12px;
    background: #f7fafb;
    color: var(--blog-ink);
    outline: none;
}

#add-comment-form .input-box input:focus,
#add-comment-form .input-box textarea:focus {
    border-color: var(--blog-teal);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(25, 174, 182, .10);
}

@media (max-width: 767px) {
    .blog-breadcrumb .breadcrumb-style1-bg {
        background-position: 58% center;
    }

    .blog-breadcrumb .breadcrumb-style1-bg::before {
        background: rgba(2, 12, 18, .20);
    }

    .single-blog-page-three,
    .single-sidebar-box,
    .blog-details-top {
        border-radius: 14px;
    }

    .single-blog-page-three .content-box {
        padding: 22px 20px 26px;
    }

    .single-blog-page-three .content-box .top-box {
        align-items: flex-start;
        gap: 12px;
    }

    .single-blog-page-three .content-box .top-box ul {
        width: 100%;
        gap: 8px 16px;
    }

    .single-blog-page-three .content-box .title-box {
        padding-top: 18px;
    }

    .single-blog-page-three .content-box .title-box h3 {
        font-size: 24px;
    }

    .single-blog-page-three .btn-box {
        justify-content: space-between;
    }

    .blog-details-author {
        padding: 24px 20px;
    }

    .blog-details-author-inner {
        grid-template-columns: 88px minmax(0, 1fr);
        align-items: start;
        gap: 18px;
    }

    .blog-details-author .img-box {
        width: 88px;
        height: 88px;
    }

    .blog-details-author .content-box {
        padding-right: 0;
    }

    .blog-details-author .content-box .top {
        margin-top: 0;
        padding-right: 0;
    }

    .blog-details-author .content-box .social-links {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 18px;
    }

    .blog-details-author .content-box .social-links ul li a {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .comment-box .single-comment-inner {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 15px;
    }

    .comment-box .single-comment .img-box {
        width: 58px;
        height: 58px;
        margin: 0;
    }

    .comment-box .single-comment .content-box .title h6 {
        line-height: 1.5;
    }

    .add-comment-box {
        padding: 24px 18px;
    }
}

@media (max-width: 420px) {
    .blog-details-author-inner {
        grid-template-columns: 1fr;
    }

    .blog-details-author .img-box {
        width: 96px;
        height: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .single-blog-page-three {
        transition: none;
    }
}
