@charset "UTF-8";
/*
Burgundy: 76323f
HKUST blue: #003366 
HKUST background light: #f3f3f3
Green: #1e747c */

:root {
  --theme: #003366;
  --contrast: #f3f3f3;
}

.navbar {
  background-color: var(--theme);
}

.footer {
  background-color: var(--theme);
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.jumbotron {
  margin: 0px !important;
}

.carousel-caption {
  position: relative;
  left: auto;
  right: auto;
  color: black;
  padding-top: 3rem;
}

.section-header {
  color: var(--theme);
}

.btn-primary {
  background-color: var(--theme);
  border-color: var(--theme);
}

.bg-image .mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  color: #fff;
}

.bg-image .mask .text {
  height: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.bg-image .mask .text p {
  margin: 0;
}

.bg-contrast-color {
  background-color: var(--contrast);
}

.active-nav {
  height: 3px;
  background: #eef1fb;
  border-radius: 1rem;
  position: absolute;
  bottom: 0px;
  left:0;
  width: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    font-weight: bold;
  }

#people {
    position:relative;
    margin-bottom: 3rem; /* Reserve space below team section */
}

#people .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;
    grid-auto-flow: row dense;
    position: relative; /* Ensure Flip absolute elements are anchored to this container */
}

/* Only hide overflow during the short Flip animation */
#people .cards.is-animating {
  overflow: hidden;
}

#people .card{
    border-radius: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    grid-column: span 1;
    font-size: 1rem;
    padding: 1rem;
    box-shadow: 0.3rem 0.3rem 0rem rgb(00, 75, 150);
    border: 4px solid rgb(00, 33, 66);
    gap: 2rem;
}

#people .card p{
    display: none;
    
}

#people .card .description{
    display: none
}

#people .card.active .description{
    display: block;
    justify-content: left;
}

#people .card.active p{
    display: block;
}

#people .card.active.description{
    display: block;
}

#people .card.active{  
    grid-column: 1 / span 3;
    order: 0;
    height: auto;
}

/* Mobile: stack cards and make active card span full width safely */
@media (max-width: 576px) {
  #people .cards {
    grid-template-columns: 1fr;
  }
  #people .card.active {
    grid-column: 1 / -1;
  }
}

#people .card.is-inactive {
    grid-column: span 1;
}

#people .row{
    position: relative;
}

#footer {
    height: 200px;
    background-color: black;
}

#main-carousel .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#thumbnail-carousel .splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.splide__slide {
  opacity: 0.5;
}

.splide__slide.is-active {
  opacity: 1;
}

.desc {
  padding-left: 20px;
  padding-top: 5px;
  padding-bottom: 5px;
    background-color: #fff;
    color: #000;
    opacity: .6;
    height: auto;
}

.splide__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* recentactivities */

body{margin-top:20px;}
.event-schedule-area .section-title .title-text {
    margin-bottom: 50px;
}

.event-schedule-area .tab-area .nav-tabs {
    border-bottom: inherit;
}

.event-schedule-area .tab-area .nav {
    border-bottom: inherit;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    margin-top: 80px;
}

.event-schedule-area .tab-area .nav-item {
    margin-bottom: 75px;
}
.event-schedule-area .tab-area .nav-item .nav-link {
    text-align: center;
    font-size: 22px;
    color: #333;
    font-weight: 600;
    border-radius: inherit;
    border: inherit;
    padding: 0px;
    text-transform: capitalize !important;
}
.event-schedule-area .tab-area .nav-item .nav-link.active {
    color: #4125dd;
    background-color: transparent;
}

.event-schedule-area .tab-area .tab-content .table {
    margin-bottom: 0;
    width: 80%;
}
.event-schedule-area .tab-area .tab-content .table thead td,
.event-schedule-area .tab-area .tab-content .table thead th {
    border-bottom-width: 1px;
    font-size: 20px;
    font-weight: 600;
    color: #252525;
}
.event-schedule-area .tab-area .tab-content .table td,
.event-schedule-area .tab-area .tab-content .table th {
    border: 1px solid #b7b7b7;
    padding-left: 30px;
}
.event-schedule-area .tab-area .tab-content .table tbody th .heading,
.event-schedule-area .tab-area .tab-content .table tbody td .heading {
    font-size: 16px;
    text-transform: capitalize;
    margin-bottom: 16px;
    font-weight: 500;
    color: #252525;
    margin-bottom: 6px;
}
.event-schedule-area .tab-area .tab-content .table tbody th span,
.event-schedule-area .tab-area .tab-content .table tbody td span {
    color: #4125dd;
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}
.event-schedule-area .tab-area .tab-content .table tbody th span.date,
.event-schedule-area .tab-area .tab-content .table tbody td span.date {
    color: #656565;
    font-size: 14px;
    font-weight: 500;
    margin-top: 15px;
}
.event-schedule-area .tab-area .tab-content .table tbody th p {
    font-size: 14px;
    margin: 0;
    font-weight: normal;
}

.event-schedule-area-two .section-title .title-text h2 {
    margin: 0px 0 15px;
}

