.container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}
a{
    color: #fcffe7;
}
h1 {
    background: var(--btn-bg);
    margin: 20px 0;
    font-weight: bold;
    font-size: 3rem;
    color: var(--dark-blue);
}

#services-c {
    margin-top: 180px;
    text-align: center;
    width: 100vw;
    height: auto;
    display: block;
    box-sizing: border-box;
}

.box-title {
    font-size: 1.8rem;
}

.box {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(45, 45, 45, 0.51);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.box:hover {
    transform: translateY(-5px);
}

.box img {
    width: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    height: auto;
    min-height: 186px;
}

.wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.hero {
    text-align: center;
}

.hero h1 {
    font-size: 32px;
}

.section {
    width: 100%;
    height: auto;
    margin: 28px 0;
}

.section-title {
    font-weight: 600;
    margin-bottom: 14px;
}


.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}


.card {
    background: var(--btn-bg);
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0, 113, 138, 0.37);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}


.card img {
    display: block;
    width: 100%;
    height: auto;
    min-height: 129px;
    object-fit: cover;
}

.hero-s {
    display: block;
    width: 100%;
    max-width: 1400px;
    min-height: 382px;
    margin: 0 auto;
}

.hero-s img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1400/140;
    pointer-events: none;
}

.card-body {
    width: 100%;
    height: auto;
    min-height: 300px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1 1 auto;
}

.card-title {
    font-size: 25px;
    margin-top: 10px;
    line-height: 1.2;
}

.card p {
    font-size: 1.5rem;
    color: #465e5e;
    margin: 10px 0;
}

.box-desc {
    color: #a4dcd7 !important;
}

.btn {
    display: inline-block;
    font-size: 22px;
    width: 100%;
    text-align: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #00564b, #009881, #004b42);
    color: white;
    cursor: pointer;
}


.qa-section-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 20px;
    max-width: 1400px;
    margin: auto;
}

.qa-card {
    display: flex;
    background: linear-gradient(135deg, rgb(0, 0, 0), rgba(0, 112, 255, 0.46), rgb(0, 0, 0));
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 120, 255, 0.76);
    overflow: hidden;
    padding: 20px;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}



.wave {
    margin-top: 70px;
    position: relative;
}

#wave {
    position: absolute;
    bottom: 0;
}

.wave-bot {
    margin-bottom: 70px;
    position: relative;
}

#wave-bot {
    position: absolute;
    top: 0;
}

.second-section {
    position: relative;
    background: linear-gradient(to bottom, var(--dark-blue), #000000, var(--dark-blue));
    padding: 50px 0 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 200px;
}

.qa-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* متن */
.qa-text {
    flex: 1;
    padding-right: 40px;
}

.no-margin {
    margin: 0 !important;
}

.title h2 {
    font-size: 25px;
}

.title {
    padding: 40px 0 0;
}

.qa-text h2 {
    margin: 0 0 10px 0;
    font-size: 2.1rem;
    color: #CEA034;
}

.golden {
    color: #CEA034;
    font-weight: bold;
}

.qa-text p {
    margin-top: 40px;
    font-size: 1.4rem;
    color: #ffffff;
    line-height: 1.9;
    white-space: pre-line;
    overflow-wrap: break-word;
}

/* تصویر */
.qa-image {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center; /* وسط عمودی */
}

.qa-image img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

#most-top {
    margin-top: 70px;
}

.wrap-1200 {
    padding: 40px 0;
    min-height: 620px;
    overflow: hidden;
}

.flex-line {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 40px 0;
}

.card.seo, .card.seo img {
    width: 100%;
    max-width: 520px;
}

@media (max-width: 1020px) {
    .title.no-margin{
        padding: 0;
    }
    #services-c {
        margin-top: 40px;
    }

    .container {
        grid-template-columns: repeat(1, 1fr);
    }

    .hero h1 {
        font-size: 25px;
        margin: 0;
    }

    #wave {
        height: 200px;
    }

    #wave-bot {
        height: 200px;
    }

    .second-section {
        padding: 0;
    }

    .qa-card {
        flex-direction: column;
    }

    .qa-image img {
        width: 70vw;
        max-width: 400px;
        margin-bottom: 40px;
    }

    .qa-section-container {
        padding: 10px;
    }

    .qa-text {
        padding-right: 0;
    }

    .grid {
        grid-template-columns: repeat(1, 1fr);
    }

    .qa-text h3 {
        font-size: 2.4rem;
    }

    .qa-text p {
        font-size: 1.9rem;
    }

    .box-title {
        font-size: 2.4rem;
    }



    .flex-line {
        padding: 20px 10px;
    }

    .hero-s img {
        margin: 15px 0;
    }

    .hero-s {
        min-height: 110px;
    }

    .section {
        margin: 0;
        padding: 5px 10px !important;
    }
}