/*
Theme Name: Pewarta WPNews
Theme URI: https://themesapp.com/pewarta
Author: Antigravity & ThemesApp
Author URI: https://themesapp.com
Description: Tema Portal Berita Modern, Responsif, dan Cepat dengan tampilan 100% presisi Pewarta/WPNews, terintegrasi Tailwind CSS, slot iklan lengkap yang dapat diatur via Customizer, dan tata letak berita terlengkap.
Version: 1.0.0
Tested up to: 6.7
Requires at least: 5.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pewarta
Tags: news, blog, two-columns, right-sidebar, custom-colors, custom-logo, featured-images, theme-options, translation-ready
*/

/* Header & Footer Custom Logo Constraints */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.custom-logo {
  max-height: 38px;
  height: auto;
  width: auto;
  max-width: 280px;
  object-fit: contain;
  display: block;
}
@media (min-width: 768px) {
  .custom-logo {
    max-height: 42px;
    max-width: 320px;
  }
}
.header-logo-wrapper {
  display: flex;
  align-items: center;
  max-height: 3.5rem;
  overflow: hidden;
}
.header-logo-wrapper img,
.header-logo-wrapper .custom-logo {
  max-height: 38px !important;
  max-width: 300px !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain !important;
}
@media (min-width: 768px) {
  .header-logo-wrapper img,
  .header-logo-wrapper .custom-logo {
    max-height: 42px !important;
  }
}
.footer-logo-wrapper {
  display: flex;
  align-items: center;
  max-height: 3rem;
  overflow: hidden;
}
.footer-logo-wrapper img,
.footer-logo-wrapper .custom-logo {
  max-height: 38px !important;
  max-width: 280px !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain !important;
}

/* Custom Widget Title Accent */
.widget-title {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.widget-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2.5px;
  background-color: var(--theme-brand-color, #cb0000);
  z-index: 10;
}

.widget-title-white {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
}
.widget-title-white::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2.5px;
  background-color: var(--theme-brand-color, #cb0000);
  z-index: 10;
}

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

/* Line clamp fallbacks */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Standard WordPress Entry Content Styles */
.entry-content p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}
.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}
.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.entry-content blockquote {
  border-left: 4px solid #111111;
  background-color: #f5f5f5;
  padding: 1rem 1.25rem;
  font-style: italic;
  margin: 1.5rem 0;
}
.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 2px;
}
.entry-content ul, .entry-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.entry-content ul {
  list-style-type: disc;
}
.entry-content ol {
  list-style-type: decimal;
}

/* WordPress Pagination */
.pewarta-pagination .nav-links,
.pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid #e5e7eb;
  border-radius: 0.25rem;
  color: #374151;
  background-color: #ffffff;
  transition: all 0.2s;
}
.page-numbers:hover {
  border-color: #cb0000;
  color: #cb0000;
}
.page-numbers.current {
  background-color: #cb0000;
  border-color: #cb0000;
  color: #ffffff;
}
.page-numbers.dots {
  border: none;
  background: transparent;
  color: #9ca3af;
}

/* Comment Threading */
.comment-list .children {
  margin-left: 2rem;
  margin-top: 1rem;
  border-left: 2px solid #f3f4f6;
  padding-left: 1rem;
}
