/**
 * UVAS Swat News Portal - Core Styling System
 * Borderless, Modern, Dynamic, Responsive
 * Strict Aspect Ratios & Zero Distortion
 */

:root {
  --uvas-primary: #002b59;
  --uvas-primary-dark: #001c3d;
  --uvas-secondary: #004080;
  --uvas-accent: #16a34a;
  --uvas-accent-hover: #15803d;
  --uvas-emerald: #10b981;
  --uvas-amber: #f59e0b;
  --uvas-crimson: #ef4444;
  --uvas-text-main: #0f172a;
  --uvas-text-muted: #64748b;
  --uvas-bg-light: #f8fafc;
  --uvas-border-subtle: #e2e8f0;
  --uvas-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --uvas-shadow-md: 0 12px 24px -4px rgba(0, 43, 89, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --uvas-shadow-lg: 0 20px 35px -8px rgba(0, 43, 89, 0.15), 0 6px 10px -4px rgba(0, 0, 0, 0.06);
  --uvas-radius-sm: 8px;
  --uvas-radius-md: 12px;
  --uvas-radius-lg: 18px;
  --uvas-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   GLOBAL RESET FOR BORDERLESS & ASPECT-RATIO DISCIPLINE
   ========================================================================== */
.uvas-news-root * {
  box-sizing: border-box;
}

/* Enforce strict image aspect-ratio and zero warping everywhere */
.uvas-img-fit {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.uvas-img-container-16-9 {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.uvas-img-container-4-3 {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0f172a;
}

.uvas-img-container-1-1 {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #0f172a;
}

/* Remove default frame borders, canvas mockups, or ugly lines */
.uvas-borderless {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Universal Category Badges */
.uvas-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  color: #ffffff;
  background: var(--uvas-secondary);
  box-shadow: 0 2px 6px rgba(0, 64, 128, 0.25);
  white-space: nowrap;
}
.uvas-badge.admissions { background: linear-gradient(135deg, #10b981, #059669); }
.uvas-badge.academic   { background: linear-gradient(135deg, #0284c7, #0369a1); }
.uvas-badge.research   { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.uvas-badge.events     { background: linear-gradient(135deg, #f59e0b, #d97706); }
.uvas-badge.campus     { background: linear-gradient(135deg, #ec4899, #be185d); }
.uvas-badge.urgent     { background: linear-gradient(135deg, #ef4444, #dc2626); }

/* ==========================================================================
   1. HERO SECTION: TOP 10 NEWS SLIDER (VANILLA JS + CSS)
   ========================================================================== */
/* ==========================================================================
   1. HERO SECTION: TOP 10 NEWS SLIDER (VANILLA JS + CSS)
   ========================================================================== */
:root {
  --uvas-header-height: 94px;
}

@media (max-width: 1199px) {
  :root {
    --uvas-header-height: 59px;
  }
}

.uvas-hero-slider-wrap {
  width: 100%;
  position: relative;
  background: #0b1320;
  overflow: hidden;
  user-select: none;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0 !important;
  padding: 0 !important;
}

.uvas-hero-slider-viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  height: calc(100vh - var(--uvas-header-height, 94px));
  height: calc(100dvh - var(--uvas-header-height, 94px));
  min-height: calc(100vh - var(--uvas-header-height, 94px));
  min-height: calc(100dvh - var(--uvas-header-height, 94px));
  overflow: hidden;
}

@media (max-width: 1199px) {
  .uvas-hero-slider-viewport {
    height: calc(100vh - var(--uvas-header-height, 59px)) !important;
    height: calc(100dvh - var(--uvas-header-height, 59px)) !important;
    min-height: calc(100vh - var(--uvas-header-height, 59px)) !important;
    min-height: calc(100dvh - var(--uvas-header-height, 59px)) !important;
  }
}

@media (max-width: 768px) {
  .uvas-hero-slider-viewport {
    height: calc(100vh - var(--uvas-header-height, 59px)) !important;
    height: calc(100dvh - var(--uvas-header-height, 59px)) !important;
    min-height: calc(100vh - var(--uvas-header-height, 59px)) !important;
    min-height: calc(100dvh - var(--uvas-header-height, 59px)) !important;
  }
  .uvas-hero-slide-bg,
  .uvas-hero-slide-bg.uvas-img-container-16-9 {
    aspect-ratio: unset !important;
    height: 100% !important;
    width: 100% !important;
  }
  .uvas-hero-slide-caption {
    padding: 20px 18px 48px 18px !important;
    max-width: 100% !important;
    align-items: center !important;
    text-align: center !important;
  }
  .uvas-hero-meta-bar {
    justify-content: center !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
  }
  .uvas-hero-title {
    font-size: 20px !important;
    line-height: 1.3 !important;
    text-align: center !important;
    margin: 0 auto 12px auto !important;
    -webkit-line-clamp: 4 !important;
    color: #ffffff !important;
  }
  .uvas-hero-read-btn {
    margin: 0 auto !important;
    font-size: 13px !important;
  }
}

@media (max-width: 480px) {
  .uvas-hero-slider-viewport {
    height: calc(100vh - var(--uvas-header-height, 59px)) !important;
    height: calc(100dvh - var(--uvas-header-height, 59px)) !important;
    min-height: calc(100vh - var(--uvas-header-height, 59px)) !important;
    min-height: calc(100dvh - var(--uvas-header-height, 59px)) !important;
  }
  .uvas-hero-slide-caption {
    padding: 16px 14px 44px 14px !important;
  }
  .uvas-hero-title {
    font-size: 17.5px !important;
    line-height: 1.3 !important;
    -webkit-line-clamp: 4 !important;
    color: #ffffff !important;
  }
}

.uvas-hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
  perspective: 1200px;
}

.uvas-hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  transform: scale(0.88);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), 
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.85s;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Active Slide (Full Zoomed-In Focus) */
.uvas-hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1) translateX(0);
  z-index: 3;
  pointer-events: auto;
}

/* Outgoing Slide (Zoom-Out & Slide Away) */
.uvas-hero-slide.zoom-out-to-left {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85) translateX(-8%);
  z-index: 2;
}

.uvas-hero-slide.zoom-out-to-right {
  opacity: 0;
  visibility: hidden;
  transform: scale(0.85) translateX(8%);
  z-index: 2;
}

/* Incoming Slide Initial States (Zoomed-In & Shifted) */
.uvas-hero-slide.slide-in-from-right {
  transform: scale(1.14) translateX(12%);
  opacity: 0;
}

.uvas-hero-slide.slide-in-from-left {
  transform: scale(1.14) translateX(-12%);
  opacity: 0;
}

.uvas-hero-slide-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
  color: inherit;
}

.uvas-hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: unset !important;
  overflow: hidden;
}

.uvas-hero-slide-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: high-quality;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: scale(1) translateZ(0);
}

.uvas-hero-slide.active .uvas-hero-slide-bg img {
  transform: scale(1.06) translateZ(0);
}

/* Gradient Overlay - Smooth Dark Fade into Bottom */
.uvas-hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 19, 32, 0.12) 0%,
    rgba(11, 19, 32, 0.38) 35%,
    rgba(11, 19, 32, 0.82) 72%,
    rgba(11, 19, 32, 0.96) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* Caption Container - Centered Alignment */
.uvas-hero-slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 40px 60px 48px 60px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .uvas-hero-slide-caption { 
    padding: 20px 18px 48px 18px !important; 
    align-items: center !important;
    text-align: center !important;
  }
}

.uvas-hero-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.uvas-hero-date {
  color: #cbd5e1;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.uvas-hero-title {
  color: #ffffff !important;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.28;
  margin: 0 auto 15px auto;
  max-width: 1000px;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 1px 3px rgba(0, 0, 0, 0.9);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.25s ease;
}

.uvas-hero-slide-link:hover .uvas-hero-title {
  color: #ffffff !important;
  text-shadow: 0 0 25px rgba(22, 163, 74, 0.75), 0 2px 14px rgba(0, 0, 0, 0.95);
}

@media (max-width: 992px) {
  .uvas-hero-title { font-size: 23px; }
}
@media (max-width: 576px) {
  .uvas-hero-title { font-size: 18px; -webkit-line-clamp: 3; }
}

.uvas-hero-read-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #22c55e !important;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.3px;
  margin: 0 auto;
  transition: transform 0.25s ease, color 0.25s ease;
}

.uvas-hero-slide-link:hover .uvas-hero-read-btn {
  transform: translateX(4px);
  color: #4ade80 !important;
}

/* Caption Cascade Zoom-In Pop */
.uvas-hero-slide .uvas-hero-meta-bar,
.uvas-hero-slide .uvas-hero-title,
.uvas-hero-slide .uvas-hero-read-btn {
  opacity: 0;
  transform: translateY(22px) scale(0.95);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.uvas-hero-slide.active .uvas-hero-meta-bar {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.18s;
}

.uvas-hero-slide.active .uvas-hero-title {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.3s;
}

.uvas-hero-slide.active .uvas-hero-read-btn {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0.42s;
}

/* Slider Controls (Next / Prev) */
.uvas-hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--uvas-transition);
}

.uvas-hero-nav-btn:hover {
  background: #16a34a !important;
  border-color: #16a34a !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.5);
}

.uvas-hero-prev { left: 24px; }
.uvas-hero-next { right: 24px; }

@media (max-width: 768px) {
  .uvas-hero-nav-btn { width: 38px; height: 38px; font-size: 14px; }
  .uvas-hero-prev { left: 10px; }
  .uvas-hero-next { right: 10px; }
}

/* Dots Indicators */
.uvas-hero-dots {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.uvas-hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.uvas-hero-dot.active {
  background: #16a34a !important;
  width: 28px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.6);
}

/* Progress bar */
.uvas-hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #16a34a !important;
  width: 0%;
  z-index: 11;
  transition: width 0.1s linear;
}

/* ==========================================================================
   2. HOMEPAGE BOTTOM: VERTICAL NEWS MARQUEE / TICKER
   ========================================================================== */
.uvas-ticker-section {
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow: hidden;
}

.uvas-ticker-container {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  height: 64px;
}

.uvas-ticker-label {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.25);
  z-index: 3;
}

