/*--- General site layout + default styling ---*/

body {
    margin: 0;
    min-height: 100vh;
    display: flex; /* Vertical layout of main elements */
    flex-direction: column;
    align-items: center;
    font-family: "Calibri Light", Calibri, "Segoe UI", sans-serif;
    font-size: 11pt;
    line-height: 1.2;
    color: rgb(0, 0, 0);
    text-align: left;
}

* {
    box-sizing: border-box;
}

header, main {
    width: 100%;
    max-width: 960px;
    padding-left: 2em;
    padding-right: 2em;
}

main {
    max-width: 1100px;
}

header {
    border-bottom: 1px solid grey;
    margin-bottom: 0.5em;
}

footer {
    margin-top: auto;
    background-color: #d4d4d4;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 1em;
    padding-bottom: 1em;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75em;
    margin-bottom: 0.5em;
}

footer a {
    color: #253c8a;
    display: inline-flex;
    text-decoration: none;
}

.privacy-policy {
    text-align: center;
    display: inline-block;
    margin-bottom: 0.35em;
}

.copyright {
    margin: 0;
    text-align: center;
    font-size: 0.9em;
}

footer svg {
    height: 1.5em;
    width: 1.5em;
}

h1,h2,h3,h4,h5,h6 {
    color: #000000;
    margin-top: 0;
    margin-bottom: 10pt;
    font-weight: normal;
    line-height: 1.2;
    text-align: left;
}

p {
    margin: 10pt 0;
    text-align: left;
    line-height: 1.2;
}

ul,
ol {
    margin: 0 0 10pt 0;
    padding-left: 0.63cm;
}

li {
    margin: 0;
    padding-left: 0.62cm;
    text-indent: -0.62cm;
    line-height: 1.2;
}

ul li {
    list-style-type: disc;
}

ol li {
    list-style-type: decimal;
}

.site-header {
    display: flex;
    align-items: center;
    min-height: 7em;
}

.site-logo {
    color: #000000;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: auto;
    font-size: 2em;
    font-weight: bold;
}

.logo {
    display: block;
    width: 500px;
    max-width: 100%;
    margin: 0 auto;
}

.hero-image {
    display: block;
    width: min(100%, 1000px);
    height: 450px;
    object-fit: cover;
    margin: 1.5em auto;
}

.home-page header {
    max-width: none;
    padding: 0 2em;
    border-bottom: 1px solid #d7d7d7;
    text-align: center;
}

.home-page .logo {
    width: 180px;
    margin: 0 auto 0.5em;
}

.home-page main {
    max-width: none;
    padding: 0;
}

.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 650px;
    padding: 3em max(2em, calc((100% - 1100px) / 2));
    background-image: url('images/AdobeStock_991079985.jpg');
    background-position: 65% center;
    background-size: cover;
    color: white;
}

.home-hero::before {
    position: absolute;
    inset: 0;
    background-color: rgba(5, 30, 61, 0.22);
    content: '';
}

.hero-content {
    position: relative;
    max-width: 34em;
}

.hero-content h1,
.hero-content p {
    color: white;
}

.hero-content h1 {
    margin: 0 0 0.35em;
    font-size: 3.5rem;
    line-height: 1.1;
}

.hero-content p {
    margin-bottom: 1.5em;
    font-size: 1.15rem;
}

.hero-button,
.about-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    padding: 0.8em 1.5em;
    border: 1px solid #253c8a;
    color: #253c8a;
    background-color: white;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
}

.hero-button {
    border-color: white;
    color: white;
    background-color: #253c8a;
}

.hero-button:hover,
.about-button:hover {
    background-color: #eaebf5;
}

.hero-button:hover {
    color: #253c8a;
}

@media (max-width: 600px) {
    .hero-image {
        height: 400px;
    }
}

.about-section {
    width: min(900px, 90%);
    max-width: none;
    margin: 30px auto 50px;
    padding: 28px 35px;
    border: 1px solid #d7d7d7;
    border-top: 3px solid #253c8a;
    background-color: #f8f8fb;
    text-align: center;
}

.about-section h2 {
    margin-top: 0;
    margin-bottom: 0.5em;
}

.about-section p {
    max-width: 50em;
    margin: 0 auto 1.2em;
    font-size: 18px;
    line-height: 1.6;
    color: #374d94;
}

