/* learning-center.css */
.learning-center-template .hero-section {
    min-height: min-content;
    flex-direction: column;
    padding-top: var(--hero-offset, 328px);
}

.learning-center-template .hero-section h1 {
    color: var(--rp-white);
    margin: 0;
    margin-bottom: 20px;
}


/* Latest Post */

.thumbnail__placeholder {
    width: 100%;
    height: 200px;
    aspect-ratio: 2/1;
    background-color: var(--rp-dark-grey);
}

.learning-center-template .latest-posts-section {
    padding-top: 0px;
    padding-bottom: 50px;
    color: var(--rp-white);
}

.learning-center-template .latest-posts-section a {
    text-decoration: none;
}

.learning-center-template .latest-posts-section .latest-post__thumbnail img {
    border: 1px solid var(--rp-dark-grey);
    border-radius: 24px;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    width: 100%;
    background: #fff;
}

/*.learning-center-template .latest-posts-section .latest-post__thumbnail {*/
/*    width: 100%;*/
/*}*/

.learning-center-template .latest-posts-section .latest-post__content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: start;
    gap: 30px;
}

.learning-center-template .latest-posts-section .latest-post__content .inner_content {
    width: 100%;
}

.blog-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 14px;
    position: relative;
    min-height: 22px;
}

.blog-card-header__wrapper {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
}

.blog-card-header__arrow-link {
    display: flex;
    align-items: center;
    line-height: 1;
    flex-shrink: 0;
}

.blog-card-header__arrow {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

/*.blog-card-header__category {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 8px;*/
/*    flex-wrap: wrap;*/
/*}*/

.blog-card-header__category a:visited {
    color: var(--rp-headlines)
}

.blog-card-header__category a,
.blog-card-header__date {
    font-family: var(--font-body);
    font-weight: var(--weight-bold);
    font-size: 12px;
    line-height: 12px;
    text-decoration: none;
    text-transform: uppercase;
}


.blog-card-header__category {
    max-width: 100px;
    overflow: hidden;
    display: inline-flex;
    background-color: var(--rp-pale-cyan);
    padding: 4px 12px;
    border-radius: 100px;
    line-height: 1;
}

.blog-card-header__category a {
    display: inline-flex;
    white-space: nowrap;
    color: var(--rp-headlines);
}

.blog-card-header__category.marquee a {
    animation: marquee 6s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.blog-card-header__date {
    color: var(--rp-white);
    padding: 4px 12px;
}

.blog-card-header__title {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    font-size: var(--heading-mobile-lg-size);
    line-height: var(--heading-mobile-lg-line);
    color: var(--rp-white);
    margin-bottom: 14px;
}

/* Latest Post Slider */

.latest-posts-slider-section {
    margin-top: 50px;
}

.latest-post-slider_item {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.latest-post-slider .latest-post__thumbnail {
    width: 100%;
}

.latest-post-slider .latest-post__thumbnail img {
    border: 0;
}

.latest-posts-section .slick-slide {
    margin: 0 10px;
}

/* the parent */
.latest-posts-section .slick-list {
    margin: 0 -10px;
}

.latest-posts-section .slick-prev-custom,
.latest-posts-section .slick-next-custom {
    width: fit-content;
    height: fit-content;
    background: transparent !important;
    padding: 0;
    position: absolute;
    bottom: 90px;
}

.latest-posts-section .slick-prev-custom i,
.latest-posts-section .slick-next-custom i {
    font-size: 25px;
}

.latest-posts-section .slick-prev-custom {
    left: -50px;
}

.latest-posts-section .slick-next-custom {
    right: -50px;
}


/* Posts Grid */
.posts-grid-section {
    padding-top: 90px;
    padding-bottom: 70px;
}

.posts-3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 52px 20px;
    color: var(--rp-black);
}

.posts-3-grid a {
    text-decoration: none;
}

.post-grid-header h2 {
    color: var(--rp-headlines);
    margin-bottom: 18px;
}

.post-grid-header p {
    color: var(--rp-black);
    margin-bottom: 40px;
}

.post-grid-header .btn.btn-large.icon-right {
    display: flex;
    width: fit-content;
    gap: 10px;
    padding: 14px 30px;
    align-items: center;
}

.post-grid-header .icon-right i {
    background: var(--rp-white);
    border-radius: 100px;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--rp-bright-red);
    width: 32px;
    height: 32px;
}

.post-grid-header .icon-right:hover i {
    color: var(--rp-logo-black);
}

.blog-card__thumbnail img {
    width: 100%;
    border-radius: 24px;
    aspect-ratio: 5 / 3;
    object-fit: cover;
    background: white;
}

.blog-card__thumbnail iframe {
    border-radius: 24px;
    aspect-ratio: 5 / 3;
    object-fit: contain;
    height: 100%;
}

.blog-card__thumbnail {
    margin-bottom: 27px;
}

.posts-grid-section .blog-card-header__date {
    color: var(--rp-headlines);
}

.posts-grid-section .blog-card-header__title {
    color: var(--rp-headlines);
}

.posts-grid-section .blog-card__content p {
    color: var(--rp-black);
    margin-bottom: 0;
}

/* CTA Template */
.learning-center-template .cta-template {
    background: transparent;
    padding-top: 90px;
    padding-bottom: 90px;
}

.learning-center-template .cta-template .container {
    max-width: 1180px;
}

.learning-center-template .cta-template::before {
    display: none;
}

.learning-center-template .cta-template-inner {
    background-color: var(--rp-bright-red);
    border-radius: 24px;
    overflow: hidden;
    align-items: flex-end;
}

.learning-center-template .cta-template-inner::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-image: url(../images/bg-texture-hero.webp);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.learning-center-template .cta-template-2 .cta-content {
    position: relative;
    z-index: 1;
}

.learning-center-template .cta-image-col,
.learning-center-template .cta-content-col {
    position: relative;
    z-index: 1;
}

.cta-template-2 .cta-content-col {
    z-index: 2;
    position: relative;
}

.learning-center-template .cta-template-2 .cta-title {
    font-size: var(--heading-mobile-lg-size);
    line-height: var(--heading-mobile-lg-line);
}

.learning-center-template .cta-template-2 .cta-image-wrapper {
    max-height: 328px;
}

.learning-center-template .cta-template-2 .cta-image-bg {
    width: 335px;
    height: 328px;
}

.learning-center-template .cta-template-2 .shape-pale-pink {
    width: 250px;
    left: 0;
}

.learning-center-template .cta-template-2 .shape-black {
    width: 270px;
}

.learning-center-template .cta-template-2 .decorative-arrow {
    width: 113px;
    top: 40px
}

.learning-center-template .cta-template-2 .cta-content {
    max-width: 539px;
}

.learning-center-template .cta-template-2 .cta-title {
    margin-bottom: 8px;
}

.learning-center-template .cta-template-2 .cta-subtitle {
    margin-bottom: 38px;
}

form.subscribe-form,
.cta-template-2 form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    position: relative;
}

