/*
Theme Name: AntaraPress
Theme URI: https://gig.web.id
Author: Rifan Muazin / Gig Web ID
Author URI: https://gig.web.id
Description: High-fidelity editorial news WordPress theme adapted from Antara News (antaranews.com) Design DNA. Features a clean white editorial canvas, Antara Red (#c00) accents, full-width dark multimedia bands, multi-category news blocks, breaking news ticker, news stories, 7+ custom widgets, Gutenberg blocks, SEO schema, and featured image fallback.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: antarapress
Tags: news, magazine, editorial, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, theme-options, translation-ready
*/

/* ==========================================================================
   1. DESIGN SYSTEM TOKENS (Antara News Reference DNA)
   ========================================================================== */
:root {
  --ap-primary: #cc0000;
  --ap-primary-hover: #c90000;
  --ap-primary-dark: #a30000;
  --ap-accent-red: #d72924;
  --ap-link-blue: #2c91c4;
  --ap-bg: #ffffff;
  --ap-surface: #f8f9fa;
  --ap-surface-alt: #eeeeee;
  --ap-dark: #000000;
  --ap-footer-bottom: #24252f;
  --ap-text: #212529;
  --ap-text-article: #1a1a1a;
  --ap-text-muted: #555555;
  --ap-text-light: #6c757d;
  --ap-border: #dee2e6;
  --ap-border-light: #eeeeee;
  --ap-font: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --ap-container: 1140px;
  --ap-radius: 0px;
  --ap-radius-sm: 4px;
  --ap-shadow-nav: 0 2px 3px rgba(100, 100, 100, 0.1);
  --ap-transition: all 0.25s ease;
}

/* ==========================================================================
   2. BASE & RESET
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ap-font);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ap-text);
  background-color: var(--ap-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ap-text);
  text-decoration: none;
  transition: var(--ap-transition);
}

a:hover {
  color: var(--ap-primary);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-family: var(--ap-font);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ap-dark);
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link:focus {
  background-color: var(--ap-dark);
  color: #fff;
  display: block;
  font-size: 14px;
  font-weight: 600;
  height: auto;
  left: 10px;
  line-height: normal;
  padding: 12px 20px;
  text-decoration: none;
  top: 10px;
  width: auto;
  z-index: 100000;
}

/* ==========================================================================
   3. GRID & CONTAINER SYSTEM
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--ap-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -15px;
  margin-right: -15px;
}

[class*="col-"] {
  position: relative;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6 { flex: 0 0 50%; max-width: 50%; }

@media (min-width: 768px) {
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-12 { flex: 0 0 100%; max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
}

/* Spacing Utilities */
.pt-0 { padding-top: 0; }
.pt-3 { padding-top: 1rem; }
.pb-0 { padding-bottom: 0; }
.pb-2 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }

/* ==========================================================================
   4. HEADER: TOPBAR & STICKY NAVBAR
   ========================================================================== */
.topbar {
  min-height: 32px;
  background-color: var(--ap-dark);
  color: #ccc;
  font-size: 12px;
  line-height: 32px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-date {
  color: #e0e0e0;
  font-weight: 500;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-social a {
  color: #ccc;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
}

.topbar-social a:hover {
  color: #fff;
}

/* Navigation Wrap */
.navigation-wrap {
  background-color: var(--ap-bg);
  box-shadow: var(--ap-shadow-nav);
  border-bottom: 1px solid var(--ap-border-light);
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
}

.navbar-soft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  font-size: 13px;
  position: relative;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  flex-shrink: 0;
}

.navbar-brand img {
  max-height: 40px;
  width: auto;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ap-dark);
  text-transform: uppercase;
}

.brand-wordmark span {
  color: var(--ap-primary);
}

.navbar-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: 20px;
}

.navbar-nav > li {
  position: relative;
}

.navbar-nav > li > a {
  display: block;
  padding: 18px 11px;
  font-size: 13px;
  font-weight: 600;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.current-menu-item > a,
.navbar-nav > li.current-category-ancestor > a {
  color: var(--ap-primary);
}

/* Dropdown Submenu */
.navbar-nav li ul.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border-top: 3px solid var(--ap-primary);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--ap-transition);
  z-index: 1000;
  padding: 6px 0;
}

