:root {
    --primary-color: #FAFAFA;
    --secondary-color: #676363;
    --border-color: black;
    --header-link-bg: red;
    --table-header-color: #FA58F4;
    --font-family: Arial, Helvetica, sans-serif;
}

/* Base styles for a clean slate */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    background-color: white;
}

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

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    padding: 10px 0;
    border-bottom: 2px solid var(--border-color);
}

.main-nav {
    display: flex;
    justify-content: center;
    list-style: none;
}

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

.main-nav a {
    display: block;
    padding: 10px 20px;
    background-color: var(--header-link-bg);
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.2;
}

/* Page Title and Content Sections */
.page-title {
    text-align: center;
    font-size: 2rem;
    margin: 20px 0;
}

.content-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.text-content, .image-content {
    flex: 1 1 50%;
    min-width: 300px;
    background-color: white;
    padding: 15px;
}

/* Headings and Paragraphs */
h2, h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

p {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 15px;
}

/* Tables */
.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
}

th, td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.table-header th {
    background-color: #333;
    color: var(--table-header-color);
    font-weight: bold;
}

tbody tr:nth-child(odd) {
    background-color: #f2f2f2;
}

/* Images and Figures */
figure {
    text-align: center;
    margin-bottom: 20px;
}

figure img {
    width: 100%;
    max-width: 310px;
    height: auto;
}

figcaption a {
    font-weight: bold;
    text-decoration: none;
    color: #000;
}

.image-description {
    font-size: 0.9rem;
    margin-top: 10px;
}

.internal-link {
    display: inline-block;
    margin-top: 10px;
    text-decoration: none;
    color: blue;
    font-weight: bold;
}

/* Media Queries for responsiveness */
@media (max-width: 768px) {
    .content-section {
        flex-direction: column;
    }

    .main-nav {
        flex-direction: column;
    }

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