body {
     font-family: Arial, sans-serif;
  margin: 40px;
  background-color: #fff;
  color: #000;
    margin-left: 50px;
    margin-right: 50px;
}
a{
    text-decoration: none;
}
.logo {
    display: flex;
    flex-direction: column;
}

nav {

    display: flex;
    margin-top: 89px;
    margin-right: 5px;
}

nav ul {
    display: flex;
    list-style-type: none;
    margin: 0px;
}

.seach {
    display: flex;
    position: relative;
    margin-top: 79px;
    margin-left: auto;
    margin-right: 10px;
}
.imgseach{
    padding: auto;
    border-radius:5px;
    height: 31px;
    background-color:aliceblue;
     width: auto;
     position: absolute;
     margin-left: -36px;
     
}
.imgseach:hover{
    background-color: #ccc;
}
nav ul li a {
    color: black;
    padding: 10px;
    margin: 0px;
    text-decoration: none;
}

header {
    display: flex;
    margin-left: 10px;
    margin-right: 10px;

}

input{
    border-radius: 4px;
    height: 25px;
    width: 180px;

}

button {
    color: white;
    border-radius: 7px;
    background-color: #100953;
    height: 30px;
    width: 180px;
}

nav ul li a:hover {
    border-radius: 7px;
    box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.5);
    color: rgb(51, 2, 2);
    border: #100953 2px solid;
}

main {
    flex-grow: 1;

    width: 100%;
    height: auto;
    margin-top: 10px;
}

.section1 div {
    font-size: 40px;
    max-width: 50%;
    padding: 40px;
}

.section1 img {
    height: auto;
    width: 50%;
    position: absolute;
    margin-left: 530px;
    margin-top: -450px;
}

.section1 {
    border-radius: 4px;
    background-color: #FDEED6;
    height: 600px;
    width: auto;
    margin-top: 20px;
    position: relative;
}

.groupbutton button {
    max-width: 50%;
    height: 50px;
    width: 240px;
}

.groupbutton .lastbuton {
    margin-left: 160px;
}

.section2 {
    margin: 50px;
    margin-left: 40px;
    font-size: 20px;
    display: flex;
}

.text {
    text-align: center;
    color: #190F79;
}

.section2 .button1 {

    margin-left: auto;
    margin-right: 0px;
    margin-top: 30px;
}

.section2 .button1 button {
    height: 30px;
    color: #100953;
    background-color: #fff;
}

.section2 .button1 button:hover {
    background-color: #8c8585;
}

.content {
    display: flex;
}

.content a .giongcho {
    box-shadow: 1px 1px 3px 1px rgba(0, 0, 0, 0.5);
    border-radius: 7px;
    flex-wrap: wrap-reverse;
    height: 300px;
    width: 250px;
    background-color: #fff;
    margin: 10px;
}

.content .giongcho:hover {
    border-radius: 7px;
    color: rgb(51, 2, 2);
    border: #100953 2px solid;
}

footer {
    background-color: #fff;
    position: static;
    display: flex;

}

.footer-conect {

    font-size: 25px;
    margin-left: 25px;
    margin-right: 0px;
    width: 100px;
}

.footer-conect ul {
    text-decoration: none;
    list-style: none;

}

.footer-info div {
    font-size: 25px;
    margin-left: 85px;

}

.footer-info ul {
    margin-left: 50px;
    text-decoration: none;
    list-style: none;

}

.footer-info ul li {
    font-size: 20px;
}

.map {
    margin-left: auto;
    margin-right: 10px;
    border-radius: 7px;
}
.knowledge-section {
  max-width: 1000px;
  margin: 20px;
  text-align: left;
}

.knowledge-section h2 {
  color: #2c2c9c;
  margin-bottom: 20px;
}

