:root {
    /* Color palette */
    --color-bg-light:   #fdf6e3;
    --color-bg-dark:    #002b36;
    --color-text-light: #333;
    --color-text-dark:  #eee;
    --color-primary:    #268bd2;
    --color-primary-d:  #1e6ea0;
    --transition-fast:  0.2s;
    --transition-base:  0.3s;
}

/* Reset and base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    transition: background var(--transition-base), color var(--transition-base);
}

/* Theme colors */
@media (prefers-color-scheme: light) {
    body {
        background: var(--color-bg-light);
        color: var(--color-text-light);
    }
    .hero-box {
        background: #eee8d5;
    }
}

@media (prefers-color-scheme: dark) {
    body {
        background: var(--color-bg-dark);
        color: var(--color-text-dark);
    }
    .hero-box {
        background: #073642;
    }
}

.medium .large {
    width: 100%
}

/* Hero box */
.hero-box {
    margin: 2rem auto;
    border-radius: 8px;
    overflow: hidden;
    transition: background var(--transition-base);
}

.hero-box img {
    display: block;
    width: 100%;
    height: auto;
}

/* Content inside the box */
.hero-box .content {
    padding: 1.5rem;
}

.hero-box h1 {
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
}

.hero-box h2 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: normal;
}

.hero-box p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive width */
@media (min-width: 768px) {
    .medium {
        width: 70%;
    }
    .large {
        width: 90%;
    }
}

/* Consolidated table styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

th, td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #f2f2f2;
    color: var(--color-text-light);
}

tr:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Form styles */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.form-actions {
    margin-top: 2rem;
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--color-primary-d);
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background-color: #6c757d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 0.5rem;
    transition: background var(--transition-fast);
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.py-1 {
    padding: 1em 0;
}

.pt-1 {
    padding: 1em 0 0 0;
}

/* Global link styling */
a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    text-decoration: underline;
}

a:visited {
    color: var(--color-primary);
}

.content > p {
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    line-height: 1.5;
}

/* Common nav styles */
nav ul {
    display: flex;
    list-style: none;
    margin: 1rem 0;
}

nav ul li {
    margin-right: 1rem;
}

nav ul li a {
    padding: 0.5rem;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 2rem;
}

footer a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    text-decoration: underline;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
    th {
        background-color: #073642;
        color: var(--color-text-dark);
    }

    td {
        border-bottom: 1px solid #073642;
    }

    tr:hover,
    nav ul li a:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }
}