﻿body {
    background-color: #fff;
}
a {
    text-decoration: none;
}

.mb-40 {
    margin-bottom: 40px;
}

.banner {
    position: relative;
}

.arrow-down {
    position: absolute;
    bottom: 20px; /* فاصله از پایین تصویر */
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px; /* سایز فلش */
    color: white; /* رنگ فلش */
    animation: bounce 1.5s infinite;
}

/* انیمیشن تکان خوردن */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.btn {
    padding: 8px;
    font-size: 16px;
    font-weight: 200;
    border: solid 1px var(--secondary-50);
    border-radius: 0;
    color: var(--secondary-50);
}

    .btn:hover, .btn:focus {
        background-color: var(--secondary-50);
        color: var(--secondary-700);
    }

.btn-main {
    color: var(--secondary-50);
    background-color: var(--secondary-500);
}

    .btn-main:hover, .btn-main:focus {
        color: var(--secondary-50);
        background-color: var(--secondary-700);
    }

.btn-outline-main {
    color: var(--secondary-500);
    border-color: var(--secondary-500);
}

    .btn-outline-main:hover, .btn-outline-main:focus {
        color: var(--secondary-50);
        background-color: var(--secondary-500);
    }

.content {
    margin-bottom: 40px;
}

    .content .heading {
        color: var(--primary-500);
        font-size: 24px;
        font-weight: 600;
        margin-bottom: 0;
    }

    .content .sub-heading {
        color: var(--primary-500);
        font-size: 24px;
        font-weight: 300;
        margin-bottom: 0;
    }

    .content .text {
        color: var(--neutral-700);
        font-size: 20px;
        font-weight: 200;
        margin-bottom: 16px;
        margin-top: 8px;
    }

.about-us {
    margin-top: 24px;
}

    .about-us .content .text {
        margin-bottom: 12px;
        margin-top: 12px;
    }

    .about-us .content, .services .content {
        text-align: center;
    }

.product-group .first-row {
    max-height: 416px;
    object-fit: cover;
}

.product-group .second-row {
    max-height: 600px;
    object-fit: cover;
}

.product-group .overlay-content {
    position: absolute;
    bottom: 0px; /* فاصله از پایین تصویر */
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between; /* عنوان سمت راست، دکمه سمت چپ */
    align-items: center;
    background: #0000001A;
    padding: 14px 16px;
}

    .product-group .overlay-content h3 {
        font-size: 20px;
    }

.projects .row:not(:last-child) {
    margin-bottom: 40px;
}
.projects a {
    text-decoration: none;
}

.projects .row:nth-child(even) {
    flex-direction: row-reverse;
}

.history .main-image img {
    max-height: 600px;
    object-fit: cover;
}

.history .content-body .text {
    margin-top: 40px;
    margin-bottom: 40px;
    line-height: 1.5;
    text-align: center;
}

.history .row div {
    margin-top: 20px;
}

footer {
    background-color: var(--primary-500);
}

    footer .container-fluid {
        padding-right: 108px;
        padding-left: 108px;
        padding-top: 48px;
        padding-bottom: 24px;
    }

    footer .btn {
        border-color: none;
        border:none;
    }
    footer span {
        margin-left:8px;
    }
    footer .social svg {
        margin-right: 8px;
    }
footer {
    color: var(--secondary-200);
}
footer a{
    color: var(--secondary-200);
    text-decoration:none;
}
.page {
    margin-top: 142px;
}
@media (max-width: 991.98px) {
    .btn {
        font-size: 10px;
    }

    .about-us .content .text {
        font-size: 14px;
    }

    .history .content .text {
        font-size: 14px;
    }

    .content .text {
        font-size: 16px;
    }

    .about-us {
        margin-top: 16px;
    }

        .about-us .btn {
            font-size: 14px;
        }
}

@media (max-width: 767.98px) {
    .product-group .overlay-content h3 {
        font-size: 12px;
    }

    .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .product-group .overlay-content {
        padding: 10px 8px;
    }

    .services img {
        margin-bottom: 24px;
    }

    .projects .row:not(:last-child) {
        margin-bottom: 24px;
    }

    .content .sub-heading {
        font-size: 18px;
    }

    .order-m-0 {
        order: 0;
    }

    .order-m-1 {
        order: 1;
    }

    .projects .content .sub-heading {
        margin-top: 8px;
    }

    .projects .content .row .text {
        margin-top: 8px;
        margin-bottom: 0;
    }

    .projects .btn, .history .btn {
        font-size: 16px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .history .content-body .text {
        margin-top: 16px;
        margin-bottom: 16px;
        text-align: center;
    }

    .history .row div {
        margin-top: 16px;
    }
    footer .container-fluid {
        padding-right: 24px;
        padding-left: 24px;
        padding-top: 40px;
        padding-bottom: 40px;
    }
    footer .btn-main{
        padding:4px;
    }
    footer .social {
        display: flex;
    }
        footer .social div {
            width: 100%;
            margin-bottom: 0 !important;
            margin-right: 4px;
            margin-left: 4px;
        }
        footer .social div a {
            width: 100%;
            display:flex;
        } 
        footer .social svg {
            margin-right: 2px;
        }
    .page {
        margin-top: 114px;
    }
}
