
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
}

/* Header */
#header {
   
    color: white;
    border-bottom: 4px solid black;
    height: 100px;
}

/* Cấu trúc của #top-header */
#top-header {
    width: 80%;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-top: 0; 
    z-index: 1000; 
}

.logo {
    height: 100px;  
     
}











/* Menu */
#menu {
    flex-grow: 1;
}

.main-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    position: relative;
}

.main-menu li {
    position: relative;
}

.main-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px;
    display: block;
}

.main-menu li:hover > a {
    color: #5b1e1e;
    text-decoration: underline;
}
/* Submenu ẩn mặc định */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background-color: #fefefe;
    padding: 10px 0;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    min-width: 220px;
}

/* Hiện submenu khi hover */
.main-menu li:hover .submenu {
    display: block;
}

/* Style từng item trong submenu */
.submenu li {
    padding: 8px 20px;
    white-space: nowrap;
}

.submenu li a {
    color: gray;
    text-decoration: none;
    font-size: 14px;
}

.submenu li a:hover {
    color: black;
    background-color: #f2f2f2;
}




.main-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 10px;
}

.main-menu li a:hover {
    color: #5b1e1e;
    text-decoration: none;
}

/* Nút toggle menu */
.menu-toggle {
    display: none;
    cursor: pointer;
    position: absolute;
    right: 30px;
    z-index: 1000;
}

.main-menu {
    display: flex;
}


.menu-toggle img {
    width: 24px;  
    height: 24px;
}

.search-logo img {
    width: 24px;
    height: auto;
}


#search-box {
    position: absolute;
    top: 0;
    right: 40px;
    display: none; 
    z-index: 10;
}

#search-box input {
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 15px;
    width: 250px;
}


#container {
    width: 80%;
    margin: auto;
    padding: 40px ;

}






input {
    width: 90%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
  }


  button:hover {
    background-color: #444;
  }

  .toggle-link {
    margin-top: 15px;
    display: block;
    color: #007BFF;
    cursor: pointer;
    font-size: 14px;
  }

  .form-box {
    display: none;
  }

  .form-box.active {
    display: block;
  }


  
  h2 {
    margin-bottom: 20px;
    color: #333;
  }

  input {
    width: 80%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
  }

  button {
    width: 80%;
    padding: 12px;
    background-color: brown;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
    transition: background-color 0.3s ease;
  }

  button:hover {
    background-color: #444;
  }

  .toggle-link {
    margin-top: 15px;
    display: block;
    color: #007BFF;
    cursor: pointer;
    font-size: 14px;
  }

  .form-box {
    display: none;
  }

  .form-box.active {
    display: block;
  }





 #footer {
    min-height: 300px;
    background-color: rgb(174, 186, 186);
    text-align: center;
    clear: both;
    overflow: hidden;
    border-top: 2px solid black;

 }


 .box {
    width: 60%;
    margin: auto;

 }



 .box button {
    height: 40px;
    width: 80%;
    border-radius: 5px;
    margin-left: 25px;
    margin-top: 10px;

 }

 .box button:hover {
    background-color: #5b1e1e;
    transition: 400ms;
 }


 .box ul {
    list-style-type: none;
    display: flex;
    justify-content: center; 

 
 }


 .box li {
    padding: 20px 15px;;
    cursor: pointer;
    transition: background-color 0.3s;

  }

  .box li img {
    height: 30px;
    width: 30px;
  }

 

 




/* Responsive */
@media only screen and (max-width: 768px) {

    /* Header */
    #top-header {   
        height: auto;  /* Đảm bảo header không bị quá cao */
        padding: 10px 0;
    }

    .logo {
        height: 50px;  /* Giảm chiều cao logo cho màn hình nhỏ */
    }

    .search-logo {
        width:24px ;
    }




    .box {
        height: 220px;
        width: 100%;
        margin: auto;
        text-align: center;
     }



    /* Menu */
    .main-menu {
        display: none;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 100px;
        left: 0;
        width: 100%;
        padding: 10px 0;
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    }
    

    .main-menu.active {
        display: flex;
        
    }

    /* Nút toggle */
    .menu-toggle {
        display: block;
    }

 



}


[class*="col-"] {
	width:100%;
	float:left;
	min-height:100px;
	padding:10px;
}




     /*tablet */
@media only screen and (min-width: 768px) {

    .col-s-1 { width: 8.33%; }
    .col-s-2 { width: 16.66%; }
    .col-s-3 { width: 25%; }
    .col-s-4 { width: 33.33%; }
    .col-s-5 { width: 41.66%; }
    .col-s-6 { width: 50%; }
    .col-s-7 { width: 58.33%; }
    .col-s-8 { width: 66.66%; }
    .col-s-9 { width: 75%;   }
    .col-s-10 { width: 83.33%; }
    .col-s-11 { width: 91.66%; }
    .col-s-12 { width: 100%; }
}

@media only screen and (min-width: 1280px) {
    /* Grid System cho màn hình lớn */
    .col-m-1 { width: 8.33%; }
    .col-m-2 { width: 16.66%; }
    .col-m-3 { width: 25%; }
    .col-m-4 { width: 33.33%; }
    .col-m-5 { width: 41.66%; }
    .col-m-6 { width: 50%; }
    .col-m-7 { width: 58.33%; }
    .col-m-8 { width: 66.66%; }
    .col-m-9 { width: 75%; }
    .col-m-10 { width: 83.33%; }
    .col-m-11 { width: 91.66%; }
    .col-m-12 { width: 100%; }
}
