/* Base Styles */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #F5F5F5;
}
header {
    background-color: #4CAF50;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
header .logo {
    font-size: 1.5em;
    font-weight: bold;
}
header nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
}
header nav ul li {
    margin-left: 15px;
}
header nav ul li a {
    color: #fff;
    text-decoration: none;
}

.centre {
    text-align: center;
}

.hero {
    background: linear-gradient(to right, #4CAF50, #A5D6A7);
    color: #fff;
    text-align: center;
    padding: 50px 20px;
}
.hero h1 {
    font-size: 2.5em;
}
.hero p {
    margin: 10px 0 20px;
}
.btn {
    background-color: #FFD54F;
    color: #333;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}
.featured-articles {
    padding: 20px;
    text-align: center;
}
.articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.articles-grid article {
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/* Highlight active nav link */
nav ul li a.active {
    font-weight: bold;
    text-decoration: underline;
}

/* Article Page Styles */
.single-article {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.article-header {
    text-align: center;
    margin-bottom: 20px;
    display: flex;           /* Add this */
    flex-direction: column;  /* Add this */
    align-items: center;     /* Add this */
}
.article-header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
    width: 100%;             /* Add this */
}
.article-header .article-subtitle {
    font-size: 1.2em;
    font-weight: bolder;
    color: #FFFFFF;
    width: 100%;             /* Add this */
    margin-top: 0;
}

.article-content p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #555;
}
.article-content h2 {
    font-size: 1.8em;
    color: #4CAF50;
    margin-top: 25px;
}
.article-footer {
    text-align: center;
    margin-top: 20px;
}


/* Links Page Styles */
.links {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    line-height: 1.8;
}

.links-header h1 {
    font-size: 2.5em;
    color: #333;
    text-align: center;
    margin-bottom: 10px;
}

.links-header p {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
}

.links-list {
    list-style: none; /* Remove default list bullets */
    padding: 0;
}

.links-list li {
    margin-bottom: 15px; /* Add space between list items */
}

.links-list a {
    color: #4CAF50; /* Green color for links */
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth transition for hover */
}

.links-list a:hover {
    color: #333; /* Link changes to dark on hover */
}


.language-python {
    color: #227722;
    font-size: larger;
    font-weight: bold;
}

.language-go {
    color: teal;
    font-size: larger;
    font-weight: bold;
}

.language-julia {
    color: darkorange;
    font-size: larger;
    font-weight: bold;
}

/* Footer Styles */
footer nav ul {
    display: flex; /* Use flexbox to arrange items in a row */
    justify-content: center; /* Center the links horizontally */
    list-style: none; /* Remove bullets from the list */
    padding: 0; /* Remove default padding */
    margin: 10px 0; /* Add some margin for spacing */
}

footer nav ul li {
    margin: 0 10px; /* Add spacing between links */
}

footer nav ul li a {
    text-decoration: none; /* Remove underline from links */
    color: #4CAF50; /* Match footer link color */
    font-weight: bold; /* Make links stand out */
    transition: color 0.3s ease; /* Smooth color transition on hover */
}
footer nav ul li a:hover {
    color: #333; /* Darker color on hover */
}
