/* Casino News — mobile-first, responsive
   Primary: #3002B2 | Cream: #FFF9E5 | Text: #17161A
*/

:root {
  --cn-purple: #3002b2;
  --cn-purple-dark: #24018a;
  --cn-orange: #f5a623;
  --cn-text: #17161a;
  --cn-muted: #5c5966;
  --cn-border: #e6e4ec;
  --cn-cream: #fff9e5;
  --cn-bg: #ffffff;
  --cn-soft: #f6f5fa;
  --cn-radius: 10px;
  --cn-container: 1120px;
  --cn-narrow: 720px;
  --cn-header-h: 56px;
  --cn-font: Inter, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--cn-font);
  color: var(--cn-text);
  background: var(--cn-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cn-purple); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.container {
  width: 100%;
  max-width: var(--cn-container);
  margin: 0 auto;
  padding: 0 16px;
}
.narrow { max-width: var(--cn-narrow); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--primary {
  background: var(--cn-purple);
  color: #fff;
}
.btn--primary:hover { background: var(--cn-purple-dark); color: #fff; }
.btn--outline {
  background: #fff;
  color: var(--cn-purple);
  border-color: var(--cn-purple);
}
.btn--outline:hover { background: #f3f0ff; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cn-purple);
  color: #fff;
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--cn-header-h);
  padding: 0 12px;
  max-width: var(--cn-container);
  margin: 0 auto;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff !important;
  text-decoration: none !important;
  flex-shrink: 0;
  line-height: 1;
}
.search-toggle {
  margin-left: auto;
  flex-shrink: 0;
}
.site-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}
.site-brand__icon {
  width: 40px;
  height: 40px;
  display: block;
  overflow: visible;
}
.site-brand__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  font-family: Nunito, Inter, "Helvetica Neue", Arial, sans-serif;
  line-height: 1;
}
.site-brand__line {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.015em;
}
.site-brand__line--ceo {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #f26522;
}
.nav-toggle,
.search-toggle {
  background: transparent;
  border: 0;
  color: #fff;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 3px 0;
  border-radius: 1px;
}
.nav-toggle { flex-direction: column; }

.desktop-nav { display: none; }
.header-search {
  background: #fff;
  padding: 12px 16px;
  border-bottom: 1px solid var(--cn-border);
}
.header-search .search-form {
  display: flex;
  gap: 8px;
  max-width: var(--cn-container);
  margin: 0 auto;
}
.header-search input[type="search"] {
  flex: 1;
  border: 1px solid var(--cn-border);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 16px;
}

/* Mobile nav */
.mobile-nav[hidden] { display: none !important; }
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
}
.mobile-nav__panel {
  width: min(86vw, 360px);
  background: var(--cn-purple);
  color: #fff;
  padding: 20px 16px 40px;
  overflow-y: auto;
  position: relative;
  z-index: 2;
}
.mobile-nav__backdrop {
  flex: 1;
  background: rgba(0,0,0,.45);
}
.mobile-nav__close {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 16px;
}
.mobile-nav__list {
  list-style: none;
}
.mobile-nav__list a {
  display: block;
  color: #fff !important;
  text-decoration: none !important;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 16px;
}

/* Titles */
.page-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  margin: 24px 0 20px;
  color: var(--cn-text);
}
.section-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 16px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.section-view-all {
  font-weight: 700;
  white-space: nowrap;
  text-decoration: underline;
}

