/* Homepage Specific Styles */

/* =========================================
   Top Courses Section
   ========================================= */
.topCourses {
    padding: 60px 0;
    background: #f8f9fa;
}

.topCourses h3 {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: -0.5px;
}

/* Modern Card Design */
.card.filter-item {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #fff;
    height: 100%;
    position: relative;
}

.card.filter-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Image Wrapper */
.card.filter-item .img-wrapper {
    position: relative;
    padding-top: 100%;
    /* 1:1 Aspect Ratio */
}

.card.filter-item .img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card.filter-item:hover .img-wrapper img {
    transform: scale(1.1);
}

/* Badges */
.card-badges-top {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
    align-items: flex-start;
}

.badge-custom {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-webinar {
    background: rgba(255, 107, 53, 0.95);
}

.badge-date {
    background: rgba(31, 41, 55, 0.9);
    text-transform: none;
    font-size: 12px;
}

.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    text-align: right;
    backdrop-filter: blur(4px);
}

.price-tag .old-price {
    display: block;
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
    font-weight: 600;
    line-height: 1;
    margin-bottom: 2px;
}

.price-tag .current-price {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #198754;
    line-height: 1.2;
}

.price-tag .free-text {
    font-size: 14px;
    font-weight: 800;
    color: #198754;
}

/* Content */
.card.filter-item .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title a {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
    margin-bottom: 10px;
}

.card-title a:hover {
    color: #eab55e;
}

/* Buttons Area */
.card-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-action-review {
    width: 100%;
    padding: 10px;
    border-radius: 10px;
    background: #f3f4f6;
    color: #4b5563;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-action-review:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.btn-action-buy {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: #10b981;
    /* Modern Green */
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Spread content */
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    cursor: pointer;
}

.btn-action-buy:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(16, 185, 129, 0.3);
    color: #fff;
}

.btn-action-buy .label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action-buy .price-info {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 13px;
}

.btn-action-watch {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: #3b82f6;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.btn-action-watch:hover {
    background: #2563eb;
    transform: translateY(-2px);
    color: #fff;
}

/* Countdown Text */
.countdown-text {
    font-size: 12px;
    color: #ef4444;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #fef2f2;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #fee2e2;
}

/* Animation Classes */
.filter-item {
    transition: all 0.5s ease-in-out;
    transform-origin: top left;
}

.filter-item.hiding {
    opacity: 0;
    transform: scale(0.8);
}

.filter-item.showing {
    opacity: 1;
    transform: scale(1);
}

.card-img-top {
    aspect-ratio: 1/1;
    object-fit: cover;
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .card.filter-item {
        margin-bottom: 20px;
    }
}


/* =========================================
   Instructors Section
   ========================================= */
.instructor-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.instructor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.biography-hover-text {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instructor-card:hover .biography-hover-text {
    opacity: 1;
}

.instructor-biography {
    line-height: 1.8;
    color: #555;
    white-space: pre-wrap;
}

.instructor-biography p {
    margin-bottom: 1rem;
}