@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@200;300;400;500;700;800;900&display=swap');

/* ===================================
   Root Variables & Theme Colors
   =================================== */
:root {
    --bs-primary: #2563eb;
    --bs-primary-rgb: 37, 99, 235;
    --bg-color: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #111827;
    --text-color: #f9fafb;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --card-bg: #1f2937;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Global Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

body:lang(ar) {
    font-family: 'Tajawal', sans-serif;
}

[data-theme="dark"] body {
    background-color: #111827;
    color: #f9fafb;
}

.me-2:lang(ar) {
    margin-right: unset !important;
    margin-left: 0.75rem !important;
}

.me-3:lang(ar) {
    margin-right: unset !important;
    margin-left: 1rem !important;
}

.ms-2:lang(ar) {
    margin-left: unset !important;
    margin-right: 0.75rem !important;
}

.ms-3:lang(ar) {
    margin-left: unset !important;
    margin-right: 1rem !important;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
    background-color: var(--card-bg);
    transition: all 0.3s ease;
    z-index: 1030;
}

[data-theme="dark"] .header {
    background-color: #1f2937;
    border-bottom: 1px solid #374151;
}

.navbar {
    padding: 0.5rem 0;
}

.navbar .navbar-brand img {
    width: 100%;
    max-height: 50px;
    padding: 3px;
}

.nav-link {
    color: var(--text-color);
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--bs-primary);
}

.nav-link.active {
    color: var(--bs-primary) !important;
}

[data-theme="dark"] .nav-link {
    color: #d1d5db;
}

[data-theme="dark"] .navbar-toggler {
    border-color: #374151;
}

[data-theme="dark"] .navbar {
    background: #111827;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .nav-link {
    text-align: right;
}

[dir="rtl"] .bi-arrow-right {
    transform: rotate(180deg);
}

[dir="rtl"] .navbar-nav {
    text-align: right;
}

.navbar-nav .nav-item {
    margin-left: 0;
    margin-right: 0.5rem;
}

.navbar-collapse div {
    margin-left: auto !important;
}

.navbar-collapse div:lang(ar) {
    margin-right: auto !important;
    margin-left: unset !important;
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    padding: 60px 15px 60px 15px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

[data-theme="dark"] .hero-section {
    background-color: #111827;
}

.hero-img {
    height: 350px;
    object-fit: cover;
}

.hero-slider-wrapper {
    position: relative;
}

.carousel-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    z-index: 1;
}

.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.hero-decoration-1 {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

.hero-decoration-2 {
    position: absolute;
    top: -30px;
    left: -30px;
    width: 150px;
    height: 150px;
    background: rgba(147, 51, 234, 0.1);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

[dir="rtl"] .hero-decoration-1 {
    right: auto;
    left: -30px;
}

[dir="rtl"] .hero-decoration-2 {
    left: auto;
    right: -30px;
}

/* ===================================
   Categories Section
   =================================== */
.categories-section {
    height: 95vh;
    display: flex;
    align-items: center;
    padding: 60px 15px;
}

[data-theme="dark"] .categories-section {
    background-color: #111827;
}

.category-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .category-card {
    background-color: #1f2937;
    border-color: #374151;
}

.category-card h3 {
    min-height: 44px;
}

.category-icon {
    width: 60px;
    height: 60px;
}

.row .col-md-6.col-lg-3:nth-child(1) .category-icon {
    background: #dbeafe;
    color: #155dfb;
}

.row .col-md-6.col-lg-3:nth-child(2) .category-icon {
    background: #f3e8ff;
    color: #9810fa;
}

.row .col-md-6.col-lg-3:nth-child(3) .category-icon {
    background: #dcfce7;
    color: #00a63e;
}

.row .col-md-6.col-lg-3:nth-child(4) .category-icon {
    background: #ffedd4;
    color: #f54900;
}

/* ===================================
   Courses Section
   =================================== */
.courses-section {
    height: 95vh;
    display: flex;
    align-items: center;
    padding: 60px 15px;
}

[data-theme="dark"] .courses-section {
    background-color: #1f2937;
}

.courses-slider {
    margin: 0px 20px;
    padding: 0px 30px;
    overflow: visible;
}

.courses-slider .slick-slide {
    box-sizing: border-box;
}

.courses-slider .slick-list {
    overflow: hidden;
}

.swiper-wrapper {
    box-sizing: border-box;
}

.course-card {
    padding: 15px;
    width: 100%;
}

.course-card .card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.course-card .card-img,
.course-card .card-img-top {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

[data-theme="dark"] .course-card .card {
    background-color: #1f2937;
    color: #f9fafb;
}

.card-body {
    padding: 20px;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Slick Carousel Custom Styles */
.slick-prev,
.slick-next {
    width: 40px;
    height: 40px;
    z-index: 1;
}

.slick-prev {
    left: -40px;
}

.slick-next {
    right: -40px;
}

.slick-prev,
.slick-next {
    z-index: 20;
}

.slick-prev:before,
.slick-next:before {
    font-size: 35px;
    color: var(--bs-primary);
}

[data-theme="dark"] .slick-prev:before,
[data-theme="dark"] .slick-next:before {
    color: #60a5fa;
}

.slick-dots {
    text-align: center;
    justify-self: center;
}

.slick-prev:before {
    content: "\f284";
    font-family: "bootstrap-icons";
}

.slick-next:before {
    content: "\f285";
    font-family: "bootstrap-icons";
}

[dir='rtl'] .slick-prev:before {
    content: "\f285";
}

[dir='rtl'] .slick-next:before {
    content: "\f284";
}


/* ===================================
   Coaching Section
   =================================== */
.coaching-section {
    height: 95vh;
    display: flex;
    align-items: center;
    padding: 60px 15px;
    background: linear-gradient(135deg, #00d1f4, #53a5fe, #69c7ff);
}

/* Badge */
.coaching-section .premium-badge {
    background: rgba(255, 255, 255, .2);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
}

/* Image Box */
.coaching-section .coaching-image-box img {
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Feature Cards */

.coaching-section .feature-card {
    background: rgba(255, 255, 255, .15);
    padding: 20px 25px;
    border-radius: 18px;
    color: #fff;
    height: 100%;
    transition: .3s ease;
    border: 1px solid color-mix(in oklab, #ffffff 20%, transparent);
}

.coaching-section .feature-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, .22);
}

.coaching-section .feature-card i {
    font-size: 35px;
    margin-bottom: 10px;
    display: block;
}

.coaching-section .feature-card h6 {
    font-weight: 600;
    margin-bottom: 8px;
}

.coaching-section .feature-card p {
    font-size: 14px;
    opacity: .9;
}

/* ===================================
   Stats Section
   =================================== */
.stats-section {
    padding: 60px 15px;
}

/* Card */

.stat-item {
    background: #fff;
    padding: 35px 30px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .06);
    text-align: left;
    height: 100%;
    transition: .3s ease;
}

.stat-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .08);
}

/* Icon Box */

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
}

.stat-icon i {
    font-size: 22px;
    color: #fff;
}

/* Colors */

.stat-icon.blue {
    background: #2563eb;
}

.stat-icon.purple {
    background: #9333ea;
}

.stat-icon.green {
    background: #16a34a;
}

/* Numbers */

.stat-number {
    font-size: 36px;
    font-weight: 500;
    margin-bottom: 5px;
    color: #111827;
    text-align: initial;
}

/* Text */

.stat-item p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    text-align: initial;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
}

