.services-page {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(17, 17, 17, 0.2) 50%, 
        rgba(0, 0, 0, 0.2) 100%),
        url('/static/image/about.png') center/cover no-repeat;
    color: white;
    padding: 60px 40px;
    line-height: 1.8;
}

.services-page header {
    margin-bottom: 40px;
    text-align: start; /* يتغير تلقائيًا حسب dir */
}

.services-page header h1 {
    font-size: 2.6rem;
    position: relative;
    display: inline-block;
}

.services-page header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #dcce0f;
    margin: 10px auto 0;
    border-radius: 2px;
}

.services-page header p {
    font-size: 1.2rem;
    color: #cccccc;
    margin-top: 10px;
}

.intro {
    max-width: 1000px;
    margin-bottom: 40px;
    text-align: start;
    color: #e0e0e0;
    font-size: 1.1rem;
}

.services {
    display: flex;
    justify-content: flex-start; /* بدل right */
    flex-wrap: wrap;
    gap: 30px;
    margin: 0 auto 40px;
}

.services h2 {
    flex-basis: 100%;
    text-align: start;
}

.service {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(17, 17, 17, 0.5) 50%, 
        rgba(0, 0, 0, 0.5) 100%);
    padding: 50px;
    border-radius: 15px;
    width: 100%;
    max-width: 1000px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: 0.3s ease-in-out;
}

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

.service h3 {
    color: #dcce0f;
    margin-bottom: 20px;
    font-size: 1.6rem;
}

.service ul {
    list-style: disc;
    padding-inline-start: 40px; /* بدل padding-right */
}

.service li {
    color: #dcdcdc;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.cta {
    text-align: start;
    margin-inline-start: 40px;
}

.cta h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #dcce0f;
}

.cta a {
    background-color: #dcce0f;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.cta a:hover {
    background-color: #b7ab07;
}

.consultation {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(17, 17, 17, 0.2) 50%, 
        rgba(0, 0, 0, 0.2) 100%),
        url('/static/image/about.png') center/cover no-repeat;
    color: white;
    padding: 60px 20px;
    text-align: start;
    direction: inherit;
}

.consultation-form {
    max-width: 700px;
    margin: auto;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(17, 17, 17, 0.5) 50%, 
        rgba(0, 0, 0, 0.5) 100%);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.form-header h2 {
    font-size: 2rem;
    color: #dcce0f;
    margin-bottom: 10px;
}

.form-header p {
    font-size: 1.1rem;
    color: #cccccc;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #f0f0f0;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: none;
    background-color: #2a2a2a;
    color: white;
    font-size: 1rem;
    direction: inherit;
    text-align: inherit;
}

.form-control::placeholder {
    color: #aaa;
}

.submit-btn {
    background-color: #dcce0f;
    color: #000;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background-color: #b7ab07;
}

.success-message {
    display: none;
    margin-top: 30px;
    text-align: center;
    color: #00ff8c;
    background-color: #1d3124;
    padding: 25px;
    border-radius: 10px;
}

.success-message h3 {
    margin-bottom: 10px;
}

.contact-section {
    max-width: 800px;
    margin: 100px auto 50px;
    background-color: #f9f9f9;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    direction: inherit;
    text-align: start;
}

.contact-section h2 {
    font-size: 28px;
    color: #003366;
    margin-bottom: 10px;
    font-weight: bold;
}

.contact-section h4 {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.contact-info {
    display: grid;
    grid-template-columns: 40px auto;
    gap: 15px 20px;
    align-items: center;
    font-size: 17px;
    color: #333;
    margin-bottom: 20px;
}

.contact-info i {
    font-size: 22px;
    color: #003366;
}

.contact-info a {
    color: #0066cc;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* About Page Styles */
.about {
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.2) 0%, 
        rgba(17, 17, 17, 0.2) 50%, 
        rgba(0, 0, 0, 0.2) 100%),
        url('/static/image/about.png') center/cover no-repeat;
    color: #ffffff;
    padding: 50px 20px;
    line-height: 1.8;
}

.about header {
    text-align: center;
    margin-bottom: 40px;
}

.about header h1 {
    font-size: 2.8rem;
    color: #ffffff;
    position: relative;
    display: inline-block;
}

.about header h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #dcce0f;
    margin: 10px auto 0;
    border-radius: 2px;
}

.about header p {
    font-size: 1.2rem;
    color: #cccccc;
}

.about-section {
    margin-bottom: 60px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.5) 0%, 
        rgba(17, 17, 17, 0.5) 50%, 
        rgba(0, 0, 0, 0.5) 100%);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: 0.3s ease-in-out;
}

.about-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.about-section h2 {
    color: #dcce0f;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.about-section p, .about-section ul {
    color: #e0e0e0;
    font-size: 1.1rem;
}

.about-section ul {
    padding-inline-start: 20px;
}

.about-section li {
    margin-bottom: 8px;
    list-style: disc;
}

.values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.value-card {
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.value-card:hover {
    background-color: #383838;
    transform: scale(1.03);
}

.value-card h3 {
    color: #dcce0f;
    margin-bottom: 10px;
}

.value-card p {
    color: #dfe6e9;
}

/* Responsive Design */
@media (max-width: 600px) {
    .contact-section {
        padding: 25px;
    }

    .contact-info {
        grid-template-columns: 100%;
    }

    .contact-info i {
        margin-bottom: -10px;
    }
}

@media (max-width: 500px) {
    .services-page {
        line-height: 1.6;
        padding: 40px 20px;
    }

    .services-page header {
        margin-inline-start: 0;
        text-align: start;
    }

    .services-page header h1 {
        font-size: 1.5rem;
    }

    .services-page header p {
        font-size: 1rem;
    }

    .intro {
        font-size: 1rem;
        margin-inline-start: 0;
        text-align: start;
    }

    .services {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
    }

    .service {
        padding: 20px;
        max-width: 100%;
    }

    .service h3 {
        font-size: 1rem;
    }

    .service li {
        font-size: .8rem;
    }

    .service ul {
        padding-inline-start: 20px;
    }

    .cta {
        margin-inline-start: 0;
        text-align: center;
    }

    .cta h2 {
        font-size: 1.2rem;
    }

    .cta a {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .consultation {
        padding: 40px 15px;
        text-align: center;
    }

    .consultation-form {
        padding: 30px 20px;
    }

    .form-header h2 {
        font-size: 1.2rem;
    }

    .form-header p {
        font-size: 1rem;
    }

    .form-control {
        font-size: 0.95rem;
        padding: 8px;
    }

    .submit-btn {
        font-size: 1rem;
        padding: 10px 20px;
        flex-direction: column;
    }

    .success-message {
        font-size: 0.95rem;
    }

    .contact-section {
        margin: 60px 15px 30px;
        padding: 25px;
    }

    .contact-section h2 {
        font-size: 1.5rem;
    }

    .contact-section h4 {
        font-size: 1rem;
    }

    .contact-info {
        grid-template-columns: 100%;
        font-size: 0.95rem;
    }

    .contact-info i {
        font-size: 20px;
        margin-bottom: -5px;
    }
}