body {
  font-size: 17px;
  font-weight: 400;
  font-family: "Roboto Condensed", sans-serif !important;
}

html {
  scroll-behavior: smooth;
}

.top-bar {
  background: #003366;
  color: white;
  padding: 5px 0;
  font-size: 14px;
}


.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-nav .nav-link {
  font-weight: 500;
  text-transform: uppercase;
}

.banner {
  width: 100%;
  cursor: pointer;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;
  /* Đảm bảo giữ nguyên tỷ lệ */
  display: block;
}


.info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.info-box {
  flex: 1 1 45%;
  background-color: #eaeaea;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}


.sidebar .list-group-item {
  background: #005792;
  color: white;
  border: none;
  margin-bottom: 5px;
}

.sidebar .list-group-item:hover {
  background: #0074c7;
}

footer {
  background: #003366;
  color: white;
  padding: 20px 0;
}

.card .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom right, rgba(0, 123, 255, 0.6), rgba(0, 200, 83, 0.6));
}

.card .overlay1 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom right, rgba(255, 174, 0, 0.6), rgba(220, 186, 101, 0.6));
}

.card-img-overlay {
  z-index: 2;
}

/* Dropdown tự xổ khi hover */
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
  /* bỏ khoảng cách */
}

/* Mục cha khi hover đổi màu cam */
.nav-item.dropdown:hover>.nav-link,
.nav-item:hover>.nav-link {
  background-color: #f4a300;
  color: #fff !important;
}

/* Dropdown menu tùy chỉnh nền xanh đậm */
.dropdown-menu.custom-dropdown {
  background-color: #24537c;
  border: none;
  padding: 0;
  min-width: 220px;
}

/* Item con */
.dropdown-menu.custom-dropdown .dropdown-item {
  color: #ffffff;
  padding: 10px 15px;
  border-bottom: 1px solid #ffffff;
}

/* Bỏ border cuối */
.dropdown-menu.custom-dropdown .dropdown-item:last-child {
  border-bottom: none;
}

/* Hover item con */
.dropdown-menu.custom-dropdown .dropdown-item:hover {
  background-color: #366da3;
  color: #ffffff;
}

/* Bọc form viền xanh đậm */
.search-form {
  display: flex;
  border: 2px solid #24537c;
  background: #ffffff;
}

/* Ô input không viền, không bóng */
.search-form .form-control {
  border: none;
  box-shadow: none;
}

/* Nút search gọn không viền, không nền */
.search-form .btn {
  border: none;
  background: transparent;
  padding: 0.375rem 0.75rem;
  /* Khoảng cách dọc, ngang */
}

/* Icon màu cam */
.search-form .btn i {
  color: #f4a300;
  font-size: 1.2rem;
}


.form-dang-ky {
  display: flex;
  justify-content: center;
}

.form-container {
  background-color: #1e578b;
  padding: 30px 20px;
  border-radius: 4px;
  width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.form-container h2 {
  color: white;
  font-size: 18px;
  margin-bottom: 20px;
  text-align: center;
}

.form-container input,
.form-container select {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border: none;
  border-radius: 2px;
  font-size: 14px;
}

.form-container button {
  width: 100%;
  background-color: #f6a423;
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.form-container button:hover {
  background-color: #d98c15;
}



.chuong-trinh-tien-tien {
  background-color: #003a71;
  padding: 40px 20px;
  font-family: Arial, sans-serif;
  color: #f4f8fd;
}

.chuong-trinh-tien-tien h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.chuong-trinh-tien-tien p {
  max-width: 900px;
  margin: 0 auto 30px;
  text-align: justify;
  font-size: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.info-item {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
}

.info-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.info-text {
  padding: 15px;
}

.info-text strong {
  font-size: 32px;
  color: #ff7b00;
  display: block;
}

.note {
  list-style-type: disc;
  max-width: 850px;
  margin: 0 auto 30px;
  padding-left: 20px;
  font-size: 15px;
}

.register-btn {
  background-color: #ff7b00;
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  transition: background-color 0.3s;
}

.register-btn:hover {
  background-color: #e56a00;
}

.cta-button {
  display: flex;
  justify-content: center;
  padding: 1rem;
  margin-top: 2rem;
}

.register-btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background-color: #f59e0b;
  /* màu cam nổi bật */
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: 100%;
  max-width: 500px;
}

.register-btn:hover {
  background-color: #d97706;
}

@media (max-width: 768px) {
  .register-btn {
      font-size: 0.95rem;
      padding: 0.9rem 1.5rem;
  }

  .carousel-item .col-12 {
      flex: 0 0 100%;
      max-width: 100%;
  }

  .carousel-control-prev.custom-carousel-control {
      left: -20px;
  }

  .carousel-control-next.custom-carousel-control {
      right: -20px;
  }

  .info-box {
      flex: 1 1 100%;
      /* Chiếm 100% chiều rộng trên mobile */
  }
}

@media (max-width: 480px) {
  .register-btn {
      font-size: 0.9rem;
      padding: 0.8rem 1.2rem;
  }
}


.tuition-table table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #ccc;
  font-family: Arial, sans-serif;
}

.tuition-table th,
.tuition-table td {
  border: 1px solid #ccc;
  padding: 10px;
  vertical-align: top;
}

.tuition-table th {
  background-color: #f2f2f2;
  font-weight: bold;
  text-align: left;
}

.tuition-table ul {
  margin: 0;
  padding-left: 20px;
}

.tuition-table li {
  margin-bottom: 5px;
}

.card img {
  height: 180px;
  object-fit: cover;
}

.btn-primary {
  background-color: #2e7d32;
  border: none;
}

.btn-outline-primary {
  color: #2e7d32;
  border-color: #2e7d32;
}

.btn-outline-primary:hover {
  background-color: #2e7d32;
  color: white;
}

.custom-carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}

