/* ===== Reset & Base ===== */
body,button {
  font-family: "Times New Roman", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ===== Khối 1: Banner ===== */
.banner-top {
  display: flex;
  width: 100%;
  height: 100px;
  background-color: #0101DF;
  color: #FFD700;
  align-items: center;
}

.banner-top .col1 {
  flex: 0 0 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-top .col2 {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 3px;
}

.banner-top .col3 {
  flex: 0 0 20%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Banner text */
.banner-top .col2 .line1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 0 #b8860b, 0 2px 0 #8b7500, 0 3px 3px rgba(0, 0, 0, 0.5);
}

.banner-top .col2 .line2 {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 0 #b8860b, 0 2px 0 #8b7500, 0 3px 3px rgba(0, 0, 0, 0.6);
}

.banner-top .col2 .line2::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shine 3s infinite;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* Images */
img.logo {
  height: 75px;
  width: auto;
}

img.flag {
  height: 95px;
  width: auto;
}

/* ===== Teacher Menu (banner_style) ===== */
#teacherMenu {
  width: 100%;
  background: #f0f0f0;
  padding: 15px 0;
  border-top: 2px solid #0101DF;
  border-bottom: 2px solid #0101DF;
}

.menu-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
}

.item {
  flex: 1 1 140px;
  display: flex;
  justify-content: center;
}

.item a {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background: #086A87;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  transition: background 0.3s, transform 0.2s;
  white-space: nowrap;
}

.item a:hover {
  background: #0B0B61;
  transform: translateY(-2px);
}

/* ===== Khối 2: Menu-bar ===== */
.menu-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 25px;
  background-color: #0101DF;
  font-size: 11px;
  font-weight: bold;
  color: #fff;
  padding: 0 10px;
}

.menu-left {
  display: flex;
  align-items: center;
}

.menu-left .btn-menu {
  background: #fff;
  color: #004aad;
  text-decoration: none;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.menu-left .btn-menu:hover {
  background-color: #004aad;
  color: #fff;
}

.scroll-text {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-align: center;
  animation: scrollText 15s linear infinite;
  margin-left: 10px;
  color: #fff;
}

@keyframes scrollText {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

.menu-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.menu-right a {
  text-decoration: none;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: bold;
  background-color: #BDBDBD;
  color: red;
}

.menu-right a:hover {
  opacity: 0.85;
}

/* ===== Tables ===== */
table, th, td {
  border: 1px solid #424242;
  border-collapse: collapse;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  #teacherMenu {
    padding: 10px 0;
  }

  .menu-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .item {
    flex: none;
    width: 90%;
  }

  .item a {
    font-size: 14px;
    padding: 10px;
  }

  .banner-top {
    flex-direction: column;
    height: auto;
    padding: 5px 0;
  }

  .banner-top .col1,
  .banner-top .col3 {
    flex: 0 0 auto;
  }

  .banner-top .col2 .line1 {
    font-size: 14px;
  }

  .banner-top .col2 .line2 {
    font-size: 16px;
  }

  .menu-bar {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 2px;
  }

  .scroll-text {
    animation-duration: 20s;
    margin: 2px 0;
  }
}
