<style>
/* Modern Package Detail Styles */
:root {
    --primary-color: #086BCA;
    --secondary-color: #0E043D;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
}

/* Package Detail Layout */
.package-detail-layout {
    margin-bottom: 3rem;
}

/* Package Hero Card */
.package-hero-card {
    margin-bottom: 2rem;
}

.package-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 400px;
}

/* Video Player Container */
.video-player-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-thumbnail-overlay {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-iframe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-iframe-wrapper iframe.main-video {
    width: 100%;
    height: 100%;
    border: none;
}

/* Play Button Overlay - Clickable Layer */
.play-button-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: background-color 0.3s ease;
}

.play-button-overlay:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Play Button Styles */
.play-button {
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.play-button-overlay:hover .play-button {
    color: #d29d00;
    transform: scale(1.1);
}

.play-button i {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

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

.package-main-image:hover {
    transform: scale(1.02);
}

.package-overlay {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    pointer-events: none;
    z-index: 10;
}

.package-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    pointer-events: auto;
}

.stat-badge {
    background: rgba(255,255,255,0.95);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.875rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Enhanced Card Styles */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #2c1810 100%) !important;
}

/* Package Info Card */
.package-info-card {
    position: relative;
}

.mentor-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.feature-text strong {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.purchase-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.purchase-btn:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Modal Enhancements */
.mentor-modal-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: var(--light-bg);
    border-radius: 8px;
}

.contact-item i {
    font-size: 1.2rem;
    width: 24px;
}

/* Module Cards */
.module-card-link {
    text-decoration: none;
    color: inherit;
}

.module-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.module-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.module-image-container {
    position: relative;
    overflow: hidden;
}

.module-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.module-card:hover .module-image {
    transform: scale(1.05);
}

.module-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.module-card:hover .module-overlay {
    opacity: 1;
}

.play-button {
    color: white;
    font-size: 3rem;
}

.module-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
}

.module-title {
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.3;
}

.module-description {
    font-size: 0.875rem;
    line-height: 1.4;
}

.module-type {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Mentor Profile */
.mentor-profile-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px 0 0 12px;
}

.mentor-image-container {
    position: relative;
    height: 100%;
}

.mentor-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.mentor-badge i {
    margin-right: 0.5rem;
}

.mentor-name {
    color: var(--secondary-color);
    font-size: 1.75rem;
}

.btn-contact-mentor {
    background: var(--success-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-contact-mentor:hover {
    background: #218838;
    color: white;
    transform: translateY(-2px);
}

.skill-tag, .experience-tag {
    font-size: 0.875rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
}

.portfolio-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-title {
    font-size: 0.95rem;
    color: var(--secondary-color);
}

.mentor-placeholder-image {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    opacity: 0.6;
}

/* Modern Rating System */
.modern-rating {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.5rem;
}

.modern-rating input {
    display: none;
}

.star-label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.star-label:hover,
.star-label:hover ~ .star-label {
    color: var(--primary-color);
    transform: scale(1.1);
}

.modern-rating input:checked ~ .star-label {
    color: var(--primary-color);
}

.modern-rating input:checked ~ .star-label:hover,
.modern-rating:hover input:checked ~ .star-label:hover {
    color: #e6b800;
}

.rating-description {
    font-size: 0.875rem;
    min-height: 20px;
}

.btn-submit-review {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-submit-review:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .package-hero-card .row {
        flex-direction: column-reverse;
    }
    
    .package-image-wrapper {
        height: 300px;
    }
    
    .package-main-image {
        border-radius: 0;
    }
    
    .mentor-profile-image {
        height: 300px;
        border-radius: 12px 12px 0 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .package-stats {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .package-image-wrapper {
        height: 250px;
    }
    
    .package-overlay .package-stats {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .stat-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .mentor-profile-image {
        height: 250px;
    }
    
    .star-label {
        font-size: 1.5rem;
    }
    
    .module-image {
        height: 150px;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

.package-hero-card {
    animation: fadeInUp 0.8s ease-out;
}

.package-detail-layout .col-lg-8 {
    animation: fadeInUp 1s ease-out;
}

.package-detail-layout .col-lg-4 {
    animation: slideInRight 1.2s ease-out;
}

/* Enhanced Feature Items */
.feature-item {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Card Hover Effects */
.package-detail-layout .card {
    transition: all 0.3s ease;
}

.package-detail-layout .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Button Enhancements */
.btn {
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Color Scheme Consistency */
.badge-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Legacy Rating System (Hidden) */
.rating {
    display: none;
}
</style>