/**
 * Visión Sandinista - Main Stylesheet
 * Standard: Modern Editorial Design
 */

:root {
  /* Brand Colors */
  --vs-primary: #e21b1b;
  --vs-sovereign: #004592;
  --vs-black: #000000;
  --vs-blue: #004592;
  --vs-white: #ffffff;
  --vs-gold: #ffd700;
  --vs-gray: #757476;
  --vs-light-gray: #f4f4f4;
  --vs-text-main: #181111;
  --vs-text-muted: #666666;

  /* Custom Search Modal Text fix */
  --vs-search-text: #181111;

  /* Typography */
  --vs-font-heading: 'Playfair Display', serif;
  --vs-font-body: 'Roboto', sans-serif;
  --font-display: 'Public Sans', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

/* Base Reset */
body {
  font-family: var(--vs-font-body), sans-serif;
  color: var(--vs-black);
  background-color: var(--vs-white);
  font-weight: 300;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-serif {
  font-family: var(--vs-font-heading), serif;
  text-wrap: balance;
  color: var(--vs-black);
}

b,
strong,
.fw-bold {
  font-weight: 700;
}

.fw-black {
  font-weight: 900;
}

/* Selection */
::-moz-selection {
  background: var(--vs-blue);
  color: var(--vs-white);
}

::selection {
  background: var(--vs-blue);
  color: var(--vs-white);
}

/* UI Elements */
.btn-vs-primary {
  background-color: var(--vs-primary);
  color: white;
  border-radius: 8px;
  font-weight: 700;
  padding: 12px 24px;
  border: none;
  transition: all 0.3s ease;
}

.btn-vs-primary:hover {
  background-color: #c41515;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(226, 27, 27, 0.2);
}

/* Shared Components & Utilities */
.shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

.shadow-lg {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.transition-all {
  transition: all 0.3s ease;
}

.transition-transform {
  transition: transform 0.5s ease;
}

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

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

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

/* Hover Effects (Group) */
.group {
  cursor: pointer;
}

.group:hover .group-hover-scale {
  transform: scale(1.05);
}

.group:hover .group-hover-text-vs-red {
  color: var(--vs-primary) !important;
}

/* Colors */
.text-vs-red {
  color: var(--vs-primary) !important;
}

.text-vs-blue {
  color: var(--vs-blue) !important;
}

.text-vs-sovereign {
  color: var(--vs-sovereign) !important;
}

.text-vs-black {
  color: var(--vs-black) !important;
}

.text-vs-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

.bg-vs-primary {
  background-color: var(--vs-primary) !important;
}

.bg-vs-blue {
  background-color: var(--vs-blue) !important;
}

.bg-vs-black {
  background-color: var(--vs-black) !important;
}

.hover-text-white:hover {
  color: white !important;
}

/* Layout Specifics */
#wrapper-navbar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

#wrapper-footer {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-top: 4px solid var(--vs-primary);
}

#wrapper-footer .footer-brand .h4,
#wrapper-footer h5,
#wrapper-footer p,
#wrapper-footer a {
  color: #ffffff !important;
}

#wrapper-footer .text-vs-white-50 {
  color: rgba(255, 255, 255, 0.5) !important;
}

#wrapper-footer .footer-brand .h4 {
  letter-spacing: -0.5px;
}

.custom-logo {
  max-height: 65px;
  width: auto;
}

/* WordPress Core Support */
.screen-reader-text {
  position: absolute;
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Custom Scrollbar for Navbar categories */
.custom-scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.custom-scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Pagination */
.pagination-clean .page-link {
  border: 1px solid #eee;
  color: var(--vs-black);
  min-width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px !important;
  font-weight: 700;
  transition: all 0.3s ease;
  background: white;
}

.pagination-clean .page-link:hover {
  border-color: var(--vs-primary);
  color: var(--vs-primary);
  background: #fffafa;
}

.pagination-clean .page-item.active .page-link {
  background-color: var(--vs-primary) !important;
  border-color: var(--vs-primary) !important;
  color: white !important;
  box-shadow: 0 4px 10px rgba(226, 27, 27, 0.2) !important;
}

.pagination-clean .page-link.disabled {
  opacity: 0.5;
  cursor: default;
}

/* Single Post Specifics */
.entry-content p {
  margin-bottom: 1.5rem;
}

.entry-content {
  text-align: justify;
  hyphens: auto;
}

/* Utilities for better spacing */
.ls-widest {
  letter-spacing: 0.15em;
}

.ls-wide {
  letter-spacing: 0.05em;
}

/* Header & Navigation (Migrated from header.php) */
.font-serif {
  font-family: var(--font-serif);
}

/* Top Header Area (Non-sticky) */
.header-top-area {
  background-color: white;
}

/* Utility Bar */
.utility-bar {
  border-bottom: 1px solid #eee;
}

.utility-date {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--vs-text-main);
}

.utility-slogan {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--vs-text-main);
}

/* Brand Row */
.header-logo img {
  max-height: 100px;
  width: auto;
  transition: transform 0.3s ease;
}

/* Navbar Area (Sticky) */
#wrapper-navbar {
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background-color: white !important;
}

/* Sticky Class (Applied to Body via JS) */
@media (min-width: 992px) {
  .is-sticky #wrapper-navbar {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
    padding: 5px 0;
  }

  .is-sticky .sticky-brand,
  .is-sticky .sticky-search {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
  }

  .navbar-nav {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
  }

  /* Transition to Compact Mode */
  .is-sticky .navbar-nav {
    justify-content: center;
    gap: 1.25rem;
    width: auto;
    flex-grow: 1;
  }

  .is-sticky .navbar-nav .nav-item {
    flex: none;
  }

  .is-sticky .sticky-brand {
    flex-basis: 250px;
  }

  .is-sticky .sticky-search {
    flex-basis: 50px;
    justify-content: flex-end;
  }
}

.navbar-nav .nav-item .nav-link {
  color: var(--vs-text-main) !important;
  padding: 0.75rem 0 !important;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item.active .nav-link {
  color: var(--vs-primary) !important;
  border-bottom-color: var(--vs-primary);
}

/* Sticky elements behavior */
.sticky-brand,
.sticky-search {
  display: none;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

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

.header_banner {
  border-bottom: 1px solid #f0f0f0;
}

/* Mobile Sticky Fix Header Container */
.sticky-top-mobile {
  display: contents;
}

/* Mobile Header */
@media (max-width: 991px) {
  .mobile-header {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
  }

  .mobile-logo img {
    max-height: 40px;
  }

  /* Mobile Sticky Fix & Menu Scrollability */
  .sticky-top-mobile {
    display: block;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1040;
    /* Lower than modal (1055) */
    background: white;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  }

  .sticky-top-mobile #wrapper-navbar {
    border-bottom: none;
    box-shadow: none !important;
  }

  .sticky-top-mobile .collapse.navbar-collapse {
    max-height: 80vh;
    overflow-y: auto;
    padding-bottom: 2rem;
  }
}