/* --- CATALOGUE SECTION --- */

.catalogue-controls {
    width: 100%;
    margin-bottom: 40px;
}

.catalogue-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 20px;
    box-sizing: border-box;
}


/* --- TITLES --- */

.small-title-section {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    justify-content: center;
}

.section-pretitle {
    color: var(--text-gray);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    column-gap: 15px;
margin: 0;
}

.orange-line {
    width: 40px;
    height: 3px;
    background: var(--primary-yellow);
}

.catalogue-title {
    font-family: var(--font-secondary);
    color: var(--text-white);
    font-size: 42px;
    margin-bottom: 9px;
    margin-top: 0px;
    text-align: center;
    width: 100%;
}

.catalogue-lead {
    color: var(--text-gray);
    font-family: var(--font-primary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 64px;
    line-height: 1.6;
}

/* --- CONTROLS --- */
/* catalogue-controls styles moved to assets/css/components/catalogue-controls.css */
.catalogue-search {
    flex: 4;
    width: 100%;
}

.catalogue-search .input-group {
    background: #fff;
    display: flex;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.catalogue-search input {
    width: 100%;
    padding: 18px 10px;
    border: none;
    font-family: var(--font-primary);
    outline: none;
}

.sort-dropdown {
    flex: 1;
    min-width: 200px;
}

.sort-dropdown button {
    width: 100%;
    height: 100%;
    padding: 0 20px;
    background: #fff;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
}

.catalogue-tabs {
    display: flex;
    list-style: none;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.catalogue-tabs li {
    flex: 1;
}

.catalogue-tabs button {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    color: var(--text-white);
    cursor: pointer;
    font-size: 14px;
}

.catalogue-tabs li.active button {
    background: var(--primary-green);
    color: var(--bg-color);
    font-weight: 700;
}

/* --- CARDS --- */
.training-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 30px;
}


.training-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: start;
}

.training-cards>* {
    flex: 0 1 560px;
    max-width: 100%;
}

/* Ensure grid children are consistent */
.training-cards>.training-card,
.training-cards>article.training-card {
    width: 100%;
    box-sizing: border-box;
}


/* --- OTHER TRAININGS SECTION --- */
.other-trainings {
    padding: 80px 0 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.other-trainings-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

.other-trainings h3 {
    color: var(--text-white);
    font-size: 32px;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-primary);
    font-weight: 700;
    text-align: start;
    width: 100%;
}

.other-trainings .training-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-top: 24px;
}

.cta-text {
    text-align: center;
    font-family: var(--font-primary);
    font-size: 16px;
    
}

/* Contextual override: smaller titles in the Other trainings section */
.other-trainings .training-card h4 {
    font-size: 18px;
    margin-bottom: 15px;
}

/* --- CERTIFICATIONS --- */
.certifications-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 80px 0;
    text-align: center;
}

.certifications-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.cert-title {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-secondary);
    color: #0d426a;
    width: 570px;
    font-size: 42px;
    margin: 0 auto 50px;
}

.cert-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 128px;
    max-width: 1240px;
    margin: 0 auto;
}

.cert-grid img {
    max-height: 101px;
}

.cta-banner-inner p {
    max-width: 806px;
}


/* --- RESPONSIVE --- */
@media (max-width: 1200px) {

    .hero-inner,
    .catalogue-inner,
    .other-trainings-inner,
    .cta-banner-inner,
    .certifications-inner {
        padding: 0 60px;
    }

}

@media (max-width: 1024px) {

    .hero-inner,
    .catalogue-inner,
    .other-trainings-inner,
    .cta-banner-inner,
    .certifications-inner {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 48px;
    }

    .catalogue-title {
        font-size: 36px;
    }

    .cta-title {
        font-size: 40px;
    }

    .cert-title {
        font-size: 36px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .trainings-page{
        padding: 40px 24px;
    }                            
    .hero-inner,
    .catalogue-inner,
    .other-trainings-inner,
    .cta-banner-inner,
    .certifications-inner {
        padding: 0 24px;
    }

    .hero-title {
        font-size: 36px;
    }

    .catalogue-title {
        font-size: 22px;
    }

    .other-trainings h3 {
        font-size: 28px;
    }

    .cta-title {
        font-size: 32px;
    }

    .cert-title {
        font-size: 32px;
    }

    /* catalogue-controls moved to component CSS */


    .training-cards,
    .other-trainings .training-cards {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        gap: 40px;
    }

    .cert-grid img {
        max-height: 80px;
    }

.small-title-section {
    flex-direction: column-reverse;
}

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

@media (max-width: 480px) {
     .trainings-page{
        padding: 40px 24px;

    }
    .hero-inner,
    .catalogue-inner,
    .other-trainings-inner,
    .cta-banner-inner,
    .certifications-inner {
        padding: 0 16px;
        gap: 0px;
    }

    .hero-title {
        font-size: 32px;
    }

    .other-trainings h3 {
        font-size: 24px;
    }

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

    .cert-title {
        font-size: 28px;
    }

    .cert-grid {
        gap: 30px;
    }

    .cert-grid img {
        max-height: 60px;
    }

    .small-title-section {
    flex-direction: column-reverse;
    }

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

}