/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400..800;1,400..800&family=Nunito:ital,wght@0,200..1000;1,200..1000&display=swap');
body{
    font-family: "EB Garamond", serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    text-decoration: none;
    transition: all .2s linear;
    background-color: var(--white-color);
    overflow-x: hidden;
}
:root {  
    /*========== Colors ==========*/
  
      --blue:#173F63;
      --brown:#ff6600;
      --white:#FFFFFF;
      --black:#000000;
      --ash:#96989A;
      --blue-transparent:rgba(20, 43, 84, 0.7);
      --border-blue: .2rem solid var(--blue);
      --border-brown: .2rem solid var(--brown);
      --off-white:#E6E7E8;
      --shadow:0 0 20px rgba(0, 0, 0, 0.1);
      --shadow-white:0 0 20px rgba(255, 255, 255, 0.1);
      --font-mons:"Raleway", serif;
      
      /* Added container width limits */
      --container-max-width: 1600px;
      --content-max-width: 1200px;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a{
    text-decoration: none;
    color: #000000;
}

/* Main content wrapper to prevent extreme stretching */
.content-wrapper {
    max-width: var(--container-max-width);
    margin: 0 auto;
    width: 100%;
}

.slider{
    height: 120vh; 
    margin-top: -90px;
    position: relative;
    max-height: 900px; /* Added maximum height */
}

/* For larger screens (1440px and above) */
@media screen and (min-width: 1440px) {
    .slider {
        max-height: 1080px; /* Increased max-height for larger screens */
    }
    .slider .list .item .content h2{
        width: 100%;
    }
}


.video-container {
    margin-top: -90px;
    position: relative;
    width: 100%;
    height: 100vh; /* Changed from 130vh to 100vh */
    max-height: 900px; /* Added maximum height */
}
  
.home_video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    pointer-events: none;
}
  
.video-text {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 2;
    color: #fff;
    font-family: "EB Garamond", serif;
    max-width: 80%; /* Added maximum width */
}

.underline {
    border-left: white solid 0.1px;
    position: absolute;
    left: clamp(2%, 5%, 6%);
    top: clamp(20vh, 35vh, 40vh);
    height: clamp(150px, 22vh, 220px);
    max-height: 210px;
    z-index: 21;
}

.social_media {
    position: absolute;
    left: clamp(2%, 4.6%, 6%);
    top: clamp(45vh, 70vh, 75vh);
    height: clamp(180px, 25vh, 250px);
    z-index: 21;
    display: flex;
    flex-direction: column;
}
.social_media a{
    text-decoration: none;
    color: white;
    padding-top: 20px;
}
.social_media a:hover {
    color: var(--brown);
}

.slider .list .item .contact_info{
    position: absolute;
    left: 15%;
    bottom: 1vh;
    z-index: 21;
    color: white;
}
.slider .list .item .contact_info p{
    font-size: clamp(1rem, 2vw, .9rem);
    margin: 0 0 10px 10px;
    font-weight: 100;
    text-transform: uppercase;
}
.slider .list .item .contact_info a h1{
    font-size: 2rem;
}
.slider .list .item .contact_info h1{
    border-bottom: none;
    outline: none;
    color: var(--brown);
    font-size: 2.5rem;
}
.slider .list .item .contact_info h1 i{
    border: 1px solid var(--brown);
    padding: 10px;
    border-radius: 50%;
    font-size: clamp(1rem, 2vw, 1rem);
}

.slider .list .item{
    position: absolute;
    inset: 0 0 0 0;
    overflow: hidden;
    opacity: 0;
    transition: .5s;
    transition: opacity 0.8s ease-in-out;
    color: var(--white);
}
.slider .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed from fill to cover */
}
.slider .list .item::after {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
}
.slider .list .item .content{
    position: absolute;
    left: 15%;
    top: 30%;
    width: 800px;
    max-width: 80%;
    z-index: 1;
}
.slider .list .item .content p{
    font-size: .8rem;
    margin-bottom: 10px;
}
/* .slider .list .item .content a{
    font-size: 1rem;
    color: white;
    border: 2px solid var(--brown);
    padding: 10px 20px;
    background-color: var(--brown);
    border-radius: 4px;
} */
.slider .list .item .content p:nth-child(1){
    text-transform: uppercase;
    font-family: "Raleway", serif;
}
.slider .list .item .content h2 {
    font-size: clamp(1.5rem, 3vw + 1rem, 3.5rem);
    margin: 0;
    margin-bottom: 5rem;
    text-transform: uppercase;
    font-weight: 100;
    width: 70%;
}

