*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Georgia', 'Times New Roman', 'Arial', sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
  min-width: 320px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

ul, ol {
  list-style: none;
}

/* ---- Color Variables ---- */
:root {
  --primary:    #014687;   /* IBS deep blue */
  --primary-dk: #013366;
  --primary-lt: #0262b8;
  --gold:       #c8a44a;   /* accent gold */
  --text-dark:  #1a1a1a;
  --text-mid:   #555;
  --text-light: #888;
  --bg-light:   #f5f5f5;
  --bg-white:   #ffffff;
  --border:     #e0e0e0;
  --white:      #ffffff;
}

/* ============================================
   TOP BAR  (language switcher)
   ============================================ */
.e-topbar {
  background: var(--primary-dk);
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.e-topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 36px;
  gap: 0;
}

.e-topbar__lang {
  display: flex;
  align-items: center;
  gap: 0;
}

.e-topbar__lang a {
  color: rgba(255,255,255,0.75);
  padding: 0 12px;
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.5px;
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.e-topbar__lang a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.e-topbar__lang a.active {
  color: #fff;
  font-weight: 600;
}

.e-topbar__lang .sep {
  color: rgba(255,255,255,0.35);
  font-size: 11px;
  user-select: none;
}

/* ============================================
   HEADER / LOGO BAND
   ============================================ */
.e-header {
  background: #055eb1;
  border-bottom: 1px solid var(--border);
  position: relative;
  padding: 10px 0px;
}

.e-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.e-header__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.e-header__logo img {
  /*! height: 52px; */
  width: auto;
}

.e-header__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.e-header__logo-text .en {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
}

.e-header__logo-text .cn {
  font-size: 11px;
  color: var(--text-mid);
  letter-spacing: 1px;
  margin-top: 3px;
}

.e-header__school {
  font-size: 12px;
  color: var(--text-light);
  text-align: right;
  line-height: 1.5;
}

/* ============================================
   NAVIGATION
   ============================================ */
.e-nav {
  background: var(--primary);
  position: relative;
  z-index: 1000;
}

.e-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* nav list */
.e-nav__list {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
}

.e-nav__item {
  position: relative;
}

.e-nav__item > a {
  display: flex;
  align-items: center;
  padding: 0 18px;
  height: 48px;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  gap: 5px;
}

.e-nav__item > a:hover,
.e-nav__item.active > a {
  background: var(--primary-dk);
  color: #fff;
}

.e-nav__item.active > a {
  position: relative;
}

.e-nav__item.active > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
}

.e-nav__item > a .arrow {
  font-size: 9px;
  opacity: 0.7;
  transition: transform 0.2s;
}

.e-nav__item:hover > a .arrow {
  transform: rotate(180deg);
}

/* dropdown */
.e-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #014687;
  border-top: 3px solid var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 1100;
  padding: 6px 0;
}

.e-nav__item:hover .e-dropdown {
  display: block;
}

.e-dropdown a {
  display: block;
  padding: 10px 20px;
  font-size: 13px;
  color: #fff;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s, color 0.15s, padding 0.15s;
  white-space: nowrap;
}

.e-dropdown a:last-child {
  border-bottom: none;
}

.e-dropdown a:hover {
  background: var(--bg-light);
  color: var(--primary);
  padding-left: 26px;
}

/* mobile hamburger */
.e-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
}

.e-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

.e-nav__toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.e-nav__toggle.open span:nth-child(2) {
  opacity: 0;
}
.e-nav__toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.e-banner {
  position: relative;
  overflow: hidden;
  height: 400px;
}

.e-banner__track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.e-banner__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.e-banner__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