.cta-template-2 form .hs-form-field label {
    display: none;
}

.cta-template-2 .hbspt-form {
    background: transparent !important;
}

.cta-template-2 .hbspt-form .hs-submit {
    display: flex;
}

form.subscribe-form input[type="email"],
.cta-template-2 form input[type="email"] {
    font-family: var(--font-body) !important;
    font-weight: var(--weight-semibold) !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    color: var(--rp-headlines) !important;
    border-radius: 100px !important;
    outline: 0 !important;
    border: 0 !important;
    padding: 22px 28px !important;
    min-width: 300px;
}

.cta-template-2 .hs_error_rollup {
    position: absolute;
    bottom: -10px;
    left: 16px;
}

.cta-template-2 .hs-form-field {
    flex: 1;
    margin-bottom: 0;
}

.cta-template-2 input[type="submit"].hs-button {
    height: 100%;
}

.posts-grid-section.category-they-ask {
    padding-top: 90px;
    padding-bottom: 90px;
    background-color: var(--rp-pale-pink);
}

.posts-grid-section.podcast-posts-grid {
    padding-top: 90px;
    padding-bottom: 90px;
}

.blog-card--image-only {
    grid-column: span 2;
}

.free-downloads-section {
    background-color: var(--rp-bright-red);
    position: relative;
    overflow: hidden;
}

.free-downloads-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-image: url(../images/bg-texture-hero.webp);
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.free-downloads-section>.container {
    position: relative;
    z-index: 1;
}

.free-downloads-section .free-downloads-image {
    position: relative;
    height: 100%;
    min-height: 100%;
    padding-top: 126px;
}

