/**
 * New About Us Page Styles (about-new.css)
 *
 * Styles for the new "Over Ons" page design (template t-about-new.php) - CORRECTED
 */

/* --- Variables are inherited from home-new.css, enqueued via functions.php --- */

/* --- Shared Header & Container Styles --- */

body.page-template-t-about-new .site-header {
    background-color: var(--color-dark-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
}
body.page-template-t-about-new .top-header {
    display: flex;
}
body.page-template-t-about-new .site-header.is-scrolled .top-header {
    display: none;
}
body.page-template-t-about-new .top-header-inner, body.page-template-t-about-new .nav-header-inner {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.563rem;
    max-width: 94.063rem;
}
/*
 * ADDED: Core container styles were missing.
 * This rule sets the maximum width and centers the main content container.
 */

.thingsdata-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1.563rem;
    max-width: 94.063rem;
}
/* --- Hero Section --- */

body.page-template-t-about-new .about-hero {
    position: relative;
    background-size: cover;
    background-position: center;
    padding-top: 2.5rem;
    padding-bottom: 5rem;
    color: var(--color-white);
    height: 31.25rem;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
}
.title-container {
    clear: both;
    float: left;
    width: 100%;
    z-index: 1;
    display: block;
}
body.page-template-t-about-new .about-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 34, 66, 0.6);
    z-index: 1;
}
body.page-template-t-about-new .about-hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    justify-content: space-between;
    width: 100%;
}
body.page-template-t-about-new .about-hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin: 0;
}
/* Breadcrumbs styling */

body.page-template-t-about-new .about-hero__breadcrumbs {
    border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.5);
    padding-bottom: 2rem;
    width: 100%;
}
body.page-template-t-about-new .about-hero__breadcrumbs #breadcrumbs {
    margin: 0;
    padding: 0;
}
body.page-template-t-about-new .about-hero__breadcrumbs #breadcrumbs, body.page-template-t-about-new .about-hero__breadcrumbs #breadcrumbs a, body.page-template-t-about-new .about-hero__breadcrumbs #breadcrumbs span {
    color: var(--color-white);
    font-size: 1.0625rem;
    font-weight: 400;
}
body.page-template-t-about-new .about-hero__breadcrumbs #breadcrumbs .breadcrumb_last {
    font-weight: 700;
    position: relative;
}
body.page-template-t-about-new .about-hero__breadcrumbs #breadcrumbs .breadcrumb_last:before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-white);
    bottom: -2.188rem;
    /* position under the text, adjusted for padding */
}
/* --- Intro Sections --- */

body.page-template-t-about-new .about-intro {
    padding: 7.5rem 0;
}
body.page-template-t-about-new .about-intro .thingsdata-container {
    display: flex;
    gap: 3rem;
    align-items: center;
}
body.page-template-t-about-new .about-intro--1 {
    background-color: #001C38;
}
body.page-template-t-about-new .about-intro--2 {
    background-color: #001C38;
    padding-top: 2.5rem;
}
body.page-template-t-about-new .about-intro__image {
    flex: 0 0 48%;
}
body.page-template-t-about-new .about-intro__image img {
    border-radius: 0.625rem;
    width: 100%;
    height: auto;
    display: block;
}
body.page-template-t-about-new .about-intro__content {
    flex: 1;
}
body.page-template-t-about-new .about-intro .section-title {
    text-align: left;
    font-size: 2rem;
    margin-bottom: 1rem;
    padding: 0;
}
body.page-template-t-about-new .about-intro--1 .section-title, body.page-template-t-about-new .about-intro--1 .text-content {
    color: var(--color-white);
}
body.page-template-t-about-new .about-intro--2 .section-title, body.page-template-t-about-new .about-intro--2 .text-content {
    color: var(--color-white);
}
body.page-template-t-about-new .about-intro .text-content {
    font-size: 1.125rem;
    line-height: 1.5;
}
body.page-template-t-about-new .text-content p {
    margin: 1.5rem 0;
}
body.page-template-t-about-new .about-intro .text-content p:last-child {
    margin-bottom: 0;
}
body.page-template-t-about-new .about-intro .text-content a {
    color: var(--color-primary);
    text-decoration: underline;
}
body.page-template-t-about-new .about-intro .text-content a:hover {
    color: #ca4e0a;
}
body.page-template-t-about-new .about-intro--2 .thingsdata-container {}
/* --- USP Section --- */

body.page-template-t-about-new .about-usps {
    background-color: #001C38;
    padding: 7.5rem 0;
    position: relative;
    text-align: center;
}
/* More specific rule for adjusting padding */