.uvas-ticker-label i {
  animation: uvasPulse 1.5s infinite;
}

@keyframes uvasPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.uvas-ticker-track-window {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 64px;
}

.uvas-ticker-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.uvas-ticker-item {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  white-space: nowrap;
  text-decoration: none;
  color: #f1f5f9;
  transition: background 0.2s ease, color 0.2s ease;
  overflow: hidden;
}

.uvas-ticker-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #22c55e !important;
}

.uvas-ticker-badge {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.uvas-ticker-date {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}

.uvas-ticker-text {
  font-size: 14.5px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uvas-ticker-controls {
  display: flex;
  align-items: center;
  padding: 0 15px;
  gap: 6px;
  background: rgba(15, 23, 42, 0.9);
  z-index: 2;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.uvas-ticker-ctrl-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
}

.uvas-ticker-ctrl-btn:hover {
  background: var(--uvas-accent);
  color: #ffffff;
  border-color: var(--uvas-accent);
}

@media (max-width: 640px) {
  .uvas-ticker-label span { display: none; }
  .uvas-ticker-label { padding: 0 14px; }
  .uvas-ticker-date { display: none; }
  .uvas-ticker-controls { display: none; }
}

/* ==========================================================================
   3. CLEAN WHITE THEME POPUP MODAL (SLIM SINGLE-VIEW, NO SCROLLBAR)
   ========================================================================== */
.uvas-glass-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999999;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.uvas-glass-modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.uvas-glass-modal-card {
  position: relative;
  width: 100%;
  max-width: 530px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 60px -10px rgba(0, 43, 89, 0.25), 0 0 1px 1px rgba(0, 43, 89, 0.08);
  overflow: hidden;
  color: #0f172a;
  transform: scale(0.94) translateY(15px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.uvas-glass-modal-backdrop.active .uvas-glass-modal-card {
  transform: scale(1) translateY(0);
}

.uvas-glass-modal-header {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eef2f6;
  background: #f8fafc;
}

.uvas-glass-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 800;
  color: #002b59;
  margin: 0;
  letter-spacing: 0.2px;
}

.uvas-glass-modal-title i {
  color: #16a34a;
  font-size: 17px;
}

.uvas-glass-modal-close {
  background: #eef2f6;
  border: 1px solid #cbd5e1;
  color: #64748b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: var(--uvas-transition);
}

.uvas-glass-modal-close:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: rotate(90deg);
}

.uvas-glass-modal-body {
  padding: 12px 16px;
  max-height: none !important;
  overflow: hidden !important;
}

.uvas-glass-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.uvas-glass-news-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.uvas-glass-news-item a:hover {
  background: #f0fdf4;
  border-color: #86efac;
  transform: translateX(4px);
}

.uvas-glass-item-bullet {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.uvas-glass-news-item a:hover .uvas-glass-item-bullet {
  background: #10b981;
  color: #ffffff;
}

.uvas-glass-item-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
  margin: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.uvas-glass-news-item a:hover .uvas-glass-item-title {
  color: #16a34a !important;
}

.uvas-glass-arrow {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.uvas-glass-news-item a:hover .uvas-glass-arrow {
  color: #10b981;
  transform: translateX(3px);
}

.uvas-glass-modal-footer {
  padding: 12px 18px;
  border-top: 1px solid #eef2f6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
}

.uvas-glass-modal-btn-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #004080;
  text-decoration: none;
  transition: color 0.2s ease;
}

.uvas-glass-modal-btn-all:hover {
  color: #16a34a !important;
  text-decoration: underline;
}

.uvas-glass-modal-btn-dismiss {
  background: #e2e8f0;
  border: none;
  color: #334155;
  padding: 6px 14px;
  border-radius: var(--uvas-radius-sm);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uvas-glass-modal-btn-dismiss:hover {
  background: #cbd5e1;
  color: #0f172a;
}

/* ==========================================================================
   4. LIFETIME NEWS ARCHIVE PAGE (news.php) & HERO BANNER
   ========================================================================== */
/* Hero Banner Section - Compact & Centered (Exact match with Degree Programs) */
.uvas-programs-hero {
  background: linear-gradient(135deg, #1e2269 0%, #171a54 60%, #0f1138 100%);
  color: #ffffff;
  padding: 24px 20px 26px 20px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #16a34a;
  text-align: center;
}

.uvas-programs-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(22, 163, 74, 0.15), transparent 70%);
  pointer-events: none;
}

.uvas-hero-container {
  max-width: 1380px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.uvas-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(22, 163, 74, 0.2);
  border: 1px solid rgba(74, 222, 128, 0.4);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: #86efac;
}

.uvas-programs-hero h1 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  margin: 0 0 8px 0;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-align: center;
}

.uvas-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: #94a3b8;
}

.uvas-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.uvas-breadcrumb a:hover {
  color: #4ade80;
}

.uvas-breadcrumb span.sep {
  color: #64748b;
}

.uvas-archive-section {
  padding: 35px 0 80px 0;
  background: var(--uvas-bg-light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.uvas-archive-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

.uvas-section-header {
  text-align: center;
  margin-bottom: 35px;
}

.uvas-section-pretitle {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--uvas-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.uvas-section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--uvas-primary);
  margin: 0 0 12px 0;
}

.uvas-section-desc {
  color: var(--uvas-text-muted);
  max-width: 650px;
  margin: 0 auto;
  font-size: 15.5px;
  line-height: 1.6;
}

/* Dynamic Filter & Search Toolbar */
.uvas-filter-toolbar {
  background: #ffffff;
  padding: 18px 24px;
  border-radius: var(--uvas-radius-lg);
  box-shadow: var(--uvas-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}

.uvas-category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.uvas-pill {
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--uvas-text-muted);
  background: #f1f5f9;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--uvas-transition);
}

.uvas-pill:hover {
  background: #e2e8f0;
  color: var(--uvas-primary);
}

.uvas-pill.active {
  background: var(--uvas-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 43, 89, 0.25);
}

.uvas-search-box {
  position: relative;
  min-width: 280px;
}

.uvas-search-input {
  width: 100%;
  padding: 10px 42px 10px 16px;
  border: 1px solid var(--uvas-border-subtle);
  border-radius: 30px;
  font-size: 14px;
  outline: none;
  transition: var(--uvas-transition);
  background: #f8fafc;
}

.uvas-search-input:focus {
  border-color: var(--uvas-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

.uvas-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

/* News Grid */
.uvas-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 1024px) {
  .uvas-news-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 640px) {
  .uvas-news-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* Modern Borderless News Card */
.uvas-news-card {
  background: #ffffff;
  border-radius: var(--uvas-radius-lg);
  overflow: hidden;
  box-shadow: var(--uvas-shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--uvas-transition);
  position: relative;
}

.uvas-news-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--uvas-shadow-lg);
}

.uvas-news-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.uvas-news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.uvas-news-card:hover .uvas-news-card-media img {
  transform: scale(1.06);
}

.uvas-news-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.uvas-news-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.uvas-news-card-date {
  font-size: 12.5px;
  color: var(--uvas-text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-weight: 500;
}

.uvas-news-card-title {
  font-size: 18.5px;
  font-weight: 700;
  color: var(--uvas-primary);
  line-height: 1.35;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.uvas-news-card:hover .uvas-news-card-title,
.uvas-news-card-title a:hover,
.uvas-news-card-title:hover {
  color: #16a34a !important;
}

.uvas-news-card-excerpt {
  font-size: 14px;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 18px 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.uvas-news-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 16px;
  margin-top: auto;
}

.uvas-read-more-link {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--uvas-secondary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.uvas-read-more-link i {
  font-size: 11px;
}

.uvas-news-card:hover .uvas-read-more-link,
.uvas-read-more-link:hover {
  color: #16a34a !important;
  transform: translateX(4px);
}

/* Pagination Bar */
.uvas-pagination {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.uvas-page-btn {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border-radius: var(--uvas-radius-sm);
  background: #ffffff;
  border: 1px solid var(--uvas-border-subtle);
  color: var(--uvas-text-main);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--uvas-transition);
}

.uvas-page-btn:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--uvas-primary);
}

.uvas-page-btn.active {
  background: var(--uvas-primary);
  border-color: var(--uvas-primary);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 43, 89, 0.25);
}

.uvas-page-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ==========================================================================
   5. SINGLE POST PAGE & DYNAMIC SIDEBAR (news-detail.php)
   ========================================================================== */
.uvas-detail-section {
  padding: 40px 0 80px 0;
  background: var(--uvas-bg-light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.uvas-detail-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Breadcrumbs */
.uvas-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--uvas-text-muted);
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.uvas-breadcrumbs a {
  color: var(--uvas-primary);
  text-decoration: none;
  font-weight: 600;
}

.uvas-breadcrumbs a:hover {
  color: var(--uvas-accent);
}

.uvas-breadcrumbs span.current {
  color: #94a3b8;
  max-width: 400px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Layout Grid */
.uvas-detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 1024px) {
  .uvas-detail-layout { grid-template-columns: 1fr; }
}

/* Article Main Container */
.uvas-article-main {
  background: #ffffff;
  border-radius: var(--uvas-radius-lg);
  overflow: hidden;
  box-shadow: var(--uvas-shadow-sm);
  padding: 35px 40px;
}

@media (max-width: 768px) {
  .uvas-article-main { padding: 24px 20px; }
}

.uvas-article-meta-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.uvas-article-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--uvas-primary);
  line-height: 1.3;
  margin: 0 0 24px 0;
}

@media (max-width: 768px) {
  .uvas-article-title { font-size: 24px; }
}

/* Featured Post Image - Full Natural Height & 100% Uncropped */
.uvas-article-featured-img {
  width: 100%;
  aspect-ratio: unset !important;
  border-radius: var(--uvas-radius-md);
  overflow: hidden;
  margin-bottom: 30px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 43, 89, 0.05);
}

