/*------------------------------------*\
    
    Posts CSS
 
    Posts.................Post content for loop on blog homepage, category, search page, archives, etc.
    Sidebar...............Sidebar elements.

\*------------------------------------*/

.blog-post__item {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    border-radius: 0.9375rem;
    overflow: hidden;
    height: 100%;
    max-width: 26.25rem;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 0.25rem 1.25rem 0 rgba(5, 58, 94, 0.15);
}

.blog-post__item.blog-post__featured {
    display: block;
    max-width: 100%;
    margin-bottom: 0;
}

.blog-post__img-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.blog-post__item .blog-post__img-container {
    aspect-ratio: 424 / 200;
    padding: 0;
}

.blog-post__img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.9375rem;
}

.blog-post__title {
    margin-bottom: 0.9375rem;
}

.blog-post__title a {
    font-family: var(--secondary-font);
    display: block;
    text-decoration: none;
    color: var(--heading-color);
    font-size: 1.75rem;
    font-style: normal;
    font-weight: 400 !important;
    line-height: 120%;    
}

.blog-post__link,
.blog-post__item .btn,
.blog-post__item .btn-primary {
    margin-top: 0.625rem;
}

.blog-post__link {
    width: fit-content;
    text-decoration: none;
    color: var(--secondary-hover-color);
    border-radius: 0.3125rem;
    text-transform: uppercase;
}

.blog-post__link:hover svg path {
    fill: var(--teal)
}

