/* Code of Ethics Page */

.code-of-ethics-page {
    margin: 0;
    padding: 0;
}

.code-of-ethics {
    margin: 0;
    padding: 0;
}

.code-of-ethics__container {
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: var(--space-md, 2rem);
    padding-block: 40px 80px;
}

/* Main page title */

.code-of-ethics__title,
.code-of-ethics__content h1 {
    font-family: "Swiza", sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 45px;
    color: #001E5A;
    margin-bottom: 40px;
}

/* Content headings */

.code-of-ethics__content h2 {
    font-family: "Swiza", sans-serif;
    font-size: 28px;
    font-weight: 600;
    line-height: 34px;
    color: #001E5A;
    margin: 40px 0 20px;
}


.code-of-ethics__content h3 {
    font-family: "Swiza", sans-serif;
    font-size: 22px;
    font-weight: 600;
    line-height: 28px;
    color: #001E5A;
    margin: 30px 0 15px;
}

.code-of-ethics__content h4 {
    font-family: "Swiza", sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #001E5A;
    margin: 24px 0 12px;
}

/* Body content */

.code-of-ethics__content p,
.code-of-ethics__content li {
    font-family: "Swiza", sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: #1F2937;
}

.code-of-ethics__content p {
    margin-bottom: 20px;
}

.code-of-ethics__content ul,
.code-of-ethics__content ol {
    margin: 20px 0;
    padding-left: 24px;
}

.code-of-ethics__content li {
    margin-bottom: 10px;
}

.code-of-ethics__content strong {
    font-weight: 600;
}

.code-of-ethics__content a {
    color: #F58220;
    text-decoration: none;
}

.code-of-ethics__content a:hover {
    text-decoration: underline;
}

/* Tables */

.code-of-ethics__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.code-of-ethics__content table th,
.code-of-ethics__content table td {
    border: 1px solid #E5E7EB;
    padding: 12px;
    text-align: left;
}

.code-of-ethics__content table th {
    background: #F5F5F5;
}

/* Images */

.code-of-ethics__content img {
    max-width: 100%;
    height: auto;
}

/* Remove extra space below footer */

.site-footer,
.site-footer-mobile,
footer {
    margin-bottom: 0;
}

/* Mobile */

@media (max-width: 768px) {
    .code-of-ethics__container {
        padding-block: 30px 60px;
    }

    .code-of-ethics__title,
    .code-of-ethics__content h1,
    .code-of-ethics__content h2 {
        font-size: 32px;
    }

    .code-of-ethics__content h3 {
        font-size: 24px;
    }

    .code-of-ethics__content p,
    .code-of-ethics__content li {
        font-size: 16px;
    }
}

/* Downloadable PDF: WordPress "File" block (Pages -> Code of Ethics -> add
   block "File" -> upload the PDF). Styled as the site's orange button. */
.code-of-ethics__content .wp-block-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #EEF0F3;
    border-radius: 0.5rem;
}

.code-of-ethics__content .wp-block-file > a:not(.wp-block-file__button) {
    color: #001E5A;
    font-weight: 600;
    text-decoration: none;
}

.code-of-ethics__content .wp-block-file .wp-block-file__button,
.code-of-ethics__content .wp-block-file__button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.5rem;
    background: #FF7D00;
    color: #fff !important;
    font-family: Swiza, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.code-of-ethics__content .wp-block-file__button:hover {
    background: #FFA233;
}

/* Inline PDF preview (if "Show inline embed" is switched on in the block) */
.code-of-ethics__content .wp-block-file__embed {
    width: 100%;
    height: 70vh;
    border: 1px solid #DEE1E8;
    border-radius: 0.5rem;
}