.free-downloads-section .free-downloads-image .free-downloads-image__shape_pink,
.free-downloads-section .free-downloads-image .free-downloads-image__shape_cyan {
    position: absolute;
    left: 0;
    bottom: 0;
}

.free-downloads-section .free-downloads-image .free-downloads-image__shape_pink {
    width: 330px;
    /* height: 391px; */
    bottom: 23px;
    left: -70px;
    z-index: 0;
}

.free-downloads-section .free-downloads-image .free-downloads-image__shape_cyan {
    width: 410px;
    /* height: 388px; */
    right: 50px;
    left: inherit;
    z-index: 1;
}

.free-downloads-section .free-downloads-image .free-downloads-image__main {
    position: relative;
    z-index: 2;
}

.free-downloads-section .free-downloads-image .free-downloads-image__clipart {
    position: absolute;
    top: 70px;
    right: 60px;
    width: 240px;
}

.free-downloads-section .free-downloads-content {
    color: var(--rp-white);
    padding: 20px 0;
}

.free-downloads-section .free-downloads-content h2 {
    margin-bottom: 18px;
}

.free-downloads-section .free-downloads-content p {
    margin-bottom: 30px;
}

.free-downloads-section .row>* {
    position: relative;
}

.free-downloads-section .arrow-bottom {
    position: absolute;
    bottom: -80px;
    left: 200px;
    width: 220px;
}

.learning-center-template.archive-template .latest-posts-section {
    display: flex;
    gap: 60px;
}