.blog-post__meta {
    font-size: .8em;
    padding: 2.1875rem 1.5625rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-post__tag {
    margin-bottom: 0.3125rem;
    text-decoration: none;
    color: #0a58ca;
    display: inline-block;
    text-transform: uppercase;
    font-weight: bold;
}

.blog-post__bottom__date,
.blog-post__featured_label {
    padding-bottom: 0.3125rem;
    font-weight: normal;
    color: var(--text-color);
}

.blog-post__bottom__reading_time {
    font-weight: normal;
}

.blog-post__excerpt {
    flex-grow: 1;
    font-size: 1rem;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
    padding-bottom: 1.25rem;
    padding-bottom: 0.3125rem;
    color: #000000;
    text-decoration: none !important;
}

.blog-post__featured .blog-post__excerpt {
    padding-bottom: 3.75rem;
}

.blog-post__featured .blog-post__img-container,
.blog-post__featured .show {
    height: 26.875rem;
}

.blog-post__featured .blog-post__meta {
    position: relative;
}

.blog-post__featured .blog-post__bottom {
    position: absolute;
    top: 3.25rem;
    width: calc(100% - 7rem);
    color: var(--text-color);
}

.blog-post__reading_time {
    font-weight: normal;
}

.blog-post__bottom {
    display: flex;
    justify-content: space-between;
    border-bottom: solid 0.0625rem #ddd;
    text-decoration: none;
    color: #000000;
    margin-bottom: 0.625rem;
}

.blog-wysiwyg {
    padding: 1.25rem 0;
    border-bottom: 0.0625rem solid #E3E8DC;
}

.blog-single-meta__info {
    display: flex;
    align-items: center;
}

.blog-single-meta__info__text time {
    padding-right: 0.625rem;
}

.blog-single-meta__info__text .blog-meta__reading_time {
    padding-left: 0.625rem;
}

@media (min-width: 600px) {
    .blog-post__item {
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .blog-wysiwyg {
        padding: 1.875rem 0;
    }
}

@media (min-width: 1025px) {
    .blog-post__featured .blog-post__meta {
        padding: 5.625rem 3.25rem 3.25rem;
    }

    .blog-post__bottom:hover {
        text-decoration: none;
    }
}


@media (min-width: 1200px) {
    .dummy-link:hover {
        color: #000000;
    }

    .blog-wysiwyg {
        padding: 1.875rem 0;
    }    

    .blog-post__tag:hover {
        color: #000000;
    }

    .blog-post__item:hover {
        transition: all .5s;
        transform : translateY(-0.625rem);
        box-shadow: 0 0.25rem 1.25rem 0 rgba(5, 58, 94, 0.15);
    }

    .blog-single-container > .container {
        max-width: 74rem;
    }
}


/**
 * Sidebar
 */

/* Blog Sidebar */

.blog .page-sidebar .widget {
    margin-bottom: 3.125rem;
}



/**
* FX Load More
*/

/* Load More Progress Bar */
.load-more {
    text-align: center;
}

.load-more__progress {
    margin-top: 0.9375rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 0.625rem;
    border: 0;
    border-radius: 0;
    min-width: 15.625rem;
    z-index: 10;
    position: relative;
}

.progress-wp {
    width: 15.625rem;
    margin: 0 auto;
    position: relative;
}

.progress-wp:before {
    content: "";
    position: absolute;
    left: -0.375rem;
    top: 0.6875rem;
    background: var(--lightest-blue);
    height: 1.125rem;
    width: calc(100% + 0.75rem);
    z-index: 1;
    border-radius: 1.875rem;
}

progress::-webkit-progress-bar,
progress::-webkit-progress-value,
progress::-moz-progress-bar {
    height: 0.625rem;
    border: 0;
    border-radius: 0;
}


progress::-webkit-progress-value {
    height: 0.625rem;
}

progress::-webkit-progress-bar {
    background-color: var(--lightest-blue);
    border-radius: 1.875rem;
}

progress::-webkit-progress-value {
    height: 0.625rem;
    background-color: var(--primary-color);
    border-radius: 1.875rem;
    z-index: 10;
    /* TODO: Please add a branded background color for progress bar value */
}

/* Loading Indicator */
.is-loading:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 3.125rem;
    height: 3.125rem;
    border: 0.3125rem solid;
    border-color: #E3E3E3 #E3E3E3 transparent;
    border-radius: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    -webkit-animation: simpleSpin 1.5s linear infinite;
    animation: simpleSpin 1.5s linear infinite;
}

/* Load More Button */
.load-more__btn {
    display: block;
    margin: 1.25rem auto 0;
}

.load-more__btn.is-loading {
    position: relative;
    opacity: 0.6;
    cursor: not-allowed;
}

.load-more__btn.is-loading:before {
    width: 1.25rem;
    height: 1.25rem;
}

.load-more__btn.is-disabled {
    cursor: not-allowed;
    background-color: #f0f0f0;
}

/* Placeholder Space */
.placeholder-block {
    position: relative;
    display: flex;
}

.placeholder-block__inner {
    flex-grow: 1;
    background-color: #fafafa;
}

.placeholder-block.is-loading:before {
    width: 3.125rem;
    height: 3.125rem;
}

@-webkit-keyframes simpleSpin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotateZ(360deg);
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

@keyframes simpleSpin {
    0% {
        -webkit-transform: translate(-50%, -50%) rotateZ(0deg);
        transform: translate(-50%, -50%) rotateZ(0deg);
    }

    100% {
        -webkit-transform: translate(-50%, -50%) rotateZ(360deg);
        transform: translate(-50%, -50%) rotateZ(360deg);
    }
}

/* Single Post Pagination */
.post-pagination {
    display: flex;
    justify-content: space-between;
    align-content: center;
}

.btn-post-pagination {
    background: transparent;
    font-size: 0.9375rem;
    padding: 1.4375rem 1.25rem;
    color: #747474;
    position: relative;
    text-decoration: none !important;
}

.post-pagination-text {
    display: none;
    font-weight: 400;
    font-size: 1rem;
}

.btn-post-pagination:hover {
    background: var(--teal);
}

.btn-post-pagination:hover strong,
.btn-post-pagination:hover .post-pagination-text{
    color: #fff;
}

.btn-post-pagination strong {
    display: block;
    font-size: 1rem;
    text-transform: uppercase;
    color: var(--secondary-color);
    letter-spacing: 0.15rem;
    font-weight: 700;
}

.btn-previous-post,
.btn-next-post {
    border-radius: 3.125rem;
    border: 0.1875rem solid var(--teal);
    max-width: 48%;
    flex: 0 0 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    text-decoration: none;
}

.btn-previous-post {
    padding-left: 4.375rem;
}

.btn-next-post {
    padding-right: 4.375rem;
}

.mobile-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    height: 2.8125rem;
    width: 2.8125rem;
    border-radius: 3.125rem;
    border: 0.1875rem solid var(--light-teal);
}

.btn-previous-post .mobile-arrow {
    left: 1.1875rem;
}

.btn-next-post .mobile-arrow {
    right: 1.1875rem;
}

