/* Course Showcase Section - Featured after Hero Section */

.courses-showcase {
    padding: 60px 0;
    background-color: #f8f9fc;
    position: relative;
    overflow: hidden;
}

.courses-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 166, 81, 0.05) 0%, rgba(0, 166, 81, 0.02) 100%);
    z-index: 0;
}

.showcase-heading {
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.showcase-heading h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #00a651, #008c44);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.showcase-heading h2::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 3px;
    background-color: #00a651;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.showcase-heading .stars {
    position: absolute;
    right: 25%;
    top: -15px;
    font-size: 1.5rem;
    color: #FFC107;
    transform: rotate(15deg);
}

.showcase-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.courses-grid {
    flex: 0 0 58%;
    background-color: rgba(0, 30, 60, 0.03);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.courses-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #00a651;
    border-radius: 3px 0 0 3px;
}

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

.courses-grid-header {
    margin-bottom: 25px;
    text-align: center;
}

.courses-grid-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.courses-grid-header span {
    display: inline-block;
    padding: 5px 15px;
    background-color: #00a651;
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.courses-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.course-card-small {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

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

.course-card-small img {
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.course-card-small:hover img {
    transform: scale(1.1);
}

.course-card-small h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.course-card-small p {
    font-size: 0.85rem;
    color: #666;
    margin: 5px 0 0;
}

.more-courses {
    text-align: center;
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
}

.more-courses a {
    display: inline-block;
    padding: 8px 20px;
    background-color: rgba(0, 166, 81, 0.1);
    color: #00a651;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.more-courses a:hover {
    background-color: #00a651;
    color: white;
    transform: translateY(-3px);
}

.more-courses a i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.more-courses a:hover i {
    transform: translateX(5px);
}

/* Right Side Carousel */
.mini-slider {
    flex: 0 0 38%;
    background-color: rgba(0, 30, 60, 0.03);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.mini-slider::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background-color: #00a651;
    border-radius: 0 3px 3px 0;
}

.mini-slider-header {
    margin-bottom: 25px;
    text-align: center;
}

.mini-slider-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.mini-slider-header p {
    color: #666;
    font-size: 0.95rem;
}

.mini-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: auto; /* Allow height to adjust to content */
}

.mini-carousel {
    display: flex;
    transition: transform 0.5s ease;
}

.mini-carousel-item {
    flex: 0 0 100%;
    min-width: 100%;
    position: relative;
}

.mini-carousel-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mini-carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 20px;
    text-align: center;
}

.mini-carousel-caption h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.mini-carousel-caption p {
    font-size: 0.9rem;
    margin: 0;
}

.mini-carousel-nav {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 10;
}

.mini-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-carousel-dot.active {
    background-color: #00a651;
    transform: scale(1.2);
}

.view-all-courses {
    display: block;
    text-align: center;
    margin-top: 20px;
    padding: 12px 25px;
    background-color: #00a651;
    color: white;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-courses:hover {
    background-color: #008c44;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 166, 81, 0.3);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .showcase-container {
        flex-direction: column;
    }
    
    .courses-grid, .mini-slider {
        flex: 0 0 100%;
    }
    
    .courses-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .showcase-heading h2 {
        font-size: 2rem;
    }
    
    .courses-cards {
        grid-template-columns: 1fr;
    }
    
    .more-courses {
        flex-direction: column;
        gap: 15px;
    }
}
