/* -------------------------- Heder_handle -------------------------- */
@media screen and (max-width:1250px){
    header .container_header .icon_logo{
        width:90%;
    }
}

/* Tablet: Adjust grid layout */
@media (max-width: 1024px) {
    section .section_gird_one {
        grid-template-columns: 1fr 1fr; /* Two columns */
    }

    .box_item_one {
        grid-template-columns: repeat(2, 1fr);
    }

    .box_item_two {
        grid-template-columns: repeat(3, 1fr) 1.5fr;
    }

    footer .container-footer .footer-body{
        width: 90%;
    }
}

/* Mobile: Single column */
@media (max-width: 768px) {
    section .section_gird_one {
        grid-template-columns: repeat(2, 1fr); /* One column */
    }
}

@media screen and (max-width: 992px) {
    header .container_header .icon_logo .Pic img {
        height: 70px;
    }
    .icon_logo img {
        height: 70px;
    }
    .navbar ul {
        width: 90%;
    }
    .navbar ul li{
        padding-inline:8px;
    }
    .navbar ul li a {
        font-size: clamp(13px, 1.5vw, 18px);
    }

    section .container_body{ 
        width:90%;
    }

    .pic-item_3{
        display: none;
    }
}

@media screen and (max-width:768px){
    header .container_header .icon_logo .Pic img{
        height:50px;
    }
    .icon_logo img{
        height:50px;
    }

    .box_item_two {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width:580px){
    .icon_logo .img-smart{
        display: none !important;
    }
    header .container_header .icon_logo .Pic img{
        height: 40px;
    }

    header{
        position: sticky;
        z-index: 1000;
        top:0;
    }
    .icon-toggle{
        display:block;
    }
    .navbar {
        padding: 0;
        position: relative;
    }
    
    .navbar ul {
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, visibility 0.5s;
        position: absolute;
        background-color: #fa1939;
        list-style: none;
        width: 100%;
        display: block;
        max-height: 0px;
    }
    .navbar ul li:hover {
        background-color: rgba(240, 248, 255, 0.537);
        color: black;
        cursor: pointer;
    }
    .navbar.active ul {
        opacity: 1;
        visibility: visible;
        max-height: 1000px; /* Ensure it's large enough for all menu items */
    }
    
    .navbar ul li{
        padding-left: 1rem;
    }
    
    .navbar ul li a {
        color: white;
    }
    
    section .section_gird_one {
        grid-template-columns: repeat(1, 1fr); /* One column */
        gap: 4px;
    }


    .box_item_one {
        grid-template-columns: 1fr;
    }

    footer .container-footer .footer-body {
        font-size: 8pt;
        text-align: center; /* Center align text for better layout */
        padding: 20px; /* Reduce padding for smaller screens */
    }

    /* Reduce logo sizes */
    .footer-body .footer_image_last img {
        width: 30px; /* Adjust logo size */
        height: auto;
    }

    .footer-body .image_footer_header a img{
        width: auto;
        height: 40px;
    }

    /* Adjust social icons */
    .footer-body .icon-contact a {
        font-size: 12px; /* Resize icons */
        margin: 5px;
    }

}

/* Small Mobile: Single column */
@media (max-width: 480px) {
    .box_item_two {
        grid-template-columns: repeat(2, 1fr)
    }
    .title-item-2{
        line-height: 100%;
    }
    .title-item-2 a{
        font-size: 10pt;
    }
}