/* ============================================
   Home Page Packages Section Styles
   ============================================ */

.packages-section {
    position: relative;
    padding: 80px 0;
}

.packages-section .section-vector1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.05;
    z-index: -1;
}

/* Package Cards */
.package-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.2);
}

/* Package Image */
.package-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.1);
}

.package-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.package-placeholder i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Badges */
.package-image .badge {
    position: absolute;
    top: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-featured {
    left: 15px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}

.badge-sale {
    right: 15px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* Package Content */
.package-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.package-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.3;
    flex: 1;
}

.package-type {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.package-description {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

/* Package Details */
.package-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    font-size: 0.85rem;
}

.detail-item i {
    color: #10b981;
    font-size: 0.9rem;
}

/* Difficulty Levels */
.difficulty-beginner {
    color: #10b981;
    font-weight: 600;
}

.difficulty-intermediate {
    color: #f59e0b;
    font-weight: 600;
}

.difficulty-advanced {
    color: #ef4444;
    font-weight: 600;
}

.difficulty-expert {
    color: #7c3aed;
    font-weight: 600;
}

/* Package Footer */
.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.package-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.original-price {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.current-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #10b981;
    line-height: 1;
}

.btn-view-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-view-details:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    color: white;
}

.btn-view-details i {
    transition: transform 0.3s ease;
}

.btn-view-details:hover i {
    transform: translateX(3px);
}

/* No Packages State */
.no-packages {
    text-align: center;
    padding: 60px 20px;
    color: #94a3b8;
}

.no-packages i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-packages p {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .package-card {
        margin-bottom: 20px;
    }
    
    .package-image {
        height: 220px;
    }
    
    .package-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .packages-section {
        padding: 60px 0;
    }
    
    .package-image {
        height: 200px;
    }
    
    .package-content {
        padding: 20px;
    }
    
    .package-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-view-details {
        justify-content: center;
        width: 100%;
    }
    
    .package-details {
        gap: 10px;
    }
    
    .detail-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .package-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .package-type {
        align-self: flex-start;
    }
    
    .current-price {
        font-size: 1.3rem;
    }
}
