/**
 * ĐỒNG HÀNH GROUP - Responsive Fixes
 * Fixes for all breakpoints: mobile (< 767px), tablet (768-991px), desktop (992px+)
 */

/* ===== GLOBAL FIXES ===== */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== VIDEO SLIDER RESPONSIVE ===== */
#home-slider video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: cover;
    display: block;
}

.section-slider .owl-carousel .item video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: cover;
}

.section-slider .owl-carousel .item img,
.section-slider .owl-carousel .item picture img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ===== SERVICE SECTION RESPONSIVE ===== */
@media (max-width: 767px) {
    .section-service .list-service-home .item--service {
        width: 50%;
        float: left;
        margin-bottom: 20px;
    }

    .section-service .list-service-home .item--service .desc-service h3 {
        font-size: 13px;
        line-height: 1.3;
        min-height: 36px;
    }

    .section-service .list-service-home .item--service .site-button {
        font-size: 12px;
        padding: 8px 16px;
    }

    .section-service .s-title h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .section-service .list-service-home .item--service {
        width: 100%;
        float: none;
    }
}

/* ===== ABOUT SECTION RESPONSIVE ===== */
@media (max-width: 767px) {
    .section-about .wrapper-home-about .row-flex {
        display: flex;
        flex-direction: column;
    }

    .section-about .col-left {
        margin-bottom: 20px;
    }

    .section-about .s-title h2 {
        font-size: 22px;
        margin-top: 10px;
    }
}

/* ===== PARALLAX SECTION RESPONSIVE ===== */
@media (max-width: 991px) {
    .section-parallax {
        background-attachment: scroll !important;
    }
}

