/*
 * ST. MARY'S IOC COVENTRY
 * CATHOLICOS PAGE FIX V2
 * Frontend only.
 *
 * Targets the ACTUAL markup confirmed from DevTools:
 *
 * <div class="row">
 *   <div class="col-md-12">
 *      <p style="...">...</p>
 *   </div>
 * </div>
 *
 * Load AFTER catholicos-page-v1.css.
 */

/* Actual content column */
.page-catholicos .row > .col-md-12 {
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    margin-bottom: 56px !important;
    padding: 38px 42px 44px !important;
    /*background: #fff !important;*/
    /*border: 1px solid var(--ai-border, #E7E4DD) !important;*/
    border-radius: 20px !important;
    box-shadow: 0 14px 40px rgba(14,23,42,.06) !important;
}

/* Override legacy inline paragraph typography */
.page-catholicos .row > .col-md-12 > p,
.page-catholicos .row > .col-md-12 p {
    max-width: 820px !important;
    margin: 0 auto 20px !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    color: var(--ai-text, #253047) !important;
    font-family: var(--ai-font-body, "Inter", "Segoe UI", Arial, sans-serif) !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.82 !important;
    letter-spacing: 0 !important;
    text-align: left !important;
}

/* Intro paragraph */
.page-catholicos .row > .col-md-12 > p:first-of-type {
    margin-bottom: 28px !important;
    padding: 22px 24px !important;
    border: 1px solid rgba(199,154,66,.34) !important;
    border-left: 4px solid var(--ai-gold, #C79A42) !important;
    border-radius: 0 12px 12px 0 !important;
    background: var(--ai-gold-pale, #F7F1E4) !important;
    color: var(--ai-navy, #14213D) !important;
    font-size: 17px !important;
    line-height: 1.74 !important;
}

/* Override inline spans */
.page-catholicos .row > .col-md-12 p span,
.page-catholicos .row > .col-md-12 p strong,
.page-catholicos .row > .col-md-12 p b {
    font-family: inherit !important;
}

.page-catholicos .row > .col-md-12 p strong,
.page-catholicos .row > .col-md-12 p b,
.page-catholicos .row > .col-md-12 p:first-of-type span:first-child {
    color: var(--ai-navy, #14213D) !important;
    font-weight: 700 !important;
}

/* Headings */
.page-catholicos .row > .col-md-12 > h1,
.page-catholicos .row > .col-md-12 > h2,
.page-catholicos .row > .col-md-12 > h3,
.page-catholicos .row > .col-md-12 > h4 {
    max-width: 820px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    color: var(--ai-navy, #14213D) !important;
    font-family: var(--ai-font-heading, "Manrope", sans-serif) !important;
    letter-spacing: -.03em !important;
}

.page-catholicos .row > .col-md-12 > h2 {
    margin-top: 34px !important;
    margin-bottom: 14px !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.page-catholicos .row > .col-md-12 > h3 {
    margin-top: 30px !important;
    margin-bottom: 12px !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* Images */
.page-catholicos .row > .col-md-12 img {
    display: block !important;
    width: auto !important;
    max-width: min(100%, 560px) !important;
    height: auto !important;
    max-height: 620px !important;
    margin: 0 auto 34px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 16px !important;
    object-fit: contain !important;
    object-position: center top !important;
    box-shadow: 0 12px 36px rgba(14,23,42,.10) !important;
}

/* Links */
.page-catholicos .row > .col-md-12 a {
    color: var(--ai-gold, #C79A42) !important;
    font-family: inherit !important;
    font-weight: 650 !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 3px !important;
}

.page-catholicos .row > .col-md-12 a:hover {
    color: var(--ai-navy, #14213D) !important;
}

/* Lists */
.page-catholicos .row > .col-md-12 ul,
.page-catholicos .row > .col-md-12 ol {
    max-width: 820px !important;
    margin: 0 auto 22px !important;
    padding-left: 22px !important;
    color: var(--ai-text, #253047) !important;
}

.page-catholicos .row > .col-md-12 li {
    margin-bottom: 8px !important;
    color: var(--ai-text, #253047) !important;
    font-family: var(--ai-font-body, "Inter", "Segoe UI", Arial, sans-serif) !important;
    font-size: 16px !important;
    line-height: 1.72 !important;
}

.page-catholicos .row > .col-md-12 > p:empty {
    display: none !important;
}

@media (max-width: 991px) {
    .page-catholicos .row > .col-md-12 {
        max-width: calc(100% - 32px) !important;
        padding: 30px 30px 36px !important;
        margin-bottom: 44px !important;
    }
}

@media (max-width: 767px) {
    .page-catholicos .row > .col-md-12 {
        width: calc(100% - 28px) !important;
        max-width: none !important;
        margin-left: 14px !important;
        margin-right: 14px !important;
        margin-bottom: 34px !important;
        padding: 20px 17px 24px !important;
        border-radius: 14px !important;
    }

    .page-catholicos .row > .col-md-12 > p,
    .page-catholicos .row > .col-md-12 p {
        max-width: none !important;
        font-size: 15px !important;
        line-height: 1.75 !important;
    }

    .page-catholicos .row > .col-md-12 > p:first-of-type {
        padding: 17px !important;
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    .page-catholicos .row > .col-md-12 img {
        width: 100% !important;
        max-width: 430px !important;
        max-height: none !important;
        margin-bottom: 26px !important;
        border-radius: 12px !important;
    }

    .page-catholicos .row > .col-md-12 > h2 {
        font-size: 25px !important;
    }

    .page-catholicos .row > .col-md-12 > h3 {
        font-size: 20px !important;
    }

    .page-catholicos .row > .col-md-12 li {
        font-size: 15px !important;
    }
}
