  @keyframes beating {
    0% {
        transform: scale(1);
    }
    70% {
        transform: scale(1);
    }
    75% {
        transform: scale(0.99);
    }
    80% {
        transform: scale(1.01);
    }
    85% {
        transform: scale(0.99);
    }
    90% {
        transform: scale(1);
    }

}

@keyframes beating2 {
    0% {
        transform: scale(1);
    }
    70% {
        transform: scale(1);
    }
    75% {
        transform: scale(0.98);
    }
    80% {
        transform: scale(1.05);
    }
    85% {
        transform: scale(0.98);
    }
    90% {
        transform: scale(1);
    }

}

.beat {
    animation-name: beating;
    animation-iteration-count: infinite;
    animation-duration: 3s;
    transition: ease all;
}

.delay-1 {
    animation-delay: 1s;
}
.delay-2 {
    animation-delay: 2s;
}

html, body {
    overflow-x: hidden;
}

/* Apply Poppins to headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; /* Semi-Bold for headings */
}

h5 {
    font-size: 18px;
}

/* Apply Roboto to general text */
body {
    margin-top: 90px;
    font-family: 'Roboto', sans-serif;
    font-weight: 400; /* Regular for body text */
}

/* Optional: Adjust weights for specific elements */
p {
    font-weight: 400; /* Regular for paragraphs */
}

strong {
    font-weight: 700; /* Bold for strong text */
}

.font2 {
    font-family: 'Roboto', sans-serif;
}

img {
    max-width: 100%;
}

.table>:not(caption)>*>* {
    border-bottom-width: 0;
}

.inline-block {
    display: inline-block;
}

.text-primary {
    color: #88163d !important;
}

.bg-primary {
    background-color: #88163d !important;
}

h1 {
    font-size: 2.3rem;
}

.bg-primary,
.bg-primary p,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5 {
    color: #10203c;
}

#mainpic {
    margin: 35px 0;
}

#mainform h1 {
    font-size: 14px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

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

body, p, td, li, span, div {
    color: #555555;
}

.title2 {
    font-size: 2.1rem;
    font-weight: bold;
}

#programmes .accordion-button.collapsed {
    color: #10203c;
}

#programmes .accordion-button:not(.collapsed) {
    background-color: #10203c;
    color: #fdd71a;
}

#programmes a {
    text-decoration: none;
}

.title-wrap {
    min-height: 10vw;
}

.title {
    padding: 1vw 5vw;
    display: inline-block;
    background: linear-gradient(190deg, #e6353e, #fdd71a);
    color: #ffffff;
    box-shadow: rgba(0, 0, 0, 0.5) 1px 1px 5px;
    text-transform: uppercase;
}

.title-center {
    margin-left: auto;
    margin-right: auto;
    border: 6px double #ffffff;
    box-shadow: none;
    border-radius: 15px;
}

.title-left {
    position: absolute;
    left: 0;
    text-align: left;
    border-top-right-radius: 15px;
    border-bottom-right-radius: 15px;
    padding-left: 12vw;
}

.title-right {
    position: absolute;
    right: 0;
    text-align: right;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    padding-right: 12vw;
}

.underline {
    border-bottom: dotted 2px;
}

#mainform {
    padding: 55px 25px 0 25px;
    background-color: #47723F;
    color: #ffffff;
}
#mainform h1 {
    font-size: 24px;
}

#mainform .form-group,
#mainform2 .form-group {
    margin-bottom: 5px;
}

#mainform .tnc,
#mainform2 .tnc {
    margin: 0 -25px;
    padding: 25px 15px;
    text-align: center;
}

.tag-primary {
    background-color: #47723F;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 5px;
}

.text-primary > small {
    font-size: 24px;
    color: #0f203c !important;
}

.text-secondary {
    color: #0f203c !important;
}

section h1.title2 {
    text-transform: uppercase;
    margin-bottom: 35px;
}

ul.badges {
    padding-left: 0;
    display: flex;
    list-style: none;
    justify-content: center;
}

ul.badges > li {
    margin: 0 15px;
    border-radius: 8px;
    padding: 5px 8px;
    background-color: #0d7933;
    color: #ffffff;
}

.btn-default {
    border-radius: 5px;
    border: 1px solid #CCC;
}

.btn-primary {
    background-color: #FFD700;
    color: #222222;
    border: none;
}

.btn-primary:hover {
    background-color: #e49817;
    border: none;
}

.btn-danger:hover {

}

.btn-danger {
    background-color: #830f3e;
}

.btn-warning, .btn-warning:hover {
    border: none;
}

.btn-warning, .btn-warning:active, .btn-warning:focus, .btn-warning:visited {
    background-color: #ff8027;
}

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

.sxs {
    display: initial;
}

.text-red {
    color: #830f3e;
}