body.page-template-t-about-new .about-intro--1+.about-usps {
    padding-top: 0;
}
body.page-template-t-about-new .about-usps .section-title {
    color: var(--color-primary);
    margin-bottom: 1rem;
}
body.page-template-t-about-new .about-usps .section-subtitle {
    color: var(--color-white);
    max-width: 42rem;
    margin: 0 auto 3rem auto;
    font-size: 1.125rem;
    font-weight: 700;
}
body.page-template-t-about-new .about-usps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}
body.page-template-t-about-new .about-usps .usp-card {
    background-color: #022242;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.625rem;
    padding: 1.5rem;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
    overflow: hidden;
    /* Ensures overlay and content stay within rounded corners */
}
body.page-template-t-about-new .about-usps .usp-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 34, 66, 0.7);
    /* Overlay for readability */
    z-index: 1;
}
/* Ensure card content appears above the overlay */

body.page-template-t-about-new .about-usps .usp-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}
body.page-template-t-about-new .about-usps .usp-card__icon {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 0.375rem;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}
body.page-template-t-about-new .about-usps .usp-card__icon img {
    max-width: 1.5rem;
    height: auto;
}
body.page-template-t-about-new .about-usps .usp-card__text h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
body.page-template-t-about-new .about-usps .usp-card__text p {
    color: var(--color-white);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}
body.page-template-t-about-new .usps-background-shape {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
    line-height: 0;
}
/* --- Team Section --- */

body.page-template-t-about-new .about-team {
    padding: 7.5rem 0;
    padding-top: 0;
    background-color: var(--color-light-blue);
}
body.page-template-t-about-new .about-team .section-title {
    color: var(--color-dark-blue);
    text-align: center;
    margin-bottom: 2rem;
}
body.page-template-t-about-new .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    justify-content: center;
    gap: 3.25rem;
}
body.page-template-t-about-new .thingsdata-team {
    text-align: center;
}
body.page-template-t-about-new .team-member-card {
    text-align: center;
}
body.page-template-t-about-new .team-member-card__image-wrapper {
    width: 14rem;
    height: 14rem;
    border-radius: 50%;
    border: 0.215rem solid var(--color-white);
    overflow: hidden;
    margin: 0 auto 1rem auto;
}
body.page-template-t-about-new .team-member-card__image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.page-template-t-about-new .team-member-card__info h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
}
body.page-template-t-about-new .team-member-card__info p {
    color: var(--color-dark-blue);
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}
/* --- Newsletter Section --- */

body.page-template-t-about-new .about-newsletter {
    background-color: var(--color-dark-blue);
}
/* --- Media Queries --- */

@media (max-width: 1023px) {
    body.page-template-t-about-new .about-intro .thingsdata-container, body.page-template-t-about-new .about-intro--2 .thingsdata-container {
        flex-direction: column;
    }
    body.page-template-t-about-new .about-usps__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    body.page-template-t-about-new .about-hero__breadcrumbs {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
    body.page-template-t-about-new .about-hero__breadcrumbs #breadcrumbs .breadcrumb_last:before {
        display: none;
    }
    body.page-template-t-about-new .top-header {
        display: none;
    }
}
@media (max-width: 768px) {
    body.page-template-t-about-new .about-hero {
        padding-top: 2rem;
        padding-bottom: 4rem;
        height: unset;
    }
    body.page-template-t-about-new .about-hero h1 {
        font-size: 2.5rem;
    }
    body.page-template-t-about-new .about-hero h1 br {
        display: none;
    }
    body.page-template-t-about-new .about-intro, body.page-template-t-about-new .about-usps, body.page-template-t-about-new .about-team {
        padding: 3.5rem 0;
    }
    body.page-template-t-about-new .about-usps__grid {
        grid-template-columns: 1fr;
    }
    body.page-template-t-about-new .about-usps {
        padding-bottom: 5rem;
    }
    body.page-template-t-about-new .about-intro--1+.about-usps, body.page-template-t-about-new .about-team {
        padding-top: 0;
    }
}
@media (min-width: 1280px) {
    .title-container {

    }
    .title-container .inner {
        display: flex;
        align-items: center;
    }
    section+.timeline-section {
        padding-bottom: 7.5rem !important;
    }
}
@media (min-width: 1440px) {
    /* This rule assumes the team shortcode generates items with a 'team-member' class */
    body.page-template-t-about-new .team-member:nth-child(4)~.team-member {
        margin-top: 2.5rem;
    }
}
@media (min-width: 1600px) {
    body.page-template-t-about-new .about-intro--2 {
        padding-top: 0;
    }
    body.page-template-t-about-new .about-usps {
        padding-bottom: 12.5rem;
    }
}
/* --- Timeline Section (Figma Exact Style - FINAL) --- */

