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;
  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-panel {
  background-color: #ffffff;
  border: 1px solid #ece8f0;
  border-top: 3px solid var(--primary);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(24, 29, 56, 0.04);
  overflow: hidden;
}

.ee-year-panel-header {
  background-color: #faf7fc;
  border-bottom: 1px solid #ece8f0;
  padding: 0.9rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ee-year-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.ee-year-panel-body {
  padding: 1.25rem 1.35rem;
}

.ee-year-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ee-year-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 0.42rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark) !important;
  background-color: #ffffff;
  border: 1px solid #d9d2e4;
  border-radius: 5px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.16s ease;
}

.ee-year-pill:hover {
  border-color: var(--primary);
  background-color: #f8f2f8;
  color: var(--primary) !important;
  transform: translateY(-1px);
}

.ee-year-pill.active,
.ee-year-pill[aria-selected="true"] {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(117, 15, 109, 0.22);
}

.ee-year-pill.active:hover,
.ee-year-pill[aria-selected="true"]:hover {
  background-color: #5c0b55;
  border-color: #5c0b55;
  color: #ffffff !important;
}

@media (max-width: 575.98px) {
  .ee-year-panel-header,
  .ee-year-panel-body {
    padding: 1rem;
  }
  .ee-year-pill {
    min-width: 56px;
    padding: 0.38rem 0.6rem;
    font-size: 0.85rem;
  }
}

/* =========================================
   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;
}

	
/* 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;
}