.navbar-nav li:hover > ul.sub-menu,
.navbar-nav li:focus-within > ul.sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-nav li ul.sub-menu a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #333;
}

.navbar-nav li ul.sub-menu a:hover {
  background: var(--ap-surface);
  color: var(--ap-primary);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.btn-search-toggle,
.navbar-toggler {
  background: transparent;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-sm);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  transition: var(--ap-transition);
}

.btn-search-toggle:hover,
.navbar-toggler:hover {
  border-color: var(--ap-primary);
  color: var(--ap-primary);
}

.navbar-toggler {
  display: none;
}

.header-search-bar {
  display: none;
  background: var(--ap-surface);
  border-top: 1px solid var(--ap-border-light);
  padding: 12px 0;
}

.header-search-bar.is-open {
  display: block;
}

/* ==========================================================================
   5. BREAKING NEWS BAR
   ========================================================================== */
.breaking-news-bar {
  background: #fafafa;
  border-bottom: 1px solid var(--ap-border-light);
  padding: 8px 0;
  font-size: 13px;
}

.breaking-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.breaking-badge {
  background: var(--ap-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.breaking-ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 22px;
}

.breaking-ticker-item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.breaking-ticker-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.breaking-ticker-item a {
  font-weight: 600;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breaking-ticker-item a:hover {
  color: var(--ap-primary);
}

.breaking-controls {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.breaking-btn {
  background: #fff;
  border: 1px solid var(--ap-border);
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: #333;
}

.breaking-btn:hover {
  border-color: var(--ap-primary);
  color: var(--ap-primary);
}

/* ==========================================================================
   6. SIGNATURE SECTION HEADINGS (.border_section)
   ========================================================================== */
.border_section {
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ap-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.border_section::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 5px;
  background: var(--ap-primary);
  z-index: 1;
}

.border_section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: #eeeeee;
}

.border_section .section-indeks {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--ap-text-muted);
}

.border_section .section-indeks:hover {
  color: var(--ap-primary);
}

.bg-black .border_section {
  color: #ffffff;
}

.bg-black .border_section::after {
  background: #333333;
}

.bg-black .border_section .section-indeks {
  color: #cccccc;
}

/* ==========================================================================
   7. TYPOGRAPHY & CARD SYSTEM (.card__post)
   ========================================================================== */
.post_title {
  font-weight: 600;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.post_title_small { font-size: 14px; line-height: 1.35; }
.post_title_medium { font-size: 1.125rem; line-height: 1.35; }
.post_title_big { font-size: 1.35rem; line-height: 1.3; }
.post_title_xl { font-size: 1.55rem; line-height: 1.28; }
.post_title_xxl { font-size: 1.85rem; line-height: 1.25; }

.post_title a { color: #000; }
.post_title a:hover { color: var(--ap-primary); }

.slug {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.slug a {
  color: var(--ap-primary);
}

.slug a:hover {
  color: #333;
}

.card__post {
  position: relative;
  margin-bottom: 20px;
}

.card__post__thumb {
  position: relative;
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 16 / 10;
}

.card__post__thumb--hero {
  aspect-ratio: 16 / 9;
}

.card__post__thumb--square {
  aspect-ratio: 4 / 3;
}

.card__post__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.card__post:hover .card__post__thumb img {
  transform: scale(1.03);
}

.card__post__content {
  padding-top: 10px;
}

.card__post__content p {
  font-size: 14px;
  color: var(--ap-text-muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

.card__post__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--ap-text-light);
  margin-top: 4px;
}

/* Horizontal List Card (.card__post-list) */
.card__post-list {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--ap-border-light);
}

.card__post-list:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.card__post-list .card__post__thumb {
  width: 120px;
  flex-shrink: 0;
  aspect-ratio: 16 / 11;
}

.card__post-list .card__post__content {
  padding-top: 0;
  flex: 1;
}

/* Overlay Card (Hero / Video / Foto) */
.card__post--overlay {
  position: relative;
  overflow: hidden;
  background: #000;
}

.card__post--overlay .card__post__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 22px 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.92) 100%);
  color: #fff;
}

