body {
    background: var(--teflie-background-warm) !important;
}


.hero-banner {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 400px;
    background-position: center;
}

section#blog-hero .ast-container {
    display: block;
    padding-top: 50px;
}

#case-study-hero .overlay, #blog-hero .overlay {
    position: absolute;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    /* min-height: 283px; */
    inset: 0;
}

.hero-title {
    font-weight: var(--teflie-font-weight-semibold);
    font-size: 56px;
}

.hero-banner * {
    color: white;
}


.featured-blogs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;

}

.blog-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.blog-thumbnail {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.blog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.blog-content {
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.blog-date {
    font-size: 0.875rem;
    color: #555;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
}

.blog-date p {
    margin-bottom: 5px;
}

.teaching-tag {
    position: absolute;
    top: 10px;
    left: 10px;
    background: white;
    padding: 7px 17px;
    border-radius: 8px;
    font-weight: var(--teflie-font-weight-semibold);
    font-size: 14px;
}

.blog-title {
    font-weight: 600;
    color: #374343;
    margin: 0 0 0px 0;
    line-height: 1.4;
    /* min-height: 60px; */
    font-size: 16px;
    letter-spacing: 0px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #07ADA5;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    transition: gap 0.3s ease;
}


#webinar {
    padding-top: 60px;
}


.webinar-card-wrapper {
    display: flex;
    gap: 26px;
}

@media(max-width:545px) {
    .webinar-card-wrapper {
        flex-direction: column;
    }
}


.card-body {
    background-color: var(--teflie-white);
    padding: 30px;
}

.webinar-title {
    font-weight: var(--salmond-semibold);
    font-size: var(--teflie-font-md);
    line-height: 1.2;
}

.webinar-card {
    position: relative;
}

.tag {
    position: absolute;
    top: 20px;
    left: 18px;
    color: white;
    background: var(--teflie-light-red);
    padding: 7px 17px;
    border-radius: 8px;
    font-size: 16px;
}

/*story css*/

#tefl-story {
    position: relative;
    padding-bottom: 60px;
    min-height: 400px;
    display: flex;
    align-items: center;
}


#tefl-story .ast-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background-size: cover;
    background-position: right;
}

#tefl-story .content-container {
    border-radius: 16px;
    padding: 40px;
    max-width: 600px;
    background-color: #FCE7EE;
}

#tefl-story .story-heading {
    font-size: 40px;
    font-weight: 600;
    color: #2D3F40;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

#tefl-story .story-description {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 0 0 25px 0;
}


.bg-cover {
    padding: 40px 60px;
    border-radius: 24px;
}

@media (max-width: 768px) {
    #tefl-story {
        padding: 40px 15px;
    }

    #tefl-story .content-container {
        padding: 30px 25px;
        max-width: 100%;
    }

    #tefl-story .story-heading {
        font-size: 26px;
    }

    #tefl-story .story-description {
        font-size: 14px;
    }
}


.categories {
    display: flex;
    gap: 10px;
}

@media(max-width: 545px) {

    .categories {
        overflow-y: auto;
    }
}

/* Review */


.student-reviews-section .section-title {
    text-align: center;
    font-size: 40px;
    font-weight: var(--teflie-font-weight-regular);
    line-height: 1.2;
}

.section-title b {
    font-weight: var(--salmond-bold);
}

.student-reviews-section {
    margin-top: var(--teflie-space-lg);
    padding: var(--teflie-space-2xl) 0;
    background-image: url(/wp-content/uploads/2026/01/word-map-grey.png);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
}

.student-reviews-wrapper {
    display: flex;
    gap: var(--teflie-space-sm);
}

@media(max-width:545px){
    .student-reviews-wrapper{
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }
    .review-card{
        scroll-snap-align: center;
        flex-shrink: 0;
    }
}

.student-reviews-section__row .section-header {
    margin-bottom: var(--teflie-space-md);
}

.student-reviews-section__row .section-summary {
    text-align: center;
    line-height: 1.5;
}

.review-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
}

img.review-card__thumbnail {
    height: 400px;
    width: 100%;
    object-fit: cover;
}

