/*
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.   ***************/
code {
  font-family: Roboto;	
  background: unset;
  border: unset;
  border-radius: unset;
  font-size: unset;
  margin: unset;
  padding: unset;
}
body {
 font-size:16px;
}
footer {
  border-top: 1px solid rgb(238, 239, 241);
}
footer .ux-menu-link a {
  color: rgb(66, 152, 180);
}
.absolute-footer {
  display: none;
}
.footer-policy {
  list-style: none;
  padding: 0;
  margin: 15px 0px 0px 0px;
  display: flex;
  gap: 20px;
}

.footer-policy li {
  margin: 0 !important;
}

.footer-policy a {
  color: #2a7db8;
  text-decoration: none;
}

.footer-policy a:hover {
  text-decoration: underline;
}
.social-icons .icon  {
  margin-right: 10px;
}
/* Đảm bảo khung chứa animation hiển thị */
animation {
  display: block;
  width: 100%;
  min-height: 100px; /* Tùy chỉnh chiều cao tối thiểu */
}

/* Tùy chọn: Ẩn ảnh tĩnh khi hover để lộ animation */
.type:hover .image {
  opacity: 0;
  position: absolute;
}
.mbti-hero {
  position: relative;
  margin-bottom: 30px;
  padding: 80px 20px 5px 80px;
  color: #fff;
  overflow: hidden;
}

/* ===== BACKGROUND LAYERS ===== */

/* layer chính */
.layer-1 {
  position: absolute;
  inset: 0;
  z-index: 1;

  clip-path: polygon(
          0.65% 0%,
          98.7% 0%,
          100% 49%,
          98.7% 85%,
          65% 100%,
          40% 97%,
          12% 100%,
          0.65% 93%,
          0% 24%
  );
}

/* ===== CONTENT ===== */

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  gap: 0px;
}

.hero-left {
  flex: 1;
  max-width: 37%;
  padding-bottom: 40px;
}

.hero-tags span {
  background: rgba(255,255,255,0.2);
  padding: 6px 12px 4px 12px;
  border-radius: 20px;
  margin-right: 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 9px;
}

.hero-title {
  font-size: 60px;
  font-weight: 700;
  margin: 15px 0 10px;
  color: #fff;
}

.hero-subtitle {
  font-size: 28px;
  margin-bottom: 10px;
}

.hero-variant {
  font-size: 16px;
  margin-bottom: 20px;
  color: rgb(54, 38, 61);
  border-bottom: 1px solid;
  display: inline-block;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.6;
  max-width: 500px;
}

/* RIGHT */

.hero-right {
  max-width: 64.44%;
  margin-inline-start: auto;
  margin-inline-end: -20px;
  margin-top: -23.831%;
}

.hero-right img {
  max-width: 100%;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
  .hero-title {
    font-size: 48px;
  }
}
.mbti-layout {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* SIDEBAR */
.mbti-sidebar {
  width: 260px;
}

.sidebar-inner {
  position: sticky;
  top: 100px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
}

#mbti-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

#mbti-nav li {
  margin: 0px;
  border-bottom: 1px solid #eee;
}

#mbti-nav a {
  display: block;
  padding: 12px 10px;
  color: #333;
  text-decoration: none;
  transition: 0.2s;
  position: relative;
}

/* hover */
#mbti-nav a:hover {
  background: #f5f5f5;
}

/* active */
#mbti-nav a.active {
  color: #2c7be5;
  font-weight: 600;
  background: #f0f6ff;
}

#mbti-nav a.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: #2c7be5;
}

/* CONTENT */
.mbti-content {
  flex: 1;
}

.mbti-content section {
  margin-bottom: 60px;
}

.mbti-content h2 {
  font-size: 33px;
  margin-bottom: 20px;
  color: rgb(66, 152, 180);
}
#jp-mbti-quiz-container .jp-question {
  background: transparent !important; /* No background - clean & minimal */
  padding: 30px 20px;
  border-radius: 0 !important;
  box-shadow: none !important; /* Remove shadow */
  margin-bottom: 35px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-bottom: 1px solid #e5e7eb; /* Subtle divider */
  border: none !important;
}
.header-main .nav-dropdown {
  font-size: 14px;
}
.custom-breadcrumb-wrap {
  background: #1e2a4a;   /* màu xanh đậm giống header của bạn */
  padding: 2px 0px 12px 0px;
  border-bottom: none;
}
.custom-breadcrumb {
  font-size: 13px;
  color: #fff;
}
.custom-breadcrumb a {
  color: #fff;
  text-decoration: none;
}
.custom-breadcrumb a:hover {
  text-decoration: underline;
}
.custom-breadcrumb .sep {
  margin: 0 6px;
  color: #aaa;
}
.custom-breadcrumb .current {
  color: #cfd6e6;
}
.page-id-733 .page-wrapper {
  background: rgb(245, 246, 250);
}
.quiz-archive-wrap {
  padding: 30px 20px;
}

.archive-title {
  font-size: 22px;
  font-weight: 700;
  border-left: 4px solid #22c55e;
  padding-left: 12px;
  margin-bottom: 24px;
  color: #1f2937;
}

/* Grid 4 cột */
.quiz-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Card là thẻ a */
.quiz-card {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  background: #fff;
  text-decoration: none;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.quiz-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.quiz-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
  color: #000;
}
.quiz-card:hover .quiz-card-title {
  color: #22c55e;
}

.quiz-card-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
}
.quiz-card-excerpt p {
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .quiz-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .quiz-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .quiz-grid { grid-template-columns: 1fr; }
}
/* Responsive */
.off-canvas-left .mfp-content {
  background: #ffff !important;
}
.nav-sidebar.nav-vertical > li + li {
  border: none;
}
.off-canvas .nav-vertical > li > a {
  padding-bottom: 10px;
  padding-top: 10px;
  color: #000;
  font-size: 14px;
  font-weight: 500 !important;
  text-transform: unset;
}
/* Responsive */
@media (max-width: 768px) {
  .mbti-layout {
    flex-direction: column;
  }

  .mbti-sidebar {
    width: 100%;
  }

  .sidebar-inner {
    position: relative;
    top: 0;
  }
}
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-right {

  }

  .hero-title {
    font-size: 38px;
  }

  /* giảm độ phức tạp polygon mobile */
  .layer-1 {
    clip-path: polygon(
            0 0,
            100% 0,
            100% 90%,
            70% 100%,
            30% 100%,
            0 90%
    );
  }

  .layer-2 {
    display: none;
  }
  .mbti-hero {
    padding: 80px 20px 5px 20px;
  }
  .hero-left {
    max-width: 100%;
    padding-bottom: 40px;
  }
  .hero-right {
    max-width: 100%;
    margin-inline-start: unset;
    margin-inline-end: unset;
    margin-top: -13.831%;
  }
}
@media (min-width: 1024px) {
  .absolute-footer {

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


}