/* ==================== */
/* PROGRAM DETAILS MODAL STYLES - LANDSCAPE ORIENTATION WITH SCROLL */
/* ==================== */

/* Modal Overlay */
.program-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 999998;
    animation: overlayFadeIn 0.3s ease forwards;
}

.program-modal-overlay.active {
    display: flex;
}

/* Modal Container - LANDSCAPE MODE (Wider) */
.program-modal-container {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 20px;
    z-index: 999999;
    animation: modalSlideIn 0.4s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
    max-height: 90vh;
}

/* Close Button */
.program-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
    transition: all 0.3s ease;
}

.program-modal-close:hover {
    background: #e74c3c;
    transform: rotate(90deg) scale(1.1);
}

.program-modal-close i {
    font-size: 18px;
    color: #333;
}

.program-modal-close:hover i {
    color: white;
}

/* Program Card - LANDSCAPE LAYOUT */
.program-detail-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    animation: cardGlow 2s ease-in-out infinite;
    max-height: 85vh;
}

/* Two Column Layout - LANDSCAPE */
.program-detail-body {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-height: 85vh;
}

/* LEFT COLUMN - Image and Header Section (Fixed, No Scroll) */
.program-detail-left {
    flex: 0.8;
    background: linear-gradient(135deg, #2d6cdf, #764ba2);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Custom scrollbar for left column (if needed) */
.program-detail-left::-webkit-scrollbar {
    width: 4px;
}

.program-detail-left::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.program-detail-left::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.program-detail-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: patternMove 20s linear infinite;
    pointer-events: none;
}

/* Program Image - Landscape */
.program-detail-image {
    padding: 30px;
    position: relative;
    z-index: 1;
}

.program-detail-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.program-detail-image img:hover {
    transform: scale(1.02);
}

/* Badge on Left Column */
.program-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 25px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    width: fit-content;
    margin: 25px 30px 15px 30px;
}

.program-badge.new {
    background: linear-gradient(135deg, #2d6cdf, #764ba2);
    color: white;
}

.program-badge.enroll {
    background: #ffd700;
    color: #1a2a4f;
}

.program-badge.limited {
    background: #e74c3c;
    color: white;
}

/* Title on Left Column */
.program-detail-left h2 {
    font-size: 26px;
    color: white;
    margin: 0 30px 10px 30px;
    font-weight: 700;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.program-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 30px 20px 30px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

/* Pricing Cards on Left Column */
.program-pricing-left {
    margin: 20px 30px;
    position: relative;
    z-index: 1;
}

.pricing-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pricing-title i {
    font-size: 14px;
}

.pricing-cards-left {
    display: flex;
    gap: 12px;
}

.pricing-card-left {
    flex: 1;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-card-left:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.25);
}

.pricing-card-left h4 {
    font-size: 12px;
    color: white;
    margin-bottom: 5px;
}

.price-left {
    font-size: 20px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 3px;
}

.price-left span {
    font-size: 10px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.7);
}

.pricing-card-left p {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* CTA Buttons on Left Column */
.program-cta-left {
    margin: 20px 30px 30px;
    display: flex;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.cta-primary-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #ffd700;
    color: #1a2a4f;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    border: none;
    cursor: pointer;
}

.cta-primary-left:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.4);
    background: #ffed4e;
}

.cta-secondary-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.cta-secondary-left:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.25);
}

/* RIGHT COLUMN - Content (SCROLLABLE) */
.program-detail-right {
    flex: 1.2;
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 85vh;
    scroll-behavior: smooth;
}

/* Custom Scrollbar for Right Column */
.program-detail-right::-webkit-scrollbar {
    width: 8px;
}

.program-detail-right::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 4px;
}

.program-detail-right::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2d6cdf, #764ba2);
    border-radius: 4px;
}

.program-detail-right::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #1d4fa8, #5a3292);
}

/* Program Description */
.program-description {
    margin-bottom: 25px;
}

.program-description h3 {
    font-size: 18px;
    color: #1a2a4f;
    margin-bottom: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-description h3 i {
    color: #2d6cdf;
}

.program-description p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 14px;
}

