/*!
Theme Name: Kava Child
Theme URI:
Author: Zemez
Author URI:
Description: Kava child theme.
Template: kava
Version: 1.0.1
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: kava-child
*/
/* Target khusus listing grid ini saja */
._sub_list_headlines .jet-listing-grid__item {
    position: relative;
    padding-right: 20px;
}

/* Border vertikal di antara item, kecuali item ke-3 */
._sub_list_headlines .jet-listing-grid__item:not(:nth-child(3n))::after {
    content: "";
    position: absolute;
    top: 15%;
    right: 0;
    width: 1px;
    height: 70%;
    background: #e2e2e2; /* warna garis */
}

.post-content {
	flex-grow: 1; /* Izinkan konten mengambil ruang yang tersedia */
}

.elementor .elementor-element.elementor-widget-n-tabs:not(:has(>.elementor-widget-container))>.e-n-tabs:not(:has(>.elementor-widget-container))>.e-n-tabs-heading .e-n-tab-title[aria-selected=true],.elementor .elementor-element.elementor-widget-n-tabs:not(:has(>.elementor-widget-container))>.e-n-tabs[data-touch-mode=true]>.e-n-tabs-heading .e-n-tab-title[aria-selected=false]:hover,.elementor .elementor-element.elementor-widget-n-tabs>.elementor-widget-container>.e-n-tabs>.e-n-tabs-heading .e-n-tab-title[aria-selected=true],.elementor .elementor-element.elementor-widget-n-tabs>.elementor-widget-container>.e-n-tabs[data-touch-mode=true]>.e-n-tabs-heading .e-n-tab-title[aria-selected=false]:hover {
    background: #F2F4F7 !important;
}

.elementor .elementor-element.elementor-widget-n-tabs:not(:has(>.elementor-widget-container))>.e-n-tabs[data-touch-mode=false]>.e-n-tabs-heading .e-n-tab-title[aria-selected=false]:hover,.elementor .elementor-element.elementor-widget-n-tabs>.elementor-widget-container>.e-n-tabs[data-touch-mode=false]>.e-n-tabs-heading .e-n-tab-title[aria-selected=false]:hover {
    background: #F2F4F7 !important;
    border-top: 1px solid #E0E0E0 !important;
    border-left: 1px solid #E0E0E0 !important;
    border-right: 1px solid #E0E0E0 !important;
}

.e-n-tab-title {
    padding-top: 10px !important;
    padding-bottom: 5px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Sidebar Navigation Styles (migrated from Docs, without collapsed/toggle) */
.container-navbar span,
.container-navbar a {
    font-family: "Poppins", "Open Sans", sans-serif;
    font-size: 13px;
}

.container-navbar {
    position: relative; 
    background-color: white;
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-menu {
    padding: 10px 0;
}

.menu-items {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    position: relative;
    border-bottom: 1px solid #eee;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background-color: #f5f5f5;
}

.nav-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-icon {
    transform: scale(1.1);
}

.link-text {
    margin-left: 5px;
}

.dropdown-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
    width: 12px;
    height: 12px;
}

/* Dropdown menu visible by default */
.dropdown-menu {
    display: block;
    list-style-type: none;
    padding: 0;
    margin: 0;
    background-color: #f9f9f9;
}

/* Optional: keep ability to collapse via utility class */
.nav-item.dropdown .dropdown-menu.is-hidden {
    display: none;
}

/* Remove hover dependency */
.nav-item.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    padding: 0;
    border-bottom: 1px solid #eee;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu a {
    padding: 12px 15px 12px 45px;
    display: block;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Icon size for submenu */
.dropdown-menu a .nav-icon {
    margin-right: 18px;
    width: 16px;
    height: 16px;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0;
}

/* Rotate dropdown icon when dropdown is active */
.dropdown .dropdown-icon {
    transform: rotate(180deg);
}

/* Basic responsive tweaks */
.single-post blockquote:not(.post-format-quote) {
    text-align: left !important;
    padding: 15px 2% !important;
}

._mode_active {
    background: #AA2820;
}

/* flags multilingual */
.cpel-switcher__lang,
.cpel-switcher__lang--active {
    padding-top: 3px;
    padding-bottom: 3px;
    border-radius: 4px;
}

.cpel-switcher__lang--active {
    padding-right: 7px;
    padding-left: 7px;
    background: #AA2820;
}

.cpel-switcher__lang--active span.cpel-switcher__code {
    color: #fff;
}

/* Headline AA */
#_box_hallo_olahraga h2.jet-headline.jet-headline--direction-horizontal,
#_box_hallo_tekdigi h2.jet-headline.jet-headline--direction-horizontal,
#_box_hallo_internasional h2.jet-headline.jet-headline--direction-horizontal,
#_box_hallo_ekbis h2.jet-headline.jet-headline--direction-horizontal,
#_box_hallo_nusantara h2.jet-headline.jet-headline--direction-horizontal,
#_box_hallo_megapolitan h2.jet-headline.jet-headline--direction-horizontal,
#_box_hallo_gaya h2.jet-headline.jet-headline--direction-horizontal,
#_box_hallo_nasional h2.jet-headline.jet-headline--direction-horizontal,
#_box_hallo_news h2.jet-headline.jet-headline--direction-horizontal {
    margin: 0px;
    padding: 0px;
}
#_box_hallo_olahraga span.jet-headline__label,
#_box_hallo_tekdigi span.jet-headline__label,
#_box_hallo_internasional span.jet-headline__label,
#_box_hallo_ekbis span.jet-headline__label,
#_box_hallo_nusantara span.jet-headline__label,
#_box_hallo_megapolitan span.jet-headline__label,
#_box_hallo_gaya span.jet-headline__label,
#_box_hallo_nasional span.jet-headline__label,
#_box_hallo_news span.jet-headline__label {
    font-size: 20px;
    font-weight: 700;
    line-height: 34px;
}
/* Semua item dapat border */
.jet-listing-grid__items .jet-listing-grid__item ._grid_box_13 {
    border-bottom: 1px solid #E0E0E0 !important;
}

/* Item terakhir border dihilangkan */
.jet-listing-grid__items .jet-listing-grid__item:last-child ._grid_box_13 {
    border-bottom: none !important;
}
._shine {
    position: relative;
    overflow: hidden;
    display: inline-block; /* tambahkan ini */
}

._shine .elementor-heading-title {
    position: relative;
    z-index: 5; /* supaya text tetap di atas */
}

._shine::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 80%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shineSoft 1.6s ease-in-out infinite;
}

@keyframes shineSoft {
    0% { left: -120%; }
    100% { left: 150%; }
}

._author {
  display:flex;
  align-items:center;
  gap:10px;
}
._author-img { border-radius:50%; object-fit:cover; }
._author-meta { display:flex; gap:4px; align-items:center; }
._author-name:hover { text-decoration: underline; }

.jet-listing-not-found.jet-listing-grid__items {
  display: none;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#_menu_mobile {
    overflow-x: auto!important;
    overflow-y: hidden!important;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap!important
}

#_menu_mobile .jet-mega-menu-list {
    display: flex!important;
    flex-direction: row!important;
    flex-wrap: nowrap!important;
    width: max-content!important;
    white-space: nowrap!important;
    margin: 0!important
}

#_menu_mobile .jet-mega-menu-item {
    flex: 0 0 auto!important;
    display: inline-flex!important
}

#_menu_mobile .jet-mega-menu-item__link {
    display: inline-block!important
}

#_menu_mobile::-webkit-scrollbar {
    height: 0!important
}
