/**
 * Wafeeq Brand Colors
 * ==================
 * 
 * Primary Colors:
 * - Purple: #4d267c (R:77, G:38, B:124)
 * - Orange: #ef8010 (R:239, G:128, B:16)
 * - Red:    #c9104c (R:201, G:16, B:76)
 * 
 * These are the ONLY brand colors to be used across the site.
 * Do NOT use any other color variations.
 */

:root {
    /* Primary Brand Colors */
    --brand-purple: #4d267c;
    --brand-purple-light: #6b3a9e;
    --brand-purple-dark: #3d1e62;
    --brand-purple-rgb: 77, 38, 124;
    
    --brand-orange: #ef8010;
    --brand-orange-light: #ff9a2e;
    --brand-orange-dark: #d97000;
    --brand-orange-rgb: 239, 128, 16;
    
    --brand-red: #c9104c;
    --brand-red-light: #e01a5a;
    --brand-red-dark: #a00d3e;
    --brand-red-rgb: 201, 16, 76;
    
    /* Neutral Colors */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-muted: #999999;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #dee2e6;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-orange) 100%);
    --gradient-purple: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 100%);
    --gradient-orange: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange-light) 100%);
    --gradient-header: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-purple-light) 50%, var(--brand-orange) 100%);
}

/* ============================================
   UTILITY CLASSES FOR BRAND COLORS
   ============================================ */

/* Background Colors */
.bg-brand-purple { background-color: var(--brand-purple) !important; }
.bg-brand-orange { background-color: var(--brand-orange) !important; }
.bg-brand-red { background-color: var(--brand-red) !important; }
.bg-gradient-primary { background: var(--gradient-primary) !important; }
.bg-gradient-purple { background: var(--gradient-purple) !important; }
.bg-gradient-header { background: var(--gradient-header) !important; }

/* Text Colors */
.text-brand-purple { color: var(--brand-purple) !important; }
.text-brand-orange { color: var(--brand-orange) !important; }
.text-brand-red { color: var(--brand-red) !important; }

/* Border Colors */
.border-brand-purple { border-color: var(--brand-purple) !important; }
.border-brand-orange { border-color: var(--brand-orange) !important; }
.border-brand-red { border-color: var(--brand-red) !important; }

/* ============================================
   BUTTON STYLES
   ============================================ */

.btn-brand-purple {
    background: var(--gradient-purple);
    color: white !important;
    border: none;
    transition: all 0.3s ease;
}
.btn-brand-purple:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--brand-purple-rgb), 0.4);
    color: white !important;
}

.btn-brand-orange {
    background: var(--gradient-orange);
    color: white !important;
    border: none;
    transition: all 0.3s ease;
}
.btn-brand-orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--brand-orange-rgb), 0.4);
    color: white !important;
}

.btn-brand-primary {
    background: var(--gradient-primary);
    color: white !important;
    border: none;
    transition: all 0.3s ease;
}
.btn-brand-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(var(--brand-purple-rgb), 0.4);
    color: white !important;
}

.btn-outline-brand-purple {
    background: transparent;
    color: var(--brand-purple);
    border: 2px solid var(--brand-purple);
    transition: all 0.3s ease;
}
.btn-outline-brand-purple:hover {
    background: var(--brand-purple);
    color: white !important;
}

/* ============================================
   LINK STYLES
   ============================================ */

a.link-brand-purple {
    color: var(--brand-purple);
    transition: color 0.3s ease;
}
a.link-brand-purple:hover {
    color: var(--brand-purple-dark);
}

a.link-brand-orange {
    color: var(--brand-orange);
    transition: color 0.3s ease;
}
a.link-brand-orange:hover {
    color: var(--brand-orange-dark);
}

/* ============================================
   CARD & BOX STYLES
   ============================================ */

.card-brand-header {
    background: var(--gradient-purple);
    color: white;
    border-radius: 15px 15px 0 0;
}

.box-brand-border {
    border: 2px solid var(--brand-purple);
    border-radius: 10px;
}

