body {
	background-color: #FDFDFD;
	font-family: Arial, Sans-serif;
	min-height: 100% !important;
	height: 100%;
	font-size: 1.1rem;
}

:root {
    --primary: #750F6D;
    --second: #E7B000;	
    --light: #EDE9E1;
    --dark: #181d38;
}

.bg-primary{background:var(--primary)!important}
.text-primary{color:var(--primary)!important}

a,
.a-default,
table.table a {
  color: #2196f3;
  text-decoration: none;
}

  a:hover,
  .a-hover:hover,
  table.table a:hover {
    color: #F37E21;
  }

#topBar {font-size: 1rem;}

@media (max-width: 768px) { 
#topBar {font-size: 0.8rem;}
}

.navbar-nav > li{
  padding-left:5px;
  padding-right:5px;
}

@media (min-width: 768px) {
      .logo-divider {
        border-left: 1.5px solid #0b2e6b;
      }
    }

.social-icon-alt {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  border: 1px solid #d8d2df;
  background-color: #faf9fc;
  transition: all 0.2s ease;
}

.social-icon-alt.fb-alt {
  color: #3b5998;
}
.social-icon-alt.fb-alt:hover {
  background-color: #3b5998;
  border-color: #3b5998;
  color: #ffffff;
  transform: translateY(-1px);
}

.social-icon-alt.ig-alt {
  color: #c13584;
}
.social-icon-alt.ig-alt:hover {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
  border-color: transparent;
  color: #ffffff;
  transform: translateY(-1px);
}

.social-icon-alt.yt-alt {
  color: #e62117;
}
.social-icon-alt.yt-alt:hover {
  background-color: #e62117;
  border-color: #e62117;
  color: #ffffff;
  transform: translateY(-1px);
}

  /* Header refinement layer (works alongside style.css) */
  .ee-topbar {
    background: linear-gradient(90deg, var(--primary) 0%, #580952 100%);
    font-size: 0.875rem;
    letter-spacing: 0.01em;
    border-bottom: 2px solid var(--second);
  }
  .ee-topbar a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    transition: color 0.2s ease;
  }
  .ee-topbar a:hover {
    color: var(--second);
  }
  .ee-topbar .divider {
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0.5rem;
  }

  .ee-brand-strip {
    background-color: #ffffff;
    border-bottom: 1px solid #e9e5de;
  }
  .ee-brand-strip img {
    max-height: 72px;
    width: auto;
    transition: transform 0.2s ease;
  }
  .ee-brand-strip a:hover img {
    transform: translateY(-1px);
  }
  @media (min-width: 768px) {
    .ee-brand-strip .logo-divider {
      border-left: 1.5px solid #d4cde0;
    }
  }

  .ee-navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e5e5;
    box-shadow: 0 4px 14px rgba(24, 29, 56, 0.05);
  }
  .ee-navbar .nav-link {
    color: var(--dark) !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.75rem 0.85rem !important;
    position: relative;
    transition: color 0.2s ease;
  }
  .ee-navbar .nav-link:hover,
  .ee-navbar .nav-link:focus,
  .ee-navbar .nav-link.show {
    color: var(--primary) !important;
  }
  @media (min-width: 992px) {
    .ee-navbar .dropdown:hover > .dropdown-menu {
      display: block;
      margin-top: 0;
    }
  }

  .ee-navbar .dropdown-menu {
    border: 1px solid #ece8f0;
    border-top: 3px solid var(--primary);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 24px rgba(24, 29, 56, 0.1);
    padding: 0.45rem 0;
    min-width: 250px;
  }
  .ee-navbar .dropdown-item {
    font-size: 0.9rem;
    color: #2b2f42;
    padding: 0.5rem 1.1rem;
    white-space: normal;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  }
  .ee-navbar .dropdown-item:hover,
  .ee-navbar .dropdown-item:focus {
    background-color: #f8f2f8;
    color: var(--primary);
    padding-left: 1.3rem;
  }
  
