/*** Button Start ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-xl-square {
    width: 66px;
    height: 66px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square,
.btn-xl-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn.btn-primary {
    color: var(--bs-white);
    border: none;
}

.btn.btn-primary:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
}

.btn.btn-light {
    color: var(--bs-primary);
    border: none;
}

.btn.btn-light:hover {
    color: var(--bs-white);
    background: var(--bs-primary);
}

/*** Navbar ***/
.navbar-light {
    background: #ffffff !important;
    transition: all 0.3s ease;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1030;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-light .navbar-brand {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
}

.navbar-light .navbar-brand img {
    max-height: 55px;
    width: auto;
    transition: .3s;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Roboto', sans-serif;
    position: relative;
    margin: 0 8px;
    padding: 12px 0;
    color: var(--bs-dark);
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--bs-primary);
}

.navbar-light .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 6px;
    left: 0;
    background: var(--bs-primary);
    transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 600;
    vertical-align: middle;
    margin-left: 6px;
    color: inherit;
    transition: all 0.3s ease;
}

.navbar .dropdown-menu {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    margin-top: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

.navbar .dropdown-menu a {
    color: var(--bs-dark);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.navbar .dropdown-menu a:hover {
    background: var(--bs-primary);
    color: var(--bs-white);
    padding-left: 25px;
}

@media (max-width: 991.98px) {
    .navbar-light {
        background: #ffffff !important;
        padding: 10px 0;
    }

    .navbar-light .navbar-brand img {
        max-height: 45px;
    }

    .navbar-light .navbar-nav .nav-link {
        color: var(--bs-dark);
        margin: 0;
        padding: 10px 15px;
    }

    .navbar-light .navbar-nav .nav-link:hover,
    .navbar-light .navbar-nav .nav-link.active {
        color: var(--bs-primary);
    }

    .navbar-light .navbar-nav .nav-link::after {
        display: none;
    }

    .navbar-light .navbar-collapse {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 10px;
        padding-top: 5px;
    }

    .navbar-light .navbar-toggler {
        border: 1px solid rgba(0, 0, 0, 0.2);
        color: var(--bs-dark);
        padding: 6px 12px;
    }

    .navbar-light .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 0.7)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar .dropdown-menu {
        background: #f8f9fa;
        box-shadow: none;
        border-radius: 0;
        border: none;
        border-left: 3px solid var(--bs-primary);
        margin-left: 15px;
    }

    .navbar .dropdown-menu a {
        color: var(--bs-dark);
    }
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-item .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
    }

    .navbar-light .navbar-nav .nav-item:hover .dropdown-menu {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }
}

/*** Navbar End ***/


.card-img-top {
    height: 250px;
    /* atau sesuaikan seperti 200px, 300px */
    object-fit: cover;
    object-position: center;
}