/* Featured */
/* Featured: image on top, title underneath (never side-by-side) */
.post-featured {
  display: block;
  margin-bottom: 28px;
  max-width: 100%;
}
.post-featured__media {
  display: block;
  width: 100%;
}
.post-featured__media img,
.post-thumb img {
  width: 100%;
  border-radius: var(--cn-radius);
  object-fit: cover;
}
.post-featured__media img { aspect-ratio: 16/9; }
.post-featured__body {
  display: block;
  width: 100%;
  padding-top: 4px;
}
.post-date {
  color: var(--cn-muted);
  font-size: 13px;
  margin: 12px 0 8px;
}
.post-featured__title {
  font-size: 22px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.post-featured__title a {
  color: var(--cn-text);
  text-decoration: none;
}
.post-featured__title a:hover { color: var(--cn-purple); }

.post-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.post-author {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cn-muted);
  text-decoration: none;
  font-weight: 600;
}
.post-author__avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.post-author__name { color: var(--cn-muted); }
.post-comments-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cn-purple);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* List items */
.post-list { display: flex; flex-direction: column; gap: 20px; }
.post-list-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
}
.post-list-item__thumb img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
}
.post-list-item__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
}
.post-cat {
  color: var(--cn-purple);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.post-list-item__meta .post-date { margin: 0; font-size: 12px; }
.post-list-item__title {
  font-size: 16px;
  line-height: 1.35;
  margin: 0 0 6px;
}
.post-list-item__title a {
  color: var(--cn-text);
  text-decoration: none;
}
.post-list-item__title a:hover { color: var(--cn-purple); }
.post-list-item__author,
.post-author,
.author-bio,
.single-article__byline,
.most-read-card__by,
.related-item__by,
.std-card__author {
  display: none !important;
}
.post-author-row--comments-only {
  justify-content: flex-start;
}

.load-more-wrap {
  margin: 28px 0 36px;
}
.load-more {
  width: 100%;
  padding: 14px 45px;
}

/* Carousel */
.posts-carousel {
  padding: 28px 0 36px;
  margin: 8px 0 0;
}
.posts-carousel--bg-cream { background: var(--cn-cream); }
.carousel {
  position: relative;
}
.carousel__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 2px 12px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel-card {
  flex: 0 0 78%;
  max-width: 320px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.posts-carousel--bg-cream .carousel-card {
  box-shadow: 0 2px 10px rgba(23,22,26,.06);
}
.carousel-card__media img {
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}
.carousel-card__body { padding: 12px 4px 4px; }
.carousel-card__title {
  font-size: 16px;
  margin: 0 0 6px;
  line-height: 1.35;
}
.carousel-card__title a {
  color: var(--cn-text);
  text-decoration: none;
}
.carousel__btn {
  position: absolute;
  top: 28%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  font-size: 22px;
  line-height: 1;
  color: var(--cn-text);
}
.carousel__btn--prev { left: -4px; }
.carousel__btn--next { right: -4px; }

.category-block,
.more-news,
.related-articles {
  padding: 28px 0;
}

/* Apps */
.apps-section {
  padding: 36px 0 48px;
  background: var(--cn-soft);
}
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.app-card {
  display: flex;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(23,22,26,.05);
}
.app-card__icon img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
}
.app-card__icon--placeholder {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: var(--cn-purple);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.app-card__title { margin: 0 0 4px; font-size: 17px; }
.app-card__meta { margin: 0 0 8px; color: var(--cn-muted); font-size: 13px; }
.app-card__excerpt { font-size: 14px; color: var(--cn-muted); margin-bottom: 10px; }
.app-card__btn { padding: 10px 16px; font-size: 14px; }

/* Single article */
.single-article { padding-bottom: 40px; }
.single-article__cat {
  margin: 20px 0 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.single-article__cat .post-cat { font-size: 13px; }
.single-article__title {
  font-size: 26px;
  line-height: 1.25;
  margin: 0 0 12px;
}
.single-article__dates {
  color: var(--cn-muted);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.single-article__byline {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.single-article__byline-label { color: var(--cn-muted); font-size: 13px; }
.single-article__byline .post-author__name {
  color: var(--cn-text);
  text-decoration: underline;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 22px;
  flex-wrap: wrap;
}
.share-row__label { font-weight: 700; }
.share-row__icons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cn-purple) center/18px no-repeat;
}
.share-btn--facebook { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M14 9h3V6h-3c-1.7 0-3 1.3-3 3v2H8v3h3v7h3v-7h3l1-3h-4V9c0-.6.4-1 1-1z'/%3E%3C/svg%3E"); }
.share-btn--whatsapp { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2a10 10 0 0 0-8.7 14.9L2 22l5.3-1.4A10 10 0 1 0 12 2zm0 18a8 8 0 0 1-4.1-1.1l-.3-.2-3.1.8.8-3-.2-.3A8 8 0 1 1 12 20zm4.4-5.7c-.2-.1-1.4-.7-1.6-.8s-.4-.1-.5.1-.6.8-.7.9-.3.2-.5.1a6.5 6.5 0 0 1-3.2-2.8c-.2-.4.2-.4.6-1.3.1-.2 0-.3 0-.4l-.8-1.9c-.2-.5-.4-.4-.5-.4h-.5c-.2 0-.4.1-.6.3s-.8.8-.8 1.9.8 2.2.9 2.3c.1.2 1.6 2.5 3.9 3.4 2.3.9 2.3.6 2.7.6s1.3-.5 1.5-1 .2-.9.1-1-.2-.2-.4-.3z'/%3E%3C/svg%3E"); }
.share-btn--linkedin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M6.5 9H3v12h3.5V9zM4.7 3C3.5 3 2.5 4 2.5 5.2S3.5 7.4 4.7 7.4 7 6.4 7 5.2 6 3 4.7 3zM21 15.4c0-3.2-1.7-4.7-4-4.7-1.8 0-2.6 1-3.1 1.7V9H10.5c0 .9 0 12 0 12H14v-6.7c0-.4 0-.7.1-1 .3-.7.9-1.4 2-1.4 1.4 0 2 1.1 2 2.6V21H21v-5.6z'/%3E%3C/svg%3E"); }
.share-btn--x { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M18.2 3H21l-6.6 7.5L22 21h-6.2l-4.9-6.4L5.4 21H2.6l7-8L2 3h6.3l4.4 5.8L18.2 3zm-1.1 16.2h1.7L7 4.7H5.2l11.9 14.5z'/%3E%3C/svg%3E"); }
.share-btn--email { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M4 6h16v12H4V6zm8 7L5.5 8h13L12 13z'/%3E%3C/svg%3E"); }

.key-points {
  background: #f7f5ff;
  border-radius: 12px;
  padding: 18px 18px 8px;
  margin: 0 0 24px;
}
.key-points h2 {
  color: var(--cn-purple);
  font-size: 18px;
  margin: 0 0 10px;
}
.key-points ul { padding-left: 18px; margin: 0 0 12px; }
.key-points li {
  margin-bottom: 10px;
  list-style: disc;
}
.key-points li::marker { color: var(--cn-purple); }

.single-article__hero {
  margin: 0 0 22px;
}
.single-article__hero img { border-radius: var(--cn-radius); width: 100%; }

.entry-content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--cn-text);
}
.entry-content h2 {
  font-size: 22px;
  margin: 28px 0 12px;
}
.entry-content p { margin: 0 0 16px; }
.entry-content a { text-decoration: underline; }

.author-bio {
  display: flex;
  gap: 14px;
  margin: 32px 0;
  padding: 18px;
  background: var(--cn-soft);
  border-radius: 12px;
}
.author-bio img { border-radius: 50%; width: 72px; height: 72px; }
.author-bio p { margin: 6px 0 0; color: var(--cn-muted); font-size: 14px; }

/* Comments */
.comments-area { margin: 36px 0; }
.comment-list { list-style: none; }
.comment-list .comment {
  padding: 16px 0;
  border-bottom: 1px solid var(--cn-border);
}
.comment-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  border: 1px solid var(--cn-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
  font: inherit;
}

/* Newsletter */
.newsletter {
  background: var(--cn-soft);
  border-radius: 14px;
  padding: 24px 18px;
  margin: 28px 0;
  text-align: left;
}
.newsletter__title { font-size: 20px; margin: 0 0 14px; }
.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter__form input[type="email"] {
  border: 1px solid var(--cn-border);
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
}
.newsletter__note { color: var(--cn-muted); font-size: 13px; margin: 12px 0 0; }
.newsletter__msg { margin-top: 10px; font-weight: 600; color: var(--cn-purple); }

/* Footer */
.site-footer {
  background: #120a2e;
  color: #d9d5e8;
  padding: 40px 0 28px;
  margin-top: 20px;
}
.site-footer a { color: #fff; }
.site-footer .newsletter {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.site-footer .newsletter__title { color: #fff; }
.friend-links { margin: 24px 0; }
.friend-links__title { color: #fff; font-size: 16px; margin: 0 0 10px; }
.friend-links__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.friend-links__list a {
  color: #cfc8ea;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  gap: 24px;
  margin: 28px 0;
}
.footer-col h3 {
  color: #fff;
  font-size: 15px;
  margin: 0 0 10px;
}
.footer-menu { list-style: none; }
.footer-menu li { margin-bottom: 8px; }
.footer-menu a { color: #cfc8ea; font-size: 14px; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.footer-legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-legal a { color: #cfc8ea; }

/* Cookie */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 300;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
  padding: 16px 40px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner p { margin: 0; font-size: 13px; color: var(--cn-muted); }
.cookie-banner a { color: #1a5cff; text-decoration: underline; }
.cookie-banner__ok { align-self: flex-end; padding: 8px 18px; }
.cookie-banner__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #1a5cff;
  font-size: 22px;
}

.archive-header { margin-bottom: 8px; }
.archive-desc { color: var(--cn-muted); margin-bottom: 20px; }
.archive-wrap,
.archive-page,
.page-content { padding-bottom: 40px; }
.pagination,
.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 28px 0;
}
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cn-text);
  text-decoration: none;
  padding: 0 10px 3px;
  font-size: 16px;
  border: 0;
  background: transparent;
  min-width: auto;
  height: auto;
  border-radius: 0;
}
.page-numbers.current {
  color: #02044e;
  border-bottom: 3px solid #02044e;
  background: transparent;
}

.home-news { padding-bottom: 20px; }
.no-posts { padding: 40px 0; color: var(--cn-muted); }

/* —— Breadcrumbs —— */
.breadcrumbs { margin: 16px 0 8px; }
.breadcrumbs__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 14px;
  color: var(--cn-muted);
}
.breadcrumbs__item:not(:last-child)::after {
  content: ">";
  margin-left: 6px;
  color: var(--cn-muted);
}
.breadcrumbs__link {
  color: var(--cn-purple);
  text-decoration: underline;
}

/* —— Category page (casino.org style) —— */
.content--category {
  background: #fafaff;
  padding-bottom: 40px;
  min-height: 50vh;
}
.content--category .page-title { margin-top: 8px; margin-bottom: 24px; }
.latest-posts-block__hero { margin-bottom: 20px; }
.latest-posts-block__grid,
.latest-posts-block__more-grid { display: none; }
.category-mobile-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 24px; }

.std-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(23,22,26,.06);
}
.std-card__media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}
.std-card__body { padding: 12px 14px 16px; }
.std-card__date { margin: 0 0 6px; font-size: 13px; color: var(--cn-muted); }
.std-card__title { margin: 0 0 10px; font-size: 16px; line-height: 1.35; }
.std-card__title a { color: var(--cn-text); text-decoration: none; }
.std-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.std-card__author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cn-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.std-card__author img { width: 28px; height: 28px; border-radius: 50%; }
.std-card__comments {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cn-purple);
  font-size: 13px;
  text-decoration: none;
}

.category-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 2px;
  margin: 28px 0 32px;
  font-size: 16px;
}
.category-pagination .pages {
  width: 100%;
  text-align: center;
  margin-bottom: 8px;
  color: var(--cn-text);
}
.category-pagination .last {
  margin-left: 8px;
  color: #02044e;
  text-decoration: none;
}

.newsletter--purple {
  background: var(--cn-purple);
  color: #fff;
  border-radius: 14px;
  padding: 28px 20px;
  margin: 12px 0 32px;
}
.newsletter--purple .newsletter__title { color: #fff; margin-bottom: 8px; }
.newsletter--purple .newsletter__note { color: rgba(255,255,255,.9); margin: 0 0 16px; }
.newsletter--purple label { display: block; color: #fff; font-size: 14px; margin-bottom: 6px; }
.newsletter--purple .newsletter__form { flex-direction: column; }
.newsletter--purple input[type="email"] {
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  margin-bottom: 10px;
}
.btn--dark {
  background: #111;
  color: #fff;
  border: 0;
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  font-weight: 700;
}
.btn--dark:hover { background: #000; color: #fff; }

/* —— Single article layout + sidebar —— */
.content--article { background: #fafaff; padding-bottom: 48px; }
.article-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}
.article-main {
  background: #fff;
  border-radius: 12px;
  padding: 20px 16px 28px;
  order: 1;
}
.article-sidebar {
  display: block;
  order: 2;
}
.article-sidebar__title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cn-purple);
  font-size: 20px;
  margin: 0 0 16px;
}
.article-sidebar__icon { display: flex; color: var(--cn-purple); }
.most-read-list { display: flex; flex-direction: column; gap: 18px; }
.most-read-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 4px rgba(23,22,26,.06);
}
.most-read-card__media img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: 10px;
}
.most-read-card__date { margin: 10px 0 4px; font-size: 13px; color: var(--cn-muted); }
.most-read-card__title { margin: 0 0 8px; font-size: 16px; line-height: 1.35; }
.most-read-card__title a { color: var(--cn-text); text-decoration: none; }
.most-read-card__by { margin: 0 0 8px; font-size: 13px; color: var(--cn-muted); }
.most-read-card__by a { color: var(--cn-purple); text-decoration: underline; }
.most-read-card__views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  color: var(--cn-muted);
}
.most-read-card__views svg { color: var(--cn-purple); }

