/* ===================================================================================

* Theme Name: Eduman Child
* Theme URI: https://bdevs.net/wp/eduman/
* Author: bdevs
* Author URI: https://themeforest.net/user/bdevs/portfolio
* Description: Eduman – Education & Online Courses WordPress Theme 
* Version: 1.0.0
* Template: eduman
* License: GNU General Public License version 3.0
* License URI: http://www.gnu.org/licenses/gpl-3.0.html
* Tags: one-column, right-sidebar, left-sidebar, custom-menu, featured-images, post-formats, sticky-post, translation-ready

* We encourage you to create Child theme for any modifications you will want to do.

* Why use Child theme?

* Because of future updates we may provide for this theme that will overwrite your
* modifications and all your custom work.

* If you are not familiar with Child Themes, you can read about it here:
* http://codex.wordpress.org/Child_Themes
* http://wp.tutsplus.com/tutorials/theme-development/child-themes-basics-and-creating-child-themes-in-wordpress/

====================================================================================== */

/* Đồng bộ giao diện widget Generic WooProduct với trang Shop (thẻ .product-items gốc của theme).
   Nút "Add to cart" được đưa đè lên ảnh bằng JS (xem eduman-child-product-card.js), ẩn sẵn,
   chỉ hiện khi hover, bấm dạng icon tròn giống hệt .shop-quick-view của theme. */
.bdevs-generic-el .generic-el-product-item {
  overflow: hidden;
}

.bdevs-generic-el .generic-el-product-img {
  margin-bottom: 25px;
  overflow: hidden;
  position: relative;
  border-radius: 6px;
}

.bdevs-generic-el .generic-el-product-img img {
  width: 100%;
  transition: all 1.5s cubic-bezier(0, 0, 0.2, 1);
}

.bdevs-generic-el .generic-el-product-item:hover .generic-el-product-img img {
  transform: scale3d(1.1, 1.1, 1.1);
}

.bdevs-generic-el .generic-el-product-content h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.bdevs-generic-el .generic-el-product-content h4 a {
  color: #141517;
}

.bdevs-generic-el .generic-el-product-new-price {
  color: #141517;
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 5px;
}

/* Notices.php của plugin generic-elements-for-elementor đã được sửa để gọi thẳng hàm gốc
   eduman_product_cart_button() của theme -> tự in ra 3 nút (cart + quick view + wishlist)
   trong 1 div .shop-quick-view, y hệt trang Shop. .shop-quick-view đã có sẵn CSS ẩn/hiện
   + vị trí từ theme (không scope theo class cha nên tự áp dụng), chỉ thiếu 2 phần:
   1) trigger hover theo đúng class .generic-el-product-item thay vì .product-items
   2) style vòng tròn .act + .yith-wcwl-add-to-wishlist vì phần đó theme scope riêng
      cho .products-wrapper .product-items nên không tự áp dụng ở đây. */
.bdevs-generic-el .generic-el-product-item:hover .shop-quick-view {
  opacity: 1;
  visibility: visible;
}

.bdevs-generic-el .shop-quick-view .act {
  display: inline-block;
  height: 43px;
  width: 42px;
  background: #ffffff;
  border-radius: 50%;
  color: #6a6b71;
  font-size: 20px;
  line-height: 42px;
  margin-right: 10px;
  transition: 0.3s;
  text-align: center;
  padding: 0px;
}
.bdevs-generic-el .shop-quick-view .act i {
  font-size: 16px;
  transition: 0.3s;
}
.bdevs-generic-el .shop-quick-view .act:hover {
  background: #e44123;
  color: #fff;
}
.bdevs-generic-el .shop-quick-view .yith-wcwl-add-to-wishlist {
  display: inline-block;
}
.bdevs-generic-el .shop-quick-view .yith-wcwl-add-to-wishlist img {
  position: absolute;
}
.bdevs-generic-el .shop-quick-view .yith-wcwl-add-to-wishlist i {
  margin-right: 0px;
}

