﻿body, main {
    max-width: 100%;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cta-button {
    background-color: #003087;
    transition: background-color 0.3s;
}

    .cta-button:hover {
        background-color: #00205b;
    }

.tabs-section {
    background-color: #fff; /* Фон для видимості */
    padding: 10px 0;
    transition: top 0.3s ease; /* Плавний перехід при зміні позиції */
}

.tabs-section.fixed {
        position: fixed;
        top: 0; /* Притискається до хедера */
        left: 0;
        width: 100%;
        z-index: 1030; /* Вище за інші елементи */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Тінь для видимості */
    }

body {
    padding-top: 0; /* Ініціально без відступу */
}

body.has-fixed-tabs {
        padding-top: 70px; /* Висота вкладок + відступ, налаштуйте за потребою */
}

section,
.job_benefits_section p {
    font-family: 'Open Sans', sans-serif;
    font-size: 18px
}

.nav-tabs {
    border: none;
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Open Sans', sans-serif;
}

.tab-button {
    color: #666;
    font-weight: 500;
    font-size: 16px;
    padding: 15px 25px;
    border: none;
    background: none;
    cursor: pointer; 
    transition: color 0.3s, transform 0.3s;
}
    .nav-tabs .nav-link {
        position: relative;
        color: #666;
        text-transform: uppercase;
        font-weight: 500;
        font-size: 16px;
        padding: 15px 25px;
        border: none;
        background: none;
        transition: color 0.3s ease, transform 0.3s ease;
    }

        .nav-tabs .nav-link span {
            position: relative;
            z-index: 1;
        }

        .nav-tabs .nav-link:hover {
            color: #003087;
            transform: translateY(-2px);
        }

        .nav-tabs .nav-link.active {
            color: #003087;
            font-weight: 700;
        }

            .nav-tabs .nav-link.active::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 3px;
                background: linear-gradient(90deg, #003087, #0056d2);
                border-radius: 2px;
                animation: slideIn 0.3s ease forwards;
            }

        .nav-tabs .nav-link:hover::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: rgba(0, 48, 135, 0.2);
            border-radius: 2px;
        }

@keyframes slideIn {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .nav-tabs {
        flex-wrap: wrap;
        gap: 5px;
    }

        .nav-tabs .nav-link {
            font-size: 14px;
            padding: 10px 15px;
        }
}

.job_benefits_section.hidden {
    display: none !important;
}

.job_benefits_section h1, h2 {
    color: #003087;
}

h1, h2 {
    font-family: 'Lora', serif;
    font-size: 3rem; /* Приклад, заміньте на реальний розмір */
}


.text-block {
    background-color: #f9f9f9;
    line-height: 1.6;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    padding: 30px;
}

.service-item img {
    width: 50px;
    height: 50px;
}

.service-item h3 {
    color: #333;
}

.services-list {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
}

.service-item .card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-item .card-body {
    flex-grow: 1;
    display: flex;
    justify-content: center;
}

@media (min-width: 992px) {
    .services-list {
        flex-wrap: nowrap;
    }

    .service-item {
        flex: 0 0 calc(25% - 15px);
        max-width: calc(25% - 15px);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .services-list {
        flex-wrap: wrap;
    }

    .service-item {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }

    .services-list .service-item:nth-child(1),
    .services-list .service-item:nth-child(2) {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }

    .services-list .service-item:nth-child(3),
    .services-list .service-item:nth-child(4) {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
}

@media (max-width: 767px) {
    .services-list {
        flex-direction: column;
    }

    .service-item {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

.image-section {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

    .image-section img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }

.img-fluid {
    max-width: 600px;
    max-height: 400px;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .img-fluid {
        max-width: 450px;
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .img-fluid {
        max-width: 300px;
        max-height: 200px;
    }
}

.timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 3rem auto;
    flex-wrap: wrap;
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

    .timeline::before {
        content: '';
        position: absolute;
        top: 85px;
        left: 15px;
        right: 15px;
        width: auto;
        height: 2px;
        background-color: #e0e0e0;
        z-index: 0;
    }

.timeline-item {
    position: relative;
    flex: 0 1 auto;
    text-align: center;
    padding: 0 10px;
    z-index: 1;
    transition: transform 0.3s ease;
    cursor: pointer;
}

@media (max-width: 768px) {
    .timeline {
        flex-direction: column;
        align-items: flex-start;
        margin: 2rem auto;
        max-width: 100%;
        padding-left: 40px;
    }

        .timeline::before {
            content: none;
        }

    .timeline-item {
        display: flex;
        align-items: center;
        text-align: left;
        padding: 15px 0;
        max-width: 100%;
        width: 100%;
    }

        .timeline-item .timeline-icon {
            margin-right: 15px;
        }

            .timeline-item .timeline-icon img {
                width: 40px;
                height: 40px;
            }

        .timeline-item .timeline-count {
            position: absolute;
            left: -30px;
            top: 50%;
            transform: translateY(-50%);
            width: 30px;
            height: 30px;
            line-height: 30px;
            text-align: center;
            border-radius: 50%;
            background-color: #fff;
            border: 2px solid #e0e0e0;
            z-index: 1;
        }

        .timeline-item .timeline-title {
            font-size: 16px;
        }
}

@media (max-width: 576px) {
    .timeline {
        padding-left: 30px;
    }

    .timeline-item .timeline-icon img {
        width: 35px;
        height: 35px;
    }

    .timeline-item .timeline-count {
        left: -25px;
        width: 25px;
        height: 25px;
        line-height: 25px;
        font-size: 14px;
    }

    .timeline-item .timeline-title {
        font-size: 14px;
    }
}

.my-1 {
    margin-top: 0.25rem !important;
}

.toggle-details-btn {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 10px;
    background-color: #f0f0f0; 
    color: #333; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.3s ease, color 0.3s ease; 
    cursor: pointer;
    min-width: 100px; 
    text-align: center; 
}

    .toggle-details-btn:hover {
        background-color: #e0e0e0; 
        color: #000;
        text-decoration: none; 
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    }

.collapsed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

    .collapsed.expanded {
        max-height: none; 
        transition: max-height 0.3s ease-in;
    }

.toggle-details-btn:active {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(1px);
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 56.25%;
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

@media (min-width: 1200px) {
    .video-container {
        max-width: 1280px;
    }
}

@media (max-width: 768px) {
    .video-container {
        max-width: 450px;
    }
}

@media (max-width: 576px) {
    .video-container {
        max-width: 300px;
    }
}

.toggle-details-btn {
    font-size: 12px;
    padding: 2px 5px;
}
