/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 * Version: 1.0.1
 */
/* ================================
   BLOCKSY DESKTOP MENU
================================ */

/* Menu bình thường */
#header .ct-container {
	width: min(1120px, 100%);
	margin: 0 auto;
}

#header .menu > li > a,
#header .menu > li > a .ct-label {
	color: #050706 !important;
}

/* Menu hover */
#header .menu > li:hover > a,
#header .menu > li:hover > a .ct-label,
#header .menu > li > a:hover,
#header .menu > li > a:hover .ct-label {
	color: #FF9500 !important;
}

/* Menu đang được chọn */
#header .menu > li.current-menu-item > a,
#header .menu > li.current-menu-item > a .ct-label,
#header .menu > li.current-menu-ancestor > a,
#header .menu > li.current-menu-ancestor > a .ct-label,
#header .menu > li.current_page_item > a {
	color: #FF9500 !important;
}

/* Mũi tên dropdown */
#header .menu > li > a .ct-menu-link-icon {
	color: currentColor !important;
	fill: currentColor !important;
}

/* ================================
   DROPDOWN MENU
================================ */

#header .sub-menu {
	background: #fffefc !important;
	border-color: #e8dcc9 !important;
}

#header .sub-menu li > a {
	color: #FF9500 !important;
	background: #fffefc !important;
}

#header .sub-menu li:hover > a,
#header .sub-menu li.current-menu-item > a {
	color: #FF9500 !important;
	background: #fff7e8 !important;
}

/* ================================
   BLOCKSY MOBILE MENU
================================ */

.mobile-menu li > a,
.mobile-menu li > a .ct-label,
[data-device="mobile"] .menu li > a {
	color: #050706 !important;
}

.mobile-menu li > a:hover,
.mobile-menu li > a:hover .ct-label,
.mobile-menu li.current-menu-item > a,
.mobile-menu li.current-menu-ancestor > a {
	color: #FF9500 !important;
}

/* Nút mở menu mobile */
.ct-header-trigger,
.ct-header-trigger .ct-icon {
	color: #050706 !important;
}

.ct-header-trigger:hover,
.ct-header-trigger:hover .ct-icon {
	color: #FF9500 !important;
}


/* Nút đăng ký tư vấn */
a.header-consult-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;

	min-height: 42px;
	padding: 11px 20px;

	color: #FFFFFF !important;
	background-color: transparent !important;
	background-image: linear-gradient(
		180deg,
		#ffd13d 0%,
		#ffad1f 48%,
		#f58200 100%
	) !important;

	border: 0 !important;
	border-radius: 8px;

	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none !important;
	text-transform: uppercase;
	letter-spacing: 0.02em;

    box-shadow: 0 2px 5px rgb(0 0 0 / 12%);

	transition:
		transform 0.25s ease,
		box-shadow 0.25s ease,
		filter 0.25s ease;
}

/* Hover */
a.header-consult-button:hover {
	color: #FFFFFF !important;
	transform: translateY(-1px);
	box-shadow: 0 3px 7px rgb(0 0 0 / 16%);
}

/* Điều hướng bằng bàn phím */
a.header-consult-button:focus-visible {
	color: #050706 !important;
	outline: 3px solid #d62831 !important;
	outline-offset: 3px;
}

/* footer style custom */
.nihao-footer,
.nihao-footer * {
  box-sizing: border-box;
}

.nihao-footer {
  text-align: left;
}

