

@font-face {
    font-family: 'Hacen-Beirut';
    src: url('/public/assets/fonts/Hacen-Beirut-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'THARWATEMARARUQAALIGHT';
    src: url('/public/assets/fonts/THARWATEMARARUQAALIGHT.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

.navbar, .navbar *, .navbar-brand, .nav-link, .navbar-nav, .navbar-nav * {
    font-family: 'Hacen-Beirut', Arial, sans-serif !important;
}

:root {
    --primary-color: #1B5C3F;
    --secondary-color: #2d8f6c;
    --accent-color: #06b6d4;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --background-light: #f8fafc;
    --background-dark: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
}

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

html, body {
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('/photos/mosaic1.jpg');
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-primary);
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.navbar {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

.nav-link {
    color: var(--text-primary) !important;
    font-weight: 500;
    transition: color 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
}

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

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.course-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

.badge-info {
    background-color: #0dcaf0;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.badge-danger {
    background-color: #dc3545;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
}

.alert {
    border-radius: 8px;
    border: none;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

.alert-info {
    background-color: #cfe2ff;
    color: #084298;
}

.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

footer {
    margin-top: auto;
    background-color: var(--background-dark);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.progress {
    height: 1.5rem;
    border-radius: 8px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.6s ease;
}

input::placeholder {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-secondary) !important;
}

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

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

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

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .course-card {
        margin-bottom: 1.5rem;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar .nav-link {
        font-size: 1.25rem !important;
        padding: 0.7rem 1.5rem !important;
        margin: 0.4rem 0 !important;
        display: block !important;
        text-align: center !important;
    }
    
    .navbar-toggler {
        padding: 0.5rem 0.75rem !important;
    }
    
    .navbar-toggler i {
        font-size: 2rem !important;
    }
    
    .navbar .dropdown-toggle {
        font-size: 1.25rem !important;
        padding: 0.7rem 1.5rem !important;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;
}

.shadow {
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.175) !important;
}

.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.spinner-border {
    color: var(--primary-color);
}

.modal, .modal.fade, .modal.show, .modal.showing {
    transition: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
}

.modal-dialog {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    margin: 1.75rem auto !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -o-transform: none !important;
}

.modal-backdrop {
    transition: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
}

.modal *, .modal-dialog *, .modal-content *, .modal-body *, .modal-header *, .modal-footer * {
    transition: none !important;
    animation: none !important;
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
}

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

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

article img, .article-content img, .course-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}
