/* =========================================
   SINGLE ARTICLE PAGE — JAYEK BRAND STYLE
========================================= */





/* BREADCRUMBS */

.jy-breadcrumbs {
  color: #64748B;
  font-size: 14px;
  margin-bottom: 10px;
  font-family: var(--jayek-primary);
}

/* CATEGORY BADGE */

.jy-cat-badge a {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  margin-bottom: 18px;
  border-radius: 4px;
  font-family: var(--jayek-primary);
}

/* MAIN LAYOUT — includes left share bar space */

.jy-single-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  position: relative;
  /* Must NOT have overflow:hidden — would break sticky sidebar and share bar */
  overflow: visible;
}

/* LEFT ARTICLE COLUMN */

.jy-single-main {
  width: 65%;
  min-width: 0;
}

/* RIGHT SIDEBAR — STICKY CONTAINER */

.jy-single-sidebar {
  width: 35%;
  flex-shrink: 0;
  align-self: flex-start;

  /* STICKY — works only when no ancestor has overflow:hidden */
  position: sticky;
  top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  overflow-x: visible;
}


/* =========================================
   LEFT STICKY SHARE BAR — VERGE STYLE
========================================= */

.jy-share-bar {
  position: fixed;
  left: max(12px, calc(50% - 680px));  /* stays left of article */
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

.jy-share-bar.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Share count label */
.jy-share-bar-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94A3B8;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  margin-bottom: 4px;
}

/* Each icon button */
.jy-sbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}

.jy-sbar-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}

.jy-sbar-btn:active {
  transform: scale(.95);
}

