﻿/* جلوگیری از بیرون زدن المان از صفحه در حالت موبایل */

html, body {
    overflow-x: hidden !important;
    width: 100% !important;
}

img, iframe, video {
    max-width: 100%;
    height: auto;
}

.container, .row, section, article {
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
}
/*-------------------------------------*/

:root {
    --brand-red: #d4312a;
    --brand-blue: #0b64a0;
    --brand-green: #4cff00;
    --muted: #6b7280;
    --skyblue: #00ffff;
    --white: #fbfdff;
    --card-bg: rgba(24, 37, 84,0.9);
    --glass: rgba(255,255,255,0.06);
}

html, body {
    font-family: Vazirmatn, sans-serif;
    background: #c8f0df;
    margin: 0;
    padding: 0;
    padding-top: 5%;
    background: url('/Images/OfficeAutomationServices/Data-Mangement/Data-Science3.jpg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.9;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 36px auto;
    padding: 22px
}

.hero {
    display: flex;
    gap: 28px;
    align-items: center
}

.hero-card {
    flex: 1;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 10px 30px rgba(11,100,160,0.08);
}

.hero h1 {
    margin: 0 0 8px 0;
    color: var(--brand-green);
    font-size: 28px
}

.hero p.lead {
    color: var(--white);
    margin: 0 0 16px 0;
    line-height: 1.7
}

.cta {
    display: inline-block;
    background: linear-gradient(90deg,var(--brand-green),var(--brand-green));
    color: darkslateblue;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(165, 178, 199,0.08);
}

    .cta:hover {
        background-color: #e64a19;
        color: blue;
        transform: scale(1.02);
        box-shadow: 0 10px 30px rgba(86, 111, 133,0.95);
    }

.features {
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 18px;
    margin-top: 22px
}

.feature {
    background: linear-gradient(180deg,#ffffff,#fbfdff);
    padding: 14px;
    border-radius: 10px;
    border: 1px solid rgba(11,100,160,0.06)
}

    .feature h4 {
        margin: 6px 0;
        color: var(--brand-green)
    }

.steps {
    margin-top: 28px
}

.step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px
}

    .step .num {
        min-width: 44px;
        height: 44px;
        border-radius: 10px;
        background: var(--glass);
        display: grid;
        place-items: center;
        font-weight: 700;
        color: var(--brand-green);
        border: 1px solid rgba(11,100,160,0.06)
    }

    .step .content h5 {
        margin: 0;
        color: var(--brand-green);
        font-size: 16px
    }

    .step .content p {
        margin: 6px 0 0 0;
        color: var(--white);
        line-height: 1.6
    }

.cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 14px;
    margin-top: 26px
}


.card {
    text-justify: auto;
    background: var(--card-bg);
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(11,100,160,0.04);
    border: ridge;
}

    .card h6 {
        margin: 6px 0;
        color: var(--brand-green)
    }

.reasons {
    margin-top: 26px;
    padding: 18px;
    border-radius: 10px;
    /*background: linear-gradient(90deg, rgba(11,100,160,0.04), rgba(212,49,42,0.02));*/
    background: rgba(26, 30, 56,0.9);
    background: linear-gradient(90deg, rgba(26, 30, 56,0.6), rgba(26, 30, 56,0.99));
}

    .reasons ul {
        margin: 8px 0 0 18px;
        color: var(--white)
    }

.accfooter {
    /*background-color : navy;*/
    margin-top: 28px;
    text-align: center;
    color: var(--white);
    border: ridge;
    border-radius : 15px;
    background: rgba(43, 40, 26,0.8);
    font-size: 20px
}
/* responsive */
@@media (max-width:900px) {
    .hero {
        flex-direction: column
    }

    .cards {
        grid-template-columns: repeat(2,1fr)
    }

    .features {
        grid-template-columns: 1fr
    }
}

@@media (max-width:560px) {
    .cards {
        grid-template-columns: 1fr
    }
}
/*---------------------------------------*/
/* 🎨 استایل کلی کارت‌ها */
.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 💻 سه ستون در دسکتاپ */
    gap: 20px;
    margin-top: 26px;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 💳 استایل هر کارت */
.card {
    background-color: var(--brand-blue);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: justify;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    }

/* 🔹 هدر کارت */
.card-header {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap; /* جلوگیری از بیرون‌زدگی در موبایل */
}

    .card-header .avatar {
        margin-left: 12px;
        flex-shrink: 0;
    }

    .card-header .name {
        font-weight: 700;
        font-size: 1.1rem;
        color: #002B5B;
    }

    .card-header .title {
        font-size: 0.9rem;
        color: #777;
    }

/* 📄 محتوای کارت */
.card-body {
    padding: 15px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
    word-wrap: break-word; /* جلوگیری از شکست چیدمان در موبایل */
    text-align:justify;
}

/* 🔘 فوتر کارت */
.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap; /* برای تراز بهتر در صفحات کوچک */
}

    .card-footer .btn {
        border-radius: 8px;
        flex: 1 1 auto;
        margin: 5px;
    }

/* 💻 نمایش در تبلت‌ها (۲ ستون) */
@media (max-width: 1024px) and (min-width: 769px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
        padding: 0 15px;
    }

    .card-header .name {
        font-size: 1rem;
    }
}

/* 📱 نمایش در موبایل (۱ ستون) */
@media (max-width: 768px) {
    .cards {
        grid-template-columns: 1fr; /* فقط یک ستون */
        gap: 20px;
        padding: 0 10px;
    }

    .card {
        text-align: center;
        border-radius: 10px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
    }

        .card-header .avatar {
            margin: 0 0 10px 0;
        }

    .card-body {
        font-size: 0.9rem;
        text-align: justify;
    }

    .card-footer {
        flex-direction: column;
        gap: 10px;
    }

        .card-footer .btn {
            width: 100%;
            max-width: 250px;
        }
}

/* 🧱 جلوگیری از اسکرول افقی در همه حالت‌ها */
html, body {
    overflow-x: hidden;
}

/* 🎯 ساختار اصلی hero */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

    /* 🧩 در حالت دسکتاپ: دو ستون (به صورت عادی باقی می‌ماند) */
    .hero > div {
        flex: 1;
    }

/* 📱 در حالت موبایل: تغییر به تک‌ستونی */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        align-items: center;
    }

        .hero > div {
            width: 100% !important;
            max-width: 100%;
        }

    .hero-card {
        text-align: center;
    }

    .features, .steps {
        text-align: center;
    }

    .hero .card {
        margin-top: 20px;
        width: 100% !important;
    }
}
