/* Post layout: single.php, page-post-layout.php, template-parts/post-sidebar.php.
   Same layout the Elementor Pro "Single Post" template had: a 70% article
   column and a sidebar, stacked below 768px. */

@font-face {
    font-display: swap;
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 100 900;
    src: url('../fonts/roboto-latin.woff2') format('woff2');
}

.rc-post {
    padding: 0 10px 20px;
}

.rc-post *,
.rc-post *::before,
.rc-post *::after {
    box-sizing: border-box;
}

.rc-post__inner {
    display: flex;
    max-width: 1260px;
    margin: 0 auto;
    padding: 10px 0;
}

.rc-post__main,
.rc-post__sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
    padding: 10px;
}

.rc-post__main {
    flex: none;
    width: 70%;
}

.rc-post__sidebar {
    flex: 1 1 0;
}

/* Article */

.rc-post__breadcrumb .rank-math-breadcrumb {
    font-size: 14px;
}

.rc-post__title {
    margin: 0;
    color: #17486d;
    font-family: "Roboto", sans-serif;
    font-size: 45px;
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.rc-post__image {
    text-align: center;
}

.rc-post__image img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

.rc-post__info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0 -8px;
    padding: 0;
    list-style: none;
    color: #17486d;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
}

.rc-post__info li,
.rc-post__info a {
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    text-decoration: none;
}

.rc-post__info li {
    margin: 0 8px;
}

.rc-post__info svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.rc-post__info span {
    padding-left: 5px;
}

.rc-post__content {
    color: #54595f;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
}

.rc-post__content::after {
    content: "";
    display: table;
    clear: both;
}

.rc-post__content ul {
    margin: 15px 0 15px 30px;
    list-style: outside disc;
}

.rc-post__content h2 {
    margin-bottom: .5em;
    font-size: 28px;
    font-weight: 800;
}

.rc-post__content h3 {
    margin-bottom: .8em;
    font-size: 23px;
    font-weight: 600;
}

.rc-post__content img {
    max-width: 100%;
    height: auto;
}

/* Previous / next */

.rc-post__nav {
    display: flex;
    overflow: hidden;
}

.rc-post__nav-link {
    width: calc(50% - .5px);
    overflow: hidden;
}

.rc-post__nav-link--next {
    text-align: end;
}

.rc-post__nav-link a {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 100%;
    color: inherit;
    text-decoration: none;
}

.rc-post__nav-link--next a {
    justify-content: flex-end;
}

.rc-post__nav-arrow {
    display: flex;
    color: #d5d8dc;
    font-size: 30px;
}

.rc-post__nav-arrow svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.rc-post__nav-text {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: "Open Sans", sans-serif;
    font-weight: 400;
}

.rc-post__nav-label {
    font-size: .8em;
    text-transform: uppercase;
}

.rc-post__nav-title {
    overflow: hidden;
    color: #54595f;
    font-size: .7em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rc-post__nav-separator {
    flex: none;
    width: 1px;
    background-color: #d5d8dc;
}

/* Sidebar: search */

.rc-post-search {
    display: flex;
    height: 50px;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #17486d;
    border-radius: 25px;
}

.rc-post-search__icon {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-left: 16.6667px;
    color: #17486d;
    opacity: .6;
}

.rc-post-search__icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.rc-post-search__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0 16.6667px;
    background: transparent;
    border: 0;
    border-radius: 0;
    outline: 0;
    color: #17486d;
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1;
    -webkit-appearance: none;
    appearance: none;
}

.rc-post-search__input::placeholder {
    color: inherit;
    opacity: .6;
}

.rc-post-search__input::-webkit-search-cancel-button,
.rc-post-search__input::-webkit-search-decoration {
    -webkit-appearance: none;
}

/* Sidebar: share */

.rc-post-share__title {
    margin: 0;
    color: #54595f;
    font-family: "Roboto", sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
}

.rc-post-share {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rc-post-share__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #17486d;
    border-radius: 999px;
    color: #ffe208;
    transition: color .2s, background-color .2s;
}

.rc-post-share__btn:hover {
    background-color: #ffe208;
    color: #17486d;
}

.rc-post-share__btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

/* Sidebar: latest posts */

.rc-post-latest {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 35px 30px;
}

.rc-post-latest__item {
    overflow: hidden;
}

.rc-post-latest__thumb {
    display: block;
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 66%;
    overflow: hidden;
}

.rc-post-latest__thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rc-post-latest__title {
    margin: 0;
    color: #54595f;
    font-family: "Open Sans", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 26px;
}

.rc-post-latest__title a {
    color: inherit;
    text-decoration: none;
}

.rc-post-latest__meta {
    margin-bottom: 13px;
    color: #adadad;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.3em;
}

/* Posts converted from the Elementor editor keep the look its text widget
   gave them: brand-blue copy and a 10px inset (single.php adds the modifier
   when the post carries the _rc_legacy_text_style meta). */

.rc-post__content--legacy {
    padding: 10px;
    color: #16486d;
}

.rc-post__content .rc-post-heading {
    margin-bottom: 20px;
    color: #6ec1e4;
    font-weight: 600;
    line-height: 1;
}

.rc-post-social {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin: 30px 0 0;
}

.rc-post-social__btn {
    display: block;
    width: 50px;
    height: 50px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 25px 25px;
    border-radius: 10%;
    transition: opacity .3s;
}

.rc-post-social__btn:hover {
    opacity: .9;
}

.rc-post-social__btn--facebook {
    background-color: #3b5998;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z'/%3E%3C/svg%3E");
}

.rc-post-social__btn--twitter {
    background-color: #1da1f2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23fff' d='M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z'/%3E%3C/svg%3E");
}

.rc-post-social__btn--youtube {
    background-color: #cd201f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3Cpath fill='%23fff' d='M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z'/%3E%3C/svg%3E");
}

@media (max-width: 1024px) {

    .rc-post-latest {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {

    .rc-post__inner {
        flex-wrap: wrap;
    }

    .rc-post__main,
    .rc-post__sidebar {
        flex: none;
        width: 100%;
    }

    .rc-post-latest {
        grid-template-columns: minmax(0, 1fr);
    }
}
