* { box-sizing: border-box; margin: 0; padding: 0; }
:root { 
--brand-red:#d62828; 
--text:#222; 
--muted:#555; 
--bg:#fff; 
--soft:#f7f7f7;
--color-debutant: #43a047;
--color-intermediaire: #1e88e5;
--color-avance: #d62828;

}

html, body { height: 100%; }
body { font-family: 'Open Sans', Arial, sans-serif; line-height: 1.6; color: var(--text); background: var(--bg); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.row { display: flex; flex-wrap: wrap; align-items: center; }

/* Header */
header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.05); font-size: 0.95rem; }
.top-row { justify-content: space-between; padding: 10px 0; }
/* LOGO IMAGE */
.logo {
  display: flex;
  align-items: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.4em;
  color: #111;
}

.logo-img {
  height: 40px;
  width: auto;
  margin-right: 8px;
}

.logo span { color: var(--brand-red); }

.top-actions { display: flex; gap: 12px; align-items: center; }
.btn-primary { background: var(--brand-red); color: #fff; border-radius: 999px; font-weight: 600; font-family: 'Montserrat', sans-serif; padding: 8px 16px; }
.btn-secondary { background: #f2f2f2; color: var(--text); border-radius: 8px; font-weight: 500; padding: 6px 12px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 4px; z-index: 2100; }
.hamburger span { width: 24px; height: 3px; background: #222; border-radius: 2px; transition: all 0.3s; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Fullscreen Menu */
.mobile-menu { position: fixed; inset: 0; background: #fff; z-index: 2000; overflow-y: auto; transform: translateY(-100%); opacity: 0; transition: transform 0.35s ease, opacity 0.35s ease; }
.mobile-menu.open { transform: translateY(0); opacity: 1; }
.mobile-header { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid #ddd; }
.mobile-icons { display: flex; justify-content: space-around; padding: 14px 10px; border-bottom: 1px solid #ddd; }
.mobile-icons a { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 0.95rem; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav ul li { border-bottom: 1px solid #eee; }
.mobile-nav ul li a { display: block; padding: 15px 20px; font-size: 1rem; color: #222; }

/* Highlight bar & Nav */
/* .highlight-bar { background: #000; color: #fff; padding: 6px 15px; font-size: 0.9rem; } */

.highlight-bar {
  /* background: #d62828; RED */
  background: #000;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
  position: relative;
}

.highlight-bar span {
  display: inline-block;
  padding-left: 100%;
  animation: scroll-text 30s linear infinite;
}

@keyframes scroll-text {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}


nav ul { display: flex; gap: 28px; list-style: none; align-items: center; margin: 0 auto; padding: 16px 0; max-width: 1200px; }
nav ul li a { font-weight: 600; transition: color 0.3s, border-bottom 0.3s; padding-bottom: 6px; border-bottom: 3px solid transparent; }
nav ul li a:hover { color: var(--brand-red); }
nav ul li a.active { color: var(--brand-red); border-bottom-color: var(--brand-red); }

/* Hero */
.hero-wrapper { margin: 40px auto 20px auto; max-width: 1200px; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,0.12); }

/* without background picture
.hero { padding: 100px 0; text-align: center; color: #fff; background: #111; position: relative; border-radius: 16px; }
*/

/* with background picture */
/* HERO background with safe defaults */
.hero {
  position: relative;
  /* min-height: clamp(280px, 45vh, 560px); */
  padding: 100px;
  display: flex;
  align-items: center;

  /* Use an absolute path so it works regardless of CSS location */
   background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.05) 100%),
    url('/../images/hero-poker3.png');
  background-size: cover;
  background-position: bottom right; /* aligns image bottom-right */
  background-repeat: no-repeat;
  

  color: #fff;
  overflow: hidden;         /* hides overlay edges on small screens */
  isolation: isolate;       /* ensures overlay stacks above the bg */
}

/* dark veil for readability 
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.25));
  z-index: 0;
}
*/
/* keep your text above the overlay */
.hero * {
  position: relative;
  z-index: 1;
}

.hero h1 { font-family: 'Montserrat', sans-serif; font-size: 2.5rem; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; max-width: 700px; margin: 0 auto; color: #f3f3f3; }

/* Value Props */
.value-props { padding: 30px 0 60px 0; display: flex; gap: 20px; justify-content: space-between; text-align: center; }
.value-prop { flex: 1; background: #fff; border: 1px solid #eee; border-radius: 12px; padding: 22px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.value-prop h3 { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; margin-top: 10px; margin-bottom: 8px; }
.value-prop p { font-size: 0.95rem; color: var(--muted); }
.value-prop svg { width: 48px; height: 48px; margin-bottom: 10px; stroke-width: 2; fill: none; }
.icon-red { stroke: #e63946; }
.icon-blue { stroke: #457b9d; }
.icon-yellow { stroke: #f4a261; }

/* Main Content */
.main-content { margin: 20px auto 40px auto; display: grid; grid-template-columns: 2fr 1fr; gap: 30px; }
.article-card { background: #fff; border: 1px solid #eee; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.article-card img { width: 100%; height: auto; display: block; }
.article-card .card-body { padding: 16px; }
.article-card h3 { font-family: 'Montserrat', sans-serif; margin-bottom: 8px; font-size: 1.2rem; }
.article-card p { font-size: 0.95rem; color: var(--muted); }

.promo-box { background: #f9f9f9; padding: 18px; margin-bottom: 20px; border-radius: 12px; border: 1px solid #eee; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }
.promo-box h4 { margin-bottom: 10px; font-family: 'Montserrat', sans-serif; }
.promo-box input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 8px; margin-bottom: 10px; }
.promo-box button { width: 100%; padding: 10px; border: none; background: var(--brand-red); color: #fff; border-radius: 999px; font-weight: 700; cursor: pointer; }

/* Tools */
.tools-section { background: #f7f7f7; padding: 60px 0; }
.section-title { text-align: center; font-family: 'Montserrat', sans-serif; font-size: 1.6rem; margin-bottom: 24px; }
.tools-grid { display: flex; gap: 20px; justify-content: space-between; }
.tool-card { background: #fff; border-radius: 12px; border: 1px solid #eee; box-shadow: 0 2px 6px rgba(0,0,0,0.05); overflow: hidden; flex: 1; text-align: left; padding: 20px; display: flex; flex-direction: column; }
.tool-card img { width: 100%; height: auto; border-radius: 8px; margin-bottom: 12px; }
.tool-card h4 { font-family: 'Montserrat', sans-serif; margin-bottom: 6px; }
.tool-card p { font-size: 0.95rem; color: var(--muted); margin-bottom: 12px; }
.tool-card a { align-self: flex-start; color: #fff; background: var(--brand-red); padding: 8px 14px; border-radius: 999px; font-weight: 600; }

/* SEO Footer */
.seo-footer { background: var(--brand-red); color: #fff; padding: 60px 0; font-size: 0.9rem; }
.seo-footer .columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.seo-footer h4 { font-family: 'Montserrat', sans-serif; font-size: 1.1rem; margin-bottom: 12px; }
.seo-footer ul { list-style: none; padding: 0; }
.seo-footer ul li { margin-bottom: 8px; }
.seo-footer a { color: #fff; opacity: 0.9; }
.seo-footer a:hover { opacity: 1; text-decoration: underline; }

/* Final Footer */
footer.footer { padding: 30px 0; text-align: center; border-top: 1px solid #eee; font-size: 0.9rem; color: #666; }
footer .logos { margin-top: 15px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
footer .logos img { height: 30px; }

/* Responsive */
@media (max-width: 992px) {
  nav ul { gap: 20px; }
  .hero { padding: 80px 0; }
}
@media (max-width: 768px) {
  .top-actions { display: none; }
  nav ul, .highlight-bar { display: none; }
  .hamburger { display: flex; }
  .hero-wrapper { margin: 20px; border-radius: 12px; }
  .hero { padding: 70px 20px; border-radius: 12px; }
  .value-props { flex-direction: column; padding: 20px 0 40px 0; }
  .main-content { grid-template-columns: 1fr; }
  .tools-grid { flex-direction: column; }
  .seo-footer .columns { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .seo-footer .columns { grid-template-columns: 1fr; }
}

/* ARTICLE PAGE */
/* Base hero style (shared by both types) */
.article-hero {
  color: #fff;
  display: flex;
  align-items: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

/* ✅ TYPE 1 — Solid color gradient hero */
.article-hero.type-color {
  background: linear-gradient(135deg, #d62828, #b41f1f);
}

/* ✅ TYPE 2 — Hero with background image */
.article-hero.type-image {
  background-image:
    linear-gradient(135deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25)),
    url('../images/articles/article-hero-sample.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* optional overlay (adds more contrast if needed) */
.article-hero.type-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
  z-index: 0;
}

.article-hero .container {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 60px 0px;
}

/* ============================
   Article Hero Rework
============================ */
.article-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 60px 0;
}

.hero-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.hero-left {
  flex: 1 1 55%;
}

.hero-right {
  flex: 1 1 40%;
  display: flex;
  justify-content: flex-end;
}

.coach-box {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: rgba(215, 39, 47, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  padding: 15px 18px;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 330px;
}

.coach-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid #d62828;
  object-fit: cover;
  flex-shrink: 0;
}

.coach-info {
  font-size: 0.9em;
  line-height: 1.4;
}

.coach-info p {
  margin: 4px 0;
}

.player-tag {
  display: inline-block;         /* ✅ stays as small as its text */
  width: auto;                   /* ✅ prevent full-width expansion */
  align-self: flex-start;        /* ✅ align left inside flex column */
  background: #222;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  white-space: nowrap;           /* ✅ keep short tags in one line */
}

/* Débutant — green tones (learning/friendly) */
.player-tag.debutant {
  background: linear-gradient(135deg, var(--color-debutant), #43a047);
}

/* Intermédiaire — blue tones (strategy/analysis) */
.player-tag.intermediaire {
  background: linear-gradient(135deg, var(--color-intermediaire), #1e88e5);
}

/* Avancé — red tones (performance/pro) */
.player-tag.avance {
  background: linear-gradient(135deg, var(--color-avance), #d62828);
}

/* Optional: hover or subtle glow */
.player-tag:hover {
  filter: brightness(1.1);
  transition: filter 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-flex {
    flex-direction: column;
  }
  .hero-right {
    justify-content: center;
  }
  .coach-box {
    max-width: 100%;
  }
}


.article-hero h1 {
  font-size: 2.2em;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 10px;
  text-align: left;
  
}

.article-meta {
  font-size: 0.9em;
  opacity: 0.9;
text-align: left;
}

.article-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin: 60px auto;
}

.article-cover {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 30px;
}

.article-content h2 {
  color: #d62828;
  margin-top: 40px;
}

blockquote {
  background: #f8f8f8;
  border-left: 4px solid #d62828;
  padding: 15px 20px;
  margin: 25px 0;
  font-style: italic;
}

.cta-box {
  background: #fff5f5;
  border: 1px solid #d62828;
  padding: 20px;
  border-radius: 8px;
  margin-top: 40px;
}

.article-sidebar h3 {
  border-bottom: 2px solid #d62828;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.article-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.article-sidebar li {
  margin-bottom: 10px;
}

.article-sidebar a {
  color: #111;
  text-decoration: none;
  font-weight: 500;
}

.article-sidebar a:hover {
  color: #d62828;
}

/* ===========================
   BREADCRUMB NAVIGATION
=========================== */
.breadcrumb-nav {
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  font-size: 0.95em;
}

.breadcrumb-nav .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: #666;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li a {
  text-decoration: none;
  color: #d62828;
  font-weight: 500;
  transition: color 0.2s;
}

.breadcrumb li a:hover {
  color: #b41f1f;
}

.breadcrumb li::after {
  content: "›";
  color: #aaa;
  margin: 0 6px;
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb li:last-child {
  color: #111;
  font-weight: 600;
}

@media (max-width: 600px) {
  .breadcrumb-nav {
    font-size: 0.85em;
    padding: 8px 0;
  }
  .breadcrumb li:nth-child(2) {
    display: none; /* hides “Articles” on very small screens */
  }
}


/* ===========================
   CARD DISPLAY SYSTEM
=========================== */
.cards {
  display: inline-flex;
  gap: 4px;
  vertical-align: middle;
  font-family: 'Arial', sans-serif;
}

.card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 36px;
  margin-right: 2px;
  border-radius: 5px;
  border: 1px solid #ccc;
  background: #fff;
  font-weight: 700;
  font-size: 0.9em;
  font-family: 'Georgia', 'serif';
  color: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.card.hearts, .card.diamonds {
  color: #d62828;
}

.card.spades, .card.clubs {
  color: #111;
}

/* Optional hover effect */
.card:hover {
  transform: scale(1.1);
  transition: transform 0.15s ease;
}

.card-tooltip {
  position: fixed;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 0.8em;
  padding: 6px 10px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Article list */

/* =============================
   Article Listing Layout
============================= */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================
   Article Card
============================= */
.article-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-decoration: none;
  color: #111;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* =============================
   Article Image with Overlay
============================= */
.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  background: #f4f4f4;
  transition: transform 0.5s ease;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 220px;
  background: rgba(0, 0, 0, 0);
  transition: background 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.article-card:hover img {
  transform: scale(1.05);
}

.article-card:hover::before {
  background: rgba(0, 0, 0, 0.25);
}




/* FILTER TOGGLE BUTTON */

.filter-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filter-toggle:hover {
  background: #eee;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-icon {
  width: 18px;
  height: 18px;
  fill: #d62828;
}

.chevron {
  width: 20px;
  height: 20px;
  fill: #666;
  transition: transform 0.3s ease;
}

/* Rotate chevron when filters open */
.filter-toggle.open .chevron {
  transform: rotate(180deg);
}


/* === SIDEBAR === */
.sidebar {
  position: relative;
  width: 100%; /* your sidebar width */
  flex-shrink: 0;
  background: #fff;
  z-index: 210;
}

/* Optional dark overlay when panel open */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 40;
}

.overlay.active {
  opacity: 1;
  pointer-events: auto;
}


/* COLLAPSIBLE FILTER PANEL */
.filter-panel {
  position: absolute;
  left: 0;
  background: #fff;
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
  padding: 25px;
  z-index: 210;            /* ensure it's above content */
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}


.filter-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.filter-group { margin-bottom: 15px; }
.filter-group h4 {
font-size: 0.95rem;
font-weight: 600;
margin-bottom: 10px;
}
.filter-btn {
border: 1px solid #ccc;
background: #f9f9f9;
color: #333;
padding: 6px 14px;
border-radius: 20px;
margin: 3px 5px 8px 0;
font-size: 0.85rem;
cursor: pointer;
transition: all 0.2s ease;
}
.filter-btn:hover { border-color: #d62828; color: #d62828; }
.filter-btn.active { background: #d62828; border-color: #d62828; color: #fff; }


/* ================================
   AJAX Loading Overlay
================================ */
.loading-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.8);
  z-index: 60; /* above grid, below filter panel */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Spinner animation */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(214, 40, 40, 0.3);
  border-top-color: #d62828;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error {
  color: #d62828;
  text-align: center;
  padding: 20px;
  font-weight: 600;
}


/* =============================
   Article Body
============================= */
.article-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 15px 18px;
  background: #fff;
}

.article-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 6px;
}

.player-tag {
  display: inline-block;
  align-self: flex-start;
  background: #222;
  color: #fff;
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.article-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: #111;
  line-height: 1.3;
}

.article-card p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

/* =============================
   Responsive Adjustments
============================= */
@media (max-width: 767px) {
  .article-card img {
    height: 180px;
  }

  .article-card-body {
    padding: 12px 15px;
  }
}

/* ==============================
   ARTICLE CONTENT STYLING
   ============================== */

.article-container {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  color: #1a1a1a;
  line-height: 1.7;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* Add generous vertical rhythm */
.article-container p {
  margin: 1.4em 0;
}

/* Headings (H2) – PokerSchool theme style */
.article-container h2 {
  position: relative;
  margin-top: 2.4em;
  margin-bottom: 1em;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0b132b; /* deep blue-black from your site theme */
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-left: 4px solid #d62828; /* your accent red */
  padding-left: 0.6em;
}


/* Optional subtle background behind heading for contrast */
.article-container h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
  z-index: -1;
}

/* Subheadings inside articles (h3) */
.article-container h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d6a4f; /* green accent for secondary elements */
  margin-top: 1.8em;
  margin-bottom: 0.8em;
}

/* Hand ranking table spacing */
.article-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 2em 0;
  font-size: 0.95rem;
}

.article-container table th,
.article-container table td {
  border: 1px solid #ddd;
  padding: 0.6em 0.8em;
  text-align: left;
}

.article-container table th {
  background-color: #f8f9fa;
  color: #0b132b;
  font-weight: 600;
}

/* Paragraphs with tips or examples */
.article-container blockquote {
  background: #f4f4f4;
  border-left: 4px solid #d62828;
  padding: 1em 1.5em;
  margin: 2em 0;
  font-style: italic;
  color: #444;
}

/* Cards container spacing */
.article-container .cards {
  display: inline-flex;
  gap: 4px;
  margin: 0 2px;
}


.coach-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(214, 40, 40, 0.5);
  border-left: 4px solid #d62828;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 20px 0;
}

.coach-tip .coach-avatar.small {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid #d62828;
  object-fit: cover;
}

.coach-tip-content {
  font-size: 0.95em;
  line-height: 1.5;
  color: #fff;
}

.coach-signature {
  font-size: 0.8em;
  color: #000;
  margin-top: 4px;
  font-style: italic;
}


/* Rooms */ 
.rooms-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card container */
.room-card {
  display: flex;
  gap: 25px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 25px;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.room-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Left: logo */
.room-left img {
  width: 120px;
  height: auto;
  object-fit: contain;
}

/* Right: content */
.room-right {
  flex: 1;
}

/* Header & Offer */
.room-header h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.room-offer {
  background: #fff5f5;
  border-left: 4px solid #d62828;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

/* Meta info */
.room-meta {
  font-size: 0.95rem;
  color: #333;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 20px;
  margin-bottom: 10px;
}

/* Scores */
.room-scores {
  margin: 10px 0;
}
.score-total {
  color: #d62828;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.score-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 16px;
}
.bar-line {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}
.bar-line span {
  width: 90px;
  text-transform: capitalize;
}
.bar {
  flex: 1;
  background: #eee;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-left: 6px;
}
.fill {
  background: #d62828;
  height: 100%;
}

/* Pros / Cons */
.pros-list, .cons-list {
  list-style: none;
  padding-left: 0;
  margin: 8px 0;
  font-size: 0.9rem;
}
.pros-list li { color: #0a7d1f; }
.cons-list li { color: #b12b2b; }

/* Actions */
.room-actions {
  margin-top: 14px;
  display: flex;
  gap: 12px;
}
.btn-primary, .btn-secondary {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.3s;
}
.btn-primary {
  background: #d62828;
  color: #fff;
}
.btn-primary:hover { background: #b71f1f; }
.btn-secondary {
  background: #f4f4f4;
  color: #333;
}
.btn-secondary:hover { background: #e4e4e4; }

/* Responsive */
@media (max-width: 768px) {
  .room-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .room-left img {
    margin-bottom: 15px;
  }
  .room-meta, .score-bars {
    grid-template-columns: 1fr;
  }
}