/* slide overlay */
.e-banner__overlay {
  position: absolute;
  inset: 0;
/*   background: linear-gradient(
    to right,
    rgba(1,70,135,0.55) 0%,
    rgba(0,0,0,0.2) 60%,
    rgba(0,0,0,0.05) 100%
  ); */
  display: flex;
  align-items: center;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.e-banner__caption {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
  width: 100%;
}

.e-banner__caption h2 {
  font-size: 32px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  max-width: 560px;
  margin-bottom: 12px;
}

.e-banner__caption p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  max-width: 440px;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* Prev / Next arrows */
.e-banner__prev,
.e-banner__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(1,70,135,0.7);
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
  border-radius: 2px;
}

.e-banner__prev { left: 16px; }
.e-banner__next { right: 16px; }

.e-banner__prev:hover,
.e-banner__next:hover {
  background: var(--primary);
}

.e-banner__prev svg,
.e-banner__next svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dots */
.e-banner__dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.e-banner__dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: background 0.25s, width 0.25s;
  padding: 0;
}

.e-banner__dot.active {
  background: #fff;
  width: 40px;
}

/* numbered indicator */
.e-banner__counter {
  position: absolute;
  bottom: 40px;
  right: 120px;
  color: rgba(255,255,255,0.7);
  font-size: 15px;
  z-index: 10;
  font-family: 'Arial', sans-serif;
}

.e-banner__counter .cur {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
}

/* ============================================
   SECTION COMMONS
   ============================================ */
.e-section {
  padding: 60px 0;
}

.e-section--grey {
  /*! background: var(--bg-light); */
  background-image: url(../images/footer-bg.jpg);
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.e-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.e-section__hd {
  margin-bottom: 36px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.e-section__title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 12px;
}

.e-section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.e-section__more {
  font-size: 13px;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 5px 14px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.e-section__more:hover {
  background: var(--primary);
  color: #fff;
}

/* ============================================
   NEWS GRID
   ============================================ */
.e-news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.e-news__card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}

.e-news__card:hover {
  box-shadow: 0 8px 28px rgba(1,70,135,0.12);
  transform: translateY(-4px);
}

.e-news__thumb {
  position: relative;
  padding-top: 62%;
  overflow: hidden;
  flex-shrink: 0;
}

.e-news__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.e-news__card:hover .e-news__thumb img {
  transform: scale(1.05);
}

.e-news__date-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--primary);
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 2px;
  line-height: 1.4;
  text-align: center;
  z-index: 2;
}

.e-news__body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.e-news__card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.45;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.e-news__card:hover .e-news__card-title {
  color: var(--primary);
}

.e-news__desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  /* 限制两行 */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ============================================
   EVENTS LIST
   ============================================ */
.e-events__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.e-events__item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}

.e-events__item:first-child {
  border-top: 1px solid var(--border);
}

.e-events__item:hover {
  background: #f0f5fb;
  padding-left: 8px;
  margin-left: -8px;
  padding-right: 8px;
}

.e-events__date-box {
  flex-shrink: 0;
  width: 62px;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 8px 4px;
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.e-events__date-box .month {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.85;
}

.e-events__date-box .day {
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

.e-events__info {
  flex: 1;
  min-width: 0;
}

.e-events__item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.45;
  transition: color 0.2s;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.e-events__item:hover .e-events__item-title {
  color: var(--primary);
}

.e-events__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
  align-items: center;
}

.e-events__meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.e-events__meta svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
}

/* ============================================
   LINKS BLOCK
   ============================================ */
.e-links__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.e-links__card {
  border: 1px solid var(--border);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.e-links__card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(1,70,135,0.1);
  transform: translateY(-3px);
}

.e-links__icon {
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.e-links__icon img {
  max-width: 100%;
  display: block;
  height: 80%;
}
.e-links__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
}

.e-links__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
  transition: color 0.2s;
}