@media (max-width: 767px) {
    .section-parallax {
        padding: 40px 0 !important;
        background-attachment: scroll !important;
    }

    .section-parallax .row-flex {
        display: flex;
        flex-direction: column;
    }

    .section-parallax .some-facts-counter {
        margin-bottom: 20px;
    }

    .section-parallax .some-facts-counter .col-xs-4 {
        width: 33.33%;
        float: left;
    }

    .section-parallax .icon-box-wraper .counter {
        font-size: 28px;
    }

    .section-parallax .icon-box-wraper .text {
        font-size: 11px;
    }

    .section-parallax .some-facts .s-title h2 {
        font-size: 20px;
    }

    .section-parallax .some-facts .s-title p {
        font-size: 13px;
        line-height: 1.5;
    }

    .section-parallax.prl-two {
        padding: 50px 0 !important;
    }

    .section-parallax.prl-two h2 {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* ===== POLICY SECTION RESPONSIVE ===== */
@media (max-width: 767px) {
    .section-policy .flexMargin {
        display: flex;
        flex-direction: column;
    }

    .section-policy .col-xs-12 {
        width: 100%;
        margin-bottom: 20px;
    }

    .section-policy .box-policy {
        display: flex;
        align-items: center;
        text-align: left;
    }

    .section-policy .icon-policy {
        min-width: 60px;
        margin-right: 15px;
    }

    .section-policy .icon-policy img {
        width: 50px;
        height: auto;
    }
}

/* ===== WHAT WE DO SECTION RESPONSIVE ===== */
@media (max-width: 767px) {
    .section-whatwedo .row {
        display: flex;
        flex-direction: column-reverse;
    }

    .section-whatwedo .col-left,
    .section-whatwedo .col-right {
        width: 100%;
        float: none;
    }

    .section-whatwedo .s-title h2 {
        font-size: 22px;
    }

    .jet-progress-bar {
        margin-bottom: 15px;
    }

    .jet-progress-bar__title-text {
        font-size: 13px;
    }
}

/* ===== VIDEO SECTION RESPONSIVE ===== */
@media (max-width: 767px) {
    .section-video .row-flex {
        display: flex;
        flex-direction: column;
    }

    .section-video .col-md-5,
    .section-video .col-md-7 {
        width: 100%;
        float: none;
    }

    .section-video .fancybox-video {
        margin-bottom: 20px;
    }

    .section-video .s-title h2 {
        font-size: 22px;
    }
}

/* ===== CLIENTS/PARTNERS SECTION RESPONSIVE ===== */
@media (max-width: 767px) {
    .section-clients .list-client .box-client {
        padding: 5px;
    }

    .section-clients .list-client .box-client img {
        max-height: 50px;
        object-fit: contain;
    }
}

/* ===== FOOTER RESPONSIVE ===== */
@media (max-width: 767px) {
    .main-footer .footer-col {
        margin-bottom: 15px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-bottom: 15px;
    }

    .main-footer .footer-title {
        cursor: pointer;
        position: relative;
        margin-bottom: 0;
    }

    .main-footer .footer-title::after {
        content: '+';
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        font-weight: 300;
    }

    .main-footer .footer-content.toggle-footer {
        display: block;
    }

    .main-footer .social-list {
        margin-top: 10px;
    }

    .main-footer--copyright p {
        font-size: 12px;
        text-align: center;
    }

    .main-footer .col-xs-12 {
        width: 100%;
    }
}

/* ===== HEADER / NAVIGATION RESPONSIVE ===== */
@media (max-width: 991px) {
    .desk-menu,
    .wrapper-header-navigation,
    .header-action {
        display: none !important;
    }

    .mainHeader .header-logo {
        text-align: center;
    }

    .mainHeader .header-logo img {
        max-height: 40px;
    }

    .header-mobile {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .header-mobile,
    .site-mobile-navigation {
        display: none !important;
    }
}

/* ===== STICKY CONTACT BAR RESPONSIVE ===== */
@media (max-width: 767px) {
    .addThis_listSharing {
        display: none !important;
    }

    .actionToolbar_mobile {
        display: block !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 999;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }

    .actionToolbar_listing {
        display: flex;
        justify-content: space-around;
        align-items: center;
        padding: 8px 0;
        margin: 0;
        list-style: none;
    }

    .actionToolbar_listing li {
        flex: 1;
        text-align: center;
    }

    .actionToolbar_listing li a {
        display: flex;
        flex-direction: column;
        align-items: center;
        font-size: 11px;
        color: #333;
        text-decoration: none;
    }

    .actionToolbar_listing li a svg {
        width: 28px;
        height: 28px;
        fill: #1a7f37;
    }

    /* Add bottom padding to body to prevent content behind fixed bar */
    body {
        padding-bottom: 60px;
    }
}

@media (min-width: 768px) {
    .actionToolbar_mobile {
        display: none !important;
    }
}

/* ===== MODAL CONTACT FORM RESPONSIVE ===== */
@media (max-width: 767px) {
    .modal-addThis .modal-dialog {
        margin: 10px;
        width: auto;
    }

    .modal-addThis .modal-content {
        border-radius: 8px;
    }

    .modal-addThis .modal-body .input-group {
        margin-bottom: 10px;
    }

    .modal-addThis .form-control {
        font-size: 14px;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
@media (max-width: 767px) {
    .scroltop {
        bottom: 70px !important;
        right: 10px !important;
        width: 36px !important;
        height: 36px !important;
    }
}

/* ===== GENERAL TEXT RESPONSIVE ===== */
@media (max-width: 767px) {
    .s-title h2 {
        font-size: 22px !important;
        margin-bottom: 15px;
    }

    .section {
        padding: 30px 0;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .s-title h2 {
        font-size: 26px;
    }

    .section {
        padding: 40px 0;
    }
}

/* ===== NEW SECTIONS (PROJECTS & NEWS) ===== */
.project-box, .blog-box {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    background: #fff;
}
.project-box:hover, .blog-box:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}
.project-media img, .blog-media img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}
.blog-media {
    position: relative;
    overflow: hidden;
}
