@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

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

header .ast-container,
.outer-section {
    max-width: 1300px !important;
    margin: auto !important;
}

h2, h3, h4 {
    color: var(--teflie-text-primary-dark) !important;
}

p {
    color: var(--teflie-text-primary) !important;
    line-height: 140% !important;
}

.ast-separate-container #primary {
    margin: 0;
}

#content .ast-container {
    max-width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 !important;
}

.hero-container ul,
.course-description ul {
    margin-bottom: 1rem;
}

.hero-container ul li,
.course-description ul li {
    list-style: disc;
    margin-left: 1.25rem;
}

.course-description p:last-of-type {
    margin: 0;
}

.wpcf7-form-control.wpcf7-submit.has-spinner {
    font-size: 18px;
    display: inline-block;
    /* margin-top: 3rem; */
    padding: 15px 30px;
    font-weight: 600;
    margin-right: -4rem;
}

.wpcf7-form-control-wrap {
    margin-bottom: 1rem;
}

input#submit {
    font-size: 18px;
    font-weight: 600;
    width: 100%;
    margin: 1rem 0;
    padding: 15px;
}

#primary {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.outer-section-hero {
    width: 100%;
    padding: 2rem 0 3rem;
    background-position: right center;
    background-size: 50% 100%, 50% 100%;
    background-repeat: no-repeat;
}

.hero-container {
    max-width: 1300px;
    margin: auto;
    padding: 020px;
}

.outer-section {
    width: 1300px;
    padding: 0 20px !important;
}

.hero-title {
    margin-bottom: 4rem;
    font-size: 50px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--teflie-text-primary-dark);
}

.hero-title p {
    margin: 0;
}

.hero-subheading {
    margin-top: 2rem;
    font-size: 20px;
}

.hero-subheading p {
    margin: 0;
    padding-bottom: 1rem;
    font-size: 18px;
}

.hero-cta {
    margin-top: 1rem;
    display: flex;
    gap: 10px;
}

.hero-cta-href svg {
    vertical-align: middle;
    margin-left: 8px;
}

.hero-cta-href.btn-secondary {
    background: none;
    box-shadow: 0 0 0 1px inset #2D3F40;
    background: var(--teflie-light-red);
    color: var(--teflie-white);
    font-weight: 500;
}

.hero-cta-href.btn-secondary:hover {
    background: var(--teflie-light-red);
    color: var(--teflie-white);
}

.outer-section-menu {
    background: #030D36;
    width: 100%;
    padding: 20px;
}

.menu-container {
    max-width: 1300px;
    margin: auto;
    padding: 0 20px;
}

.custom-menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-link {
    position: relative;
    padding: 0 2rem;
    color: white;
    text-decoration: none;
}

.menu-link:hover {
    color: white;
    text-decoration: none;
}

.menu-link:active {
    color: white;
    text-decoration: none;
}

.menu-link:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 1.2rem;
    width: 1px;
    background-color: white;
}

.accreditation-section {
    text-align: center;
    padding: 3rem 0;
}

.accreditation-section h2 {
    text-align: center;
}

.accreditation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin: 1rem auto 0;
    border-top: 1px dashed #C2C2C2;
    border-bottom: 1px dashed #C2C2C2;
    padding: 3rem 0;
    text-align: left;
}

.accreditation-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.accreditation-item .flag {
    width: 20px;
    height: auto;
}

.accreditation-item .logo {
    height: 60px;
    width: auto;
    margin: 1rem auto;
    object-fit: cover;
}

