﻿@font-face {
    font-family:'matnha';
    src: url(../font/Kalameh-SemiBold[@mimvid].ttf);
}
@font-face {
    font-family: 'sartitr';
    src: url(../font/Anjoman-UltraBold[@mimvid].ttf);
}
html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin: 0;
    margin-bottom: 60px;
    font-family: 'Vazir', sans-serif;
    background-color: white;
    color: #212529;
    line-height: 1.6;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* اسلایدر */
.slider {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

    .slide.active {
        opacity: 1;
        z-index: 1;
    }

    .slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
@media (max-width: 768px) {
    .slider {
        height: 250px;
        margin-top: 40px;
        margin-bottom: 20px;
        border-radius: 10px;
    }
}

/* خط اول سایت */
.khadamataval {
    text-align: right;
    color: coral;
    padding: 23px 30px 9px 0px;
    font-family: sartitr;
    font-size: 24px;
    white-space: nowrap;
}

/* خدمات ما */
.custom-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

a {
    color: black;
    text-decoration: none;
}
.card-section {
    display: flex;
    flex-wrap: wrap;
    gap: 33px;
    justify-content: center;
    padding:20px;
    direction: rtl;
    font-family: sans-serif;
}

.custom-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(255, 102, 0, 0.2);
    width: 370px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .custom-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 12px 25px rgba(255, 102, 0, 0.4);
    }

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    border:none!important;
    background-color:white!important;
}

.card-img {
    width: 48px;
    height: 48px;
    background: #3419dd;
    padding: 8px;
    border-radius: 12px;
}

.card-title {
    flex: 1;
    font-weight: bold;
    font-size: 1.1rem;
    font-family: 'sartitr';
}

.card-icon {
    transition: transform 0.4s ease;
}

.custom-card:hover .card-icon .rotate-icon {
    transform: rotate(90deg);
}
.card-body {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    font-family: 'matnha';
    text-align: right;
    padding: 0px;
 }


.icon {
    font-size: 2.5rem;
/*    background: linear-gradient(135deg, #ff6600, #ff9900);*/
    margin-bottom: 15px;
    z-index: 1;
    position: relative;
}
@media (max-width: 992px) {
    .custom-card {
        width: 45%;
    }
}

@media (max-width: 768px) {
    .custom-card {
        width: 100%;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-body {
        font-size: 0.9rem;
    }
}
/*راکت باکس */
.rocket {
    position: absolute;
    right: 166px;
    scale: 1.5;
    opacity: 0;
    transition: opacity 0.5s ease-in;
    overflow: hidden;
}

@media (max-width: 768px) {
    .rocket {
        transform: scale(1);
        margin: 4px -110px;
        overflow: hidden;
    }
}

.animate-rocket {
    animation: sineRightIn 2.5s cubic-bezier(0.65, 0, 0.35, 1) forwards;
    opacity: 1;
    overflow: hidden;
}

@keyframes sineRightIn {
    0% {
        transform: translateX(300px) translateY(0);
    }

    20% {
        transform: translateX(200px) translateY(-20px);
    }

    40% {
        transform: translateX(100px) translateY(20px);
    }

    60% {
        transform: translateX(50px) translateY(-15px);
    }

    80% {
        transform: translateX(20px) translateY(10px);
    }

    100% {
        transform: translateX(0) translateY(0);
    }
}


/*باکس شارش*/
.stats-container {
    background: #ffffff;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
}

.stats {
    background: #f7f9fc;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px;
    gap: 20px;
    max-width: 1000px;
    width: 100%;
}

.stat-box {
    flex: 1;
    text-align: center;
    min-width: 120px;
}

    .stat-box .number {
        font-size: 48px;
        font-weight: bold;
        color: #ff6600;
        display: block;
        margin-bottom: -10px;
    }

    .stat-box p {
        font-family: 'matnha';
        color: #333;
        font-size:24px;
    }

.separator {
    width: 1px;
    height: 60px;
    background: #ddd;
}

@media (max-width: 576px) {
    .stat-box .number {
        font-size: 36px;
    }

    .stat-box p {
        font-size: 18px;
    }
}

/* معرفی شرکت */
.about {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 22px;
    direction: rtl;
    gap: 1px;
    background-color: #0840B9;
    color: white;
    border-radius: 20px;
    height: 460px;
    margin: 0px 40px 0px 40px;
}

.about-image img {
    max-width: 100%;
    height: 439px;
    width: 100%;
    border-radius: 10px;
    margin: 0px 0px -20px 0px;
}

.about-text {
    max-width: 740px;
}

    .about-text h2 {
        font-size: 37px;
        margin-bottom: 26px;
        padding: 0px 33px;
        font-family: 'sartitr';
        margin: 1px 7px;
    }

    .about-text p {
        font-family: 'matnha';
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 35px;
        padding: 10px 32px;
        text-align: justify;
    }

button.orange-border {
    padding: 5px 20px;
    background-color: transparent;
    border: 2px solid orange;
    color:white;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0px 30px;
    font-family: 'matnha';
}

    button.orange-border:hover {
        background-color: orange;
        color: white;
    }
@media (max-width: 992px) {
    .about {
        flex-direction: column;
        text-align: center;
        padding: 30px 15px;
        height: auto;
    }

    .about-image img {
        max-height: 300px;
        margin-bottom: -30px;
    }

    .about-text h2 {
        font-size: 28px;
        padding: 0 10px;
    }

    .about-text p {
        font-size: 15px;
        padding: 0 15px;
    }

    button.orange-border {
        margin: 0 auto 20px;
    }
}
    /*دو عکس پایین*/
.image-duo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    gap: 2rem;
}