.btn-previous-post .mobile-arrow:after {
    /* transform: rotate(180deg); */
}

.blog-listing-container,
.emma-101-listing-container,
.post-listing-container,
.guide-listing-container {
    padding-bottom: 4.375rem;
}

.featured-content {
    padding-top: 4.375rem;
}

.blog-listing-container.popular-posts {
    padding-bottom: 0;
    padding-top: 1.25rem;
}

.blog-listing-container.popular-posts .blog-listing.row {
    justify-content: center;
}

@media (min-width: 768px) {
    .post-pagination-text {
        display: block;
    }

    .btn-previous-post,
    .btn-next-post {
        text-align: inherit;
    }

    
    .blog-listing-container,
    .emma-101-listing-container,
    .guide-listing-container,
    .post-listing-container {
        padding-bottom: 6.25rem;
    }

    .featured-content {
        padding-top: 6.25rem;
    }

    .blog-listing-container.popular-posts {
        padding-bottom: 0;
        padding-top: 2.5rem;
    }
}

@media (min-width: 1200px) {
    .blog-listing-container,
    .emma-101-listing-container,
    .guide-listing-container,
    .post-listing-container {
        padding-bottom: 8rem;
    }

    .blog-listing-container.popular-posts {
        padding-bottom: 0;
        padding-top: 3.75rem;
    }

    .featured-content {
        padding-top: 8rem;
    }
}

.blog-search-bar.blog-search-bar--body {
    padding: 2.5rem 0 1.25rem 0;
    margin-bottom: 1.875rem;
    border-bottom: 0.0625rem solid #ddd;
}

.blog-search-bar.blog-search-bar--masthead {
    --bs-gutter-x: 0.625rem;
    --bs-gutter-y: 0.625rem;
    margin-left: auto;
    max-width: 53.75rem;
}

.blog-search-bar select {
    height: 2.1875rem;
    border: 0.0625rem solid #ddd;
    width: 100%;
    padding-left: 0.625rem;
    margin-bottom: 0.3125rem;
}

.blog-search-bar .choices__inner {
    height: 3.125rem;
    background: #fff;
}

.blog-search-bar .choices__inner {
    height: 4.375rem;
    align-items: center;
    justify-content: center;
    display: flex;
}

.toc-container {
    margin: 1.25rem 0;
}

@media (min-width: 1200px) {
    .blog-search-bar.blog-search-bar--newsroom .choices {
        flex: 0 0 auto;
        max-width: 100%;
    }
}

.popular-posts h2 {
    text-align: center;
    padding-bottom: 1.25rem;
}

.blog-single-container {
    padding-bottom: 3.125rem;
}

.blog-single-container .no-padding {
    padding: 0;
}

.blog-single-container .blog-post__img-container {
    margin-bottom: 1.25rem;
}

.blog-single-meta {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 0.0625rem solid #E3E8DC;
}

.blog-single-meta > div {
    display: flex;
    align-items: center;
}

.bottom-meta {
    border-bottom: none;
    margin-bottom: 0;
}

.blog-single-meta .social-share-row {
    padding: 0 !important;
    text-align: right;
}

.blog-listing__pagination,
.post-listing__pagination,
.emma-101-listing__pagination,
.guide-listing__pagination {
    padding-top: 3.125rem;
}

/* Blog single: sticky sidebar track (TOC + promo), scoped to .blog-single__sidebar-track */
.blog-single__sidebar-track.redesign-guide-ebook {
    --rg-serif: var(--secondary-font, 'Corben', Georgia, 'Times New Roman', serif);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
}

.blog-single__sidebar-track .redesign-guide-ebook__columns {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: flex-start;
    margin-bottom: 1.875rem;
}

.emma-101__video {
    padding: 56.25% 0 0 0;
    position: relative;
}

.emma-101__video:has(.fluid-width-video-wrapper) {
    padding-top: 0 !important;
}

.emma-101__video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.curriculum-top-section {
    padding: 2.5rem 0;
    max-width: 75rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .blog-single__sidebar-track .redesign-guide-ebook__columns {
        flex-direction: row;
        gap: 2.5rem;
        margin-bottom: 3.75rem;
    }   
    
    .curriculum-top-section {
        padding: 5rem 0;
        max-width: 75rem;
        margin: 0 auto;
    }    
 
}

