/* ==========================================================
   max-width: 1399px
   ========================================================== */
@media screen and (max-width:1399px) {

    /* Blog listing filters */
    /* .blog-filter-btn {
        min-width: 150px;
    }

    .blog-search {
        flex-basis: 360px;
    } */

    /* Blog cards */

    /* Blog detail article */
    .blog-article-layout {
        grid-template-columns: 320px minmax(0, 1fr);
    }

    .blog-article-content {
        padding-left: 80px;
        font-size: 18px;
    }

    .blog-toc-link {
        font-size: 17px;
    }
}

/* ==========================================================
   max-width: 1199px
   ========================================================== */
@media screen and (max-width:1199px) {

    /* Home */
    .section-two .content {
        padding-bottom: 80px;
    }

    /*.section-two h2 {*/
    /*    font-size: 80px;*/
    /*    line-height: 65px;*/
    /*}*/

    .project_grid .project_item {
        padding: 20px;
    }

    .project_item .project_title {
        font-size: 22px;
        line-height: 22px;
    }

    /*.project_item .project_desc_location {*/
    /*    flex-direction: column;*/
    /*}*/

    .section-4-grid {
        gap: 50px;
    }

    .section-4-content h2 {
        font-size: 36px;
        line-height: 40px;
    }

    /* section-four gap is 50px here, so its image ends 40px further right */
    .section-5-grid {
        grid-template-columns: calc(50% + 40px) 1fr;
        gap: 0;
    }

    .section-5-card {
        padding: 20px;
        margin-left:0;
    }

    .section-5-card h2 {
        font-size: 36px;
        line-height: 40px;
    }

    .form-panel {
        gap: 20px;
        padding: 40px;
    }

    .form-title {
        font-size: 70px;
        line-height: 78px;
    }

    .form-row {
        gap: 80px;
    }

    /* Blog hero */
    .blog-hero {
        padding-top: 200px;
    }

    .blog-hero-title {
        font-size: 48px;
        line-height: 1.1;
        width: 680px;
        max-width: 100%;
    }
    .blog-grid {
        gap: 32px;
    }

    .blog-card-title {
        font-size: 20px;
        line-height: 22px;
        margin: 20px 0 20px;
    }

    .blog-card-body{
        padding: 16px;
    }
    .blog-card-tag, .blog-card-time{
        font-size: 14px;
        padding: 0px 16px;
    }
    .blog-card-date{
        font-size: 14px;
    }
    .blog-hero-head {
        margin-bottom: 48px;
    }

    .blog-featured-tag {
        margin-bottom: 16px;
    }

    .blog-featured-slide {
        height: 580px;
    }
    .blog-card-arrow{
        width: 40px;
        height: 40px;
    }

    .blog-featured-title {
        font-size: 30px;
        line-height: 1.25;
    }

    /* Blog listing filters */
    .blog-filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-search {
        flex-basis: auto;
        max-width: 100%;
    }

    /* Blog cards */
    .blog-grid {
        gap: 24px;
    }

    .blog-card-img {
        height: 250px;
    }

    /* Blog detail */
    .blog-detail-hero {
        padding-top: 220px;
    }

    .blog-detail-title {
        font-size: 48px;
        line-height: 52px;
    }

    .blog-detail-updated {
        margin-top: 60px;
    }

    .blog-detail-cover {
        height: 600px;
    }

    /* Blog detail article */
    .blog-article-layout {
        grid-template-columns: 260px minmax(0, 1fr);
    }

    .blog-article-content {
        padding-left: 50px;
        font-size: 17px;
        line-height: 1.85;
    }

    .blog-article-content h2 {
        margin-top: 70px;
        font-size: 34px;
    }

    .blog-cta-card {
        margin-right: 24px;
        padding: 16px;
    }

    .blog-cta-title {
        font-size: 22px;
    }

    /* Blog detail: latest slider */
    .blog-latest {
        padding: 40px 0 120px;
    }
    .blog-eyebrow{
        margin-bottom: 20px;
    }
    

    .blog-latest-title {
        font-size: 48px;
    }

    .blog-latest-head {
        margin-bottom: 56px;
    }

    .blog-latest-btn {
        width: 60px;
        height: 60px;
    }

    .blog-latest-track {
        gap: 24px;
    }

    .blog-latest-track .blog-card {
        flex-basis: calc((100% - 48px) / 3);
    }
}

/* ==========================================================
   max-width: 991px
   ========================================================== */