/* Colors */
.jy-sbar-fb  { background: #1877F2; color: #fff; }
.jy-sbar-tw  { background: #000;    color: #fff; }
.jy-sbar-wa  { background: #25D366; color: #fff; }
.jy-sbar-copy { background: #F1F5F9; color: #334155; }

/* Divider line */
.jy-sbar-divider {
  width: 1px;
  height: 28px;
  background: #E2E8F0;
  border-radius: 1px;
}

/* Hide on small screens — show inline share box instead */
@media (max-width: 1200px) {
  .jy-share-bar { display: none; }
}



/* TITLE — MODERN HEADLINE */

.jy-single-title {
  font-family: var(--jayek-primary);
  font-size: 46px;
  line-height: 1.15;
  font-weight: 800;
  margin: 15px 0;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* META INFO */

.jy-meta {
  font-family: var(--jayek-primary);
  color: #64748B;
  margin-bottom: 22px;
  font-size: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
    overflow-wrap: anywhere;

}

/* AUTHOR LINK */

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

.jy-meta a:hover {
  color: var(--color-secondary);
}

/* FEATURED IMAGE */

.jy-single-main img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 24px;
}

/* ARTICLE CONTENT — REDESIGNED */

.jy-content {
  font-family: var(--jayek-primary);
  font-size: 18px;
  line-height: 1.9;
  color: #1e293b;
  max-width: 720px;
  width: 100%;
}

@media (max-width: 900px) {
  .jy-content {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.8;
  }
}

/* PARAGRAPHS */

.jy-content p {
  margin-bottom: 1.6em;
}

/* HEADINGS INSIDE ARTICLE */

.jy-content h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 2em 0 .7em;
  line-height: 1.25;
  color: #0f172a;
  padding-bottom: 10px;
  border-bottom: 2px solid #E2E8F0;
}

.jy-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin: 1.8em 0 .6em;
  line-height: 1.3;
  color: #0f172a;
}

.jy-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin: 1.5em 0 .5em;
  color: #0f172a;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 13px;
}

/* LINKS */

.jy-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jy-content a:hover {
  color: var(--color-secondary);
}

/* =========================================
   LISTS — STYLED BULLETS & NUMBERS
========================================= */

.jy-content ul,
.jy-content ol {
  margin: 0 0 1.6em 0;
  padding: 0;
  list-style: none;
}

.jy-content ul li,
.jy-content ol li {
  position: relative;
  padding: 8px 0 8px 28px;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.7;
  font-size: 17px;
  color: #334155;
}

.jy-content ul li:last-child,
.jy-content ol li:last-child {
  border-bottom: none;
}

/* Custom bullet — blue filled circle */
.jy-content ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Numbered list counter */
.jy-content ol {
  counter-reset: jy-counter;
}

.jy-content ol li {
  counter-increment: jy-counter;
}

.jy-content ol li::before {
  content: counter(jy-counter);
  position: absolute;
  left: 0;
  top: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Nested lists */
.jy-content ul ul,
.jy-content ol ol,
.jy-content ul ol,
.jy-content ol ul {
  margin: 6px 0 0 16px;
}

.jy-content ul ul li::before {
  background: transparent;
  border: 2px solid var(--color-primary);
}

/* =========================================
   BLOCKQUOTE — STYLED QUOTE
========================================= */

.jy-content blockquote {
  margin: 2em 0;
  padding: 24px 28px;
  border-left: 4px solid var(--color-primary);
  background: #f8faff;
  border-radius: 0 10px 10px 0;
  position: relative;
}

.jy-content blockquote p {
  font-size: 18px;
  font-style: italic;
  line-height: 1.7;
  color: #1e3a8a;
  margin: 0;
  font-weight: 500;
}

.jy-content blockquote cite,
.jy-content blockquote footer {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  font-style: normal;
  color: #64748b;
  font-weight: 600;
}

.jy-content blockquote cite::before {
  content: "— ";
}

/* =========================================
   PULLQUOTE — GUTENBERG .wp-block-pullquote
========================================= */

.jy-content .wp-block-pullquote {
  margin: 2em 0;
  padding: 28px 32px;
  border: none;
  border-top: 3px solid var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
  text-align: center;
  background: transparent;
}

.jy-content .wp-block-pullquote blockquote {
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}

.jy-content .wp-block-pullquote blockquote p {
  font-size: 22px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.5;
  color: #0f172a;
  margin: 0;
}

.jy-content .wp-block-pullquote cite {
  margin-top: 10px;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  font-style: normal;
}

@media (max-width: 600px) {
  .jy-content .wp-block-pullquote blockquote p {
    font-size: 18px;
  }
  .jy-content blockquote {
    padding: 18px 20px;
  }
}

/* =========================================
   TABLE
========================================= */

.jy-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 15px;
}

.jy-content th {
  background: var(--color-primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.jy-content td {
  padding: 11px 16px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: top;
}

.jy-content tr:nth-child(even) td {
  background: #f8fafc;
}

/* =========================================
   IMAGES INSIDE CONTENT
========================================= */

.jy-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.2em 0;
}

.jy-content figure {
  margin: 2em 0;
}

.jy-content figcaption {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* =========================================
   GUTENBERG SPECIAL BLOCKS
========================================= */

/* Separator */
.jy-content hr,
.jy-content .wp-block-separator {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 2.5em 0;
}

/* Code */
.jy-content code {
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 15px;
  color: #e11d48;
}

.jy-content pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
  margin: 2em 0;
}

/* =========================================
   FEATURED IMAGE
========================================= */

.jy-single-main > article > img,
.jy-single-main > article .wp-post-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 28px;
  display: block;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

  .jy-single-layout {
    flex-direction: column;
    align-items: flex-start;
  }

  .jy-single-main,
  .jy-single-sidebar {
    width: 100%;
  }

  /* Disable sticky on mobile */

  .jy-single-sidebar {
    position: static;
  }

  .jy-side-ad {
    height: 250px;
    line-height: 250px;
    margin-top: 30px;
  }

  .jy-single-title {
    font-size: 32px;
  }

}

.jy-next-articles {
  margin-top: 80px;
  border-top: 2px solid var(--color-border);
  padding-top: 40px;
}

.jy-next-post {
  margin-bottom: 80px;
}

.jy-next-title {
  font-family: var(--jayek-primary);
  font-size: 36px;
  margin-bottom: 20px;
}

.jy-next-title a {
  color: var(--color-text);
  text-decoration: none;
}

.jy-next-title a:hover {
  color: var(--color-primary);
}


.jy-inline-ad {
  margin: 30px 0;
  text-align: center;
}



/* =========================================
   READ ALSO — SINGLE RANDOM POST
========================================= */


.jy-read-also {
  margin: 50px 0;
}

/* FLEX LAYOUT */

.jy-read-also-link {
  display: flex;
  gap: 20px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

/* IMAGE */

.jy-read-also-img img {
  width: 260px;
  height: 160px;
  object-fit: cover;
  margin-bottom: 0!important;
}

/* TEXT AREA WITH LINES */

.jy-read-also-text {
  flex: 1;
  position: relative;
  padding: 40px 0;
}


/* TOP LINE */

.jy-read-also-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* BOTTOM LINE */

.jy-read-also-text::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
}


/* LABEL */

.jy-read-also-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
}

/* TITLE */

.jy-read-also-title {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}

/* HOVER */

.jy-read-also-link:hover .jy-read-also-title {
  color: var(--color-primary);
}


.jy-up-next-section {
  margin: 60px 0 30px;
}

.jy-up-next-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.jy-up-next-label {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: #111;
  position: relative;
  padding-left: 14px;
}

/* purple square */
.jy-up-next-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 8px;
  height: 8px;
  background: #6a2cff;
}

.jy-up-next-line {
  flex: 1;
  height: 2px;
  background: #222;
  opacity: 0.4;
}




