/* =============================================
   مساحات للتدريب - Custom Styles
   Brand Colors: Navy Blue & Teal/Green
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800&family=Tajawal:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #0d2d4e;       /* Deep Navy Blue */
    --primary-light: #1a4a7a;       /* Lighter Navy */
    --secondary-color: #10b981;     /* Emerald/Teal Green */
    --secondary-dark: #059669;      /* Dark Teal */
    --accent-color: #f59e0b;        /* Amber accent */
    --bg-light: #f0f7ff;            /* Light blue-tinted background */
    --text-muted-custom: #64748b;
    --card-radius: 16px;
    --transition: all 0.3s ease;
}

/* ---- Base ---- */
body {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    direction: rtl;
    background-color: #f8fafc;
    color: #1e293b;
}

a { text-decoration: none; }

/* ---- Navbar ---- */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%) !important;
    padding: 0.9rem 0;
    box-shadow: 0 2px 20px rgba(13, 45, 78, 0.25);
}
.navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.navbar-brand img {
    height: 44px;
    width: 44px;
    object-fit: contain;
    border-radius: 10px;
}
.navbar-nav .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.12);
}
.navbar .btn-register {
    background: var(--secondary-color);
    color: #fff;
    border: none;
    font-weight: 700;
    padding: 0.45rem 1.4rem;
    border-radius: 50px;
    transition: var(--transition);
    font-size: 0.9rem;
}
.navbar .btn-register:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}
.navbar-toggler {
    border-color: rgba(255,255,255,0.4);
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Hero ---- */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 60%, #1e6b9a 100%);
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(16,185,129,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: #f8fafc;
    clip-path: ellipse(55% 100% at 50% 100%);
}
.hero-badge {
    display: inline-block;
    background: rgba(16,185,129,0.2);
    color: #6ee7b7;
    border: 1px solid rgba(16,185,129,0.3);
    padding: 0.35rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    letter-spacing: 0.5px;
}
.hero-section h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.3;
}
.hero-section .lead {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
}
.hero-stats .stat-item {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(4px);
}
.hero-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary-color);
    line-height: 1;
}
.hero-stats .stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.75);
    margin-top: 0.3rem;
}

/* ---- Section Title ---- */
.section-title {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.75rem;
}
.section-divider {
    width: 55px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 4px;
    margin: 0.75rem auto 0;
}

/* ---- Course Cards ---- */
.course-card {
    border-radius: var(--card-radius) !important;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.06) !important;
    background: #fff;
}
.course-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(13, 45, 78, 0.12) !important;
}
.course-card .card-img-top {
    border-radius: var(--card-radius) var(--card-radius) 0 0 !important;
}
.course-card .course-badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
}
.course-card .price-tag {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--secondary-dark);
}
.course-card .card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.4;
}
.course-card .meta-item {
    font-size: 0.82rem;
    color: var(--text-muted-custom);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}
.course-card .meta-item i {
    color: var(--secondary-color);
    width: 14px;
}
.btn-enroll {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff;
    border: none;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
    font-size: 0.88rem;
}
.btn-enroll:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(13, 45, 78, 0.25);
}
.btn-outline-primary {
    border-color: var(--primary-color) !important;
    color: var(--primary-color) !important;
}
.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}
.no-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-light), #e2eeff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary-light);
}

/* ---- Auth Forms ---- */
.auth-card {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(13, 45, 78, 0.12);
}
.auth-header {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px 20px 0 0;
    padding: 2rem;
    text-align: center;
    color: white;
}
.form-control, .form-select {
    border-radius: 10px;
    padding: 0.65rem 1rem;
    border: 1.5px solid #e2e8f0;
    font-family: 'Cairo', sans-serif;
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
.form-label {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.9rem;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border: none;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.7rem 2rem;
    font-size: 1rem;
    transition: var(--transition);
    font-family: 'Cairo', sans-serif;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(13, 45, 78, 0.3);
}

/* ---- Footer ---- */
.site-footer {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: rgba(255,255,255,0.85);
    padding: 2.5rem 0 1.5rem;
    margin-top: 5rem;
}
.site-footer .footer-brand {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}
.site-footer p {
    color: rgba(255,255,255,0.7);
    font-size: 0.87rem;
}
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 1rem;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
}

/* ---- Alerts & Validation ---- */
.alert {
    border-radius: 12px;
    font-weight: 500;
    border: none;
}
.invalid-feedback { font-size: 0.82rem; }

/* ---- Utilities ---- */
.text-primary { color: var(--primary-color) !important; }
.text-secondary-custom { color: var(--secondary-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }
.bg-secondary-custom { background-color: var(--secondary-color) !important; }