.uvas-article-featured-img img,
.uvas-detail-full-img {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: var(--uvas-radius-md);
}

.uvas-article-content {
  font-size: 16.5px;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 35px;
}

.uvas-article-content p {
  margin-bottom: 18px;
}

/* Social Share Bar */
.uvas-share-bar {
  border-top: 1px solid var(--uvas-border-subtle);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.uvas-share-label {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--uvas-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.uvas-share-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

.uvas-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.uvas-share-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.uvas-share-btn.fb { background: #1877f2; }
.uvas-share-btn.tw { background: #000000; }
.uvas-share-btn.wa { background: #25d366; }
.uvas-share-btn.cp { background: #475569; }

/* Dynamic Sidebar */
.uvas-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.uvas-sidebar-widget {
  background: #ffffff;
  border-radius: var(--uvas-radius-lg);
  padding: 26px;
  box-shadow: var(--uvas-shadow-sm);
}

.uvas-sidebar-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--uvas-primary);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--uvas-accent);
  display: flex;
  align-items: center;
  gap: 10px;
}

.uvas-sidebar-news-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.uvas-sidebar-news-item {
  display: flex;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  transition: var(--uvas-transition);
}

.uvas-sidebar-news-item:hover {
  transform: translateX(4px);
}

.uvas-sidebar-thumb {
  width: 90px;
  height: 65px;
  aspect-ratio: 16 / 9;
  border-radius: var(--uvas-radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background: #0f172a;
}

.uvas-sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uvas-sidebar-item-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.uvas-sidebar-item-date {
  font-size: 11.5px;
  color: var(--uvas-text-muted);
  margin-bottom: 4px;
}

.uvas-sidebar-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--uvas-primary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.uvas-sidebar-news-item:hover .uvas-sidebar-item-title,
.uvas-sidebar-item-title:hover {
  color: #16a34a !important;
}

/* Category List Widget */
.uvas-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.uvas-category-list-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--uvas-radius-sm);
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.uvas-category-list-item a:hover {
  background: #e2e8f0;
  color: var(--uvas-primary);
}

.uvas-cat-count {
  background: var(--uvas-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}

/* ==========================================================================
   6. DEDICATED NEWS GALLERY PAGE (gallery.php) & VANILLA JS LIGHTBOX
   ========================================================================== */
.uvas-gallery-section {
  padding: 35px 0 80px 0;
  background: var(--uvas-bg-light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.uvas-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 992px) {
  .uvas-gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 580px) {
  .uvas-gallery-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Gallery Item Card */
.uvas-gallery-card {
  position: relative;
  border-radius: var(--uvas-radius-md);
  overflow: hidden;
  box-shadow: var(--uvas-shadow-sm);
  cursor: pointer;
  background: #0f172a;
  aspect-ratio: 4 / 3;
  transition: var(--uvas-transition);
}

.uvas-gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--uvas-shadow-lg);
}

.uvas-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.uvas-gallery-card:hover .uvas-gallery-img {
  transform: scale(1.08);
}

.uvas-gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 43, 89, 0.88) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.uvas-gallery-card:hover .uvas-gallery-overlay {
  opacity: 1;
}

.uvas-gallery-title {
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.uvas-gallery-zoom-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #22c55e;
  font-size: 12px;
  font-weight: 700;
}

/* Vanilla JS Lightbox Modal */
.uvas-lightbox-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999999;
  background: rgba(3, 7, 18, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.uvas-lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.uvas-lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.uvas-lightbox-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--uvas-radius-md);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

.uvas-lightbox-img-wrap img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  display: block;
}

.uvas-lightbox-caption-bar {
  margin-top: 18px;
  width: 100%;
  max-width: 800px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #ffffff;
  flex-wrap: wrap;
}

.uvas-lightbox-caption {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  flex: 1;
}

.uvas-lightbox-read-btn {
  background: var(--uvas-accent);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 13.5px;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
}

.uvas-lightbox-read-btn:hover {
  background: var(--uvas-accent-hover);
  transform: translateY(-2px);
}

.uvas-lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s ease;
}

.uvas-lightbox-close:hover {
  background: var(--uvas-crimson);
  border-color: var(--uvas-crimson);
  transform: scale(1.1);
}

.uvas-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.uvas-lightbox-nav:hover {
  background: var(--uvas-accent);
  border-color: var(--uvas-accent);
}

.uvas-lightbox-prev { left: -70px; }
.uvas-lightbox-next { right: -70px; }

@media (max-width: 900px) {
  .uvas-lightbox-prev { left: 10px; }
  .uvas-lightbox-next { right: 10px; }
}

/* ==========================================================================
   7. ADMIN DASHBOARD STYLES (news-admin.php)
   ========================================================================== */
.uvas-admin-wrapper {
  background: #f1f5f9;
  min-height: 100vh;
  padding: 40px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #1e293b;
}

.uvas-admin-container {
  max-width: 1400px;
  margin: 0 auto;
}

.uvas-admin-header {
  background: #ffffff;
  padding: 24px 30px;
  border-radius: var(--uvas-radius-lg);
  box-shadow: var(--uvas-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 16px;
}

.uvas-admin-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 800;
  color: var(--uvas-primary);
  margin: 0;
}

.uvas-admin-btn-primary {
  background: var(--uvas-primary);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--uvas-radius-md);
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.uvas-admin-btn-primary:hover {
  background: var(--uvas-secondary);
  box-shadow: 0 4px 12px rgba(0, 43, 89, 0.3);
}

.uvas-admin-card {
  background: #ffffff;
  border-radius: var(--uvas-radius-lg);
  padding: 30px;
  box-shadow: var(--uvas-shadow-sm);
  margin-bottom: 30px;
}

.uvas-admin-table {
  width: 100%;
  border-collapse: collapse;
}

.uvas-admin-table th,
.uvas-admin-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
}

