/* Global Styles */
:root {
    --primary-bg: #1a1a2e;
    --secondary-bg: #2a2a3e;
    --card-bg: #3f3f5a;
    --accent-color: #8aff8a;
    --text-color: #e0e0e0;
    --light-text: #b0b0b0;
    --header-height: 60px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--primary-bg);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Header */
.main-header {
    background-color: var(--primary-bg);
    padding: 15px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 25px;
}

.main-nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Hero Section */
.hero-section {
    background-color: var(--secondary-bg);
    color: #fff;
    text-align: center;
    padding: 80px 20px;
    margin-bottom: 40px;
    border-radius: 8px;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

.btn-primary:hover {
    background-color: #6ee66e;
    color: var(--primary-bg);
    text-decoration: none;
}

/* Latest Articles */
.latest-articles h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.article-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 15px;
}

.article-meta .tag {
    background-color: #556080; /* A slightly different shade for tags */
    color: #fff;
    padding: 3px 8px;
    border-radius: 3px;
    margin-left: 10px;
    font-size: 0.8rem;
}

.article-content p {
    font-size: 1rem;
    margin-bottom: 20px;
}

.read-more {
    color: var(--accent-color);
    font-weight: 700;
    margin-top: auto; /* Pushes to the bottom */
}

.read-more:hover {
    text-decoration: underline;
}

/* Footer */
.main-footer {
    background-color: var(--primary-bg);
    color: var(--light-text);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links a {
    color: var(--light-text);
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
    }

    .main-nav ul {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav ul li {
        margin: 5px 10px;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .latest-articles h2 {
        font-size: 2rem;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.5rem;
    }

    .hero-section {
        padding: 60px 15px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
    }

    .article-content h3 {
        font-size: 1.4rem;
    }

    .main-footer {
        margin-top: 40px;
    }
}

#visitCountView {
    color: #fff;
    padding-top: 10px;
    /* font-size: 8px; */
}