/* Course box styles for homepage */
.course-box {
    flex: 1;
    max-width: 350px;
    margin: 1rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%;
}

.course-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(41, 98, 255, 0.15);
}

.course-box .course-card {
    text-align: center;
    padding: 0;
    overflow: hidden;
    margin-bottom: 0;
    background: #fff;
}

.course-box .course-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: #f8f9fa;
    transition: transform 0.5s ease;
    display: block;
}

.course-box:hover .course-card img {
    transform: scale(1.05);
}

.course-box .course-info {
    margin-top: 0;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.course-box .course-name {
    color: #2a5298;
    margin: 15px 15px 5px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.course-box .course-subtitle {
    color: #666;
    margin: 0 15px 15px;
    font-size: 14px;
    text-align: center;
    padding-bottom: 15px;
    border-bottom: none;
}

.course-box .course-features {
    padding: 0;
    margin-bottom: 0;
    background-color: #f9f9f9;
    flex: 1;
}

.course-box .course-features ul {
    list-style: none;
    padding: 15px 20px;
    margin: 0;
}

.course-box .course-features li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.course-box .course-features li:last-child {
    border-bottom: none;
}

.course-box .course-features li i {
    color: #2a5298;
    margin-right: 10px;
    min-width: 14px;
    margin-top: 3px;
}

.course-box .course-meta {
    padding: 15px 20px;
    background-color: #fff;
}

.course-box .duration-price {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.course-box .course-duration,
.course-box .course-price {
    font-size: 14px;
    color: #555;
    padding: 3px 0;
}

.course-box .course-price {
    font-weight: 600;
    color: #2a5298;
}

.course-box .btn-enroll {
    display: block;
    width: 100%;
    padding: 12px;
    background: #2a5298;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}

.course-box .btn-enroll:hover {
    background: #3a62a8;
    transform: translateY(-2px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Course container layout for homepage */
#coursesContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 3rem auto;
    max-width: 1200px;
    padding: 0 15px;
}

/* Force equal height on cards */
@media (min-width: 992px) {
    #coursesContainer {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        grid-gap: 2rem;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    #coursesContainer {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 2rem;
    }
}

/* Placeholder shimmer effect */
.course-box.placeholder {
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background: #f6f7f8;
}

.shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.2) 50%, 
        rgba(255,255,255,0) 100%);
    animation: shimmer 1.5s infinite;
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 767px) {
    #coursesContainer {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .course-box {
        max-width: 100%;
        margin: 0;
        width: 100%;
    }
    
    .course-box .course-card img {
        height: 160px;
    }
    
    .course-box .course-name {
        font-size: 20px;
        margin: 12px 10px 4px;
    }
    
    .course-box .course-subtitle {
        margin: 0 10px 12px;
        font-size: 13px;
    }
    
    .course-box .course-features ul {
        padding: 12px 15px;
    }
    
    .course-box .course-features li {
        padding: 6px 0;
        font-size: 13px;
    }
    
    .course-box .course-meta {
        padding: 12px 15px;
    }
    
    .course-box .btn-enroll {
        padding: 10px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 1.5rem;
    }
} 