/* Global Styles */
:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #333;
    --text-muted: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

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

/* Education Hero Slider */
.education-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 0;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 87vh;
    min-height: 500px;
    overflow: hidden;
    background: #f5f7fa;
    touch-action: pan-y;
    padding: 0;
    background: #f8f9fa;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    margin-bottom: 0;
    box-shadow: inset 0 -10px 30px rgba(0, 0, 0, 0.05);
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.5s ease;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    transform: translateX(0);
}

.slide.slide-next {
    transform: translateX(20px);
}

.slide.slide-prev {
    transform: translateX(-20px);
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) !important;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
    opacity: 0.9;
} 

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #fff;
    text-align: center;
    width: 75%;
    max-width: 800px;
    padding: 35px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 15px;
    box-shadow: 0 4px 24px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.5s ease;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) translateY(20px);
}

.slide.active .slide-content {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) translateY(0);
}

.slide-content.slide h1 {
    font-size: 1.8rem;
    margin: 1rem 0;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
    font-family: 'Tajawal', sans-serif;
}

.platform-name {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 1.2rem 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
    position: relative;
    display: block;
    padding-bottom: 12px;
    line-height: 1.2;
    text-transform: uppercase;
    font-family: 'Tajawal', sans-serif;
}

.platform-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #3498db;
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.3);
}

.slide p {
    font-size: 1.1rem;
    margin: 1.2rem auto 2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    padding: 0 15px;
    font-weight: 400;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.slide .btn {
    padding: 0.9rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background-color: #3498db;
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 1rem;
}

.slide .btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    color: #3498db;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.9;
}

.slider-nav.prev {
    right: 20px;
    left: auto;
}

.slider-nav.next {
    left: 20px;
    right: auto;
}

.slider-nav:hover {
    background: #3498db;
    color: white;
    transform: translateY(-50%) scale(1.08);
    opacity: 1;
}

.slider-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.slider-nav:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.5);
}

.slider-nav i {
    transition: transform 0.2s ease;
    position: relative;
    display: inline-block;
}

.slider-nav.prev i {
    right: -1px;
}

.slider-nav.next i {
    left: -1px;
}

.slider-nav:hover i {
    transform: scale(1.1);
}

/* Tabs Navigation */
.tabs-container {
    position: relative;
    z-index: 50;
    margin: -80px auto 0;
    padding: 0 20px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 8px;
    background: white;
    border-radius: 50px;
    padding: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 20;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transform: translateY(-25px);
}

.tab-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 24px;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 40px;
    color: #666;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: #f8f9fa;
    white-space: nowrap;
    flex: 1;
    max-width: 150px;
}

.tab-btn i {
    font-size: 1.1rem;
    color: #555;
    transition: all 0.2s ease;
    margin-bottom: 1px;
}

.tab-btn.active i {
    color: white;
    transform: scale(1.1);
}

.tab-btn span {
    position: relative;
    z-index: 1;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50px;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.tab-btn.active {
    background: #3498db;
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.35);
    z-index: 2;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 0.85rem;
    border-color: #2980b9;
}

.tab-btn.active i {
    color: white;
}

.tab-btn.active::before {
    opacity: 1;
    transform: scale(1);
}

.tab-btn.active i {
    color: white;
    transform: scale(1.1);
}

.tab-btn:hover:not(.active) {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
    transform: translateY(-2px);
}

.tab-btn:hover:not(.active) i {
    color: #2980b9;
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 992px) {
    .slide h1 {
        font-size: 2.5rem;
    }
    
    .slide p {
        font-size: 1.1rem;
    }
    
    .tabs {
        padding: 10px 15px;
        border-radius: 30px;
    }
    
    .tab-btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 70vh;
        min-height: 500px;
    }
    
    .slide h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .slide p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-nav.prev {
        right: 15px;
    }
    
    .slider-nav.next {
        left: 15px;
    }
    
    .tabs-container {
        margin-top: -30px;
        padding: 0 15px;
    }
    
    .tabs {
        border-radius: 15px;
        padding: 10px;
    }
    
    .tab-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .tab-btn i {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: 60vh;
        min-height: 400px;
    }
    
    .platform-name {
        font-size: 1.2rem;
    }
    
    .slide h1 {
        font-size: 1.75rem;
    }
    
    .tabs {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .tab-btn {
        justify-content: center;
        width: 100%;
        border-radius: 10px;
    }
}

/* Section Styling */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
}

/* Latest Courses Section */
.latest-courses {
    padding: 40px 0 80px;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.course-card .card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.course-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.course-card .card-body {
    padding: 1.5rem;
}

.course-card .badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 4px;
}

/* Teacher Cards */
.teacher-card {
    transition: transform 0.3s ease;
}

.teacher-card:hover {
    transform: translateY(-5px);
}

.teacher-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    padding: 3px;
}

.teacher-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Testimonials */
.testimonial-card {
    height: 100%;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

/* FAQ */
.accordion-button:not(.collapsed) {
    background-color: rgba(67, 97, 238, 0.1);
    color: var(--primary-color);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.accordion-button::after {
    margin-right: auto;
    margin-left: 0;
}

/* Footer */
footer {
    background-color: #1a1a2e;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

footer h5::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    bottom: -8px;
    right: 0;
}

footer ul li {
    margin-bottom: 0.75rem;
}

footer a {
    color: #adb5bd;
    transition: color 0.3s ease;
    text-decoration: none;
}

footer a:hover {
    color: #fff;
    text-decoration: none;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

/* Buttons */
.btn {
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

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

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
    
    .hero-section img {
        margin-top: 2rem;
    }
    
    .section-header h2::after {
        right: 50%;
        transform: translateX(50%);
    }
}

@media (max-width: 767.98px) {
    .navbar-collapse {
        padding: 1rem;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2.25rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1.25rem;
        font-size: 1rem;
    }
}