/* Banner Slider (1140x700 proportion) */
.ee-hero-wrapper {
  max-width: 1140px;
}

.ee-banner-carousel {
  position: relative;
}

.ee-banner-carousel .carousel-item {
  aspect-ratio: 1140 / 700;
  min-height: 340px;
  max-height: 700px;
  background-color: var(--dark);
  overflow: hidden;
  position: relative;
}

.ee-banner-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption positioned at bottom-left, wrapped tightly around the text */
.ee-banner-caption {
  position: absolute;
  left: 2rem;
  right: 2rem;
  bottom: 2.5rem;
  z-index: 2;
  text-align: left;
  pointer-events: none;
}

.ee-banner-text-box {
  display: inline-block;
  max-width: 820px;
  background-color: rgba(117, 15, 109, 0.9); /* CUHK Purple text background */
  border-left: 4px solid var(--second);       /* Gold accent edge */
  padding: 1rem 1.4rem;
  border-radius: 0 6px 6px 0;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  pointer-events: auto;
}

.ee-banner-badge {
  display: inline-block;
  background-color: var(--second);
  color: var(--dark);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.45rem;
}

.ee-banner-title {
  color: #ffffff;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.3rem 0;
}

.ee-banner-title a {
  color: #ffffff;
  text-decoration: none;
}

.ee-banner-title a:hover {
  text-decoration: underline;
}

.ee-banner-subtitle {
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  line-height: 1.4;
  margin: 0;
}

/* Circular edge prev/next buttons */
.ee-banner-carousel .carousel-control-prev,
.ee-banner-carousel .carousel-control-next {
  width: 36px;
  height: 36px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background-color: rgba(24, 29, 56, 0.72);
  opacity: 0.9;
  z-index: 4;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.ee-banner-carousel .carousel-control-prev {
  left: 0.85rem;
}

.ee-banner-carousel .carousel-control-next {
  right: 0.85rem;
}

.ee-banner-carousel .carousel-control-prev:hover,
.ee-banner-carousel .carousel-control-next:hover {
  background-color: var(--primary);
  opacity: 1;
}

.ee-banner-carousel .carousel-control-prev-icon,
.ee-banner-carousel .carousel-control-next-icon {
  width: 0.95rem;
  height: 0.95rem;
}

@media (max-width: 767.98px) {
  .ee-banner-caption {
    left: 1rem;
    right: 1rem;
    bottom: 2.2rem;
  }
  .ee-banner-text-box {
    padding: 0.75rem 1rem;
  }
}

/* =========================================
   index Content Sections (News, Seminars, Events)
   ========================================= */
.ee-rows-wrapper {
  max-width: 1140px;
}

.ee-block {
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e9e5ee;
}

.ee-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.ee-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.ee-block-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  padding-left: 0.75rem;
  border-left: 3.5px solid var(--primary);
  line-height: 1.2;
}

.ee-more-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary) !important;
  text-decoration: none;
}

.ee-more-link:hover {
  color: var(--second) !important;
  text-decoration: underline;
}

/* News */
.ee-news-row-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #f2eff6;
}

.ee-news-row-item:first-child {
  padding-top: 0;
}

.ee-news-row-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ee-news-row-thumb {
  width: 200px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background-color: #f3f0f6;
}

@media (max-width: 575.98px) {
  .ee-news-row-thumb {
    width: 112px;
    height: 74px;
  }
}

