body {
    font-family: "Nunito", sans-serif;
    padding-top: 70px;
    margin: 0;
    background-color: #fff;
    color: #3c4858;
}

a {
    all: unset;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

/* region Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 5000;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.6rem 1rem;
}

.header__info {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.header__erasmus {
    max-height: 56px;
}

.header__logo {
    margin: 0;
    max-width: 40px;
}

.header__title {
    font-size: 20px;
    margin: 0;
}

.header__lang {
    display: flex;
    justify-content: flex-end;
}

.header__lang-list {
    display: flex;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header__lang-link {
    position: relative;
    font-weight: 600;
    font-size: 1rem;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
}

.header__lang-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #04a1c4;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header__lang-link:hover,
.header__lang-link:focus {
    color: #04a1c4;
    outline: none;
}

.header__lang-link:hover::after,
.header__lang-link:focus::after {
    opacity: 1;
}

.header__lang-link--active {
    position: relative;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    transition: color 0.3s ease;
    font-weight: 700;
    color: #04a1c4;
}

.header__lang-link--active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background-color: #04a1c4;
    opacity: 1;
}

@media (max-width: 900px) {
    .header__title {
        font-size: 15px;
    }

    .header__lang-link {
        font-size: 12px;
    }

    .header__lang-link--active {
        font-size: 12px;
    }
}

@media (max-width: 760px) {
    .header__container {
        flex-direction: column;
        align-items: center;
        padding: 0.8rem;
        gap: 0.6rem;
    }

    .header__info {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.6rem;
        width: 100%;
    }

    .header__erasmus {
        max-height: 50px;
        height: auto;
    }

    .header__logo {
        max-width: 40px;
    }

    .header__title {
        display: none;
    }

    .header__lang {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .header__lang-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
        padding: 0;
        margin: 0;
    }

    .header__lang-link,
    .header__lang-link--active {
        font-size: 1rem;
        padding: 0.2rem 0.4rem;
        text-align: center;
    }
}

/* endregion */

/* region About styles */
.about {
    padding: 0 20px;
    text-align: center;
}

.about__title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about__description {
    max-width: 1100px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #555;
}

/* Cards */
.about__cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.about__card {
    background: #f9f9f9;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Proceed to */
.proceed-button-container {
    text-align: center;
    margin: 40px 0;
}

.proceed-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: white;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.proceed-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}


/* endregion  */

/* region Partners styles */
.partners {
    padding: 20px 20px 100px;
    background-color: #f9fafc;
}

.partners__container {
    max-width: 1200px;
    margin: 0 auto;
}

.partners__title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.partners__list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.partners__card {
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 360px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.partners__card:hover {
    transform: translateY(-4px);
}

.partners__image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
}

.partners__header {
    margin: 0 auto;
    padding: 0;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
    width: 100%;
    max-width: 100%;
}

.partners__description {
    padding: 0 12px 12px 12px;
    font-size: 1rem;
    color: #444;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 325px) {
    .partners__header {
        font-size: 20px;
    }
}

/* endregion */

/* region Video styles */
.video {
    padding: 4rem 1rem;
    background-color: #fff;
}

.video__container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Thumbnails */

.video__label {
    display: block;
    text-align: center;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #333;
    font-weight: 500;
}

.video__thumbnails {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0 auto 1rem;
    padding: 12px 20px;
    background: #eeeff1;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    width: max-content;
}

.video__thumbnail {
    appearance: none;
    background: none;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    width: 120px;
    height: 68px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.video__thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65);
    transition: filter 0.2s ease;
}

.video__thumbnail:hover {
    transform: translateY(-2px);
    filter: brightness(1);
}


.video__thumbnail--active {
    border-color: #04a1c4;
    box-shadow: 0 0 0 3px rgba(4, 161, 196, 0.15);
}

.video__thumbnail--active img {
    filter: brightness(1);
}

/* Player */
.video__player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
}

.video__element {
    display: none;
}

.video__scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Play button */
.video__play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background-color: rgba(4, 161, 196, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.video__play-button::before {
    content: "";
    display: block;
    margin-left: 5px;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 30px solid #fff;
}

.video__play-button:hover {
    background-color: rgba(2, 141, 176, 0.95);
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 719px) {
    .video {
        padding: 2rem 0.5rem;
    }

    .video__thumbnails {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 0;
        width: 100%;
        max-width: 500px;
    }

    .video__thumbnail {
        width: 90px;
        height: 50px;
    }

    .video__label {
        font-size: 0.7rem;
    }

    .video__player-wrapper {
        border-radius: 6px;
    }

    .video__play-button {
        width: 70px;
        height: 70px;
    }

    .video__play-button::before {
        border-top: 14px solid transparent;
        border-bottom: 14px solid transparent;
        border-left: 20px solid #fff;
    }
}

/* endregion */

/* region Footer styles */
.footer {
    background-color: #111;
    color: #eee;
    padding: 5px 20px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.footer__container {
    max-width: 1200px;
    margin: 0 auto;

    display: flex;
    gap: 20px;

    justify-content: space-between;
    padding: 0 10px;
}

.footer__column {
    flex: 1 1 0;
    min-width: 150px;
}

.footer__title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 12px;
}

.footer__text {
    line-height: 1.5;
    color: #bbb;
    margin: 6px 0;
}

.footer__link {
    text-decoration: underline;
}

.footer__bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    font-size: 0.85rem;
    color: #888;
}

.footer__divider {
    border: none;
    height: 0.8px;
    background-color: #8d8b8b;
}

.footer__copy {
    line-height: 1.4;
}

@media (max-width: 860px) and (min-width: 701px) {
    .footer__container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        padding: 0;
        text-align: center;
    }

    .footer__column {
        flex: 1 1 calc(33.33% - 20px);
        min-width: 180px;
        max-width: 300px;
    }

    .footer__column:nth-child(4),
    .footer__column:nth-child(5) {
        flex: 1 1 calc(50% - 20px);
    }

    .footer__title {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .footer__text {
        font-size: 14px;
        line-height: 1.5;
    }

    .footer__link {
        word-break: break-word;
    }
}


@media (max-width: 700px) {
    .footer__container {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        padding: 0;
        text-align: center;
    }

    .footer__column {
        width: 100%;
        max-width: 400px;
    }

    .footer__title {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .footer__text {
        font-size: 15px;
        line-height: 1.6;
    }

    .footer__link {
        display: inline-block;
        word-break: break-word;
    }
}


/* endregion */