.e-links__card:hover .e-links__label {
  color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.e-footer {
  background: var(--primary-dk);
  color: rgba(255,255,255,0.75);
  padding: 22px 0;
}

.e-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.e-footer__copy {
  font-size: 13px;
  line-height: 1.5;
}

.e-footer__copy span {
  color: rgba(255,255,255,0.5);
  margin: 0 6px;
}

.e-footer__contact {
  font-size: 13px;
}

.e-footer__contact a {
  color: rgba(255,255,255,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: color 0.2s, border-color 0.2s;
}

.e-footer__contact a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ============================================
   TWO-COLUMN LAYOUT for News+Events
   ============================================ */
.e-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.e-col-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 10px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.e-col-title a {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-light);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.e-col-title a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ---- Tablet ---- */
@media (max-width: 1024px) {
  .e-news__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .e-links__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .e-cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .e-banner {
      position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  }
.e-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.e-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

  .e-banner__caption h2 {
    font-size: 26px;
  }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
  /* topbar */
  .e-topbar__inner {
    height: 32px;
  }

  /* header */
  .e-header__inner {
    height: 64px;
  }

  .e-header__logo-text .en {
    font-size: 12px;
  }

  .e-header__school {
    display: none;
  }

  /* nav */
  .e-nav__toggle {
    display: flex;
  }

  .e-nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 8px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }

  .e-nav__list.open {
    display: flex;
  }

  .e-nav__item > a {
    height: auto;
    padding: 12px 20px;
    font-size: 14px;
  }

  .e-dropdown {
    position: static;
    display: none;
    background: var(--primary-dk);
    border-top: none;
    box-shadow: none;
    padding: 0;
  }

  .e-dropdown.open {
    display: block;
  }

  .e-dropdown a {
    color: rgba(255,255,255,0.85);
    padding: 10px 36px;
    border-bottom-color: rgba(255,255,255,0.08);
  }

  .e-dropdown a:hover {
    background: rgba(0,0,0,0.15);
    color: #fff;
    padding-left: 44px;
  }

  /* banner */
  .e-banner {
    height: 220px;
  }

  .e-banner__caption {
    padding: 0 44px;
  }

  .e-banner__caption h2 {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .e-banner__caption p {
    font-size: 12px;
    display: none;
  }

  .e-banner__prev,
  .e-banner__next {
    width: 34px;
    height: 34px;
  }

  .e-banner__prev { left: 8px; }
  .e-banner__next { right: 8px; }

  /* sections */
  .e-section {
    padding: 40px 0;
  }

  .e-section__hd {
    margin-bottom: 24px;
  }

  .e-section__title {
    font-size: 20px;
  }

  /* news */
  .e-news__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* events */
  .e-events__date-box {
    width: 52px;
  }

  .e-events__date-box .day {
    font-size: 22px;
  }

  /* links */
  .e-links__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* footer */
  .e-footer__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .e-header__logo img {
    height: 38px;
  }

  .e-banner {
    height: 180px;
  }

  .e-links__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* ============================================
   STICKY NAV
   ============================================ */
.e-nav--sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}

/* When nav is sticky, add padding to body to avoid content jump */
body.nav-sticky-active {
  padding-top: 48px;
}

/* ============================================
   NEWS GRID — 3-col on desktop when in full section
   ============================================ */
.e-news-full .e-news__grid {
  grid-template-columns: repeat(3, 1fr);
}

/* When news is in the 2-col layout, keep 1 col */
.e-col-news .e-news__grid {
  grid-template-columns: 1fr;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.e-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border), transparent);
  margin: 0;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.e-back-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 500;
}

.e-back-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.e-back-top:hover {
  background: var(--primary-dk);
  transform: translateY(-3px);
}

.e-back-top svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   UTILITY
   ============================================ */
.e-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0,0,0,0);
  overflow: hidden;
  white-space: nowrap;
}

/* smooth fade for slide captions */
@keyframes fadeInUp {
  from { opacity:0; transform: translateY(20px); }
  to   { opacity:1; transform: translateY(0); }
}

.e-banner__slide.active .e-banner__caption {
  animation: fadeInUp 0.6s ease 0.2s both;
}