.stat-icon.green {
    background: linear-gradient(135deg, #16a34a, #22c55e);
}

/* ===================================
   Testimonials Section
   =================================== */
/* =========================
   Testimonials Section Style
========================= */

.testimonials-section {
    padding: 80px 15px;

}

/* Title spacing */
.testimonials-section h2 {
    font-weight: 700;
}

/* Card Design */
.testimonials-section .card {
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all .3s ease;
}

.testimonials-section .card-body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.testimonials-section .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Stars */
.testimonials-section .text-warning i {
    font-size: 18px;
    margin-right: 3px;
}

/* Text Content */
.testimonials-section .card-text {
    font-size: 15px;
    line-height: 1.7;
    color: #374151;
    flex-grow: 1;
}

.testimonials-section .testimonial-user {
    margin-top: auto;
}

/* Avatar Circle */
.avatar-placeholder {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px !important;
}

/* Avatar Icon */
.avatar-placeholder i {
    font-size: 22px;
}

/* Name */
.testimonials-section h6 {
    font-weight: 600;
}

/* Job Title */
.testimonials-section small {
    font-size: 13px;
}

/* ===================================
   Pricing Section
   =================================== */
.pricing-section {
    height: 95vh;
    display: flex;
    align-items: center;
    padding: 60px 15px;
}

[data-theme="dark"] .pricing-section {
    background-color: #111827;
}

[data-theme="dark"] .pricing-section .card {
    background-color: #1f2937;
    color: #f9fafb;
}

.pricing-section .card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.pricing-section .card:hover {
    transform: translateY(-10px);
}

.pricing-section .border-primary {
    border-width: 2px !important;
    scale: 1.03;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background-color: #101828;
    padding: 60px 0 30px;
}

[data-theme="dark"] .footer {
    background-color: #0f172a;
}

.footer a:hover {
    color: var(--bs-primary) !important;
}

.footer .email {
    background-color: #1e2939;
    border: 1px solid rgb(54, 65, 83);
    max-width: 450px;
    color: #fff !important;
    padding: 10px;
    border-radius: 8px;
    font-size: 1rem !important;
    height: 45px;
}

.footer .email:focus {
    background-color: #1e2939;
}

.footer button {
    border-radius: 8px;
}

.footer hr {
    color: #4d6791;
}

.footer .text-white-50 li a {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ===================================
   WhatsApp Button
   =================================== */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

[dir="rtl"] .whatsapp-button {
    right: auto;
    left: 30px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* ===================================
   Utility Classes
   =================================== */
.text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .text-muted {
    color: #9ca3af !important;
}

[data-theme="dark"] .bg-light {
    background-color: #1f2937 !important;
}

.mobile {
    display: none !important;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1200px) {
    .mobile {
        display: inline-block !important;
    }

    .navbar .navbar-nav>li {
        padding: 6px 0;
    }

    .navbar-collapse .gap-2 {
        gap: unset !important;
    }

    .navbar-collapse div,
    .navbar-collapse div:lang(ar) {
        margin-right: unset !important;
        margin-left: unset !important;
    }

    .navbar-collapse button {
        margin-right:5px !important;
    }

    .navbar-collapse button:lang(ar) {
        margin-right:unset !important;
        margin-left:5px !important;
    }
}

@media (max-width: 991px) {
    .hero-section {
        padding: 60px 15px 60px 15px;
    }

    .slick-prev {
        left: 10px;
    }

    .slick-next {
        right: 10px;
    }
}

@media (max-width: 767px) {
    section {
        display: block !important;
        height: auto !important;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-img {
        height: 300px;
    }

    .display-3 {
        font-size: 2.5rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 2rem;
    }

    .whatsapp-button {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    [dir="rtl"] .whatsapp-button {
        right: auto;
        left: 20px;
    }

    .testimonials-section .card {
        margin-bottom: 15px;
    }
}

/* ===================================
   Smooth Scrolling
   =================================== */
html {
    scroll-behavior: smooth;
}

/* ===================================
   Loading Animation
   =================================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}