.review-card::after {
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.8) 100%);
    position: absolute;
    inset: 20% 0 0 0;
    border-radius: 2rem;
}

.review-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 80%;
    display: flex;
    justify-content: space-between;
    padding: var(--teflie-space-sm) var(--teflie-space-md);
    color: var(--teflie-white);
    align-items: center;
    z-index: 2;
    /* border-radius: 0 0 2rem 2rem; */
}

.review-card__title {
    font-size: var(--teflie-font-xxl);
    font-weight: var(--teflie-font-weight-bold);
}

.review-play-btn {
    width: 45px;
}

.section-summary {
    font-size: 16px !important;
    margin-bottom: var(--teflie-space-md);
}

/* Review */




.category {
    padding: 10px;
    border: 1px solid #ECE9E1;
    border-radius: 5px;
    background-color: white;
}

.category.active {
    border-color: #07ADA5; 
    background-color: #07ADA51A;
    
}
.category {
    cursor: pointer;
}

.load-more-container {
    cursor: pointer;
}

.search-container {
    max-width: 640px;
    width: 100%;
}

.search-container form {
    position: relative;
    width: 100%;
}

.search-container input[type="text"] {
    width: 100%;
    padding: 14px 20px 14px 50px;
    font-size: 15px;
    border: 2px solid var(--teflie-navy-blue-transparent);
    border-radius: 8px;
    outline: none;
    transition: all 0.3s ease;
    background-color: transparent;
}


.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 1;
}


.filter-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}




/*Blog Card  mobile view*/

@media (max-width: 768px) {
    .featured-blogs-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        gap: 20px;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE and Edge */
    }

    .featured-blogs-grid::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .featured-blogs-grid .blog-card {
        flex: 0 0 85%;
        min-width: 280px;
        max-width: 350px;
        scroll-snap-align: start;
    }

    .category {
        line-height: 1.2;
        font-size: 10px;
        min-width: 80px;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 2px 5px;
    }    
}

/* Slider wrapper */
.featured-blogs-slider {
    position: relative;
}

/* Hide overflow, allow track to scroll */
.featured-blogs-viewport {
    overflow: hidden;
}

/* Horizontal track */
.featured-blogs-track {
    display: flex;
    gap: 24px;
    transition: transform 300ms ease;
    will-change: transform;
}

/* Each card is one slide; tweak width how you like */
.featured-blogs-track .blog-card {
    flex: 0 0 calc((100% - 24px) / 2); /* 2 per view on desktop */
}

/* Arrows below */
.featured-blogs-arrows {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.featured-blogs-arrow {
    width: 40px;
    height: 40px;
    background: transparent;
    padding: 0;
}

.featured-blogs-arrow:hover {
    background: transparent;
}

.featured-blogs-arrow:focus {
    background: transparent;
}

.featured-blogs-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Responsive: 1 per view on mobile */
@media (max-width: 768px) {
    .featured-blogs-track .blog-card {
        flex: 0 0 100%;
    }
}


/* Related Course section */



.courses-cta-section>.ast-container {
    display: block;
}

.courses-cta-section .section-title {
    text-align: center;
}

.courses-cta-section__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--teflie-space-sm);
}

.course-card {
    border-radius: 1.5rem;
    overflow: hidden;
}

.course-card__main {
    min-height: 530px;
    display: flex;
    align-items: end;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    background-position: top center !important;
    position: relative;
}

.course-label {
    position: relative;
    top: -1rem;
    left: 0;
    background: var(--teflie-white);
    padding: var(--teflie-space-xs);
    border-radius: var(--teflie-radius-md);
    color: var(--teflie-text-primary);
    font-weight: var(--teflie-font-weight-semibold);
    font-size: 14px;
}

.course-card__content {
    position: relative;
    padding: var(--teflie-space-md);
    background: url('/wp-content/uploads/2025/10/Blur.png');
    background-size: cover !important;
}

.course-card__content-top {
    display: inline-flex;
    align-items: start;
    justify-content: space-between;
    padding-bottom: var(--teflie-space-sm);
    border-bottom: 1px solid #ffffff10;
    gap: var(--teflie-space-xs);
}

