body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: #f5f5f7;
  color: #1d1d1f;
}

header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 2px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.style-h3 {
  margin: 0px;
}

.text-red{
  color: red;
}

.logo { 
  font-size: 24px; 
  font-weight: bold; 
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #0066cc;
}

main {
  display: flex;
  flex: 1;
  padding: 20px;
  gap: 20px;
}

.flex {
  display: flex;
}

.nguhanhthieu {
  max-height: 43px;
  width: 120px;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-base-content-secondary\/80 {
  color: hsla(0, 0%, 76%, 0.8);
}

.gap-1 {
  gap: 0.5rem;
}

.items-center {
  align-items: center;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.progress {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 0.5rem;
  border-radius: var(--rounded-box, 1rem);
}
progress {
  vertical-align: baseline;
}

.progress::-moz-progress-bar {
  --tw-bg-opacity: 1;
  background-color: hsl(var(--n) / var(--tw-bg-opacity));
}

.progress-primary::-moz-progress-bar {
  --tw-bg-opacity: 1;
  background-color: hsl(var(--p) / var(--tw-bg-opacity));
}

.progress:indeterminate:after {
  --tw-bg-opacity: 1;
  background-color: hsl(var(--n) / var(--tw-bg-opacity));
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 33.333333%;
  border-radius: var(--rounded-box, 1rem);
  animation: progress-loading 5s ease-in-out infinite;
}

.progress-primary:indeterminate:after {
  --tw-bg-opacity: 1;
  background-color: hsl(var(--p) / var(--tw-bg-opacity));
}

.progress::-webkit-progress-bar {
  background-color: hsl(var(--n) / var(--tw-bg-opacity));
  --tw-bg-opacity: 0.2;
  border-radius: var(--rounded-box, 1rem);
}

.progress1::-webkit-progress-value {
  --tw-bg-opacity: 1;
  background-color: rgb(255, 165, 0);
  border-radius: var(--rounded-box, 1rem);
}

.progress3::-webkit-progress-value {
  --tw-bg-opacity: 1;
  background-color: purple;
  border-radius: var(--rounded-box, 1rem);
}

.progress2::-webkit-progress-value {
  --tw-bg-opacity: 1;
  background-color: rgb(0, 0, 0);
  border-radius: var(--rounded-box, 1rem);
}

.progress4::-webkit-progress-bar {
  --tw-bg-opacity: 0.2;
  border-radius: var(--rounded-box, 1rem);
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.2) 10px, rgba(0, 0, 0, 0.2) 20px);
}

.progress-primary::-webkit-progress-value {
  --tw-bg-opacity: 1;
  background-color: #66cc8a;
}

.progress-group {
  margin: 0 auto;
  width: fit-content;
}

.w-20 {
  width: 10rem;
}

.h-2\.5 {
  height: 0.825rem;
}

.lg\:w-24 {
  width: 10rem;
}

.lg\:h-3 {
  height: 0.825rem;
}

.mt-5{
  margin-top: 10px;
}

.bg-base-300 {
  --tw-bg-opacity: 1;
  background-color: #b3b3b3;
}

.drop-shadow-sm {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate)
    var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.drop-shadow-sm {
  --tw-drop-shadow: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.05));
}

.d-none{
  display: none;
}
.content { flex: 3; }
.sidebar { flex: 1; }

.search-section, .search-form, .experts, .courses {
  background-color: white;
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.search-section {
  background-color: #ffe6e6; /* Light pink background */
}

.search-form {
  background-color: #fffbe6; /* Light yellow background */
}

.experts {
  background-color: #e6f2ff; /* Light sky blue background */
}

.courses { 
  background-color: #f0e6ff; 
}

.search-item {
  background-color: #f2f2f7;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  text-align: center;
}

.search-item-header {
  margin-bottom: 10px;
}
.name-date {
  font-weight: bold;
}

.tai-percentage {
  margin-top: 0;
  color: #0066cc;
}

.fortune {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  text-align: left;
}

.fortune-good, .fortune-bad {
  flex: 1;
}
.fortune h4 {
  margin: 0 0 10px 0;
}
.fortune ul {
  margin: 0;
  padding-left: 20px;
}

.search-form-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-form-fields input[type="text"] {
  width: 100%;
}
.search-form-fields select {
  flex: 1;
  padding: 10px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 16px;
}
.form-group {
  display: flex;
  gap: 10px;
}

.form-group input,
.form-group select {
  flex: 1;
  padding: 10px;
  border: 1px solid #d2d2d7;
  border-radius: 8px;
  font-size: 16px;
}
.checkbox-container {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 10px;
  width: auto;
}

.search-form button {
  width: 33.33%;
  padding: 15px;
  background-color: #0071e3;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin: 0 auto;
  display: block;
}

.search-form button:hover {
  background-color: #0077ed;
  transform: scale(1.05);
}

.expert, .courses {
  text-align: center;
}

.expert {
  margin-bottom: 20px;
}

.expert h4 { margin-bottom: 0; }


.expert img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-top: 5px;
  border: 3px solid #e6f2ff; /* Màu nền của block chuyên gia */
}