.slider .list .item .content h2 span {
    color: var(--brown);
}
.slider .list .item.active{
    opacity: 1;
    z-index: 10;
}
@keyframes showContent {
    to{
        transform: translateX(0);
        filter: blur(0);
        opacity: 1;
    }
}
.slider .list .item.active p:nth-child(1),
.slider .list .item.active h2,
.slider .list .item.active p:nth-child(3),
.slider .list .item.active .contact_info,
.slider .list .item.active .content h3{
    transform: translateX(-30px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent 1.5s ease-in-out forwards;
}
.slider .list .item.active h2{
    animation-delay: 1s;
}
.slider .list .item.active .content h3{
    animation-delay: 1.3s;
}
.slider .list .item.active .contact_info{
    animation-delay: 1.6s;
}
.slider .list .item.active p:nth-child(3){
    animation-duration: 1.7s;
}

.arrows{
    position: absolute;
    bottom: 50%;
    right: 80px;
    z-index: 10;
}
.arrows i{
    font-size: 1rem;
}
.arrows button{
    background: none;
    border: dashed var(--brown);
    font-family: monospace;
    width: 35px;
    height: 35px;
    border-radius: 20px;
    font-size: x-large;
    color: var(--brown);
    transition: .5s;
    opacity: .5;
    transition: opacity 1s ease;
    transition: transform 0.8s ease;
    cursor: pointer;
}
.arrows button:hover{
    /* background-color: var(--brown);
    color: black; */
    opacity: 1;
}
.thumbnail{
    position: absolute;
    bottom: 50px;
    z-index: 11;
    display: flex;
    gap: 30px;
    width: 100%;
    height: 250px;
    padding: 0 50px;
    box-sizing: border-box;
    overflow: auto;
    justify-content: center;
    display: none;
}
.thumbnail::-webkit-scrollbar{
    width: 0;
}
.thumbnail .item{
    width: 150px;
    height: 220px;
    filter: brightness(.5);
    transition: .5s;
    flex-shrink: 0;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}
.thumbnail .item.active{
    filter: brightness(1.5);
}
.thumbnail .item .content{
    position: absolute;
    inset: auto 10px 10px 10px;
    color: var(--blue);
}

@media screen and (max-width: 678px) {
   
    .thumbnail{
        display: none;
        justify-content: start;
    }
    .slider{
        height: 50vh;
    }
    .slider .list .item .content h2{
        margin-top: 2rem;
        font-size: 2rem;
        span{
            font-size: 2rem;
        }
    }
    .slider .list .item .content p{
        font-size: .9rem;
        
    }

    .slider .list .item img{
        object-fit:cover;
    }
    .arrows{
        bottom:40%;
        right: 10px;
    }
    .slider .list .item .contact_info a h1{
        font-size: 1rem;
    }
    .slider .list .item .contact_info a h1 i{
        font-size: .9rem;
    }
    .slider .list .item .contact_info h1 i{
        padding: 7px;
    }
    .social_media{
        display: none;
    }
    .underline{
        display: none;
    }
}

/* Specific responsive styles for extra-wide screens */
@media screen and (min-width: 1920px) {
    .slider .list .item img {
        object-position: center;
    }
    
    .slider .list .item .content {
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
    }
    .slider .list .item .content h2{
        width: 100%;
    }
}

/* ====================================abt_home_section=========================================== */
.hm_abt_sec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 8%;
    margin: 0 auto;
    gap: 4rem;
    max-width: 1600px;
    width: 100%;
}

.h_a_w {
    margin-bottom: 2rem;
    color: black;
    font-weight: 100;
}

.h_a_w p {
    text-transform: uppercase;
    letter-spacing: .1rem;
    font-size: .85rem;
}

.wrt_up_container {
    flex: 1 1 45%;
}

.wrt_up_main_content p {
    font-size: clamp(1.2rem, 1.5vw, 1.7rem);
    color: black;
    font-weight: 100;
    line-height: 2.2rem;
}

.wrt_up_fig {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(2rem, 3.5vw, 4rem);
    font-weight: 500;
    color: var(--brown);
}

