/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/


.twrapper { 
  width: 100%;
  min-height: 100vh;
  height: 100%;
  font: normal 16px/26px Open Sans Condensed, sans-serif;
  color: #fff;
  padding: 20px 20px 20px;
  box-sizing: border-box;
}

.tblock {
  z-index: 1;
  position: relative;
  &:before {
    content: "";
    position: absolute;
    height: calc(100% - 40px);
    width: 4px;
    background-color: #3a6ea5;
    left: 50%;
    margin-top: 90px;
  }
}

.ttitle {
  font: bold 42px/52px Open Sans Condensed, sans-serif;
  text-align: center;
  padding: 20px;
  transition: all 0.8s ease-in-out;
}

.teach-event {
  background-color: #fff;
  color: #777;
  padding: 15px;
  margin: 60px 20px;
  width: 300px;
  position: relative;
  border-radius: 4px;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;
  &:before {
    content: "";
    position: absolute;
    top: calc(50% - 8px);
    left: -27px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 4px 20px -4px rgba(64, 64, 64, 0.8);
  }
  &:nth-child(odd) {
    margin-left: calc(50% + 20px);
  }
  &:nth-child(even) {
    margin-left: calc(50% - 321px);
    &:before {
      left: calc(100% + 14px);
    }
  }
}

.ttitle.non-focus {
  font-size: 24px;
  line-height: 34px;
  transition: all 0.8s ease-in-out;
}

.teach-event.non-focus {
  color: #d2d2d2;
  background: #e6e6e6;
  margin-top: 90px;
  transform: rotateZ(45deg);
  transition: all 0.8s ease-in-out;
  &:before {
    opacity: 0;
    background-color: #aaa;
  }
}

.dashboard {
      display: flex;
      gap: 20px;
    }

.chart-box {
	flex: 1;
	border: 1px solid #ddd;
	padding: 15px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	position: relative;
}

.tooltip {
	position: absolute;
	background: #333;
	color: #fff;
	padding: 6px 10px;
	font-size: 13px;
	border-radius: 4px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	white-space: nowrap;
	z-index: 10;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

#cf7-register-popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 95%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 999999 !important; /* Đảm bảo cao hơn mọi thành phần */
  display: none;
  justify-content: center;
  align-items: center;
}

#cf7-register-popup .wpcf7 {
  background: #fff;
  padding: 20px;  
  max-width: 500px;
  width: 100%;
  position: relative;
  z-index: 9999999; /* đảm bảo form nổi hẳn lên trên */  
}

#cf7-register-popup button.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000000;
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.cf7-btn-schedule, input.wpcf7-submit {
	text-transform: none!important;
}

.metric {
	margin-bottom: 24px;
}

.metric label {
	font-weight: bold;
	display: block;
	margin-bottom: 6px;
	color: #333;
	text-align: left;
}

.progress-bar {
	height: 24px;
	border-radius: 12px;
	background-color: #e0e0e0;
	overflow: hidden;
	position: relative;
}

.bar-fill {
	height: 100%;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 10px;
	color: white;
	font-weight: bold;
	font-size: 14px;
	white-space: nowrap;
	box-sizing: border-box;
	transition: width 0.3s ease-in-out;
}

/* Các màu riêng cho từng metric */
.accuracy {
	background-color: #198754;
}

.precision {
	background-color: #0d6efd;
}

.recall {
	background-color: #ffc107;
	color: #000; /* chữ đen trên nền vàng */
}

.progress-chart {
	min-height: 500px;
}

.tick-list {
  list-style: none;
  padding-left: 0;
}

.tick-list li {
  margin-bottom: 8px;
  font-size: 16px;
}

.tick-list li i {
  color: green;
  margin-right: 8px;
}

ul.space-y-2, ul.space-y-1 {
	list-style: none;
  padding-left: 0;
}
ul.space-y-2 li, ul.space-y-1 li {
  position: relative;
  padding-left: 24px; /* chừa khoảng cho icon */
}

ul.space-y-2 li::before, ul.space-y-1 li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg fill="green" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6.173 12.414L2.05 8.293l1.414-1.414L6.173 9.586l6.364-6.364 1.414 1.414z"/></svg>');
  background-size: contain;
  background-repeat: no-repeat;
}

#footer ul.space-y-2 li::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}


.timeline {
  position: relative;
  max-width: 900px;
  margin: auto;
  padding: 40px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #0056a3;
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 30px;
  box-sizing: border-box;
}

.timeline-item::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  background: white;
  border: 4px solid #0056a3;
  border-radius: 50%;
  top: 30px;
  z-index: 1;
}

.timeline-item.left {
  left: 0;
  text-align: left;
}

.timeline-item.left::before {
  right: -8px;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-item.right::before {
  left: -8px;
}

.content {
  background: #ffffff;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.content h3 {
  font-size: 1.2em;
  color: #002b5c;
}

.content ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.content ul li {
  color: #2f5e2f;
  margin-bottom: 6px;
}

@media screen and (max-width: 768px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 30px;
    padding-right: 15px;
    margin-bottom: 30px;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item::before {
    left: 0;
  }
}