.table-left tr th,
.table-left tr td {
    text-align: left;
}

table.table th {
    text-transform: uppercase;
}

.table.table-info,
.table.table-info th,
.table.table-info td {
    border: #5e6c86 1px solid;
}

table.table-info > thead > tr > th {
    background-color: #47723F;
    color: #ffffff;
}

table.table-info > tbody > tr > th {
    background-color: #e3e3e3;
    color: #111111;
}

table.table-info > tbody > tr > td {
    background-color: #ffffff;
    color: #111111;
}


.table.table-primary,
.table.table-primary th,
.table.table-primary td {
    border: rgba(155, 155, 155, 0.98) 1px solid;
}

table.table-primary > thead > tr > th {
    background-color: #47723F;
    color: #ffffff;
}

table.table-primary > tbody > tr > th {
    background-color: #47723F;
    color: #ffffff;
}

table.table-primary > tbody > tr > td {
    background-color: #ffffff;
    color: #333333;
}

.alert-primary {
    background-color: #47723F;
    color: #ffffff;
}

.alert-secondary {
    background-color: #47723F;
    color: #ffffff;
}

.alert-warning {
    background-color: #FFD700;
    color: #000000;
}

.btn-warning {
    color: #ffffff;
}

.alert-sm {
    padding: 8px;
}

.text-left {
    text-align: left;
}

.pl-1 {
    padding-left: 1em;
}

ul.list {
    color: #E0A706;
}

.why li,
.list li {
    margin-bottom: 5px;
}

ul.list > li > span {
    color: #212529;
}

.table.table-fancy>:not(:first-child) {
    border-top: none;
}

section {
    padding: 55px 0;
}

section h2 {
    font-size: 22px;
    padding: 15px 0;
    margin-top: 5px;
    margin-bottom: 5px;
}

section h3 {
    font-size: 23px;
    margin-bottom: 15px;
}

.nav-link {
    color: #47723F !important;
}

.navbar {
    background-color: #FFF;
    border: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    color: #333;
}

.navbar h3 {
    font-family: 'Roboto', sans-serif;
    margin: 10px 0 10px;
}

.navbar-header {
    float: none;
}

.navbar-brand {
    padding-top: 0;
}

.navbar-middle {
    display: inline-block;
    margin-left: 25px;
    margin-top: 15px;
    line-height: 1.2em;
    font-size: 1.5em;
}

.navbar-middle a:hover {
    border-bottom: 1px dotted;
    color: #f9a520;
}

.navbar-right {
    margin: 5px 0 0;
    font-size: 1.8em;
    margin-left: 15px;
    text-align: right;
}

#entry_requirement ul {
    list-style: none;
    padding-inline-start: 0;
}

#entry_requirement ul li {
    margin-bottom: 10px;
    font-size: 16px;
}

#masthead {
    padding: 0;
    background-image: url(/enquiries/utmspace/images/masthead-bg.jpg?20250413);
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#mainform .trap {
    display: none;
}

.text-one {
    color: #830f3e;
}

.icon-boxes {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.icon-boxes > .icon-box {
    width: 280px;
    margin-bottom: 35px;
    text-align: center;
}

.icon-boxes > .icon-box i {
    color: #f96120;
}

#progs .nav-stacked > li + li {
    margin-top: 0;
}

#progs .nav-pills > li > a {
    border-radius: 0;
    background-color: #def;
}

#progs .nav-pills > li:hover > a {
    background-color: #bbddff;
}

#progs .nav-pills > li.active > a {
    background-color: #1362a2;
}

#progs a.prog-btn {
    white-space: initial;
    display: block;
    border: 1px solid #CCC;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

#progs .nav-pills li img {
    height: 1em;
}

#progs .prog-label {
    padding: 5px 10px;
    font-size: 1.2em;
    background-color: #000;
    color: #ffcd02;
}

#threesixty {
    padding: 30px 0 20px;
    background-color: #e8e2fc;
}

#threesixty h1 {
    color: #333333;
}

table.boxed {
    margin-top: 20px;
    margin-bottom: 20px;
}

table.boxed {
    border-collapse: collapse;
}

table.boxed thead td, table.boxed thead th {
    box-sizing: border-box;
    padding: .5em 1em;
    background-color: #f2e3de;
}

table.boxed td, table.boxed th {
    border: 1px solid #ccc;
}

table.boxed td, table.boxed th {
    padding: 10px;
}

#apply {
    background-position: center;
}

#apply .col-md-2 {
    margin-bottom: 20px;
}

#apply .nav-tabs h2 {
    margin: 0.2em 0 0;
}

#apply .nav-tabs > li > a {
    border-radius: 0;
    border: 1px solid #EEE;
    color: #333;
    background-color: #FFF;
}