@media screen and (max-width:991px) {

    /* Home */
    .section-4-grid {
        grid-template-columns: 1fr;
    }

    .section-4-content {
        padding: 40px;
    }

    .section-5-grid {
        grid-template-columns: 1fr;
    }

    .section-five .container-fluid {
        padding:0px 40px;
    }

    .section-5-grid {
        gap: 50px;
    }

    .form-panel {
        grid-template-columns: 1fr;
    }

    .form-title {
        line-height: 68px;
    }

    .form-row {
        gap: 40px;
    }

    /* Blog hero */
    .blog-hero-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 44px;
    }

    .blog-hero-left {
        width: 100%;
    }

    .blog-hero-desc {
        max-width: 100%;
        margin: 0;
        font-size: 16px;
    }

    .blog-featured-slide {
        height: 500px;
    }

    .blog-featured-content {
        left: 32px;
        right: 32px;
        bottom: 40px;
    }

    /* Blog cards */
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        margin-top: 40px;
    }

    .blog-card-img {
        height: 260px;
    }
    .blog-filter-btn{
        padding: 12px 16px;
    }

    /* Blog detail */
    .blog-detail-head {
        margin-bottom: 50px;
    }

    .blog-detail-title {
        font-size: 38px;
    }

    .blog-detail-cover {
        height: 480px;
    }

    /* Blog detail article: stack TOC, content, CTA */
    .blog-article-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .blog-toc {
        position: static;
        gap: 14px;
        padding: 50px 0 40px;
        border-bottom: 1px solid rgba(43, 29, 28, 0.12);
    }

    .blog-article-content {
        grid-column: 1;
        grid-row: 2;
        padding: 40px 0 60px;
        border-left: 0;
    }

    .blog-cta-card {
        grid-row: 3;
        margin: 0 0 60px;
    }

    .blog-cta-title,
    .blog-cta-text {
        max-width: none;
    }

    /* Blog detail: latest slider */
    .blog-latest-title {
        font-size: 38px;
    }

    .blog-latest-track .blog-card {
        flex-basis: calc((100% - 24px) / 2);
    }
    .blog-article{
        padding-bottom: 40px;
    }
}

/* ==========================================================
   max-width: 768px
   ========================================================== */
@media screen and (max-width:768px) {

    /* Home */
    .sparkle-icon {
        width: 90px;
        height: 90px;
        margin-bottom: 32px;
    }

    .hero-title {
        font-size: 1.4rem;
        letter-spacing: 6px;
    }
}

/* ==========================================================
   max-width: 600px
   ========================================================== */
