﻿.about-body,
.about-body * {
    box-sizing: border-box;
}

.about-body {
    background: #ffffff;
    height: auto;
    position: relative;
    overflow: visible;
    font-family: 'Roboto', sans-serif;
}

#main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 70px;
}

.left-section {
    left: -89px !important;
}

.history-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto 0;
    margin-top: 15px;
    padding: 20px;
    background-color: #f5f5f5;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.history-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.history-title {
    color: #000000;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

.company-info {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.company-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
    color: #333333;
    text-align: justify;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .company-text p {
        margin-bottom: 15px;
    }

.company-image img {
    width: 570px;
    height: 484px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .gallery-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .gallery-item p {
        font-size: 14px;
        font-weight: 500;
        margin-bottom: 0;
    }

.services {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
}

.service-item {
    width: 450px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    background-color: #ffffff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 50px;
    height: 50px;
    background-color: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-border {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    color: white;
    font-size: 24px;
}

.service-text h3 {
    width: 355px;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
    color: #333333;
    margin: 5px 0 0;
}

.service-text p {
    width: 355px;
    text-align: left;
    font-size: 14px;
    color: #666666;
    margin: 0;
}

.hamburger-dropdown .dropdown-item,
.account-dropdown a,
.language-dropdown .dropdown-item.language-item {
    color: #000000;
    font-weight: 500;
    text-transform: uppercase;
}

.gallery-prev,
.gallery-next {
    display: none;
}

@media (max-width: 768px) {
    #main-content {
        padding-top: 0 !important;
        gap: 0;
    }

    .left-section {
        position: static;
        width: 100%;
        padding: 20px;
    }

    .history-title {
        margin-top: 10px;
    }

    .history-section {
        padding: 0;
        margin-top: 0;
    }

    .history-content {
        max-width: 350px;
        margin: auto;
        align-items: center;
        gap: 10px;
    }

    .company-info {
        flex-direction: column;
        gap: 20px;
        background-color: #ffffff;
        padding: 10px;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        align-items: center;
        max-width: 330px;
    }

    .company-text {
        background-color: transparent;
        padding: 0;
        box-shadow: none;
        font-size: 14px;
    }

    .company-image img {
        width: 100%;
        height: auto;
        margin-top: -15px;
    }

    .gallery {
        position: relative;
        display: flex;
        overflow: hidden;
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .gallery-item {
        display: none;
        width: 330px;
    }

        .gallery-item.active {
            display: flex;
        }

    .gallery-prev,
    .gallery-next {
        display: block;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.5);
        color: #ffffff;
        border: none;
        cursor: pointer;
        padding: 10px;
        z-index: 10;
    }

    .gallery-prev {
        left: 0;
    }

    .gallery-next {
        right: 0;
    }

    .services {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        max-width: 330px;
        margin-bottom: 10px;
    }

    .service-item {
        width: 100%;
        gap: 10px;
    }

    .service-icon {
        width: 30px;
        height: 30px;
    }

    .icon-border {
        width: 30px;
        height: 30px;
    }

    .service-icon i {
        font-size: 12px;
    }

    .service-text h3 {
        font-size: 16px;
        width: auto;
    }

    .service-text p {
        font-size: 11px;
        width: auto;
    }
}