/* —— Conversation / comments —— */
.conversation { margin: 36px 0 20px; }
.conversation__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.conversation__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--cn-purple);
  font-size: 20px;
}
.conversation__icon { display: flex; color: var(--cn-purple); }
.conversation__add { padding: 10px 14px; font-size: 14px; white-space: nowrap; }
.comment-form-card {
  background: #fff;
  border: 1px solid var(--cn-border);
  border-radius: 12px;
  padding: 20px 16px;
  margin-top: 16px;
}
.comment-reply-title { margin: 0 0 6px; font-size: 18px; }
.comment-notes { color: var(--cn-muted); font-size: 13px; margin: 0 0 14px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.comment-form .required { color: var(--cn-purple); }
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--cn-border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
  font: inherit;
}
.comment-form-author,
.comment-form-email { width: 100%; }
.comment-form-consent {
  font-size: 13px;
  color: var(--cn-muted);
  margin: 0 0 14px;
}
.comment-form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
}
.comment-form-consent input { margin-top: 3px; }
.comment-submit {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.comment-list { list-style: none; margin: 16px 0; }
.comment-list .comment {
  padding: 14px 0;
  border-bottom: 1px solid var(--cn-border);
}
.comment-author .avatar { border-radius: 50%; margin-right: 10px; }

/* —— Related articles / guides —— */
.related-block { margin: 36px 0 20px; }
.related-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cn-purple);
  font-size: 20px;
  margin: 0 0 16px;
}
.related-heading__icon { display: flex; }
.related-articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 28px;
}
.related-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
}
.related-item__thumb img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 8px;
}
.related-item__date { margin: 0 0 4px; font-size: 12px; color: var(--cn-muted); }
.related-item__title { margin: 0 0 6px; font-size: 15px; line-height: 1.35; }
.related-item__title a { color: var(--cn-text); text-decoration: none; }
.related-item__by { margin: 0; font-size: 13px; color: var(--cn-muted); }
.related-item__by a { color: var(--cn-purple); text-decoration: underline; }
.related-guides__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.related-guides__pill {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--cn-border);
  border-radius: 999px;
  background: #fff;
  color: var(--cn-text);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.related-guides__pill:hover {
  border-color: var(--cn-purple);
  color: var(--cn-purple);
}

