/* =========================================
   1. ROOT VARIABLES & GLOBAL STYLES
   ========================================= */
:root {
    --primary-purple: #6A0DAD;      /* Deep Royal Purple */
    --dark-purple: #4B0082;         /* Indigo */
    --light-lavender: #F3E5F5;      /* Very light purple background */
    --white: #FFFFFF;
    --text-dark: #333333;
    --text-grey: #666666;
    --shadow-sm: 0 5px 15px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 25px rgba(106, 13, 173, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--text-dark);
    overflow-x: hidden; /* Prevent horizontal scroll */
    line-height: 1.6;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* =========================================
   2. NAVBAR STYLES
   ========================================= */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    color: var(--primary-purple) !important;
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-purple) !important;
}

.btn-primary-custom {
    background-color: var(--primary-purple);
    color: var(--white);
    border: 2px solid var(--primary-purple);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background-color: var(--dark-purple);
    border-color: var(--dark-purple);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 13, 173, 0.3);
}

/* =========================================
   3. COMPACT SPLIT SLIDER (FIXED)
   ========================================= */
.hero-slider-section {
    background-color: var(--white);
    padding: 0;
    margin-top: 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.carousel-item {
    height: 450px; /* Fixed compact height */
    background-color: var(--primary-purple);
    transition: transform 0.6s ease-in-out;
}

.carousel-item .row {
    height: 100%;
    margin: 0;
    align-items: center;
    width: 100%;
}

/* Left Side: Purple Content */
.hero-content {
    background-color: var(--primary-purple);
    color: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 50px;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* Decorative Background Circle */
.hero-content::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.hero-subtitle {
    color: var(--light-lavender);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
    z-index: 1;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
    z-index: 1;
}

.hero-desc {
    font-size: 1rem;
    color: #f3e5f5;
    margin-bottom: 30px;
    max-width: 90%;
    z-index: 1;
}

/* Slider Buttons */
.hero-btn-group .btn {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 10px 25px;
    font-weight: 600;
    border-radius: 5px;
    font-size: 0.9rem;
    z-index: 1;
    text-transform: uppercase;
    cursor: pointer;
}

.btn-white-custom {
    background-color: var(--white);
    color: var(--primary-purple);
    border: 2px solid var(--white);
}

.btn-white-custom:hover {
    background-color: transparent;
    color: var(--white);
}

.btn-outline-light-custom {
    border: 2px solid var(--white);
    color: var(--white);
    background: transparent;
}

.btn-outline-light-custom:hover {
    background-color: var(--white);
    color: var(--primary-purple);
}

/* Right Side: Image */
.hero-image-col {
    height: 100%;
    padding: 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Zoom Animation on Active Slide */
.carousel-item.active .hero-img {
    animation: zoomEffect 6s ease forwards;
}

@keyframes zoomEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Carousel Controls & Indicators */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) grayscale(100); /* White icons */
    background-color: rgba(0,0,0,0.3);
    border-radius: 50%;
    padding: 20px;
    background-size: 50%;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--white);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

/* Slider Mobile Responsiveness */
@media (max-width: 991px) {
    .carousel-item {
        height: auto;
        min-height: 400px;
    }
    .carousel-item .row {
        flex-direction: column-reverse; /* Image Top, Text Bottom */
    }
    .hero-content {
        padding: 30px 20px;
        text-align: center;
        min-height: 250px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-image-col {
        height: 200px;
        width: 100%;
    }
    .hero-btn-group {
        justify-content: center;
        display: flex;
    }
}

/* =========================================
   4. FEATURES SECTION
   ========================================= */
.feature-box {
    border: none;
    border-radius: 15px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    padding: 30px;
    text-align: center;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

/* =========================================
   5. COURSE CARDS
   ========================================= */
.course-card {
    border: none;
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    background: var(--white);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-header-custom {
    background-color: var(--light-lavender);
    color: var(--primary-purple);
    padding: 20px;
    font-weight: 700;
    text-align: center;
    font-size: 1.1rem;
    position: relative;
}

.mode-badge {
    background-color: var(--primary-purple);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    position: absolute;
    top: 10px;
    right: 10px;
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.course-card .p-4 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.course-card .btn-primary-custom {
    margin-top: auto; /* Push button to bottom */
}

/* =========================================
   6. FOOTER
   ========================================= */
footer {
    background-color: var(--dark-purple);
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 60px;
}

footer h5 {
    color: var(--light-lavender);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
    margin-bottom: 8px;
}

footer a:hover {
    color: var(--white);
    text-decoration: underline;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 30px;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #ccc;
    text-align: center;
}

/* Utility Classes */
.text-primary-purple {
    color: var(--primary-purple) !important;
}
.bg-light-lavender {
    background-color: var(--light-lavender) !important;
}