@font-face {
    font-family: "Exo";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/exo-400.woff2") format("woff2");
}

@font-face {
    font-family: "Ubuntu";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/ubuntu-400.woff2") format("woff2");
}

@font-face {
    font-family: "Ubuntu";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/ubuntu-700.woff2") format("woff2");
}

:root {
    --blue: #2287c9;
    --blue-dark: #1a6a9e;
    --blue-light: #eaf4fb;
    --grey-light: #f4f4f4;
    --text: #333333;
    --muted: #666666;
    --white: #ffffff;
    --font: "Ubuntu", Helvetica, Arial, sans-serif;
    --font-head: "Exo", sans-serif;
}

* {
    box-sizing: border-box;
}

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

a {
    color: var(--blue);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

.narrow {
    max-width: 860px;
}

/* Header and navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
}

.logo img {
    width: 191px;
    height: 59px;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--blue);
    color: var(--blue);
    font-size: 1.4rem;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav > ul {
    display: flex;
}

.main-nav li {
    position: relative;
}

.main-nav a {
    display: block;
    padding: 10px 18px;
    text-decoration: none;
    color: var(--blue);
    font-family: var(--font-head);
    text-transform: uppercase;
    font-size: 15px;
}

.main-nav > ul > li + li > a {
    border-left: 1px solid var(--blue);
    padding-top: 0;
    padding-bottom: 0;
    margin: 10px 0;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav a.active {
    color: var(--blue-dark);
    text-decoration: underline;
}

.main-nav .sub {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.main-nav .sub a {
    text-transform: none;
    padding: 10px 18px;
    border: none;
    margin: 0;
}

.main-nav li:hover > .sub,
.main-nav li:focus-within > .sub {
    display: block;
}

.main-nav .mobile-only {
    display: none;
}

@media (max-width: 920px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        background: var(--white);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }

    .main-nav.open {
        display: block;
    }

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

    .main-nav a,
    .main-nav > ul > li + li > a {
        border: none;
        border-bottom: 1px solid #eeeeee;
        margin: 0;
        padding: 12px 16px;
    }

    .main-nav .sub {
        display: block;
        position: static;
        box-shadow: none;
        padding-left: 16px;
    }

    .main-nav .mobile-only {
        display: block;
    }
}

/* Title bar */
.title-bar {
    background: var(--blue);
    color: var(--white);
    padding: 18px 0;
}

.title-bar h1 {
    margin: 0;
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: normal;
    text-transform: uppercase;
}

/* Page content */
.page {
    padding: 40px 0;
}

.page h2 {
    font-family: var(--font-head);
    font-weight: normal;
    text-transform: uppercase;
    color: var(--blue);
    font-size: 1.4rem;
    margin-top: 2em;
}

.page h2:first-child {
    margin-top: 0;
}

.page h3 {
    color: var(--blue);
    margin-bottom: 0.3em;
}

.source {
    color: var(--muted);
    font-size: 0.9rem;
}

.full-image {
    margin: 0 0 32px;
}

.divider {
    border: none;
    border-top: 1px solid #dddddd;
    margin: 32px 0;
}

/* Homepage */
.hero img {
    width: 100%;
}

.circles {
    list-style: none;
    margin: 48px auto;
    padding: 0 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 48px;
}

.circles a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-size: 1.2rem;
}

.circles .circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background-color: var(--blue);
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: inset 0 0 0 16px rgba(255, 255, 255, 0.6), 0 1px 2px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.circles a:hover .circle,
.circles a:focus .circle {
    box-shadow: inset 0 0 0 110px rgba(34, 135, 201, 0.4), inset 0 0 0 16px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(0, 0, 0, 0.1);
    transform: scale(1.04);
}

.circles a:hover,
.circles a:focus {
    color: var(--blue);
}

.topics {
    color: var(--white);
    background: var(--blue) url("../images/bg.jpg") center center no-repeat;
    background-size: cover;
    padding: 48px 0;
}

.topics h2 {
    text-align: center;
    font-family: var(--font-head);
    font-weight: normal;
    text-transform: uppercase;
    margin-top: 0;
}

.topic-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 800px;
    columns: 2;
    column-gap: 40px;
}

.topic-list li {
    break-inside: avoid;
    padding: 6px 0;
}

.topic-list a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
}

.topic-list a::before {
    content: "\203A";
    margin-right: 8px;
    font-weight: bold;
}

.topic-list a:hover,
.topic-list a:focus {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .topic-list {
        columns: 1;
    }
}

.insurance {
    text-align: center;
}

.insurance h2 {
    margin-top: 0;
}

.insurance ul {
    list-style: none;
    padding: 0;
    font-size: 1.1rem;
}

.insurance li::before {
    content: "\2192";
    color: var(--blue);
    margin-right: 8px;
}

/* Info dialogs */
dialog {
    width: min(800px, calc(100% - 32px));
    max-height: 85vh;
    border: none;
    border-radius: 8px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

dialog .dialog-head {
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--blue);
    color: var(--white);
    padding: 12px 20px;
}

dialog h3 {
    margin: 0;
    font-weight: normal;
}

dialog .close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

dialog .dialog-body {
    padding: 8px 20px 20px;
}

/* About page */
.portrait {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.portrait img {
    width: 120px;
    flex-shrink: 0;
}

.portrait p {
    margin: 0;
}

.portrait ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

/* Contact page */
.contact-table td {
    padding: 4px 24px 4px 0;
    vertical-align: top;
}

.contact-table td:first-child {
    font-weight: bold;
}

.map-links {
    background: var(--blue-light);
    border-radius: 6px;
    padding: 16px 20px;
    margin-top: 32px;
}

.map-links ul {
    margin: 8px 0 0;
    padding-left: 20px;
}

/* Gallery */
.gallery {
    position: relative;
}

.gallery-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 8px;
}

.gallery-track img {
    flex: 0 0 auto;
    height: 360px;
    width: auto;
    max-width: 90%;
    object-fit: cover;
    scroll-snap-align: center;
    border-radius: 4px;
}

@media (max-width: 600px) {
    .gallery-track img {
        height: 240px;
    }
}

.gallery-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(34, 135, 201, 0.85);
    color: var(--white);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-button.prev {
    left: 8px;
}

.gallery-button.next {
    right: 8px;
}

/* FAQ */
.faq details {
    background: var(--grey-light);
    border-radius: 4px;
    margin-bottom: 8px;
}

.faq summary {
    cursor: pointer;
    padding: 12px 16px;
    font-family: var(--font-head);
    color: var(--blue);
    font-size: 1.1rem;
}

.faq details[open] summary {
    border-bottom: 1px solid #dddddd;
}

.faq .answer {
    padding: 4px 16px 12px;
}

/* Links page */
.link-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.link-columns h2 {
    margin-top: 0;
    font-size: 1.1rem;
}

.link-columns ul {
    padding-left: 20px;
}

.link-columns li {
    margin-bottom: 8px;
}

/* Legal pages */
.legal-table td {
    padding: 2px 16px 2px 0;
}

/* Footer */
.site-footer {
    background: var(--blue);
    color: var(--white);
    padding: 20px 0;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

.site-footer a {
    color: var(--white);
}

.site-footer nav a {
    margin-left: 16px;
}

.site-footer nav a:first-child {
    margin-left: 0;
}