.ee-news-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ee-news-row-date {
  font-size: 0.8rem;
  color: #6f758c;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.ee-news-row-headline {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}

.ee-news-row-headline a {
  color: var(--dark);
  text-decoration: none;
}

.ee-news-row-headline a:hover {
  color: var(--primary);
}

/* Seminars */
.ee-seminar-row {
  background-color: #ffffff;
  border: 1px solid #ece8f0;
  border-radius: 6px;
  padding: 1.25rem;
}

.ee-seminar-row-photo {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: #f3f0f6;
}

.ee-seminar-row-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ee-seminar-row-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.ee-seminar-row-title a {
  color: var(--primary);
  text-decoration: none;
}

.ee-seminar-row-title a:hover {
  text-decoration: underline;
}

.ee-seminar-meta {
  font-size: 0.9rem;
  color: #3c4157;
  margin-bottom: 0.85rem;
}

.ee-seminar-meta p {
  margin-bottom: 0.35rem;
}

.ee-doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark) !important;
  background-color: #f7f5f9;
  border: 1px solid #dfd9e6;
  padding: 0.28rem 0.65rem;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.ee-doc-link:hover {
  border-color: var(--primary);
  color: var(--primary) !important;
}

/* Events */
.ee-event-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  height: 100%;
  background-color: #ffffff;
  border: 1px solid #ece8f0;
  border-left: 3.5px solid var(--primary);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ee-event-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(24, 29, 56, 0.07);
  border-left-color: var(--second);
}

.ee-event-item-img {
  width: 195px;
  flex-shrink: 0;
  background-color: #f8f6fa;
  border-right: 1px solid #f0edf5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ee-event-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.ee-event-item:hover .ee-event-item-img img {
  transform: scale(1.03);
}

.ee-event-item-body {
  padding: 1.05rem 1.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.ee-event-item-title {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 0.45rem;
}

.ee-event-item-title a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.18s ease;
}

.ee-event-item-title a:hover {
  color: var(--primary);
}

.ee-event-item-text {
  font-size: 0.85rem;
  color: #555b73;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ee-event-readmore {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.ee-event-readmore:hover {
  color: var(--second) !important;
}

@media (max-width: 575.98px) {
  .ee-event-item {
    flex-direction: column;
  }
  .ee-event-item-img {
    width: 100%;
    max-height: 240px;
    border-right: none;
    border-bottom: 1px solid #f0edf5;
  }
}

/* =========================================
   Subpage 
   ========================================= */
.ee-page-header {
  background-color: #ffffff;
  border: 1px solid #ece8f0;
  border-left: 4px solid var(--primary);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 3px 12px rgba(24, 29, 56, 0.04);
}

.ee-page-title {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 700;
  color: var(--dark);
  margin: 0;
  line-height: 1.25;
}

.ee-prose-card {
  background-color: #ffffff;
  border: 1px solid #ece8f0;
  font-size: 1rem;  
  border-radius: 6px;
  padding: 1.75rem 2rem;
  box-shadow: 0 3px 14px rgba(24, 29, 56, 0.03);
}

.ee-prose-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: #2c3147;
  margin-bottom: 1.25rem;
}

.ee-prose-card p:last-child {
  margin-bottom: 0;
}


@media (max-width: 575.98px) {
  .ee-page-header {
    padding: 1rem 1.15rem;
  }
  .ee-prose-card {
    padding: 1.25rem 1.15rem;
  }
  .ee-prose-card p {
    font-size: 0.96rem;
    line-height: 1.72;
  }
}

/* =========================================
   Work With Us Job Listings
   ========================================= */
.ee-jobs-card {
  background-color: #ffffff;
  border: 1px solid #ece8f0;
  border-radius: 6px;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 3px 14px rgba(24, 29, 56, 0.03);
}

.ee-job-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ee-job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #f1eef6;
  transition: padding-left 0.18s ease;
}

.ee-job-item:last-child {
  border-bottom: none;
}

.ee-job-item:hover {
  padding-left: 0.35rem;
}

.ee-job-code {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background-color: #f8f2f8;
  border: 1px solid #e4d5e3;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.ee-job-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}

.ee-job-title a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.18s ease;
}

.ee-job-title a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ee-job-apply {
  flex-shrink: 0;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary) !important;
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border: 1px solid #dfd5e4;
  border-radius: 5px;
  background-color: #faf7fc;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.ee-job-apply:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
}

@media (max-width: 767.98px) {
  .ee-jobs-card {
    padding: 0.35rem 1.1rem;
  }
  .ee-job-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.9rem 0;
  }
}

