/* ====================== Base ====================== */
body {
    background-color: #f4f6f9;
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* Cards */
.card {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-header {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border-radius: 12px 12px 0 0 !important;
    padding: 1.25rem 1.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    border: none;
    padding: 0.6rem 1.5rem;
    font-weight: 500;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
}

.btn-success {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
}

/* ====================== Navbar ====================== */
.navbar { padding: 0.85rem 0; }
.navbar-brand { font-size: 1.6rem; }
.nav-link { font-weight: 500; color: #555 !important; transition: color 0.2s; }
.nav-link:hover { color: #2e7d32 !important; }

/* ====================== Hero / Slider ====================== */
.hero-carousel .carousel-item {
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.hero-carousel .carousel-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55), rgba(0,0,0,0.25));
}
.hero-carousel .carousel-caption {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    transform: translateY(-50%);
    bottom: auto;
    text-align: left;
    z-index: 5;
}
.hero-carousel .carousel-caption h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.hero-carousel .carousel-caption h6 {
    color: #ffd54f;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero-carousel .carousel-caption p {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 1.75rem;
}
.hero-carousel .btn-hero {
    background: linear-gradient(135deg, #43a047 0%, #2e7d32 100%);
    color: white;
    border: none;
    padding: 0.9rem 2.25rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .hero-carousel .carousel-item { height: 450px; }
    .hero-carousel .carousel-caption h1 { font-size: 2rem; }
    .hero-carousel .carousel-caption p { font-size: 1rem; }
}

/* ====================== Section Headings ====================== */
.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}
.section-heading h2 {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-heading h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(135deg, #43a047, #ffd54f);
    border-radius: 2px;
}
.section-heading p { color: #7a7a7a; max-width: 600px; margin: 0 auto; }

/* ====================== Statistics ====================== */
.stat-card {
    background: white;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}
.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.stat-icon {
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1rem;
    border-radius: 50%;
    font-size: 2rem;
    color: white;
}
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0.5rem 0;
}
.stat-label { color: #7a7a7a; font-weight: 500; }

/* ====================== Service Cards ====================== */
.service-card {
    background: white;
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06);
    transition: transform 0.25s, box-shadow 0.25s;
    height: 100%;
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}
.service-icon {
    width: 75px; height: 75px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
    border-radius: 18px;
    font-size: 2rem;
    color: white;
}
.service-card h5 { font-weight: 600; color: #2c3e50; margin-bottom: 0.75rem; }
.service-card p { color: #777; font-size: 0.95rem; line-height: 1.6; }

/* ====================== About Us ====================== */
.about-section { padding: 4rem 0; }
.about-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}
.about-content h2 { font-weight: 700; color: #2c3e50; margin-bottom: 1rem; }
.about-content .subtitle { color: #43a047; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }

/* ====================== Contact Form ====================== */
.contact-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 28px rgba(0,0,0,0.08);
}

/* ====================== Page Banner (used on inner pages) ====================== */
.page-banner {
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: white;
    padding: 4rem 0;
    text-align: center;
}
.page-banner h1 { font-weight: 700; }

/* ====================== Pagination ====================== */
.pagination .page-link { color: #2e7d32; }
.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #43a047, #2e7d32);
    border-color: #2e7d32;
    color: white;
}

/* ====================== Questionnaire (existing styles preserved) ====================== */
.form-check { margin-bottom: 0.5rem; padding-left: 2rem; }
.form-check-input:checked { background-color: #1976d2; border-color: #1976d2; }

.question-block {
    background: #fafbfc;
    border-left: 4px solid #1976d2;
    padding: 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.question-block h5 { color: #1565c0; font-weight: 600; margin-bottom: 1rem; }

.progress-indicator { display: flex; justify-content: space-between; margin-bottom: 2rem; list-style: none; padding: 0; }
.progress-indicator li {
    flex: 1; text-align: center; padding: 0.75rem;
    background: #e9ecef; color: #6c757d; margin: 0 0.25rem;
    border-radius: 8px; font-weight: 500; font-size: 0.9rem;
}
.progress-indicator li.active { background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%); color: white; }
.progress-indicator li.completed { background: #28a745; color: white; }

.file-list-item {
    padding: 0.5rem 0.75rem; background: #e3f2fd; border-radius: 6px;
    margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center;
}
.thank-you-container {
    background: white; padding: 4rem 2rem; border-radius: 12px;
    text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.thank-you-icon { font-size: 5rem; color: #28a745; margin-bottom: 1.5rem; }

/* ====================== RTL Adjustments ====================== */
/* Flip directional arrow icons when the page is in RTL mode so that
   "Next" and "Back" buttons point the right way in Arabic. */
[dir="rtl"] .fa-arrow-right,
[dir="rtl"] .fa-arrow-left,
[dir="rtl"] .fa-chevron-right,
[dir="rtl"] .fa-chevron-left,
[dir="rtl"] .fa-long-arrow-alt-right,
[dir="rtl"] .fa-long-arrow-alt-left {
    transform: scaleX(-1);
}

/* The question-block uses a left border accent — flip it to the right for RTL */
[dir="rtl"] .question-block {
    border-left: none;
    border-right: 4px solid #1976d2;
}

/* Progress indicator margin tweak */
[dir="rtl"] .progress-indicator li {
    margin: 0 0.25rem;
}
