.about-section {
    padding: 8rem 0;
    background-color: white;
    position: relative;
}

.about-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;

    flex-grow: 1;
}

.about-section .deco{
    margin-top: 2rem;
}

.values__wrapper {
    background-color: var(--c-bkg);
    padding: 2rem 0 3rem;
}

.values {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1rem 1fr 1rem 1fr;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem 2rem;
}

.values__li{
    position: relative;
    background-color: white;
    border-radius: .5rem;
    padding: 2rem 2rem 4rem;

    overflow: hidden;

    -webkit-box-shadow: 0 0 20px 0 #e9e9e990;
    box-shadow: 0 10px 10px 5px #e9e9e990;
}

.values__li .subtitle{
    font-weight: 600;
}

.values__li .subtitle, .values__li p{
    position: relative;
    z-index: 1;
}

.values__icon{
    position: absolute;
    bottom: -3.5rem;
    right: -3rem;
    z-index: 0;

    /* width: min(275px, 75%); */
    height: 225px;
    color: var(--c-bkg);
}

.values__icon svg{
    width: auto;
    height: 100%;
}

.team {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 2px solid rgba(255, 255, 255, 0.35);
    padding-top: 1rem;
    margin-top: .5rem;
}

.team__text {
    -ms-grid-column-span: 2;
    grid-column: span 2;
}

.team + .title {
    margin-top: 4rem;
}

.team__ul {
    opacity: .35;
}

.team__li .subtitle {
    margin: 0;
}


/* Timeline section */
.timeline {
    padding: 3rem 0 0;
    position: relative;
}

.timeline .container{
    padding-bottom: 0;
}

.timeline__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
    position: relative;
    z-index: 2; /* Add z-index to ensure header stays above timeline items */
}

.timeline__grid, .client-area__grid {
    --border-size: 1px;

    position: relative;
    z-index: 1; /* Lower z-index for the timeline grid */
}

.timeline__grid{
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 7rem;
}

.client-area__grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(calc(var(--max-width) / 4), 100%), 1fr));
    gap: 1.5rem;
}

.timeline__grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;

    width: var(--border-size);
    height: 100%;

    background: var(--c-primary-100);
    transform: translateX(-50%);

    z-index: 0; /* Lowest z-index for the timeline line */
}

.timeline__item, .client-area__item, .guides__link{
    position: relative;
    
    background: white;
    border-radius: .5rem;

    box-shadow: var(--box-shadow);
}

.timeline__item{
    width: calc(50% - 50px);
    margin: 1.5rem 0;
    
    transition: all 0.5s ease;

    clear: both;
}

.timeline__item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow--hover)
}

.timeline__item::before {
    content: '';
    position: absolute;
    top: 50%;

    width: 50px;
    height: var(--border-size);
    background: var(--c-primary-400);
}

.timeline__item:nth-child(odd) {
    float: left;
}

.timeline__item:nth-child(odd)::before {
    right: -50px;
}

.timeline__item:nth-child(even) {
    float: right;
}

.timeline__item:nth-child(even)::before {
    left: -50px;
}

.timeline__item::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 20px;
    height: 20px;
    
    background: white;
    border: var(--border-size) solid var(--c-primary-400);
    border-radius: 50%;

    transition: all 0.3s ease;
    z-index: 1;
}

.timeline__item:hover::after {
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 0 0 8px rgba(var(--c-primary-rgb), 0.1);
}

.timeline__item:nth-child(odd)::after {
    right: calc(-60px - var(--border-size));
}

.timeline__item:nth-child(even)::after {
    left: calc(-60px - var(--border-size));
}

.timeline__item-header, .client-area__item-header{
    display: flex;
    justify-content: flex-start;
    align-items: center;

    box-shadow: inset 0 0 0 var(--border-size) var(--c-primary-150);
    border-radius: .5rem .5rem 0 0;

    background-color: var(--c-primary-015);
}

.timeline__icon, .client-area__icon, .guides__icon{
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-right: 1.5rem;

    color: white;
    background-color: var(--c-primary-400);
}

.timeline__icon, .client-area__icon {
    width: 6.5rem;
    height: 6.5rem;
    border-radius: .5rem 0 0 0;

    padding: 1.75rem;
}

.guides__icon{
    width: 4rem;
    height: 4rem;

    padding: .75rem;
    margin: .5rem 1.25rem .5rem .5rem;
    border-radius: .25rem;
}

.timeline__info, .client-area__info{
    margin-bottom: 0;
    width: 100%;
    padding-right: 1.5rem;
}

.subtitle.timeline__product, .title + .subtitle.timeline__product, .client-area__info .subtitle, .guides__info .subtitle{
    margin: 0;
}

.timeline__description, .client-area__description{
    padding: 2rem;
}

.client-area .button-container, .courses .button-container{
    padding: 0 2rem 2rem;
    margin: 0;
}

.guides.container{
    max-width: 900px;
}