/* =========================================
   Contact Us Page (Special Enquiries & Address)
   ========================================= */
.ee-contact-card {
  background-color: #ffffff;
  border: 1px solid #ece8f0;
  border-top: 3px solid var(--primary);
  border-radius: 6px;
  padding: 1.4rem 1.6rem;
  height: 100%;
  box-shadow: 0 3px 14px rgba(24, 29, 56, 0.03);
}

.ee-contact-heading {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1.1rem 0;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid #f0ecf5;
}

.ee-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ee-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f4f1f8;
  font-size: 0.94rem;
  line-height: 1.5;
}

.ee-contact-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ee-contact-label {
  flex: 0 0 185px;
  font-weight: 700;
  color: var(--primary);
}

.ee-contact-value {
  flex: 1 1 220px;
  color: #2c3147;
  word-break: break-word;
}

.ee-contact-value a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.18s ease;
}

.ee-contact-value a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 575.98px) {
  .ee-contact-card {
    padding: 1.15rem 1.15rem;
  }
  .ee-contact-label {
    flex: 0 0 100%;
    font-size: 0.85rem;
  }
}

/* =========================================
  New Panel
   ========================================= */
.ee-year-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 2.5rem;
  border-bottom: 1px solid #e6e2d8;
  padding: 0;
  margin: 0;
}

.ee-year-tab-btn {
  position: relative;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0.55rem 0 0.85rem 0 !important;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 400;
  color: #a37b1d !important;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease;
}

.ee-year-tab-btn:hover,
.ee-year-tab-btn:focus {
  color: var(--primary) !important;
}

.ee-year-tab-btn.active,
.ee-year-tab-btn[aria-selected="true"] {
  color: #a37b1d !important;
  font-weight: 500;
}

.ee-year-tab-btn.active::after,
.ee-year-tab-btn[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.5px;
  background-color: #a37b1d;
}

@media (max-width: 767.98px) {
  .ee-year-tabs-nav {
    gap: 0 1.4rem;
  }
  .ee-year-tab-btn {
    padding: 0.45rem 0 0.7rem 0 !important;
    font-size: 1.05rem;
  }
}

/* =========================================
   News Archive Items inside Year Panels
   ========================================= */
.ee-news-archive-list {
  display: flex;
  flex-direction: column;
}

.ee-news-archive-item {
  padding: 1rem 0 1rem 0.95rem;
  border-bottom: 1px solid #ece8f0;
  border-left: 3px solid transparent;
  transition: border-left-color 0.18s ease, background-color 0.18s ease;
}

.ee-news-archive-item:first-child {
  padding-top: 0.25rem;
}

.ee-news-archive-item:last-child {
  border-bottom: none;
  padding-bottom: 0.25rem;
}

.ee-news-archive-item:hover {
  border-left-color: var(--primary);
  background-color: #fcfafd;
}

.ee-news-archive-date {
  font-size: 0.8rem;
  font-weight: 700;
  color: #6f758c;
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.ee-news-archive-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.45;
  margin-bottom: 0.45rem;
}

.ee-news-archive-title a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.18s ease;
}

.ee-news-archive-title a:hover {
  color: var(--primary);
}

.ee-news-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--primary) !important;
  text-decoration: none;
  transition: color 0.18s ease;
}

.ee-news-archive-link:hover {
  color: #5c0b55 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 575.98px) {
  .ee-news-archive-item {
    padding: 0.9rem 0 0.9rem 0.7rem;
  }
}

.ee-news-featured-card {
  background-color: #ffffff;
  border: 1px solid #ece8f0;
  border-top: 3.5px solid var(--primary);
  border-radius: 6px;
  padding: 1.4rem 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 3px 14px rgba(24, 29, 56, 0.04);
}

.ee-news-featured-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.ee-news-featured-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.ee-news-featured-title a {
  color: var(--dark);
  text-decoration: none;
}

.ee-news-featured-title a:hover {
  color: var(--primary);
}

