:root {
    --primary-purple: #764799;
    --accent-purple: #a569bd;
    --dark-gray: #333333;
    --light-gray: #F5F5F5;
    --white: #FFFFFF;
    --gradient-primary: linear-gradient(135deg, #764799 0%, #a569bd 100%);
    --gradient-secondary: linear-gradient(135deg, #a569bd 0%, #F5F5F5 100%);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--light-gray);
}

main { padding-top:84px; }

.text-primary {
    color: var(--primary-purple) !important;
}

.bg-primary {
    background-color: var(--primary-purple) !important;
}

.btn-primary {
    background-color: var(--primary-purple);
    border-color: var(--primary-purple);
    color: var(--white);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

.btn-outline-primary {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    background-color: var(--white);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
    color: var(--white);
    transform: translateY(-2px);
}

.navbar {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background-color: var(--white) !important;
    border-bottom: 2px solid var(--primary-purple);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1020;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-purple) !important;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    color: var(--primary-purple) !important;
}

.nav-link:hover {
    color: var(--accent-purple) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.hero-section {
    background: var(--gradient-primary);
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--white);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.feature-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

    .feature-card .section-img {
        width: 100%;
        aspect-ratio: 4/3;
        object-fit: cover;
        max-height: 180px;
        border-radius: 12px;
        margin-bottom: 24px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.program-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: none;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.program-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}

.program-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.program-time {
    font-size: 1rem;
    opacity: 0.9;
}

.program-body {
    padding: 2rem;
}

.program-feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.program-feature i {
    color: var(--primary-purple);
    margin-left: 0.75rem;
    font-size: 1.1rem;
}

.stats-section {
    background: var(--gradient-secondary);
    color: var(--dark-gray);
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
    margin-bottom: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-purple);
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    color: var(--dark-gray);
}

.cta-section {
    background: var(--primary-purple);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    color: var(--white);
}

.btn-cta {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    color: var(--white);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(142, 68, 173, 0.4);
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(165,105,189,0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-section {
        min-height: 60vh;
        text-align: center;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .program-card {
        margin-bottom: 2rem;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem var(--white), 0 0 0 0.25rem var(--primary-purple);
}

.form-control:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 0.2rem rgba(142, 68, 173, 0.25);
}

.contact-form {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-info {
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 15px;
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    margin-left: 1rem;
    opacity: 0.9;
    color: var(--primary-purple);
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(142, 68, 173, 0.3);
}

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

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(142, 68, 173, 0.4);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    transform: translateX(400px);
    transition: all 0.3s ease;
    max-width: 400px;
    border-left: 4px solid var(--primary-purple);
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-content i {
    color: var(--primary-purple);
    font-size: 1.2rem;
}

.notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    color: #666;
}

.notification-success {
    border-left-color: #28a745;
}

.notification-success .notification-content i {
    color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-error .notification-content i {
    color: #dc3545;
}

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

.accordion-button {
    background-color: transparent;
    border: none;
    font-weight: 600;
    color: var(--dark-gray);
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--light-gray);
    color: var(--primary-purple);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(142, 68, 173, 0.25);
    border-color: var(--primary-purple);
}

.accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.125);
    margin-bottom: 0.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.accordion-body {
    padding: 1.5rem;
    background-color: var(--light-gray);
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 1s ease-in-out infinite;
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .notification {
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .notification.show {
        transform: translateY(0);
    }
    
    .hero-section {
        padding: 2rem 0;
    }
    
    .feature-card {
        margin-bottom: 1.5rem;
    }
    
    .program-card {
        margin-bottom: 2rem;
    }
}

.rtl-support {
    direction: rtl;
    text-align: right;
}

.ltr-support {
    direction: ltr;
    text-align: left;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box, var(--gradient-primary) border-box;
}

.shadow-primary {
    box-shadow: 0 10px 30px rgba(142, 68, 173, 0.2);
}

.shadow-secondary {
    box-shadow: 0 10px 30px rgba(165, 105, 189, 0.2);
}

footer {
    background-color: var(--primary-purple);
    color: var(--white);
}

footer a,
footer .text-muted {
    color: var(--accent-purple) !important;
}

footer h6 {
    color: var(--white);
}


@@media (max-width: 991.98px) {
    .hero-content {
        padding: 30px 10px;
        text-align: center;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-section {
        min-height: 50vh;
    }

    .hero-content .btn {
        margin-bottom: 10px;
    }
}

@@media (max-width: 767.98px) {
    .hero-title {
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.3rem !important;
    }

    .feature-card {
        padding: 1rem;
    }

    .cta-title {
        font-size: 1.3rem !important;
    }

    .cta-section {
        padding: 2rem 0;
    }

    .stats-section {
        padding: 2rem 0;
    }

    .stat-number {
        font-size: 2rem;
    }
}

.section-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}