.desktop-nav__list .current-menu-item > a,
.desktop-nav__list .current-menu-item > a:hover {
  box-shadow: inset 0 -2px 0 #fff;
}

/* Desktop / large screens */
@media (min-width: 768px) {
  :root { --cn-header-h: 64px; }
  .page-title { font-size: 32px; margin-top: 36px; }
  .content--category .page-title { margin-top: 12px; }
  .post-featured__title { font-size: 28px; }
  .post-list-item {
    grid-template-columns: 120px 1fr;
    gap: 18px;
  }
  .post-list-item__thumb img {
    width: 120px;
    height: 120px;
  }
  .post-list-item__title { font-size: 18px; }
  .carousel-card { flex-basis: 42%; max-width: 380px; }
  .apps-grid { grid-template-columns: 1fr 1fr; }
  .newsletter__form { flex-direction: row; }
  .newsletter__form input[type="email"] { flex: 1; }
  .newsletter--purple .newsletter__form { flex-direction: column; }
  .newsletter--purple .btn--dark { width: auto; align-self: stretch; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 32px);
  }
  .cookie-banner p { flex: 1; }

  /* Category desktop: hero + cards */
  .category-mobile-list { display: none; }
  .latest-posts-block__hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
  }
  .latest-posts-block__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
  }
  .latest-posts-block__more-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px;
    margin-top: 16px;
  }
  .latest-posts-block__more-grid--paged {
    grid-template-columns: repeat(3, 1fr);
  }
  .content--category .post-featured {
    background: #fff;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
  }
  .comment-form-author,
  .comment-form-email {
    display: inline-block;
    width: calc(50% - 8px);
    vertical-align: top;
  }
  .comment-form-author { margin-right: 16px; }
  .comment-submit { width: auto; min-width: 200px; }
  .related-articles-grid { grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .related-item { grid-template-columns: 100px 1fr; }
  .related-item__thumb img { width: 100px; height: 100px; }
}

