/* ===== MODERN CLEAN ENHANCEMENTS FOR FRONT-DIKMEN ===== */
/* Target: Guru - clean, readable, comfortable */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; }

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

/* ===== HERO SECTION ===== */
.bg-half-170 .title-heading {
    animation: fadeInUp 0.6s ease-out;
}
.bg-half-170 .anim {
    animation: fadeInUp 0.7s ease-out 0.2s both;
}
.bg-half-170 .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    font-weight: 600;
}
.bg-half-170 .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* ===== SECTION TITLES ===== */
.section-title h4.title::after,
.program-category-section h4.title::after,
.qna-heading h4.title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #4090cd;
    border-radius: 3px;
    margin-top: 10px;
}
.section-title h4.title::after {
    margin-left: auto;
    margin-right: auto;
}

/* ===== ALUR PENDAFTARAN ===== */
#section-alur {
    background: #f8f9fa;
}
.timeline-page .timeline-item {
    animation: fadeInUp 0.5s ease-out both;
}
.timeline-page .timeline-item:nth-child(1) { animation-delay: 0.05s; }
.timeline-page .timeline-item:nth-child(2) { animation-delay: 0.1s; }
.timeline-page .timeline-item:nth-child(3) { animation-delay: 0.15s; }
.timeline-page .timeline-item:nth-child(4) { animation-delay: 0.2s; }

.event {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border: 1px solid #e8eef4;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.event:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.event h4.fw-bolder {
    color: #0f5ea8;
}
.duration img {
    transition: transform 0.2s ease;
}
.duration:hover img {
    transform: scale(1.03);
}

/* ===== PROGRAM CATEGORY CARDS ===== */
.program-category-section {
    background: #ffffff;
}
.program-category-card {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.program-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #4090cd;
}
.program-category-card::before {
    height: 4px;
    border-radius: 12px 12px 0 0;
}
.program-category-visual {
    background: #f8fafc;
    border-bottom: 1px solid #e8eef4;
}
.program-category-icon {
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.2s ease;
}
.program-category-card:hover .program-category-icon {
    transform: scale(1.05);
}
.program-category-badge {
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: none;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
    50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}
.program-category-tag {
    border-radius: 6px;
    transition: background 0.2s ease;
}
.program-category-tag:hover {
    background: #eef4fb;
}
.program-category-cta {
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}
.program-category-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15,94,168,0.2);
}
.program-category-cta i {
    transition: transform 0.2s ease;
}
.program-category-cta:hover i {
    transform: translateX(3px);
}

/* Staggered card entrance */
.program-category-grid > [class*="col-"] {
    animation: fadeInUp 0.4s ease-out both;
}
.program-category-grid > [class*="col-"]:nth-child(1) { animation-delay: 0.05s; }
.program-category-grid > [class*="col-"]:nth-child(2) { animation-delay: 0.1s; }
.program-category-grid > [class*="col-"]:nth-child(3) { animation-delay: 0.15s; }
.program-category-grid > [class*="col-"]:nth-child(4) { animation-delay: 0.2s; }
.program-category-grid > [class*="col-"]:nth-child(5) { animation-delay: 0.25s; }
.program-category-grid > [class*="col-"]:nth-child(6) { animation-delay: 0.3s; }

/* ===== QNA SECTION ===== */
.qna-section {
    background: #eef4fb;
}
.qna-panel {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}
.qna-panel:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.qna-control {
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border: 1.5px solid #cfe0f0;
}
.qna-control:focus {
    border-color: #4090cd;
    box-shadow: 0 0 0 3px rgba(64,144,205,0.1);
}
.qna-submit-btn {
    border-radius: 8px;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}
.qna-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34,197,94,0.2);
}
.qna-anchor-btn,
.qna-search-btn,
.qna-page-btn {
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}
.qna-anchor-btn:hover,
.qna-search-btn:hover,
.qna-page-btn:hover {
    transform: translateY(-1px);
}
.qna-avatar {
    border-radius: 10px;
}
.qna-item {
    transition: padding-left 0.2s ease;
    padding: 18px 0;
}
.qna-item:hover {
    padding-left: 8px;
    background: #f8fafc;
    border-radius: 6px;
}
.qna-answer {
    border-radius: 8px;
}
.qna-alert {
    border-radius: 8px;
    animation: fadeInUp 0.3s ease-out;
}

/* ===== PENGUMUMAN SECTION ===== */
#pengumuman {
    background: #f4f7fb;
}
#pengumuman h2 {
    font-weight: 800;
    color: #1f2d3d;
}
#pengumuman .card {
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
#pengumuman .card-body {
    padding: 2rem;
}
#pengumuman .nav-tabs {
    border: none;
    gap: 6px;
    background: #f0f4f8;
    border-radius: 10px;
    padding: 4px;
    display: inline-flex;
}
#pengumuman .nav-tabs .nav-link {
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-weight: 700;
    font-size: 14px;
    color: #5f6f83;
    transition: all 0.2s ease;
    background: transparent;
}
#pengumuman .nav-tabs .nav-link:hover {
    color: #0f5ea8;
    background: #e4ecf5;
}
#pengumuman .nav-tabs .nav-link.active {
    background: #0f5ea8;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(15,94,168,0.2);
}
#pengumuman .table {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
#pengumuman .table thead {
    background: #0f5ea8;
}
#pengumuman .table thead th {
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 16px;
    border: none;
}
#pengumuman .table tbody tr {
    transition: background 0.15s ease;
}
#pengumuman .table tbody tr:hover {
    background: #f0f7ff;
}
#pengumuman .table tbody td {
    padding: 14px 16px;
    vertical-align: middle;
    font-size: 14px;
    border-color: #e8eef4;
}
#pengumuman .btn-primary {
    background: #0f5ea8;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s ease, transform 0.15s ease;
}
#pengumuman .btn-primary:hover {
    background: #0b4c88;
    transform: translateY(-1px);
}

/* ===== FOOTER ===== */
.footer-head {
    position: relative;
    padding-bottom: 12px;
}
.footer-head::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 3px;
    background: #4090cd;
    border-radius: 3px;
}
footer .social-icon a {
    transition: transform 0.2s ease;
}
footer .social-icon a:hover {
    transform: translateY(-2px);
}

/* ===== BACK TO TOP ===== */
#back-to-top {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.2s ease;
}
#back-to-top:hover {
    transform: translateY(-2px);
}

/* ===== PAGINATION ===== */
.pagination-btn {
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
}
.pagination-btn:hover {
    transform: translateY(-1px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 767.98px) {
    .event {
        padding: 18px;
    }
    #pengumuman .nav-tabs {
        flex-direction: column;
        width: 100%;
    }
    #pengumuman .nav-tabs .nav-link {
        text-align: center;
    }
}