.nihao-footer {
  --footer-background: #362000;
  --footer-panel: #ffffff08;
  --footer-yellow: #ffd400;
  --footer-text: #f8f3eb;
  --footer-muted: #e0d5c8;

  width: 100%;
  margin: 0;
  padding: 0;
  background: var(--footer-background);
  color: var(--footer-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.nihao-footer__container {
	width: 1120px;
	max-width: 1120px;
	margin: 0 auto;
	padding: 24px 0 40px;
}

/* Logo */

.nihao-footer__brand {
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  margin-bottom: 24px;
  padding: 8px 16px;
  background: var(--footer-panel);
  border-radius: 4px;
}

.nihao-footer__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nihao-footer__logo img {
  display: block;
  width: auto;
  max-width: 88px;
  max-height: 40px;
  object-fit: contain;
}

.nihao-footer__divider {
  flex: 0 0 1px;
  width: 1px;
  height: 27px;
  margin: 0 16px;
  background: rgba(255, 255, 255, 0.35);
}

.nihao-footer__brand p {
	margin: 0;
	color: #fff;
	font-size: 14px;
	line-height: 22px;
    font-weight: 500;
    font-family: 'Inter', 'Times New Roman';
	text-transform: uppercase;
	white-space: nowrap;
}

/* Desktop grid */

.nihao-footer__grid {
  display: grid;
  grid-template-columns: 1.05fr 1.35fr 0.75fr;
  grid-template-areas:
    "contact branches about"
    "social  branches license";
  column-gap: 62px;
  row-gap: 24px;
}

.nihao-footer__contact {
  grid-area: contact;
}

.nihao-footer__branches {
  grid-area: branches;
}

.nihao-footer__about {
  grid-area: about;
}

.nihao-footer__social {
  grid-area: social;
  align-self: end;
}

.nihao-footer__license {
  grid-area: license;
}

.nihao-footer__section {
  min-width: 0;
}

.nihao-footer__section h3 {
  margin: 0 0 4px;
  color: var(--footer-yellow);
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  font-family: 'Inter', 'Times New Roman';
}

.nihao-footer a {
  color: inherit;
  text-decoration: none;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.nihao-footer a:hover {
  color: var(--footer-yellow);
}

.nihao-footer strong {
  display: block;
  color: #fff;
  font-weight: 700;
}

.nihao-footer p {
  margin: 2px 0 0;
  color: var(--footer-muted);
}

/* Liên hệ */

.nihao-footer__info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 4px;
}

.nihao-footer__zalo-icon,
.nihao-footer__line-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #fff;
}

.nihao-footer__info-text {
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  font-family: 'Inter', 'Times New Roman';
  color: #ffffff;
}

.nihao-footer__zalo-icon {
  border: 1.5px solid #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
}

.nihao-footer__line-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.nihao-footer__office {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 20px;
}

.nihao-footer__office-icon {
  flex: 0 0 22px;
  width: 22px;
  padding-top: 1px;
  text-align: center;
}

.nihao-footer__office-title {
  font-size: 16px;
  line-height: 28px;
  font-weight: 600;
  font-family: 'Inter', 'Times New Roman';
  margin-bottom: 4px;
}

.nihao-footer__office p {
  max-width: 245px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  font-family: 'Inter', 'Times New Roman';
}

/* Chi nhánh */

.nihao-footer__branch {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 16px;
  margin: 0px 0 8px;
}

.nihao-footer__branch-item strong {
    font-size: 16px;
    line-height: 28px;
    font-weight: 600;
    font-family: 'Inter', 'Times New Roman';
}

.nihao-footer__pin {
  position: relative;
  padding-top: 4px;
  font-size: 20px;
  text-align: center;
}

.nihao-footer__branch p {
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  font-family: 'Inter', 'Times New Roman';
}

.nihao-footer__branch a {
  color: var(--footer-muted);
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  font-family: 'Inter', 'Times New Roman';
}

/* Menu */

.nihao-footer__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.nihao-footer__menu a {
  color: var(--footer-text);
  font-size: 14px;
  line-height: 24px;
  font-weight: 400;
  font-family: 'Inter', 'Times New Roman';
}

/* Mạng xã hội */

.nihao-footer__social-list {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.nihao-footer__social-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  color: var(--footer-background);
  background: #fff;
  border-radius: 50%;
}

.nihao-footer__social-list a:hover {
  color: var(--footer-background);
  background: var(--footer-yellow);
  transform: translateY(-2px);
}

.nihao-footer__social-list svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Giấy phép */

.nihao-footer__license p {
  max-width: 245px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 500;
  font-family: 'Inter', 'Times New Roman';
}

.nihao-footer__license img {
  display: block;
  width: auto;
  max-width: 165px;
  max-height: 60px;
  margin-top: 18px;
  object-fit: contain;
}

/* Course-list */
.course-list-begin {
  background: #FFF3E6;
  border-radius: 16px;
  margin: 40px !important;
}

/* Tablet */

@media (max-width: 900px) and (min-width: 621px) {
  .nihao-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "contact branches"
      "about   branches"
      "social  license";
    gap: 36px 48px;
  }
}