@media (min-width: 1024px) {
  .site-header__bar {
    padding: 0 24px;
    gap: 8px 16px;
  }
  .nav-toggle { display: none; }
  .desktop-nav {
    display: block;
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
  }
  .desktop-nav__list {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 2px;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .desktop-nav__list::-webkit-scrollbar { display: none; }
  .desktop-nav__list a {
    display: block;
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
  }
  .desktop-nav__list a:hover { background: rgba(255,255,255,.1); }
  /* Home featured stays stacked; leave right side empty for now */
  .home-news .post-featured {
    display: block;
    width: 100%;
    max-width: 640px;
  }
  .content--category .post-featured {
    display: block;
    max-width: none;
  }
  .content--category .post-featured__media img { margin: 0; width: 100%; }
  .post-featured__media img { margin: 0; }
  .carousel-card { flex-basis: 30%; }
  .apps-grid { grid-template-columns: 1fr 1fr 1fr; }
  .single-article__title { font-size: 34px; }
  .container { padding: 0 24px; }

  .latest-posts-block__more-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
  }
  .article-main { padding: 28px 32px 36px; order: unset; }
  .article-sidebar {
    display: block;
    order: unset;
    position: sticky;
    top: calc(var(--cn-header-h) + 16px);
  }
  .article-main .narrow { max-width: none; }
}
