body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
}

h2 {
    color: #444;
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.time-block-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.news-anchor-summary {
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #007bff;
}

.news-anchor-content {
    font-size: 1.1em;
    line-height: 1.8;
    padding: 15px;
}

.news-anchor-content p {
    margin: 0;
    text-align: justify;
}

.news-anchor-content br {
    display: block;
    margin-top: 0.5em;
}

.top-ten-articles {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
}

.top-ten-content ol {
    padding-left: 20px;
    list-style-position: outside;
    counter-reset: item;
}

.top-ten-content li {
    margin-bottom: 15px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    position: relative;
    list-style: none;
}

.top-ten-content li:before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: -25px;
    top: 15px;
    font-weight: bold;
    color: #007bff;
    background: #fff;
    width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #007bff;
}

.top-ten-content li strong {
    color: #007bff;
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    font-weight: 600;
}

.top-ten-content li p {
    margin: 0;
    color: #444;
    line-height: 1.6;
    padding-left: 1em;
    border-left: 3px solid #e9ecef;
}

.news-item {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.news-item h2 {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.news-item h2 a {
    color: #007bff;
    text-decoration: none;
}

.news-item h2 a:hover {
    text-decoration: underline;
}

.meta {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
}

.time-block-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 5px 10px;
    background-color: #e9ecef;
    border-radius: 4px;
    font-size: 0.9em;
    color: #495057;
}

.time-block-info span {
    display: inline-block;
}

/* --- NEW STYLES for two-column layout --- */
.content-row {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens if needed */
    gap: 20px; /* Space between columns */
    margin-bottom: 20px; /* Space below the row */
}

.column-half {
    flex: 1; /* Each column takes equal space */
    min-width: 300px; /* Minimum width before wrapping, adjust as needed */
    /* time-block-section styles will apply, including padding and background */
}

/* --- NEW STYLES for DefiLlama Yields (Clean Text Format) --- */
.defi-yields-list { /* This class is on the main content div in HTML, keep it for padding if needed */
    padding: 10px 0; /* Adjusted padding, mostly for top/bottom */
}

.defi-yield-text-container { 
    /* This is the new immediate container of yield items if script.js adds it. */
    /* No specific styles needed here unless for overall spacing of the block */
}

.defi-yield-text-item {
    background-color: #f8f9fa; /* Light background for each item block */
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 12px; /* Space between items */
    border-left: 3px solid #28a745; /* Subtle green accent */
}

.defi-yield-text-item p {
    margin: 4px 0; /* Tighter spacing between lines within an item */
    color: #333;
    font-size: 0.95em;
    line-height: 1.5;
}

.defi-yield-text-item .yield-line-1 strong {
    color: #1e7e34; /* Darker green for project/symbol */
    font-size: 1.05em; /* Slightly larger for emphasis */
}

.defi-yield-text-item .defi-yield-project-icon {
    width: 24px; /* Match requested size */
    height: 24px; /* Match requested size */
    vertical-align: middle; /* Align icon nicely with text */
    margin-right: 6px; /* Space between icon and text */
    border-radius: 4px; /* Optional: slightly rounded corners for icon */
}

.defi-yield-text-item .pool-details-link {
    text-decoration: none; /* Remove underline from the main link */
    color: inherit; /* Inherit color from parent, so it doesn't turn blue by default */
}

.defi-yield-text-item .pool-details-link:hover {
    text-decoration: underline; /* Add underline on hover for better UX */
    color: #0056b3; /* Optional: darken color on hover */
}

.defi-yield-text-item .yield-line-1 {
    margin-bottom: 6px; /* More space after the main identifying line */
}

.defi-yield-text-item .apy-value {
    font-weight: bold;
    color: #28a745; /* Green for APY value */
}

.defi-yield-text-item .tvl-value {
    font-weight: bold;
    color: #333;
}

/* --- STYLES for Crypto Market Movers --- */
.market-movers-lists {
    display: flex;
    justify-content: space-between; /* Puts space between gainers and losers columns */
    gap: 20px; /* Adds space if they wrap */
}

.market-list {
    flex: 1; /* Each list (gainers/losers) takes up half the space */
    min-width: 250px; /* Minimum width before wrapping */
}

.market-list h3 {
    font-size: 1.2em;
    color: #555;
    margin-bottom: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.market-list ul {
    list-style-type: none;
    padding-left: 0;
}

.market-list li {
    display: flex;
    flex-direction: column; /* Stack main info and details vertically */
    align-items: stretch; /* Stretch items to fill width */
    margin-bottom: 12px;
    padding: 10px;
    background-color: #fdfdfd;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
}

.coin-icon {
    width: 32px;  /* Or your preferred small size */
    height: 32px; /* Maintain aspect ratio */
    margin-right: 10px;
    border-radius: 50%; /* Make them circular if desired, or remove for square */
}

.coin-name {
    flex-grow: 1; /* Allows the name to take up available space */
    font-size: 0.95em;
    color: #333;
}

.coin-name a {
    text-decoration: none;
    color: inherit; /* Inherit color from .coin-name */
}

.coin-name a:hover {
    text-decoration: underline;
    color: #0056b3;
}

.coin-current-price {
    margin-left: 8px;
    font-size: 0.9em;
    color: #555;
    font-weight: bold;
}

.coin-percentage {
    font-weight: bold;
    font-size: 0.95em;
    padding: 3px 6px;
    border-radius: 3px;
}

.positive-change {
    color: #28a745; /* Green for positive change */
    background-color: #e9f5ec;
}

.negative-change {
    color: #dc3545; /* Red for negative change */
    background-color: #fbe LATERIE; /* Typo: Assuming #fbebee or similar light red */
}

/* --- STYLES for Crypto Market Movers (continued) --- */
.coin-info-main {
    display: flex;
    align-items: center;
    margin-bottom: 8px; /* Space between main info and details */
}

.coin-info-details {
    display: flex;
    flex-direction: column; /* Stack detail items vertically */
    font-size: 0.85em;
    color: #555;
    padding-left: 0; /* Remove previous padding, details will align under themselves */
    margin-top: 5px; /* Add a little space above the details block if needed */
    margin-left: 42px; /* Align with coin name (icon width + margin) */
}

.detail-item {
    margin-bottom: 4px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

/* --- STYLES for Pendle Yields --- */
.pendle-yields-list {
    padding: 10px 0;
}

.pendle-yield-container {
    /* Container for all pendle yield items */
}

.pendle-yield-item {
    background-color: #f8f9fa;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 12px;
    border-left: 3px solid #ff7f50; /* Coral accent for Pendle */
}

.pendle-yield-item p {
    margin: 4px 0;
    color: #333;
    font-size: 0.95em;
    line-height: 1.5;
}

.pendle-yield-item .yield-line-1 strong {
    color: #cc5522; /* Darker coral for market name */
    font-size: 1.05em;
}

.chain-badge {
    font-size: 0.8em;
    color: #777;
    background-color: #eee;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: 5px;
    font-weight: normal;
}

.pendle-yield-item .pool-details-link {
    text-decoration: none;
    color: inherit;
}

.pendle-yield-item .pool-details-link:hover {
    text-decoration: underline;
    color: #0056b3;
}

.pendle-yield-item .yield-line-1 {
    margin-bottom: 6px;
}

.pendle-yield-item .apy-value {
    font-weight: bold;
    color: #ff7f50; /* Coral for APY value */
}

.pendle-yield-item .liquidity-value {
    font-weight: bold;
    color: #333;
}

/* REMOVE or COMMENT OUT old list-based styles if no longer used by other elements */
/* It's safer to comment out first if unsure */
/*
.defi-yield-list-items {
    list-style-type: none;
    padding-left: 0;
}

.defi-yield-item {
    background-color: #f8f9fa; 
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    border-left: 4px solid #28a745; 
}

.defi-yield-item strong {
    color: #1e7e34; 
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
}

.defi-yield-item p {
    margin: 5px 0;
    color: #333;
    font-size: 0.95em;
}

.defi-yield-item .apy-value {
    font-weight: bold;
    color: #28a745;
}

.defi-yield-item .tvl-value {
    font-weight: bold;
    color: #333;
}

.defi-yield-item .pool-link a {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9em;
}

.defi-yield-item .pool-link a:hover {
    text-decoration: underline;
}
*/

.powered-by-subtitle {
    text-align: center;
    font-size: 0.85em;
    color: #777;
    margin-top: -25px; /* Pull it closer to the h2 above */
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .time-block-section {
        padding: 15px;
    }
    
    .news-anchor-content {
        font-size: 1em;
    }
}