/* Global styles for the ARA website */

:root {
    --primary-color: #18407b;
    --secondary-color: #2e8bdc;
    --background-color: #f5f7fa;
    --text-color: #333333;
    --light-color: #ffffff;
    --highlight-color: #f0f7ff;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

/* Navigation bar */
nav {
    background-color: var(--primary-color);
    color: var(--light-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

nav .logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--light-color);
    text-decoration: none;
}
nav .logo img {
    height: 36px;
    margin-right: 0.5rem;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}
nav ul li a {
    color: var(--light-color);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}
nav ul li a:hover, nav ul li a.active {
    background-color: var(--secondary-color);
}

/* Hero banner */
.hero {
    position: relative;
    width: 100%;
    height: 350px;
    background: url('images/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    text-align: center;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}
.hero-content h1 {
    margin: 0;
    font-size: 2.5rem;
    font-weight: 700;
}
.hero-content p {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

/* Sections */
section {
    padding: 3rem 1rem;
}
section.dark {
    background-color: var(--highlight-color);
}
section .container {
    max-width: 1000px;
    margin: 0 auto;
}
section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

section p {
    margin-bottom: 1rem;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}
table th, table td {
    border: 1px solid #ddd;
    padding: 0.5rem;
    text-align: left;
}
table th {
    background-color: var(--secondary-color);
    color: var(--light-color);
}
table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* Form styles */
form {
    max-width: 600px;
    margin: 0 auto;
}
form .form-group {
    margin-bottom: 1rem;
}
form label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: bold;
}
form input[type="text"],
form input[type="email"],
form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}
form textarea {
    resize: vertical;
    min-height: 120px;
}
form button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}
form button:hover {
    background-color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-color);
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    nav ul {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}