/*!
Theme Name: Vikcut
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: vikvut
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Vikvut is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

@import url("./assets/style/single.css");
@import url("./assets/style/fontawesome.css");
@import url("./assets/style/tailwind.css");

.shadow-blur{
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.05);
}
#mobile-menu {
  transition: 0.5s;
  height: 0;
}
#mobile-menu.header-active {
  transition: 0.5s;
  height: 100vh;
}
#home-page.loading {
  opacity: 0;
}
#breadcrumbs {
  color: #757575;
  font-size: 14px;
  line-height: 19.6px;
}
#breadcrumbs > span{
  display: flex;
  gap: 8px;
  align-items: center;
}
#breadcrumbs a {
  color: #141414;
  font-weight: 400;
  transition: 0.5s;
}
#breadcrumbs a:hover {
  color: #4169e1;
  transition: 0.5s;
}
#breadcrumbs span{
  color: #757575;
}

.blog-menu ul {
  min-height: 186px;
  opacity:0;
  min-height: 0px;
  transition: 0.5s;
  overflow: hidden;
  z-index: 70;
  
}
.blog-menu .menu-item a, #blog-submenu .menu-item a{
  padding: 16px;
  border-radius: 8px;
  font-size: 16px;
  line-height: 22.4px;
  white-space: nowrap;
  display: block;
}
.blog-menu .menu-item a.active{
  background-color: #F1F4FD;
  color: #4169E1;
}
.blog-menu:hover ul, .blog-item ul:hover{
  opacity: 1;
  visibility: visible;
  pointer-events: auto; 
  height: auto;
  min-height: 186px;
  max-height: 500px;
  transition: 0.5s;
  padding-top: 12px;
  padding-bottom: 12px;
  max-height: max-content;
}
.bg-white{
  background: #fff;
}
.blog-menu:hover svg path{
  transition: fill 0.3s ease;
  fill: #4169E1; /* Default color */
}
.blog-menu ul a {
  display: block;
  padding: 16px;
  background-color: #fff;
  color: #141414;
  transition: background-color 0.3s ease;
}

.blog-menu ul a:hover {
  background-color: #F1F4FD;
}

body {
  line-height: 1;
  font-weight: 400;
  color: #757575;
  font-family: system-ui;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: "";
  content: none;
}
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: white;
}

::-webkit-scrollbar-thumb {
  background: lightgray;
  border-radius: 10px;
}

.custom-logo-link img{
  max-height: 60px;
  min-height: 60px;
  width: 60px;
  object-fit: contain;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}
.translate-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.translateY-center {
  position: absolute;
  transform: translateY(-50%);
  top: 50%;
}
.translateX-center {
  position: absolute;
  transform: translateX(-50%);
  left: 50%;
}
.two-dots {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 3.2rem;
}
.two-dots-title {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 4.2rem;
}
.blog-item img {
  width: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: 0.5s;
}
.blog-item:hover img {
  transform: scale(1.3);
  transition: 0.5s;
}
.pagination {
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-numbers {
  border: 1px solid #e2e2e2;
  display: block;
  font-size: 14px;
  border-radius: 6px;
  color: #757575;
  font-weight: 400;
  width: 40px;
  height: 40px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-numbers.current {
  background: #4169e1;
  color: #fff;
}

.container {
  padding-left: 1rem; /* px-4 */
  padding-right: 1rem; /* px-4 */
}
.sub-menu{
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-left: 16px;
  margin-top: 16px;
  
}
/* Đối với kích thước màn hình từ 768px trở lên (md) */
@media (min-width: 768px) {
  .container {
    padding-left: 2rem; /* md:px-8 */
    padding-right: 2rem; /* md:px-8 */
  }
}

/* Đối với kích thước màn hình từ 1280px trở lên (xl) */
@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding-left: 20px; /* xl:px-0 */
    padding-right: 20px; /* xl:px-0 */
    margin: auto;
  }
}
@media (min-width: 1024px){
  .nav-menu {
    gap: 32px;
  }
  .nav-menu .sub-menu{
    display: none;
  }
  .nav-menu .menu-item{
    height: 100%;
    display: flex;
    align-items: center;
  }
  .menu-item-has-children{
    position: relative;
    padding-right: 20px;
    cursor: pointer;
  }
  .menu-item-has-children::before {
    content: "";
    position: absolute;
    right: 0px; /* Điều chỉnh khoảng cách so với cạnh phải */
    top: 50%;
    transform: translateY(-50%);
    width: 20px;  /* Kích thước của biểu tượng */
    height: 20px;
    background-image: url('./assets/images/arrow_drop_down.svg');
    background-size: contain; /* Đảm bảo ảnh vừa khít */
    background-repeat: no-repeat;
    background-position: center;
  }
  .menu-item-has-children:hover::before {
    filter: invert(35%) sepia(83%) saturate(747%) hue-rotate(187deg) brightness(95%) contrast(85%);
  }
  .menu-item-has-children .sub-menu{
    position: absolute;
    flex-direction: column;
    left: 0;
    top: 80px;
    width: auto;
    border-radius: 12px;
    background-color: white;
    border: 1px solid #141414;
    overflow: hidden;
    margin: 0;
    gap: 0;
  }
  .menu-item a{
    white-space: nowrap;
    height: 100%;
    display: flex;
    align-items: center;
  }
  .menu-item:hover > a{
    color: #4169e1;
  
  }
  .menu-item-has-children .sub-menu a{
    padding: 10px 16px;
  
  }
  .menu-item-has-children .sub-menu a:hover{
    color: white;
    width: 100%;
    background: #4169E1;
  
  }
  .menu-item-has-children:hover .sub-menu{
    display: flex;
  
  }
}
