@font-face {
    font-family: 'Bebas Neue';
    src: url('../../fonts/BebasNeue-Regular.ttf') format('truetype');
}

a {
    text-decoration: none;
    color: #cd0000;
}

.bg-black {
    background-color: #000000;
}

body, th, td {
    font-family: Helvetica,Arial,Lucida,sans-serif;
    font-size: 18px;
}

h1, h2, h3, h4, h5, .navbar {
    font-family: 'Bebas Neue',Helvetica,Arial,Lucida,sans-serif;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (height: 9/16 = 56.25%) */
    padding-top: 30px; /* Add some space at the top */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.navbar {
    font-size: 18px;
}


.card-form h4 {
    font-size: 28px;
}

.py-section {
    padding: 95px 0;
}

.nav-tabs .nav-link {
    color: #cd0000;
    transition: 0.03s ease all;
}

#programmes .nav-tabs .nav-link {
    padding-left: 25px;
    padding-right: 25px;
}

#programmes .nav-tabs .nav-link.active {
    font-size: 21px;
}

#programmes .nav-tabs .nav-item {
    display: flex;
    align-items: flex-end;
}

#programmes .tab-inner-content {
    background-color: #ffffff;
}

#programmes .tab-content h3 {
    margin-top: 25px;
}

.shoutout {
    display: flex;
}

.shoutout > img {
    width: 400px;
    height: 400px;
    object-fit: cover;
    margin-right: 25px;
}

.shoutout h2 {
    font-size: 32px;
    margin-bottom: 25px;
}

.shoutout2 {
    background-color: rgba(238, 238, 238, 0.2);
    padding: 15px;
    border-radius: 5px;
}

#register {
    text-align: center;
    margin-top: -110px;
    padding: 110px 0 0 0;
}

#mainpic {
    padding: 75px;
    background-size: cover;
    background-position: right center;
}

#mainpic > img {
    max-width: 650px;
    width: 100%;
}

#register2 {
    background-color: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.1) 0 0 15px;
}

#study {
    background: linear-gradient(to bottom, rgba(205, 0, 0, 0.8), rgba(205, 0, 0, 0.1)), url("../images/logistic-tiong-nam.png") no-repeat top center fixed;
    background-size: cover;
}

#study .card {
    padding: 25px;
    min-height: 480px;
    border: 1px solid #ffffff;
    box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 5px;
    border-radius: 5px;
}

#study .card.card2 {
    min-height: unset;
}

#study .card:hover,
.misc-icons .item:hover {
    border: 1px solid #cd0000;
}

#about,
#programmes {
    background: linear-gradient(to bottom, rgba(238, 238, 238, 0.5), #eeeeee, rgba(238, 238, 238, 0.5));
    box-shadow: rgba(0, 0, 0, 0.05) 0 0 5px;
}

#about .icon-box {
    padding: 25px 15px;
    margin: 15px 0;
    box-shadow: rgba(0, 0, 0, 0.08) 1px 1px 5px;
    background-color: #ffffff;
}

#about .icon-box i {
    font-size: 36px;
    margin-bottom: 15px;
}

#about .icon-box h5 {
    font-size: 21px;
}

section h2 {
    font-size: 52px;
}

header .navbar-brand img {
    height: 40px;
    margin: 10px 0;
}

header .navbar-brand img.prime-logo {
    margin-left: 15px;
    height: 25px;
}

.misc-icons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.misc-icons .item {
    width: 49%;
    text-align: left;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    box-shadow: rgba(0, 0, 0, 0.1) 1px 1px 5px;
    border-radius: 5px;
    padding: 15px;
    margin: 5px;
    border: 1px solid #ffffff;
    background-color: #ffffff;
}

.misc-icons2 .item {
    width: 32.3%;
}

.misc-icons .item i {
    display: block;
    font-size: 28px;
    color: #cd0000;
    padding: 25px;
}

.shrink {
    height: 70px;
}

.shrink .navbar-brand img {
    height: 40px;
}

.shrink .navbar-nav .nav-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.shrink .navbar-brand img.prime-logo {
    margin-left: 15px !important;
    height: 25px;
}

/* Transition for smooth effect */
header {
    transition: height 0.3s;
}

header.navbar-shrink {
    height: 60px;
}

header.sticky-top.shrink .navbar-brand img {
    margin: 0;
}

header.navbar-shrink .navbar-brand img {
    height: 40px;
}

