/* ============================
   GLOBAL
============================ */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #ffffff;
    color: #333;
}

section {
    padding-top: 60px;
    padding-bottom: 60px;
}

a {
    text-decoration: none;
}


/* ============================
   PROGRAM SECTION 
============================ */
.program-card {
    border: 1px solid #eee;
    border-radius: 12px;
    transition: .3s;
    background: #fff;
}
.program-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.program-icon {
    width: 80px;
    height: 80px;
}


/* ============================
   FOOTER
============================ */
.site-footer {
    background: #002c6a;
    color: white;
    padding: 50px 0;
}

.site-footer a {
    color: #c6d4ff;
}

.site-footer a:hover {
    color: white;
}

/* ============================
   MOBILE NAV FIX
============================ */
@media (max-width: 991px) {
    .navbar-nav {
        margin-top: 20px;
        text-align: center;
    }
    .navbar-nav .nav-link {
        padding: 12px 0 !important;
    }
    .header-buttons {
        margin-top: 10px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .modal-dialog {
        max-width: 100%;
        margin: 0;
    }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all .6s ease;
}

.fade-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.blog-card {
    transition: .3s ease;
    border-radius: 12px;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.blog-card img {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.card {
    border-radius: 14px;
}


.card:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}

.rounded-circle {
    border: 4px solid #f8f9fa;
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);

}

.video-card {
    border-radius: 14px;
    overflow: hidden;
    transition: 0.25s;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Thumbnail */
.video-thumb {
    height: 220px;
    object-fit: cover;
    border-radius: 14px 14px 0 0;
}

/* Play button */
.play-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.25s;
}

.play-btn i {
    color: #0d6efd;
    font-size: 1.25rem;
}

.play-btn:hover i {
    color: #fff;
}

/* Judul maksimum 2 baris */
.card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Deskripsi maksimum 2 baris */
.description-short {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.play-btn:hover {
    background: rgba(0,0,0,0.8);
}

/* Jarak antar card di mobile */
@media (max-width: 576px) {
    .video-card {
        margin-bottom: 15px;
    }

    .carousel-item .row {
        row-gap: 15px !important;   /* jarak vertikal */
        column-gap: 0px !important; /* jarak horizontal */
    }

    .video-card img {
        border-radius: 10px 10px 0 0;
    }

    .card-body {
        padding: 12px !important;
    }
}

.core-skills-cards {
  font-family: "Poppins", sans-serif;
}

.core-skills-cards h2 {
  font-weight: 600;
  background: linear-gradient(90deg, #4A7BFF, #8A2BE2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skill-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  cursor: default;
  
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.skill-icon {
  font-size: 36px;
  margin-bottom: 15px;
}

.skill-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.skill-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: #555;
}

/* Responsive */
@media (max-width: 992px) {
  .skill-card {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .skill-card {
    padding: 18px;
  }
}

.carousel-item .card {
    min-height: 320px; /* Supaya tinggi kartu sama */
}


/* ===== HERO CAPTION ANIMATION FIX ===== */

/* Semua caption default disembunyikan */
.hero-caption > * {
    opacity: 0;
    transform: translateY(30px);
}

/* Saat slide aktif muncul → animasi jalan */
.carousel-item.active .hero-caption > * {
    animation: fadeUp 0.9s ease forwards;
}

/* Delay tiap elemen */
.carousel-item.active .hero-caption h1 {
    animation-delay: 0.1s;
}
.carousel-item.active .hero-caption p {
    animation-delay: 0.3s;
}
.carousel-item.active .hero-caption a {
    animation-delay: 0.5s;
}

/* Keyframe animasi */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* PENTING: Trigger ulang animasi setiap slide berubah */
.carousel-item.carousel-item-start .hero-caption > *,
.carousel-item.carousel-item-end .hero-caption > * {
    opacity: 0 !important;
    transform: translateY(30px) !important;
    animation: none !important;
}

/* ===== TYPEWRITER ANIMATION ===== */

.hero-caption h1 {
    overflow: hidden;               /* wajib untuk efek ketik */
    white-space: nowrap;            /* biar teks satu baris */
    border-right: none;   /* caret / kursor */
    width: 0;                       /* start dari 0 */
    opacity: 0;                     /* sembunyikan awal */
    margin-bottom: 30px;
    line-height: 1.3;
    color: #d4af37;
}

.carousel-item.active .hero-caption h1 {
    opacity: 1;
    animation: typing 2.8s steps(40, end) forwards,
               blinkCaret 0.75s step-end infinite;
    animation-delay: .2s;  /* nunggu slide muncul */
    margin-bottom: 30px;
}

/* ketik teks */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

/* kedip caret */
@keyframes blinkCaret {
    50% { border-color: transparent; }
}

.carousel-item.active .hero-caption p {
    opacity: 0;
    animation: fadeUpNormal .9s ease forwards;
    animation-delay: 3s; /* setelah judul selesai diketik */
}

.carousel-item.active .hero-caption a {
    opacity: 0;
    animation: fadeUpNormal .9s ease forwards;
    animation-delay: 3.3s;
}

@keyframes fadeUpNormal {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}