/*
Theme Name: RRD News Plus+
Theme URI: https://planyourshows.com
Author: RRD News Plus+ Digital Engineering
Author URI: https://planyourshows.com/about
Description: A premium, modern, responsive WordPress news portal theme created for RRD News Plus+. Features breaking news ticker, 1+4 hero featured grid, multi-region category blocks (Kerala, Kannur, Kozhikode, Malappuram, Wayanad, Kasaragod, National, International), video news grid, photo gallery with lightbox, reader opinion poll, live market/weather strip, Google NewsArticle schema, multi-language Unicode font support (Malayalam, English, Hindi), and full WordPress Dashboard Theme Options control.
Version: 1.0.5
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: planyourshows-theme
Tags: news, magazine, blog, two-columns, custom-header, custom-menu, featured-images, flexible-header, full-width-template, theme-options, translation-ready, accessibility-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Anek+Malayalam:wght@100..800&display=swap');
/* CSS Variables & Design Tokens */
:root {
  --pys-primary: #c8102e;
  --pys-primary-dark: #9b0b21;
  --pys-navy: #0f172a;
  --pys-slate-900: #0f172a;
  --pys-slate-800: #1e293b;
  --pys-slate-700: #334155;
  --pys-slate-600: #475569;
  --pys-slate-500: #64748b;
  --pys-slate-400: #94a3b8;
  --pys-slate-300: #cbd5e1;
  --pys-slate-200: #e2e8f0;
  --pys-slate-100: #f1f5f9;
  --pys-slate-50: #f8fafc;
  --pys-white: #ffffff;
  
  --pys-accent-gold: #d97706;
  --pys-accent-green: #16a34a;
  --pys-accent-blue: #2563eb;
  
  --pys-font-heading: 'Outfit', 'Noto Sans Malayalam', 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --pys-font-breaking: 'Anek Malayalam', 'Noto Sans Malayalam', var(--pys-font-body);
  --pys-font-body: 'Inter', 'Noto Sans Malayalam', 'Noto Sans Devanagari', system-ui, -apple-system, sans-serif;
  --pys-font-serif: 'Merriweather', Georgia, serif;
  
  --pys-container-max: 1320px;
  --pys-article-max: 820px;
  
  --pys-radius-sm: 6px;
  --pys-radius-md: 10px;
  --pys-radius-lg: 14px;
  
  --pys-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --pys-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.1);
  --pys-shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.15);
  
  --pys-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--pys-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--pys-slate-800);
  background-color: var(--pys-slate-50);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

a {
  color: var(--pys-navy);
  text-decoration: none;
  transition: var(--pys-transition);
}
a:hover {
  color: var(--pys-primary);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pys-font-heading);
  color: var(--pys-slate-900);
  font-weight: 700;
  line-height: 1.25;
}

/* Container */
.pys-container {
  width: 100%;
  max-width: var(--pys-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Top Utility Bar */
.pys-top-bar {
  background: var(--pys-navy);
  color: var(--pys-slate-300);
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.25rem 0;
}
.pys-top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pys-top-bar-left, .pys-top-bar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pys-top-divider { color: rgba(255, 255, 255, 0.2); }
.pys-top-link { color: var(--pys-slate-300); font-weight: 500; }
.pys-top-link:hover { color: #ffffff; }
.pys-top-socials { display: flex; align-items: center; gap: 0.75rem; }
.pys-top-socials a { color: var(--pys-slate-400); font-size: 0.85rem; }
.pys-top-socials a:hover { color: var(--pys-primary); }

/* Compact Sleek Header & Brand Area */
.pys-main-header {
  background: #ffffff;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--pys-slate-200);
}
.pys-main-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-height: 80px;
  overflow: hidden;
}
.pys-brand-title {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pys-navy);
  text-transform: uppercase;
}
.pys-brand-title span { color: var(--pys-primary); }
.pys-brand-tagline {
  font-size: 0.725rem;
  color: var(--pys-slate-500);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Landscape Header Leaderboard Ad Slot (Strict Height Limits - Max 75px) */
.pys-header-ad-area {
  flex-shrink: 0;
  height: 72px !important;
  max-height: 72px !important;
  max-width: 650px;
  overflow: hidden !important;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.pys-header-ad-area .pys-ad-728x90 {
  height: 72px !important;
  max-height: 72px !important;
  max-width: 650px;
  overflow: hidden !important;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.pys-header-ad-area img,
.pys-header-ad-area svg,
.pys-header-ad-area iframe,
.pys-header-ad-area a {
  max-height: 72px !important;
  height: 72px !important;
  width: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  display: block !important;
  margin-left: auto !important;
}
.pys-header-ad-area .pys-house-ad-header {
  position: relative;
  display: block;
  width: 100% !important;
  max-width: 650px !important;
  height: 72px !important;
  overflow: hidden;
  border-radius: 5px;
  background: #ffffff;
}
.pys-header-ad-area .pys-house-ad-header img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 72px !important;
  object-fit: cover !important;
  object-position: center !important;
}
.pys-house-ad-label {
  position: absolute;
  top: .35rem;
  right: .4rem;
  z-index: 1;
  padding: .15rem .35rem;
  border-radius: 3px;
  background: rgba(15, 23, 42, .72);
  color: #fff;
  font-size: .52rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
}
.pys-house-ad-sidebar {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--pys-radius-md);
  background: #fff;
  box-shadow: var(--pys-shadow-sm);
}
.pys-house-ad-sidebar img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 5;
  object-fit: cover;
}

/* Widescreen Landscape 16:9 News Image Aspect Ratios */
.pys-hero-grid img,
.pys-sub-card-img-box img,
.pys-sub-card-img-box,
.pys-news-card img,
.pys-card-img-box img,
.pys-card-img-box,
.pys-article-featured-img img,
.pys-article-featured-img,
.pys-sidebar-popular-img img,
.pys-sidebar-popular-img,
.entry-content img,
.post-thumbnail img,
.wp-post-image,
.pys-district-lead-img img,
.pys-media-card-img img {
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
}

.pys-sub-card-img-box {
  width: 120px !important;
  height: 68px !important;
  aspect-ratio: 16 / 9 !important;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
}

.pys-sidebar-popular-img {
  width: 100px !important;
  height: 56px !important;
  aspect-ratio: 16 / 9 !important;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 6px;
}

/* Primary Navigation Menu */
.pys-primary-nav {
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-top: 1px solid var(--pys-slate-200);
  border-bottom: 1px solid var(--pys-slate-200);
  box-shadow: 0 4px 12px rgba(15,23,42,0.08);
}
.pys-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pys-menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.pys-menu-list > li {
  position: relative;
}
.pys-menu-list > li > a {
  display: block;
  padding: 0.9rem 1.05rem;
  color: #000000;
  background: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: var(--pys-transition);
}
.pys-menu-list > li > a:hover,
.pys-menu-list > li.active > a {
  color: var(--pys-primary);
  background: #ffffff;
  box-shadow: inset 0 -3px 0 var(--pys-primary);
}

/* Submenu Dropdown Styles */
.pys-menu-list li.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pys-menu-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #ffffff;
  border: 1px solid var(--pys-slate-200);
  border-top: 3px solid var(--pys-primary);
  box-shadow: 0 10px 25px rgba(15,23,42,0.15);
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  border-radius: 0 0 8px 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 1001;
}

.pys-menu-list .sub-menu li a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #000000;
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pys-menu-list .sub-menu li a:hover {
  background: var(--pys-slate-100);
  color: var(--pys-primary);
  padding-left: 1.5rem;
}

