/* Large screens (992px - 1199px) */
@media only screen and (min-width: 992px) and (max-width: 1199px) {


    .tp-btn-lg-yellow,
    .tp-btn-yellow,
    .tp-btn-border-sm,
    .tp-btn-yellow-sm,
    .tp-btn-yellow-semilar {
        padding: 0 35px;
    }

    /* Typography */
    .tp-title {
        font-size: 42px;
    }

    .tp-title-sm {
        font-size: 38px;
    }

    /* Header & Navigation */
    .tp-main-menu ul li {
        margin-right: 25px;
    }

    .tp-main-menu ul li a {
        font-size: 15px;
    }

    .tp-header-bg {
        margin-left: 30px;
        margin-right: 30px;
    }

    .header-transparent {
        padding-left: 10px;
        padding-right: 10px;
    }

    .tp-menu-black ul li,
    .tp-bs-menu ul li {
        margin-right: 22px;
    }

    .tp-yellow-space,
    .tp-header-yellow-button {
        margin-left: 0;
    }


    /* Hero Section */
    .tp-hero-title {
        font-size: 60px;
    }

    .tp-hero-social a {
        padding-right: 15px;
    }


    .tp-bp-hero-shape {
        right: -15px;
    }

    /* Feature Section */
    .tp-feature-section-title-box .tp-title-sm {
        font-size: 29px;
    }


    .tp-project-section-box {
        text-align: center;
    }

    .tp-project-item-three__bg-info {
        padding: 25px 25px;
    }

    .tp-project-title {
        font-size: 20px;
    }

    /* About */
    .bp-about-shape {
        top: -80px;
        left: -417px;
    }


    .bl-testimonial__text p {
        font-size: 20px;
        line-height: 37px;
    }

    .bl-testimonial__active {
        margin-left: 40px;
        padding-top: 0;
    }

    .tp-blog-area {
        padding-bottom: 40px;
    }

    .bp-blog-title {
        font-size: 16px;
    }

    .tp-news-wrapper {
        padding-left: 35px;
    }

    .tp-news-shape-img {
        left: -25px;
    }

    .tp-newsletter-left-img {
        margin-left: -30px;
    }

    .tp-newsletter-left-img img {
        max-width: 100%;
    }

    .news-shape-img {
        left: 0;
    }


    .tp-news-button input {
        padding-right: 200px;
    }

    /* Footer */
    .tp-footer-title {
        font-size: 25px;
    }


    .footer-clip-shape {
        line-height: 1;
        top: -25px;
    }
}

/* Large screens - Combined media queries (992px-1199px, 1200px-1399px) */
@media only screen and (min-width: 992px) and (max-width: 1399px) {

    .container-fluid {
        margin-left: 40px;
        margin-right: 40px;
        padding: 0 10px;
        width: auto;
    }
    .tp-bp-hero-space {
        padding-bottom: 70px;
    }


    .bs-shape-1 {
        top: -50px;
    }

    .bs-shape-2 {
        top: 134px;
    }

    .ce-chose-shape {
        bottom: 70px;
    }


    .tp-project-shape-two {
        top: 85%;
    }
}


