/* Generic Template 6 Styles */

/* Override global section padding from core/sections.css */
.content-section .section {
    padding: 20px 0;
}

.content-section .section:first-of-type,
.content-section .section:last-of-type {
    padding: 0;
}

/* ========================================
   PAGE HERO SECTION
   ======================================== */

.page-hero-section {
    padding: 120px 0 80px;
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    min-height: 60vh;
    display: flex;
    align-items: center;
    border-radius: 30px;
}

.section:first-of-type,
.section:last-of-type {
    padding: 0 0;
}

.page-hero-overlay {
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    border-radius: 30px;
}

.page-hero-content {
    padding: 65px 50px;
    max-width: 650px;
    align-self: end;
}

.page-hero-text {
    max-width: 800px;
}

.page-breadcrumb {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 10px 0;
    font-weight: 300;
}

.page-hero-heading {
    margin-bottom: 20px;
}

.page-hero-heading .styled-text-line {
    display: block;
    line-height: 1.2;
    font-weight: 300;
}

/* ========================================
   SECTION 1: INTRO/OVERVIEW
   Stacked: title, description, CTA
   ======================================== */

.t6-intro-section {
    padding: 20px 0;
}

.t6-intro-title {
    font-size: 48px;
    font-weight: 300;
    color: var(--global-colour-black);
    margin: 0 0 24px 0;
    line-height: 1.2;
}

.t6-intro-description {
    font-size: 18px;
    line-height: 1.6;
    color: var(--global-colour-grey);
    font-weight: 300;
    overflow-wrap: break-word;
    word-break: break-word;
}

.t6-intro-description p {
    margin-bottom: 16px;
}

.t6-intro-description p:last-child {
    margin-bottom: 0;
}

.t6-intro-description strong,
.t6-intro-description b {
    color: var(--global-colour-black);
    font-weight: 300;
}

.t6-intro-button {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.t6-intro-button .cta-one {
    width: max-content;
}

/* ========================================
   SECTION 2: ALTERNATING FEATURE ROWS
   Each item renders as image + content side by side
   ======================================== */

.t6-blocks-section {
    padding: 0 0 20px;
}

.t6-blocks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.t6-blocks-grid:last-child {
    margin-bottom: 0;
}

/* Even rows: swap image and content sides */
.t6-blocks-grid--reversed .t6-block--image {
    order: 2;
}

.t6-blocks-grid--reversed .t6-block--content {
    order: 1;
}

.t6-block {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

/* Image panels */
.t6-block--image {
    background-color: #333;
}

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

.t6-block--image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t6-block--image iframe {
    width: 100%;
    height: 100%;
}

/* Content panels */
.t6-block--content {
    background: var(--global-colour-grey);
    color: #fff;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.t6-block-heading {
    font-size: 32px;
    font-weight: 300;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.t6-block-description {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.6;
    overflow-wrap: break-word;
    word-break: break-word;
}

.t6-block-description p {
    margin-bottom: 12px;
}

.t6-block-description p:last-child {
    margin-bottom: 0;
}

.t6-block-button .cta-one {
    margin-top: 20px;
    width: max-content;
}

/* ========================================
   SECTION 3: FULL-WIDTH BANNER
   Background image with overlay, centered text + CTA
   ======================================== */

.t6-banner-section {
    padding: 120px 0;
    background-color: #333;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
    min-height: 400px;
    display: flex;
    align-items: center;
    border-radius: 30px;
}

.t6-banner-overlay {
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 30px;
}

.t6-banner-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    padding: 50px;
}

.t6-banner-subtitle {
    font-size: 18px;
    margin-bottom: 16px;
    opacity: 0.9;
    font-weight: 300;
}

.t6-banner-heading {
    margin-bottom: 24px;
}

.t6-banner-heading .styled-text-line {
    display: block;
    line-height: 1.2;
    font-weight: 300;
}

.t6-banner-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.9;
    font-weight: 300;
}

.t6-banner-button .cta-one {
    margin: 0 auto;
    width: max-content;
}

/* ========================================
   SECTION 6: CARD GRID
   Image cards with title and CTA button
   ======================================== */

.t6-cards-section {
    padding: 20px 0;
}

.t6-carousel {
    position: relative;
    overflow: hidden;
    padding-bottom: 50px;
}

.t6-carousel .swiper-button-prev,
.t6-carousel .swiper-button-next {
    color: var(--global-colour-green);
}

.t6-carousel .swiper-pagination-bullet-active {
    background: var(--global-colour-green);
}

.t6-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.t6-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.t6-card iframe {
    width: 100%;
    height: 100%;
}

.t6-card-overlay {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.t6-card-title {
    font-size: 20px;
    font-weight: 300;
    margin: 0 0 12px 0;
    line-height: 1.3;
    text-align: center;
}

.t6-card-button .cta-one {
    width: max-content;
}

/* ========================================
   RESPONSIVE - TABLET
   ======================================== */

@media (max-width: 1024px) {
    .t6-intro-title {
        font-size: 36px;
    }

    .t6-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   RESPONSIVE - MOBILE
   ======================================== */

@media (max-width: 768px) {
    .page-hero-section {
        padding: 80px 0 60px;
        min-height: 50vh;
    }

    .page-hero-content {
        padding: 40px 20px;
    }

    .page-hero-heading .styled-text-line {
        font-size: 28px !important;
    }

    .t6-intro-section {
        padding: 60px 0;
    }

    .t6-intro-title {
        font-size: 28px;
    }

    .t6-blocks-section {
        padding: 0 0 20px;
    }

    .t6-blocks-grid {
        grid-template-columns: 1fr;
    }

    .t6-block {
        height: 300px;
        aspect-ratio: auto;
        box-sizing: border-box;
    }

    .t6-block--image img,
    .t6-block--image video {
        height: 100%;
    }

    .t6-block--content {
        padding: 24px;
    }

    .t6-block-heading {
        font-size: 24px;
    }

    .t6-banner-section {
        padding: 80px 0;
        min-height: 300px;
    }

    .t6-banner-heading .styled-text-line {
        font-size: 28px !important;
    }

    .t6-cards-section {
        padding: 60px 0;
    }

    .t6-cards-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .page-hero-content {
        padding: 30px 15px;
    }

    .t6-intro-title {
        font-size: 24px;
    }

}