header.navbar-shrink .navbar-nav .nav-link {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.form-group, button {
    margin-bottom: 5px;
}

.card-radius {
    border-radius: 15px;
}


.programmes-title {
    margin: 55px 0 15px 0;
    font-size: 34px;
}

.programmes-wrap,
.programmes-wrap2 {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.programmes-wrap .item,
.programmes-wrap .title {
    width: 25%;
    height: 320px;
    padding: 0;
    text-align: center;
    border: 1px solid #ffffff;
    background-color: #666666;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: hidden;
}

.programmes-wrap .item {
    background-size: cover !important;
}

.programmes-wrap .title {
    background: url("../images/bg3.jpg") no-repeat fixed;
    background-size: contain;
    color: #ffffff;
}

.programmes-wrap .title h4 {
    font-size: 28px;
}

.programmes-wrap .title h4 i {
    margin-left: 5px;
}

.programmes-wrap .item .overlay {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: 100%;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.5);
}

.programmes-wrap .item .excerpt {
    transition: ease all 0.5s;
    transform: translateY(100px);
    color: #ffffff
}

.programmes-wrap .item .details {
    transition: ease all 0.5s;
    opacity: 0;
}

.programmes-wrap .item:hover .overlay {
    transition: ease all 0.5s;
    background-color: rgba(0, 0, 0, 0.95);
}

.programmes-wrap .item:hover .excerpt {
    transition: ease all 0.5s;
    transform: unset;
}

.programmes-wrap .item:hover .details {
    transition: ease all 0.5s;
    opacity: 1;
}

.programmes-wrap2 .item {
    box-sizing: border-box;
    width: 24%;
    margin: 15px 5px;
}

.programmes-wrap2 .item img {
    width: 100%;
}

.programmes-wrap2 .item .excerpt {
    position: relative;
    border: 1px solid #ffffff;
    background-color: #ffffff;
    padding: 25px 15px;
    margin: -75px 15px 0 15px;
    transition: ease all 0.1s;
}

.programmes-wrap2 .item:hover .excerpt {
    border: 1px solid #cd0000;
    transition: ease all 0.3s;
    transform: translateY(-35px);
}

.programmes-wrap2 .item:hover .excerpt h4 {
    color: #cd0000;
    transition: ease all 0.2s;
}

.programmes-wrap2 .item .mqa {
    word-break: break-all;
    font-size: 0.6em;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery > img {
    object-fit: cover;
    width: 220px;
    height: 220px;
    margin: 0;
}

#carouselPartners .row {
    align-items: center;
    min-height: 100px;
}

#carouselPartners img {
    max-height: 75px;
    object-fit: contain;
    margin: auto;
}

#testimonial {
    background: linear-gradient(180deg, rgba(238, 238, 238, 0.69), #ffffff, #ffffff);
}

#testimonial .card {
    padding: 25px;
    min-height: 640px;
}

#testimonial .card:hover {
    border-color: #cd0000;
    background-color: rgba(255, 255, 0, 0.01);
    box-shadow: rgba(0, 0, 0, 0.15) 1px 1px 15px;
}

#testimonial .stars {
    color: #cd0000;
    font-size: 1.2em;
    margin: 8px 0;
}

#testimonial .info {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

#testimonial .info img {
    border: 3px solid #cd0000;
    margin: 15px;
    border-radius: 50%;
    width: 85px;
    height: 85px;
    object-fit: cover;
}

#testimonial .content {
    min-height: 300px;
}

#scholarships {
    background-color: #FFA904;
}

footer .item {
    padding: 0 15px;
}

footer .item img {
    max-height: 65px;
}

footer .item h4 {
    font-size: 28px;
    margin-bottom: 10px;
}

footer .item p {
    font-size: 18px;
    color: #666666;
}

footer .logos h5 {
    font-size: 18px;
}

#awards .logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#awards .logos > .item {
    padding: 25px;
}

#awards .logos > .item > img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

#awards .logos > .item.featured > img {
    width: 200px;
    height: 200px;
}

#back-to-top {
    position: fixed;
    bottom: 100px;
    right: 5px;
    width: 60px;
    height: 60px;
    background-color: rgba(51, 51, 51, 0.8);
    color: #fff;
    text-align: center;
    border-radius: 5px;
    font-size: 18px;
    line-height: 12px;
    cursor: pointer;
    display: none;
    flex-direction: column;
    justify-content: center;
}

/* Show the button when scrolling */
#back-to-top.show {
    display: flex;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-icon {
    width: 100%;
    display: inline-block;
    padding: 5px;
    border-radius: 5px;
}

.loading-icon i {
    margin-right: 10px;
    animation: spin 1s linear infinite; /* Apply the spinning animation */
}

@media (max-width: 991px) {

    #study .card {
        min-height: unset;
    }

    .misc-icons {
        display: block;
    }

    .misc-icons .item {
        width: 100%;
    }

    .misc-icons .item i {
        padding: 5px 25px;
    }

    .misc-icons .item p {
        margin-bottom: 0;
    }

    .programmes-wrap, .programmes-wrap2 {
        justify-content: space-evenly;
    }

    .programmes-wrap2 .item {
        width: 45%;
    }

    #testimonial .card {
        min-height: unset;
    }

    #testimonial .content {
        min-height: unset;
    }

    footer .item {
        padding: 15px 0;
    }

}

@media (max-width: 991px) {
    .shoutout {
        display: block;
    }

    .shoutout > img {
        width: 100%;
        height: auto;
        margin-right: 0;
        margin-bottom: 25px;
    }

    #programmes .tab-inner-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    section h2 {
        font-size: 48px;
    }
}

@media (max-width: 767px) {
    .programmes-wrap2 .item {
        width: 100%;
    }

    header .navbar-brand img {
        height: 40px;
    }

    header .navbar-brand img.prime-logo {
        height: 30px;
    }
}