#apply .nav-tabs > li.active > a {
    border: 1px solid #ffd400;
    background-color: #ffd400;
    color: #000;
}

#apply .tab-pane > div {
    padding: 20px;
    border: 3px solid #f2b658;
    background-color: #FFF;
}

#apply .tab-pane > div h2 {
    margin-top: 0;
}

#apply .panel-group .panel {
    border-radius: 0;
}

#apply .panel-group .panel + .panel {
    border-top: 0;
    margin-top: 0;
}

.carousel-item h3 {
    margin-bottom: 0px;
}

#carousel .carousel-caption {
    position: initial;
    height: auto;
    padding: 30px 80px 50px;
    text-shadow: none;
    color: #333;
}

#carousel .carousel-caption h2 {
    margin-top: 0;
    color: #000;
}

#carousel .carousel-indicators {
    bottom: -30px;
}

#carousel .carousel-indicators .active {
    background-color: #FC0;
}

#carousel .carousel-indicators li {
    border: 1px solid #FC0;
}

#carousel .carousel-control {
    width: 60px;
    background-image: none;
    color: #337ab7;
}

#inter1, #inter2 {
    padding: 55px 0;
    background-color: #eeeeee;
    color: #10203c;
}

#inter1 h2, #inter2 h2 {
    font-size: 24px;
    line-height: 1.3em;
}

#inter2 td {
    border-top: 0;
    line-height: 1.2em;
}

#inter2 td img {
    margin-bottom: 10px;
}

#contact {
    border-bottom: 2px dotted #EEE;
    background: linear-gradient(10deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url(https://studymalaysia.com/images/college/premise/UTMSPACE-02.jpg) fixed;
    background-size: cover;
    background-position: center;
}

#contact .card {
    width: 100%;
    max-width: 500px;
    border-left: #FC0 solid 3px;
}

#contact p {
    margin-bottom: 20px;
}

#contact .contact-text {
    font-size: 1.2em;
}

#contact i {
    width: 20px;
    text-align: center;
    margin-right: 15px;
    color: #47723F;
}

#contact .card-body {
    padding: 1em 2em;
}

#contact .embed-map {
    height: 350px;
}

#footer {
    min-height: 90px;
    background-color: #333;
    color: #fff;
}

.powered-by {
    font-size: 13px;
}

.powered-by span {
    margin-left: 15px;
}

.sharing-icons {
    text-align: right;
}

.sharing-icons a img {
    width: 40px;
}

.d-lg-flex .map {
    width: 50%;
}

/**** POPUP Notification ****/
.popup {
    z-index: 9999;
    position: absolute;
    top: 120px;
    width: 100%;
}

.popup h3 {
    margin-top: 0;
    font-size: 1.2em;
}

.popup-content {
    margin: auto;
    width: 600px;
    max-width: 100%;
    background: #FFF;
    border: 5px solid #CCC;
    -moz-box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
}

.popup .error .popup-close {
    background: #C00;
    padding: 10px 20px;
    text-align: center;
    color: #FFF;
    cursor: pointer;
}

.popup .error .popup-close:hover {
    background: #D00;
}

.popup .success .popup-close {
    background: #0A0;
    padding: 10px 20px;
    text-align: center;
    color: #FFF;
    cursor: pointer;
}

.popup .success .popup-close:hover {
    background: #0B0;
}

#popup ul li a {
    color: #f00;
}

/**** POPUP Notification - Ends ****/

.navbar-default .navbar-nav > li > a {
    color: #830f3e;
    font-weight: bold;
    padding: 10px 8px;
}

.navbar-default .navbar-nav > li > a:focus, .navbar-default .navbar-nav > li > a:hover {
    color: #f9a520;
    background-color: #830f3e;
}

.navbar-nav {
    font-size: 15px;
}

.fa-stack {
    padding: 12px 14px;
    border-radius: 50%;
    width: 110px;
    height: 110px;
    border: 3px solid #3296bc;
    line-height: 0.8em;
}

#reasons p {
    font-size: 17px;
}

#carousel-title {
    padding: 30px;
    background: #830f3e;
    min-height: 213px;
}

.tab-content img {
    border-top: 5px solid #830f3e;
    border-bottom: 5px solid #830f3e;
    margin-bottom: 10px;
}

#inter2 a {
    color: #10203c;
    text-decoration: none;
}

#inter2 h1 {
    margin-bottom: 1em;
}

#contact_container {
    background: rgba(16, 32, 60, 0.8);
    padding: 15px;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)
}

#contact h1 {
    color: #FC0;
}

#programmes {
    border-top: 1px dashed #10203c;
    background: linear-gradient(25deg, rgba(16, 32, 60, 0.4), rgba(16, 32, 60, 0.05)), url('/enquiries/utmspace/images/bg-space2.jpg');
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center
}