/* =========================================
   META INLINE FIX — SAFE (NO DESKTOP BREAK)
========================================= */

/* Ensure each meta item behaves inline */

/* Keep meta parts together */



/* Mobile only adjustments */

@media (max-width: 600px) {

  .jy-meta {
    display: inline-flex;
    align-items: flex-start;
    font-size: 10px;
    white-space: nowrap;   /* VERY IMPORTANT */
  }

  .jy-meta > * {
    display: inline-flex;
  }

  .jy-meta span,
.jy-meta a,
.jy-meta div {
  white-space: nowrap;
}

}


/* 🔥 MULTIPLEX ADS */
.jy-multiplex-wrapper {
  margin: 40px 0;
}

.jy-partner-title {
  font-size: 24px;
  font-style: italic;
  margin-bottom: 15px;
}



/* =========================================
   SHARE ICONS — JAYEK
========================================= */

.jy-share-box {
  margin: 40px 0 20px;
  padding: 20px 0;
  border-top: 2px solid var(--color-border, #E2E8F0);
  border-bottom: 2px solid var(--color-border, #E2E8F0);
}

.jy-share-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748B;
  margin-bottom: 14px;
}

.jy-share-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.jy-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity .2s ease, transform .15s ease;
}

.jy-share-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.jy-share-btn:active {
  transform: scale(.96);
}

/* Facebook */
.jy-share-fb {
  background: #1877F2;
  color: #fff;
}

/* X / Twitter */
.jy-share-tw {
  background: #000;
  color: #fff;
}

/* WhatsApp */
.jy-share-wa {
  background: #25D366;
  color: #fff;
}

/* Copy Link */
.jy-share-copy {
  background: #F1F5F9;
  color: #334155;
}

/* Mobile: full-width buttons */
@media (max-width: 600px) {
  .jy-share-icons {
    flex-direction: column;
  }

  .jy-share-btn {
    width: 100%;
    justify-content: center;
  }
}


/* =========================================
   AD OVERFLOW FIX — MOBILE/TABLET
   Prevents AdSense from causing horizontal scroll
========================================= */

/* Fix meta overflow on mobile (white-space: nowrap was the culprit) */
@media (max-width: 600px) {
  .jy-meta {
    white-space: normal !important;
    flex-wrap: wrap !important;
    font-size: 11px;
  }
}

/* Contain all ad units — prevent them from exceeding viewport */
.jy-side-ad,
.jy-multiplex-ad,
.jy-side-ad-square,
.jy-inline-ad {
  max-width: 100%;
  overflow: hidden;
}

/* AdSense ins tags — force within container */
ins.adsbygoogle {
  max-width: 100% !important;
}



/* =========================================
   AFTER POST — MORE IN CATEGORY + TOP STORIES
   Verge-style layout
========================================= */

.jy-after-post {
  background: #F1F5F9;
  margin-top: 60px;
  padding: 48px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.jy-after-post-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: flex-start;
}

/* ── MORE IN CATEGORY ───────────────────── */

.jy-more-in-header {
  font-size: 18px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 24px;
}

.jy-more-in-cat {
  color: #2563EB;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.jy-more-in-cat:hover {
  color: #1E40AF;
}

.jy-more-in-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 20px;
}

.jy-more-in-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.jy-more-in-card:hover .jy-more-in-title {
  color: #2563EB;
}

.jy-more-in-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #d1fae5;
  margin-bottom: 10px;
}

.jy-more-in-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}

.jy-more-in-card:hover .jy-more-in-img img {
  transform: scale(1.04);
}

.jy-more-in-noimg {
  width: 100%;
  height: 100%;
  background: #a7f3d0;
}

.jy-more-in-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #0F172A;
  margin: 0;
}

/* ── TOP STORIES ────────────────────────── */

.jy-top-stories {
  border-left: 1px solid rgba(0,0,0,.12);
  padding-left: 32px;
}

.jy-top-stories-header {
  font-size: 18px;
  font-weight: 700;
  color: #2563EB;
  margin-bottom: 20px;
}

.jy-top-stories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.jy-top-story-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,.1);
}

.jy-top-story-item:first-child {
  padding-top: 0;
}

.jy-top-story-date {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #2563EB;
  margin-bottom: 5px;
}

.jy-top-story-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: #0F172A;
  text-decoration: none;
}

.jy-top-story-title:hover {
  color: #2563EB;
}

/* ── MOBILE ────────────────────────────── */

@media (max-width: 900px) {
  .jy-after-post-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .jy-top-stories {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid rgba(0,0,0,.1);
    padding-top: 28px;
  }
}

@media (max-width: 600px) {
  .jy-more-in-grid {
    grid-template-columns: 1fr;
  }
}