.wrt_up_fig h1 {
    font-size: clamp(3rem, 5vw, 6rem);
    white-space: nowrap;
    line-height: 1;
}

.wrt_up_fig p {
    font-size: clamp(.6rem, .8vw, .85rem);
    color: #000000;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: .05rem;
    margin-top: .5rem;
}

/* Responsive styles */
@media screen and (max-width: 900px) {
    .hm_abt_sec {
        flex-direction: column;
        align-items: flex-start;
        gap: 2.5rem;
        padding: 3rem 5%;
    }

    .wrt_up_container {
        flex: 0 0 auto;
        width: 100%;
    }

    .wrt_up_main_content p {
        font-size: 1.2rem;
        line-height: 2rem;
    }

    .wrt_up_fig {
        flex: 0 0 auto;
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }

    .wrt_up_fig h1 {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }

    .wrt_up_fig p {
        font-size: .65rem;
    }
}

/* ===========================mission and vision================================== */
.hm_mis_vis_container {
    display: flex;
    background-image: none; /* Remove the original background */
    position: relative;
    outline: none;
    height: auto;
    min-height: 500px;
    max-width: 100%;
    margin: 0 auto 10rem auto;
    align-items: center;
    padding: 3rem 0;
}

.hm_mis_vis_container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 75%; /* Cover only 75% of the width */
    height: 100%;
    background-image: url(../Pictures/bg.jpg);
    background-size: cover;
    background-position: center;
    border-radius: .7rem 0 0 .7rem; /* Rounded corners */
    z-index: -1; /* Place it behind the content */
}

.hm_mis_vis_img {
    width: clamp(300px, 45vw, 700px);
    margin-left: clamp(1rem, 4vw, 3rem);
}

.hm_mis_vis_img img {
    object-fit: cover;
    object-position: center top;
    border-radius: 0.5rem;
    width: 100%;
    height: 480px;
    max-width: 100%;
    display: block;
}

.hm_mis_vis_content{
    display: flex;
    flex-direction: column;
    width: 50%;
    max-width: 800px; /* Added max-width */
    justify-content: center;
    /* align-items: center; */
    padding: 3rem 5%;
    color: var(--brown);
}

.hm_mis h1, .hm_vis h1{
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 100;
    text-transform: uppercase;
}

.hm_mis p, .hm_vis p{
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    padding: 1rem 0;
    font-weight: 500;
    color: var(--ash);
}

.hm_mr_abt_us {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* .hm_mr_abt_us a {
    text-decoration: none;
    font-size: 1rem;
    padding: 7px 15px;
    background-color: var(--blue);
    border-radius: .4rem;
    color: white;
}
.hm_mr_abt_us a:hover{
    background-color: var(--brown);
    color: var(--blue);
} */
@media screen and (max-width: 765px) {
    .hm_mis_vis_container::before {
        width: 100%;
        border-radius: 0 0 0 0;
    }
    .hm_mis_vis_container {
        /* background-color: #f1bb92; */
        display: block;
        height: auto;
        min-height: 90vh;
        margin-bottom: 3rem;
        padding: 1rem 1.5rem;
    }

    .hm_mis_vis_img {
        width: clamp(280px, 90vw, 100%);
        margin: 0 auto;
        padding: 1rem 0;
        display: flex;
        justify-content: center;
    }

    .hm_mis_vis_img img {
        margin: 0 auto;
        width: 100%;
        height: 280px;
        border-radius: 0.5rem;
        object-fit: cover;
        object-position: center top;
    }

    .hm_mis_vis_content {
        width: 100%;
        padding: 2rem 1rem;
    }

    .hm_mis h1,
    .hm_vis h1 {
        font-size: 1.5rem;
    }
    .hm_mis p,
    .hm_vis p {
        font-size: 1.2rem;
        padding: 1.5rem 0;
    }

    .hm_mr_abt_us a {
        font-size: 1.2rem;
    }

    .hm_mr_abt_us i {
        font-size: 1.2rem;
        padding-top: 0.2rem;
    }
}

/* ==================================project=========================== */
.hm_proj_sec{
    padding: 0 3rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}
.hm_proj_hd{
    display: flex;
    justify-content: space-between;
    margin-bottom: .7rem;
}
.hm_proj_hd_cont p{
    padding: 1rem 0;
    text-transform: uppercase;
    font-weight: 100;
    letter-spacing: 1px;
}
.hm_proj_hd_cont h1{
    font-size: 2rem;
    font-weight: 100;
    text-transform: capitalize;
    line-height: 2rem;
}
.hm_proj_hd_cont_vw_mr{
    text-transform: uppercase;
    padding-top: 8rem;
    border-bottom: 2px solid var(--brown);
}
.hm_proj_hd_cont_vw_mr a{
    color: var(--brown);
    font-size: .8rem;
}
.hm_ft_proj_con {
    display: grid;
    grid-template-rows: repeat(2, minmax(10rem, 20rem));
    grid-template-columns: repeat(3, minmax(10rem, 1fr));
    gap: 1rem;
    justify-content: center;
    padding-bottom: 2rem;
    max-width: var(--content-max-width);
    margin: 0 auto;
}
.proj_2{
    grid-row: span 2;
    height: 100%; /* Ensure full height */
}
.hm_proj {
    position: relative;
    overflow: hidden; 
    border-radius: .5rem;
    cursor: pointer;
    max-height: 660px;
}
.hm_proj::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(0, 0, 0, 0.01), 
        rgba(0, 0, 0, 0.7)
    );
    z-index: 1;
    pointer-events: none;
}
.hm_proj_cont {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 98%;
    color: white; 
    padding: 1rem;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    z-index: 2; 
}
.hm_proj img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .5rem;
    transition: transform 0.8s ease;
    position: relative;
}

