/* File path: assets/css/services_public.css */

@font-face {
    font-family: 'Vazirmatn';
    src: url('../font/Vazirmatn[wght].woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* General Body Styling */
body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
    direction: rtl;
}

/* Container for consistent content width */
.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Header Button Styles */
header .btn-primary,
header .btn-secondary,
header .btn-tertiary {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .btn-primary {
    background-color: #3b82f6; /* Blue */
    color: #ffffff;
    border: 2px solid #3b82f6;
}
header .btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

header .btn-secondary {
    background-color: #a855f7; /* Purple */
    color: #ffffff;
    border: 2px solid #a855f7;
}
header .btn-secondary:hover {
    background-color: #9333ea;
    border-color: #9333ea;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

header .btn-tertiary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}
header .btn-tertiary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Service Card Styling */
.service-card {
    border: 1px solid #e5e7eb; /* Light border */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: right; /* Align text to the right for RTL */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Small Primary Button (for "Apply Now") */
.btn-small-primary {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    background-color: #3b82f6; /* Blue */
    color: #ffffff;
    border: none;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-small-primary:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Messages */
.error-message {
    background-color: #fee2e2; /* red-100 */
    color: #991b1b; /* red-800 */
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #ef4444; /* red-400 */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }
    header nav {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
    }
    header nav a {
        width: 100%;
    }
    .service-card {
        padding: 1.5rem;
    }
}
