/* General page styling */
* {
    box-sizing: border-box;
}

body {
    background-color: #dff6ff;
    color: #173f46;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
}

header {
    background-color: #2e8b76;
    color: white;
    padding: 25px;
    text-align: center;
}

header h1 {
    font-family: Georgia, serif;
    font-size: 42px;
    letter-spacing: 2px;
    margin: 0 0 18px;
    text-shadow: 2px 2px #135548;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

nav a {
    background-color: #bdeeff;
    border-radius: 6px;
    color: #124c48;
    font-weight: bold;
    padding: 10px 18px;
    text-decoration: none;
}

nav a:hover {
    background-color: white;
    color: #16705f;
}

main {
    margin: auto;
    max-width: 1100px;
    padding: 30px 20px;
}

section {
    margin-bottom: 40px;
}

h2 {
    color: #176b5b;
    font-family: Georgia, serif;
    font-size: 30px;
}

h3 {
    color: #15594d;
    font-size: 23px;
}

p {
    margin-bottom: 18px;
}

.hero {
    align-items: center;
    background-color: white;
    border-left: 10px solid #2e8b76;
    border-radius: 10px;
    display: grid;
    gap: 30px;
    grid-template-columns: 1fr 1fr;
    padding: 28px;
}

.hero img,
.image-section img {
    border: 6px solid #2e8b76;
    border-radius: 12px;
    display: block;
    height: auto;
    max-width: 100%;
}

.page-heading {
    background-color: #bdeeff;
    border-bottom: 6px solid #2e8b76;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
}

.image-section img {
    margin: auto;
}

.content-box {
    background-color: white;
    border-left: 8px solid #2e8b76;
    border-radius: 8px;
    padding: 25px;
}

.button {
    background-color: #2e8b76;
    border-radius: 6px;
    color: white;
    display: inline-block;
    font-weight: bold;
    padding: 11px 20px;
    text-decoration: none;
}

.button:hover {
    background-color: #175f51;
}

ul,
ol {
    background-color: white;
    border-radius: 8px;
    padding: 20px 20px 20px 45px;
}

li {
    margin: 8px 0;
}

/* Media and cards */
.video-container {
    aspect-ratio: 16 / 9;
    max-width: 800px;
}

.video-container iframe {
    border: 6px solid #2e8b76;
    border-radius: 10px;
    height: 100%;
    width: 100%;
}

.card-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background-color: white;
    border-top: 8px solid #2e8b76;
    border-radius: 8px;
    box-shadow: 0 4px 10px #8fbfc0;
    padding: 20px;
}

/* Table styling */
.table-container {
    overflow-x: auto;
}

table {
    background-color: white;
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border: 2px solid #2e8b76;
    padding: 13px;
    text-align: left;
}

th {
    background-color: #2e8b76;
    color: white;
}

tr:nth-child(even) {
    background-color: #cef2f4;
}

dl {
    background-color: white;
    border-radius: 8px;
    padding: 25px;
}

dt {
    color: #176b5b;
    font-size: 20px;
    font-weight: bold;
}

dd {
    margin-bottom: 18px;
}

/* Form styling */
form {
    background-color: white;
    border: 5px solid #2e8b76;
    border-radius: 10px;
    padding: 25px;
}

fieldset {
    border: 2px solid #62b7aa;
    margin-bottom: 25px;
    padding: 20px;
}

legend {
    color: #176b5b;
    font-size: 22px;
    font-weight: bold;
}

label {
    display: block;
    font-weight: bold;
    margin-top: 15px;
}

input[type="text"],
input[type="email"],
select,
textarea {
    border: 2px solid #62b7aa;
    border-radius: 5px;
    font: inherit;
    padding: 10px;
    width: 100%;
}

input[type="range"] {
    width: 100%;
}

.choice {
    font-weight: normal;
    margin: 8px 0;
}

button {
    background-color: #2e8b76;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 17px;
    padding: 12px 22px;
}

button:hover {
    background-color: #175f51;
}

.form-buttons {
    display: flex;
    gap: 15px;
}

.contact-box {
    background-color: #bdeeff;
    border-radius: 10px;
    margin-top: 35px;
    padding: 25px;
    text-align: center;
}

footer {
    background-color: #164f47;
    color: white;
    padding: 22px;
    text-align: center;
}

footer a {
    color: #bdeeff;
}

/* Mobile screen formatting */
@media (max-width: 750px) {
    .hero,
    .card-grid {
        grid-template-columns: 1fr;
    }

    header h1 {
        font-size: 32px;
    }

    nav {
        flex-direction: column;
    }

    nav a {
        display: block;
    }
}