@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&display=swap');

body {
    font-family: 'Amiri', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    direction: rtl;
    text-align: right;
}

.hero-section {
    min-height: 800px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.btn-primary {
    background-color: #d6d54a;
    border-color: #d6d54a;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e3f73;
    border-color: #1e3f73;
    transform: translateY(-2px);
}

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
    transform: translateY(-2px);
}

.nav-link {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffc107 !important;
}

.nav-item .btn {
    padding: 0.5rem 1.5rem;
    border-radius: 0.25rem;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.services-section .col-md-4 h3 {
    color: #d6d54a;
    margin-bottom: 15px;
}

.about-us-section, .courses-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

footer {
    background: linear-gradient(135deg, #343a40 0%, #212529 100%);
}

.form-control {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #d6d54a;
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #d6d54a;
}

.text-center h1, .text-center h2 {
    position: relative;
    display: inline-block;
}

.text-center h1::after, .text-center h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #d6d54a, #28a745);
}



/* Additional animations and responsive styles */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.scrolled {
    background: rgba(52, 58, 64, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    .nav {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-item {
        margin: 0.2rem 0;
    }
    
    header .container {
        flex-direction: column;
    }
    
    header img {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section p {
        font-size: 1rem;
    }
    
    .card-img-top {
        height: 150px;
    }
}

/* Arabic text improvements */
.arabic-text {
    font-family: 'Amiri', 'Times New Roman', serif;
    line-height: 1.8;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #d6d54a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e3f73;
}

/* Hover effects for navigation */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffc107;
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
}
main{

    min-height: 80vh;
}

