/* Container max-width custom class */
.main-content {
    padding-top: 80px;
}

body {
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("/img/background-page.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.7;
    z-index: -1;
}

.max-width-900 {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/*--- INI ADALAH START DARI SECTION PROFILE BIO */

.profile-bio-section {
    min-height: 50vh;
    display: flex;
    justify-content: flex-end; /* Mengatur posisi vertikal ke bawah */
    align-items: center;
}

/* Wrapper foto profil dengan border ganda dan background warna marun */
.profile-pic-wrapper {
    position: relative;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background-color: #0a2a1b;
    padding: 6px;
    border: 6px solid rgba(100, 132, 190, 0.5);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Foto profil */
.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid #ffffff; /* border putih tengah */
    box-sizing: border-box;
}

/* Teks bio dengan scrollbar */
.profile-bio-text {
    /* max-height: 230px; */
    /* overflow-y: auto; */
    padding-right: 0.5rem; /* beri ruang scroll */
    color: #222;
    font-size: 1rem;
    line-height: 1.5;
    text-align: justify;
}

.profile-bio-text p {
    justify-content: center;
}

/* Scrollbar styling */
.profile-bio-text::-webkit-scrollbar {
    width: 8px;
}
.profile-bio-text::-webkit-scrollbar-thumb {
    background-color: rgba(81, 122, 201, 0.6);
    border-radius: 4px;
}
.profile-bio-text::-webkit-scrollbar-thumb:hover {
    background-color: rgba(81, 122, 201, 0.9);
}

/* Responsive: beri jarak bawah untuk gambar saat stacking di mobile */
@media (max-width: 576px) {
    .profile-pic-wrapper {
        margin-bottom: 1.5rem;
    }
}

/* INI ADALAH END DARI SECTION PROFILE BIO */

/* INI ADALAH START DARI SECTION EDUCATIONS SECTION*/

.education-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.education-container {
    max-width: 900px;
    margin: 0 auto;
    /* height: 400px; */
    /* overflow-y: auto;  */
    overflow-x: auto;
    padding-right: 1rem; /* space untuk scrollbar */
}

.section-title {
    font-weight: 700;
    font-size: 1.875rem; /* 30px */
    color: #1e293b; /* dark slate */
}

/* Layout grid 3 kolom untuk timeline */
.education-timeline {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    gap: 1rem;
    position: relative;
}

/* Item kiri & kanan */
.education-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.education-item.left {
    display: flex;
    justify-content: center; /* Mengatur isi flex jadi tengah */
    text-align: center; /* Ubah text-center supaya teks di tengah */
    width: 240px;
    height: 240px;
    margin: 0 auto; /* Jika perlu, agar container juga center */
    margin-left: 270px;
}
.education-item.right {
    justify-content: flex-start;
    text-align: left;
    margin-left: 70px;
}

/* Info pendidikan */
.education-info h3 {
    margin: 0 0 0.25rem;
    color: #427057;
    font-weight: 700;
}
.education-info p {
    margin: 0;
    color: #111827; /* gray-900 */
}
.education-info .education-year {
    font-style: italic;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Image bulat */
.education-image-wrapper {
    width: 140px; /* naikkan ukuran supaya lebih besar */
    height: 140px; /* naikkan ukuran */
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    background: white; /* opsional, supaya latar belakang putih terlihat */
    display: flex;
    justify-content: center;
    align-items: center;
}
.education-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Pastikan juga gambar meruncing ke lingkaran */
    display: block; /* Hilangkan spasi default inline image */
}

/* Garis timeline vertikal ditengah */
.education-timeline-line {
    display: flex;
    position: relative;
    align-items: center;
    justify-content: space-between;
    height: 320px;
}

.education-timeline-line::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    background-color: #0c4a6e; /* navy blue */
    border-radius: 3px;
}

/* Logo di timeline */
.education-logo-wrapper {
    width: 100px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #0c4a6e;
    overflow: hidden;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0.5rem 0;
    z-index: 1;
}

.education-logo-wrapper.bottom {
    margin-top: auto;
}

.education-logo {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

/* INI ADALAH END DARI SECTION EDUCATIONS SECTION*/

/* INI ADALAH START DARI SECTION EXPERIENCE SECTION*/

.experience-section {
    max-width: 960px;
    margin: 0 auto;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
}

.exp-box {
    display: grid;
    justify-content: center;
    text-align: center;
}

.exp-title {
    font-weight: bold;
    font-size: medium;
}
.scrollable {
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Prevent line breaks */
}

/* Container utama scroll */
.timeline-scroll {
    overflow-x: auto;
    padding: 10rem 0;
}

/* Timeline horizontal */
.timeline-horizontal {
    display: flex;
    list-style: none;
    position: relative;
    padding: 2rem 0;
    margin: 0;
    min-width: max-content;
}

/* Garis tengah */
.timeline-horizontal::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: #111;
    z-index: 0;
}

/* Setiap titik */
.timeline-item {
    position: relative;
    flex: 0 0 150px;
    text-align: center;
    z-index: 1;
}

/* Titik lingkaran */
.timeline-item::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: #111;
    border-radius: 50%;
    z-index: 2;
}

/* Nomor */
.timeline-item .number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 0.5rem;
    display: block;
}

/* Teks atas & bawah */
.top-text,
.bottom-text {
    position: absolute;
    width: 100%;
    transform: translateX(-50%);
    left: 50%;
}
.top-text {
    bottom: 100%;
    margin-bottom: 1rem;
}
.bottom-text {
    top: 100%;
    margin-top: 1rem;
}

/* Gaya teks */
.top-text .title,
.bottom-text .title {
    font-weight: 700;
    color: #427057;
}

.top-text .role,
.bottom-text .role {
    font-style: italic;
    font-weight: 600;
    color: #000;
}

.top-text .year,
.bottom-text .year {
    font-size: 0.9rem;
    color: #555;
}

/*--- INI ADALAH START DARI SECTION PROGRAMS */
.programs-img {
    height: 300px;
}

.col-lg-4,
.col-md-6 {
    display: flex;
    flex-direction: column;
}

.card {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(13, 58, 145, 0.15);
}

/* Animasi transisi konten other news */
.fade-transition {
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
}

.fade-out {
    opacity: 0;
}

/* Pagination */
.page-item.active .page-link {
    background-color: #427057;
    border-color: #427057;
    color: #fff;
}
.page-link {
    color: #427057;
}

.page-link:hover {
    color: #fff;
    background-color: #427057;
    border-color: #427057;
}
