.btn-red {
    background-color: #580f0f !important;
}

.bg-ready {
    color: #580f0f !important;
}

.text-red {
    color: #580f0f !important;
}

/* css topnav */

.topnav {
    font-size: 15px;
    padding-top: 15px;
    padding-bottom: 5px;
    background-color: #580f0f;
}

.topnav span {
    font-weight: 500;
    transition: color 0.3s ease;
}

.topnav span i {
    color: #ffffff;
}

/* end css topnav */

/* css navbar */
/* Navbar Brand */
.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: calc(70px + 2vw) !important;
    width: auto !important;
    max-height: none !important;
    max-width: none !important;
    display: block !important;
}

.navbar-brand img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Navbar */
.navbar {
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding-bottom: 0;
}

.navbar-nav .nav-link {
    font-size: calc(20px - 0.3vw);
    font-weight: 700;
    margin-right: 15px;
    color: #580f0f;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 10px 15px;
}

.navbar-nav .nav-link:hover {
    background-color: #580f0f;
    color: #ffffff;
}

.navbar-nav .nav-link.active {
    color: #580f0f;
    background-color: transparent;
}

.navbar-nav .nav-link.active:hover {
    background-color: #580f0f;
    color: #ffffff;
}

/* Dropdown */
.nav-item.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 10px 0;
}

.nav-item.dropdown:hover > .dropdown-menu {
    display: block;
}

.dropdown-item {
    font-size: 16px;
    color: #580f0f;
    padding: 8px 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-item:hover {
    background-color: #580f0f;
    color: #ffffff;
}

/* Submenu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu.submenu {
    top: 0;
    left: 100%;
    margin-left: 5px;
    min-width: 180px;
    display: none;
}

.dropdown-submenu:hover .dropdown-menu.submenu {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
    }
    .dropdown-submenu .dropdown-menu.submenu {
        position: static;
        margin-left: 20px;
        width: auto;
    }
}
/* end css navbar */

/* content */
/* banner*/
#banner {
    position: relative;
    background: url("../../img/banner2.jpg") center center no-repeat;
    background-size: cover;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    color: white;
    text-align: center;
    padding-bottom: 40px;
    overflow: hidden;
}

#banner::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: linear-gradient(to top, rgba(247, 247, 247, 0.5), transparent);
    z-index: 1;
}

#banner h1,
#banner h3,
#banner .btn-detail {
    position: relative;
    z-index: 2;
}

#banner h1 {
    font-size: 45px;
    font-weight: bold;
    /* font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif; */
    margin-bottom: 0px;
    color: #580f0f;
}

#banner h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

#banner .btn-detail {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

#banner .btn-detail button {
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* end content */

/* announcement */
#announcement {
    background-color: #580f0f;
}

#announcement .btn {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
}

#announcement .btn:hover {
    background-color: rgba(255, 255, 255, 0.4);
}

#announcement-wrapper {
    transition: transform 0.6s ease;
    min-width: 100%;
}

.announcement-item {
    white-space: nowrap;
    flex: 0 0 100%;
}

/* end announcement */

#news {
    background-color: #ffffff; /* Latar belakang abu-abu muda untuk kontras */
    padding: 60px 0;
}

#news h2 {
    color: #580f0f;
    font-weight: bold;
    margin-bottom: 40px;
}

#news h6 {
    color: #580f0f;
    font-weight: bold;
}

#news .position-absolute {
    background: #580f0f;
}

#news .position-relative h5 {
    color: #580f0f;
    font-weight: bold;
}

#news img {
    transition: transform 0.5s ease;
}
#news img:hover {
    transform: scale(1.01);
}
/* end news*/

/* faculty */

#faculty {
    background-color: #f8f9fa;
    padding: 20px 0;
}

/* #faculty .title {
    background-color: #580f0f !important;
    text-align: center;
    padding-bottom: 2px;
    padding-top: 5px;
} */

#faculty h2 {
    color: #580f0f;
    font-weight: bold;
    margin-bottom: 2px;
}

#faculty h4 {
    color: #580f0f;
    font-size: 1.5rem;
}

#faculty p {
    color: #333;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify; /* Rata kanan-kiri */
}

#faculty .img-fluid {
    max-height: 400px;
    object-fit: cover; /* Pastikan gambar proporsional */
    border-radius: 10px;
}

#faculty .btn-warning {
    background-color: #ffffff;
    border: none;
    color: #580f0f;
    font-weight: bold;
    padding: 10px 20px;
    transition: background-color 0.3s ease;
}

#faculty .btn-warning:hover {
    background-color: #ffffff;
}

/* end faculty */

/* studi-program*/

#study {
    background-color: #ffffff; /* Latar belakang abu-abu muda untuk kontras */
    padding: 40px 0;
}

#study h2 {
    color: #580f0f;
    font-weight: bold;
    margin-bottom: 40px;
}

#study .card {
    background-color: #580f0f;
    border: none;
    border-radius: 12px;
    overflow: hidden; /* Pastikan gambar tidak keluar dari border-radius */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#study .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#study .card-body {
    padding: 20px;
}

#study .card-title {
    color: #ffffff; /* Warna kuning untuk judul agar menonjol */
    font-size: 1.5rem;
    margin-bottom: 15px;
}

#study .card-text {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.6;
}

#study .btn-detail {
    background-color: #ffffff;
    border: none;
    color: #580f0f;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

#study .btn-detail:hover {
    background-color: #ffc107;
    color: #580f0f;
}

/* end studi-program */

/* slider facility */

/* .facility .card-img-top {
    height: 200px;
    object-fit: cover;
}
.facility .card {
    border-radius: 12px;
} */

/* end slider facility */

/* gallery */

#gallery {
    background-color: #ffffff; /* Latar belakang abu-abu muda untuk kontras */
    padding: 60px 0;
}

#gallery .container,
#gallery .row,
#gallery .gallery-item {
    background-color: transparent !important;
}

.gallery-item img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.gallery-item:hover img {
    transform: scale(1.03);
}
/* end gallery */
