/* Program Pelatihan Page Styles - Enhanced Modern Version */

/* ===== CSS CUSTOM PROPERTIES ===== */
: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 ENHANCED ===== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    z-index: 1;
}

.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;
}

.hero-cta{
    margin-top: 2rem;
}

.min-vh-60 {
    min-height: 60vh;
}

/* Text Shadow */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Enhanced Text Colors */
.text-white-90 {
    color: rgba(255, 255, 255, 0.9);
}

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

/* Hero Features */
.hero-features {
    margin-bottom: 2rem;
}

.feature-badge {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    white-space: nowrap;
    transition: var(--transition-normal);
}

.feature-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Enhanced Stats */
.stats-container {
    padding: 1.5rem 0;
}

.stat-item {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
}

.stat-item:nth-child(2) {
    animation-delay: 0.2s;
}

.stat-item:nth-child(3) {
    animation-delay: 0.4s;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
    font-weight: 500;
}

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

/* Hero Illustration */
.hero-illustration {
    position: relative;
}

.illustration-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.3;
    }
}

.program-hero-image {
    max-width: 400px;
    filter: drop-shadow(0 15px 35px rgba(0,0,0,0.3));
    transition: var(--transition-slow);
}

.program-hero-image:hover {
    transform: translateY(-10px) rotate(2deg);
}

/* Hero CTA */
.hero-cta .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.hero-cta .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: var(--transition-slow);
}

.hero-cta .btn:hover::before {
    left: 100%;
}

.hero-cta .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-down {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition-normal);
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ===== SECTION STYLES ENHANCED ===== */
.section-header {
    position: relative;
    margin-bottom: 3rem;
}

.section-icon {
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.section-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.3));
    opacity: 0;
    transition: var(--transition-normal);
}

.section-icon:hover::before {
    opacity: 1;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.section-meta {
    margin-bottom: 1rem;
}

.section-meta .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #6c757d;
}

.section-stats {
    text-align: center;
}

/* ===== ENHANCED PROGRAM CARDS ===== */
.programs-grid {
    margin-bottom: 3rem;
}

.program-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    will-change: transform, box-shadow;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05), rgba(118, 75, 162, 0.05));
    opacity: 0;
    transition: var(--transition-normal);
    z-index: 1;
}

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

.program-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-xl);
}

/* Program Image Enhanced */
.program-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: #f8f9fa;
}

.program-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

/* Program Badges */
.program-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.program-badges .badge {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--border-radius-sm);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    font-weight: 600;
}

/* 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);
}

/* ===== CTA SECTIONS ENHANCED ===== */
.cta-section {
    border-radius: var(--border-radius-lg);
    background: var(--primary-gradient);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.05) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.cta-section > .row {
    position: relative;
    z-index: 2;
}

.cta-section.bg-info {
    background: var(--info-gradient) !important;
}

.cta-features {
    margin-top: 1rem;
}

.feature-item {
    font-size: 0.9rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
}

.cta-button {
    border-radius: var(--border-radius-md);
    font-weight: 700;
    padding: 0.875rem 2rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button::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: var(--transition-slow);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* ===== GENERAL CTA SECTION ===== */
.general-cta {
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.05) 0%, transparent 50%),
        linear-gradient(45deg, rgba(255,255,255,0.02) 0%, transparent 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-feature {
    margin-bottom: 1.5rem;
}

.cta-feature .display-6 {
    font-size: 3rem;
}

.cta-actions {
    margin-bottom: 2rem;
}

.cta-button-primary {
    background: var(--warning-gradient);
    border: none;
    color: #2d3748;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.cta-button-primary:hover {
    color: #2d3748;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.cta-button-secondary {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info {
    font-size: 0.9rem;
    opacity: 0.85;
}

.cta-button-primary,
.cta-button-secondary {
    position: relative;
    z-index: 4;
}

.cta-section::before,
.general-cta::before {
    pointer-events: none;
    z-index: 0 !important;
}

.cta-section,
.general-cta {
    position: relative;
    z-index: 1;
}

.cta-section > .row,
.general-cta > .container {
    position: relative;
    z-index: 2;
}

/* ===== EMPTY STATE ENHANCED ===== */
.empty-state {
    padding: 5rem 0;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty-illustration {
    position: relative;
}

.empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    animation: float 3s ease-in-out infinite;
}

.empty-icon i {
    font-size: 3rem;
    color: white;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ===== FAQ SECTION ===== */
.accordion-item {
    border-radius: var(--border-radius-md) !important;
    overflow: hidden;
    transition: var(--transition-normal);
}

.accordion-item:hover {
    transform: translateY(-2px);
}

.accordion-button {
    border-radius: var(--border-radius-md) !important;
    font-weight: 600;
    padding: 1.25rem 1.5rem;
    background: #f8f9fa;
    border: none;
    color: #2d3748;
}

.accordion-button:not(.collapsed) {
    background: var(--bs-primary);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.accordion-body {
    padding: 1.5rem;
    background: white;
    color: #6c757d;
    line-height: 1.7;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-normal);
    z-index: 1030;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===== UTILITY CLASSES ===== */
.hover-underline:hover {
    text-decoration: underline !important;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* Custom badge colors */
.badge.bg-primary-subtle {
    background-color: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
}

.badge.bg-info-subtle {
    background-color: rgba(67, 233, 123, 0.1) !important;
    color: #43e97b !important;
}

.badge.bg-success-subtle {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .stat-number {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: 80vh;
        padding: 3rem 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        text-align: center;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .program-hero-image {
        max-width: 280px;
        margin-top: 2rem;
    }

    .section-header .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .section-icon {
        margin: 0 auto 1rem;
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .section-title {
        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%;
    }

    .cta-feature .display-6 {
        font-size: 2.5rem;
    }

    .cta-actions {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .cta-button-primary,
    .cta-button-secondary {
        width: 100%;
        text-align: center;
    }

    /* Mobile hover effects disabled */
    .program-card:hover {
        transform: none;
        box-shadow: var(--shadow-sm);
    }

    .program-overlay {
        display: none;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }

    .program-content {
        padding: 1.25rem;
    }

    .program-title {
        font-size: 1.1rem;
    }

    .cta-section {
        margin: 0 -15px;
        border-radius: 0;
    }

    .accordion-button {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .feature-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-down {
        animation: none;
    }

    .illustration-bg {
        animation: none;
    }

    .empty-icon {
        animation: none;
    }
}

/* Focus states for accessibility */
.cta-button:focus,
.program-footer .btn:focus,
.back-to-top:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .program-card {
        border: 2px solid #000;
    }

    .program-overlay {
        background: rgba(0,0,0,0.9);
    }

    .feature-badge {
        border: 1px solid #fff;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .hero-section,
    .cta-section,
    .general-cta,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }

    .program-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
        margin-bottom: 1rem;
    }

    .program-overlay,
    .program-badges {
        display: none;
    }

    .program-content {
        padding: 1rem;
    }

    .section-header {
        page-break-after: avoid;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }
}

/* ===== 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;
    }
}
