/*
Theme Name: Hello Elementor Child
Author: Vannang
Description: Just a Child Theme
Version: 1.1.5
Template: hello-elementor

This is the child theme for Hello Elementor theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/


/* #region [Color variables from theme.json] */

    /*
    Color variables from theme.json

    --wp--preset--color--black
    --wp--preset--color--dark-grey
    --wp--preset--color--blue-grey
    --wp--preset--color--white-grey
    --wp--preset--color--red
    --wp--preset--color--white

    */

    /*
    Font variables from theme.json

    --wp--preset--font-family--playfair-display
    --wp--preset--font-family--plus-jakarta
    --wp--preset--font-family--lora

    */

/* #endregion */

/* #region [Font sizes] */

.text-xs {
  font-size: 0.75rem; /* 12px */
}

.text-sm {
  font-size: 0.875rem; /* 14px */
}

.text-base {
  font-size: 1rem; /* 16px */
}

.text-lg {
  font-size: 1.125rem; /* 18px */
}

.text-xl {
  font-size: 1.25rem; /* 20px */
}

.text-3xl {
    font-size: 1.875rem; /* 30px */
}

.text-4xl {
    font-size: 2.25rem; /* 36px */ 
}

.text-5xl {
    font-size: 3rem; /* 48px */ 
}

.text-6xl {
    font-size: 3.75rem; /* 60px */ 
}

/* #endregion */

/* #region [Font weights] */

.font-300 {
    font-weight: 300; /* light */
}

.font-700 {
    font-weight: 700; /* bold */
}

/* #endregion */

/* #region [Other Font Properties] */

.font-sans-serif {
    font-family: "Plus Jakarta Sans", sans-serif;
}

.font-body {
    font-family: "Lora", serif;
}

.uppercase {
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

/* #endregion */

/* #region [line-clamp] */

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-clamp: 3;
}

/* #endregion */

/* #region [text align] */

.text-justify {
    text-align: justify;
}

/* #endregion */

/* #region [text-wrap] */

.text-pretty {
    text-wrap: pretty
}

/* #endregion */

/* #region [object-fit] */

.object-cover {
    object-fit: cover;
}

/* #endregion */

/* #region [background colors] */

.bg-white-grey {
    background-color: var(--wp--preset--color--white-grey);
}

/* #endregion */

/* #region [icons] */


/* === [Icons][gg-chevron-right] === */

.gg-chevron-right {
  box-sizing: border-box;
  position: relative;
  display: block;
  transform: scale(var(--ggs, 1));
  width: 22px;
  height: 22px;
  border: 2px solid transparent;
  border-radius: 100px;
}

.gg-chevron-right::after {
  content: "";
  display: block;
  box-sizing: border-box;
  position: absolute;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid;
  border-right: 2px solid;
  transform: rotate(-45deg);
  right: 6px;
  top: 4px;
}

/* === [Icons][gg-chevron-left] === */

.gg-chevron-left {
  box-sizing: border-box;
  position: relative;
  display: block;
  transform: scale(var(--ggs, 1));
  width: 22px;
  height: 22px;
  border: 2px solid transparent;
  border-radius: 100px;
}

.gg-chevron-left::after {
  content: "";
  display: block;
  box-sizing: border-box;
  position: absolute;
  width: 10px;
  height: 10px;
  border-bottom: 2px solid;
  border-left: 2px solid;
  transform: rotate(45deg);
  left: 6px;
  top: 4px;
}   

/* #endregion */

/* #region [scrollbars] */

.hide-scrollbar {
    /* Hide scrollbar but keep functionality */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
    
    /* Ensure content is still scrollable */
    overflow: auto;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;             /* Chrome, Safari, Opera */
}


/* #endregion */

/* #region [layout][width and heights */

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

/* #endregion */

/* #region [layout][image width and heights */

img.image.w-full {
    width: 100%!important;
}

img.image.h-full {
    height: 100%!important;
}

/* #endregion */

/* #region [image][scale on hover] */

.image-zoom {
    transition: 0.3s;
}

.image-zoom:hover {
    transform: scale(1.02);
}

/* #endregion */

/* #region [lists] */

.list-none {
    margin: 0;
    padding: 0;
    padding-inline-start: 0;
    list-style-type: none;
}

/* #endregion */

/* #region layout][aspect ratio containers] */

.aspect-4-by-5 {
    width: 100%;
    padding-bottom: 125%;
    position: relative;
}

.aspect-5-by-4 {
    width: 100%;
    padding-bottom: 75%;
    position: relative;
}

.absolute-centered-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    line-height: 0;
}

/* #endregion */

/* #region [Global][Main Menu] */