.ee-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.35rem;
  border-bottom: 1px solid #ece8f0;
}

.ee-article-date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background-color: #f8f2f8;
  border: 1px solid #e4d5e3;
  padding: 0.3rem 0.75rem;
  border-radius: 4px;
}

.ee-article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary) !important;
  text-decoration: none;
  transition: color 0.18s ease;
}

.ee-article-back:hover {
  color: #5c0b55 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ee-prose-card .ee-article-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 1.4rem 0 0.6rem;
}

.ee-article-image {
  margin: 1.35rem 0;
  text-align: center;
}

.ee-article-image img {
  max-height: 520px;
  width: auto;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #ece8f0;
  box-shadow: 0 4px 14px rgba(24, 29, 56, 0.05);
}

.ee-article-ref-list {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid #ece8f0;
  font-size: 0.92rem;
}



/* =========================================
   Events Listing Page & Pagination (8 per page)
   ========================================= */
.ee-events-card {
  background-color: #ffffff;
  border: 1px solid #ece8f0;
  border-radius: 6px;
  padding: 0.5rem 1.75rem 1.5rem;
  box-shadow: 0 3px 14px rgba(24, 29, 56, 0.03);
}

.ee-event-archive-item {
  padding: 1.2rem 0 1.2rem 1rem;
  border-bottom: 1px solid #ece8f0;
  border-left: 3px solid transparent;
  transition: border-left-color 0.18s ease, background-color 0.18s ease;
}

.ee-event-archive-item:hover {
  border-left-color: var(--primary);
  background-color: #fcfafd;
}

.ee-event-archive-item:last-of-type {
  border-bottom: 1px solid #ece8f0;
}

.ee-event-archive-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 0.4rem;
}

.ee-event-archive-title a {
  color: var(--dark);
  text-decoration: none;
  transition: color 0.18s ease;
}

.ee-event-archive-title a:hover {
  color: var(--primary);
}

.ee-event-archive-desc {
  font-size: 0.92rem;
  color: #4a5068;
  line-height: 1.6;
  margin-bottom: 0.55rem;
}

.ee-event-archive-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary) !important;
  text-decoration: none;
  transition: color 0.18s ease;
}

.ee-event-archive-link:hover {
  color: #5c0b55 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Bootstrap 5 Pagination Theme Alignment */
.ee-pagination .page-link {
  color: var(--dark);
  border-color: #dcd5e6;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.45rem 0.8rem;
  transition: all 0.16s ease;
}

.ee-pagination .page-link:hover {
  color: var(--primary);
  background-color: #f8f2f8;
  border-color: var(--primary);
}

.ee-pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

.ee-pagination .page-item.disabled .page-link {
  color: #9aa0b4;
  background-color: #faf9fc;
  border-color: #e6e1ee;
}

@media (max-width: 575.98px) {
  .ee-events-card {
    padding: 0.35rem 1.1rem 1.25rem;
  }
  .ee-event-archive-item {
    padding: 1rem 0 1rem 0.75rem;
  }
}

/* =========================================
   Programme Accordion Styling
   ========================================= */
.ee-sharing-card {
  border: 1px solid #ece8f0;
  border-radius: 6px;
  padding: 1.35rem 1.5rem;
  background-color: #ffffff;
}

.ee-sharing-card + .ee-sharing-card {
  margin-top: 1.5rem;
}

.ee-sharing-photo {
  max-height: 240px;
  width: auto;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid #ece8f0;
}

.ee-prog-card {
  background-color: #ffffff;
  border: 1px solid #ece8f0;
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 3px 14px rgba(24, 29, 56, 0.03);
}

.ee-prog-card .accordion-item {
  border-color: #ece8f0;
}

.ee-prog-card .accordion-item:last-child {
  border-bottom: none;
}

.ee-prog-card .accordion-button {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--dark);
  background-color: #ffffff;
  padding: 1rem 0.75rem;
  border-radius: 0;
  box-shadow: none;
  transition: color 0.18s ease, background-color 0.18s ease, padding-left 0.18s ease;
}