.guides__item{
    margin: 1rem;
}

.guides__link{
    display: flex;
    align-items: center;
    transition: margin .3s ease, background-color .3s ease;
}

.guides__link:hover{
    background-color: var(--c-primary-015);
    margin: 0 -.5rem;
}

.guides__info{
    margin-right: auto;
}

.guides__title{
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--c-primary-400);
}

.guides__description{
    font-size: 1rem;
}

.guides__download{
    --download-icon-size: 1.75rem;

    width: var(--download-icon-size);
    height: var(--download-icon-size);

    flex-shrink: 0;
    color: var(--c-primary-400);
    margin: 0 1.75rem 0 1.25rem;

    opacity: .15;
    transition: opacity .3s ease;
}

.guides__link:hover .guides__download{
    opacity: 1;
}

@media screen and (max-width: 1120px){
    .client-area__item{
        max-width: 600px;
        justify-self: center;
    }
}

@media screen and (max-width: 770px), screen and (max-width: 900px) and (orientation: landscape) {
    .client-area__item .subtitle{
        font-size: 1.4rem;
    }

    .timeline__icon, .client-area__icon{
        width: 5.5rem;
        height: 5.5rem;
        padding: 1.5rem;
    }
}

@media screen and (max-width: 900px) {
    .timeline__grid::before {
        left: 30px;
    }

    .timeline__item {
        width: calc(100% - 80px);
        float: right;
        margin-left: 80px;
    }

    .timeline__item::before {
        left: -50px;
        width: 50px;
    }

    .timeline__item::after {
        left: -60px;
    }

    .timeline__item:nth-child(odd) {
        float: right;
    }

    .timeline__item:nth-child(odd)::before {
        left: -50px;
        right: auto;
    }

    .timeline__item:nth-child(odd)::after {
        left: -60px;
        right: auto;
    }

    .values {
        grid-template-columns: 1fr;
    }

    .values__li {
        margin-bottom: 1rem;
    }
}

/* Clear fix for timeline */
.timeline__grid::after {
    content: '';
    display: table;
    clear: both;
}

/* Media queries */
@media screen and (max-width: 900px) {
    .timeline__grid::before {
        left: 20px;
    }

    .timeline__item {
        width: calc(100% - 50px);
        float: right;
        margin-left: 50px;
    }

    .timeline__item::before {
        left: -30px;
        width: 30px;
    }

    .timeline__item::after {
        left: -36px;
    }

    .timeline__item:nth-child(odd) {
        float: right;
    }

    .timeline__item:nth-child(odd)::before {
        left: -30px;
        right: auto;
    }

    .timeline__item:nth-child(odd)::after {
        left: -36px;
        right: auto;
    }
}

@media screen and (max-width: 650px) {
    .team {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }

    .team__ul {
        display: none;
    }

    .team + .title {
        margin-top: 2rem;
    }
}

@media screen and ( max-width: 770px ), screen and ( max-width: 900px ) and ( orientation: landscape ) {
    .values__li .subtitle{
        font-size: 1.25rem;
    }
}

@media screen and ( max-width: 400px ), screen and ( max-width: 900px ) and ( orientation: landscape ){
    .values__li .subtitle{
        font-size: 1.25rem;
    }
}

/* Certifications Section */
.certifications-spacing {
    height: 100px;
    background-color: white;
}

.certifications-section {
    padding: 4rem 0;
    background-color: white;
    position: relative;
}

.certifications-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.certifications-section__content {
    text-align: center;
}

.certifications-section .title {
    color: #333;
    margin-bottom: 1rem;
}

.certifications-section .deco {
    margin: 2rem auto;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 3rem auto 0;
    align-items: start;
}

.certification-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.certification-item__logo {
    margin-bottom: 1.5rem;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certification-logo {
    width: 120px;
    height: auto;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.certification-item:hover .certification-logo {
    opacity: 1;
}

.certification-item__content {
    flex: 1;
}

.certification-item__title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
    word-break: keep-all;
    hyphens: none;
    white-space: nowrap;
}

.certification-item__description {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    margin: 0;
    word-break: keep-all;
    hyphens: none;
    overflow-wrap: normal;
}

.certifications-footer {
    margin-top: 3rem;
    text-align: center;
}

.certifications-footer__text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    font-style: italic;
    margin: 0;
}

/* Responsive styles for certifications */
@media screen and (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .certification-item {
        padding: 1.5rem;
    }
    
    .certification-logo {
        width: 100px;
    }
    
    .certification-item__title {
        font-size: 1.2rem;
    }
    
    .certifications-footer__text {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .certifications-section {
        padding: 3rem 0;
    }
    
    .certifications-spacing {
        height: 60px;
    }
    
    .certification-logo {
        width: 60px;
    }
    
    .certification-item__title {
        font-size: 1.1rem;
    }
    
    .certification-item__description {
        font-size: 0.9rem;
    }
}