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;
}