/* Nút "Xem giỏ hàng" (View cart) hiện ra sau khi AJAX thêm vào giỏ thành công,
   style y hệt .product-wrapper .added_to_cart.wc-forward của trang Shop thật. */
.bdevs-generic-el .generic-el-product-img .added_to_cart.wc-forward {
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  margin: auto;
  width: 105px;
  height: 40px;
  line-height: 40px;
  background-color: #e44123;
  padding: 0 !important;
  display: block;
  border-radius: 50px;
  color: #fff;
  text-align: center;
  font-size: 15px;
}
/* Logo thật (custom_logo) không có rule nào từ theme cha ràng kích thước —
   ảnh gốc 1150x399px nên hiển thị quá to trong header nếu để mặc định. */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}
.custom-logo-link .custom-logo {
  max-width: 180px;
  width: auto;
  height: auto;
  max-height: 56px;
}

/* Header Style 4: hide category dropdown and search */
.category-menu {
  display: none !important;
}
.header-search {
  display: none !important;
}

/* Header Style 4: menu căn giữa toàn header (flex, không dùng absolute để không phá vị trí submenu) */
.header-area .header-main-wrapper .row {
  flex-wrap: nowrap;
}
.header-area .header-main-wrapper .row > div:first-child {
  flex: 1 1 auto;
  max-width: none;
  width: auto;
}
.header-area .header-main-wrapper .row > div:last-child {
  flex: 0 0 auto;
  max-width: none;
  width: auto;
}
.header-area .header-left {
  display: flex;
  align-items: center;
  width: 100%;
}
.header-area .main-menu {
  flex: 1 1 auto;
}
.header-area .main-menu nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex-wrap: nowrap;
}
.header-area .main-menu ul li,
.header-area .main-menu ul li a {
  white-space: nowrap;
}

/* Header Style 4: menu thấp lại còn khoảng 80px */
.header-area .main-menu nav > ul > li > a {
  padding: 30px 0px;
}

/* Header Style 4: hiệu ứng active/hover cho menu chính, sinh động hơn thay vì chỉ đổi màu */
.header-area .main-menu nav > ul > li > a {
  position: relative;
  transition: color 0.3s ease;
}
.header-area .main-menu nav > ul > li > a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 54px;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background-color: #e44123;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}
.header-area .main-menu nav > ul > li:hover:not(.menu-item-has-children) > a,
.header-area .main-menu nav > ul > li.current-menu-item > a,
.header-area .main-menu nav > ul > li.current_page_item > a,
.header-area .main-menu nav > ul > li.current-menu-ancestor > a,
.header-area .main-menu nav > ul > li.current_page_ancestor > a {
  color: #e44123;
}
.header-area .main-menu nav > ul > li:hover:not(.menu-item-has-children) > a::after {
  width: 36px;
}

/* Header Style 4: fix giật khi hover ra ngoài icon giỏ hàng để tới bảng chi tiết.
   Nguyên nhân: .header-mini-cart nằm cách icon 1 khoảng trống (top: 55-80px) do
   position:absolute, khoảng trống đó không nằm trong vùng hover của .cart-toggle-btn,
   nên khi rê chuột qua đó chuột bị "thoát" hover, ẩn/hiện lặp lại liên tục.
   Dùng padding-bottom + margin-bottom âm để nối liền vùng hover, không có khoảng hở. */
.header-area .cart-toggle-btn {
  padding-bottom: 55px;
  margin-bottom: -55px;
}

/* Breadcrumb: theme dùng plugin Breadcrumb NavXT (bcn_display()) render dấu ">" bằng
   text thuần chứ không phải thẻ <i> icon. Ẩn ký tự ">" đó đi (color/font-size: 0) và
   chèn icon Font Awesome mũi tên thật vào giữa các mục bằng ::after. */
