.services-container {
    max-width: 1000px;
    margin: 2rem auto;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.services-header {
    background: linear-gradient(135deg, #54a0c0 0%, #d76237 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.services-header h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.services-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.services-content {
    padding: 30px;
}

.services-section {
    margin-bottom: 30px;
}

.services-section-title {
    color: #1a365d;
    border-bottom: 2px solid #e6b325;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* تغییرات اصلی اینجاست - چیدمان دو کارتی */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-right: 4px solid #e6b325;
    transition: all 0.3s ease;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.service-item h3 {
    color: #1a365d;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-item h3 i {
    margin-left: 10px;
    color: #e6b325;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.client-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.services-highlight {
    background: linear-gradient(135deg, #1a365d 0%, #2a4a7f 100%);
    color: white;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    border-radius: 8px;
}

.services-highlight p {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.services-btn {
    display: inline-block;
    background-color: #e6b325;
    color: #1a365d;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.services-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-form-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    min-height: 400px;
    border-right: 4px solid #e6b325;
    transition: all 0.3s ease;
}

.service-form-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.service-form-container .form-label {
    color: #1a365d;
    font-weight: 500;
}

.service-form-container .form-control,
.service-form-container .form-select {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 10px;
    margin-bottom: 15px;
}

.service-form-container .services-btn {
    text-align: center;
}

.hero-section.service {
    background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../img/hero-service-bg.jpg');
}

/* Container for form + image */
.service-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr; /* form on left, image on right */
    gap: 20px;
    align-items: center;
    margin-top: 20px;
}

/* Image block */
.service-form-image {
    background: url('../img/friendly-man.jpg') center/cover no-repeat;
    border-radius: 8px;
    min-height: 400px; /* adjust height */
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {

    .services-header h1 { font-size: 1.6rem; }
    .services-header p { font-size: 0.8rem; }
    .services-section-title { font-size: 1.1rem; }
    .service-item h3 { font-size: 1rem; }
    .service-item p { font-size: 0.75rem; }
    .services-btn { font-size: 0.75rem; padding: 10px 20px; }

    .service-form-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr; /* form left, image right */
        gap: 15px;
    }

    .service-form-image {
        order: 1;              /* put image on the right */
        min-height: 300x;
        border-radius: 6px;
        background-size: cover;
        background-position: center;
    }

    .service-form-container {
        order: 2;              /* form stays on left */
        padding: 15px;
    }

    .service-form-container .form-control,
    .service-form-container .form-select {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .clients-grid {
        grid-template-columns: 1fr;
    }
    
    .services-header h1 {
        font-size: 1.8rem;
    }
}

/* Mobile devices */
@media (max-width: 576px) {

    .services-header h1 { font-size: 1.3rem; }
    .services-header p { font-size: 0.75rem; }
    .services-section-title { font-size: 0.9rem; }
    .service-item h3 { font-size: 0.8rem; }
    .service-item p { font-size: 0.7rem; }
    .services-btn { font-size: 0.7rem; padding: 8px 15px; }

    .service-form-wrapper {
        display: grid;
        grid-template-columns: 1fr; /* stack vertically */
        gap: 15px;
    }

    .service-form-image {
        order: -1;             /* image on top */
        min-height: 250px;
        border-radius: 6px;
        background-size: cover;
        background-position: center;
    }

    .service-form-container {
        order: 0;              /* form below image */
        padding: 15px;
    }
}