.carousel-control-prev.custom-carousel-control {
  left: -40px;
}

.carousel-control-next.custom-carousel-control {
  right: -40px;
}

/* Mượt hơn cho phần collapse */
.accordion-collapse {
  transition: height 0.3s ease-in-out;
}

/* Mềm mại cho nút mở/đóng */
.accordion-button {
  transition: background-color 0.2s ease, color 0.2s ease;
}

.accordion-button:not(.collapsed) {
  background-color: #d1e7dd;
  color: #0f5132;
}

.btn-square {
  border-radius: 0 !important;
  padding: 10px 16px;
  min-width: 120px;
  /* Đảm bảo nút rộng đều */
}

.btn-group-custom {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}


.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;
}

.hidden {
  display: none !important;
}

.popup-content {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.4s ease;
}

.popup-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.popup-content h2 {
  margin-bottom: 10px;
  color: #28a745;
}

.popup-content p {
  font-size: 16px;
  color: #555;
  margin-bottom: 25px;
}

.popup-content button {
  background-color: #28a745;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 15px;
}

.popup-content button:hover {
  background-color: #218838;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }

  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.container-custom {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  border-radius: 8px;
  overflow: hidden;
}

.left-side {
  flex: 1;
  background: url('img/ttts/leftSide.jpg') no-repeat center center;
  background-size: cover;
  min-height: 650px;
}

.right-side {
  flex: 1;
  padding: 30px 25px;
  background-color: #fff;
  max-width: 500px; /* thêm giới hạn chiều rộng form */
  margin: auto;
}

.form-title {
  color: #00b140;
  font-weight: 700;
  font-size: 24px;
  text-align: center;
  margin-bottom: 10px;
}

.form-desc {
  font-size: 14px;
  color: #444;
  text-align: center;
  margin-bottom: 20px;
}

.form-control,
.form-select {
  margin-bottom: 15px;
  border-radius: 8px;
  height: 45px;
}

.btn-submit {
  background-color: #ffaa00;
  color: white;
  font-weight: 600;
  border: none;
  height: 50px;
  border-radius: 8px;
}

.btn-submit:hover {
  background-color: #ff8800;
}

@media (max-width: 768px) {
  .container-custom {
    flex-direction: column;
  }

  .left-side {
    display: none;
  }

  .right-side {
    max-width: 100%;
    padding: 20px;
  }
}
/* Vị trí cố định */
.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.floating-buttons a {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-zalo {
  background-color: #0084ff;
}

.btn-zalo img {
  width: 28px;
  height: 28px;
}

.btn-call {
  background-color: #e53935;
  color: white;
  font-size: 26px;
}

.btn-gift {
  background-color: #218838;
  color: white;
  font-size: 26px;
}

/* Animation: nhịp đập cho Zalo */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse 2s infinite;
}

/* Animation: lắc cho Call */
@keyframes shake {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(15deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(10deg); }
}

.shake {
  animation: shake 1.5s infinite;
}

/* Intro Section Styles */
.intro-section {
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.1) 75%, transparent 75%, transparent);
  background-size: 20px 20px;
  animation: move 2s linear infinite;
  z-index: 1;
}

.intro-content {
  position: relative;
  z-index: 2;
}

@keyframes move {
  0% { background-position: 0 0; }
  100% { background-position: 20px 20px; }
}

/* Feature Items Animation */
.feature-item {
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 15px;
}

.feature-item:hover {
  transform: translateY(-10px);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.feature-icon {
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Icon Animations */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.bi-mortarboard-fill {
  animation: float 3s ease-in-out infinite;
}

/* Button Hover Effects */
.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.4);
}

.btn-outline-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Icon List Items */
.list-unstyled li {
  transition: all 0.2s ease;
  padding: 0.25rem 0;
}

.list-unstyled li:hover {
  transform: translateX(5px);
  color: #178040;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .intro-section {
    padding: 3rem 0 !important;
  }
  
  .display-5 {
    font-size: 2rem !important;
  }
  
  .lead {
    font-size: 1.1rem !important;
  }
  
  .btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1rem !important;
  }
}
