﻿/***** HERO *****/

.about-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
}

.about-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.about-hero__inner {
    position: relative;
    z-index: 1;
    padding-block: var(--space-section);
}

    .about-hero__inner p {
        margin-top: var(--space-section-small);
    }

/***** COMAPNY & INTERNSHIP *****/

.space {
    padding-block: 24px;
}

.info {
    display: flex;
    gap: var(--space-section);
    align-items: flex-start;
}

    .info .info-company {
    }

.info__media {
    flex: 1;
}

    .info__media img {
        aspect-ratio: 3 / 2;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); 
        border-radius: 8px;
    }

.info__text {
    flex: 1;
}

    .info__text h2 {
        margin-bottom: var(--space-heading-body);
    }

.info__btn {
    display: block;
    width: fit-content;
    margin-left: auto;
}

/***** OFFER / TECH *****/

.offer-tech {
    display: flex;
    gap: 12px;
    margin-block: 32px;
    justify-content: space-around;
}

.offer-tech__col {
    flex: 0 1 auto;
}

    .offer-tech__col h3 {
        margin-bottom: var(--space-heading-body);
    }

    .offer-tech__col ul {
        margin: 0;
        padding-left: 20px;
    }

    .offer-tech__col li {
        margin-bottom: 8px;
    }

/* cta banner */
.cta-banner {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

/*    .cta-banner::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: rgba(0, 0, 0, 0.2);
    }*/

.cta-banner__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.cta-banner__inner {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin-inline: auto;
}

.cta-banner h2 {
    margin-bottom: 32px;
}

/***** Stories *****/

.stories {
    padding-bottom: var(--space-section);
    padding-top: 0;
}

    .stories h2 {
        margin-bottom: var(--space-heading-body);
    }

.stories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.story-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--grey-dark);
    background: var(--grey-light);
    border-radius: 8px;
    overflow: hidden;
}

.story-card__img {
    width: 100%;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}

.story-card__title {
    padding: 16px 16px 0;
}

.story-card__source {
    padding: 4px 16px 16px;
    font-size: 14px;
    opacity: 0.85;
    color: var(--grey-dark);
}

.story-card:hover .story-card__title {
    text-decoration: underline;
    color: var(--grey-dark);
}

/* Table/phone */
@media (max-width: 1100px) {
    .info {
        flex-direction: column;
        gap: 0;
    }

    .info__text {
        display: contents;
    }

    .info__media {
        order: 2;
    }

    .info__media img {
        aspect-ratio: 5/3;
    }

    .info__text h2 {
        order: 1;
    }

    .info__text > p {
        order: 1;
    }

    .offer-tech {
        order: 3;
    }

    .info__btn {
        order: 4;
    }

    .space {
        padding-block: 0;
    }

    .offer-tech {
        flex-direction: column;
    }

    .cta-banner {
        min-height: 240px;
    }

    .cta-banner__bg {
        transform: scale(1.3);
    }

    .cta-banner__inner {
        width: 100%;
        max-width: 100%;
    }

    .cta-banner h2 {
        margin-bottom: 16px;
    }

    .story-card__img {
        aspect-ratio: 5/3;
    }
}

/* phone */
@media (max-width: 767px) {
    .stories {
        padding-top: 12px;
    }

    .stories__grid {
        grid-template-columns: 1fr;
    }
}