/* ========================================
   Arabic RTL Modern Website Styles
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #6366f1;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1e293b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    --font-family: 'Cairo', sans-serif;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --border-radius-lg: 20px;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    direction: rtl;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Section Styles */
.section-subtitle {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
}

/* Navbar Styles */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: var(--white) !important;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--dark-color) !important;
}

.navbar-brand i {
    color: var(--primary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-top: 76px;
}

.hero-slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content {
    max-width: 1140px;
    padding: 5rem;
}

.hero-content h1 {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-content p {
    font-size: 1.25rem;
    opacity: 0.95;
}

/* Animation Classes */
.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: var(--transition);
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    right: 30px;
    left: auto;
}

.carousel-control-next {
    left: 30px;
    right: auto;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.carousel-indicators {
    margin-bottom: 3rem;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    transition: var(--transition);
}

.carousel-indicators button.active {
    width: 30px;
    border-radius: 6px;
}

/* About Section */
.about-section {
    background: var(--white);
}

.about-image {
    position: relative;
}

.image-placeholder {
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    border-radius: var(--border-radius-lg);
    height: 550px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--gray-700);
}

.about-feature i {
    font-size: 1.25rem;
}

/* Vision Section */
.vision-section {
    background: var(--gray-50);
}

.vision-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.vision-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.vision-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.vision-icon.mission {
    background: linear-gradient(135deg, var(--success-color), #34d399);
}

.vision-icon.values {
    background: linear-gradient(135deg, var(--secondary-color), #818cf8);
}

.vision-card h4 {
    margin-bottom: 1rem;
}

.vision-card p {
    color: var(--gray-500);
    margin-bottom: 0;
}


.goals-timeline {
    background: #ffffff;
}


.timeline {
    position: relative;
    max-width: 900px;
    margin: auto;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        #0d6efd,
        rgba(13,110,253,0.2)
    );
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 3.5rem;
}

.timeline-icon {
    position: absolute;
    right: 50%;
    transform: translateX(50%);
    width: 70px;
    height: 70px;
    background: #0d6efd;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 15px 30px rgba(13,110,253,0.4);
    z-index: 2;
}

.timeline-content {
    width: 45%;
}

.timeline-content.right {
    margin-right: auto;
    text-align: right;
    padding-right: 2.5rem;
}

.timeline-content.left {
    margin-left: auto;
    text-align: left;
    padding-left: 2.5rem;
}

.timeline-content h5 {
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 0;
}

@media (max-width: 768px) {

    .timeline::before {
        right: 32px;
        left: auto;
        transform: none;
    }

    .timeline-item {
        display: flex;
        align-items: flex-start;
        position: relative;
        margin-bottom: 3rem;
    }

    .timeline-icon {
        position: absolute;
        right: 0;
        top: 0;
        transform: none;
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }

    .timeline-content {
        width: 100%;
        margin-right: 80px; 
        padding: 0;
        text-align: right;
    }

    .timeline-content.left,
    .timeline-content.right {
        margin-right: 80px;
        padding: 0;
        text-align: right;
    }
}

/* Services Section */
.services-section {
    background: var(--gray-50);
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--white);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: rotateY(180deg);
}

.service-card h4 {
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.service-link {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    gap: 1rem;
}

/* Numbers Section */
.numbers-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.numbers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.number-item {
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.number-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.number-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.number-item p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    background: var(--gray-50);
}

.contact-info {
    padding: 2rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-info-item h5 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-info-item p {
    color: var(--gray-500);
    margin-bottom: 0;
}

.contact-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.contact-social a {
    width: 45px;
    height: 45px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: var(--transition);
}

.contact-social a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.form-floating > .form-control {
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    padding: 1rem;
    height: auto;
    transition: var(--transition);
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.form-floating > label {
    padding: 1rem;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
}

.footer-brand h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--gray-400);
}

.footer h5 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-right: 5px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.footer hr {
    border-color: var(--gray-700);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 140px 0 80px;
    margin-top: 5px;
    position: relative;
    overflow: hidden;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb-item a:hover {
    color: var(--white);
}

.breadcrumb-item.active {
    color: var(--white);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

/* Request Section */
.request-section {
    background: var(--gray-50);
}

.request-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Services Filter Checkboxes */
.service-checkbox {
    position: relative;
}

.service-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.service-checkbox label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    min-height: 120px;
}

.service-checkbox label i {
    font-size: 2rem;
    color: var(--gray-400);
    margin-bottom: 0.75rem;
    transition: var(--transition);
}

.service-checkbox label span {
    font-weight: 500;
    color: var(--gray-600);
}

.service-checkbox input:checked + label {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(99, 102, 241, 0.1));
    border-color: var(--primary-color);
}

.service-checkbox input:checked + label i {
    color: var(--primary-color);
}

.service-checkbox input:checked + label span {
    color: var(--primary-color);
}

.service-checkbox label:hover {
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.services-filter {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.filter-item label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: #6c757d;
}

.filter-item select {
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 0.9rem;
}

.filter-btn {
    padding: 0.65rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: #0d6efd;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-btn:hover {
    background: #0b5ed7;
}

/* Mobile */
@media (max-width: 768px) {
    .services-filter {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-btn {
        width: 100%;
    }
}


/* File Upload */
.file-upload {
    position: relative;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--gray-50);
    border: 2px dashed var(--gray-300);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.file-label:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(99, 102, 241, 0.05));
}

.file-label i {
    color: var(--primary-color);
}

.file-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.file-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 0.875rem;
}

.file-item .remove-file {
    cursor: pointer;
    color: var(--danger-color);
}

/* Success Modal */
.success-icon {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-light {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    border: none;
}

.btn-light:hover {
    background: var(--gray-100);
    color: var(--primary-dark);
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .navbar-collapse {
        background: var(--white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-lg);
    }
    
    .navbar-nav .btn {
        margin-top: 1rem;
    }
}


@media (max-width: 767.98px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .number-item h3 {
        font-size: 2.5rem;
    }
    
    .request-card {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* Animations on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.login-card {
    background: #fff;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.login-title {
    text-align: center;
    font-weight: 700;
    margin-bottom: .5rem;
    color: #1e293b;
}

.login-subtitle {
    text-align: center;
    color: #64748b;
    font-size: .95rem;
    margin-bottom: 2rem;
}

.input-group {
    position: relative;
    margin-bottom: 1.25rem;
}

.input-group i {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 2.75rem 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: .95rem;
    transition: 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.login-options {
    text-align: left;
    margin-bottom: 1.5rem;
}

.forgot-password {
    font-size: .85rem;
    color: #2563eb;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.login-card {
    background: #fff;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    margin: 7rem auto;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

.login-footer a {
    color: #2563eb;
    font-weight: 600;
    margin-right: 5px;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.register-card {
    background: #fff;
    max-width: 750px;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    margin: 8rem auto;
}

/* Toggle */
.user-type-toggle {
    display: flex;
    background: #f1f5f9;
    border-radius: 50px;
    padding: 5px;
    margin-bottom: 2rem;
}

.user-type-toggle button {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.6rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    color: #475569;
}

.user-type-toggle button.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
}

/* Inputs */
.input-group {
    margin-bottom: 1rem;
}

.input-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    transition: 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.15);
}

.hidden {
    display: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 576px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.input-group input {
    direction: rtl;
    text-align: right;
}

.file-group {
    position: relative;
    margin-bottom: 1rem;
}

.file-group input[type="file"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
    cursor: pointer;
    color: transparent; 
}

.file-group input[type="file"]::-webkit-file-upload-button {
    visibility: hidden;
}

.file-group label {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.95rem;
    pointer-events: none;
    transition: 0.3s ease;
}


.file-group input[type="file"]:valid + label {
    color: #2563eb;
}

.user-menu {
    position: relative;
    display: inline-block;
}

.user-menu i {
    font-size: 1.8rem;
    color: #fff;
    background: #2563eb;
    padding: 5PX;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.user-menu i:hover {
    background: #1e40af;
}


.dropdown-menu {
    position: absolute;
    top: 130%;
    right: -88px; 
    left: auto; 
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    list-style: none;
    padding: 0.5rem 0;
    display: none;
    min-width: 180px;
    z-index: 1000;
    text-align: right;  
}


.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: #1e293b;
    transition: 0.3s;
    text-align: right; 
}

.dropdown-menu li a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* صندوق نسيت كلمة المرور */
.forgot-box {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}


.forgot-box h2 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.forgot-box p {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

/* حقول الإدخال */
.forgot-box .input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    padding: 0.65rem 0.75rem;
    background: var(--white);
    margin-bottom: 1rem;
    transition: 0.3s;
}

.forgot-box .input-group:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.forgot-box .input-group i {
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.forgot-box .input-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    direction: rtl; 
    text-align: right;
    background: transparent;
}

.forgot-box button {
    width: 100%;
    padding: 0.55rem;
    background: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    border-radius: 10px;
}

.forgot-box button:hover {
    background: var(--primary-dark);
}

.footer-section p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.footer-section a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.footer-section a:hover {
    text-decoration: underline;
}

/* responsive */
@media (max-width: 575.98px) {
    .footer-section .container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    .footer-right, .footer-left {
        text-align: center !important;
    }
}

.input-icon {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: #0d6efd;
    font-size: 1.1rem;
}

.join-section {
    background: #f3f4f6;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
}

.join-card {
    background: #fff;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.join-title {
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
}

.join-buttons .btn {
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.join-buttons .btn-primary:hover {
    background-color: #fff;
    color: #0d6efd;
    border: 2px solid #0d6efd;
}

.join-buttons .btn-outline-primary:hover {
    background-color: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
}

/* Responsive */
@media (max-width: 992px) {
    .join-card {
        flex-direction: column-reverse;
        text-align: center;
    }
    .join-text {
        text-align: center !important;
    }
    .join-buttons {
        justify-content: center !important;
        flex-wrap: wrap;
    }
    .join-buttons .btn {
        margin-bottom: 1rem;
    }
}