.uvas-admin-table th {
  background: #f8fafc;
  color: var(--uvas-primary);
  font-weight: 700;
}

.uvas-admin-table tr:hover td {
  background: #f8fafc;
}

.uvas-admin-table-thumb {
  width: 60px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

/* ==========================================================================
   POST NAVIGATION (PREVIOUS & NEXT POST BUTTONS)
   ========================================================================== */
.uvas-post-nav-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 35px;
  padding-top: 28px;
  border-top: 1px solid var(--uvas-border-subtle);
}

.uvas-post-nav-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--uvas-radius-md);
  text-decoration: none !important;
  color: inherit;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 85px;
}

.uvas-post-nav-card:hover {
  background: #ffffff;
  border-color: #16a34a;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.12);
  transform: translateY(-2px);
}

.uvas-post-nav-card.uvas-post-nav-next {
  justify-content: flex-end;
}

.uvas-post-nav-arrow-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #002b59;
  font-size: 15px;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.uvas-post-nav-card:hover .uvas-post-nav-arrow-wrap {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
  transform: scale(1.08);
}

.uvas-post-nav-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex-grow: 1;
}

.uvas-post-nav-badge {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  margin-bottom: 4px;
}

.uvas-post-nav-title {
  font-size: 14px;
  font-weight: 700;
  color: #002b59;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.uvas-post-nav-card:hover .uvas-post-nav-title {
  color: #16a34a !important;
}

