/*
Theme Name: Warta News Theme
Theme URI: https://oketheme.com/themes/warta-theme
Author: Builder
Author URI: https://oketheme.com
Description: Tema WordPress Berita Profesional, Modern, dan Cepat dengan kustomisasi penuh melalui WordPress Theme Customizer (Warna, Kategori Setiap Section, Banner Iklan, dan Media Sosial).
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: warta
Tags: blog, news, two-columns, custom-background, custom-colors, custom-header, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

:root {
  --color1: #1b5ce2;
  --color2: #FF2626;
  --color-ticker-bg: #1042a9;
  --radius: 0.5rem;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #f4f6f9;
  color: #1e293b;
  overflow-x: hidden;
}

.dark body {
  background-color: #0f172a;
  color: #cbd5e1;
}

/* Clamping helpers */
.clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Swiper styling */
.hero-swiper .swiper-slide {
  transition: transform 0.4s ease, opacity 0.4s ease;
  opacity: 0.45;
  transform: scale(0.92);
}
.hero-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
  z-index: 10;
}

.swiper-button-prev-custom, .swiper-button-next-custom {
  width: 38px;
  height: 38px;
  background: rgba(27, 92, 226, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  z-index: 20;
}
.swiper-button-prev-custom:hover, .swiper-button-next-custom:hover {
  background: var(--color1);
  transform: scale(1.1);
}

.nav-arrow-btn {
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.nav-arrow-btn:hover {
  background: var(--color1);
  color: #ffffff;
}
.dark .nav-arrow-btn {
  background: #334155;
  color: #94a3b8;
}
.dark .nav-arrow-btn:hover {
  background: var(--color1);
  color: #ffffff;
}

/* Section Title Underline Style */
.section-title {
  position: relative;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
}
.dark .section-title {
  color: #f8fafc;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 42px;
  height: 3px;
  background-color: var(--color1);
  border-radius: 2px;
}
.section-title-red::after {
  background-color: var(--color2);
}

/* Gradient Background for Editor's Choice */
.feat-blog-bg {
  background: linear-gradient(135deg, var(--color1) 0%, #306ee8 40%, var(--color2) 100%);
}

/* Hover Zoom on Cards */
.card-thumb-wrap {
  overflow: hidden;
  position: relative;
}
.card-thumb-wrap img {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.group:hover .card-thumb-wrap img {
  transform: scale(1.06);
}

/* Scrollbar management */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Floating ads styling */
.floating-ad {
  position: fixed;
  top: 140px;
  z-index: 40;
  transition: opacity 0.3s ease;
}
@media (max-width: 1380px) {
  .floating-ad {
    display: none !important;
  }
}

/* Article Body Typography */
.article-body p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 0.9375rem;
}
.article-body h2, .article-body h3 {
  font-weight: 700;
  color: #0f172a;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.dark .article-body h2, .dark .article-body h3 {
  color: #f8fafc;
}
.article-body a {
  color: var(--color1);
  text-decoration: underline;
}
.article-body a:hover {
  color: var(--color2);
}

/* ======================================================== */
/* WORDPRESS NAVIGATION MENUS STYLING                       */
/* ======================================================== */

/* General Menu Reset */
.category-nav-list,
.category-nav-list ul,
.category-nav-list li,
.primary-nav-menu,
.primary-nav-menu ul,
.primary-nav-menu li,
.mobile-nav-menu,
.mobile-nav-menu ul,
.mobile-nav-menu li,
.footer-nav-menu,
.footer-nav-menu ul,
.footer-nav-menu li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}

.category-nav-list li::marker,
.primary-nav-menu li::marker,
.mobile-nav-menu li::marker,
.footer-nav-menu li::marker {
  display: none !important;
  content: "" !important;
}

/* Category Navigation Menu Bar */
.category-nav-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-nav-scroll::-webkit-scrollbar {
  display: none;
}

.category-nav-list {
  display: flex !important;
  align-items: stretch !important;
  height: 100% !important;
  white-space: nowrap !important;
}

.category-nav-list > li {
  display: inline-flex !important;
  align-items: stretch !important;
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
}

.category-nav-list > li > a {
  display: flex !important;
  align-items: center !important;
  padding: 0.625rem 0.875rem !important; /* px-3.5 py-2.5 */
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  line-height: 1.25rem !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
  white-space: nowrap !important;
  height: 100% !important;
}

.category-nav-list > li > a:hover {
  background-color: rgba(29, 78, 216, 0.6) !important;
}

.category-nav-list > li.current-menu-item > a,
.category-nav-list > li.current_page_item > a,
.category-nav-list > li.current-category-ancestor > a {
  background-color: #1e40af !important;
  color: #fde047 !important;
  font-weight: 700 !important;
}

/* Category Submenu Dropdown */
.category-nav-list li .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 12rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.375rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 50;
  display: none;
}

.dark .category-nav-list li .sub-menu {
  background-color: #1e293b;
  border-color: #334155;
}

.category-nav-list li:hover > .sub-menu {
  display: block;
}

.category-nav-list li .sub-menu li {
  display: block !important;
  width: 100% !important;
}

.category-nav-list li .sub-menu a {
  display: block !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  text-decoration: none !important;
  text-transform: capitalize !important;
  transition: all 0.15s ease !important;
  white-space: nowrap !important;
}

.dark .category-nav-list li .sub-menu a {
  color: #cbd5e1 !important;
}

.category-nav-list li .sub-menu a:hover {
  background-color: #eff6ff !important;
  color: #1b5ce2 !important;
}

.dark .category-nav-list li .sub-menu a:hover {
  background-color: #334155 !important;
  color: #60a5fa !important;
}

/* Primary Header Menu Dropdown */
.primary-nav-menu {
  display: flex !important;
  align-items: center !important;
}

.primary-nav-menu li {
  position: relative !important;
}

.primary-nav-menu li:hover > .sub-menu {
  display: block !important;
}

.primary-nav-menu .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 12rem;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.375rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 50;
  display: none;
}

.dark .primary-nav-menu .sub-menu {
  background-color: #1e293b;
  border-color: #334155;
}

.primary-nav-menu .sub-menu a {
  display: block !important;
  padding: 0.5rem 1rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #334155 !important;
  text-transform: capitalize !important;
  transition: all 0.15s ease !important;
}

.dark .primary-nav-menu .sub-menu a {
  color: #cbd5e1 !important;
}

.primary-nav-menu .sub-menu a:hover {
  background-color: #eff6ff !important;
  color: #1b5ce2 !important;
}

.dark .primary-nav-menu .sub-menu a:hover {
  background-color: #334155 !important;
  color: #60a5fa !important;
}

/* Keyframe for fadeIn */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fadeIn {
  animation: fadeIn 0.15s ease-out forwards;
}