.hero-arera .course-title-breadcrumb nav {
  color: transparent;
  font-size: 0;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
}
.hero-arera .course-title-breadcrumb nav > span {
  display: inline-flex;
  align-items: center;
}
.hero-arera .course-title-breadcrumb nav span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  transition: color 0.25s ease;
}
.hero-arera .course-title-breadcrumb nav a:hover span {
  color: #ffffff;
}
.hero-arera .course-title-breadcrumb nav > span:last-child {
  color: #ffffff;
  font-weight: 600;
}
.hero-arera .course-title-breadcrumb nav > span:not(:last-child)::after {
  content: "\f105";
  font-family: "Font Awesome 5 Pro";
  font-weight: 400;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 10px;
  display: inline-block;
  vertical-align: middle;
}

/* Header Style 4: border to separate header from page */
.header-area {
  border-bottom: 1px solid #edeef2;
}

/* Header Style 4: hide sign in / sign up */
.user-btn-inner {
  display: none !important;
}
a.user-btn-sign-up.edu-btn {
  display: none !important;
}
.course-icon{
  display: none;
}

/* Dropdown "Sắp xếp" ở trang Shop bị cắt chữ vì theme cố định width: 215px, chữ tiếng Việt
   dài hơn tiếng Anh nên tràn/khuất. Nới rộng ô đóng và cho danh sách khi mở tự co giãn theo
   chữ dài nhất thay vì bị cắt bởi overflow:hidden của .list. */
.shop-count-ordering-wrap .nice-select {
  width: 275px;
  white-space: normal;
}
.shop-count-ordering-wrap .nice-select .list {
  width: auto;
  min-width: 100%;
  overflow: visible;
  white-space: nowrap;
}
.shop-count-ordering-wrap .nice-select .option {
  white-space: nowrap;
}

/* Trang chi tiết sản phẩm: khoảng trống dưới phần Sản phẩm liên quan (thực chất là
   padding-bottom: 95px của .product_info-faq-area, div bọc ngoài tabs + related products)
   đang hơi cao, rút ngắn còn khoảng một nửa. */
.product_info-faq-area {
  padding-bottom: 47px;
}

/* Nút next/prev của slider "Sản phẩm liên quan": mặc định Swiper không có style
   (chỉ là glyph nhỏ trong suốt, không nền, không icon rõ ràng) -> làm lại dạng
   nút tròn trắng, icon riêng, giống phong cách .act icon-circle dùng ở chỗ khác. */
.related_product {
  position: relative;
}
.related_product .swiper-button-next,
.related_product .swiper-button-prev {
  width: 44px;
  height: 44px;
  /* top/margin-top canh giữa theo chiều cao ảnh thật, set bằng JS
     (xem eduman-child/js/related-products-nav.js) */
  background-color: #ffffff;
  border: 1px solid #edeef2;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(20, 21, 23, 0.08);
  color: #141517;
  transition: 0.3s;
}
.related_product .swiper-button-next:after,
.related_product .swiper-button-prev:after {
  content: none;
}
.related_product .swiper-button-next::before,
.related_product .swiper-button-prev::before {
  font-family: "Font Awesome 5 Pro";
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
}
.related_product .swiper-button-prev::before {
  content: "\f104";
}
.related_product .swiper-button-next::before {
  content: "\f105";
}
.related_product .swiper-button-next:hover,
.related_product .swiper-button-prev:hover {
  background-color: #e44123;
  color: #ffffff;
}
.related_product .swiper-button-prev {
  left: -22px;
}
.related_product .swiper-button-next {
  right: -22px;
}

/* Trang Về Mia Branding: đã bỏ chữ nút "More about us" (khối about, thiết kế design_2),
   nhưng .edu-sec-btn có padding/border/height cố định nên nút rỗng vẫn hiện thành 1 khung
   trống -> ẩn hẳn khung .student-btn luôn. Chỉ scope riêng trang này (page-id-759) vì
   widget "about" này còn dùng ở trang khác (trang chủ) và ở đó vẫn cần hiện nút. */