.card__post--overlay .post_title a,
.card__post--overlay .card__post__meta {
  color: #ffffff;
}

.card__post--overlay .post_title a:hover {
  color: #ff6b6b;
}

/* Numbered Popular List */
.popular-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--ap-border-light);
}

.popular-list-item:last-child {
  border-bottom: none;
}

.popular-rank {
  font-size: 22px;
  font-weight: 800;
  color: var(--ap-primary);
  line-height: 1;
  min-width: 26px;
}

/* ==========================================================================
   8. HOMEPAGE SPECIAL BANDS (Dark Sections, Kolom, Stories)
   ========================================================================== */
.bg-black {
  background-color: var(--ap-dark);
  color: #ffffff;
  padding: 36px 0;
  margin-bottom: 28px;
}

.bg-black a {
  color: #ffffff;
}

.bg-black a:hover {
  color: #ff4d4d;
}

.bg-black .card__post__meta {
  color: #aaaaaa;
}

/* Kolom Section */
.kolom-section {
  background: #f9f9fb;
  border-top: 1px solid var(--ap-border-light);
  border-bottom: 1px solid var(--ap-border-light);
  padding: 28px 0;
  margin-bottom: 28px;
}

.kolom-item {
  text-align: center;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--ap-border-light);
  height: 100%;
}

.kolom-avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 2px solid var(--ap-primary);
}

/* News Stories Strip */
.stories-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.story-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 9 / 14;
  background: #111;
}

.story-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.story-card:hover img {
  transform: scale(1.05);
}

.story-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.story-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ap-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
}

.story-card__title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
}

/* Video Scroll Playlist */
#video-scroll {
  max-height: 410px;
  overflow-y: auto;
  padding-right: 6px;
}

#video-scroll::-webkit-scrollbar {
  width: 6px;
}

#video-scroll::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 3px;
}

.video-playlist-item {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-bottom: 1px solid #222;
  cursor: pointer;
  transition: background 0.2s ease;
}

.video-playlist-item:hover,
.video-playlist-item.is-active {
  background: #1a1a1a;
}

.video-playlist-thumb {
  width: 110px;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

.video-playlist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   9. BREADCRUMBS, SINGLE POST, ARCHIVE & PAGINATION
   ========================================================================== */
.breadcrumbs {
  padding: 14px 0;
  font-size: 13px;
  color: var(--ap-text-muted);
  border-bottom: 1px solid var(--ap-border-light);
  margin-bottom: 22px;
}

.breadcrumbs a {
  color: var(--ap-text-muted);
}

.breadcrumbs a:hover {
  color: var(--ap-primary);
}

.breadcrumbs .sep {
  margin: 0 8px;
  color: #999;
}

.wrap__article-detail-title h1 {
  font-size: 2rem;
  line-height: 1.25;
  margin-bottom: 12px;
  color: #000;
}

.wrap__article-detail-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--ap-text-muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ap-border-light);
}

.wrap__article-detail-image {
  margin: 20px 0;
}

.wrap__article-detail-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.fig-caption {
  color: #444;
  font-size: 0.85rem;
  line-height: 1.45;
  padding: 8px 0 0;
  border-bottom: 1px solid var(--ap-border-light);
}

.post-content {
  color: var(--ap-text-article);
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 28px;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
}

.post-content blockquote,
.block-quote {
  background: var(--ap-surface);
  border-left: 4px solid var(--ap-primary);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 1.15rem;
  font-style: italic;
  color: #333;
}

.baca-juga {
  background: #f9f9f9;
  border-left: 4px solid var(--ap-primary);
  padding: 12px 16px;
  margin: 20px 0;
  font-size: 0.95rem;
}