.blog-single__sidebar-track .redesign-guide-ebook__sidebar {
    width: 100%;
    max-width: 26.5rem;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .blog-single__sidebar-track .redesign-guide-ebook__sidebar {
        position: sticky;
        top: 6rem;
        align-self: flex-start;
    }
}

@media (min-width: 768px) {
    .blog-single-container {
        padding-bottom: 5.625rem;
        padding-top: 1.25rem;
    }

    .single .blog-single-container {
        padding-bottom: 1.875rem;
    }

    .single .popular-posts {
        padding-bottom: var(--section-margins);
    }
}


@media (min-width: 1200px) {
    .blog-single-container {
        padding-bottom: 8rem;
        padding-top: 2.5rem;
    }

    .single .blog-single-container {
        padding-bottom: 3.75rem;
    }

    .single .popular-posts {
        padding-bottom: var(--section-margins);
    }    
}


@media (min-width: 1600px) {
    .single .popular-posts {
        padding-bottom: 9.875rem;
    }
}

.blog-single__sidebar-track .redesign-guide-ebook__sidebar-stack > * + * {
    margin-top: 2.5rem;
}

.blog-single__sidebar-track .redesign-guide-ebook__toc-title {
    font-family: var(--rg-serif);
    font-size: 2rem;
    line-height: 1;
    font-weight: 400;
    color: #053a5e;
    margin-bottom: 1.5rem;
}

.blog-single__sidebar-track .redesign-guide-ebook__toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.blog-single__sidebar-track .redesign-guide-ebook__toc-item {
    padding-left: 0;
    border-bottom: 0.0625rem solid #e3e3e3;
}

.redesign-guide-ebook__toc-item::before {
    display: none;
}

.blog-single__sidebar-track .redesign-guide-ebook__toc-item:last-child {
    border-bottom: none;
}

.blog-single__sidebar-track .redesign-guide-ebook__toc-link {
    display: flex;
    align-items: center;
    gap: 1.125rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 0;
    text-decoration: none;
    color: #053a5e;
}

.blog-single__sidebar-track .redesign-guide-ebook__toc-link:hover .redesign-guide-ebook__toc-label {
    text-decoration: underline;
}

.blog-single__sidebar-track .redesign-guide-ebook__toc-num {
    display: flex;
    height: 2.25rem;
    width: 2.25rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 624.9375rem;
    border: 0.125rem solid #053a5e;
    font-family: var(--rg-serif);
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1;
    color: #053a5e;
}

.blog-single__sidebar-track .redesign-guide-ebook__toc-label {
    font-family: var(--rg-serif);
    font-size: 1.5rem;
    line-height: 1.075;
    color: #053a5e;
    font-weight: 400;
}

.blog-single__sidebar-track .redesign-guide-ebook__promo {
    border-radius: 0.9375rem;
    background-color: #f1dcdb;
    padding: 2.25rem 1.875rem;
}

.blog-single__sidebar-track .redesign-guide-ebook__promo-title {
    font-family: var(--rg-serif);
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 400;
    color: #053a5e;
    margin: 0 0 1.25rem;
}

.blog-single__sidebar-track .redesign-guide-ebook__promo-text {
    font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
    font-size: 1.25rem;
    line-height: 1.625;
    margin: 0 0 1.25rem;
    color: #35383a;
}

.blog-single__sidebar-track .redesign-guide-ebook__promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    border-radius: 624.9375rem;
    border: 0.1875rem solid #ff7055;
    padding: 1.25rem 2.25rem;
    font-family: Roboto, ui-sans-serif, system-ui, sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-decoration: none !important;
    font-size: 1rem;
    line-height: 1;
    color: #053a5e;
    transition: background-color 0.15s ease;
}

.blog-single__sidebar-track .redesign-guide-ebook__promo-btn:hover {
    background-color: #ffebe5;
}

.blog-single__sidebar-track .redesign-guide-ebook__main {
    min-width: 0;
    flex: 1 1 0%;
}

.blog-single__sidebar-track .redesign-guide-ebook__article section {
    scroll-margin-top: 7rem;
}


/* Customer Navigation (Next Story + CTA) */

.customer-nav {
    width: 100%;
}

.customer-nav__grid {
    display: grid;
    grid-template-columns: 1fr;
}

