/* ==================== VARIABLES ==================== */
:root {
    --primary-color: #1a5f3a;
    --primary-dark: #0f3d22;
    --primary-light: #2d8659;
    --secondary-color: #f39c12;
    --secondary-light: #f5b041;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --border-color: #ecf0f1;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==================== HERO SECTION ==================== */
.hero-program {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-light) 100%);
    padding: clamp(60px, 10vw, 100px) 20px;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-program::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.hero-program::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite reverse;
}

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

.hero-program-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    animation: slideInUp 0.8s ease-out;
}

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

.hero-program h1 {
    font-size: clamp(28px, 5vw, 52px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.hero-program p {
    font-size: clamp(14px, 2vw, 20px);
    opacity: 0.95;
    line-height: 1.8;
    font-weight: 300;
}

/* ==================== PROGRAM CONTENT SECTION ==================== */
.program-content-section {
    padding: clamp(60px, 10vw, 100px) 20px;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

/* ==================== SECTION INTRO ==================== */
.section-intro-program {
    text-align: center;
    max-width: 800px;
    margin: 0 auto clamp(40px, 8vw, 60px);
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-intro-program h2 {
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-intro-program h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
    border-radius: 2px;
}

.section-intro-program p {
    font-size: clamp(14px, 2vw, 18px);
    color: var(--text-light);
    line-height: 1.8;
    margin-top: 30px;
}

/* ==================== SECTION DIVIDER ==================== */
.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: clamp(60px, 10vw, 80px) auto;
    max-width: 600px;
    opacity: 0.3;
}

/* ==================== PROGRAM UNGGULAN GRID ==================== */
.program-unggulan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(24px, 3vw, 32px);
    margin-bottom: clamp(60px, 10vw, 80px);
}

/* ==================== PROGRAM UNGGULAN CARD - IMPROVED ==================== */
.program-unggulan-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.6s ease-out backwards;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.program-unggulan-card:nth-child(1) { animation-delay: 0.1s; }
.program-unggulan-card:nth-child(2) { animation-delay: 0.2s; }
.program-unggulan-card:nth-child(3) { animation-delay: 0.3s; }
.program-unggulan-card:nth-child(4) { animation-delay: 0.4s; }
.program-unggulan-card:nth-child(5) { animation-delay: 0.5s; }
.program-unggulan-card:nth-child(6) { animation-delay: 0.6s; }
.program-unggulan-card:nth-child(7) { animation-delay: 0.7s; }

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

.program-unggulan-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

/* ==================== PROGRAM UNGGULAN HEADER - IMPROVED ==================== */
.program-unggulan-header {
    padding: 48px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.program-unggulan-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.4), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

/* ==================== ICON WRAPPER - NEW IMPROVED DESIGN ==================== */
.program-unggulan-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.program-unggulan-card:hover .program-unggulan-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 6px 12px rgba(0, 0, 0, 0.12);
}

.program-unggulan-icon i {
    font-size: 48px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.program-unggulan-header h3 {
    color: var(--text-dark);
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.program-unggulan-header p {
    color: var(--text-light);
    font-size: clamp(14px, 1.5vw, 16px);
    position: relative;
    z-index: 2;
    margin: 0;
    font-weight: 400;
    line-height: 1.6;
}

/* ==================== PROGRAM UNGGULAN BODY ==================== */
.program-unggulan-body {
    padding: 32px;
    flex-grow: 1;
    background: white;
}

.program-unggulan-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-unggulan-features li {
    padding: 14px 0;
    color: var(--text-light);
    font-size: clamp(14px, 1.5vw, 15px);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
    line-height: 1.6;
}

.program-unggulan-features li:last-child {
    border-bottom: none;
}

.program-unggulan-card:hover .program-unggulan-features li {
    color: var(--text-dark);
    padding-left: 4px;
}

.program-unggulan-features i {
    color: var(--secondary-color);
    font-size: 16px;
    margin-top: 3px;
    min-width: 16px;
    transition: var(--transition);
}

.program-unggulan-card:hover .program-unggulan-features li:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* ==================== PROGRAM GRID ==================== */
.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(24px, 3vw, 32px);
    margin-bottom: clamp(40px, 8vw, 60px);
}

/* ==================== PROGRAM CARD - IMPROVED ==================== */
.program-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: fadeInUp 0.6s ease-out backwards;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.program-card:nth-child(1) { animation-delay: 0.1s; }
.program-card:nth-child(2) { animation-delay: 0.2s; }
.program-card:nth-child(3) { animation-delay: 0.3s; }
.program-card:nth-child(4) { animation-delay: 0.4s; }
.program-card:nth-child(5) { animation-delay: 0.5s; }
.program-card:nth-child(6) { animation-delay: 0.6s; }

.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.1);
}

