/* SA Proje responsive/card polish */
:root {
    --sa-card-gap: 30px;
    --sa-mobile-header-height: 74px;
}

.blog-page-two .row.g-4 > [class*="col-"] {
    margin-bottom: var(--sa-card-gap);
}

.blog-page-two .row.g-4 {
    margin-bottom: calc(var(--sa-card-gap) * -1);
}

.blog-page-two .project-card {
    height: 320px;
    margin-bottom: 0;
}

.blog-page-two .project-card a,
.sa-listing-card a {
    display: block;
    height: 100%;
}

.blog-page-two .project-card img,
.sa-listing-card img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.blog-page-two .project-card .overlay,
.sa-listing-card .overlay {
    padding: 18px 20px 20px;
    min-height: auto;
    background: linear-gradient(to top, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .46) 56%, rgba(0, 0, 0, 0) 100%);
}

.blog-page-two .project-card .overlay h3,
.sa-listing-card .overlay h3 {
    margin: 0;
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.blog-page-two .project-card .overlay span,
.sa-listing-card .overlay span {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 13px;
    line-height: 1.35;
}

.blog-page-two .project-card .overlay span:empty,
.sa-listing-card .overlay span:empty {
    display: none;
}

.sa-listing-card .overlay {
    min-height: auto;
}

.sa-listing-card .overlay h3 {
    font-family: var(--thm-font);
}

@media (min-width: 1200px) {
    .blog-page-two .container-fluid.px-5 {
        padding-left: 42px !important;
        padding-right: 42px !important;
    }
}

@media (max-width: 1199px) {
    html body .main-header {
        position: fixed !important;
    }

    html body .main-slider,
    html body .blog-page-two.sa-listing-section,
    html body .blog-page-two.sa-detail-section,
    html body .blog-details-area.sa-detail-section,
    html body .portfolio-details-area.sa-detail-section,
    html body .google-map-area {
        margin-top: var(--sa-header-height, 92px) !important;
    }

    html body .blog-page-two.sa-listing-section,
    html body .blog-page-two.sa-detail-section,
    html body .blog-details-area.sa-detail-section,
    html body .portfolio-details-area.sa-detail-section {
        padding-top: 34px !important;
    }
}

@media (max-width: 991px) {
    .blog-page-two .project-card,
    .sa-listing-card {
        height: 280px;
    }

    .blog-page-two .container-fluid.px-5 {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }
}

@media (max-width: 767px) {
    :root {
        --sa-header-height: var(--sa-mobile-header-height);
    }

    html body .header-three,
    html body .header-three .auto-container {
        min-height: var(--sa-mobile-header-height) !important;
        height: var(--sa-mobile-header-height) !important;
    }

    html body .header-three .auto-container {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    html body .header-three .logo img,
    html body .header-three_left .logo img,
    html body .main-header .logo img {
        max-height: 54px !important;
        width: auto !important;
    }

    html body .header-three_left {
        gap: 16px !important;
    }

    html body .nav-outer.style3 .mobile-nav-toggler {
        width: 54px;
        height: 54px;
        padding: 0 !important;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--thm-base);
    }

    html body .mobile-nav-toggler .icon-bar {
        width: 27px;
        margin: 4px 0;
    }

    .blog-page-two {
        padding-top: 34px !important;
        padding-bottom: 34px !important;
    }

    html body .blog-page-two.sa-listing-section,
    html body .blog-page-two.sa-detail-section,
    html body .blog-details-area.sa-detail-section,
    html body .portfolio-details-area.sa-detail-section {
        padding-top: 28px !important;
    }

    .blog-page-two .container-fluid.px-5 {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .blog-page-two .row.g-4 > [class*="col-"] {
        margin-bottom: 18px;
    }

    .blog-page-two .row.g-4 {
        margin-bottom: -18px;
    }

    .blog-page-two .project-card,
    .sa-listing-card {
        height: auto !important;
        aspect-ratio: 16 / 11;
        border-radius: 8px;
    }

    .blog-page-two .project-card .overlay,
    .sa-listing-card .overlay {
        padding: 16px 18px 18px;
    }

    .blog-page-two .project-card .overlay h3,
    .sa-listing-card .overlay h3 {
        font-size: 18px;
        line-height: 1.22;
    }

    .blog-page-two .project-card .overlay span,
    .sa-listing-card .overlay span {
        margin-top: 5px;
        font-size: 13px;
        line-height: 1.3;
    }

    .sec-title {
        padding-bottom: 22px;
    }

    .sec-title h2 {
        font-size: 38px !important;
        line-height: 1.12 !important;
        letter-spacing: 0 !important;
    }

    .scroll-to-top {
        width: 58px;
        height: 58px;
        line-height: 58px;
        right: 22px;
        bottom: 22px;
        border-radius: 8px;
    }
}

@media (max-width: 420px) {
    html body .header-three .auto-container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    html body .header-three .logo img,
    html body .header-three_left .logo img,
    html body .main-header .logo img {
        max-height: 50px !important;
    }

    html body .nav-outer.style3 .mobile-nav-toggler {
        width: 50px;
        height: 50px;
    }

    .blog-page-two .container-fluid.px-5 {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    .blog-page-two .project-card .overlay h3,
    .sa-listing-card .overlay h3 {
        font-size: 17px;
    }

    .sec-title h2 {
        font-size: 34px !important;
    }
}