@media screen and (max-width:600px) {

    /* Header */
    /* .site-header {
        display: none;
    } */

    /* Home */
    .section-two h2 {
        font-size: 26.17px;
        line-height: 21.42px;
    }

    .section-three {
        padding: 40px 30px;
    }

    .section-three .section_title {
        font-size: 15.05px;
        line-height: 23.46px;
        padding: 16px;
    }

    .project_grid {
        grid-template-columns: 1fr;
        gap:28px;
    }

    .project_grid .project_item {
        padding: 12px;
    }

    .section-4-image {
        height: 377px;
        margin-bottom: 0px;
    }

    .section-4-content h2 {
        font-size: 23px;
        line-height: 25.79px;
        letter-spacing: 4%;
        margin-bottom: 32px;
    }

    .section-4-content {
        padding: 16px;
    }

    .section-4-content p {
        font-size: 10px;
        line-height: 17.5px;
        letter-spacing: 0%;
        /*padding-right: 40px;*/
    }
.section-five .container-fluid{
    padding:16px;
}
    .section-5-card {
        padding: 40px 28px;
    }

    .section-5-card h2 {
        font-size: 23.23px;
        line-height: 24.97px;
        letter-spacing: 4%;
    }

    .section-5-card p {
        font-size: 10px;
        line-height: 17.42px;
    }

    .section-six {
        padding: 60px 0;
    }

    .section-6-inner {
        padding: 0px 16px;
    }

    .form-panel {
        padding: 20px;
    }

    .form-title {
        font-size: 24px;
        line-height: 104%;
        letter-spacing: 4%;
        text-align: center;
    }

    .form-title br:nth-child(1) {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        gap: 12px;
        order:1;
    }

    .btn-submit,
    .btn-reset {
        padding: 8px 24px;
        line-height: auto;
    }

    /* Footer */
    .site-footer {
        padding: 8px;
        flex-direction: column;
    }

    .footer-left {
        gap: 4px;
    }

    .footer-right p {
        font-size: 10px;
    }

    /* Blog hero */
    .blog-container {
        padding: 0 16px;
    }

    .blog-hero {
        padding: 150px 0 50px;
    }

    .blog-eyebrow {
        font-size: 14px;
        padding: 8px 18px;
        gap: 10px;
        margin-bottom: 26px;
        width: auto;
    }

    .blog-hero-title {
        font-size: 32px;
        line-height: 30px;
    }

    .blog-featured-frame {
        padding: 6px;
        border-radius: 18px;
    }

    .blog-featured-slide {
        height: 440px;
        border-radius: 14px;
    }

    .blog-featured-content {
        left: 20px;
        right: 20px;
        bottom: 28px;
    }

    .blog-featured-tag {
        font-size: 14px;
        padding: 8px 16px;
        margin-bottom: 18px;
        width: auto;
    }

    .blog-featured-title {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .blog-read-more {
        font-size: 16px;
        gap: 18px;
    }

    .blog-read-more-icon {
        width: 40px;
        height: 40px;
    }

    /* Floating buttons */
    .blog-float-actions {
        right: 16px;
        bottom: 24px;
        gap: 12px;
    }

    .blog-float-btn {
        width: 54px;
        height: 54px;
    }

    .blog-float-btn img {
        width: 22px;
        height: 22px;
    }

    /* Blog listing filters */
    .blog-listing {
        padding: 50px 0 60px;
    }

    .blog-filter-bar {
        padding-top: 24px;
        gap: 16px;
    }

    .blog-filters {
        flex-wrap: wrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0 -16px;
        padding: 0 16px;
    }

    .blog-filters::-webkit-scrollbar {
        display: none;
    }

    .blog-filter-btn {
        min-width: auto;
        flex-shrink: 0;
        height: 46px;
        font-size: 15px;
        padding: 0 20px;
    }

    .blog-search-input {
        height: 50px;
        font-size: 15px;
        padding-left: 56px;
    }

    .blog-search-icon {
        left: 20px;
    }

    /* Blog cards */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 28px;
    }

    .blog-card-img {
        height: 230px;
    }

    .blog-card-body {
        padding: 24px 20px 20px;
    }

    .blog-card-tag,
    .blog-card-time {
        height: 32px;
        font-size: 14px;
    }

    .blog-card-title {
        font-size: 21px;
        margin: 22px 0 32px;
    }

    .blog-card-date {
        font-size: 15px;
    }

    .blog-card-arrow {
        width: 48px;
        height: 48px;
    }

    /* View more */
    .blog-view-more-wrap {
        margin-top: 40px;
    }

    .blog-view-more {
        height: 50px;
        padding: 0 28px;
        font-size: 15px;
    }

    .footer-link{
        font-size: 14px;
    }

    /* Blog detail */
    .blog-detail-hero {
        padding: 140px 0 0px;
    }

    .blog-detail-head {
        margin-bottom: 32px;
    }

    .blog-detail-tag {
        height: 34px;
        font-size: 15px;
    }

    .blog-detail-title {
        margin-top: 24px;
        font-size: 24px;
        line-height: 1.3;
    }

    .blog-detail-updated {
        margin-top: 36px;
        padding-top: 10px;
        font-size: 14px;
    }

    .blog-detail-cover {
        height: 300px;
        border-radius: 14px;
    }

    /* Blog detail article */
    .blog-article {
        padding-bottom: 50px;
    }

    .blog-toc {
        padding: 32px 0 28px;
    }

    .blog-toc-link {
        font-size: 15px;
    }

    .blog-article-content {
        padding: 28px 0 40px;
        font-size: 15px;
        line-height: 1.8;
    }

    .blog-article-content p {
        margin-bottom: 20px;
    }

    .blog-article-content h2 {
        margin: 44px 0 20px;
        font-size: 26px;
        scroll-margin-top: 90px;
    }

    .blog-article-content li {
        margin-bottom: 12px;
    }

    .blog-cta-card {
        margin-bottom: 40px;
        padding: 28px 20px;
    }

    .blog-cta-title {
        margin-bottom: 16px;
        font-size: 20px;
    }

    .blog-cta-text {
        margin-bottom: 24px;
        font-size: 14px;
    }

    /* Blog detail: latest slider */
    .blog-latest {
        padding: 20px 0 70px;
    }

    .blog-latest-head {
        margin-bottom: 28px;
    }

    .blog-latest-title {
        font-size: 22px;
        line-height: 1.2;
    }

    .blog-latest-nav {
        gap: 10px;
    }

    .blog-latest-btn {
        width: 44px;
        height: 44px;
    }

    .blog-latest-btn img {
        width: 16px;
        height: 14px;
    }

    .blog-latest-track {
        gap: 20px;
    }

    .blog-latest-track .blog-card {
        flex-basis: 100%;
    }
    .project_item .project_desc_location{
        align-items:start;
    }
    .project_item .project_desc_location .location{
        margin-left:0;
    }
}

/* ==========================================================
   max-width: 480px
   ========================================================== */
@media screen and (max-width:480px) {

    /* Home */
    .hero-title {
        font-size: 1.1rem;
        letter-spacing: 4px;
    }

    .sparkle-icon {
        width: 70px;
        height: 70px;
    }
}
