body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.4;
    color: #333;
    background-color: #ffffff;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 5px;
    width: 100%;
    box-sizing: border-box;
}

.navbar {
    background-color: #112240;
    padding: 5px 0;
    box-shadow: none;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar img {
    max-height: 25px;
    max-width: 80px;
}

.logo-link {
    padding: 5px;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.published-date {
    font-size: 0.8em;
    color: #ffffff;
    background-color: transparent;
    padding: 0;
}

h1 {
    font-size: 1.5em;
    margin: 10px 0;
    color: #2c3e50;
    text-align: center;
    font-weight: 600;
    line-height: 1.2;
}

.article-excerpt {
    font-size: 1em;
    font-style: italic;
    margin: 5px 0;
    color: #34495e;
    text-align: center;
}

.featured-image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Hide featured image in preview mode */
.article-preview .featured-image {
    display: none;
}

.author-card {
    background: #ffffff;
    padding: 20px;
    margin: 15px 0;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.author-card img {
    width: 80px;
    height: 80px;
    border-radius: 40%;
    margin-right: 20px;
}

.btn-primary {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

#readMoreButton {
    background-color: unset !important;
    border: none;
    padding: 12px 24px;
    font-size: 1.1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: underline;
}

#readMoreButton:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.btn-primary:hover {
    background-color: #c0392b;
}

#readMoreButton {
    display: block;
    margin: 20px auto;
    width: 80%;
}

footer {
    background-color: #112240;
    color: #ecf0f1;
    padding: 30px 0;
    margin-top: auto;
}

.site-footer {
    text-align: center;
}

.footer-links {
    margin: 20px 0;
}

.footer-links a {
    color: #64ffda;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #2980b9;
}

/* Styles for rampjs divs - make them more prominent */
#rampjs_slot1, #rampjs_slot5 {
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 10px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Native advertisement block styles */
.native-ad-block {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.native-ad-block h4 {
    font-size: 1.5em;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 15px;
}

.ad-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.ad-item {
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.ad-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.ad-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 10;
}

.ad-item h3 {
    font-size: 1em;
    margin: 0;
    color: #ffffff;
    background-color: #3498db;
    padding: 8px;
    text-align: center;
    text-decoration: none;
}
.ad-item a {
    text-decoration: none;
}
.ad-item h3.green {
    background-color: #27ae60;
}

/* Desktop styles for native ad block */
@media (min-width: 768px) {
    .ad-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .native-ad-block {
        padding: 20px;
    }
}

/* Article preview styles */
.article-preview {
    position: relative;
    max-height: 200px;
    overflow: hidden;
}

.article-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
    pointer-events: none;
}

.article-full {
    max-height: none;
    overflow: visible;
}

.article-full::after {
    display: none;
}

/* Dark mode gradient for preview */
.dark-mode .article-preview::after {
    background: linear-gradient(to bottom, rgba(10, 25, 47, 0) 0%, rgba(10, 25, 47, 1) 100%);
}

/* Responsive adjustments for the preview height */
@media (max-width: 768px) {
    .article-preview {
        max-height: 150px;
    }
}

/* Dark Mode Adjustments */
.dark-mode {
    background-color: #0a192f;
    color: #e0e0e0;
}

.dark-mode .navbar {
    background-color: #112240;
}

.dark-mode h1,.dark-mode .native-ad-block h4 {
    color: #64ffda; /* Bright cyan color for dark mode */
}

.dark-mode .article-excerpt {
    color: #b0b0b0;
}

.dark-mode .author-card,
.dark-mode #rampjs_slot1,
.dark-mode #rampjs_slot5,
.dark-mode .native-ad-block {
    background-color: #112240;
    box-shadow: 0 2px 10px rgba(255,255,255,0.1);
}

.dark-mode .btn-primary {
    background-color: #e74c3c;
}

.dark-mode .btn-primary:hover {
    background-color: #c0392b;
}

.dark-mode footer {
    background-color: #112240;
    color: #b0b0b0;
}

.dark-mode .footer-links a {
    color: #64ffda;
}

.dark-mode .footer-links a:hover {
    color: #2980b9;
}

.dark-mode #readMoreButton {
    background-color: #64ffda;
    color: #112240;
}

.dark-mode #readMoreButton:hover {
    background-color: #4fd1c5;
}

#articleContent h1, #articleContent h2, #articleContent h3, #articleContent h4, #articleContent h5, #articleContent h6 {
    color: #2c3e50;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

#articleContent p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1em;
}

#articleContent a {
    color: #3498db;
    text-decoration: none;
}

#articleContent a:hover {
    text-decoration: underline;
}

.dark-mode #articleContent h1,
.dark-mode #articleContent h2,
.dark-mode #articleContent h3,
.dark-mode #articleContent h4,
.dark-mode #articleContent h5,
.dark-mode #articleContent h6 {
    color: #64ffda !important;
}

.dark-mode #articleContent p {
    color: #e0e0e0 !important;
}

.dark-mode #articleContent a {
    color: #8ab4f8 !important;
}

.dark-mode #articleContent a:hover {
    color: #adc8ff !important;
}

.dark-mode #articleContent ul,
.dark-mode #articleContent ol {
    color: #e0e0e0 !important;
}

.dark-mode #articleContent blockquote {
    border-left-color: #64ffda !important;
    color: #b0b0b0 !important;
    background-color: #1a2942 !important;
}
.hidden {
    display: none !important;
}
.dark-mode {
    body, main, p, h2 {
        background-color: unset !important;
        color: #bdbdbd !important;
    }
    #readMoreButton {
        color: #bdbdbd !important;
    }
}