.hm_proj:hover img {
    transform: scale(1.1);
}
.proj_cont h2{
    font-weight: 100;
    font-size: 1.2rem;
    text-transform: uppercase;
}
.proj_num{
    font-size: 2rem;
    font-weight: 700;
    opacity: 0.2;
    transition: opacity 0.8s ease;
}
.hm_proj:hover .proj_num {
    opacity: 1; 
}
.proj_2 img {
    height: 100%;
    object-fit: cover;
}
@media screen and (max-width: 765px){
    .hm_proj_sec {
        padding: 0 1.5rem;
    }

    .hm_ft_proj_con {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1.5rem;
        padding: 1rem 0;
    }

    .proj_2 {
        grid-row: span 1;
    }

    .hm_proj {
        height: auto;
    }

    .hm_proj img {
        height: auto;
        object-fit: cover;
    }

    .proj_cont {
        font-size: 1rem;
    }

    .proj_num {
        font-size: 2rem;
    }

    .hm_proj_hd {
        flex-direction: column;
        margin-bottom: 2rem;
    }

    .hm_proj_hd_cont p {
        font-size: 1.2rem;
        font-weight: 100;
    }

    .hm_proj_hd_cont h1 {
        font-size: 1.8rem;
        line-height: 2rem;
    }

    .hm_proj_hd_cont_vw_mr {
        padding-top: 2rem;
        border-bottom: 1.5px solid var(--brown);
    }

    .hm_proj_hd_cont_vw_mr a {
        font-size: 0.85rem;
    }
}
/* Specific responsive styles for extra-wide screens */
@media screen and (min-width: 1920px) {
    .hm_proj_hd {
        justify-content: center;
        text-align: center;
        margin-bottom: 2rem;
    }
}