.ee-prog-card .accordion-button:hover {
  color: var(--primary);
  background-color: #faf7fc;
  padding-left: 1rem;
}

.ee-prog-card .accordion-button:not(.collapsed) {
  color: var(--primary);
  background-color: #f8f2f8;
  border-left: 3.5px solid var(--primary);
  box-shadow: inset 0 -1px 0 #ece8f0;
}

.ee-prog-card .accordion-button:not(.collapsed)::after {
  filter: invert(14%) sepia(68%) saturate(4737%) hue-rotate(291deg) brightness(82%) contrast(102%);
}

/* Direct PDF brochure link row (not a collapse panel) */
.ee-prog-card .ee-brochure-link {
  justify-content: space-between;
}

.ee-prog-card .ee-brochure-link::after {
  display: none;
}

.ee-prog-card .ee-brochure-link,
.ee-prog-card .ee-brochure-link:not(.collapsed) {
  background-color: #ffffff;
  color: var(--dark);
  border-left: none;
  box-shadow: none;
}

.ee-prog-card .ee-brochure-link:hover {
  background-color: #faf7fc;
  color: var(--primary);
  padding-left: 1rem;
}

.ee-brochure-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  background-color: #f8f2f8;
  border: 1px solid #e2cfe1;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  margin-left: auto;
  margin-right: 0.5rem;
}

.ee-prog-card .accordion-body {
  padding: 1.15rem 1rem 1.35rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #2c3147;
  background-color: #ffffff;
}

.ee-prog-card .accordion-body p {
  margin-bottom: 1rem;
}

.ee-prog-card .accordion-body p:last-child {
  margin-bottom: 0;
}

.ee-prog-card .accordion-item {
  scroll-margin-top: 80px;
}

.ee-prog-subhead {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary);
  margin: 1.25rem 0 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #f0ecf5;
}

.ee-prog-subhead:first-child {
  margin-top: 0;
}

.ee-prog-entrant-label {
  display: inline-block;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.15rem;
}

.ee-coming-soon {
  display: inline-block;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6f758c;
  background-color: #f7f5f9;
  border: 1px solid #e5e0ec;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}


@media (max-width: 575.98px) {
  .ee-prog-card {
    padding: 0.4rem 0.85rem;
  }
  .ee-prog-card .accordion-button {
    font-size: 0.95rem;
    padding: 0.85rem 0.4rem;
  }
  .ee-prog-card .accordion-body {
    padding: 0.9rem 0.4rem 1.1rem;
    font-size: 0.92rem;
  }
}

/* =========================================
   Footer Style (showbottom)
   ========================================= */
.ee-footer-bar {
  background: linear-gradient(180deg, #5c0b55 0%, var(--primary) 100%);
  border-top: 3px solid var(--second);
  color: #ffffff;
}

.ee-footer-nav .nav-link {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.18s ease;
}

.ee-footer-nav .nav-link:hover,
.ee-footer-nav .nav-link:focus {
  color: var(--second) !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ee-footer-copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
  line-height: 1.5;
}

/* =========================================
   Academic Staff Directory (.people-listing)
   ========================================= */
.moduletable h3,
.ee-faculty-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0b2545;
  border-left: 5px solid #6b0f6b; /* CUHK Purple left accent bar */
  border-bottom: 1px solid #d9dee4;
  padding: 4px 0 6px 14px;
  margin: 0 0 1.25rem 0;
  line-height: 1.3;
}

.people-listing .moduletable {
  margin-top: 2rem;
}

.people-listing .moduletable:first-child {
  margin-top: 0;
}

.people-listing .moduletable > h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 1.15rem 0;
  padding: 0.25rem 0 0.25rem 0.75rem;
  border-left: 3.5px solid var(--primary);
  border-bottom: 1px solid #ece8f0;
  padding-bottom: 0.5rem;
}