/* Long Description Styling */
#programLongDescription {
    color: #666;
    line-height: 1.7;
    font-size: 14px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e0e0e0;
}

/* Features Grid - 2 Columns */
.program-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateX(5px);
    background: #e8f0fe;
}

.feature-icon {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #2d6cdf, #764ba2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 16px;
    color: white;
}

.feature-text h4 {
    font-size: 13px;
    color: #1a2a4f;
    margin: 0 0 3px 0;
    font-weight: 600;
}

.feature-text p {
    font-size: 11px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Schedule Section */
.program-info-section {
    margin-bottom: 25px;
}

.info-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.info-title i {
    font-size: 18px;
    color: #2d6cdf;
}

.info-title h3 {
    font-size: 16px;
    color: #1a2a4f;
    margin: 0;
    font-weight: 600;
}

/* Schedule Table */
.schedule-table {
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.schedule-row {
    display: flex;
    padding: 10px 15px;
    border-bottom: 1px solid #e0e0e0;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-day {
    width: 110px;
    font-weight: 600;
    color: #1a2a4f;
    font-size: 13px;
}

.schedule-time {
    flex: 1;
    color: #666;
    font-size: 13px;
}

/* Includes Section */
.program-includes {
    background: #e8f0fe;
    border-radius: 12px;
    padding: 15px;
    margin-top: 20px;
}

.program-includes p {
    margin: 0;
    font-size: 13px;
    color: #2d6cdf;
    display: flex;
    align-items: center;
    gap: 8px;
}

.program-includes i {
    font-size: 16px;
}

/* Scroll Indicator (visual cue that content is scrollable) */
.scroll-indicator-right {
    position: absolute;
    right: 10px;
    bottom: 20px;
    background: rgba(45, 108, 223, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 5;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.program-detail-right:hover .scroll-indicator-right {
    opacity: 0;
}

/* Animations */
@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 40px 70px rgba(45, 108, 223, 0.2);
    }
}

@keyframes patternMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(30px, 30px);
    }
}

/* Responsive - Tablet */
@media (max-width: 900px) {
    .program-modal-container {
        max-width: 95%;
        max-height: 95vh;
    }
    
    .program-detail-body {
        flex-direction: column;
    }
    
    .program-detail-left {
        max-height: 45vh;
        overflow-y: auto;
    }
    
    .program-detail-image img {
        height: 150px;
    }
    
    .program-detail-left h2 {
        font-size: 22px;
        margin: 0 20px 10px 20px;
    }
    
    .program-subtitle {
        margin: 0 20px 15px 20px;
    }
    
    .program-badge {
        margin: 20px 20px 10px 20px;
    }
    
    .program-detail-image {
        padding: 20px;
    }
    
    .program-pricing-left {
        margin: 15px 20px;
    }
    
    .program-cta-left {
        margin: 15px 20px 20px;
    }
    
    .program-detail-right {
        max-height: 40vh;
        padding: 20px;
    }
    
    .pricing-cards-left {
        flex-wrap: wrap;
    }
}

/* Responsive - Mobile */
@media (max-width: 600px) {
    .program-features-grid {
        grid-template-columns: 1fr;
    }
    
    .program-detail-left h2 {
        font-size: 20px;
    }
    
    .program-subtitle {
        font-size: 12px;
    }
    
    .program-cta-left {
        flex-direction: column;
    }
    
    .schedule-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .schedule-day {
        width: auto;
    }
    
    .program-detail-image img {
        height: 130px;
    }
    
    .program-detail-right {
        padding: 15px;
    }
    
    .program-description p,
    #programLongDescription {
        font-size: 13px;
    }
}

/* Large Screens */
@media (min-width: 1400px) {
    .program-modal-container {
        max-width: 1300px;
    }
    
    .program-detail-left h2 {
        font-size: 30px;
    }
    
    .program-detail-image img {
        height: 240px;
    }
    
    .program-detail-right {
        padding: 35px;
    }
    
    .program-description p,
    #programLongDescription {
        font-size: 15px;
    }
}

/* Smooth scrolling for the entire modal */
.program-detail-card {
    scrollbar-width: thin;
}