.customer-nav__next {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background-color: var(--primary-color);
    padding: 3.125rem 1.875rem;
    gap: 1.25rem;
    transition: background-color 0.3s ease;
}

.customer-nav__next:hover {
    background-color: var(--primary-hover-color);
    text-decoration: none;
    text-decoration-line: none;
}

.customer-nav__label {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary-color);
}

.customer-nav__image-wrap {
    max-width: 12.5rem;
}

.customer-nav__image-wrap img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.customer-nav__excerpt {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
    max-width: 23.75rem;
}

.customer-nav__next .btn {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    margin-top: 0.3125rem;
}

.customer-nav__next .btn::after {
    color: var(--secondary-color);
}

.customer-nav__next:hover .btn {
    background-color: var(--secondary-color);
    color: var(--white);
}

.customer-nav__next:hover .btn::after {
    color: var(--white);
}

.customer-nav__cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--secondary-color);
    padding: 3.125rem 1.875rem;
    overflow: hidden;
}

.customer-nav__cta-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.15;
}

.customer-nav__cta-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-nav__cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.customer-nav__cta-heading {
    font-family: var(--secondary-font);
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--white);
    margin: 0;
    line-height: 1.2;
}

.customer-nav__cta-desc {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--white);
    margin: 0 0 0.625rem;
}

.customer-nav__cta-btn {
    border-color: var(--primary-color);
    color: var(--white);
}

.customer-nav__cta-btn::after {
    color: var(--primary-color);
}

.customer-nav__cta-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.customer-nav__cta-btn:hover::after {
    color: var(--white);
}

.back-to-parent-link_emma-101 {
    height: 4.375rem;
    padding-top: 1.4375rem;
    margin-top: 1.25rem;
    width: 100%;    
}

.curriculum-section__video {
    position: relative;
    width: 100%;
    margin: 0 auto var(--soft-large);
    aspect-ratio: 16 / 9;
    border-radius: 0.75rem;
    overflow: hidden;
}

.curriculum-section__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.emma-101-videos__description {
    padding-top: calc(var(--section-margins) / 2);
    padding-bottom: calc(var(--section-margins) / 2);
}

@media (min-width: 768px) {
    .customer-nav__grid {
        grid-template-columns: 1fr 1fr;
    }

    .customer-nav__next {
        padding: 3.75rem 2.5rem;
    }

    .customer-nav__cta {
        padding: 3.75rem 2.5rem;
    }

    .customer-nav__cta-heading {
        font-size: 2rem;
    }
}

@media (min-width: 1200px) {
    .customer-nav__next {
        padding: 5rem 3.75rem;
    }

    .customer-nav__cta {
        padding: 5rem 3.75rem;
    }

    .customer-nav__cta-heading {
        font-size: 2.25rem;
    }

    .customer-nav__image-wrap {
        max-width: 15rem;
    }

    .back-to-parent-link_emma-101 {
        margin-top: 0;
        width: auto;    
    }
}

/* Newsroom */
.newsroom-section {
    overflow: visible;
}

.newsroom-section__content > *:last-child {
    padding-bottom: 0;
}

.newsroom-quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 2.1875rem 1.5625rem;
    border-radius: 0.9375rem;
    box-shadow: 0 0.25rem 1.25rem 0 rgba(5, 58, 94, 0.15);
}

.newsroom-quick-links a {
    display: block;
    padding: 0.9375rem 1.5625rem;
    border-left: 0.25rem solid var(--teal);
    background-color: var(--off-white);
    text-decoration: none;
}

.newsroom-quick-links a.is-active {
    border-left-color: var(--primary-color);
    background-color: var(--light-grey);
    color: var(--primary-color);
}

.newsroom-quick-links a:last-child {
    border-bottom: none;
}

.newsroom-section .image-buttons:first-child {
    padding-top: 0;
}

.newsroom-section .image-buttons .container {
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 1200px) {
    .newsroom-quick-links {
        margin-bottom: 0;
        position: sticky;
        top: 8.125rem;
    }

    .admin-bar .newsroom-quick-links {
        top: 10.125rem;
    }

    .newsroom-quick-links a {
        transition: border-left-color, background-color, color;
        transition-duration: 0.3s;
    }

    .newsroom-quick-links a:hover {
        border-left-color: var(--primary-color);
        background-color: var(--light-grey);
        color: var(--primary-color);
    }
}