.page-id-759 .student-btn {
  display: none;
}

/* Trang Về Mia Branding: section chứa 3 thẻ card "Thư Viện Kiến Thức" đang có sẵn
   padding-bottom: 300px trong dữ liệu gốc (rất lớn, chắc để chừa chỗ cho khối video
   nằm đè lên ở thiết kế demo cũ — giờ khối đó đã xoá nên dư khoảng trắng). */
.page-id-759 .elementor-element-22e8770 {
  padding-bottom: 40px !important;
}

/* Trang chủ: khối cuối trang trước footer (widget "about" b83a20f) — đã bỏ nội dung
   video/nút theo yêu cầu (chỉ giữ chữ + ảnh), nhưng template của widget này in ra thẻ
   <a class="about-video-popup"> KHÔNG điều kiện (không check rỗng) nên vẫn hiện 1 nút
   trống nếu không ẩn bằng CSS. */
.page-id-337 .elementor-element-b83a20f .about-video-popup {
  display: none;
}

/* Hero trang chủ: 2 dòng chữ nhỏ ("Được cộng đồng yêu mến" / "Hơn 1000+ học viên tin
   tưởng") đang thừa hưởng font mặc định "Raleway" của theme — font này thiếu dấu tiếng
   Việt đầy đủ nên hiện sai. Đổi sang "Hind" (đã được theme tải kèm subset=vietnamese,
   đang dùng đúng cho tiêu đề hero ngay bên cạnh) để đồng bộ và hiển thị đúng dấu. */
.hero-shape-text,
.bdevs-el-imgtext {
  font-family: "Nunito Sans", sans-serif !important;
}

/* Trang chủ: 9 thẻ danh mục (design_1) đã xoá icon_box_link trong dữ liệu, nhưng
   template luôn bọc cả thẻ trong <a href=""> không điều kiện (href rỗng vẫn bấm được,
   tự trỏ về chính trang) -> vô hiệu hoá click bằng CSS, chỉ giữ text + icon. */
.elementor-element-a4d63d5 > .elementor-widget-container > a,
.elementor-element-9c22dfb > .elementor-widget-container > a,
.elementor-element-1fa6d85 > .elementor-widget-container > a,
.elementor-element-6c6226e > .elementor-widget-container > a,
.elementor-element-e4cbcb9 > .elementor-widget-container > a,
.elementor-element-695f089 > .elementor-widget-container > a,
.elementor-element-a2af02a > .elementor-widget-container > a,
.elementor-element-951daee > .elementor-widget-container > a,
.elementor-element-19cfc21 > .elementor-widget-container > a {
  pointer-events: none;
  cursor: default;
}

/* Badge "Bán chạy" cho widget generic-wooproduct ở trang chủ (Ebook & Bộ tài liệu),
   dùng chung màu/kiểu với badge onsale đã có sẵn ở trang shop/category. */
.generic-el-product-img {
  position: relative;
}
.generic-el-product-img span.onsale {
  position: absolute !important;
  left: 12px;
  top: 12px;
  right: auto;
  border-radius: 6px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.4 !important;
  padding: 6px 14px !important;
  margin: 0 !important;
  background: #16233D !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: none;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}


/* An hoan toan thanh tieu de/breadcrumb tren cac trang phu (san pham, danh muc, blog...) */
.hero-arera.course-item-height {
  display: none !important;
}

/* Giam padding-top cua noi dung o cac trang phu (khong phai trang chu) - truoc do */
/* padding nay duoc thiet ke de chua cho banner/breadcrumb cao ~240px da bi an, */
/* gio banner khong con nen padding cu tao khoang trong qua lon phia tren. */
body:not(.home) > [class*="pt-1"] {
	padding-top: 40px !important;
}
