:root {
    --primary-color: #008060;
    --primary-hover: #00664d;
    --bg-light: #E8F6F3;
    --text-dark: #1D1D1D;
    --text-gray: #777;
    --text-light: #F5F5F5;
    --border-color: #ECECEC;
    --border-radius: 6px;
    --border-radius-lg: 12px;
    --transition: all 0.3s ease;
}

* {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    background-color: #fff;
    color: var(--text-dark);
    line-height: 1.6;
    text-align: right;
     scroll-behavior: smooth;
}

.rukn-logo{
    width: 118.5px;
    height: 40px;
}

/* ============================================
   NAVIGATION STYLES
   ============================================ */
.navbar {
    border-bottom: 1px solid var(--border-color);
    padding: 1.125rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.navbar-nav {
    margin-right: auto;
    margin-left: 0;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transition);
    text-align: right;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

/* ============================================
   BUTTON STYLES (Bootstrap Override)
   ============================================ */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-hover);
    background-color: var(--bg-light);
    font-weight: 500;
    transition: var(--transition);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-search {
        border: 1px solid #333;
        border-radius: 8px;
        width: 40px;
        height: 40px;
        background-color: transparent;
        transition: var(--transition);
        display: flex;
        align-items: center;
        justify-content: center;

}

.btn-search:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background-color: var(--bg-light);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    direction: ltr;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 640px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.25rem;
    line-height: 1.8;
    /*width: 639.02px;*/
    color: #333;
    margin-bottom: 2rem;
    text-align: right;
    direction: rtl;
}

.ph-magnifying-glass{
    font-size: 22.22px;
}

.gif-image{
    position: absolute;
    width: 368px;
    height: 146.31px;
    left: 408px;
    top: 380px;
    object-fit: cover;
}

/* ============================================
   CARD COMPONENTS
   ============================================ */
.course-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 0.375rem;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.course-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
}

.course-image {
    width: 100%;
    height: 216px;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.image-placeholder {
    width: 100%;
    height: 216px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #d0ebe5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 0.875rem;
    border-radius: var(--border-radius);
}

.hero-image-placeholder {
    height: 100%;
    min-height: 400px;
}

.ph-play-circle{
    font-size: 20px;
}

/* ============================================
   BADGE COMPONENTS
   ============================================ */
.badge-primary {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.375rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-secondary {
    background-color: var(--text-light);
    color: var(--text-dark);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.badge-secondary:hover {
    background-color: #e0e0e0;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.section-title {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0;
    text-align: right;
}

.course-category {
    color: var(--text-gray);
    font-size: 0.75rem;
    font-weight: 500;
}

.course-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.6;
    margin: 0.5rem 0 1rem;
    min-height: 54px;
    display: flex;
    align-items: center;
}

/* ============================================
   ICON STYLES
   ============================================ */
.icon-play {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-left: 0.25rem;
}

.icon-sm {
    width: 14px;
    height: 14px;
    margin-left: 0.25rem;
}

/* ============================================
   FOOTER STYLES
   ============================================ */
.footer {
    background-color: #fff;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.footer-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
}

.social-link i {
    font-size: 32px;
    
}

.social-link {
    color: var(--text-dark);
    font-size: 1.25rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 40px;
    height: 40px;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary-custom {
    color: var(--primary-color);
}

.bg-light-custom {
    background-color: var(--bg-light);
}

.border-custom {
    border-color: var(--border-color);
}


/*====== signle course=========*/

        /* Hero Section */
        .hero-section-single{
            background-color: #e8f6f3;
            padding: 32px 0;
            
        }
        
        .hero-title-single {
            font-size: 30px;
            font-weight: 700;
            color: #1d1d1d;
            margin-bottom: 24px;
            max-width: 1312px;
        }
        
        .video-container {
            position: relative;
            height: 700px;
            border-radius: 20px;
            overflow: hidden;
            background-size: cover;
            background-position: center;
            max-width: 1312px;
        }
        
        .video-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            max-width: 1312px;
        }
        
        .play-icon {
            width: 72px;
            height: 72px;
            background-color: rgba(245, 245, 245, 0.9);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        /* Content Sections */
        .content-section {
            padding: 32px 0;
        }
        
        .section-title {
            font-size: 30px;
            font-weight: 700;
            color: #1d1d1d;
            margin-bottom: 24px;
        }
        
        .section-text {
            font-size: 24px;
            font-weight: 400;
            color: #000000;
            line-height: 1.6;
        }
        
        .section-text ul {
            list-style-type: disc;
            padding-right: 20px;
        }
        
        .section-text li {
            margin-bottom: 8px;
        }

        .container-fluid {
            max-width: 1312px;
            margin: 0 auto;
}

/*==========  all courses page  =======*/

        
        /* Hero Section */
        .hero-section-secondary{
            background-color: #E8F6F3;
            padding: 32px 0;
        }
        
        .hero-title-secondary {
            font-size: 30px;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 24px;
        }
        
        .search-input,
        .filter-select {
            background-color: #f9fafb;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            padding: 10px;
            height: 50px;
            font-size: 16px;
        }
        
        .search-input {
            text-align: right;
        }
        
        .filter-select {
            width: 200px;
        }

    .hero-meta .badge {
        font-size: 14px;
        padding: 6px 12px;
        border-radius: 999px;
  
}
        
/*==========  all courses page  =======*/
    
                
        /* Responsive adjustments */
        @media (max-width: 991px) {
            .hero-title {
                font-size: 24px;
            }
            
            .filter-select {
                width: 100%;
                margin-bottom: 12px;
            }
            
            .navbar-nav {
                text-align: center;
                margin-top: 16px;
            }
        }
        
        @media (max-width: 767px) {
            .hero-title {
                font-size: 20px;
            }
            
            .course-title {
                font-size: 16px;
            }
            
            .footer-link {
                display: block;
                margin: 8px 0;
            }
        }

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-text {
        font-size: 1.125rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .navbar-collapse {
        padding-top: 1rem;
    }
}

@media (max-width: 767.98px) {
    .hero-image {
        border-top-left-radius: 80px;
    }

    .hero-title {
        font-size: 1.875rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .hero-image-placeholder {
        min-height: 300px;
    }

    .course-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-outline-primary {
        width: 100%;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .video-container{
        height: auto;
    }
}