.event-schedule-area-two ul.custom-tab {
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 30px;
}
.event-schedule-area-two ul.custom-tab li {
    margin-right: 70px;
    position: relative;
}
.event-schedule-area-two ul.custom-tab li a {
    color: #252525;
    font-size: 25px;
    line-height: 25px;
    font-weight: 600;
    text-transform: capitalize;
    padding: 35px 0;
    position: relative;
}
.event-schedule-area-two ul.custom-tab li a:hover:before {
    width: 100%;
}
.event-schedule-area-two ul.custom-tab li a:before {
    position: absolute;
    left: 0;
    bottom: 0;
    content: "";
    background: #4125dd;
    width: 0;
    height: 2px;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
}
.event-schedule-area-two ul.custom-tab li a.active {
    color: #4125dd;
}

.event-schedule-area-two .primary-btn {
    margin-top: 40px;
}

.event-schedule-area-two .tab-content .table {
    -webkit-box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}
.event-schedule-area-two .tab-content .table thead {
    background-color: var(--theme);
    color: #fff;
    font-size: 20px;
}
.event-schedule-area-two .tab-content .table thead tr th {
    padding: 20px;
    border: 0;
}
.event-schedule-area-two .tab-content .table tbody {
    background: #fff;
}
.event-schedule-area-two .tab-content .table tbody tr.inner-box {
    border-bottom: 1px solid #dee2e6;
}
.event-schedule-area-two .tab-content .table tbody tr th {
    border: 0;
    padding: 30px 20px;
    vertical-align: middle;
}
.event-schedule-area-two .tab-content .table tbody tr th .event-date {
    color: #252525;
    text-align: center;
}
.event-schedule-area-two .tab-content .table tbody tr th .event-date span {
    font-size: 50px;
    line-height: 50px;
    font-weight: normal;
}
.event-schedule-area-two .tab-content .table tbody tr td {
    padding: 30px 20px;
    vertical-align: middle;
}
.event-schedule-area-two .tab-content .table tbody tr td .r-no span {
    color: #252525;
}
.event-schedule-area-two .tab-content .table tbody tr td .event-wrap h3 a {
    font-size: 20px;
    line-height: 20px;
    color: #cf057c;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
}
.event-schedule-area-two .tab-content .table tbody tr td .event-wrap h3 a:hover {
    color: #4125dd;
}
.event-schedule-area-two .tab-content .table tbody tr td .event-wrap .categories {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    margin: 10px 0;
}
.event-schedule-area-two .tab-content .table tbody tr td .event-wrap .categories a {
    color: #252525;
    font-size: 16px;
    margin-left: 10px;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
}
.event-schedule-area-two .tab-content .table tbody tr td .event-wrap .categories a:before {
    content: "\f07b";
    font-family: fontawesome;
    padding-right: 5px;
}
.event-schedule-area-two .tab-content .table tbody tr td .event-wrap .time span {
    color: #252525;
}
.event-schedule-area-two .tab-content .table tbody tr td .event-wrap .organizers {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    margin: 10px 0;
}
.event-schedule-area-two .tab-content .table tbody tr td .event-wrap .organizers a {
    color: #4125dd;
    font-size: 16px;
    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    transition: all 0.4s;
}
.event-schedule-area-two .tab-content .table tbody tr td .event-wrap .organizers a:hover {
    color: #4125dd;
}
.event-schedule-area-two .tab-content .table tbody tr td .event-wrap .organizers a:before {
    content: "\f007";
    font-family: fontawesome;
    padding-right: 5px;
}
.event-schedule-area-two .tab-content .table tbody tr td .primary-btn {
    margin-top: 0;
    text-align: center;
}
.event-schedule-area-two .tab-content .table tbody tr td .event-img img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;

}

.video {
    aspect-ratio: 16 / 9;
    width: 100%;
  }

/* Clickable gallery cues (Upcoming & Recent Activities) */
#upcoming-carousel .splide__slide a,
#past-activities-carousel .splide__slide a {
  position: relative;
  display: block;
  cursor: pointer;
  overflow: hidden;
}

#upcoming-carousel .splide__slide a img,
#past-activities-carousel .splide__slide a img {
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

#upcoming-carousel .splide__slide a:hover img,
#upcoming-carousel .splide__slide a:focus img,
#past-activities-carousel .splide__slide a:hover img,
#past-activities-carousel .splide__slide a:focus img {
  transform: scale(1.02);
  filter: brightness(.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

#upcoming-carousel .splide__slide a::after,
#past-activities-carousel .splide__slide a::after {
  content: "View details";
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 6px;
  z-index: 2;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

#upcoming-carousel .splide__slide a:hover::after,
#upcoming-carousel .splide__slide a:focus::after,
#past-activities-carousel .splide__slide a:hover::after,
#past-activities-carousel .splide__slide a:focus::after {
  opacity: 1;
  transform: translateY(0);
}

#upcoming-carousel .splide__slide a:focus-visible,
#past-activities-carousel .splide__slide a:focus-visible {
  outline: 3px solid var(--theme);
  outline-offset: 2px;
}