.accreditation-item .by {
    margin-bottom: 0;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.provider-text {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.testimonial-heading {
    text-align: center;
    margin-bottom: 2rem;
}

.testimonial-heading h2 {
    background-color: #0c154d;
    color: white;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 1rem;
    font-size: 1.5rem;
}

.testimonial-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-box {
    background-color: white;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.testimonial-logo img {
    width: 60px;
    height: auto;
    object-fit: contain;
}

.testimonial-content {
    flex: 1;
}

.testimonial-review {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #111c3b;
}

.outer-section-pattern {
    width: 100%;
    display: flex;
    justify-content: center;
    /* background-image: url(https://tefl.ie/wp-content/uploads/2025/07/pattern-3.png);
    background-position: center;
    background-repeat: inherit;
    background-size: cover; */
    padding: 3rem 0;
}

.two-columns {
    width: 1300px;
    padding: 0 20px !important;
    display: flex;
    gap: 3rem;
}

.testimonials {
    width: 50%;
}

.testimonial-card {
    background: white;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    padding: 1rem;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.testimonial-author {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.testimonial-logo {
    margin: 0rem 2rem;
}

.testimonials-heading {
    text-align: center;
    padding-bottom: 2rem;
    font-weight: 600;
}

.prospectus {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.prospectus-heading {
    text-align: center;
    font-weight: 600;
}

.prospectus a {
    background: #030D36;
    color: white;
    border-radius: 33px;
    width: 70%;
    display: block;
    text-align: center;
    font-size: 22px;
    padding: 10px;
    font-weight: 600;
}

.tefl-courses-section {
    padding: 3rem 0;
}

.tefl-courses-section .section-subheading {
    max-width: 100%;
}

.container {
    text-align: center;
}

.section-title {
    font-size: 36px;
    font-weight: 450;
    text-align: center;
    color: #0a0a0a;
    margin-bottom: 10px;
}

.section-subheading {
    font-size: 20px;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* === Grid === */
.courses-grid {
    display: flex;
    gap: 3rem;
    justify-content: center;
    text-align: left;
}

/* === Card === */
.course-card {
    width: 100%;
    /* overflow: hidden; */
    display: flex;
    flex-direction: column;
}

/* === Image Section === */
.course-image-wrapper {
    position: relative;
    margin-top: 2rem;
}

.course-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0rem 8rem 0rem 8rem;
}

.course-badge {
    position: absolute;
    top: -21px;
    left: 30px;
    padding: 6px 24px;
    font-weight: 400;
    font-size: 18px;
    text-transform: uppercase;
    color: #fff;
    border-radius: 0 4px 0 4px;
    background-color: #f88277;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.course-badge img {
    height: 22px;
    width: auto;
}

.course-icon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    border-radius: 0rem 8rem 0rem 8rem;
}

.overlay-outline {
    border: 4px solid #f88277;
}

.course-icon {
    width: 150px;
    height: 150px;
    display: block;
    margin-bottom: 1rem;
}

/* === Content === */
.course-content {
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 2rem;
}

.course-title {
    width: 14rem;
    font-size: 33px;
    font-weight: 600;
    color: white !important;
}

.course-type {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgb(234, 19, 1);
    margin-bottom: 2rem;
    padding-bottom: 2rem;
}

.course-type img {
    height: 60px;
    width: auto;
}

.course-type-content {
    display: flex;
    flex-direction: column;
}

.course-type strong {
    font-size: 20px;
    color: var(--teflie-text-primary-dark);
}

.course-tagline {
    font-size: 18px;
    font-weight: 500;
}

.course-description-wrapper {
    position: relative;
}

.course-description-wrapper .course-description {
    max-height: 135px;
    font-size: 18px;
    font-weight: 500;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.course-description.expanded {
    max-height: 2000px;
}

.course-description-wrapper button.read-more-btn {
    all: unset;
    color: var(--teflie-turquoise);
    font-weight: var(--teflie-font-weight-bold);
    display: inline-flex;
    align-items: center;
    gap: var(--teflie-space-xs);
    cursor: pointer;
}

.course-benefits {
    list-style: disc;
    padding-left: 18px;
    font-size: 14px;
    color: #444;
    margin-bottom: 24px;
}

.course-benefits li {
    margin-bottom: 6px;
}

/* === Footer === */
.course-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    gap: 15px;
}

.course-price {
    font-size: 20px;
}

.old-price {
    font-size: 14px;
    color: #aaa;
    text-decoration: line-through;
    margin-right: 8px;
}

.new-price {
    font-weight: bold;
    font-size: 18px;
    color: #0a0a0a;
}

.course-button {
    width: 100%;
}

.enquiry-form-cta {
    max-width: 100%;
    padding: 0 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.enquiry-form-cta .course-button {
    padding: 10px 25px;
    width: max-content;
}

.blog-section {
    text-align: center;
}

.reading-corner-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    text-align: left;
    margin-top: 1rem;
}

.course-date-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.course-date-picker select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background-color: white;
    border: 2px solid #000642;
    /* match site navy */
    border-radius: 0 10px;
    padding: 1rem 2.5rem 1rem 2.5rem;

    font-size: 1.25rem;
    font-weight: 600;
    color: #000642;

    min-width: 280px;
    text-align: right;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23000642" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: 1rem center;
    background-size: 50px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.course-date-picker select:hover {
    border-color: #1b1b6d;
}

.course-date-picker select:focus {
    outline: none;
    border-color: #1b1b6d;
    box-shadow: 0 0 0 2px rgba(0, 6, 66, 0.2);
}

.calendar-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: #000642;
}

.course-date-picker img {
    width: 50px;
    height: auto;
}

.enquire-section {
    background: var(--teflie-background-vanilla);
    color: var(--teflie-text-primary-dark);
    text-align: center;
    padding: 3rem 3rem 2rem;
    border-radius: 3rem;
}

.enquire-section h2 {
    font-size: 40px;
}

.enquire-section p {
    margin-bottom: 1rem;
}

.enquire-section form p {
    margin: 0;
    font-size: 18px;
}

.enquire-section form input[type=submit] {
    background:
        linear-gradient(0deg, #039D95, #039D95),
        /* solid background */
        radial-gradient(65.28% 65.28% at 26.39% 20.83%, rgba(255, 255, 255, 0.354) 0%, rgba(255, 255, 255, 0) 69.79%),
        radial-gradient(92.09% 85.42% at 86.3% 87.5%, rgba(0, 0, 0, 0.23) 0%, rgba(0, 0, 0, 0) 86.18%);

    background-blend-mode: lighten, normal, multiply;

    box-shadow:
        4px 38px 62px 0px #0000001F,
        -3px -4px 7px 0px #FFFFFF26 inset;
    border: none;
    color: #fff;
    outline: none;
    transition: 0.3s ease;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 400 !important;
    min-width: 250px;
}

.howitworks-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.howitworks-header .section-title {
    font-size: 2.5rem;
    font-weight: 450;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-subheading {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #334155;
}

.howitworks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

.howitworks-card {
    background: #fff;
    border-radius: 25px;
    padding: 2rem;
    max-width: 300px;
    text-align: center;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.15);
}

.howitworks-icon img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.howitworks-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0F172A;
}

.howitworks-hr {
    background: #DBDBDB;
    width: 8rem;
    height: 1px;
    margin: 1rem auto 0.5rem;
}

.howitworks-subtitle {
    font-size: 18px;
    color: var(--teflie-text-primary) !important;
    text-align: left;
    margin: 0;
}

.blog-section {
    text-align: center;
    max-width: 1024px;
    margin: auto;
}

.reading-corner-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    text-align: left;
    margin-top: 1rem;
}

/* === Left Big Card === */
.featured-card {
    display: block;
    position: relative;
    background-size: cover;
    background-position: center;
    padding-top: 73.5%;
    border-radius: 20px;
    overflow: hidden;
    color: #000;
    text-decoration: none;
}

.featured-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.featured-meta {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.badge-date,
.badge-category {
    background: #fff;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.featured-title {
    position: absolute;
    bottom: 80px;
    left: 16px;
    background: #fff;
    padding: 10px 14px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 12px;
}

.read-more-button {
    position: absolute;
    bottom: 20px;
    left: 16px;
    font-size: 14px;
    font-weight: 400;
}

/* === Right Column === */
.right-stacked {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.view-all-blog {
    background: var(--teflie-light-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    position: absolute;
    right: -120px;
    top: 50%;
    transform: translateY(-50%);
    height: 50px;
    width: 50px;
}

.view-all-blog:hover img {
    transform: translateX(3px);
}

.view-all-blog img {
    width: 20px;
    transition: all .4s ease-in-out;
}

.stacked-card {
    display: block;
    position: relative;
    height: 250px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    overflow: hidden;
    padding: 16px;
    text-decoration: none;
    color: #000;
}

.stacked-card:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.stacked-title {
    background: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    max-width: 90%;
}

.stacked-card .read-more-button {
    position: absolute;
    bottom: 16px;
    left: 16px;
    font-size: 13px;
}

.outer-section-pro-courses {
    width: 100%;
}

.tefl-pro-series-section {
    padding: 20px 0;
    max-width: 1300px;
    margin: auto;
}

.section-subheading {
    font-size: 20px;
    color: #111c3b;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.tefl-pro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.tefl-pro-card {
    background: white;
    border-radius: 20px;
    padding: 30px 24px;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tefl-course-icon {
    width: 80px;
}

.tefl-course-title {
    font-size: 18px;
    font-weight: 600;
    border-left: 2px solid #F12C3E;
    padding-left: 10px;
}

.discount-badge {
    background: #ff4f4f;
    color: white;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: bold;
}

.tefl-content {
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 60px;
    /* height: 14rem; */
}

.tefl-content ul {
    margin: 0;
}

.tefl-content p {
    margin-bottom: 1rem;
}

.tefl-content ul li {
    list-style: disc;
    margin-left: 1.25rem;
}

.tefl-content ul li p {
    margin-bottom: 0;
}

.tefl-benefits {
    list-style: disc;
    padding-left: 18px;
    font-size: 14px;
    color: #333;
    text-align: left;
    margin-bottom: 24px;
}

.tefl-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: absolute;
    bottom: 28px;
    left: 10%;
    width: 80%;
}

/* .btn-primary {
    background: #0b0c1a;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
} */

.btn-outline {
    border: 2px solid #0b0c1a;
    color: #0b0c1a;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 25px;
    text-decoration: none;
    text-align: center;
}

.tefl-card-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.faq-section {
    padding: 3rem 0 0;
}

.faq-heading {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

@media screen and (min-width: 769px) {
    .faq-list {
        max-width: 75%;
        margin: 0 auto;
    }
}

.faq-item {
    padding: 10px 0;
    background: var(--teflie-background-vanilla);
    margin-bottom: var(--teflie-space-sm);
    border-radius: 10px;
}

.faq-question {
    font-size: 18px;
    /* większa czcionka */
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    padding-left: 1rem;
}

.faq-answer {
    display: none;
    font-size: 18px;
    padding: 0 var(--teflie-space-sm) var(--teflie-space-sm);
    font-weight: 400;
    color: var(--teflie-text-primary);
    line-height: 140%;
    margin-top: 5px;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-text {
    color: var(--teflie-text-primary);
}

.faq-number {
    margin-right: 0.5rem;
    font-weight: bold;
    color: var(--teflie-text-primary);
}

.faq-footer {
    text-align: center;
    margin-top: 40px;
}

.faq-more-btn {
    background-color: #0b0c1a;
    color: white;
    padding: 14px 30px;
    font-size: 14px;
    font-weight: bold;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.faq-more-btn .arrow {
    margin-left: 8px;
    font-size: 20px;
}

.irish-partners {
    padding: 3rem 0;
    background-color: var(--teflie-background-light-blue);
    text-align: center;
    margin-top: 50px;
}

.section-heading {
    font-size: 2.5rem;
    position: relative;
    font-weight: 450;
    display: inline-block;
    margin: 0 0 1rem 0 !important;
}

.section-heading::before {
    bottom: -4px;
}

.section-heading::after {
    bottom: -10px;
}

.partners-subheading {
    font-size: 20px;
    margin-bottom: 2rem;
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.partners-logos-wrapper {
    overflow: hidden;
    width: 100%;
    background-color: var(--teflie-background-light-blue);
    padding: 2rem 0;
    position: relative;
}

.partners-logos {
    display: flex;
    width: max-content;
    animation: scroll-logos 50s linear infinite;
}

/* Keyframes */
@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.partner-logo {
    flex: 0 0 auto;
    margin: 0 2rem;
}

.partner-logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.outer-section-team {
    width: 100%;
}

.team-section {
    padding: 3rem 0;
    text-align: center;
    max-width: 1300px;
    margin: auto;
}

.section-subtitle {
    color: #111c3b;
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(206px, 1fr));
    gap: 2rem;
    justify-items: center;
}

.team-member {
    max-width: 280px;
}

.team-avatar img {
    width: 100%;
    border-radius: 1.5rem;
    object-fit: cover;
}

.team-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 1rem 0 0.25rem;
}

.team-role {
    font-size: 1rem;
    color: #333;
    margin: 0;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 100%;
    overflow: hidden;
    padding: 0 40px;
}

.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    width: 960px;
    margin: auto;
}

.scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

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

.benefits-section {
    margin-bottom: 3rem;
}

.benefits-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
    width: 300px;
    background: #fff;
    border-radius: 0 2rem 0 2rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.15);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: #F16053;
    border: none;
    padding: 15px 10px;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 1rem 0;
}

.carousel-btn.left {
    left: 0;
}

.carousel-btn.right {
    right: 0;
}

.benefits-icon img {
    height: 60px;
    width: auto;
    margin-bottom: 20px;
}

.benefits-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #0F172A;
}

.benefits-subtitle {
    font-size: 18px;
    color: var(--teflie-text-primary);
}

.certificate-section {
    margin-top: 3rem;
    padding: 0 3rem 0 0;
    border-radius: 2rem;
}

.certificate-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    gap: 40px;
}

.certificate-image img {
    max-width: 100%;
    border-radius: 24px;
    object-fit: cover;
    width: 500px;
    height: auto;
}

.certificate-content {
    max-width: 500px;
    text-align: left;
}

.certificate-title {
    font-size: 2rem;
    font-weight: 450;
    color: #0f172a;
    margin-bottom: 10px;
}

.certificate-subtitle {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 30px;
}

.certificate-buttons {
    display: flex;
    gap: 20px;
}

/* .btn {
    padding: 14px 26px;
    font-size: 1.25rem;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
} */

/* .btn-primary {
    background-color: #020c3f;
    color: white;
    border: 2px solid #020c3f;
}

.btn-primary:hover {
    background-color: #00124e;
} */

.btn-outline {
    background-color: transparent;
    color: #020c3f;
    border: 2px solid #020c3f;
}

.btn-outline:hover {
    background-color: #e2e8f0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 180px 180px 180px;
    /* ✅ Equal row height */
    grid-template-areas:
        "a b c"
        "d e e"
        "f g h";
    gap: 1rem;
}

.shape-a {
    grid-area: a;
    border-radius: 0 0 6rem 0;
}

.shape-b {
    grid-area: b;
}

.shape-c {
    grid-area: c;
    border-radius: 0 0 6rem 0;
}

.shape-d {
    grid-area: d;
    border-radius: 0 6rem 0 0;
}

.shape-e {
    grid-area: e;
    border-radius: 6rem 0;
    height: 100%;
    width: 100%;
}

.shape-f {
    grid-area: f;
    border-radius: 0 0 6rem;
}

.shape-g {
    grid-area: g;
    border-radius: 6rem 0 0 0;
}

.shape-h {
    grid-area: h;
    border-radius: 0 0 0 6rem;
}

.gallery-shape {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-shape img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Shape designs */
.circle {
    border-radius: 50%;
}

.bg-red {
    background: linear-gradient(135deg, #E67529, #FFC6A0);
}

.bg-blue {
    background-color: #0A2342;
}

@media (max-width: 768px) {

    .graphic {
        display: none;
    }

    .custom-menu {
        flex-direction: column;
    }

    .menu-link:not(:last-child)::after {
        display: none;
    }

    .tefl-grid {
        grid-template-columns: auto;
    }

    .outer-section {
        width: 100%;
    }

    .irish-partners {
        width: 100%;
        padding: 3rem 1rem;
    }

    .outer-section-partners {
        width: 100%;
    }

    .partners-subheading {
        font-size: 16px;
    }

    .partners-subheading,
    .enquiry-form-cta {
        padding: 0 20px;
    }

    .outer-section-pattern {
        flex-direction: column;
    }

    .two-columns {
        width: 100%;
        flex-direction: column;
    }

    .testimonials {
        width: 100%;
    }

    .prospectus {
        width: 100%;
    }

    .courses-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .course-icon {
        width: 50px;
        height: 50px;
    }

    .reading-corner-layout {
        padding: 0 20px;
        grid-template-columns: 1fr;
    }

    .view-all-blog {
        position: relative;
        inset: auto;
        transform: none;
    }

    .social-media-top {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .tefl-pro-series-section {
        width: 100%;
        padding: 10px 20px;
    }

    .team-grid {
        gap: 0;
    }

    .certificate-section {
        padding: 0 20px;
    }

    .enquire-section {
        padding: 20px;
    }

    .hero-title.text-center {
        font-size: 40px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-subheading p {
        font-size: 16px;
    }

    .hero-subheading h4 {
        font-size: 20px;
    }

    .section-heading,
    .section-title,
    .enquire-section h2,
    .faq-heading {
        font-size: 24px !important;
    }

    .partner-logo img {
        height: 60px;
    }

    .testimonial-card {
        flex-direction: column;
        gap: 10px;
    }

    .testimonial-review {
        font-size: 16px;
    }

    .testimonial-author {
        font-size: 18px;
    }

    .certificate-image img {
        border-radius: 24px;
    }

    .certificate-title {
        font-size: 24px;
    }

    .certificate-subtitle {
        font-size: 16px;
    }

    .certificate-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .hero-container ul, 
    .course-description ul {
        margin: 0;
    }

    .section-subtitle {
        font-size: 16px;
    }

    .section-subheading {
        font-size: 18px;
    }

    .team-section {
        padding: 3rem 1rem;
    }

    .team-name {
        font-size: 20px;
    }

    .team-role {
        font-size: 18px;
    }
}

.ribbon {
    --f: 15px;

    position: absolute;
    top: 0;
    color: #fff;
    padding: .3em 2em;
    background: var(--c, #F88277);
    border-bottom: var(--f) solid #0007;
    clip-path: polygon(100% calc(100% - var(--f)), 100% 100%, calc(100% - var(--f)) calc(100% - var(--f)),
            var(--f) calc(100% - var(--f)), 0 100%, 0 calc(100% - var(--f)),
            999px calc(100% - var(--f) - 999px), calc(100% - 999px) calc(100% - var(--f) - 999px));
    text-transform: uppercase;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ribbon.left {
    left: 0;
    transform: translate(calc((cos(45deg) - 1)*100%), -100%) rotate(-45deg);
    transform-origin: 100% 100%;
}

.ribbon-icon-img {
    height: 18px;
    width: auto;
}

@supports (-moz-appearance:none) {
    .ribbon {
        background:
            linear-gradient(to top, #0000 1px, #0005 0 var(--f), #0000 0) border-box,
            linear-gradient(var(--c, #F88277) 0 0) 50% / calc(100% - 2px) calc(100% - 2px) no-repeat border-box;
        border-bottom-color: #0000;
    }
}

.course-badge {
    display: none;
}