@media (max-width: 992px) {




    .tp-header-area-two.header-sticky #mainNavbar {
        margin: 0;
    }
    .tp-header-area-two {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 0 4px #00000017;
    }

    .tp-header-area-two.header-sticky {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
    }

    /* Main Navbar */
    #mainNavbar {
        position: fixed;
        top: 70px;
        /* Adjust to match header height */
        left: 0;
        right: 0;
        width: 100%;
        background: #fff;
        border-top: 1px solid #eee;
        border-bottom: 1px solid #eee;
        z-index: 1050;
        padding: 0.5rem 1rem;
        transition: all 0.3s ease;
    }

    /* Reset navbar positioning inside header wrapper */
    .tp-header-area-two>div {
        position: relative;
    }

    /* Navbar content stays relative */
    nav.navbar.navbar-expand-lg {
        position: relative;
        width: 100%;
        justify-content: center;
    }

    /* Nav items */
    #mainNavbar .nav-item {
        margin: 0;
    }

    /* Nav links */
    #mainNavbar .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        line-height: 1.5;
        color: #333;
        font-weight: 500;
        transition: color 0.2s ease;
    }

    #mainNavbar .nav-link:hover,
    #mainNavbar .nav-link:focus {
        color: #007bff;
        /* Bootstrap primary */
    }

    /* Dropdowns (expand on hover for desktop, click for mobile) */
    #mainNavbar .dropdown-menu {
        border-radius: 0;
        border: none;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    }


    /* Mobile collapsed menu */
    #mainNavbar {
        top: 80px;
        /* adjust smaller */
        padding: 0;
        border-radius: 7px;
        border: 1px solid #e4e4e47d;
        width: 100%;
        margin-top: 10px;
    }

    #mainNavbar .navbar-collapse {
        background: #fff;
        border-top: 1px solid #eee;
        padding: 0.5rem 0;
    }

    #mainNavbar .nav-link {
        padding: 0.75rem 1.25rem;
        line-height: 1.5;
        border-bottom: 1px solid #f5f5f5;
    }

    #mainNavbar .dropdown-menu {
        position: static;
        /* stacked under parent */
        box-shadow: none;
        border: none;
        padding-left: 1rem;
    }

    #mainNavbar .dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .tp-contact-big-title {
        font-size: 45px;
        margin-bottom: 30px;
    }
    .tp-contact-area {
        padding: 50px 0;
    }
    .contact-form {
        padding: 40px;
    }

    .postbox__area {
        padding: 50px 0;
    }
    .container {
        padding: 0 30px;
    }

    .postbox__title {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .postbox__text > p {
        font-size: 15px;
        line-height: unset;
    }

    .postbox__meta span {
        font-size: 13px;
        font-weight: 600;
        margin-right: 15px;
    }
    .tp-news-letter-box{
        padding:20px 0;
    }
    .tp-news-wrapper {
        padding: 10px 40px;
    }


    .bl-testimonial__thumb{
        display:none;
    }
    .bl-testimonial__active {
        margin: 0px 20px;
        padding-top: 40px;
        overflow: hidden;
    }
    .tp-hero-social a i {
        padding-right: 0;
    }
    .bp-hero-social span {
        display: none;
    }
    .bp-hero-social a {
        padding-right: 0;
        height: 40px;
        width: 40px;
        background-color: var(--tp-common-white);
        color: var(--tp-common-white);
        display: inline-block;
        text-align: center;
        line-height: 40px;
        margin-right: 10px;
        box-shadow: 0 2px 55px rgba(168, 182, 218, 0.32);
        border-radius: 4px;
        transition: 0.5s;
    }
    .tp-hero-area{
        padding-top: 130px;
        padding-bottom: 50px;
    }
    .tp-hero-title {
        font-size: 28px;
        margin-bottom: 10px;
    }
    .card-img-top img {
        transition: transform 0.3s ease;
        width: 100%;
        height: auto;
    }
    .card-img-top {
        height: auto !important;
    }
    .sidebar__wrapper {
        padding-left: 0;
    }
    .breadcrumb__title {
        font-size: 25px;
    }
    .cd-banner-img {
        height: 500px;
        margin-bottom: 30px;
    }
    .bs-section-title-space {
        padding: 20px 20px 0;
    }
    .tp-header-bg {
        margin-left: 30px;
        margin-right: 30px;
        padding: 0 15px;
        margin-top: 30px;
    }

    .breadcrumb__pt-310 {
        padding-top: 140px;
        padding-bottom: 40px;
        background-image: none !important;
    }

    .container-fluid {
        margin-left: 30px;
        margin-right: 30px;
    }

    .ac-about-shape-img {
        width: 70px;
        left: unset;
        right: 40px;
        z-index: 9;
    }
}