/* Breaking News Ticker */
/* ------------------------------------------------------------------
   Breaking News 3D text: bold white letter faces with a solid extruded
   side in deep maroon (stacked shadows) plus a soft floor shadow.
   Adjust --pys-3d-side to change the colour of the 3D depth.
------------------------------------------------------------------- */
.pys-breaking-bar {
  --pys-3d-side-1: #8a0b22;
  --pys-3d-side-2: #700919;
  --pys-3d-side-3: #580714;
  --pys-3d-side-4: #40050f;
}
.pys-breaking-bar .pys-breaking-label,
.pys-breaking-bar .pys-breaking-news-word,
.pys-breaking-bar .pys-ticker-kicker,
.pys-breaking-bar .pys-ticker-item,
.pys-breaking-bar .pys-ticker-live {
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
}
/* Headline running text: full-depth 3D extrusion */
.pys-breaking-bar .pys-ticker-item {
  font-weight: 900;
  text-shadow:
    1px 1px 0 var(--pys-3d-side-1),
    2px 2px 0 var(--pys-3d-side-2),
    3px 3px 0 var(--pys-3d-side-3),
    4px 4px 0 var(--pys-3d-side-4),
    5px 8px 9px rgba(0, 0, 0, 0.5);
}
/* BREAKING label: slightly deeper 3D */
.pys-breaking-bar .pys-breaking-label {
  font-weight: 900;
  text-shadow: none;
}
/* Smaller labels: lighter 3D so they stay crisp */
.pys-breaking-bar .pys-ticker-kicker {
  font-weight: 800;
  text-shadow:
    1px 1px 0 var(--pys-3d-side-2),
    2px 2px 0 var(--pys-3d-side-4),
    2px 4px 5px rgba(0, 0, 0, 0.45);
}
/* BREAKING / NEWS badge and LIVE label: plain flat text (no 3D) */
.pys-breaking-bar .pys-breaking-news-word,
.pys-breaking-bar .pys-ticker-live {
  font-weight: 800;
  text-shadow: none;
}
.pys-breaking-bar .pys-ticker-sep {
  text-shadow:
    1px 1px 0 var(--pys-3d-side-3),
    2px 2px 0 var(--pys-3d-side-4),
    2px 4px 5px rgba(0, 0, 0, 0.45);
}

.pys-breaking-bar {
  font-family: var(--pys-font-breaking);
  position: relative;
  z-index: 4;
  background: #c8102e;
  overflow: hidden;
  min-height: 4rem;
  border-top: 3px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0;
  box-shadow: 0 5px 16px rgba(5, 12, 30, 0.2);
}
.pys-breaking-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.pys-breaking-video-overlay {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.pys-breaking-inner {
  position: relative;
  z-index: 2;
}
.pys-breaking-inner {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 4rem;
}
.pys-breaking-badge {
  align-self: stretch;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.48rem;
  min-width: 10.7rem;
  padding: 0.45rem 1.15rem 0.45rem 1rem;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
  clip-path: polygon(0 0, calc(100% - 1.1rem) 0, 100% 50%, calc(100% - 1.1rem) 100%, 0 100%);
}
.pys-breaking-label {
  font-family: var(--pys-font-heading);
  font-size: 1.05rem;
  font-weight: 900;
}
.pys-breaking-news-word {
  font-size: 0.68rem;
  font-weight: 800;
  opacity: 0.85;
  letter-spacing: 0.13em;
}
.pys-live-dot {
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  flex: 0 0 0.48rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  animation: pysLivePulse 1.8s infinite;
}
@keyframes pysBreakingRedShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 50% 50%; }
  100% { background-position: 100% 50%; }
}

@keyframes pysLivePulse {
  0%, 45% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.6); }
  70% { box-shadow: 0 0 0 0.42rem rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}
.pys-breaking-ticker {
  font-weight: 700;
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 4rem;
  padding: 0 0.85rem 0 1rem;
  gap: 0.8rem;
}
.pys-ticker-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #f7c948;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  white-space: nowrap;
}
.pys-ticker-kicker i { font-size: 0.72rem; }
.pys-ticker-divider {
  width: 1px;
  height: 1.35rem;
  flex: 0 0 1px;
  background: rgba(255, 255, 255, 0.2);
}
.pys-marquee-element {
  padding: 0.55rem 0 0.7rem;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  vertical-align: middle;
  display: flex;
  align-items: center;
}
.pys-ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  white-space: nowrap;
  animation: pysRunningText 45s linear infinite;
  will-change: transform;
}
.pys-breaking-ticker:hover .pys-ticker-track {
  animation-play-state: paused;
}
.pys-ticker-sep {
  color: #f7c948;
  font-weight: 800;
  font-size: 0.7rem;
  margin: 0 1.1rem;
}
.pys-ticker-item {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.015em;
  color: #ffffff;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}
.pys-ticker-item:hover { color: #ffe27a; }
.pys-ticker-live {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.pys-ticker-live .pys-live-dot {
  width: 0.38rem;
  height: 0.38rem;
  flex-basis: 0.38rem;
  background: #f7c948;
}

@keyframes pysRunningText {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pys-breaking-bar {
    animation: none;
  }
}

/* Sponsored Banner Advertisement */
.pys-banner-ad {
  background: #f8fafc;
  padding: 0.8rem 0 0.95rem;
  border-bottom: 1px solid var(--pys-slate-200);
}
.pys-banner-ad-link {
  position: relative;
  display: block;
  width: min(100%, 1020px);
  margin: 0 auto;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: var(--pys-radius-md);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
}
.pys-banner-ad-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 7px 18px rgba(15, 23, 42, 0.16);
}
.pys-banner-ad-label {
  position: absolute;
  top: 0.45rem;
  right: 0.5rem;
  z-index: 1;
  padding: 0.18rem 0.42rem;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.pys-banner-ad-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1020 / 315;
  object-fit: cover;
}

/* Homepage Hero 1+4 Grid Layout */
.pys-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1.75rem;
}
.pys-sub-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pys-sub-card-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.85rem;
  border: 1px solid #e2e8f0;
  display: flex;
  gap: 1rem;
  align-items: center;
}
.pys-sub-card-img-box {
  width: 110px;
  height: 80px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.pys-sub-card-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pys-two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Main Content Layout Grid */
.pys-main-content-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.75rem;
  margin-top: 2rem;
  margin-bottom: 5rem;
}

/* Section Box */
.pys-section {
  margin-bottom: 3.5rem;
  background: #ffffff;
  border: 1px solid var(--pys-slate-200);
  border-radius: var(--pys-radius-lg);
  padding: 2.25rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.pys-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 2px solid var(--pys-slate-100);
}
.pys-section-title {
  font-size: 1.45rem;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding-left: 0.85rem;
  border-left: 4px solid var(--pys-primary);
}

/* Completely Hide Default WordPress Core Widgets */
.widget_search,
.widget_recent_entries,
.widget_recent_comments,
.widget_archive,
.widget_categories,
.widget_meta,
.widget_pages,
.wp-block-search,
.wp-block-latest-posts,
.wp-block-latest-comments,
.wp-block-archives,
.wp-block-categories {
  display: none !important;
}

/* Sidebar Widgets */
.pys-sidebar { display: flex; flex-direction: column; gap: 2.25rem; }
.pys-widget {
  background: var(--pys-white);
  border: 1px solid var(--pys-slate-200);
  border-radius: var(--pys-radius-lg);
  padding: 1.75rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}
.pys-widget-title {
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 1.35rem;
  padding-bottom: 0.65rem;
  padding-left: 0.6rem;
  border-left: 3px solid var(--pys-primary);
  border-bottom: 2px solid var(--pys-slate-100);
}