.course-title {
    margin: 0;
    color: var(--teflie-white);
    font-weight: var(--teflie-font-weight-bold);
    line-height: 130%;
    letter-spacing: -0.5px;
}

.course-price del {
    display: none;
}

.course-price .wcpbc-price {
    color: var(--teflie-white);
    font-size: 18px;
    font-weight: var(--teflie-font-weight-bold);
    line-height: 140%;
    letter-spacing: -0.5px;
}

.course-card__content-middle.course-summary {
    padding-top: var(--teflie-space-sm);
    color: var(--teflie-white);
    font-size: 16px;
    font-weight: var(--teflie-font-weight-medium);
    padding-bottom: var(--teflie-space-sm);
}

.course-card__content-bottom {
    display: flex;
    gap: var(--teflie-space-xs);
}

.course-card__content-bottom>* {
    flex: auto;
}

.course-card__content-bottom>a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.course-card__content-bottom .btn-glass {
    flex-direction: row-reverse;
}

.compare-courses.teflie-btn.btn-secondary {
    margin: var(--teflie-space-lg) auto;
    display: block;
    width: max-content;
}

/* Read More */

.course-summary {
    height: 65px;
    overflow: hidden;
    transition: height 0.35s ease;
    color: var(--teflie-white);
    font-size: 16px;
    font-weight: var(--teflie-font-weight-medium);
}

.course-summary.expanded {
    height: 252px;
    overflow-y: scroll;
}

.read-more {
    display: inline-block;
    margin-top: 6px;
    cursor: pointer;
    color: var(--teflie-turquoise);
    font-weight: var(--teflie-font-weight-medium);
    margin-bottom: 13px;
}
.course-card_main.expanded {
    height: auto;
}

.course-summary.expanded {
    height: 252px;
    overflow-y: auto;
    padding-right: 6px; /* space for scrollbar */
}
.course-summary.expanded ul li {
    list-style-type: disc;
}

@media(max-width: 545px){
    .course-summary.expanded{
        height: 200px;
    }
}

/* Chrome, Edge, Safari */
.course-summary.expanded::-webkit-scrollbar {
    width: 6px;
}

.course-summary.expanded::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.course-summary.expanded::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--teflie-turquoise),var(--teflie-turquoise));
    border-radius: 10px;
}

.course-summary.expanded::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,var(--teflie-turquoise),var(--teflie-turquoise));
}

/* Firefox */
.course-summary.expanded {
    scrollbar-width: thin;
    scrollbar-color:var(--teflie-turquoise) rgba(255, 255, 255, 0.00);
}


@media screen and (max-width:768px) {
    .custom-slider {
        position: relative;
    }

    .slider-container {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 10px;
    }

    .slider-container::-webkit-scrollbar {
        display: none;
    }

    .slider-item {
        flex: 0 0 90%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        flex-shrink: 0;
    }

    .slider-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .slider-nav-btn {
        background: #fff;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
    }

    .slider-nav-btn img {
        width: 40px;
        height: 40px;
        transition: transform 0.3s ease;
    }

    .slider-prev img {
        transform: rotate(180deg);
    }

    .slider-nav-btn:hover:not(.disabled),
    .slider-nav-btn:focus:not(.disabled) {
        background: #000;
        transform: scale(1.05);
    }

    .slider-nav-btn:hover:not(.disabled) img,
    .slider-nav-btn:focus:not(.disabled) img {
        filter: brightness(0) invert(1);
    }

    .slider-nav-btn.disabled,
    .slider-nav-btn:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        border-color: #ccc;
    }

    .slider-nav-btn.disabled:hover,
    .slider-nav-btn:disabled:hover {
        background: #fff;
        transform: none;
    }

    .slider-nav-btn:active:not(.disabled) {
        transform: scale(0.95);
    }

    .teaching-card {
        min-height: 200px;
    }
}


.cta-container{
    width: max-content;
    margin: auto;
}

span.select-text {
    color: var(--teflie-dark-navy-transparent);
}

.course-cta-klarna {
    display: flex;
    background-color: var(--teflie-light-pink);
    padding: 9px 26px;
    gap: 12px;
    font-weight: var(--teflie-font-weight-semibold);
}