.image-box {
    width: 48%;
}

    .image-box img {
        width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

@media (max-width: 768px) {
    .image-duo {
        flex-direction: column;
        padding: 1rem;
    }

    .image-box {
        width: 100%;
    }
}
/* ویژگی‌ها */
.features {
    background: #fff;
    padding: 60px 20px;
    direction: rtl;
    font-family: sans-serif;
}

.feature-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 50px;
}

.feature-text {
    flex: 1;
    min-width: 280px;

}

.title {
    color: #ff6600;
    font-size: 2rem;
    font-weight: bold;
    font-family: 'sartitr';
}

.subtitle {
    font-size: 1.2rem;
    color: #444;
    margin-top: 10px;
    font-family: 'matnha';
}

.feature-description {
    flex: 1;
    min-width: 280px;
    font-size: 14px;
    color: #555;
    font-family: 'matnha';
    text-align: justify;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.feature-item {
    background: #f9f9f9;
    padding: 25px 15px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

    .feature-item:hover {
        background: #3419dd;
        color: #fff;
    }

    .feature-item h3 {
        font-size: 1rem;
        margin-top: 10px;
        font-family: 'matnha';
    }

    .feature-item .icon {
        width: 48px;
        height: 48px;
        background: #ccc;
        border-radius: 50%;
        margin: 0 auto 10px;
    }

    /* Highlighted center item */
    .feature-item.highlighted {
        background: #3419dd;
        color: white;
    }

        .feature-item.highlighted .icon {
            background: orange;
        }
@media (max-width: 992px) {
    .feature-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .feature-list {
        grid-template-columns: 1fr;
    }

    .title {
        font-size: 1.5rem;
    }

    .subtitle,
    .feature-description {
        font-size: 1rem;
    }
}

/* مقالات */

.articles-section {
    max-width: 100%;
    margin: 51px 50px 60px 51px;
    padding: 0 20px;
}

.articles-header {
    text-align: center;
    margin-bottom: 55px;
    margin-top: -44px;
    direction: rtl;
}

.articles-subtitle {
    font-size: 14px;
    color: #ff8a00;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: 'sartitr';
}

.articles-title {
    font-size: 28px;
    color: black;
    margin-bottom: 15px;
    font-family: 'sartitr';
}

.articles-description {
    font-size: 16px;
    color: #555;
    margin: 0 auto;
    line-height: 1.7;
    font-family: 'matnha';
}

.articles-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 20px;
    align-items: start;
}

.article-small-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.article-card {
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
    cursor: pointer;
    position: relative;
    direction:rtl;
    font-family:'matnha';
}

    .article-card img {
        width: 100%;
        height: auto;
        display: block;
    }

.article-text {
    padding: 10px 15px;
    font-size: 16px;
    color: #222;
    font-weight: 500;
    background-color: #fff;
}

/* افکت هاور فقط روی کارت بزرگ */
.article-card.large:hover {
    border: 2px solid #00bfff;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.3);
}

.article-card.large {
    border: 2px solid transparent;
    transition: 0.3s ease;
}
@media (max-width: 992px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-small-grid {
        grid-template-columns: 1fr;
    }

    .article-text {
        font-size: 14px;
    }

}