/* Footer Styling */
.pys-site-footer {
  background: #0b1329;
  color: var(--pys-slate-300);
  padding-top: 4rem;
  padding-bottom: 2.75rem;
  border-top: 4px solid var(--pys-primary);
  margin-top: 4.5rem;
}
.pys-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.9fr 1fr 1.1fr;
  gap: 2.75rem;
  margin-bottom: 3.25rem;
}
.pys-footer-direct-contact {
  position: relative;
  display: flex;
  align-items: center;
  gap: .65rem;
  overflow: hidden;
  margin-top: 1.15rem;
  padding: .8rem .75rem;
  border: 1px solid rgba(247, 201, 72, .35);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(200, 16, 46, .26), rgba(15, 23, 42, .72));
  box-shadow: 0 7px 18px rgba(0, 0, 0, .16);
}
.pys-footer-direct-contact::after {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--pys-primary), #f7c948);
  content: "";
}
.pys-footer-direct-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: var(--pys-primary);
  color: #fff;
  font-size: .82rem;
  box-shadow: 0 5px 12px rgba(200, 16, 46, .3);
}
.pys-footer-direct-copy { min-width: 0; }
.pys-footer-direct-label {
  margin: 0 0 .16rem;
  color: #ffffff;
  font-family: 'Noto Sans Malayalam', var(--pys-font-body);
  font-size: .75rem;
  font-weight: 800;
  line-height: 1.45;
}
.pys-footer-direct-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: .18rem;
  margin: 0;
  color: #f7c948;
  font-family: var(--pys-font-heading);
  font-size: .86rem;
  font-weight: 850;
  letter-spacing: .025em;
}
.pys-footer-direct-numbers a { color: #f7c948; text-decoration: none; }
.pys-footer-direct-numbers a:hover { color: #ffffff; text-decoration: underline; }

/* Mobile Navigation Toggle Button (Strictly hidden on desktop) */
.pys-mobile-nav-toggle,
.mode-desktop .pys-mobile-nav-toggle {
  display: none !important;
}

@media (min-width: 769px) {
  .pys-mobile-nav-toggle {
    display: none !important;
  }
  .pys-desktop-menu-wrapper {
    display: flex !important;
    align-items: center;
    width: 100%;
  }
  .pys-menu-list {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
  }
}

/* Responsive Media Queries for Desktop, Tablet, and Mobile Viewports */
@media (max-width: 1024px) {
  .pys-container, .np-container {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
  }
  .pys-main-header-inner, .np-main-header-inner {
    flex-direction: column !important;
    text-align: center !important;
    gap: 1.25rem !important;
  }
  .pys-main-content-layout, .np-main-content-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .pys-footer-grid, .np-footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 2rem !important;
  }
}

@media (max-width: 768px) {
  /* Top Utility Bar Mobile Header Redesign */
  .pys-top-bar {
    padding: 0.6rem 0 !important;
    background: #090d16 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }
  .pys-top-bar-inner, .np-top-bar-inner {
    flex-direction: column !important;
    gap: 0.6rem !important;
    text-align: center !important;
    padding: 0.2rem 0 !important;
  }
  .pys-top-bar-left, .np-top-bar-left {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    width: 100% !important;
  }
  .pys-top-date {
    font-size: 0.775rem !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
  }
  .pys-top-edition {
    font-size: 0.75rem !important;
    color: #cbd5e1 !important;
    font-weight: 600 !important;
    background: rgba(255, 255, 255, 0.06) !important;
    padding: 0.2rem 0.65rem !important;
    border-radius: 4px !important;
    margin-top: 0.15rem !important;
  }
  .pys-top-divider {
    display: none !important;
  }
  .pys-top-bar-right, .np-top-bar-right {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.85rem !important;
    width: 100% !important;
    padding-top: 0.5rem !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
  .pys-top-link {
    font-size: 0.75rem !important;
    color: #cbd5e1 !important;
    font-weight: 600 !important;
  }
  .pys-top-socials {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }
  .pys-top-socials a {
    font-size: 0.85rem !important;
    color: #94a3b8 !important;
  }
  .pys-footer-col > div[style*="display:flex"] {
    justify-content: center !important;
  }

  /* Main Header & Ads (Un-merged Structured Padding & Separation) */
  .pys-main-header {
    background: #ffffff !important;
    padding: 1.5rem 0 1.25rem 0 !important;
    border-bottom: 2px solid var(--pys-slate-200, #e2e8f0) !important;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03) !important;
  }
  .pys-main-header-inner, .np-main-header-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 1.25rem !important;
    max-height: none !important;
    overflow: visible !important;
  }
  .pys-brand-area {
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
  }
  .pys-brand-logo-wrap {
    justify-content: center !important;
    width: 100% !important;
  }
  .pys-site-logo {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
  }
  .pys-brand-logo-wrap img,
  .pys-site-logo img {
    margin: 0 auto !important;
  }
  .pys-brand-title {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: #0f172a !important;
    letter-spacing: -0.01em !important;
    margin-bottom: 0.25rem !important;
    text-align: center !important;
  }
  .pys-brand-tagline {
    font-size: 0.75rem !important;
    color: #64748b !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em !important;
    text-transform: uppercase !important;
    margin-top: 0.25rem !important;
    text-align: center !important;
  }
  .pys-header-ad-area {
    width: 100% !important;
    margin-top: 0.75rem !important;
    padding: 0 0.5rem !important;
  }
  .pys-ad-slot, .np-ad-slot, .pys-ad-728x90 {
    max-width: 100% !important;
    width: 100% !important;
    background: #f8fafc !important;
    border: 1px dashed #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 0.75rem 0.5rem !important;
    text-align: center !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Show Mobile Nav Toggle Button (Attractive Crimson Red Gradient Pill) */
  .pys-primary-nav {
    padding: 0.35rem 0 !important;
  }
  .pys-nav-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
  }
  .pys-mobile-nav-toggle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.65rem !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid var(--pys-slate-300) !important;
    padding: 0.65rem 1.6rem !important;
    font-size: 0.9rem !important;
    font-weight: 800 !important;
    font-family: var(--pys-font-heading, 'Outfit', sans-serif) !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    margin: 0.4rem auto !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1) !important;
    transition: all 0.25s ease !important;
  }
  .pys-mobile-nav-toggle:hover, .pys-mobile-nav-toggle:focus {
    background: #ffffff !important;
    color: var(--pys-primary) !important;
    border-color: var(--pys-primary) !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15) !important;
  }

  /* Mobile Slide-down Centralized Navigation Drawer */
  .pys-desktop-menu-wrapper {
    display: none;
    width: 100% !important;
    background: #ffffff !important;
    border-top: 1px solid var(--pys-slate-200) !important;
    padding: 0.75rem 0 !important;
    text-align: center !important;
  }
  .pys-desktop-menu-wrapper.mobile-active {
    display: block !important;
  }

  .pys-menu-list, .np-menu-list {
    flex-direction: column !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .pys-menu-list > li, .np-menu-list > li {
    width: 100% !important;
    text-align: center !important;
  }
  .pys-menu-list > li > a, .np-menu-list > li > a {
    padding: 0.85rem 1rem !important;
    border-bottom: 1px solid var(--pys-slate-200) !important;
    background: #ffffff !important;
    box-shadow: none !important;
    font-size: 0.925rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
    color: #000000 !important;
  }
  .pys-menu-list > li > a:hover, .pys-menu-list > li.active > a {
    color: var(--pys-primary) !important;
    background: var(--pys-slate-50) !important;
    box-shadow: none !important;
  }
  .pys-menu-list,
  .pys-menu-list > li,
  .pys-menu-list .sub-menu,
  .pys-menu-list .sub-menu li,
  .pys-menu-list > li > a,
  .pys-menu-list .sub-menu li a {
    text-align: center !important;
  }
  .pys-menu-list > li > a,
  .pys-menu-list .sub-menu li a {
    justify-content: center !important;
  }
  .pys-menu-list .sub-menu, .np-menu-list .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: var(--pys-slate-50) !important;
    box-shadow: none !important;
    border-top: 2px solid var(--pys-primary, #c8102e) !important;
    border-bottom: 2px solid var(--pys-primary, #c8102e) !important;
    border-left: none !important;
    border-radius: 0 !important;
    padding: 0.5rem 0 !important;
    margin: 0.35rem 0 !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }
  .pys-menu-list .sub-menu li, .np-menu-list .sub-menu li {
    width: 100% !important;
    text-align: center !important;
  }
  .pys-menu-list .sub-menu li a, .np-menu-list .sub-menu li a {
    padding: 0.6rem 1rem !important;
    color: #000000 !important;
    background: transparent !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }
  .pys-menu-list .sub-menu li a:hover {
    padding-left: 1rem !important;
    background: var(--pys-slate-100) !important;
    color: var(--pys-primary) !important;
  }

  /* Breaking Ticker Mobile Fix */
  .pys-breaking-bar {
    background: #c8102e !important;
    border-top: 3px solid var(--pys-primary) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding: 0 !important;
  }
  .pys-breaking-inner, .np-breaking-inner {
    flex-direction: column !important;
    align-items: center !important;
    gap: 0 !important;
  }
  .pys-breaking-badge, .np-breaking-badge {
    align-self: center !important;
    min-width: 0 !important;
    width: auto !important;
    min-height: 2.5rem !important;
    background: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    padding: 0.35rem 1.05rem !important;
    clip-path: none !important;
    border-radius: 0 0 6px 6px !important;
  }
  .pys-breaking-ticker, .np-breaking-ticker {
    width: 100% !important;
    overflow: hidden !important;
    min-height: 2.95rem !important;
    padding: 0 0.5rem !important;
    gap: 0.5rem !important;
  }
  .pys-ticker-kicker {
    display: none !important;
  }
  .pys-ticker-divider {
    display: none !important;
  }
  .pys-ticker-item {
    font-size: 1rem !important;
    text-shadow:
      1px 1px 0 var(--pys-3d-side-2),
      2px 2px 0 var(--pys-3d-side-3),
      3px 3px 0 var(--pys-3d-side-4),
      3px 6px 7px rgba(0, 0, 0, 0.45) !important;
  }

  /* Homepage Hero Grid & Card Grid Stacking */
  .pys-hero-grid, .np-featured-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    width: 100% !important;
  }

  .pys-hero-main-card, .np-hero-main-card {
    width: 100% !important;
    min-width: 0 !important;
  }

  .pys-sub-cards-stack, .np-hero-sub-grid {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
  }

  .pys-sub-card-item, .np-sub-card {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .pys-sub-card-img-box, .np-sub-img {
    width: 100% !important;
    height: 180px !important;
    flex-shrink: 0 !important;
  }

  .pys-two-col-grid, .np-grid-3col {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    width: 100% !important;
  }

  /* Keep every news listing easy to scan on mobile. */
  .pys-local-news-grid,
  .pys-primary-content > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
    width: 100% !important;
  }

  .pys-main-content-layout, .np-main-content-layout {
    grid-template-columns: 1fr !important;
    width: 100% !important;
  }

  .pys-section, .np-section {
    padding: 1.15rem !important;
    margin-bottom: 1.75rem !important;
    width: 100% !important;
  }

  /* Footer Grid Stack */
  .pys-footer-grid, .np-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    text-align: center !important;
  }
}