.tefl-select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-image: url('/wp-content/uploads/2026/01/Vector-11.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
}

.social-reels-container::before{
    content: '';
    background-image: url(/wp-content/uploads/2025/11/Vector-17.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 55px;
}

.section-title {

    font-size: 40px;
}

#post_orderby_dropdown li{
    cursor: pointer;
}

#social_media_reels {
    padding-bottom: 70px;
}

/*Webinar section */

.webinar-image img{
    border-radius:  20px 20px 0px 0px;
}
.card-body{
    border-radius: 0px 0px 20px 20px;
}

.wellness-guide-section {
    padding: 5rem 0 5rem;
    background: transparent;
    width: 100%;
}

.wellness-guide-card {
    background: #FCE9C6;
    border-radius: 20px;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow: visible;
    position: relative;
}

.wellness-guide-image {
    flex: 0 0 300px;
    margin-bottom: -114px;
    margin-top: -200px;
}

.wellness-guide-image:after {
    content: "";
    background: url(https://tefl.ie/wp-content/uploads/2026/03/arrow-flipped-1.gif) no-repeat center center / cover;
    width: 100px;
    height: 50px;
    position: absolute;
    top: -70px;
    margin-left: 300px;
}

.wellness-guide-image img {
    display: block;
    width: 100%;
    height: auto;
    transform: rotate(-3.8deg);
    transform-origin: center center;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.18));
}

.wellness-guide-content {
    flex: 1;
    max-width: 760px;
    padding-top: 2px;
}

.wellness-guide-content h2 {
    font-size: 18px;
    font-weight: 600;
}

.wellness-guide-content p {
    margin: 0 0 24px;
    font-size: 16px;
    line-height: 1.18;
    font-weight: 400;
    letter-spacing: revert-layer;
    max-width: 760px;
}

.wellness-guide-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    height: 40px;
    padding: 0 30px;
    border: 1.5px solid #31434a;
    border-radius: 999px;
    background: transparent;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wellness-guide-button:hover {
    background: #31434a;
    color: #ffffff;
}

.wellness-guide-button::before {
    content: "";
    width: 18px;
    height: 18px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2331434a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
}

.wellness-guide-button:hover::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M5 21h14'/%3E%3C/svg%3E");
}

@media (max-width: 1199px) {
    .wellness-guide-card {
        padding: 24px 32px;
        gap: 34px;
    }

    .wellness-guide-image {
        flex: 0 0 360px;
        margin-top: -86px;
    }

    .wellness-guide-content h2 {
        font-size: 28px;
    }

    .wellness-guide-content p {
        font-size: 22px;
    }
}

@media (max-width: 991px) {
    .wellness-guide-card {
        flex-direction: column;
        text-align: center;
        padding: 34px 24px 28px;
        gap: 18px;
    }

    .wellness-guide-image {
        flex: none;
        width: 100%;
        max-width: 340px;
        margin: -88px auto 0;
    }

    .wellness-guide-content {
        max-width: 100%;
    }

    .wellness-guide-content h2 {
        font-size: 26px;
    }

    .wellness-guide-content p {
        font-size: 20px;
        max-width: 100%;
    }
}


.student-stories-section {
    position: relative;
    padding: 60px 20px 36px;
    overflow: hidden;
}

.student-stories-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1600px, 96%);
    height: 100%;
    background: url("https://tefl.ie/wp-content/uploads/2026/03/world-map.png") no-repeat top center;
    background-size: contain;
    pointer-events: none;
}

.student-stories-header,
.student-stories-row,
.student-stories-footer {
    position: relative;
    z-index: 2;
}

.student-stories-header {
    max-width: 980px;
    margin: 0 auto 42px;
    text-align: center;
}

.student-stories-header h2 {
    margin: 0 0 10px;
    color: #31484b;
    font-size: 40px;
    font-weight: 500;
}

.student-stories-header p {
    margin: 0;
    color: #43565a;
    font-size: 20px;
    line-height: 1.35;
}

.student-stories-row {
    max-width: 1720px;
    margin: 0 auto;
    display: flex;
    gap: 18px;
    align-items: stretch;
}