.timeline-section {
    background: #EDF1F3;
    overflow: hidden;
}
section+.timeline-section {

}
.timeline-section__title {
    color: #022242;
    text-align: center;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 auto 3rem;
}
/* Wrapper and Grid container */

.timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
    row-gap: 0;
    /* Vertical gap is handled by padding now */
}
/* The central vertical line */

.timeline__line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #FFFFFF;
    transform: translateX(-50%);
    z-index: 1;
}
/* A single timeline event item */

.timeline__item {
    position: relative;
}
/* The horizontal connector line */

.timeline__item::after {
    content: '';
    position: absolute;
    height: 2px;
    width: 41px;
    /* Half of the column-gap + 1px overlap */
    background-color: #FFFFFF;
    z-index: 2;
}
/* --- Left Side Items --- */

.timeline__item--left {
    grid-column: 1;
    text-align: right;
}
.timeline__item--left::after {
    right: -41px;
    top: 2.25rem;
    /* ADJUSTED: Perfect vertical center of the 3rem header */
    /* Vertically aligns with the year text */
}
/* --- Right Side Items --- */

.timeline__item--right {
    grid-column: 2;
    text-align: left;
}
.timeline__item--right::after {
    left: -41px;
    top: calc(12rem + 2.25rem);
    /* ADJUSTED: Uses rem-based center */
    /* Vertically aligns with the year text AFTER padding is added */
}
/* Content block styles */

.timeline__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* * FIX: ROBUST ZIG-ZAG LAYOUT
 * This is the new, stable method. We add padding to the top of right-side 
 * items and the bottom of left-side items. This creates the vertical offset 
 * without brittle margins, ensuring the pattern continues forever.
*/

.timeline__item--left .timeline__content {
    padding-bottom: 12rem;
}
.timeline__item--right .timeline__content {
    padding-top: 12rem;
}
/* We remove the padding from the very last item to prevent extra space at the bottom */

.timeline__item:last-child .timeline__content {
    padding-bottom: 0;
}
.timeline__header {
    display: flex;
    align-items: center;
    gap: 16px;
}
.timeline__item--left .timeline__header {
    justify-content: flex-end;
}
.timeline__item--right .timeline__header {
    justify-content: flex-end;
    flex-direction: row-reverse;
}
.timeline__year {
    color: #EA5B0C;
    font-size: 3rem;
    /* ADJUSTED: Converted to rem for robust alignment */
    font-weight: 700;
}
/* * FIX: CORRECT ICON STYLING
 * Added the border-radius from the Figma design.
*/

.timeline__icon {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    /* This was the missing style */
}
.timeline__title {
    color: #022242;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}
.timeline__description {
    color: #022242;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    margin: 0;
}
body:not(.home) p.timeline__description {
    margin: 0;
}
.timeline__icon__container {
    border-radius: 0.375rem;
    border: 2px solid var(--White, #FFF);
    display: flex;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}
/* --- Responsive Design --- */

@media (max-width: 992px) {
    .timeline {
        grid-template-columns: 1fr;
        padding-left: 60px;
        max-width: 600px;
    }
    .timeline__line {
        left: 30px;
    }
    .timeline__item--left, .timeline__item--right {
        grid-column: 1;
        text-align: left;
    }
    .timeline__item--left .timeline__header, .timeline__item--right .timeline__header {
        flex-direction: row-reverse;
    }
    /* Reset the padding offset for the single-column layout */
    .timeline__item--left .timeline__content, .timeline__item--right .timeline__content {
        padding-top: 0;
        padding-bottom: 50px;
        /* Consistent spacing between all items on mobile */
    }
    .timeline__item--left::after, .timeline__item--right::after {
        left: -31px;
        right: auto;
        width: 30px;
        top: 31px !important;
        /* Consistent position on mobile */
    }
}
@media (max-width: 576px) {
    .timeline-section__title {
        font-size: 32px;
    }
    .timeline {
        padding-left: 40px;
    }
    .timeline__line {
        left: 20px;
    }
    .timeline__item--left::after, .timeline__item--right::after {
        left: -21px;
        width: 20px;
    }
    .timeline__year {
        font-size: 40px;
    }
    .timeline__title {
        font-size: 20px;
    }
    .timeline__description {
        font-size: 16px;
    }
}