.people-listing .aidanews2_art {
  background-color: #ffffff;
  border: 1px solid #ece8f0;
  border-left: 3.5px solid transparent;
  border-radius: 6px;
  padding: 1.15rem 1.3rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(24, 29, 56, 0.03);
  transition: border-left-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.people-listing .aidanews2_art:last-child {
  margin-bottom: 0;
}

.people-listing .aidanews2_art:hover {
  border-left-color: var(--primary);
  background-color: #fcfafd;
  box-shadow: 0 6px 18px rgba(24, 29, 56, 0.06);
}

.people-listing .aidanews2_title {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 0.75rem 0;
}

.people-listing .aidanews2_title a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.18s ease;
}

.people-listing .aidanews2_title a:hover {
  color: #580952;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Flex row for portrait + details */
.people-listing .aidanews2_main {
  display: flex !important;
  align-items: flex-start;
  gap: 1.25rem;
  clear: both;
}

.people-listing .aidanews2_mainL {
  flex: 0 0 104px;
}

.people-listing .aidanews2_img1 {
  display: block;
  width: 200px;
  height: 260px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #e4dfec;
  background-color: #f6f4f9;
}

.people-listing .aidanews2_img1 img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.people-listing .aidanews2_mainC {
  flex: 1 1 auto;
  min-width: 0;
}

.people-listing .aidanews2_text table {
  width: 100% !important;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
}

.people-listing .aidanews2_text td {
  padding: 0.25rem 0.65rem 0.25rem 0 !important;
  width: auto !important;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #2c3147;
  vertical-align: middle;
}

.people-listing .aidanews2_text tr:first-child td {
  padding-bottom: 0.65rem !important;
  font-weight: 600;
  color: var(--dark);
}

.people-listing .aidanews2_text sub {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 400;
  color: #636980;
  vertical-align: baseline;
  line-height: 1.45;
}

.people-listing .aidanews2_text td img[width="20"] {
  width: 16px !important;
  height: 16px !important;
  vertical-align: -3px;
  margin-right: 0.25rem;
  background-color: transparent !important;
}

.people-listing .aidanews2_text td a {
  background-color: transparent !important;
  font-size: inherit !important;
}

.people-listing .aidanews2_text p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #3c4157;
  margin-bottom: 0.4rem !important;
}

.people-listing .aidanews2_text p:last-child {
  margin-bottom: 0 !important;
}

.people-listing .read-more {
  margin-top: 0.65rem;
}

.people-listing .read-more a {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  padding: 0.28rem 0.7rem;
  border: 1px solid #dfd2e3;
  border-radius: 4px;
  background-color: #faf6fb;
  transition: all 0.18s ease;
}

.people-listing .read-more a:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
}

@media (max-width: 767.98px) {
  .people-listing .aidanews2_art {
    padding: 1rem;
  }
  .people-listing .aidanews2_main {
    flex-direction: column;
    gap: 0.85rem;
  }
  .people-listing .aidanews2_mainL {
    flex: none;
  }
  .people-listing .aidanews2_img1 {
    width: 88px;
    height: 106px;
  }
  .people-listing .aidanews2_text td {
    display: block;
    padding: 0.2rem 0 !important;
  }
}


	
/* One Click Scrool Top Button*/
.scroll-top {
  width: 45px;
  height: 45px;
  line-height: 45px;
  background: var(--second);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  font-size: 14px;
  color: #fff !important;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9;
  opacity: 0.8;
  cursor: pointer;
  -webkit-transition: all .3s ease-out 0s;
  transition: all .3s ease-out 0s;
  border-radius: 5px;
  text-decoration: none;
}

.scroll-top:hover {
  -webkit-box-shadow: 0 1rem 3rem rgba(35, 38, 45, 0.15) !important;
  box-shadow: 0 1rem 3rem rgba(35, 38, 45, 0.15) !important;
  -webkit-transform: translate3d(0, -5px, 0);
  transform: translate3d(0, -5px, 0);
   background-color: var(--primary);
  opacity: 0.8;
}