/*** Single Page Hero Header Start ***/
.bg-breadcrumb {
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url(../img/Gedung-Itenas-Final.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 140px 0 60px 0;
    transition: 0.5s;
}

@media (min-width: 992px) {
    .bg-breadcrumb {
        padding: 140px 0 60px 0;
    }
}

@media (max-width: 991px) {
    .bg-breadcrumb {
        padding: 60px 0 60px 0;
    }
}

.bg-breadcrumb .breadcrumb {
    position: relative;
}

.bg-breadcrumb .breadcrumb .breadcrumb-item a {
    color: var(--bs-white);
}

/*** Single Page Hero Header End ***/


/*** Service Start ***/
.service .service-item {
    background: var(--bs-light);
    border-radius: 10px;
    transition: 0.5s;
}

.service .service-item:hover {
    box-shadow: 0 0 45px rgba(0, 0, 0, .2);
}

.service .service-item .service-img {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: 0.5s;
}

.service .service-item .service-img img {
    transition: 0.5s;
}

.service .service-item:hover .service-img img {
    transform: scale(1.2);
}

/*** Service End ***/


/*** Features Start ***/
.feature .feature-item {
    text-align: center;
    border-radius: 10px;
    background: var(--bs-light);
    border: 1px solid transparent;
    transition: 0.5s;
}

.feature .feature-item:hover {
    border: 1px solid var(--bs-primary);
}

.feature .feature-item .feature-icon {
    background: var(--bs-white);
    border-radius: 10px;
    display: inline-block;
}

/*** Features End ***/

/*** Offer Start ***/
.offer-section .nav a.accordion-link {
    width: 100%;
    border-radius: 10px;
    display: flex;
    background: var(--bs-white);
    transition: 0.5s;
}

.offer-section .nav a.accordion-link.active {
    color: var(--bs-white);
    background: var(--bs-primary);
}

.offer-section .nav a.accordion-link h5 {
    transition: 0.5s;
}

.offer-section .nav a.accordion-link.active h5 {
    color: var(--bs-white);
}

/*** Offer End ***/

/*** Blog Start ***/
.blog .blog-item {
    border-radius: 10px;
    background: var(--bs-white);
    box-shadow: inset 0 0 45px rgba(0, 0, 0, .1);
    transition: 0.5s;
}

.blog .blog-item a {
    transition: 0.5s;
}

.blog .blog-item:hover a:hover {
    color: var(--bs-primary);
}

.blog .blog-item .blog-img {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.blog .blog-item .blog-img img {
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img img {
    transform: scale(1.2);
}

.blog .blog-item .blog-img::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 10px;
    background: rgba(0, 208, 132, 0.1);
    opacity: 0;
    transition: 0.5s;
    z-index: 1;
}

.blog .blog-item:hover .blog-img::after {
    opacity: 1;
}

.blog .blog-item .blog-img .blog-title {
    position: absolute;
    bottom: 25px;
    left: 25px;
    z-index: 5;
}

.blog .blog-item .blog-img .blog-title a {
    color: var(--bs-white);
    background: var(--bs-primary);
    transition: 0.5s;
}

.blog .blog-item:hover .blog-img .blog-title a:hover {
    color: var(--bs-dark);
}

.blog-carousel .owl-stage-outer {
    margin-top: 58px;
}

.blog .owl-nav .owl-prev {
    position: absolute;
    top: -58px;
    left: 0;
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 6px 35px;
    border-radius: 30px;
    transition: 0.5s;
}

.blog .owl-nav .owl-prev:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
}

.blog .owl-nav .owl-next {
    position: absolute;
    top: -58px;
    right: 0;
    background: var(--bs-primary);
    color: var(--bs-white);
    padding: 6px 35px;
    border-radius: 30px;
    transition: 0.5s;
}

.blog .owl-nav .owl-next:hover {
    background: var(--bs-dark);
    color: var(--bs-primary);
}

/*** Blog End ***/

/*** Speaker Start (Redesigned & Custom Colors) ***/
.speaker .speaker-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--bs-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* PERUBAHAN: Menambahkan 'background-color' ke transisi */
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.speaker .speaker-item:hover {
    /* PERUBAHAN: Mengubah background menjadi oranye saat hover */
    background-color: #fd7e14;
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.team .team-item .team-content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    transition: transform 0.4s ease;
}

.speaker .speaker-item:hover .speaker-content-wrapper {
    transform: translateY(-20px);
}

.speaker .speaker-item .speaker-img {
    width: 150px;
    height: 150px;
    margin: 0 auto;
    position: relative;
    border: 5px solid var(--bs-white);
    box-shadow: 0 0 0 3px var(--bs-primary);
    border-radius: 50%;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.speaker .speaker-item:hover .speaker-img {
    transform: scale(1.05);
    /* PERUBAHAN: Mengubah bayangan (yang berfungsi sebagai border) menjadi putih */
    box-shadow: 0 0 0 1px white;
}

.speaker .speaker-item .speaker-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.speaker .speaker-item .speaker-title {
    padding-top: 20px;
}

.speaker .speaker-item .speaker-title h4,
.speaker .speaker-item .speaker-title p {
    /* PERUBAHAN: Menambahkan transisi warna pada teks */
    transition: color 0.4s ease;
}

/* PERUBAHAN: Menambahkan rule baru untuk mengubah semua teks di area judul menjadi putih saat hover */
.speaker .speaker-item:hover .speaker-title h4,
.speaker .speaker-item:hover .speaker-title p {
    color: white;
}

.speaker .speaker-item .speaker-title h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.speaker .speaker-item .speaker-title p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.speaker-title .speaker-details {
    opacity: 0;
    transform: translateY(10px);
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease;
    /* Teks di sini juga akan menjadi putih karena mewarisi dari rule di atas */
}

.speaker-item:hover .speaker-title .speaker-details {
    opacity: 1;
    transform: translateY(0);
    max-height: 150px;
    margin-top: 10px;
}

.speaker .speaker-item .speaker-social {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
    z-index: 1;
}

.speaker .speaker-item:hover .speaker-social {
    opacity: 1;
    transform: translateY(0);
}

.speaker .speaker-item .speaker-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: var(--bs-white);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Penyesuaian ikon sosial agar cocok dengan background oranye */
.speaker .speaker-item:hover .speaker-social a {
    background-color: rgba(255, 255, 255, 0.25);
    color: white;
}

.speaker .speaker-item:hover .speaker-social a:hover {
    background-color: white;
    color: #fd7e14;
    transform: translateY(-3px);
}

/*** Speaker End ***/

/*** Footer Start ***/
.footer {
    background: var(--bs-secondary);
}

.footer .footer-item {
    display: flex;
    flex-direction: column;
}

.footer .footer-item a {
    line-height: 35px;
    color: var(--bs-body);
    transition: 0.5s;
}

.footer .footer-item p {
    line-height: 35px;
}

.footer .footer-item a:hover {
    color: var(--bs-primary);
}

.footer .footer-item .footer-btn a,
.footer .footer-item .footer-btn a i {
    transition: 0.5s;
}

.footer .footer-item .footer-btn a:hover {
    background: var(--bs-white);
}

.footer .footer-item .footer-btn a:hover i {
    color: var(--bs-primary);
}

/*** Footer End ***/