/* Menu link */
#menu-main-menu a {
    font-family: var(--wp--preset--font-family--plus-jakarta);
    font-size: 1rem;
    color: var(--wp--preset--color--black);
    transition-duration: 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    width: 100%;
    width: fit-content;
    font-weight: 700;
    transition-duration: 0.3s;
}

#menu-main-menu a:hover {
    color: var(--wp--preset--color--red)
}

#menu-main-menu .sub-menu {
    /* margin-left: 0.5rem; */
}

#menu-main-menu .sub-menu a {
    font-weight: 400;
}

#menu-main-menu .menu-item-has-children {
    position: relative;
}

.menu-item-has-children > .main-menu__item-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-item-has-children.--open > .main-menu__item-wrapper {
    background-color: white;
}

/* Chevron toggle button */
.main-menu__toggle {
    background: none!important;
    border-style: unset!important;
    color: inherit!important; 
    padding: 0;
    font: inherit!important; 
    cursor: pointer; 
    display: flex;
    align-items: center;    
}

.main-menu__toggle:hover i {
    color: var(--wp--preset--color--red);
}

/* Rotate chevron on open */
.menu-item-has-children.--open .main-menu__toggle img {
    transform: rotate(90deg);
    transition: transform 0.2s ease;
}

/* #endregion */

/* #region [post template] */

.author-link {
    color: inherit;
    font-weight: 700;
    text-decoration: underline!important;
    transition: color 0.3s ease;
}

.author-link:hover {
    text-decoration-color: var(--wp--preset--color--red)!important;
}

/* #endregion */

/* #region [Front page][Trending section] */

#section-trending__loop-grid {
    counter-reset: section;
}

#section-trending__loop-grid .ue-grid .ue-grid-item:last-child div > div {
    border-bottom-width: 0
}

#section-trending__loop-grid .e-loop-item {
    background-color: var(--wp--preset--color--white-grey);
}

#section-trending__loop-grid .section-trending__counter::before {
    counter-increment: section;
    content: counter(section);
    font-family: Playfair Display;
    font-variant-numeric: lining-nums;
    font-size: 5rem;
    line-height: 1;
    text-align: center;
    display: block;
}

@media(max-width: 767px){

    #section-trending__loop-grid .section-trending__counter::before {
        font-size: 4rem;
        position: static;
        text-align: left;
        line-height: 1em;
        padding-top: 1rem;
    }   

}

/* #endregion */

/* #region [Front page][Latest section] */

#section-latest__loop-grid .e-loop-item:last-child .elementor-element{
    border-bottom-width: 0;
}

@media(min-width: 1025px){

    #section-latest__loop-grid .e-loop-item:nth-child(even) .section-latest__loop-grid-item{
        padding-right: 1.875rem;
    }

    #section-latest__loop-grid .e-loop-item:nth-child(odd) .section-latest__loop-grid-item {
        padding-left: 1.875rem;
    }

    #section-latest__loop-grid .e-loop-item:nth-last-child(2) .elementor-element{
        border-bottom-width: 0;
    }

}

/* #endregion */

/* #region [Front page][Entertainment section] */

#section-entertainment__loop-grid .ue-grid-item:last-child .e-loop-item > div{
    border-bottom-width: 0;
}

/* #endregion */

/* #region [Category Archive] */

.cat-archive__sub-cat-scroll-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    margin-bottom: 2rem;
}

.cat-archive__sub-cat-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
    padding: 0 30px;
}

.cat-archive__sub-cat-list-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cat-archive__sub-cat-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--wp--preset--color--red);
    border-radius: 60px;
    padding: 8px 20px;
    color: var(--wp--preset--color--black);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1em;
    white-space: nowrap;
    transition-duration: 0.3s;
}

.cat-archive__sub-cat-link:hover {
    background-color: var(--wp--preset--color--white-grey)
}

.cat-breadcrumb__list-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: .25rem;
}

.cat-breadcrumb__list {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.cat-breadcrumb__list-item-link {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    line-height: 1em;
    white-space: nowrap;
    color: var(--wp--preset--color--red);
    transition-duration: 0.3s;
}

a.cat-breadcrumb__list-item-link:hover {
    text-decoration: underline;
    color: var(--wp--preset--color--red);
}

.cat-breadcrumb__divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--wp--preset--color--red);
    transform: scale(.5);
}

@media(max-width: 767px){

    .cat-archive__sub-cat-scroll-container {
        justify-content: flex-start;
    }

}

/* #endregion */

/* #region [category archive] */

#category-archive__loop-grid .ue-grid-item:last-child .e-loop-item > div{
    border-bottom-width: 0;
}

/* #endregion */