@media (max-width: 480px) {
  .pys-container, .np-container {
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  .pys-brand-title {
    font-size: 1.5rem !important;
  }
  .pys-sub-card-img-box, .np-sub-img {
    width: 100% !important;
    height: 160px !important;
  }
  .pys-ad-slot, .np-ad-slot, img, iframe {
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Also apply Mobile Responsiveness inside Viewport Wrapper Preview Modes (.mode-mobile, .mode-tablet) */
.mode-mobile .pys-top-bar-inner, .mode-mobile .np-top-bar-inner,
.mode-tablet .pys-top-bar-inner, .mode-tablet .np-top-bar-inner {
  flex-direction: column !important;
  gap: 0.5rem !important;
  text-align: center !important;
}
.mode-mobile .pys-top-bar-left, .mode-mobile .pys-top-bar-right,
.mode-mobile .np-top-bar-left, .mode-mobile .np-top-bar-right,
.mode-tablet .pys-top-bar-left, .mode-tablet .pys-top-bar-right,
.mode-tablet .np-top-bar-left, .mode-tablet .np-top-bar-right {
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}
.mode-mobile .pys-top-divider, .mode-tablet .pys-top-divider {
  display: none !important;
}

.mode-mobile .pys-main-header-inner, .mode-mobile .np-main-header-inner,
.mode-tablet .pys-main-header-inner, .mode-tablet .np-main-header-inner {
  flex-direction: column !important;
  text-align: center !important;
  max-height: none !important;
  overflow: visible !important;
}

.mode-mobile .pys-brand-area, .mode-tablet .pys-brand-area {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
}
.mode-mobile .pys-brand-logo-wrap, .mode-tablet .pys-brand-logo-wrap {
  justify-content: center !important;
  width: 100% !important;
}
.mode-mobile .pys-site-logo, .mode-tablet .pys-site-logo {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
}
.mode-mobile .pys-brand-logo-wrap img, .mode-tablet .pys-brand-logo-wrap img,
.mode-mobile .pys-site-logo img, .mode-tablet .pys-site-logo img {
  margin: 0 auto !important;
}

.mode-mobile .pys-mobile-nav-toggle,
.mode-tablet .pys-mobile-nav-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.6rem !important;
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid var(--pys-slate-300) !important;
  padding: 0.65rem 1.4rem !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  font-family: var(--pys-font-heading, 'Outfit', sans-serif) !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  margin: 0.6rem auto !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1) !important;
}

.mode-mobile .pys-nav-inner,
.mode-tablet .pys-nav-inner {
  flex-direction: column !important;
  align-items: stretch !important;
}

.mode-mobile .pys-desktop-menu-wrapper,
.mode-tablet .pys-desktop-menu-wrapper {
  display: none;
  width: 100% !important;
}
.mode-mobile .pys-desktop-menu-wrapper.mobile-active,
.mode-tablet .pys-desktop-menu-wrapper.mobile-active {
  display: block !important;
}

.mode-mobile .pys-menu-list, .mode-mobile .np-menu-list,
.mode-tablet .pys-menu-list, .mode-tablet .np-menu-list {
  flex-direction: column !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.mode-mobile .pys-menu-list > li > a, .mode-mobile .np-menu-list > li > a,
.mode-tablet .pys-menu-list > li > a, .mode-tablet .np-menu-list > li > a {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  display: flex !important;
  width: 100% !important;
}

.mode-mobile .pys-menu-list .sub-menu, .mode-mobile .np-menu-list .sub-menu,
.mode-tablet .pys-menu-list .sub-menu, .mode-tablet .np-menu-list .sub-menu {
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  background: var(--pys-slate-50) !important;
  box-shadow: none !important;
  border-top: 2px solid var(--pys-primary, #c8102e) !important;
  border-bottom: 2px solid var(--pys-primary, #c8102e) !important;
  border-left: none !important;
  border-radius: 0 !important;
  padding: 0.5rem 0 !important;
  margin: 0.35rem 0 !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
}

.mode-mobile .pys-menu-list .sub-menu li a, .mode-mobile .np-menu-list .sub-menu li a,
.mode-tablet .pys-menu-list .sub-menu li a, .mode-tablet .np-menu-list .sub-menu li a {
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
  display: flex !important;
  width: 100% !important;
}

.mode-mobile .pys-breaking-inner, .mode-mobile .np-breaking-inner,
.mode-tablet .pys-breaking-inner, .mode-tablet .np-breaking-inner {
  flex-direction: column !important;
  align-items: flex-start !important;
}

.mode-mobile .np-live-strip-inner, .mode-tablet .np-live-strip-inner {
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}

.mode-mobile .pys-hero-grid, .mode-mobile .np-featured-hero-grid,
.mode-tablet .pys-hero-grid, .mode-tablet .np-featured-hero-grid {
  grid-template-columns: 1fr !important;
  width: 100% !important;
}

.mode-mobile .pys-hero-main-card, .mode-mobile .np-hero-main-card,
.mode-tablet .pys-hero-main-card, .mode-tablet .np-hero-main-card {
  width: 100% !important;
  min-width: 0 !important;
}

.mode-mobile .pys-sub-cards-stack, .mode-mobile .np-hero-sub-grid,
.mode-tablet .pys-sub-cards-stack, .mode-tablet .np-hero-sub-grid {
  width: 100% !important;
  min-width: 0 !important;
  flex-direction: column !important;
}

.mode-mobile .pys-sub-card-item, .mode-mobile .np-sub-card,
.mode-tablet .pys-sub-card-item, .mode-tablet .np-sub-card {
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
}

.mode-mobile .pys-sub-card-img-box, .mode-mobile .np-sub-img,
.mode-tablet .pys-sub-card-img-box, .mode-tablet .np-sub-img {
  width: 100% !important;
  height: 180px !important;
}

.mode-mobile .pys-two-col-grid, .mode-mobile .np-grid-3col,
.mode-tablet .pys-two-col-grid, .mode-tablet .np-grid-3col {
  grid-template-columns: 1fr !important;
  width: 100% !important;
}

.mode-mobile .pys-main-content-layout, .mode-mobile .np-main-content-layout,
.mode-tablet .pys-main-content-layout, .mode-tablet .np-main-content-layout {
  grid-template-columns: 1fr !important;
  width: 100% !important;
}

.mode-mobile .pys-footer-grid, .mode-mobile .np-footer-grid,
.mode-tablet .pys-footer-grid, .mode-tablet .np-footer-grid {
  grid-template-columns: 1fr !important;
  width: 100% !important;
}

.mode-mobile .pys-ad-slot, .mode-mobile .np-ad-slot, .mode-mobile .pys-ad-728x90,
.mode-tablet .pys-ad-slot, .mode-tablet .np-ad-slot, .mode-tablet .pys-ad-728x90 {
  max-width: 100% !important;
  width: 100% !important;
  overflow: hidden !important;
}




/* Branded magazine CTA between the breaking ticker and page content */
.pys-magazine-bar { background: linear-gradient(115deg, #fffaf1 0%, #fff 48%, #f7f1ff 100%); border-bottom: 1px solid #eadfd3; padding: .9rem 0; }
.pys-magazine-card { display: grid; grid-template-columns: 180px minmax(0, 1fr) 92px; align-items: center; gap: 1.25rem; min-height: 106px; overflow: hidden; position: relative; color: var(--pys-slate-800); text-decoration: none; background: linear-gradient(105deg, #17233a 0%, #213452 58%, #2d2250 100%); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: .7rem .8rem .7rem 1rem; box-shadow: 0 10px 24px rgba(24,35,58,.16); transition: transform .25s ease, box-shadow .25s ease; }
.pys-magazine-card::after { content: ''; position: absolute; width: 210px; height: 210px; right: 35px; top: -130px; border-radius: 50%; background: rgba(255,255,255,.08); pointer-events: none; }
.pys-magazine-card:hover, .pys-magazine-card:focus-visible { color: var(--pys-slate-800); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(24,35,58,.24); }
.pys-magazine-card:focus-visible { outline: 3px solid rgba(200,16,46,.35); outline-offset: 3px; }
.pys-magazine-brand-panel { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .25rem; min-height: 88px; padding: .45rem; border-right: 1px solid rgba(255,255,255,.18); }
.pys-magazine-brand-kicker { color: #f4d58b; font-size: .54rem; font-weight: 800; letter-spacing: .1em; text-align: center; text-transform: uppercase; }
.pys-magazine-logo { display: block; width: 102px; height: 68px; object-fit: contain; mix-blend-mode: screen; }
.pys-magazine-copy { display: flex; align-items: flex-start; flex-direction: column; gap: .25rem; min-width: 0; position: relative; z-index: 1; }
.pys-magazine-kicker { color: #f3cf76; font-size: .62rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pys-magazine-copy strong { color: #fff; font-size: 1.1rem; line-height: 1.25; }
.pys-magazine-description { max-width: 640px; color: rgba(255,255,255,.76); font-size: .78rem; line-height: 1.45; }
.pys-magazine-meta { color: rgba(255,255,255,.7); font-size: .67rem; font-weight: 700; }
.pys-magazine-meta i { color: #f3cf76; margin-right: .2rem; }
.pys-magazine-meta b { color: rgba(255,255,255,.4); padding: 0 .22rem; }
.pys-magazine-link { display: inline-flex; align-items: center; gap: .45rem; margin-top: .25rem; background: #c8102e; border-radius: 999px; color: #fff; font-size: .73rem; font-weight: 800; padding: .48rem .85rem; white-space: nowrap; box-shadow: 0 5px 12px rgba(0,0,0,.18); }
.pys-magazine-card:hover .pys-magazine-link { background: #e21b3d; }
.pys-magazine-cover-wrap { align-self: stretch; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.pys-magazine-cover { width: 68px; height: 92px; object-fit: cover; border: 2px solid rgba(255,255,255,.7); border-radius: 4px; box-shadow: 0 7px 14px rgba(0,0,0,.28); transform: rotate(3deg); transition: transform .25s ease; }
.pys-magazine-card:hover .pys-magazine-cover { transform: rotate(0deg) scale(1.04); }
.pys-magazine-cover-badge { position: absolute; right: -.1rem; bottom: .5rem; background: #f3cf76; border-radius: 3px; color: #17233a; font-size: .48rem; font-weight: 900; line-height: 1.05; padding: .25rem .28rem; text-align: center; }
.pys-magazine-card .pys-magazine-kicker, .pys-magazine-card .pys-magazine-link { white-space: nowrap; }
.pys-magazine-card .pys-magazine-link i { font-size: .68rem; }
.pys-magazine-card .pys-magazine-logo, .pys-magazine-card .pys-magazine-cover { flex-shrink: 0; }
.pys-magazine-card .pys-magazine-copy strong, .pys-magazine-card .pys-magazine-description, .pys-magazine-card .pys-magazine-meta { display: block; }
.pys-magazine-card .pys-magazine-link, .pys-magazine-card .pys-magazine-link:hover { color: #fff; }
.pys-magazine-card .pys-magazine-brand-panel, .pys-magazine-card .pys-magazine-copy, .pys-magazine-card .pys-magazine-cover-wrap { min-width: 0; }
.pys-magazine-card .pys-magazine-copy strong { margin: 0; }
.pys-magazine-card .pys-magazine-description { margin: 0; }
.pys-magazine-card .pys-magazine-meta { margin: 0; }
.pys-magazine-card .pys-magazine-link { text-decoration: none; }
.pys-magazine-card .pys-magazine-brand-panel { color: #fff; }
.pys-magazine-card .pys-magazine-cover-badge { pointer-events: none; }
.pys-magazine-card .pys-magazine-cover-wrap { min-height: 92px; }
.pys-magazine-card .pys-magazine-logo { max-width: 100%; }
.pys-magazine-card .pys-magazine-cover { max-width: 100%; }
.pys-magazine-card .pys-magazine-copy { justify-content: center; }
.pys-magazine-card .pys-magazine-meta, .pys-magazine-card .pys-magazine-description { overflow-wrap: anywhere; }
.pys-magazine-card .pys-magazine-brand-kicker { line-height: 1.15; }
.pys-magazine-card .pys-magazine-link { align-self: flex-start; }
.pys-magazine-card .pys-magazine-cover-wrap { justify-self: end; }
.pys-malayalam-copy { font-family: 'Noto Sans Malayalam', var(--pys-font-body); line-height: 1.75; }
.pys-local-news-section { margin-top: 0; }
.pys-local-news-section .pys-section-header { align-items: flex-end; }
.pys-local-news-section .pys-section-title { margin-top: .25rem; }
.pys-local-news-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.pys-local-news-card { overflow: hidden; border: 1px solid var(--pys-slate-200); border-radius: var(--pys-radius-md); background: #fff; box-shadow: var(--pys-shadow-sm); transition: var(--pys-transition); }
.pys-local-news-card:hover { box-shadow: var(--pys-shadow-md); transform: translateY(-3px); }
.pys-local-news-image { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--pys-slate-100); }
.pys-local-news-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pys-local-news-card:hover .pys-local-news-image img { transform: scale(1.04); }
.pys-local-news-body { padding: 1rem; }
.pys-local-news-meta { color: var(--pys-primary); display: block; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pys-local-news-body h3 { font-size: 1rem; line-height: 1.4; margin: .4rem 0 .35rem; }
.pys-local-news-body p { color: var(--pys-slate-600); font-size: .82rem; margin: 0; }
.pys-video-feature { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden; margin-bottom: 1rem; border: 1px solid #e2e8f0; background: #0b1329; }
.pys-video-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.pys-video-list-item { display: flex; gap: .7rem; align-items: center; min-width: 0; border: 1px solid var(--pys-slate-200); border-radius: 8px; padding: .5rem; background: #fff; }
.pys-video-list-item img { width: 92px; aspect-ratio: 16/9; border-radius: 5px; object-fit: cover; flex-shrink: 0; }
.pys-video-list-item span { min-width: 0; }
.pys-video-list-item strong { color: var(--pys-slate-800); display: block; font-size: .78rem; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.pys-video-list-item small { color: var(--pys-primary); display: block; font-size: .67rem; font-weight: 700; margin-top: .3rem; }
@media (max-width: 900px) { .pys-local-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pys-video-list { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .pys-magazine-bar { padding: .65rem 0; } .pys-magazine-card { grid-template-columns: 70px minmax(0, 1fr); gap: .75rem; padding: .65rem; } .pys-magazine-brand-panel { min-height: 82px; padding: .2rem; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); } .pys-magazine-brand-kicker { font-size: .43rem; } .pys-magazine-logo { width: 58px; height: 54px; } .pys-magazine-copy { gap: .18rem; } .pys-magazine-kicker { font-size: .5rem; } .pys-magazine-copy strong { font-size: .84rem; } .pys-magazine-description { font-size: .68rem; line-height: 1.3; } .pys-magazine-meta { font-size: .58rem; } .pys-magazine-link { font-size: .65rem; padding: .42rem .7rem; } .pys-magazine-cover-wrap { display: none; } .pys-local-news-grid { grid-template-columns: 1fr; } .pys-local-news-image { aspect-ratio: 16/9; } .pys-section-header { align-items: flex-start !important; gap: .65rem; } }


/* Main video: always render as a landscape 16:9 player, including on mobile. */
.pys-video-feature {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  position: relative !important;
  overflow: hidden !important;
}
.pys-video-feature iframe,
.mode-mobile .pys-video-feature iframe,
.mode-tablet .pys-video-feature iframe {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
}


/* Local News spacing refinement */
.pys-local-news-section {
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
  padding: 1.35rem !important;
}
.pys-local-news-section .pys-section-header {
  margin-bottom: 1rem !important;
  padding-bottom: .65rem !important;
}
.pys-local-news-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1rem !important;
}
.pys-local-news-card {
  display: grid;
  grid-template-columns: minmax(150px, 38%) 1fr;
  align-items: stretch;
  min-width: 0;
}
.pys-local-news-image {
  height: 100%;
  min-height: 150px;
  aspect-ratio: auto;
}
.pys-local-news-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .85rem 1rem;
  min-width: 0;
}
.pys-local-news-body h3 {
  font-size: .98rem;
  line-height: 1.45;
  margin: .3rem 0 .25rem;
}
.pys-local-news-body p {
  font-size: .8rem;
  line-height: 1.65;
}
@media (max-width: 768px) {
  .pys-local-news-section { padding: 1rem !important; }
  .pys-local-news-grid { grid-template-columns: 1fr !important; gap: .75rem !important; }
  .pys-local-news-card { grid-template-columns: 110px 1fr; }
  .pys-local-news-image { min-height: 96px; }
  .pys-local-news-body { padding: .65rem .75rem; }
  .pys-local-news-body h3 { font-size: .9rem; line-height: 1.35; }
  .pys-local-news-body p { display: none; }
}


/* Contact Us professional two-column layout */
.pys-contact-page {
  background: linear-gradient(180deg, var(--pys-slate-50) 0%, #fff 40%);
  padding: 4.5rem 0 5.5rem;
}
.pys-contact-hero { max-width: 760px; margin: 0 auto 3.25rem; text-align: center; }
.pys-contact-kicker, .pys-contact-eyebrow { color: var(--pys-primary); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.pys-contact-kicker { margin: 0 0 .85rem; }
.pys-contact-title { color: var(--pys-navy); font-size: clamp(2.35rem, 5vw, 4rem); line-height: 1.05; margin: 0 0 1rem; font-weight: 850; letter-spacing: -.045em; }
.pys-contact-lead { color: var(--pys-slate-600); font-size: 1.08rem; line-height: 1.75; margin: 0 auto; max-width: 650px; }
.pys-contact-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 5.5rem); max-width: 1120px; margin: 0 auto; align-items: start; }
.pys-contact-info-panel { padding: 2rem 0; }
.pys-contact-info-heading { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.pys-contact-heading-icon { width: 50px; height: 50px; flex: 0 0 50px; display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; color: #fff; background: var(--pys-primary); box-shadow: 0 10px 20px rgba(200,16,46,.18); }
.pys-contact-info-heading h2, .pys-contact-form-panel h2 { color: var(--pys-navy); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.15; margin: .25rem 0 0; font-weight: 800; letter-spacing: -.025em; }
.pys-contact-page-content { color: var(--pys-slate-600); font-size: 1rem; line-height: 1.8; margin-bottom: 2rem; }
.pys-contact-page-content:empty { display: none; }
.pys-contact-page-content p { margin: 0 0 1rem; }
.pys-contact-details { display: grid; gap: 1.2rem; }
.pys-contact-detail-row { display: flex; gap: .95rem; align-items: flex-start; padding: .75rem 0; }
.pys-contact-detail-icon { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; background: #fff0f2; color: var(--pys-primary); display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; }
.pys-contact-detail-row h3 { color: var(--pys-slate-900); font-size: .95rem; margin: .1rem 0 .2rem; font-weight: 800; }
.pys-contact-detail-row p { color: var(--pys-slate-600); font-size: .94rem; line-height: 1.6; margin: 0; }
.pys-contact-detail-row a { color: var(--pys-slate-700); text-decoration: none; }
.pys-contact-detail-row a:hover { color: var(--pys-primary); }
.pys-contact-direct-line {
  position: relative;
  display: flex;
  align-items: center;
  gap: .9rem;
  overflow: hidden;
  margin: .25rem 0 .35rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid rgba(200, 16, 46, .2);
  border-radius: 14px;
  background: linear-gradient(135deg, #fff5f6 0%, #ffffff 58%, #fff0f2 100%);
  box-shadow: 0 9px 22px rgba(200, 16, 46, .1);
}
.pys-contact-direct-line::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #e21b3c, #9b0b21);
  content: "";
}
.pys-contact-direct-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e21b3c, #a20b24);
  color: #ffffff;
  font-size: 1.05rem;
  box-shadow: 0 7px 14px rgba(200, 16, 46, .22);
}
.pys-contact-direct-copy { min-width: 0; }
.pys-contact-direct-label {
  margin: 0 0 .28rem;
  color: var(--pys-slate-800);
  font-family: 'Noto Sans Malayalam', var(--pys-font-body);
  font-size: .98rem;
  font-weight: 800;
  line-height: 1.45;
}
.pys-contact-direct-numbers {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  margin: 0;
  font-family: var(--pys-font-heading);
  font-size: 1.12rem;
  font-weight: 850;
  letter-spacing: .035em;
}
.pys-contact-direct-numbers a { color: var(--pys-primary-dark); text-decoration: none; }
.pys-contact-direct-numbers a:hover { color: var(--pys-primary); text-decoration: underline; }
.pys-contact-form-card { background: #fff; border: 1px solid var(--pys-slate-200); border-radius: 18px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--pys-shadow-lg); }
.pys-contact-form-panel h2 { margin-bottom: .7rem; }
.pys-contact-form-intro { color: var(--pys-slate-500); font-size: .98rem; line-height: 1.7; margin: 0 0 1.8rem; }
.pys-contact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.pys-form-field { margin-bottom: 1.15rem; }
.pys-form-field label { display: block; color: var(--pys-slate-800); font-size: .83rem; font-weight: 750; margin-bottom: .45rem; }
.pys-form-field label span { color: var(--pys-primary); }
.pys-form-field input, .pys-form-field select, .pys-form-field textarea { width: 100%; box-sizing: border-box; border: 1px solid var(--pys-slate-200); border-radius: 9px; background: var(--pys-slate-50); color: var(--pys-slate-800); font: inherit; font-size: .92rem; padding: .82rem .9rem; outline: none; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
.pys-form-field input, .pys-form-field select { min-height: 48px; }
.pys-form-field textarea { min-height: 135px; resize: vertical; }
.pys-form-field input::placeholder, .pys-form-field textarea::placeholder { color: var(--pys-slate-400); }
.pys-form-field input:focus, .pys-form-field select:focus, .pys-form-field textarea:focus { background: #fff; border-color: var(--pys-primary); box-shadow: 0 0 0 3px rgba(200,16,46,.11); }
.pys-contact-submit { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 0; border-radius: 8px; background: var(--pys-primary); color: #fff; cursor: pointer; font-size: .92rem; font-weight: 800; padding: .85rem 1.35rem; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.pys-contact-submit:hover { background: var(--pys-primary-dark); box-shadow: 0 8px 18px rgba(200,16,46,.18); transform: translateY(-1px); }
.pys-contact-form-note { color: var(--pys-slate-400); font-size: .76rem; margin: 1rem 0 0; }
.pys-contact-form-note i { margin-right: .3rem; }
@media (max-width: 800px) { .pys-contact-page { padding: 3.5rem 0 4rem; } .pys-contact-hero { margin-bottom: 2rem; } .pys-contact-layout { grid-template-columns: 1fr; gap: 1rem; } .pys-contact-info-panel { padding: 1rem 0; } }
@media (max-width: 520px) { .pys-contact-form-grid { grid-template-columns: 1fr; } .pys-contact-title { font-size: 2.5rem; } .pys-contact-form-card { border-radius: 14px; padding: 1.25rem; } .pys-contact-direct-line { align-items: flex-start; padding: .9rem; } .pys-contact-direct-icon { width: 40px; height: 40px; flex-basis: 40px; } .pys-contact-direct-label { font-size: .85rem; } .pys-contact-direct-numbers { font-size: .98rem; } }


/* In-content Google AdSense banner (homepage, between Latest News and Video Report) */
.pys-inline-ad-section {
  padding: 1rem 1.25rem 1.25rem;
  text-align: center;
  overflow: hidden;
}
.pys-inline-ad-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pys-slate-400);
}
.pys-inline-ad-slot {
  display: block;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
}
.pys-inline-ad-slot ins,
.pys-inline-ad-slot iframe,
.pys-inline-ad-slot img {
  max-width: 100%;
}
.pys-inline-ad-placeholder {
  border: 2px dashed #cbd5e1;
  background: #f8fafc;
}
.pys-inline-ad-placeholder .pys-inline-ad-slot {
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  color: var(--pys-slate-500);
}
@media (max-width: 768px) {
  .pys-inline-ad-section {
    padding: 0.85rem 0.6rem 1rem !important;
  }
}

/* In-content poster banner (used when no AdSense code is pasted) */
.pys-inline-ad-poster {
  display: block;
  max-width: 100%;
}
.pys-inline-ad-slot img.pys-inline-ad-poster,
.pys-inline-ad-poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  aspect-ratio: auto !important;
  object-fit: contain !important;
}

/* =========================================================================
   Media Manager: Video News & Photo Gallery (listing + single pages)
   ========================================================================= */
.pys-media-wrap { min-width: 0; }

.pys-media-hero-head {
  background: linear-gradient(135deg, var(--pys-navy) 0%, #1e293b 100%);
  color: #fff;
  border-radius: var(--pys-radius-lg);
  padding: 2rem 2rem 1.9rem;
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  border-left: 6px solid var(--pys-primary);
}
.pys-media-hero-head::after {
  content: "";
  position: absolute; right: -60px; top: -60px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(200,16,46,.35), transparent 70%);
}
.pys-media-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #fecdd3;
}
.pys-media-hero-head h1 {
  margin: .35rem 0 .4rem; font-size: 2.1rem; line-height: 1.15; font-weight: 800; color: #fff;
  text-transform: uppercase; letter-spacing: .01em;
}
.pys-media-hero-head p { margin: 0; color: #cbd5e1; font-size: .95rem; max-width: 46rem; }

/* Tabs + category chips */
.pys-media-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .9rem; }
.pys-media-tabs a {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: .9rem;
  background: #fff; color: var(--pys-slate-700); border: 1px solid var(--pys-slate-200);
  text-decoration: none; transition: var(--pys-transition);
}
.pys-media-tabs a:hover { border-color: var(--pys-primary); color: var(--pys-primary); }
.pys-media-tabs a.is-active { background: var(--pys-primary); border-color: var(--pys-primary); color: #fff; box-shadow: 0 6px 16px rgba(200,16,46,.28); }
.pys-media-chips { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.pys-media-chips a {
  font-size: .78rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px;
  background: var(--pys-slate-100); color: var(--pys-slate-600); text-decoration: none; transition: var(--pys-transition);
}
.pys-media-chips a:hover, .pys-media-chips a.is-active { background: var(--pys-navy); color: #fff; }

/* Featured item */
.pys-media-featured {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 0; margin-bottom: 1.75rem;
  background: var(--pys-navy); border-radius: var(--pys-radius-lg); overflow: hidden;
  text-decoration: none; color: #fff; box-shadow: var(--pys-shadow-md); transition: var(--pys-transition);
}
.pys-media-featured:hover { transform: translateY(-2px); box-shadow: var(--pys-shadow-lg); }
.pys-media-featured-img { position: relative; display: block; aspect-ratio: 16 / 9; background: #1e293b; overflow: hidden; }
.pys-media-featured-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pys-media-featured:hover .pys-media-featured-img img { transform: scale(1.04); }
.pys-media-featured-body { display: flex; flex-direction: column; justify-content: center; gap: .8rem; padding: 1.75rem; }
.pys-media-featured-label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #fda4af; }
.pys-media-featured-title { font-family: var(--pys-font-heading); font-size: 1.55rem; line-height: 1.3; font-weight: 700; }
.pys-media-featured-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: #cbd5e1; }
.pys-media-featured-meta i { margin-right: .3rem; color: #94a3b8; }

/* Card grid */
.pys-media-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.pys-media-grid.is-three { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.pys-media-card {
  background: #fff; border: 1px solid var(--pys-slate-200); border-radius: var(--pys-radius-md);
  overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 4px 15px rgba(15,23,42,.04); transition: var(--pys-transition);
}
.pys-media-card:hover { transform: translateY(-4px); box-shadow: var(--pys-shadow-lg); border-color: var(--pys-slate-300); }
.pys-media-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pys-slate-100); }
.pys-media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.pys-media-card:hover .pys-media-thumb img { transform: scale(1.06); }
.pys-media-thumb-placeholder {
  display: flex; align-items: center; justify-content: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, #1e293b, #334155); color: #64748b; font-size: 2.4rem;
}
.pys-media-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 3.4rem; height: 3.4rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(200,16,46,.94); color: #fff; font-size: 1.05rem; padding-left: .2rem;
  box-shadow: 0 0 0 6px rgba(255,255,255,.28), 0 8px 20px rgba(0,0,0,.35); transition: var(--pys-transition);
}
.pys-media-play.is-large { width: 4.6rem; height: 4.6rem; font-size: 1.4rem; }
.pys-media-card:hover .pys-media-play, .pys-media-featured:hover .pys-media-play { transform: translate(-50%, -50%) scale(1.1); background: var(--pys-primary); }
.pys-media-badge {
  position: absolute; right: .6rem; bottom: .6rem;
  background: rgba(15,23,42,.85); color: #fff; font-size: .72rem; font-weight: 700;
  padding: .22rem .55rem; border-radius: 4px; backdrop-filter: blur(4px);
}
.pys-media-badge i { margin-right: .25rem; }
.pys-media-card-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex-grow: 1; }
.pys-media-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .74rem; color: var(--pys-slate-500); }
.pys-media-cat { color: var(--pys-primary); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.pys-media-card-title { font-size: 1.02rem; line-height: 1.4; font-weight: 700; margin: 0; }
.pys-media-card-title a { color: var(--pys-navy); text-decoration: none; }
.pys-media-card-title a:hover { color: var(--pys-primary); }

.pys-media-pagination { margin-top: 2rem; text-align: center; }
.pys-media-pagination .nav-links { display: inline-flex; flex-wrap: wrap; gap: .35rem; justify-content: center; }
.pys-media-pagination .page-numbers {
  min-width: 2.3rem; padding: .5rem .8rem; border-radius: 6px; background: #fff; border: 1px solid var(--pys-slate-200);
  color: var(--pys-slate-700); font-weight: 600; text-decoration: none;
}
.pys-media-pagination .page-numbers.current, .pys-media-pagination .page-numbers:hover { background: var(--pys-primary); border-color: var(--pys-primary); color: #fff; }
.pys-media-pagination .screen-reader-text { display: none; }

.pys-media-empty {
  text-align: center; padding: 3.5rem 1.5rem; background: #fff; border: 2px dashed var(--pys-slate-300);
  border-radius: var(--pys-radius-lg); color: var(--pys-slate-500);
}
.pys-media-empty i { font-size: 2.6rem; color: var(--pys-slate-300); margin-bottom: .75rem; }
.pys-media-empty h2 { font-size: 1.2rem; color: var(--pys-navy); margin: 0 0 .35rem; }
.pys-media-empty p { margin: 0; font-size: .9rem; }

/* Single pages */
.pys-media-breadcrumb { display: flex; gap: .5rem; align-items: center; font-size: .8rem; color: var(--pys-slate-500); margin-bottom: 1rem; }
.pys-media-breadcrumb a { color: var(--pys-slate-600); text-decoration: none; font-weight: 600; }
.pys-media-breadcrumb a:hover { color: var(--pys-primary); }
.pys-media-single { background: #fff; border: 1px solid var(--pys-slate-200); border-radius: var(--pys-radius-lg); overflow: hidden; box-shadow: 0 4px 15px rgba(15,23,42,.04); }
.pys-video-player { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pys-video-player iframe, .pys-video-player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pys-video-fallback { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; color: #94a3b8; font-size: 1rem; }
.pys-video-fallback i.fa-film { font-size: 2.6rem; }
.pys-media-btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.4rem; border-radius: 999px; background: var(--pys-primary); color: #fff; font-weight: 700; text-decoration: none; }
.pys-media-single-head { padding: 1.5rem 1.75rem .75rem; }
.pys-media-single-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.pys-media-type-tag { background: var(--pys-primary); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .28rem .65rem; border-radius: 4px; }
.pys-media-term-tag { background: var(--pys-slate-100); color: var(--pys-slate-600); font-size: .72rem; font-weight: 700; padding: .28rem .65rem; border-radius: 4px; text-decoration: none; }
.pys-media-term-tag:hover { background: var(--pys-navy); color: #fff; }
.pys-media-single-head h1 { font-size: 1.85rem; line-height: 1.3; color: var(--pys-navy); margin: 0 0 .75rem; font-weight: 800; }
.pys-media-single-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; font-size: .84rem; color: var(--pys-slate-500); padding-bottom: 1rem; border-bottom: 1px solid var(--pys-slate-200); }
.pys-media-single-meta i { margin-right: .35rem; color: var(--pys-slate-400); }
.pys-media-content { padding: 1.25rem 1.75rem .5rem; font-size: 1.02rem; line-height: 1.8; color: var(--pys-slate-700); }
.pys-media-single > .pys-photo-grid { margin: 1rem 1.75rem 1.75rem; }
.pys-media-single > .pys-media-empty { margin: 1rem 1.75rem 1.75rem; }
.pys-media-single:not(:has(.pys-photo-grid)):not(:has(.pys-media-empty)) .pys-media-content { padding-bottom: 1.5rem; }

/* Share row */
.pys-media-share { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; padding-top: 1rem; }
.pys-media-share-label { font-size: .8rem; font-weight: 700; color: var(--pys-slate-600); margin-right: .25rem; }
.pys-media-share a, .pys-media-share button {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-width: 2.3rem; height: 2.3rem; padding: 0 .7rem; border-radius: 999px; border: 0; cursor: pointer;
  color: #fff; font-size: .9rem; text-decoration: none; font-family: inherit; transition: var(--pys-transition);
}
.pys-media-share a:hover, .pys-media-share button:hover { transform: translateY(-2px); filter: brightness(1.1); }
.pys-media-share .is-whatsapp { background: #25d366; }
.pys-media-share .is-facebook { background: #1877f2; }
.pys-media-share .is-x { background: #0f172a; }
.pys-media-share .is-telegram { background: #229ed9; }
.pys-media-share .is-copy { background: var(--pys-slate-600); font-size: .8rem; font-weight: 700; }

/* Photo grid + lightbox */
.pys-photo-grid { column-count: 3; column-gap: .85rem; }
.pys-photo-item { position: relative; display: block; break-inside: avoid; margin-bottom: .85rem; border-radius: 8px; overflow: hidden; background: var(--pys-slate-100); }
.pys-photo-item img { display: block; width: 100%; height: auto; transition: transform .45s ease, filter .3s ease; }
.pys-photo-item:hover img { transform: scale(1.05); filter: brightness(.78); }
.pys-photo-zoom { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem; opacity: 0; transition: opacity .25s ease; }
.pys-photo-item:hover .pys-photo-zoom, .pys-photo-item:focus-visible .pys-photo-zoom { opacity: 1; }

.pys-lightbox { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; background: rgba(8,12,24,.95); }
.pys-lightbox.is-open { display: flex; }
html.pys-lb-lock { overflow: hidden; }
.pys-lb-figure { margin: 0; max-width: min(92vw, 1400px); max-height: 92vh; display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.pys-lb-img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.pys-lb-caption { color: #e2e8f0; font-size: .95rem; text-align: center; max-width: 48rem; }
.pys-lb-close, .pys-lb-prev, .pys-lb-next {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.4rem; line-height: 1; transition: background .2s;
}
.pys-lb-close:hover, .pys-lb-prev:hover, .pys-lb-next:hover { background: var(--pys-primary); }
.pys-lb-close { top: 1rem; right: 1rem; font-size: 2rem; }
.pys-lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.pys-lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.pys-lb-counter { position: absolute; top: 1.35rem; left: 1.25rem; color: #cbd5e1; font-size: .85rem; font-weight: 600; }

/* Related */
.pys-media-related { margin-top: 2rem; }
.pys-media-related-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--pys-slate-200); }
.pys-media-related-head h2 { margin: 0; font-size: 1.15rem; text-transform: uppercase; color: var(--pys-navy); }
.pys-media-related-head h2 i { color: var(--pys-primary); margin-right: .4rem; }
.pys-media-related-head a { font-size: .82rem; font-weight: 700; color: var(--pys-primary); text-decoration: none; }

@media (max-width: 1100px) {
  .pys-media-grid.is-three { grid-template-columns: repeat(2, 1fr); }
  .pys-photo-grid { column-count: 2; }
}
@media (max-width: 768px) {
  .pys-media-hero-head { padding: 1.35rem 1.25rem; }
  .pys-media-hero-head h1 { font-size: 1.55rem; }
  .pys-media-featured { grid-template-columns: 1fr; }
  .pys-media-featured-body { padding: 1.25rem; }
  .pys-media-featured-title { font-size: 1.2rem; }
  .pys-media-grid, .pys-media-grid.is-three { grid-template-columns: 1fr; }
  .pys-media-single-head, .pys-media-content { padding-left: 1.1rem; padding-right: 1.1rem; }
  .pys-media-single-head h1 { font-size: 1.4rem; }
  .pys-media-single > .pys-photo-grid, .pys-media-single > .pys-media-empty { margin-left: 1rem; margin-right: 1rem; }
  .pys-photo-grid { column-count: 2; column-gap: .6rem; }
  .pys-lb-prev, .pys-lb-next { width: 2.4rem; height: 2.4rem; }
}

/* ------------------------------------------------------------------
   Live time & view counters (see assets/js/live-updates.js)
------------------------------------------------------------------ */
.pys-live-views-num { transition: opacity .25s ease; display: inline-block; }
.pys-live-pulse { animation: pysLivePulse .9s ease; }
@keyframes pysLivePulse {
  0%   { opacity: .25; transform: scale(1.18); color: var(--pys-primary); }
  100% { opacity: 1; transform: scale(1); }
}

/* ------------------------------------------------------------------
   Mobile menu: true-centred menu text (mobile view only).
   Icons/chevrons sit in a fixed-width slot with an equal invisible
   spacer on the opposite side, so the label itself is centred.
------------------------------------------------------------------- */
@media (max-width: 768px) {
  .pys-menu-list > li > a,
  .pys-menu-list .sub-menu li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0.5rem !important;
  }
  .pys-menu-list a > i {
    flex: 0 0 1.25rem !important;
    width: 1.25rem !important;
    margin: 0 !important;
    text-align: center !important;
  }
  /* leading icon (Home, sub-menu items): spacer on the right */
  .pys-menu-list a:has(> i:first-child:not(.fa-chevron-down))::after {
    content: "" !important;
    flex: 0 0 1.25rem !important;
    width: 1.25rem !important;
  }
  /* trailing chevron (News, Local News...): spacer on the left */
  .pys-menu-list a:has(> i.fa-chevron-down)::before {
    content: "" !important;
    flex: 0 0 1.25rem !important;
    width: 1.25rem !important;
  }
}