.experts {
  background-color: #e6f2ff; /* Light sky blue background */
  padding: 20px;
  border-radius: 18px;
  text-align: center;
}

.social-icons {
  margin-top: 5px;
}

.social-icons img {
  width: 24px;
  height: 24px;
  margin-right: 5px;
}

.courses img {
  max-width: 100%;
  height: auto;
  margin-top: 5px;
  border-radius: 10px;
}

h2, h3 { margin-top: 0; }

.search-item > div:first-child {
  margin-bottom: 5px;
  font-weight: bold;
}

.note {
  font-size: 10pt;
  margin-top: 10px;
  color: #666;
}

.countdown {
  font-size: 10pt;
  margin-top: 5px;
  color: #333;
}

#timer {
  font-weight: bold;
}

.subtitle {
  font-size: 0.9em;
  color: #666;
  margin-top: -10px;
}

footer {
  background-image: url('../images/foot.png'); /* Replace with actual image */
  background-size: cover;
  background-position: center;
  color: white;
  padding: 20px;
  text-align: center;
}

.footer-content {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 20px;
  border-radius: 10px;
}

footer .links a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}

footer .links a:hover {
  text-decoration: underline;
}

.typing-effect {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  text-align: center;
}

.dynamic-text {
  position: relative;
}

.dynamic-text::after {
  content: '|';
  position: absolute;
  right: -8px;
  width: 8px;
  animation: blink 0.7s infinite;
}

.checkbox-container input[type="checkbox"] {
  -ms-transform: scale(1.5); /* IE / Edge */
  -moz-transform: scale(1.5); /* Firefox */
  -webkit-transform: scale(1.5); /* Chrome / Safari */
  -o-transform: scale(1.5); /* Opera */
  transform: scale(1.5);
  margin-right: 10px; /* Add some space between the checkbox and the label */
  
}

/* Style the label text */
.checkbox-container label {
  font-size: 16px;
  
}

.checkbox-container {
  margin-top: 10px;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.highlight-text {
  transition: color 0.5s ease;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  main {
      flex-direction: column;
  }
  .sidebar {
      display: flex;
      flex-direction: row;
      gap: 20px;
  }
  .experts, .courses {
      flex: 1;
  }
}

@media screen and (max-width: 768px) {
  .sidebar {
      flex-direction: column;
  }
  .search-form-fields {
      flex-direction: column;
  }
  .search-form-fields input{
      width: 90%!important;
      margin: 0 auto 10px;
  }

  .search-form-fields select {
    width: 96%!important;
    margin: 0 auto 10px;
  }

  .fortune {
      flex-direction: column;
      gap: 10px;
  }
  nav {
      display: none; /* Consider adding a mobile menu button */
  }
  .logo {
      font-size: 20px;
  }
  .search-section, .search-form, .experts, .courses {
      padding: 15px;
  }
  .typing-effect {
      font-size: 18px;
  }
  .search-form button {
      width: 80%;
  }
  .form-group {
      flex-direction: column;
  }
  .form-group input,
  .form-group select {
      width: 100%;
  }
}

.faq {
  background-color: #fff5e6; /* Gam màu sữa */
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.faq h3 {
  margin-top: 0;
  color: #333;
}

.faq ul {
  list-style-type: none;
  padding: 0;
}

.faq li {
  margin-bottom: 10px;
}

.faq a {
  color: #0066cc;
  text-decoration: none;
}

.faq a:hover {
  text-decoration: underline;
}

.banner-container {
  width: 100%;
  max-width: 728px;
  margin: 20px auto;
  text-align: center;
}

.banner {
  width: 100%;
  height: auto;
  max-width: 728px;
  max-height: 180px;
  object-fit: contain;
  display: block;
}
/* Điều chỉnh cho tablet */
@media screen and (max-width: 1024px) {
  .banner-container {
      max-width: 468px;
  }
  .banner {
      max-width: 468px;
      max-height: 180px;
  }
}

/* Điều chỉnh cho điện thoại */
@media screen and (max-width: 768px) {
  .banner-container {
      max-width: 320px;
  }
  .banner {
      max-width: 320px;
      max-height: 180px;
  }
}
/* Responsive design cho iPhone và iPad */
@media screen and (max-width: 1024px) {
  .sidebar {
      display: flex;
      flex-wrap: wrap;
      gap: 20px;
  }
  
  .experts, .courses, .faq {
      flex-basis: calc(50% - 10px);
  }
}

@media screen and (max-width: 768px) {
  .experts, .courses, .faq {
      flex-basis: 100%;
  }
}

.slider-container {
  overflow: hidden;
  position: relative;
}

.slider {
  display: flex;
  transition: transform 1s ease;
}

.slide {
  flex: 0 0 100%;
  min-height: 190px;
  max-height: 190px;
}

.fixed-example {
  margin-top: 20px;
}

@media screen and (max-width: 768px) {
  .slider-container {
      margin: 0 -15px;
  }
  
  .slide {
    flex: 0 0 94%;
    margin: 0px 10px;
    min-height: 320px;
    max-height: 320px;
  }
}