.card-container {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.card {
  width: 30%;
  background-color: #fff;
}

.card img {
  width: 100%;
  border-radius: 5px;
}

.card h3 {
  margin: 10px 0 5px;
  font-size: 16px;
}

.card h3 a {
  text-decoration: underline;
  color: #000;
}

.card p {
  font-size: 14px;
  color: #333;
}

.see-more-btn {
  margin-top: 20px;
  padding: 10px 20px;
  background-color: white;
  border: 2px solid #2c2c9c;
  color: #2c2c9c;
  font-weight: bold;
  cursor: pointer;
  float: right;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.see-more-btn:hover {
  background-color: #2c2c9c;
  color: white;
}
/* 
login
*/
.login{
    background-color: #100953   ;
    align-items: center;
    height: 400px;
}
.form {
    border-radius: 10px;
    text-align: center;
    margin-left: 30%;
    width:40%;
    background-color: #fff;
    height: 50%;
}
.itemlogin button{
    display: block;
    margin: 10px;
}
.form label {
    font-size: 16px;
}
.auth-container {
      flex: 1;
      display: flex;
      justify-items: center;
      align-items: center;
      padding: 2rem 2rem;
      background: linear-gradient(to right, #000000, #00008B);
      margin: 40px;
      border-radius: 20px;
    }
    .form {
        
      text-align: center;
      padding: 2rem;
      border-radius: 10px;
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
      width: 100%;
      max-width: 400px;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .form h2 {
      text-align: center;
    }

    .form input {
      padding: 0.75rem;
      border: 1px solid #ccc;
      border-radius: 5px;
    }

    .form button {
      background-color: #1f2937;
      color: white;
      padding: 0.75rem;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-weight: bold;
    }

    .form button:hover {
      background-color: #111827;
    }

    .form-links {
      display: flex;
      justify-content: space-between;
      font-size: 0.9rem;
    }

    .form-links a {
      color: #2563eb;
      text-decoration: none;
    }

    .form-links a:hover {
      text-decoration: underline;
    }

    .hidden {
      display: none;
    }

    .back-home {
      display: block;
      margin-top: 1rem;
      text-align: center;
      color: #6b7280;
      text-decoration: none;
      font-size: 0.9rem;
    }

    .back-home:hover {
      color: #111827;
      text-decoration: underline;
    }
@media (max-width: 768px) {
    .content {
        display: block;
    }

    body {
        margin-left: 20px;
        margin-right: 20px;
        background-color: #fff;
    }

    header {
        flex-direction: column;
        align-items: center;
        padding: 15px 0;
        gap: 20px;
        margin-left: 0;
        margin-right: 0;
    }

    .logo {
        order: 0;
        width: 100%;
        justify-content: center;
        align-items: center;
        display: flex;
        flex-direction: column;
        margin: 10px 0;
    }

    nav {
        order: 1;
        width: 100%;
        margin-top: 0;
        margin-right: 0;
    }

    nav ul {
        flex-direction: row;
        justify-content: center;
        gap: 18px;
        padding: 0;
        margin: 0;
        flex-wrap: wrap;
    }

    .seach {
        order: 2;
        width: 100%;
        margin: 0;
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-bottom: 10px;
    }

    input[type="text"] {
        width: 60%;
        min-width: 180px;
        max-width: 300px;
        height: 35px;
        padding: 0 12px;
        font-size: 1rem;
        border-radius: 7px;
        border: 1.5px solid #ccc;
        box-sizing: border-box;
    }

    button {
        margin-right: 17%;
        width: auto;
        min-width: 100px;
        height: 35px;
        padding: 0 20px;
        font-size: 1rem;
        border-radius: 7px;
    }

    .section2 .button1 {
        margin-left: auto;
        margin-right: 20px;
    }

    main {
        padding: 0px 0px;
        height: auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .section1 {
        max-width: 100%;
        padding: 0 10px;
        text-align: center;
        font-size: 2rem;
        height: auto;
    }

    .section1 div:not(:last-child) {
        font-size: 1.75rem;
        margin-bottom: 20px;
        line-height: 1;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .section1 div:nth-child(2) {
        font-size: 1.15rem;
        color: #333;
        font-weight: 500;
    }

    .section1 img {

        position: relative;
        width: 80%;
        max-width: 450px;
        margin: 25px 0 0 0;
        box-shadow: 0 6px 18px rgba(16, 9, 83, 0.2);
        border-radius: 15px;
        user-select: none;
    }

    .groupbutton {
        margin-top: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .groupbutton button {
        width: 100%;
        max-width: none;
        height: 50px;
        font-size: 1.1rem;
        font-weight: 700;
        cursor: pointer;
        border-radius: 10px;
        transition: background-color 0.3s ease;
    }

    .groupbutton .lastbuton {
        margin-left: 0;
        background-color: #333;
    }


}

@media (max-width: 480px) {

    .logo img {
        height: 50px;
        width: 50px;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 5px 8px;
    }

    input[type="text"] {
        width: 50px;
        height: 28px;
    }

    button {
        width: 50px;
        height: 36px;
        font-size: 0.9rem;
    }

    .section1 {
        font-size: 1.6rem;
        padding: 15px 5px;
    }

    .section1 div:not(:last-child) {
        font-size: 1.4rem;
    }

    .section1 div:nth-child(2) {
        font-size: 1rem;
    }

    .content {
        display: block;
    }
}