body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    background-color: #000000;
    color: #e0e0e0;
}

header {
    background-color: #000000;
    border-bottom: 1px solid #222;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

nav h1 {
    margin: 0;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 2.2rem;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: #a0a0a0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    font-size: 1.2rem;
}

nav ul li a:hover {
    color: #ffffff;
}

main {
    padding: 2rem 0;
}

.main-article {
    max-width: 1600px;
    margin: 0 auto 2rem auto;
    background: #000000;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 2rem;
}

.main-article img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.main-article h2 {
    margin-top: 0;
    color: #ffffff;
}

.grid-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1600px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.card {
    background: #000000;
    border: 1px solid #222;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.card img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card h3 {
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 0;
    color: #ffffff;
}

.card p {
    padding: 0 1rem 1rem 1rem;
    margin: 0;
    color: #a0a0a0;
}

.card small {
    display: block;
    padding: 0 1rem 1rem 1rem;
    color: #777;
}


.mod-panel {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
}

.mod-panel h2 {
    color: #ffffff;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: .5rem;
    font-weight: bold;
    color: #a0a0a0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: .8rem;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #222;
    color: #e0e0e0;
}

.btn {
    display: inline-block;
    padding: .8rem 1.5rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn:hover {
    background: #0056b3;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.separator {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid #333;
}

.articles-list .article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #333;
}

.article-details {
    display: flex;
    align-items: center;
}

.article-thumb {
    width: 80px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 1rem;
}

/* Home Page Layout */
.home-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.featured-article .main-article-card {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.featured-article .main-article-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

.featured-article .article-info {
    padding: 1rem 0;
}

.main-article-card-link {
    text-decoration: none;
    color: inherit;
}

.featured-article .article-info h2 a {
    color: #ffffff;
    text-decoration: none;
}

@keyframes shimmer {
    0% {
        background-position: -2000px 0;
    }
    100% {
        background-position: 2000px 0;
    }
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}
/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 110%; /* Increase base font size for mobile */
    }

    header {
        padding: 0.5rem 0;
    }

    nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 1rem;
    }

    .hamburger-menu {
        display: flex;
    }

    nav h1 {
        font-size: 2rem;
        margin: 0;
    }

    .nav-links {
        display: none;
        list-style: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 60px; /* Position below header */
        left: 0;
        width: 100%;
        background-color: #000;
        border-top: 1px solid #222;
        padding: 1.5rem 0;
        margin: 0;
        z-index: 1005;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0 0 1.2rem 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        font-size: 1.3rem;
        padding: 0.5rem;
    }

    .start-earning-btn {
        display: block;
        text-align: center;
        padding: 0.8rem;
        font-size: 1.3rem;
        margin-top: 0.3rem;
    }

    main {
        padding: 1rem 0;
    }

    .home-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }

    .grid-articles {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .older-posts-section {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .article-container {
        padding: 0 1rem;
    }
    
    .article-header h1 {
        font-size: 2.2rem; /* Make article titles bigger */
    }

    .sidebar-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .sidebar-list .sidebar-item {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        transition: transform 0.2s ease-in-out;
    }

    .sidebar-list .sidebar-item:hover {
        transform: translateY(-5px);
    }

    .sidebar-item-info {
        text-align: center;
    }

    .sidebar-item img {
        width: 100%;
        aspect-ratio: 4 / 3;
    }
    
    .sidebar-item-info h4 a {
        font-size: 1.1rem; /* Slightly larger titles in sidebar */
        line-height: 1.3;
    }

    .overlay-title h2 {
        font-size: 1.8rem; /* Bigger title on featured image */
    }

    .overlay-title h3 {
        font-size: 1.4rem; /* Bigger title on card images */
    }

    .article-body {
        font-size: 1.2rem; /* Larger article body text */
        line-height: 1.9;
    }

    .featured-article .article-info {
        padding: 0.8rem 0;
    }

    .sidebar-articles {
        margin-top: 1rem;
    }

    .sidebar-articles h3 {
        margin-bottom: 0.8rem;
        text-align: center;
    }

    .card {
        margin-bottom: 0.5rem;
    }
}

/* Start Earning Button */
.start-earning-btn {
    background-color: #28a745; /* Green background */
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.start-earning-btn:hover {
    background-color: #218838; /* Darker green on hover */
    transform: translateY(-2px);
}

/* Footer Styles */
footer {
    background-color: #111;
    color: #a0a0a0;
    padding: 3rem 0;
    margin-top: 3rem;
    border-top: 1px solid #333;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-about, .footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-about h2, .footer-links h2 {
    color: #ffffff;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #444;
    padding-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-links ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden; /* Prevent content from overflowing the card */
}

.card-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
    line-height: 1.4;
}

.card-content h3 a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.card-content h3 a:hover {
    color: #0091ff;
}

.card-content p {
    margin: 0 0 1rem 0;
    color: #a0a0a0;
    flex-grow: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.card-content small {
    color: #777;
    margin-top: auto; /* Push the metadata to the bottom */
}

.lazy-load {
    background-color: #1c1c1c;
    background-image: linear-gradient(to right, #1c1c1c 0%, #333 20%, #1c1c1c 40%, #1c1c1c 100%);
    background-repeat: no-repeat;
    background-size: 2000px 100%;
    animation: shimmer 2.5s infinite linear;
    opacity: 0.7;
    transition: opacity 0.5s ease-in-out;
}

.lazy-load.loaded {
    background-image: none;
    animation: none;
    opacity: 1;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #a0a0a0;
}

/* Flash Messages */
.flashes {
    list-style: none;
    padding: 0 2rem;
    margin: 1rem auto;
    max-width: 1600px;
}

.flash-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    color: #ffffff;
    font-weight: bold;
}

.flash-message.error {
    background-color: #dc3545;
}

.flash-message.success {
    background-color: #28a745;
}

/* Drag and Drop Upload */
.drop-zone {
    max-width: 100%;
    height: 200px;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: "Quicksand", sans-serif;
    font-weight: 500;
    font-size: 20px;
    cursor: pointer;
    color: #cccccc;
    border: 2px dashed #444;
    border-radius: 10px;
    transition: border-color 0.3s, background-color 0.3s;
}

.drop-zone--over {
    border-color: #007bff;
    background-color: #222;
}

.drop-zone__input {
    display: none;
}

.drop-zone__thumb {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #111;
    background-size: cover;
    background-position: center;
    position: relative;
}

.drop-zone__thumb::after {
    content: attr(data-label);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 5px 0;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.75);
    font-size: 14px;
    text-align: center;
}

.tag-meta {
    color: #a0a0a0;
    font-weight: bold;
}

.featured-article .article-info p {
    color: #a0a0a0;
}

.sidebar-articles h3 {
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.sidebar-list .sidebar-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sidebar-item img {
    width: 120px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 4px;
}

.sidebar-item-info h4 a {
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1rem;
}

.sidebar-item-info small {
    color: #777;
}

/* Article Detail Page */
.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.article-meta {
    color: #a0a0a0;
    margin-bottom: 2rem;
}

.article-image-full {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 1.5em;
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
    margin-top: 2em;
    margin-bottom: 1em;
    font-weight: 700;
    line-height: 1.3;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.article-body li {
    margin-bottom: 0.5em;
}

.article-body a {
    color: #0091ff;
    text-decoration: underline;
}

.article-body a:hover {
    text-decoration: none;
}

.older-posts-section {
    margin-top: 3rem;
    padding: 0 2rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 1.8rem;
    color: #ffffff;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.card-content h3 a {
    color: #ffffff;
    text-decoration: none;
}
.seo-content-wrapper {
    background-color: #0d0d0d;
    padding: 3rem 0;
    font-family: 'Georgia', serif;
}

.seo-content-wrapper .container {
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    padding: 2.5rem;
    background-color: #000000;
    border: 1px solid #222;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease-in-out;
}

.seo-content-wrapper .container:hover {
    transform: translateY(-5px);
}

.seo-content-wrapper h2, .seo-content-wrapper h3, .seo-content-wrapper h4 {
    color: #ffffff;
    border-bottom: 2px solid #0091ff;
    padding-bottom: 0.8rem;
    margin-bottom: 1.8rem;
    font-weight: 700;
}

.seo-content-wrapper h2 {
    font-size: 2.2rem;
    text-align: center;
}

.seo-content-wrapper h3 {
    font-size: 1.8rem;
}

.seo-content-wrapper h4 {
    font-size: 1.4rem;
    color: #e0e0e0;
    border-bottom-style: dashed;
}

.seo-content-wrapper p {
    line-height: 1.9;
    margin-bottom: 1.2rem;
    color: #b0b0b0;
    font-size: 1.1rem;
}

.seo-content-wrapper ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.8rem;
}

.seo-content-wrapper li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: #b0b0b0;
    font-size: 1.1rem;
}

.seo-content-wrapper li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #0091ff;
    font-weight: bold;
    font-size: 1.2rem;
}

.seo-content-wrapper strong {
    color: #0091ff;
    font-weight: 700;
}

.seo-content-wrapper em {
    color: #a0a0a0;
    font-style: italic;
}