/* Mobile */
@media (max-width: 620px) {
	.nihao-footer {
		position: relative;
		left: 50%;
	
		width: 100vw;
		max-width: 100vw;
	
		margin-right: -50vw;
		margin-left: -50vw;
	
		overflow-x: hidden;
	}
	
	.nihao-footer__container {
		width: 100%;
		max-width: none;
		margin: 0;
		padding: 40px 24px;
	}

  .nihao-footer__brand {
    display: flex;
    width: 100%;
    min-height: 48px;
    margin-bottom: 20px;
    padding: 8px 12px;
  }

  .nihao-footer__logo img {
    max-width: 82px;
    max-height: 38px;
  }

  .nihao-footer__divider {
    height: 29px;
    margin: 0 12px;
  }

  .nihao-footer__brand p {
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    font-family: 'Inter', 'Times New Roman';
    white-space: normal;
    max-width: 185px;
    color: #ffffff;
    opacity: 92%;
  }

  .nihao-footer__grid {
    display: flex;
    flex-direction: column;
	gap: 0;
  }

  .nihao-footer__contact {
    order: 1;
  }

  .nihao-footer__branches {
    order: 2;
  }

  .nihao-footer__about {
    order: 3;
  }

  .nihao-footer__license {
    order: 5;
  }

  .nihao-footer__social {
    order: 4;
    margin-bottom: 0;
  }

  .nihao-footer__section {
    width: 100%;
    margin: 0 0 24px;
  }

  .nihao-footer__section:last-child {
    margin-bottom: 0;
  }

  .nihao-footer__section h3 {
    margin-bottom: 12px;
    font-size: 16px;
  }

  .nihao-footer__info-row {
    gap: 12px;
    margin: 8px 0;
    white-space: normal;
  }

  .nihao-footer__office {
    gap: 12px;
    margin-top: 20px;
  }

  .nihao-footer__office p {
    max-width: none;
  }

  .nihao-footer__branch {
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    margin: 0 0 15px;
  }

  .nihao-footer__branch:last-child {
    margin-bottom: 0;
  }

  .nihao-footer__branch p {
    margin: 3px 0;
  }

  .nihao-footer__menu {
    gap: 8px;
  }

  .nihao-footer__social-list {
    margin-top: 8px;
  }

  .nihao-footer__social-list a {
    width: 28px;
    height: 28px;
  }

  .nihao-footer__license {
    margin: 24px 0 0 0 !important;
  }

  .nihao-footer__license p {
    max-width: 290px;
  }

  .nihao-footer__license img {
    max-width: 160px;
    margin-top: 24px;
  }

  /* Course-list */
  .course-list-begin {
    padding: 0 24px !important;
  }

}

/* Mobile rất nhỏ */

@media (max-width: 360px) {
  .nihao-footer__container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .nihao-footer__brand {
    padding-right: 9px;
    padding-left: 9px;
  }

  .nihao-footer__logo img {
    max-width: 72px;
  }

  .nihao-footer__divider {
    margin-right: 9px;
    margin-left: 9px;
  }

  .nihao-footer__brand p {
    font-size: 9px;
  }

  .course-list-begin {
    padding: 0 24px !important;
  }
}

@media (max-width: 768px) {
	#header .ct-container {
		width: 100%;
		max-width: 100%;
		padding-right: 16px;
		padding-left: 16px;
		box-sizing: border-box;
	}

	.ct-header-trigger {
		display: flex !important;
		align-items: center;
		justify-content: center;
		visibility: visible !important;
		opacity: 1 !important;
	}
}