.learning-center-template.archive-template .latest-posts-section .archive-head {
    flex: 0 0 341px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.learning-center-template.archive-template .latest-posts-section .archive-head .breadcrumb {
    color: var(--rp-pale-cyan);
}

.learning-center-template.archive-template .latest-posts-section .archive-head h2,
.learning-center-template.archive-template .latest-posts-section .archive-head p {
    margin: 0;
}

.learning-center-template.archive-template .latest-posts-section .latest-posts-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.learning-center-template.archive-template .latest-posts-section .latest-post-grid_item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.learning-center-template .pagination-wrapper .ajax-pagination {
    display: flex !important;
    flex-direction: row !important;
    gap: 24px !important;
}

.learning-center-template .pagination-wrapper ul.page-numbers {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px;
    margin: 0;
    margin-top: 60px;
    list-style: none;
    padding: 0;
}

.learning-center-template .pagination-wrapper ul.page-numbers li span {
    text-decoration: none;
    display: flex;
    font-family: var(--font-body);
    font-weight: var(--weight-bold);
    font-size: var(--paragraph-xs-size);
    line-height: var(--paragraph-xs-line);
    color: var(--rp-headlines);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.learning-center-template .pagination-wrapper ul.page-numbers li span.current {
    background-color: var(--rp-medium-grey);
}

@media only screen and (max-width: 1280px) and (min-width: 1025px) {
    .latest-posts-section .slick-next-custom {
        right: 0;
        bottom: 0px;
    }

    .latest-posts-section .slick-prev-custom {
        left: 0;
        bottom: 0px;
    }
}

@media (max-width: 1199px) {
    .learning-center-template .latest-posts-section {
        padding-top: 20px;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .learning-center-template.archive-template .latest-posts-section .latest-post-grid_item {
        grid-template-columns: 1fr;
    }

    .learning-center-template.archive-template .latest-posts-section .archive-head {
        flex: 0 0 45%;
    }

    .learning-center-template .posts-3-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* .blog-card--image-only {
        order: 1;
    } */

    .learning-center-template .cta-template-2 .cta-template-inner {
        display: flex;
        flex-direction: column-reverse;
    }

    .learning-center-template .cta-template-2 .cta-template-inner .cta-content-col {
        padding: 40px 30px;
        text-align: center;
    }

    .learning-center-template .cta-template-2 .cta-content {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 20px;
        padding-bottom: 30px;
    }

    .learning-center-template .cta-template-2 .subscribe-form {
        justify-content: center;
    }

    .learning-center-template .cta-template-2 .cta-subtitle {
        width: 500px;
    }

    .learning-center-template .post-grid-header {
        /*grid-column: span 2;*/
    }

    .learning-center-template .free-downloads-section .col-lg-7 {
        order: 1;
    }

    .learning-center-template .free-downloads-image {
        padding-top: 50px;
    }

    .learning-center-template .free-downloads-content {
        padding: 40px 0;
    }

    .learning-center-template .latest-posts-section {
        padding: 60px 10px;
        padding-top: 20px;
    }

    .learning-center-template .latest-posts-section .row {
        display: flex;
        flex-direction: column;
        gap: 20px;

    }

    .learning-center-template .latest-posts-section .col-md-6 {
        width: 100%;
    }

    .learning-center-template .latest-post-slider_item {
        grid-template-columns: repeat(1, 1fr);
    }

    .category-pod .learning-center-template .latest-posts-section {
        flex-direction: column !important;
    }

}



/* media mobile */
@media (max-width: 768px) {

    .learning-center-template .hero-section h1 {
        margin-bottom: 0;
    }

    .learning-center-template .latest-posts-section {
        padding-bottom: 80px;
    }

    .learning-center-template.archive-template .latest-posts-section .archive-head {
        flex: 0 0 100%;
    }

    .learning-center-template.archive-template .latest-posts-section,
    .learning-center-template.archive-template .latest-posts-section .latest-post-grid_item {
        flex-wrap: wrap;
    }

    .learning-center-template.archive-template .latest-posts-section .latest-post-grid_item {
        grid-template-columns: 1fr;
    }

    .blog-menu {
        flex-direction: column;
        align-items: flex-start;
    }

    .blog-menu .search-widget,
    .blog-menu .search-widget form {
        width: 100%;
    }

    .blog-menu .search-widget form label {
        display: flex;
        flex-grow: 1;
    }

    .learning-center-template .latest-posts-section .latest-post .latest-post__thumbnail img {
        margin-bottom: 20px;
    }

    .latest-post-slider_item {
        grid-template-columns: 1fr;
    }

    .latest-posts-section .slick-prev-custom,
    .latest-posts-section .slick-next-custom {
        bottom: 40px;
    }

    form.subscribe-form,
    .cta-template-2 form {
        flex-direction: column;
    }

    form.subscribe-form input[type="email"],
    .cta-template-2 form input[type="email"],
    form.subscribe-form input[type="submit"],
    .cta-template-2 form input[type="submit"],
    .cta-template-2 .hbspt-form .hs-submit,
    .cta-template-2 .hbspt-form .hs-submit .actions {
        width: 100%;
    }

    .latest-posts-section .slick-prev-custom {
        left: 20px;
    }

    .latest-posts-section .slick-next-custom {
        right: 20px;
    }

    .posts-3-grid {
        grid-template-columns: 1fr;
        gap: 40px
    }

    .blog-card__thumbnail {
        margin-bottom: 20px;
    }

    .posts-grid-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .learning-center-template .cta-template-2 .cta-content {
        padding: 40px 10px 0;
    }

    .learning-center-template .cta-template {
        padding-bottom: 60px;
    }

    form.subscribe-form {
        flex-direction: column;
    }

    .learning-center-template .cta-template-2 .decorative-arrow {
        right: 0;
    }

    .posts-grid-section.category-they-ask,
    .posts-grid-section.podcast-posts-grid {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .blog-card--image-only {
        grid-column: span 1;
    }

    .blog-card--image-only .blog-card__thumbnail {
        margin-bottom: 0px;
    }

    .free-downloads-section .free-downloads-image {
        padding-top: 100px;
    }

    .free-downloads-section .free-downloads-image .free-downloads-image__shape_cyan {
        right: 0;
        max-width: 70%;
    }

    .free-downloads-section .free-downloads-image .free-downloads-image__shape_pink {
        left: 0;
        max-width: 50%;
    }

    .free-downloads-section .free-downloads-image .free-downloads-image__clipart {
        right: 40px;
        width: 150px;
    }

    .free-downloads-section {
        padding-top: 60px;
    }

    .blog-menu .categories-widget {
        width: 100%;
        overflow: auto;
    }

    .blog-menu .categories-widget ul {
        flex-wrap: nowrap;
    }

    .blog-menu .categories-widget ul li {
        white-space: nowrap;
    }


    .asterisk-spinner:after {
        content: "";
        position: absolute;
        top: 80px;
        left: -45px;
        width: 203px;
        height: 203px;
        opacity: 1;
        background-image: url(../icons/asterisk.svg);
        background-size: contain;
        background-position: center;
        z-index: 0;
        animation: spin 20s linear infinite;
    }

    .cta-template-2 .hs_error_rollup {
        bottom: -25px;
    }
}