.navbar h5 {
    color: #FFD700;
}

/* Medium */
@media (max-width: 1199px) {

    .navbar > .container {
        width: 100%;
    }

    .navbar-middle {
        margin-left: 30px;
        margin-top: 20px;
        line-height: 1.2em;
        font-size: 1.4em;
    }

    #hidden-fa {
        display: none;
    }
}

@media (min-width: 1199px) {
    #hidden-title {
        display: none;
    }
}

@media (min-width: 991px) and (max-width: 1199px) {

    #reasons p {
        font-size: 13px;
    }
}

@media (max-width: 1137px) {
    #hidden-nav {
        display: none;
    }

    .navbar h3 {
        font-size: 28px;
    }
}

/* Small */
@media (max-width: 991px) {
    .navbar-middle {
        margin-left: 0;
        font-size: 1.2em;
    }

    .navbar-right {
        font-size: 1.6em;
        margin-top: 0.3em;
    }
}

@media (max-width: 867px) and (min-width: 599px) {
    .navbar h3 {
        display: none;
    }

    .navbar-middle {
        margin: 0;
        padding: 15px;
        font-size: 1.6em;
        float: right;
        text-align: right;
    }
}

/* Extra Small */
@media (max-width: 767px) {


    #programmes {
        background: linear-gradient(25deg, rgba(230, 53, 62, 0.9), rgba(253, 136, 18, 0.87)), url('/enquiries/utmspace/images/bg-space2.jpg') fixed;
    }

    #programmes h1 {
        color:  #ffffff;
        margin-bottom: 25px;
    }

    #programmes h1:after {
        display: block;
        content: "...";
    }

    .title-wrap {
        height: auto;
        min-height: 0;
    }

    .title {
        padding: unset;
        display: block;
        background: none;
        color: #e6353e;
        box-shadow: none;
    }

    .title-left {
        position: unset;
        left: unset;
        text-align: center;
        border-top-right-radius: unset;
        border-bottom-right-radius: unset;
        padding-left: unset;
    }

    .d-lg-flex .map {
        width: 100%;
    }

    h1 {
        font-size: 2rem;
    }

    body {
        margin-top: 0;
    }

    #mainform {
        margin-bottom: -25px;
    }

    .navbar-brand {
        width: 250px
    }

    .navbar-middle {
        margin: 0;
        padding: 15px;
        float: right;
        text-align: right;
    }

    .navbar-right {
        display: none;
    }

    #progs .tab-content {
        padding-top: 20px;
    }

    .powered-by, .sharing-icons {
        text-align: center;
        margin: 10px 0;
    }

    .powered-by span {
        display: block;
    }

    #carousel .carousel-caption {
        padding: 30px 20px 50px;
    }

}

/* Super Extra Small */
@media (max-width: 599px) {

    .navbar {
        position: relative;
        height: auto;
        margin-bottom: 0;
    }

    .navbar-middle br {
        display: none;
    }

    .navbar-brand {
        float: none;
        display: block;
        width: auto;
        text-align: center;
        height: 70px;
    }

    .navbar-brand > img {
        display: inline;
    }

    .navbar-middle {
        float: none;
        text-align: center;
        display: block;
        margin-top: 10px;
        font-size: 1.2em;
    }

    .navbar-right {
        float: none !important;
        text-align: center;
        display: block;
        margin-top: -20px;
        padding: 10px;
    }

    #progs .col-xs-6 {
        width: 100%;
    }

    .hidden-sxs {
        display: none;
    }

    .col-sxs-offset-0 {
        margin-left: 0;
    }

    #inter2 td {
        display: inline-block;
    }
}

@media(min-width: 1200px) {

    .navbar {
        transition: ease all 0.5s;
        padding-top: 25px;
    }

    .navbar h5 {
        position: absolute;
        top: 0;
        padding: 8px 15px 8px;
        background-color: #FFD700;
        color: #222222;
        border-bottom-left-radius: 7px;
        border-bottom-right-radius: 7px;
    }

    nav#navbar.scrolled .navbar-brand img {
        transition: ease all 1s;
        max-height: 60px;
    }

    nav#navbar.scrolled {
        transition: ease all 0.5s;
        padding: 0;
    }

    nav#navbar.scrolled h5 {
        transition: ease all 1s;
        display: none;
    }

    .nav-item {
        padding-left: 20px;
        padding-right: 20px;
    }
    .navbar-nav > .nav-item:not(:last-child) {
        border-right: rgba(131, 15, 62, 0.15) 1px dotted;
    }

    .navbar-nav > .nav-item:hover {
        background-color: rgba(228, 132, 23, 0.05);
    }

    .navbar-nav .nav-link:hover {
        color: #e48417 !important;
    }
}
