/* =========================================
   GLOBAL OVERFLOW FIX — PREVENT HORIZONTAL SCROLL

   NOTE: overflow-x: hidden is set on body only,
   NOT on html or body > * — because setting
   overflow on any ancestor breaks position:sticky
   on child elements (known CSS behavior).
   The correct fix is to contain individual
   elements that overflow, not the whole tree.
========================================= */

body {
  overflow-x: hidden;
}

/* =========================================
   AD OVERFLOW — NUCLEAR FIX
   Ensure no AdSense unit breaks layout
========================================= */

ins.adsbygoogle {
  max-width: 100% !important;
  width: 100% !important;
}

.jy-side-ad,
.jy-side-ad-square,
.jy-multiplex-ad,
.jy-inline-ad,
.jy-home-mid-ad {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* =========================================
   LATEST CARD / MINI ITEMS — FLEX FIX
   min-width:0 prevents flex children from
   overflowing their container
========================================= */

.jy-latest-card,
.jy-mini-item,
.jy-post-row,
.jy-mobile-item,
.jy-hero-list {
  min-width: 0;
  max-width: 100%;
}

.jy-latest-card h3,
.jy-latest-card a,
.jy-mini-item h4,
.jy-mini-item h5,
.jy-post-row h3 {
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}

/* Text side of list-style cards */
.jy-latest-card > div,
.jy-latest-card > a {
  min-width: 0;
  flex: 1;
}

/* =========================================
   HOME SECTIONS
========================================= */

.jy-home-section,
.jy-home-grid,
.jy-home-main,
.jy-home-sidebar {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* =========================================
   CONTAINER
========================================= */

.jy-container {
  box-sizing: border-box;
  max-width: 100%;
}

@media (max-width: 768px) {
  .jy-container {
    padding: 0 14px;
  }
}


/* =========================================
   ORIGINAL BASE STYLES
========================================= */

:root {
  --font-primary: 'Outfit', sans-serif;
  --font-secondary: 'Quattrocento', serif;
  --color-primary: #2563EB;
  --color-secondary: #1E40AF;
  --color-accent: #60A5FA;
  --color-bg: #F8FAFC;
  --color-text: #0F172A;
  --color-muted: #64748B;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

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