body {
    background-color: #fff;
    color: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* --- Improved Heading Styles --- */
h1 {
    color: #031123;
    font-size: 2.5em;
    margin-bottom: 0.5em;
    border-bottom: 2px solid #2e5991;
    padding-bottom: 0.2em;
}

h2, h3, h4, h5, h6 {
    color: #1a202c; /* A slightly softer black */
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3;
}

h2 {
    font-size: 2em;
    border-bottom: 1px solid #e2e8f0; /* Lighter border than h1 */
    padding-bottom: 0.3em;
}

h3, .wp-block-heading { /* Includes class from WordPress */
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

/* --- General Styles --- */
a {
    color: #2e5991;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}
a:hover {
    color: #031123;
    text-decoration: underline;
}
hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 40px 0;
}
pre {
    background-color: #f8f9fa;
    padding: 15px;
    white-space: pre-wrap;
    word-wrap: break-word;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

/* --- Image and Media Styles --- */
/* Base image style, already existed but adding display: block for consistency */
img, video, iframe {
    max-width: 100%;
    height: auto;
    border-radius: 5px; /* Keep the existing border-radius for other media */
    display: block; /* Ensure images behave as block elements */
}

/* Ensure WordPress image blocks and their images are full width */
.wp-block-image.size-full,
.wp-block-image.size-large,
.wp-block-image { /* Target general blocks too */
    width: 100%;
    max-width: 100%; /* Ensure it doesn't exceed parent */
    margin-left: auto; /* Center if it has a smaller max-width */
    margin-right: auto;
    box-sizing: border-box; /* Include padding/border in width calculation */
}

.wp-block-image img {
    width: 100% !important; /* Force full width and override inline styles */
    height: auto !important; /* Maintain aspect ratio */
    display: block; /* Remove any extra space below the image */
    border-radius: 8px; /* A slightly larger radius for bigger images */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* Add a subtle shadow */
}

/* Also ensure images directly in the content area are full width */
/* This is a more general rule for images not in figure, or directly in div/p */
body > div > p > img,
body > div > img { /* For images not wrapped in figure or p */
    width: 100% !important;
    height: auto !important;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 1.5em;
}

.featured-image {
    margin-bottom: 2em;
    text-align: center;
}

iframe.ydzen_video {
    width: 100%;
    min-height: 350px;
}

/* --- Block & Component Styles --- */
.embedded-post-link {
    background-color: #f8f9fa;
    border-left: 4px solid #2e5991;
    padding: 15px 20px;
    margin: 30px 0;
}
.post-terms {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
}
.post-terms a {
    margin-right: 10px;
}
.wp-block-quote {
    background-color: #f7f7f7;
    border-left: 5px solid #2e5991;
    padding: 15px 20px;
    margin: 30px 0;
    font-style: italic;
    color: #333;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.wp-block-quote p {
    margin-bottom: 0;
}
.wp-element-caption {
    font-size: 0.85em;
    color: #888;
    text-align: center;
    margin-top: 0.5em;
}

/* --- Balaban Games Widget --- */
.balaban-games-widget {
    background-color: #2a2a2a; /* Dark grey background */
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    color: #ffffff; /* White text for contrast */
}

.balaban-games-widget h3 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: bold;
}

.balaban-games-widget p {
    color: #e0e0e0; /* Lighter grey for paragraph text */
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 25px;
}

.balaban-games-widget .widget-cta-button {
    display: inline-block;
    background-color: #3b82f6; /* New button color */
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 50px; /* Pill-shaped button */
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    border: none;
}

.balaban-games-widget .widget-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-decoration: none;
    color: #fff;
}

.balaban-games-widget .widget-footer-text {
    color: #b0b0b0;
    font-size: 12px;
    margin-top: 20px;
}

/* --- Inline Article Quiz Widget --- */
.rtd-quiz-widget {
  box-sizing: border-box;
  max-width: 620px;
  margin: 42px auto 26px;
  padding: 28px;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #f8fafc;
  color: #172033;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.rtd-quiz-widget *, .rtd-quiz-widget *::before, .rtd-quiz-widget *::after { box-sizing: border-box; }
.rtd-quiz-widget .rtd-quiz-kicker { margin: 0 0 6px; color: #667085; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.rtd-quiz-widget .rtd-quiz-title { margin: 0 0 10px; padding: 0; border: 0; color: #031123; font-size: 26px; line-height: 1.25; }
.rtd-quiz-widget .rtd-quiz-description { margin: 0 0 20px; color: #475467; font-size: 16px; line-height: 1.6; }
.rtd-quiz-button { appearance: none; border: 0; border-radius: 999px; padding: 12px 22px; background: #2e5991; color: #fff; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s ease, background .15s ease; }
.rtd-quiz-button:hover { background: #234675; transform: translateY(-1px); }
.rtd-quiz-progress { height: 7px; overflow: hidden; margin: 0 0 22px; border-radius: 999px; background: #e6edf5; }
.rtd-quiz-progress span { display: block; width: 0; height: 100%; background: #2e5991; transition: width .25s ease; }
.rtd-quiz-question { margin: 0; }
.rtd-quiz-question-number { margin: 0 0 6px; color: #667085; font-size: 13px; font-weight: 700; }
.rtd-quiz-widget .rtd-quiz-question h4 { margin: 0 0 16px; color: #172033; font-size: 20px; line-height: 1.4; }
.rtd-quiz-options { display: grid; gap: 10px; }
.rtd-quiz-option { width: 100%; padding: 13px 15px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #172033; text-align: left; font: inherit; line-height: 1.45; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.rtd-quiz-option:hover { border-color: #2e5991; background: #f1f6fb; transform: translateY(-1px); }
.rtd-quiz-option:disabled { cursor: default; opacity: .7; transform: none; }
.rtd-quiz-result { padding-top: 4px; }
.rtd-quiz-widget .rtd-quiz-result h4 { margin: 0 0 10px; color: #031123; font-size: 23px; }
.rtd-quiz-widget .rtd-quiz-result p { margin: 0 0 18px; color: #475467; line-height: 1.65; }
.rtd-quiz-restart { background: #475467; }
.rtd-quiz-restart:hover { background: #344054; }
@media (max-width: 600px) {
  .rtd-quiz-widget { margin: 32px 0 22px; padding: 20px; }
  .rtd-quiz-widget .rtd-quiz-title { font-size: 22px; }
  .rtd-quiz-widget .rtd-quiz-question h4 { font-size: 18px; }
}


/* --- Site navigation, breadcrumbs and SEO hubs --- */
.site-nav { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; margin:0 0 28px; padding:12px 0 16px; border-bottom:1px solid #e5e7eb; font-size:.95rem; }
.site-nav a { font-weight:600; white-space:nowrap; }
.breadcrumbs { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:0 0 18px; color:#667085; font-size:.88rem; line-height:1.5; }
.breadcrumbs a { color:#475467; }
.related-content { margin:42px 0 28px; padding:22px; border:1px solid #d9e2ec; border-radius:12px; background:#f8fafc; }
.related-content h2 { margin-top:0; font-size:1.35rem; border:0; padding:0; }
.related-content ul { margin-bottom:0; }
.topic-links { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 0; }
.topic-links a { display:inline-block; padding:6px 10px; border:1px solid #cbd5e1; border-radius:999px; background:#fff; font-size:.9rem; }
.hub-intro { margin:0 0 28px; font-size:1.05rem; color:#344054; }
.hub-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:18px; margin:24px 0 36px; }
.hub-card { display:block; padding:20px; border:1px solid #d9e2ec; border-radius:12px; background:#fff; color:inherit; box-shadow:0 3px 12px rgba(15,23,42,.05); }
.hub-card:hover { text-decoration:none; border-color:#94a3b8; }
.hub-card h2,.hub-card h3 { margin:0 0 8px; padding:0; border:0; font-size:1.2rem; }
.hub-card p { margin:0; color:#475467; font-size:.95rem; }
.article-list { list-style:none; padding:0; margin:20px 0 36px; }
.article-list li { display:grid; grid-template-columns:120px 1fr; gap:16px; padding:18px 0; border-bottom:1px solid #e5e7eb; }
.article-list img { width:120px; height:90px; object-fit:cover; border-radius:8px; margin:0; }
.article-list h2,.article-list h3 { margin:0 0 6px; padding:0; border:0; font-size:1.15rem; }
.article-list p { margin:0; color:#475467; font-size:.93rem; line-height:1.55; }
.meta-line { color:#667085; font-size:.84rem; margin-top:5px; }
.filters { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:12px; margin:22px 0; padding:18px; background:#f8fafc; border:1px solid #d9e2ec; border-radius:12px; }
.filters label { display:block; font-weight:600; font-size:.9rem; }
.filters select,.filters input { width:100%; margin-top:5px; padding:9px; border:1px solid #cbd5e1; border-radius:8px; background:#fff; font:inherit; }
.filter-status { margin:10px 0 16px; color:#475467; }
.glossary dt { margin-top:24px; font-weight:700; font-size:1.15rem; color:#031123; }
.glossary dd { margin:6px 0 0; }
@media(max-width:600px){ .article-list li{grid-template-columns:1fr}.article-list img{width:100%;height:auto;max-height:240px}.site-nav{gap:7px 12px} }
/* --- Article quick facts --- */
.article-facts{margin:22px 0;padding:16px 18px;border:1px solid #d9e2ec;border-radius:12px;background:#f8fafc}.article-facts h2{margin:0 0 12px;font-size:1.15rem}.article-facts dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px 18px;margin:0}.article-facts dl>div{min-width:0}.article-facts dt{font-size:.82rem;color:#667085;margin:0 0 2px}.article-facts dd{margin:0;font-weight:600}.article-facts a{font-weight:600}
