/* ==========================================================
   Home page: tablet & mobile fixes
   - .growth-area          "We maintain a highly trained team" + video
   - .featured-project-area "Featured Projects" carousel
   Loaded after style.css / responsive.css, so these win.
   Used by: resources/views/admin/index.blade.php
   ========================================================== */

/* ==========================================================
   GROWTH AREA (team + video)
   Desktop/laptop: keep the photo inside the left half so it
   never runs under the text column.
   ========================================================== */
@media (min-width: 1200px) {
    .growth-area .growth-chart-image {
        width: calc(50% - 30px);
        overflow: hidden;
    }
    .growth-area .growth-chart-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
}

/* ==========================================================
   GROWTH AREA (team + video)
   Desktop: photo pinned on the left, text on the right.
   Tablet/mobile: photo on top, full text below it.
   ========================================================== */
@media (max-width: 1199.98px) {
    .growth-area {
        padding-top: 0;
        padding-bottom: 70px;
    }
    .growth-area .growth-chart-image {
        position: relative;
        top: auto;
        left: auto;
        bottom: auto;
        width: 100%;
        height: 380px;
        overflow: hidden;
    }
    .growth-area .growth-chart-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
    /* the empty left column takes no space */
    .growth-area .row > .col-xl-6:empty {
        display: none;
    }
    .growth-content-right {
        margin: 0;
        padding-top: 45px;
        overflow: visible;
    }
    .growth-content-right h2 {
        font-size: 28px;
        line-height: 36px;
    }
}

@media (max-width: 767.98px) {
    .growth-area {
        padding-bottom: 55px;
    }
    .growth-area .growth-chart-image {
        height: 240px;
    }
    .growth-content-right {
        padding-top: 32px;
    }
    .growth-content-right h2 {
        font-size: 22px;
        line-height: 30px;
        margin-bottom: 14px;
    }
    .growth-content-right h2 br {
        display: none;
    }
    /* justified text leaves big gaps on narrow screens */
    .growth-content-right .text p,
    .growth-content-right .text p.text-justify {
        text-align: left !important;
        font-size: 15px;
        line-height: 1.7;
    }
    .growth-content-right .bottom-content {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-top: 24px;
    }
    .growth-content-right .bottom-content .icon,
    .growth-content-right .bottom-content .icon a {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
    }
    .growth-content-right .bottom-content .icon a span:before {
        padding: 20px 0;
        font-size: 18px;
    }
    .growth-content-right .bottom-content .title {
        display: block;
        padding-left: 0;
    }
}

/* ==========================================================
   FEATURED PROJECTS
   Desktop: text box overlaid on the photo.
   Tablet/mobile: photo on top, full text in a solid box below.
   ========================================================== */
@media (max-width: 991.98px) {
    .featured-project-area {
        padding: 70px 0 60px;
    }
    .featured-project .single-featured-project .img-holder {
        margin: 0 5px;
        background: #000000;
    }
    .featured-project .single-featured-project .img-holder img {
        display: block;
        width: 100%;
        height: 360px;
        object-fit: cover;
    }
    .featured-project .single-featured-project:hover .img-holder img {
        transform: none;
    }

    /* overlay becomes a normal block under the photo */
    .featured-project .single-featured-project .overlay-content {
        position: static;
        width: 100%;
        height: auto;
    }

    /* project number as a yellow badge on the photo */
    .featured-project .single-featured-project .overlay-content .count {
        position: absolute;
        top: 15px;
        left: 15px;
        float: none;
        width: auto;
        height: auto;
        padding: 6px 14px;
        background: #ffc527;
        color: #000000;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
    }

    .featured-project .single-featured-project .overlay-content .project-details {
        position: static;
        float: none;
        max-width: 100%;
        width: 100%;
        opacity: 1;
        background: #000000;
        border-top: 3px solid #ffc527;
        padding: 24px 24px 26px;
    }
    .featured-project .single-featured-project .overlay-content .project-details h3 {
        font-size: 20px;
        line-height: 1.3;
        margin: 0 0 10px;
    }
    .featured-project .single-featured-project .overlay-content .project-details p {
        color: #d0d0d0;
        margin: 0;
        line-height: 1.7;
        text-align: left;
    }

    /* Prev / Next bar sits right under the slide */
    .featured-project .owl-theme .owl-nav {
        bottom: auto;
        width: 220px;
        height: 60px;
        padding: 21px 0;
        margin: 25px auto 0;
    }
    .featured-project .owl-theme .owl-nav:before {
        top: 25px;
    }
}

@media (max-width: 767.98px) {
    .featured-project-area {
        padding: 55px 0 50px;
    }
    /* theme shrinks container-fluid to 80% on phones; use the full width here */
    .featured-project-area > .container-fluid {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .featured-project .single-featured-project .img-holder {
        margin: 0;
    }
    .featured-project .single-featured-project .img-holder img {
        height: 230px;
    }
    .featured-project .single-featured-project .overlay-content .count {
        top: 12px;
        left: 12px;
        font-size: 16px;
        padding: 5px 12px;
    }
    .featured-project .single-featured-project .overlay-content .project-details {
        padding: 20px 18px 22px;
    }
    .featured-project .single-featured-project .overlay-content .project-details h3 {
        font-size: 18px;
    }
    .featured-project .single-featured-project .overlay-content .project-details p {
        font-size: 14px;
    }
}
