/* Program Detail Page Styles */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --info-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);

    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 25px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.2);

    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;

    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 60vh;
    padding: 120px 0 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
     background:
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* ===== PROGRAM HERO IMAGE ===== */
.program-hero-image {
    max-width: 400px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
    transition: transform 0.3s ease;
}

.program-hero-image:hover {
    transform: scale(1.02);
}

/* ===== BREADCRUMB STYLING ===== */
.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ===== CARD IMPROVEMENTS ===== */
.detail-card, .sidebar-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    position: static;
}

.detail-card:hover, .sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    border: none;
    border-radius: 15px 15px 0 0 !important;
    padding: 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* ===== LIST STYLING ===== */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start;
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list i {
    margin-top: 2px;
    margin-right: 12px;
    flex-shrink: 0;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar-card {
    position: static !important;
    top: 100px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.price-display {
    font-size: 2rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 0.5rem;
}

.info-row {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-row:last-child {
    border-bottom: none;
}

/* ===== PROGRAM CARDS (for related programs) ===== */
.program-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Program Image */
.program-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

/* Program Overlay Enhanced */
.program-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.1) 0%,
        rgba(0,0,0,0.3) 30%,
        rgba(0,0,0,0.8) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 2;
}

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

.overlay-content {
    color: white;
    text-align: left;
}

.overlay-description {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.9);
}

.overlay-content .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
}

/* Program Content Enhanced */
.program-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.program-header {
    margin-bottom: 1rem;
}

.program-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.program-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.rating-text {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 500;
}

/* Program Meta Enhanced */
.program-meta {
    margin-bottom: 1.5rem;
    flex: 1;
}

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

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
}

.meta-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.meta-item i {
    font-size: 1rem;
    flex-shrink: 0;
}

/* Program Footer Enhanced */
.program-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
}

.program-footer .btn {
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.program-footer .btn:hover {
    transform: translateY(-2px);
}

.program-footer .btn-success:hover {
    background-color: #198754;
    box-shadow: var(--shadow-md);
}

/* ===== PROGRAM ANIMATIONS ===== */
.program-item {
    opacity: 0;
    transform: translateY(30px);
}

.program-item.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CONTACT ICONS ===== */
.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

/* ===== BUTTON IMPROVEMENTS ===== */
.btn {
    border-radius: 12px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* ===== CTA SECTION ===== */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cta-button {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* ===== BADGE IMPROVEMENTS ===== */
.badge {
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.badge-subtle {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.2);
}

/* ===== TEXT UTILITIES ===== */
.opacity-90 {
    opacity: 0.9;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

/* ===== PROGRAM DESCRIPTION HOVER ===== */
.program-description-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.9);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(-10px);
    z-index: 10;
}

.program-card:hover .program-description-hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.program-description-hover .program-description {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== LOADING ANIMATION FOR IMAGES ===== */
.program-hero-image:not([src]),
.card-img-top:not([src]) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease forwards;
}

.card:nth-child(2) {
    animation-delay: 0.1s;
}

.card:nth-child(3) {
    animation-delay: 0.2s;
}

/* ===== FOCUS STATES FOR ACCESSIBILITY ===== */
.btn:focus,
.card:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0 40px;
    }

    .program-hero-image {
        max-height: 250px;
        margin-top: 2rem;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .card-body {
        padding: 1rem;
    }

    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .sidebar-card {
        position: static !important;
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }

    .detail-card {
        margin-bottom: 1.5rem;
    }

    .price-display {
        font-size: 1.5rem;
    }

    .meta-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .program-footer {
        flex-direction: column;
        gap: 0.75rem;
    }

    .program-footer .btn {
        width: 100%;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-section {
        background: #007bff !important;
        color: white !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .btn,
    .program-overlay,
    .sticky-top,
    .wa-float {
        display: none !important;
    }

    .card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .program-card {
        background: #2d3748;
        color: #fff;
        border-color: #4a5568;
    }

    .meta-item {
        background: #4a5568;
        color: #e2e8f0;
    }

    .meta-item:hover {
        background: #718096;
    }

    .accordion-button {
        background: #4a5568;
        color: #fff;
    }

    .accordion-body {
        background: #2d3748;
        color: #e2e8f0;
    }
}
