/* ============================
   Container Layout
   ============================ */
.main-container {
    margin: 0 auto;
    padding-top: 110px;
    padding-right: 20px;
    padding-left: 20px;
}

.main-container.side {
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: flex-start;
    max-width: 1600px;
}

.content--max-width {
    max-width: 1048px;
    margin: 0 auto;
}

/* ============================
   Content Styling
   ============================ */
.content {
    margin-bottom: 30px;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
    width: 100%;

    /* Paragraph styling */

    p {
        margin-bottom: 16px;
        line-height: 135%;
    }

    /* Link styling */

    a {
        color: blue;
        text-decoration: underline;
    }

    /* Image styling */

    img {
        margin: 30px 0;
    }

    /* Blockquote styling */

    blockquote {
        z-index: -1;
        background: #f9f9f9;
        border-left: 4px solid var(--navy-color);
        margin: 1.5em 0;
        padding: 1.2em 30px 1.2em 25px;
        position: relative;
        font-size: 1.1em;
        line-height: 1.6;

        p {
            margin-bottom: 0;
        }

        cite {
            display: block;
            font-style: normal;
            font-weight: bold;
            margin-top: 10px;
            color: #333;
        }

        cite:before {
            content: "— ";
        }
    }

    blockquote:before {
        content: "\201C";
        color: var(--navy-color);
        font-size: 4em;
        position: absolute;
        left: 10px;
        top: -10px;
    }

    blockquote:after {
        content: "\201D";
        color: var(--navy-color);
        font-size: 4em;
        position: absolute;
        right: 10px;
        top: -10px;
    }

    /* Table styling */

    table {
        width: 100%;
        border-collapse: collapse;
        margin: 25px 0;

        th {
            padding: 12px 15px;
            text-align: left;
            font-weight: bold;
        }

        td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid black;
        }
    }

    /* List styling - shared properties */

    ul, ol {
        padding-left: 1.5em;
        margin-bottom: 1em;

        li {
            margin-bottom: 0.5em;
            line-height: 1.4;

            &::marker {
                color: var(--navy-color);
            }

            > ul, > ol {
                margin-top: 0.5em;
                margin-bottom: 0.5em;
            }
        }
    }

    /* Unordered list styling */

    ul {
        list-style-type: disc;

        ul {
            list-style-type: circle;

            ul {
                list-style-type: square;
            }
        }
    }

    /* Ordered list styling */

    ol {
        list-style-type: decimal;

        ol {
            list-style-type: lower-alpha;

            ol {
                list-style-type: lower-roman;
            }
        }
    }
}

/* ============================
   Contact Section
   ============================ */
.contact {
    margin-bottom: 30px;

    p {
        margin: 0;
    }

    a {
        color: black;
    }
}

/* ============================
   Navigation
   ============================ */
.nav__links {
    gap: 10px;
    align-items: start;
    padding: 0;
    margin-bottom: 30px;
}

.nav-link--last {
    display: inline-block;
    text-decoration: none;
    color: var(--blue-color);
    font-size: 16px;
}

.nav-link--back {
    display: inline-block;
    text-decoration: none;
    color: var(--blue-color);
    font-size: 16px;
}

.nav__links > *:not(.vertical-line) {
    display: inline;
}

.nav__links > *:not(:last-child)::after {
    content: ' | '
}

.nav-link--active {
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    color: var(--blue-color);
    font-size: 16px;
}

/* ============================
   Map & News Elements
   ============================ */
.map__container {
    margin-top: 12px;

    img {
        margin: 0;
    }
}

.news__img-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 17px;
    border-radius: 8px;
    aspect-ratio: 30/19.5;
    
}

/* ============================
   Media Queries
   ============================ */
@media (min-width: 768px) {
    .content {
        font-size: 20px;
    }

    .nav__links {
        gap: 5px;
        flex-direction: row;
        align-items: center;
    }
}

@media (min-width: 1122px) {
    .main-container {
        padding-top: 65px;
    }
}

@media (min-width: 1200px) {
    .main-container.side {
        gap: 54px;
        max-width: 1440px;
        flex-wrap: nowrap;
    }
}