.uvas-post-nav-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  .uvas-post-nav-bar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   BOTTOM LATEST POSTS BAR / SECTION
   ========================================================================== */
.uvas-bottom-latest-section {
  margin-top: 55px;
  padding-top: 40px;
  border-top: 2px solid #e2e8f0;
  width: 100%;
}

.uvas-bottom-latest-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 26px;
  flex-wrap: wrap;
  gap: 16px;
}

.uvas-bottom-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #16a34a;
  background: #ecfdf5;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  border: 1px solid #a7f3d0;
}

.uvas-bottom-latest-title {
  font-size: 24px;
  font-weight: 800;
  color: #002b59;
  margin: 0;
  line-height: 1.25;
}

.uvas-bottom-latest-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

@media (max-width: 1200px) {
  .uvas-bottom-latest-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .uvas-bottom-latest-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .uvas-bottom-latest-title {
    font-size: 20px;
  }
}

.uvas-bottom-post-card {
  background: #ffffff;
  border-radius: var(--uvas-radius-md);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 43, 89, 0.04);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.uvas-bottom-post-card:hover {
  transform: translateY(-6px);
  border-color: #16a34a;
  box-shadow: 0 14px 28px rgba(22, 163, 74, 0.12);
}

.uvas-bottom-post-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  background: #0f172a;
}

.uvas-bottom-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.uvas-bottom-post-card:hover .uvas-bottom-post-thumb img {
  transform: scale(1.06);
}

.uvas-bottom-post-thumb .uvas-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-size: 10.5px;
  padding: 3px 8px;
}

.uvas-bottom-post-body {
  padding: 16px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.uvas-bottom-post-date {
  font-size: 11.5px;
  color: var(--uvas-text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
  font-weight: 500;
}

.uvas-bottom-post-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.38;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.uvas-bottom-post-title a {
  color: #002b59;
  text-decoration: none;
  transition: color 0.2s ease;
}

.uvas-bottom-post-card:hover .uvas-bottom-post-title a,
.uvas-bottom-post-title a:hover {
  color: #16a34a !important;
}
