@media (max-width: 1300px) {}

@media (max-width: 1120px) {}

@media (max-width: 992px) {
    .hero_area {
        height: auto;
    }

    .header_section .main_nav {
        flex: 1;
    }

    #navbarSupportedContent {
        margin-top: 15px;
    }

    .slider_section {
        padding-top: 45px;
    }

    .feature_section .feature_container .box {
        padding: 30px 15px;
    }

    .feature_section .feature_container .box .img-box {
        width: 75px;
    }


    .feature_section {
        transform: none;
        padding: 90px 0;
    }


}

@media (max-width: 767px) {
    .layout_padding {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .layout_padding-top {
        padding-top: 90px;
    }

    .layout_padding-bottom {
        padding-bottom: 90px;
    }

    .slider_section .detail-box {
        padding-bottom: 45px;
    }

    .feature_section .feature_container {
        flex-direction: column;
    }

    .feature_section .feature_container .box {
        padding: 30px 15px;
    }

    .feature_section .feature_container .box:not(:nth-last-child(1)) {
        margin-bottom: 15px;
    }

    .about_section .detail-box {
        margin-bottom: 45px;
    }


    .professional_section .img-box {
        display: none;
    }

    .contact_section form {
        margin-bottom: 45px;
    }

    .info_section .info_items::before {
        width: 1px;
        height: 90%;
        top: 25px;
    }

}

@media (max-width: 576px) {}

@media (max-width: 480px) {}

@media (max-width: 400px) {
    .about_section button {
        align-items: center;
    }
}

@media (max-width: 360px) {}

@media (min-width: 1200px) {
    .container {
        max-width: 1170px;
    }

}

/* Global responsive safety */
html,
body {
    overflow-x: hidden;
}

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

.forum-info,
.forum-replies-list,
.contact-list,
.portfolio-content,
.blog-header,
.services-header {
    overflow-wrap: anywhere;
}

@media (max-width: 992px) {
    .layout_padding,
    .layout_padding-top,
    .layout_padding-bottom {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .blog-section,
    .portfolio-section,
    .faq-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .portfolio-header,
    .blog-header,
    .services-header {
        margin-top: 4vh !important;
        margin-bottom: 6vh !important;
    }

    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }

    .forum-info {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 0;
    }

    .forum-info span {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .services-header h2,
    .portfolio-header h2,
    .blog-header h2,
    .faq-section h2,
    .feedback-form h2 {
        font-size: 1.9rem !important;
    }

    .hero,
    .portfolio-section,
    .blog-section {
        padding: 24px 14px !important;
    }

    .hero-content,
    .half {
        min-width: 0 !important;
    }

    .half {
        padding: 1rem !important;
    }

    .flip-card {
        background-color: transparent;
        height: auto;
        perspective: 1000px;
        margin-bottom: 30px;
        position: relative;
        border-radius: 15px;
        min-height: 300px;
    }

    .flip-card-inner {
        position: relative;
        width: 100%;
        height: 100%;
        transition: transform 0.8s;
        transform-style: preserve-3d;
    }

    .flip-card:hover .flip-card-inner {
        transform: rotateY(180deg);
    }

    .flip-card-front,
    .flip-card-back {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        border-radius: 15px;
        overflow: hidden;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    /* Enable flip animation with tap on mobile */
    .flip-card {
        cursor: pointer;
    }

    .flip-card.touch-hover .flip-card-inner {
        transform: rotateY(180deg);
    }

    .custom-footer {
        padding: 40px 0 20px;
    }

    .footer-left h2 {
        font-size: 1.7rem;
    }

    .toast-container {
        right: 10px;
        left: 10px;
        bottom: 10px;
    }

    .toast,
    .toast-notification {
        min-width: auto !important;
        max-width: 100% !important;
    }

    #backToTop,
    .whatsapp {
        width: 44px;
        height: 44px;
    }

    #backToTop {
        right: 14px;
        bottom: 18px;
        line-height: 44px;
    }
}

@media (max-width: 480px) {
    .container,
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .contact-container,
    .booking-container,
    .feedback-container {
        padding: 16px !important;
        border-radius: 16px;
    }

    .forum-thread,
    .portfolio-card,
    .team-card,
    .card {
        border-radius: 12px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .contact-para {
        width: 100% !important;
        padding: 0.6rem 0.75rem !important;
        border-radius: 12px !important;
    }
}