.baca-juga strong {
  color: var(--ap-primary);
  text-transform: uppercase;
  font-size: 0.82rem;
  display: block;
  margin-bottom: 4px;
}

.baca-juga a {
  color: var(--ap-link-blue);
  font-weight: 600;
}

.baca-juga a:hover {
  color: var(--ap-primary);
}

/* Tags */
.blog-tags {
  margin: 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.blog-tags a {
  display: inline-block;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--ap-surface-alt);
  color: #222;
  border-radius: 3px;
}

.blog-tags a:hover {
  background: var(--ap-primary);
  color: #fff;
}

/* Social Share */
.share-wrapper {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--ap-border-light);
  border-bottom: 1px solid var(--ap-border-light);
  margin-bottom: 28px;
}

.share-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 6px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 3px;
}

.share-btn:hover { color: #fff; opacity: 0.9; }
.share-btn--fb { background: #1877f2; }
.share-btn--x { background: #000000; }
.share-btn--wa { background: #25d366; }
.share-btn--tg { background: #0088cc; }

/* Post Navigation */
.post-navigation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0;
  padding: 18px 0;
  border-top: 1px solid var(--ap-border-light);
  border-bottom: 1px solid var(--ap-border-light);
}

.post-nav-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ap-primary);
  margin-bottom: 4px;
}

.post-nav-next {
  text-align: right;
}

/* Pagination */
.antarapress-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.antarapress-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--ap-border);
  background: #fff;
  color: #333;
}

.antarapress-pagination .page-numbers.current,
.antarapress-pagination .page-numbers:hover {
  background: var(--ap-primary);
  border-color: var(--ap-primary);
  color: #fff;
}

/* ==========================================================================
   10. SIDEBAR & WIDGETS
   ========================================================================== */
.sidebar-area .widget {
  margin-bottom: 28px;
}

.widget-title {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
}

.widget-title::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 45px;
  height: 4px;
  background: var(--ap-primary);
  z-index: 1;
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #eeeeee;
}

.search-form {
  display: flex;
  gap: 0;
}

.search-form .search-field {
  flex: 1;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--ap-border);
  font-family: var(--ap-font);
  font-size: 14px;
  outline: none;
}

.search-form .search-field:focus {
  border-color: var(--ap-primary);
}

.search-form .search-submit {
  height: 42px;
  padding: 0 18px;
  background: var(--ap-primary);
  color: #fff;
  border: none;
  font-family: var(--ap-font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.search-form .search-submit:hover {
  background: var(--ap-primary-dark);
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.wrapper__footer {
  background: #f8f9fa;
  border-top: 3px solid var(--ap-primary);
  padding: 40px 0 30px;
  margin-top: 40px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--ap-border);
}

.footer-widget-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: #000;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  font-size: 13px;
  color: #444;
}

.footer-links a:hover {
  color: var(--ap-primary);
}

.bg__footer-bottom {
  background-color: var(--ap-footer-bottom);
  padding: 16px 0;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.bg__footer-bottom a {
  color: #ff6b6b;
}

/* ==========================================================================
   12. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 991px) {
  .navbar-toggler {
    display: inline-flex;
  }

  .navbar-collapse {
    display: none;
    position: absolute;
    top: 100%;
    left: -15px;
    right: -15px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-top: 1px solid var(--ap-border-light);
    padding: 12px 15px;
    z-index: 998;
  }

  .navbar-collapse.is-open {
    display: block;
  }

  .navbar-nav {
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

  .navbar-nav > li > a {
    padding: 10px 8px;
    border-bottom: 1px solid var(--ap-border-light);
  }

  .navbar-nav li ul.sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-top: none;
    padding-left: 16px;
  }

  .stories-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .post_title_xxl { font-size: 1.35rem; }
  .post_title_xl { font-size: 1.25rem; }
  .wrap__article-detail-title h1 { font-size: 1.45rem; }
  .border_section { font-size: 17px; }
  .post-navigation { grid-template-columns: 1fr; }
  .post-nav-next { text-align: left; }
  .card__post-list .card__post__thumb { width: 105px; }
}