.student-story-card {
    flex: 1 1 0;
    min-width: 0;
    height: 540px;
    border-radius: 15px;
    overflow: hidden;
    background: #d9d9d9;
    position: relative;
    cursor: pointer;
    transition: flex 0.35s ease, width 0.35s ease, background 0.35s ease;
    outline: none;
}

.student-story-card:not(.is-active) .student-story-card-content {
    display: none;
}

.student-story-card:not(.is-active) .student-story-card-image {
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
}

.student-story-card.is-active {
    flex: 2.15 1 0;
    display: flex;
    background: #007f7d;
}

.student-story-card.is-active .student-story-card-image {
    flex: 0 0 320px;
    height: 100%;
    border-radius: 15px 0 0 15px;
    overflow: hidden;
}

.student-story-card.is-active .student-story-card-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 32px 30px;
}

.student-story-card-image {
    position: relative;
    background: #d9d9d9;
}

.student-story-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.student-story-flag {
    position: absolute;
    left: 22px;
    bottom: 22px;
    width: 92px;
    height: 92px;
    border-radius: 26px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.student-story-flag img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.student-story-pill {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 28px;
    border-radius: 999px;
    background: #ece0b8;
    color: #43565a;
    font-size: 14px;
    line-height: 1.25;
    margin-bottom: 34px;
    max-width: 100%;
}

.student-story-card.is-active h3 {
    margin: 0 0 18px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    max-width: 420px;
}

.student-story-card.is-active p {
    margin: 0 0 30px;
    color: #e4f3f0;
    font-size: 20px;
    line-height: 1.45;
    max-width: 440px;
}

.student-story-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 34px;
    border-radius: 999px;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    background: linear-gradient(180deg, #2ca7a2 0%, #1d8d8b 100%);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14);
}

.student-stories-footer {
    text-align: center;
    margin-top: 42px;
}

.student-stories-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 470px;
    height: 84px;
    padding: 0 36px;
    border: 2px solid #43565a;
    border-radius: 999px;
    color: #43565a;
    text-decoration: none;
    font-size: 22px;
    font-weight: 500;
    background: transparent;
}

.student-stories-button span {
    font-size: 30px;
    line-height: 1;
}

@media (max-width: 1600px) {
    .student-story-card {
        height: 500px;
    }

    .student-story-card.is-active .student-story-card-image {
        flex-basis: 280px;
    }

    .student-story-card.is-active h3 {
        font-size: 28px;
    }

    .student-story-card.is-active p {
        font-size: 18px;
    }
}

@media (max-width: 1200px) {
    .student-stories-header h2 {
        font-size: 54px;
    }

    .student-stories-row {
        flex-direction: column;
    }

    .student-story-card,
    .student-story-card.is-active {
        flex: none;
        height: auto;
        display: block;
    }

    .student-story-card:not(.is-active) .student-story-card-content {
        display: none;
    }

    .student-story-card .student-story-card-image,
    .student-story-card.is-active .student-story-card-image {
        height: 380px;
        border-radius: 36px 36px 0 0;
    }

    .student-story-card.is-active .student-story-card-content {
        display: flex;
    }
}

@media (max-width: 767px) {
    .student-stories-section {
        padding: 40px 16px 30px;
    }

    .student-stories-header {
        margin-bottom: 28px;
    }

    .student-stories-header h2 {
        font-size: 42px;
    }

    .student-stories-header p {
        font-size: 18px;
    }

    .student-story-card {
        border-radius: 28px;
    }

    .student-story-card .student-story-card-image,
    .student-story-card.is-active .student-story-card-image {
        height: 320px;
        border-radius: 28px 28px 0 0;
    }

    .student-story-card.is-active .student-story-card-content {
        padding: 22px 20px 24px;
    }

    .student-story-card.is-active h3 {
        font-size: 26px;
        max-width: 100%;
    }

    .student-story-card.is-active p {
        font-size: 17px;
        max-width: 100%;
    }

    .student-story-read-more {
        min-width: 220px;
        height: 64px;
        font-size: 16px;
    }

    .student-stories-button {
        min-width: 280px;
        height: 62px;
        font-size: 18px;
    }
}