/* ==============================================Awards================================================= */
.awd_reg_sec {
    background-image: url(../Pictures/bg1-h1.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 0;
    color: white;
}

/* Container styles */
.aw_reg_slider-container {
    max-width: var(--content-max-width);
    width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 1rem;
    overflow: hidden;
}

/* Heading area styles */
.awd_reg_wup {
    text-align: center;
    margin-bottom: 3rem;
}

.awd_reg_wup p {
    color: var(--brown);
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-weight: 100;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.awd_reg_wup h1 {
    font-size: 2rem;
    font-weight: 100;
    max-width: 800px;
    margin: 0 auto;
    text-transform: capitalize;
}

/* Slider styles */
.aw_reg_slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    margin: 0 auto;
}

/* Individual slide styles */
.aw_reg_slide {
    flex: 0 0 25%; /* Default for desktop - will be overridden in JS */
    padding: 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: opacity 0.3s ease;
}

.aw_reg_slide img {
    width: 5rem;
    height: 5rem;
    margin-bottom: .8rem;
}

.aw_reg_slide .award_icon {
    /* Tints the SVG stroke to the brand orange (var(--brown)) */
    filter: invert(43%) sepia(99%) saturate(1200%) hue-rotate(1deg) brightness(103%) contrast(107%);
}

.aw_reg_slide h3 {
    color: var(--brown);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.aw_reg_slide h2 {
    font-weight: 100;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.aw_reg_slide p {
    font-size: 1rem;
    color: #ccc;
}

/* Navigation dots styles */
.aw_reg_dots {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.aw_reg_dot {
    height: 0.5rem;
    width: 0.5rem;
    margin: 0 0.3rem;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.aw_reg_dot:hover {
    transform: scale(1.2);
}

.aw_reg_dot.aw_reg_active {
    background-color: var(--brown);
    transform: scale(1.2);
}

/* Navigation buttons styles */
.aw_reg_nav_buttons {
    display: none; /* Hidden by default, shown on mobile */
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    padding: 0 0.5rem;
    pointer-events: none;
}

.aw_reg_nav_buttons button {
    background-color: var(--brown);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, transform 0.2s ease;
    opacity: 0.8;
    pointer-events: auto;
}

.aw_reg_nav_buttons button:hover {
    opacity: 1;
    transform: scale(1.05);
}

.aw_reg_nav_buttons button:focus {
    outline: none;
    opacity: 1;
}

/* Mobile swipe indicator */
.swipe-indicator {
    display: none;
    text-align: center;
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 1rem;
    animation: pulseOpacity 2s infinite;
}

@keyframes pulseOpacity {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Animation classes */
.fade-in-bottom {
    animation: fadeInBottom 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeInBottom {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .awd_reg_sec {
        padding: 3rem 0;
    }
    
    .awd_reg_wup h1 {
        font-size: 1.5rem;
    }
    
    .aw_reg_slide {
        padding: 1rem;
    }
    
    .aw_reg_nav_buttons {
        display: flex;
    }
    
    .swipe-indicator {
        display: block;
    }
    
    .aw_reg_dot {
        height: 0.6rem;
        width: 0.6rem;
        margin: 0 0.4rem;
    }
}
/* ====================================why choose us========================================= */
.hm_y_ch_us_wr_up{
    display: flex;
    flex-direction: column;
    margin: 10rem 6% 5rem;
    max-width: var(--content-max-width);
}
.hm_y_ch_us_hd{
    margin-bottom: 2rem;
    font-weight: 100;
    text-transform: uppercase;
}
.hm_y_ch_us_main_content h1{   
    font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
    font-weight: 100;
    line-height: 2.5rem;
}

.hm_y_ch_us_wrapper {
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    outline: none;
    min-height: 500px; /* Changed from fixed height to min-height */
    height: auto; /* Allow flexible height */
    padding: 3rem 0; /* Added padding */
    /* margin-bottom: 10rem; */
    max-width: 100%;
}
.hm_y_ch_us_wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 75%; /* Cover only 75% of the width */
    height: 100%;
    background-image: url(../Pictures/bg.jpg);
    background-size: cover;
    background-position: center;
    border-radius: .7rem 0 0 .7rem; /* Rounded corners */
    z-index: -1; /* Place it behind the content */
}

.hm_y_ch_us_content {
    display: flex;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.text_item i{
    font-size: 2.5rem;
    color: var(--brown);
    padding-bottom: 2rem;
}

.text_container,
.image_container {
    position: relative;
    width: 50%;
    margin-left: 3rem;
}

.image_container {
    top: 3.5rem;
    height: 70vh;
    max-height: 600px;
    width: 45%;
    display: flex;
    /* align-items: center; */
    /* justify-content: center; */
    position: relative;
}

.text_container {
    overflow: hidden;
    width: 35%;
    min-height: 400px;
    height: auto; /* Changed from fixed to auto */
    top: 4.5rem;
    max-width: 600px; /* Added maximum width */
}

/* Individual items */
.text_item,
.image_item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.5s ease;
}
.text_item.active,
.image_item.active {
    opacity: 1;
    z-index: 2;
}
.text_item h1{
    font-size: 1.5rem;
    font-weight: 100;
    color: var(--brown);
    width: 80%;
    line-height: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.text_item p{
    font-size: 1.4rem;
    color: var(--ash);
}




/* Control buttons */
.controls {
    position: absolute;
    bottom: 48%;
    left: 95%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
}
.controls button {
    padding: 1rem 2rem;
    cursor: pointer;
    background-color: var(--blue);
    color: white;
    border: var(--brown) solid 0.1px;
    display: none;
}

/* Extra-wide screen adjustments */
@media screen and (min-width: 1921px) {
    
    .hm_y_ch_us_content {
        justify-content: center;
        gap: 3rem;
    }
    
    .image_container {
        margin-left: 0;
    }
    
    .text_container {
        margin-left: 0;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 765px) {
    .hm_y_ch_us_wrapper::before {
       width: 100%;
       border-radius: 0 0 0 0;
    }
    .hm_y_ch_us_wr_up{
        margin: 5rem 0 2rem 2rem;
        font-weight: 600;
    }
    .hm_y_ch_us_main_content h1{
        font-size: 2rem;
        line-height: 2rem;
    }
    .hm_y_ch_us_hd{
        margin-bottom: 1.5rem;
        font-weight: 100;
        font-size: 1.2rem;
    }
    .hm_y_ch_us_wrapper{
        /* background-color: #f1bb92; */
        padding: 0 1rem;
        height: auto;
        min-height: 90vh;
        margin-bottom: 7rem;
    }
    .hm_y_ch_us_content {
        flex-direction: column;
    }
    .text_container,
    .image_container {
        width: 100%;
        height: auto;
        margin-left: 0;
        top: 1rem;
    }
    .image_container {
        height: 420px;
        margin-bottom: 2rem;
    }
    .text_container {
        min-height: 100vh;
        padding: 5rem;
    }
    .text_item h1{
        font-size: 1.7rem;
        line-height: 2rem;
        padding-bottom: 1rem;
    }
    .text_item i{
        font-size: 2.7rem;
        color: var(--blue);
        padding-bottom: 2rem;
    }
    .controls {
        position: absolute;
        bottom: 35%;
        left: 90%;
    }
    .controls button {
        padding: 1rem 2rem;
    }  
}
/* Additional styles to enhance the Why Choose Us section */

/* Animation classes for slides */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
}
@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
.slide_in_right {
    animation: slideInRight 0.75s forwards;
}
.slide_out_left {
    animation: slideOutLeft 0.75s forwards;
}
.slide_in_left {
    animation: slideInLeft 0.75s forwards;
}
.slide_out_right {
    animation: slideOutRight 0.75s forwards;
}

/* Improve text and image transitions */
.text_item {
    transition: opacity 0.5s ease;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    padding: 1rem;
    width: 100%;
}

.text_item.active {
    opacity: 1;
    z-index: 2;
}

.image_item {
    border-radius: .5rem;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: clamp(100px, 37%, 400px);
    left: 50%;
    transition: opacity 0.5s ease;
    transform: translate(-50%, -50%);
}

.image_item.active {
    opacity: 1;
    z-index: 2;
}

/* Enhance control buttons */
.controls button {
    display: block; /* Make buttons visible by default */
    padding: 0.8rem;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    margin: 0.5rem 0;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.controls button:hover {
    opacity: 1;
    transform: scale(1.1);
}

.controls button i {
    font-size: 1rem;
}
@media screen and (min-width: 1920px) {
    .image_item {
        top: clamp(100px, 40%, 400px);
    }
}
/* Mobile optimizations */
@media (max-width: 765px) {
    .hm_y_ch_us_content {
        position: relative;
    }
    .image_item {
        top: 50%;
    }
    .controls {
        position: absolute;
        bottom: auto;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        flex-direction: row;
        justify-content: space-between;
        z-index: 20;
    }
    
    .controls button {
        background-color: var(--blue);
        color: white;
        border: 2px solid var(--white);
    }
    
    .text_container {
        min-height: 70vh; /* Reduced from 100vh */
        padding: 2rem 2rem 3rem 2rem; /* Reduced padding */
    }
    
    /* Add swipe indicator for mobile */
    .hm_y_ch_us_content::after {
        content: "Swipe to explore more features";
        position: absolute;
        bottom: 15px;
        left: 0;
        width: 100%;
        text-align: center;
        color: var(--blue);
        font-size: 0.8rem;
        font-family: "Raleway", serif;
        animation: pulse 2s infinite;
    }
    
    @keyframes pulse {
        0% { opacity: 0.5; }
        50% { opacity: 1; }
        100% { opacity: 0.5; }
    }
}

  /* ====================MD Insight======================= */
  .tst_con{
    height: auto; /* Changed from fixed height to auto */
    min-height: 500px; /* Added minimum height */
    display: flex;
    position: relative;
    max-width: 100%;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
  }
  .tst_wr_up {
    flex-basis: 50%;
    background-image: url(../Pictures/bg1-h1.jpg);
    background-position: left;
    background-size: cover;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    padding: 4rem 3rem 4rem 6rem; /* Adjusted padding for better scaling */
    color: white;
    min-height: 500px; /* Added minimum height */
}

.tst_wr_up p {
    text-transform: uppercase;
    color: var(--brown);
    margin-bottom: 2rem;
    font-size: clamp(0.8rem, 2vw, 1.2rem);
}
.tst_wr_up_con {
    position: relative;
    max-width: 800px; /* Added maximum width */
}
.tst_wr_up_con h1 {
    font-size: clamp(1rem, 3vw, 1.7rem);
    font-weight: 700;
    line-height: 2rem;
    margin-bottom: 2rem;
    width: 80%;
    max-width: 600px; /* Added maximum width */
}

.tst_wr_up_con h3 {
    width: 100%; /* Changed from fixed width to 100% */
    max-width: 27rem; /* Added maximum width */
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #b0b9c1;
    font-family: "Raleway", serif;
    font-weight: 500;
    line-height: 2rem;
    margin-bottom: 3rem;
}

.tst_wr_up_con img {
    width: clamp(2rem, 2.5vw, 2.5rem);
    position: absolute;
    left: calc(80% + 0.5rem);
    top: 25%;
    transform: translateY(-40%) rotateX(180deg);
}

.author_con {
    display: flex;
}

.author_con .author_bord {
    width: 7rem;
    border-top: 3px var(--brown) solid;
    margin: .8rem 1rem 0 0;
}

.author_con .author_conent h1 {
    font-size: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: 0;
}

.author_con .author_conent p {
    margin: 0;
    font-size: clamp(0.6rem, 2vw, 0.8rem);
    text-transform:capitalize;
}

.tst_img {
    flex-basis: 50%;
    min-height: 500px;
}

/* Extra-wide screen adjustments */
@media screen and (min-width: 1921px) {
    .tst_con {
        max-width: var(--container-max-width);
        margin: 0 auto;
    }
    
    .tst_img {
        background-size: cover;
        background-position: center;
    }
    
    .tst_wr_up {
        padding: 4rem 3rem 4rem 3rem;
    }
}

  @media (max-width: 765px){
    .tst_con{
        height: auto;
        min-height: 90vh;
        display: block;
        margin-bottom: 5rem;
    }

    .tst_wr_up{
        padding: 0 5rem 0 3rem;
        justify-content: left;
    }

    .tst_wr_up_con p{
        margin-top: 3rem;
    }

    .tst_wr_up_con h1{
        font-size: 1.5rem;
        line-height: 2rem;
        width: 90%;
    }
    .tst_wr_up_con h3{
        width: 100%;
        max-width: 20rem;
    }
    .author_con .author_conent h1{
        font-size: 1.3rem;
    }
    .author_con .author_conent p{
       font-size: .9rem;
       margin-bottom: 2rem;
    }
    .tst_wr_up_con img{
        bottom: 79%;
        left: 87%;
        width: 3rem;
      }

    .tst_img{
        height: 30%;
        min-height: 300px;
        background-position: top;
        background-size: cover;
    }
  }

  /* =====================open video========================== */
  .tst_img .open-video {
    background-color: transparent;
    border: none;
    position: relative;
    top: 40%;
    left: 40%;
}
.tst_img .open-video i{
    position: absolute;
    font-size: 5rem;
    cursor: pointer;
    color: var(--brown);
}
.tst_img .open-video i:hover{
    color: var(--blue);
}

/* Modal styling */
.tst_img .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

/* Modal content */
.tst_img .modal-content {
    position: relative;
    padding: 10px;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    text-align: center;
}

/* Responsive iframe */
.tst_img .modal-content iframe {
    width: 100%;
    height: 515px;
    border-radius: 5px;
}

/* Close button */
.tst_img .close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tst_img .open-video i{
        font-size: 6rem;
        top: 100px;
    }
    .tst_img .modal-content iframe {
        height: 200px;
    }
    .tst_img .open-video i{
        font-size: 5rem;
    }

}

/* ========================Services=============================== */
.bus_serv_con{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    padding: 0 3%;
    max-width: var(--content-max-width);
    margin: 0 auto;
}

.serv_box{
    display: flex;
    flex-direction: column;
    align-items: center;
    /* justify-content: center; */
    border-radius: .35rem;
    padding: 3rem 1.5rem;
    text-align: center;
}
.serv_box h2{
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue);
}
.serv_box img{
    width: 8rem;
}

.serv_box p{
    color: var(--ash);
    font-size: clamp(.95rem, 1vw, 1.05rem);
    line-height: 1.8rem;
    font-weight: 500;
    margin-top: .75rem;
}
.serv_box p {
    flex: 1;
}

.serv_box a{
    color: var(--brown);
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: .8rem;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: none;
    transition: .1s ease;
    position: relative;
}
.serv_box a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 3px;
    background-color: var(--brown);
    transition: width 0.6s ease;
}

.serv_box a:hover::after {
    width: 100%;
}

.serv_box a:hover{
    border-bottom: var(--brown);
}

.serv_box a:hover i{
    transform: translateX(5px);
}
@media screen and (max-width: 768px) {
    .bus_serv_con {
        grid-template-columns: repeat(2, 1fr);
    }

    .serv_box {
        padding: 1.5rem 1rem;
    }

    .serv_box a {
        display: inline-block;
    }
}

/* ===========================blog================================== */
.blog_news_hd_con{
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 0 0 0;
}
.blog_news_hd_con p{
    padding: 2rem 0 0 0;
    text-transform: uppercase;
    color: var(--black);
    font-weight: 100;
    font-size: 1.5rem;
}
.blog_news_hd_con h1{
    color: var(--blue);
    font-weight: 100;
}
.blog_news_con{
    display: grid;
    grid-template-columns:repeat(auto-fit, minmax(17rem, 1fr));
    gap: 1.2rem;
    padding: 4rem 6%;
    max-width: var(--content-max-width);
    margin: 0 auto;
}
.blog_news_box{
    overflow: hidden;
    max-width: 500px; /* Added maximum width */
    margin: 0 auto; /* Center on wide screens */
}
.blog_news_categ{
    display: flex;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.blog_news_box .title{
    font-size: 1.2rem;
    color: var(--blue);
    font-weight: 900;
}
.blog_news_box p{
    padding: 1rem 0;
  }
.blog_news_img_con{
    width: 100%; 
    overflow: hidden;
    position: relative;
    border-radius: .3rem;
    padding-bottom: 2rem;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.blog_news_img_con img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease-in-out;
    border-radius: .3rem;
    position: absolute;
    top: 0;
    left: 0;
}
.blog_news_img_con:hover img{
    transform: scale(1.1);
}
.blog_news_ad_info p{
    font-family: "Raleway", serif;
    font-size: 1rem;
    padding-top: 1rem;
}
.blog_news_ad_info span{
    color: var(--ash);
}
@media screen and (max-width: 768px) {
    .blog_news_hd_con{
        padding: 0;
    }
    .blog_news_img_con {
        width: 100%;
        height: auto;
    }

    .blog_news_img_con img {
        width: 100%;
        height: auto;
        object-fit: contain;
        transition: transform 0.4s ease-in-out;
    }

    .blog_news_img_con:hover img {
        transform: scale(1.05);
    }

    .blog_news_con {
        grid-template-columns: 1fr;
        padding: 2rem 5%;
    }

    .blog_news_hd_con h1 {
        font-size: 2.5rem;
        text-align: center;
    }
}

/* =======================animations ============================= */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  @keyframes slideOutLeft {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(-100%); opacity: 0; }
  }
  @keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
  }
  @keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
  }
  .slide_in_right {
    animation: slideInRight 0.75s forwards;
  }
  .slide_out_left {
    animation: slideOutLeft 0.75s forwards;
  }
  .slide_in_left {
    animation: slideInLeft 0.75s forwards;
  }
  .slide_out_right {
    animation: slideOutRight 0.75s forwards;
  }