.about-button {
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

.navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.navigation-link {
    color: #374d94;
    padding: 0.7em;
    text-decoration: none;
    font-weight: bold;
}

.navigation-link:hover {
    color: #6484ef;
}

/* Table styling */

.table-wrapper {
    margin: 2em 0;
    overflow-x: auto;
    border: 1px solid #d7d7d7;
    background-color: #ffffff;
}

table {
    width: 100%;
    min-width: 34em;
    border-collapse: collapse;
    color: #253c8a;
    background-color: white;
    font-family: "Calibri Light", Calibri, "Segoe UI", sans-serif;
    font-size: 11pt;
    line-height: 1.2;
}

thead {
    background-color: #253c8a;
}

th, td {
    padding: 0.8em 1em;
    text-align: left;
    vertical-align: top;
    border: 1px solid #d7d7d7;
}

th + th,
td + td {
    border-left: 1px solid #d7d7d7;
}

th {
    font-weight: bold;
    color: #ffffff;
    background-color: #253c8a;
    border-bottom: 1px solid #253c8a;
}

tbody tr {
    border-top: 1px solid #d7d7d7;
}

tbody tr:nth-child(even) {
    background-color: #f8f8fb;
}

tbody tr:hover {
    background-color: #eaebf5;
}

tbody td {
    color: #253c8a;
}

.table-wrapper ul,
.table-wrapper ol {
    margin: 0;
    padding-left: 1.2em;
}

.table-wrapper li {
    margin: 0;
    padding-left: 0.3em;
    text-indent: 0;
    line-height: 1.2;
}

/* Travel image carousel */

.travel-carousel {
    margin: 2.5em 0;
}

.carousel-image-frame {
    position: relative;
    width: 100%;
    height: calc(26em + 2cm);
    overflow: hidden;
    border-top: 3px solid #253c8a;
    border-bottom: 1px solid #d7d7d7;
    background-color: #eaebf5;
}

.carousel-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-button {
    position: absolute;
    top: 50%;
    width: 2.5em;
    height: 2.5em;
    border: 1px solid white;
    border-radius: 50%;
    background-color: rgba(37, 60, 138, 0.85);
    color: white;
    cursor: pointer;
    transform: translateY(-50%);
}

.carousel-button:hover,
.carousel-button:focus {
    background-color: #1e3da3;
}

.carousel-previous {
    left: 1em;
}

.carousel-next {
    right: 1em;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    margin-top: 0.75em;
}

.carousel-dot {
    width: 0.7em;
    height: 0.7em;
    padding: 0;
    border: 1px solid #253c8a;
    border-radius: 50%;
    background-color: white;
    cursor: pointer;
}

.carousel-dot.active,
.carousel-dot:hover,
.carousel-dot:focus {
    background-color: #253c8a;
}


/* Form styling */

form {
    max-width: 40em;
    border: 1px solid #e5e5e5;
    padding: 1.5em;
    margin: 2em 0;
}

.contact-form {
    width: 100%;
    margin: 2em auto;
    border-color: #d7d7d7;
    background-color: #f8f8fb;
}


label {
    font-size: 0.9em;
}

input[type='text'], input[type='email'], textarea {
    border-style: solid;
    border-width: 1px;
    border-color: #b3b3b3;
    width: 100%;
    margin-bottom: 1em;
    padding: 0.3em;
}

input[type='radio'] {
    display: inline;
    margin-right: 0.5em;
}

textarea {
    resize: none;
}

input[type='submit'] {
    width: auto;
    padding: 0.5em 2em;
    background-color: #1e3da3;
    color: white;
    border-style: none;
    border-radius: 0.3em;
    margin: 1.5em 0 0 0;
}

.contact-form button {
    width: auto;
    padding: 0.5em 2em;
    background-color: #1e3da3;
    color: white;
    border: none;
    border-radius: 0.3em;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #253c8a;
}

.form-header {
    margin-top: 0;
}

.form-description {
    margin-bottom: 1.5em;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem 2rem;
    margin: 2rem 0;
    padding: 0 0 1.75rem;
    background-color: #f8f8fb;
    border-top: 3px solid #253c8a;
    border-bottom: 1px solid #d7d7d7;
    color: #253c8a;
}

.info-item h3 {
    margin: 0;
    padding: 0.7rem 0 0.65rem;
    border-bottom: 1px solid #d7d7d7;
    color: #253c8a;
    font-size: 0.95rem;
    font-weight: 600;
}

.info-item p,
.info-item a {
    display: block;
    margin: 0;
    padding-top: 0.7rem;
    color: #253c8a;
    text-decoration: none;
    font-size: 1rem;
}

.info-item a:hover {
    text-decoration: underline;
}