/* ============================================
   BADGE STYLES
   ============================================ */

.badge-brand-purple {
    background-color: var(--brand-purple);
    color: white;
}

.badge-brand-orange {
    background-color: var(--brand-orange);
    color: white;
}

.badge-brand-red {
    background-color: var(--brand-red);
    color: white;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */

.form-control:focus {
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 0.2rem rgba(var(--brand-purple-rgb), 0.25);
}

.form-check-input:checked {
    background-color: var(--brand-purple);
    border-color: var(--brand-purple);
}

/* ============================================
   PAGE HEADERS (HERO SECTIONS)
   ============================================ */

.page-hero {
    background: var(--gradient-header);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding: 60px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(var(--brand-purple-rgb), 0.3);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.page-hero h1 {
    position: relative;
    z-index: 1;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.page-hero p {
    position: relative;
    z-index: 1;
    opacity: 0.95;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* ============================================
   ICON ANIMATIONS
   ============================================ */

.icon-bounce {
    animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

/* ============================================
   ALERTS & NOTIFICATIONS
   ============================================ */

.alert-brand-purple {
    background-color: rgba(var(--brand-purple-rgb), 0.1);
    border-color: var(--brand-purple);
    color: var(--brand-purple);
}

.alert-brand-orange {
    background-color: rgba(var(--brand-orange-rgb), 0.1);
    border-color: var(--brand-orange);
    color: var(--brand-orange-dark);
}

.alert-brand-red {
    background-color: rgba(var(--brand-red-rgb), 0.1);
    border-color: var(--brand-red);
    color: var(--brand-red);
}

/* ============================================
   PROGRESS BARS
   ============================================ */

.progress-bar-brand-purple {
    background: var(--gradient-purple);
}

.progress-bar-brand-orange {
    background: var(--gradient-orange);
}

/* ============================================
   SELECTION & HIGHLIGHT
   ============================================ */

::selection {
    background-color: var(--brand-purple);
    color: white;
}

::-moz-selection {
    background-color: var(--brand-purple);
    color: white;
}

/* ============================================
   SCROLLBAR (WebKit browsers)
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-purple);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-purple-dark);
}
/**
 * Wafeeq Platform - UI/UX Improvements
 * تحسينات واجهة المستخدم
 * Version: 1.0
 */

/* ==========================================
   GLOBAL IMPROVEMENTS
   ========================================== */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Better focus states for accessibility */
*:focus {
    outline: 2px solid #683795;
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #683795;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(104, 55, 149, 0.2);
}

/* Improve text selection */
::selection {
    background-color: #683795;
    color: #fff;
}

::-moz-selection {
    background-color: #683795;
    color: #fff;
}

/* ==========================================
   BUTTONS IMPROVEMENTS
   ========================================== */

.btn {
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* Primary button */
.btn-primary,
.-register {
    background: linear-gradient(135deg, #ef8022 0%, #d97319 100%);
    border: none;
    color: #fff;
    padding: 10px 25px;
}

.btn-primary:hover,
.-register:hover {
    background: linear-gradient(135deg, #d97319 0%, #c56615 100%);
    box-shadow: 0 4px 15px rgba(239, 128, 34, 0.4);
}

/* Secondary button */
.btn-secondary {
    background: linear-gradient(135deg, #683795 0%, #4a2569 100%);
    border: none;
    color: #fff;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #4a2569 0%, #3a1d53 100%);
    box-shadow: 0 4px 15px rgba(104, 55, 149, 0.4);
}

/* ==========================================
   FORM IMPROVEMENTS
   ========================================== */

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #683795;
    box-shadow: 0 0 0 3px rgba(104, 55, 149, 0.1);
}

.form-control:hover:not(:focus) {
    border-color: #b0b0b0;
}

/* Placeholder styling */
.form-control::placeholder {
    color: #999;
    opacity: 0.8;
}

/* Input groups */
.input-group {
    border-radius: 10px;
    overflow: hidden;
}

/* ==========================================
   CARDS IMPROVEMENTS
   ========================================== */

.card,
.course-card,
.team-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover,
.course-card:hover,
.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

/* ==========================================
   NAVIGATION IMPROVEMENTS
   ========================================== */

.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.98) !important;
}

.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #683795;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Mobile menu improvements */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: #fff;
        padding: 20px;
        border-radius: 15px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
        margin-top: 15px;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }
}

/* ==========================================
   LOADING STATES
   ========================================== */

.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f0f0f0;
    border-top-color: #683795;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ==========================================
   ALERTS & NOTIFICATIONS
   ========================================== */

.alert {
    border: none;
    border-radius: 12px;
    padding: 15px 20px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-success {
    background-color: #e8d8f0;
    color: #4d267c;
    border-right: 4px solid #4d267c;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-right: 4px solid #c9104c;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-right: 4px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-right: 4px solid #17a2b8;
}

/* ==========================================
   COURSE CARDS SPECIFIC
   ========================================== */

.course-price {
    font-size: 1.2em;
    font-weight: 700;
    color: #ef8022;
}

.course-price .old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.8em;
    margin-right: 8px;
}

.course-rating {
    color: #ffc107;
}

.course-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ef8022, #d97319);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ==========================================
   VIDEO PLAYER IMPROVEMENTS
   ========================================== */

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

.video-container iframe {
    border-radius: 15px;
}

/* ==========================================
   FOOTER IMPROVEMENTS
   ========================================== */

/* Footer background - only in light mode */
body:not(.dark-mode) footer {
    background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 100%);
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #683795 !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin: 0 5px;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: #683795;
    color: #fff !important;
}

/* ==========================================
   MOBILE IMPROVEMENTS
   ========================================== */

@media (max-width: 768px) {
    /* Better touch targets */
    .btn,
    .nav-link,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Larger form inputs on mobile */
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 14px 16px;
    }
    
    /* Better spacing */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    /* Hide scroll on body when mobile menu open */
    body.menu-open {
        overflow: hidden;
    }
    
    /* Course cards on mobile */
    .course-card {
        margin-bottom: 20px;
    }
    
    /* Section spacing */
    section {
        padding: 40px 0;
    }
    
    h1, .h1 {
        font-size: 1.8rem;
    }
    
    h2, .h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    /* Stack buttons on small screens */
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-group-mobile .btn {
        width: 100%;
    }
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #683795;
    color: #fff;
    padding: 8px 16px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 2px solid currentColor;
    }
    
    .form-control {
        border: 2px solid #000;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    header,
    footer,
    nav,
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
    
    .page-break {
        page-break-before: always;
    }
}

/* ==========================================
   DARK MODE SUPPORT (Optional)
   ========================================== */

@media (prefers-color-scheme: dark) {
    /* Uncomment if you want to support dark mode
    :root {
        --bg-color: #1a1a2e;
        --text-color: #f5f5f5;
        --card-bg: #16213e;
    }
    
    body {
        background-color: var(--bg-color);
        color: var(--text-color);
    }
    
    .card {
        background-color: var(--card-bg);
    }
    */
}
/**
 * Owl Carousel v2.3.4
 * Copyright 2013-2018 David Deutsch
 * Licensed under: SEE LICENSE IN https://github.com/OwlCarousel2/OwlCarousel2/blob/master/LICENSE
 */
/*
 *  Owl Carousel - Core
 */
.owl-carousel {
  display: none;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  /* position relative and z-index fix webkit rendering fonts issue */
  position: relative;
  z-index: 1; }
  .owl-carousel .owl-stage {
    position: relative;
    -ms-touch-action: pan-Y;
    touch-action: manipulation;
    -moz-backface-visibility: hidden;
    /* fix firefox animation glitch */ }
  .owl-carousel .owl-stage:after {
    content: ".";
    display: block;
    clear: both;
    visibility: hidden;
    line-height: 0;
    height: 0; }
  .owl-carousel .owl-stage-outer {
    position: relative;
    overflow: hidden;
    /* fix for flashing background */
    -webkit-transform: translate3d(0px, 0px, 0px); }
  .owl-carousel .owl-wrapper,
  .owl-carousel .owl-item {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0); }
  .owl-carousel .owl-item {
    position: relative;
    min-height: 1px;
    float: left;
    -webkit-backface-visibility: hidden;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none; }
  .owl-carousel .owl-item img {
    display: block;
    width: 100%; }
  .owl-carousel .owl-nav.disabled,
  .owl-carousel .owl-dots.disabled {
    display: none; }
  .owl-carousel .owl-nav .owl-prev,
  .owl-carousel .owl-nav .owl-next,
  .owl-carousel .owl-dot {
    cursor: pointer;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; }
  .owl-carousel .owl-nav button.owl-prev,
  .owl-carousel .owl-nav button.owl-next,
  .owl-carousel button.owl-dot {
    background: none;
    color: inherit;
    border: none;
    padding: 0 !important;
    font: inherit; }
  .owl-carousel.owl-loaded {
    display: block; }
  .owl-carousel.owl-loading {
    opacity: 0;
    display: block; }
  .owl-carousel.owl-hidden {
    opacity: 0; }
  .owl-carousel.owl-refresh .owl-item {
    visibility: hidden; }
  .owl-carousel.owl-drag .owl-item {
    -ms-touch-action: pan-y;
        touch-action: pan-y;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none; }
  .owl-carousel.owl-grab {
    cursor: move;
    cursor: grab; }
  .owl-carousel.owl-rtl {
    direction: rtl; }
  .owl-carousel.owl-rtl .owl-item {
    float: right; }

/* No Js */
.no-js .owl-carousel {
  display: block; }

/*
 *  Owl Carousel - Animate Plugin
 */
.owl-carousel .animated {
  animation-duration: 1000ms;
  animation-fill-mode: both; }

.owl-carousel .owl-animated-in {
  z-index: 0; }

.owl-carousel .owl-animated-out {
  z-index: 1; }

.owl-carousel .fadeOut {
  animation-name: fadeOut; }

@keyframes fadeOut {
  0% {
    opacity: 1; }
  100% {
    opacity: 0; } }

/*
 * 	Owl Carousel - Auto Height Plugin
 */
.owl-height {
  transition: height 500ms ease-in-out; }

/*
 * 	Owl Carousel - Lazy Load Plugin
 */
.owl-carousel .owl-item {
  /**
			This is introduced due to a bug in IE11 where lazy loading combined with autoheight plugin causes a wrong
			calculation of the height of the owl-item that breaks page layouts
		 */ }
  .owl-carousel .owl-item .owl-lazy {
    opacity: 0;
    transition: opacity 400ms ease; }
  .owl-carousel .owl-item .owl-lazy[src^=""], .owl-carousel .owl-item .owl-lazy:not([src]) {
    max-height: 0; }
  .owl-carousel .owl-item img.owl-lazy {
    transform-style: preserve-3d; }

/*
 * 	Owl Carousel - Video Plugin
 */
.owl-carousel .owl-video-wrapper {
  position: relative;
  height: 100%;
  background: #000; }

.owl-carousel .owl-video-play-icon {
  position: absolute;
  height: 80px;
  width: 80px;
  left: 50%;
  top: 50%;
  margin-left: -40px;
  margin-top: -40px;
  background: url("owl.video.play.png") no-repeat;
  cursor: pointer;
  z-index: 1;
  -webkit-backface-visibility: hidden;
  transition: transform 100ms ease; }

.owl-carousel .owl-video-play-icon:hover {
  -ms-transform: scale(1.3, 1.3);
      transform: scale(1.3, 1.3); }

.owl-carousel .owl-video-playing .owl-video-tn,
.owl-carousel .owl-video-playing .owl-video-play-icon {
  display: none; }

.owl-carousel .owl-video-tn {
  opacity: 0;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  transition: opacity 400ms ease; }

.owl-carousel .owl-video-frame {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%; }