/* ==================== PROGRAM HEADER - IMPROVED ==================== */
.program-header {
    padding: 48px 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.program-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.4), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

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

/* ==================== ICON WRAPPER - NEW IMPROVED DESIGN ==================== */
.program-icon {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.program-card:hover .program-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2), 0 6px 12px rgba(0, 0, 0, 0.12);
}

.program-icon i {
    font-size: 44px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.program-header h3 {
    color: var(--text-dark);
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 2;
    line-height: 1.3;
}

.program-header p {
    color: var(--text-light);
    font-size: clamp(14px, 1.5vw, 15px);
    position: relative;
    z-index: 2;
    margin: 0;
    line-height: 1.6;
}

/* ==================== PROGRAM BODY ==================== */
.program-body {
    padding: 32px;
    flex-grow: 1;
    background: white;
}

.program-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.program-features li {
    padding: 14px 0;
    color: var(--text-light);
    font-size: clamp(14px, 1.5vw, 15px);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid #f0f0f0;
    transition: var(--transition);
    line-height: 1.6;
}

.program-features li:last-child {
    border-bottom: none;
}

.program-card:hover .program-features li {
    color: var(--text-dark);
    padding-left: 4px;
}

.program-features i {
    color: var(--secondary-color);
    font-size: 16px;
    margin-top: 3px;
    min-width: 16px;
    transition: var(--transition);
}

.program-card:hover .program-features li:hover i {
    transform: scale(1.2) rotate(10deg);
}

/* ==================== CTA SECTION ==================== */
.cta-program-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 50%, var(--primary-light) 100%);
    color: white;
    padding: clamp(40px, 8vw, 60px);
    border-radius: 16px;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.7s both;
}

.cta-program-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 10s ease-in-out infinite;
}

.cta-program-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 12s ease-in-out infinite reverse;
}

.cta-program-section h3 {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    line-height: 1.2;
}

.cta-program-section p {
    font-size: clamp(14px, 2vw, 18px);
    margin-bottom: 30px;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    line-height: 1.8;
}

.btn-program-daftar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: clamp(14px, 2vw, 18px) clamp(30px, 5vw, 50px);
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 700;
    transition: var(--transition);
    border: 2px solid var(--secondary-color);
    position: relative;
    z-index: 2;
    cursor: pointer;
    overflow: hidden;
}

.btn-program-daftar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--secondary-light);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn-program-daftar:hover::before {
    opacity: 1;
}

.btn-program-daftar:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(243, 156, 18, 0.4);
}

.btn-program-daftar:active {
    transform: translateY(-1px);
}

.btn-program-daftar i {
    transition: var(--transition);
}

.btn-program-daftar:hover i {
    transform: scale(1.1);
}

/* ==================== EMPTY STATE ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.empty-state p {
    font-size: 16px;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
    .program-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .program-unggulan-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .hero-program {
        min-height: auto;
        padding: 50px 20px;
    }

    .program-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .program-unggulan-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .program-header {
        padding: 40px 24px;
    }

    .program-unggulan-header {
        padding: 40px 24px;
    }

    .program-icon {
        width: 80px;
        height: 80px;
    }

    .program-icon i {
        font-size: 40px;
    }

    .program-unggulan-icon {
        width: 88px;
        height: 88px;
    }

    .program-unggulan-icon i {
        font-size: 44px;
    }

    .program-body {
        padding: 24px;
    }

    .program-unggulan-body {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-program {
        padding: 40px 15px;
    }

    .program-content-section {
        padding: 40px 15px;
    }

    .program-grid {
        gap: 16px;
    }

    .program-unggulan-grid {
        gap: 16px;
    }

    .program-card {
        border-radius: 12px;
    }

    .program-unggulan-card {
        border-radius: 12px;
    }

    .program-header {
        padding: 32px 20px;
    }

    .program-unggulan-header {
        padding: 32px 20px;
    }

    .program-icon {
        width: 72px;
        height: 72px;
    }

    .program-icon i {
        font-size: 36px;
    }

    .program-unggulan-icon {
        width: 80px;
        height: 80px;
    }

    .program-unggulan-icon i {
        font-size: 40px;
    }

    .program-body {
        padding: 20px;
    }

    .program-unggulan-body {
        padding: 20px;
    }

    .cta-program-section {
        padding: 30px 15px;
        border-radius: 12px;
    }

    .section-intro-program {
        margin-bottom: 40px;
    }

    .section-divider {
        margin: 50px auto;
    }
}

/* ==================== ANIMATIONS & UTILITIES ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}