/* ==========================================================================
   CU Medicine Subpage: Engagement – Locally and Globally (engagement.css)
   ========================================================================== */
:root {
  --eng-teal-dark: #00665e;
  --eng-teal-mid: #0b7a70;
  --eng-teal-light: #1e968b;
  --eng-teal-tint: #e8f3f2;
}


.desktopHide {
	display:none !important;
}

/* --- 1. Subpage Hero Banner --- */
.hero-banner {
  position: relative;
}

.sub-hero__visual {
  position: relative;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.sub-hero__overlay-box {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 52%;
  display: flex;
  align-items: center;
  padding-left: 16%;
  background: transparent;
  pointer-events: none;
}

.sub-hero__title {
  font-family: var(--font-primary1);
  padding-top: 0px;
  font-size: 42px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.25;
  color: #ffffff;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0, 65, 60, 0.35);
  animation: heroTitleFadeIn 1.25s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

@keyframes heroTitleFadeIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1024px) {
  .sub-hero__overlay-box {
    padding-left: 8%;
  }
  .sub-hero__title {
    font-size: 32px;
  }
}

/* --- 2. 導言文字 --- */
.section-eng-intro {
  padding: 44px 0 48px;
}

.eng-intro-text {
  margin: 0 auto;
  font-size: 16px;
  line-height: 1.4;
  color: #000;
  font-weight: 100;
}

.eng-intro-text p {
  margin-bottom: 16px;
}

.eng-container {
  margin: 0 auto;
  position: relative;
  z-index: 2;  
}

.eng-container.last {
  margin-bottom: 150px;
}

.container.marginUp {
  margin-top: -40px;
}

/* --- 3. 編號 + 斜線 + 標題系統 --- */
.story-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  gap: 10px;
  margin-bottom: 40px;
}

.story-badge {
  display: inline-flex;
  align-items: flex-end;
  background: none !important;
  min-width: auto;
  height: 42px;
  padding: 0 35px 2px 0;
  margin: 0;
  font-family: var(--font-primary1);
  font-size: 52px;
  font-weight: 700;
  font-style: italic;
  line-height: 1;
  position: relative;
  flex-shrink: 0;
}

.story-badge::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 7px;
  width: 18px;
  height: 69px;
  background-image: url("../images/Title_bullet1.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
}

.story-badge--light {
  color: rgba(255, 255, 255, 0.55);
}

.story-title--light {
  font-family: var(--font-primary1);
  font-size: 30px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
  color: #ffffff;
  text-align: left;
  margin: 0;
}

.story-badge--teal {
  color: #c2c6ca;
}

.story-title--teal {
  font-family: var(--font-primary1);
  font-size: 32px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
  color: var(--eng-teal-dark);
  text-align: left;
  margin: 0;
}

/* --- 4. Section 01: 全幅深湖水綠背景專題 --- */
.eng-teal-section {
  position: relative;
  background-color: #00746b;
  background-image: url("../images/ELnG_bg.jpg");
  background-position: bottom center;
  background-size: 100% auto;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 58px 0 0;
  margin-bottom: 110px;
}

.eng-teal-body {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 100;
  color: rgba(255, 255, 255, 0.94);
}

.eng-teal-body p {
  margin-bottom: 18px;
}

.eng-teal-subhead {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin: 26px 0 8px;
}

/* 雙並排相片 */
.eng-photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 28px auto;
}

.photo-pair-des {
  font-size: 14px;
  line-height: 1.25;
  margin-top: 10px;
}

.eng-photo-pair__item img {
  width: 100%;
  object-fit: cover;
  display: block;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

/* 左文右海報並排 */
.eng-poster-split {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 28px;
  align-items: start;
  margin-top: 10px;
}

.eng-poster-split__media img {
  width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
}

/* 底部跨界白色引言方塊 */
.eng-quote-box {
  position: relative;
  max-width: 780px;
  margin: 12px auto 0;
  transform: translateY(50%);
  background: #ffffff;
  color: #6c1d5f;
  border: 1px solid #6c1d5f;
  padding: 32px 56px;
  text-align: left;
  font-family: var(--font-primary1);
  font-size: 18px;
  font-weight: 600;
  font-style: italic;
  line-height: 1.55;
  box-shadow: none;
  z-index: 3;
}

.eng-quote-box p {
  margin: 0;
}

.eng-quote-box.reveal-on-scroll {
  transform: translateY(calc(50% + 20px));
}
.eng-quote-box.reveal-on-scroll.is-visible {
  transform: translateY(50%) scale(1);
}

.eng-quote-box::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 28%;
  bottom: -24px;
  width: 6px;
  background-color: #6c1d5f;
}

/* --- 5. Section 02: 淺灰方塊完整包住相片 --- */
.eng-sec2 {
  position: relative;
  padding: 96px 0 48px;
}

.eng-sec2::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 140px;
  width: 14px;
  height: 220px;
  background-color: var(--eng-teal-dark);
  z-index: 1;
}

.eng-sec2-group {
  margin: 0 auto 44px;
}

.eng-banner-photo {
  width: 100%;
  margin: 0;
}

.eng-banner-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.eng-gray-card {
  position: relative;
  background-color: #eaedf0;
  padding: 32px 46px 40px;
  color: #000;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 100;
}

.eng-gray-card p {
  margin: 0 0 24px;
}

.eng-card-subhead {
  font-size: 16px;
  font-weight: 700;
  color: var(--eng-teal-dark);
  margin: 0 0 10px;
}

.eng-gray-card__photo {
  width: 86%;
  margin: 0 auto;
}

.eng-gray-card__photo.fullWidth {
  width: 100%;
}

.eng-gray-card__photo img {
  width: 100%;
  height: auto;
  display: block;
}

.eng-photo-centered {
  width: 844px;
  margin: auto;
}

.eng-gray-card--line-left-bottom::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 48%;
  bottom: -100px;
  width: 4px;
  background-color: var(--eng-teal-dark);
}

.eng-gray-card--line-right-bottom::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -200px;
  bottom: 50%;
  width: 4px;
  background-color: var(--eng-teal-dark);
}

.eng-gray-card--line-left-bottom.lastChart::after {
  content: "";
  position: absolute;
  left: -4px;
  top: -50px;
  bottom: 25%;
  width: 4px;
  background-color: var(--eng-teal-dark);
}

.eng-below-card-text {
  padding: 34px 46px;
  color: #000;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 100;
}

.eng-below-card-text p {
  margin: 0;
}

/* --- 6. Section 03: Global Engagement in Action --- */
.eng-sec3 {
  position: relative;
  padding: 32px 0 76px;
}

.eng-sec3::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 120px;
  width: 14px;
  height: 220px;
  background-color: var(--eng-teal-dark);
  z-index: 1;
}

.story-body {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 100;
  color: #000;
  margin-bottom: 36px;
}

.eng-overlap-block {
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
}

.eng-teal-callout {
  background-color: var(--eng-teal-dark);
  color: #ffffff;
  padding: 20px 28px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 100;
  max-width: 660px;
  position: relative;
  z-index: 2;
  margin-bottom: -24px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.eng-teal-callout p {
  margin: 0;
}

.eng-overlap-block--right .eng-teal-callout {
  align-self: flex-end;
}

.eng-overlap-block--left .eng-teal-callout {
  align-self: flex-start;
}

.eng-overlap-photo {
  width: 82%;
  margin: 0 auto;
}

.eng-overlap-photo.fullWidth {
  width: 100%;
}

.eng-overlap-photo img {
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.eng-photo-game1 {
  width: 642px;
  margin: auto;
}

.eng-side-callout-row {
  margin: 100px auto 32px;
  display: grid;
  align-items: stretch;
  gap: 0;
}

.eng-side-callout-row--img-left {
  grid-template-columns: 1fr 1.65fr;
}

.eng-side-callout-row--img-right {
  grid-template-columns: 1.65fr 1fr;
}

.eng-side-photo img {
  width: 100%;
  height: 100%;
  min-height: 200px;
  object-fit: cover;
  display: block;
}

.eng-teal-box {
  background-color: var(--eng-teal-dark);
  color: #ffffff;
  padding: 28px 32px;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 100;
  display: flex;
  align-items: center;
}

.eng-teal-box.marginUp {
  margin-top: -50px;
  margin-bottom: 50px;
  display: inline-block;	
}

.eng-teal-box.marginUp p {
  margin-bottom: 15px;
}

.eng-teal-box p {
  margin: 0;
}

/* ==========================================================================
   響應式斷點 (Mobile RWD <= 767px - 精準還原 CUMED_FI25_web_mobile-4.jpg)
   ========================================================================== */
@media (max-width: 767px) {
	
	.mobileHide	 {
		display:none !important;
	}
	.desktopHide {
		display:block !important;
	}
		
  /* 1. Subpage Hero Banner */
  .sub-hero__overlay-box {
    width: 68%;
    padding-left: 20px;
	display:none;
  }
  .sub-hero__title {
    font-size: 21px;
    padding-top: 16px;
    line-height: 1.22;
  }

  /* 2. 導言文字 */
  .section-eng-intro {
    padding: 24px 0 32px;
  }
  .eng-intro-text {

  }

  /* 3. 共用 01 - 03 編號與標題列 */
  .story-header {
    gap: 8px;
    margin-bottom: 18px;
  }
  .story-badge {
    height: 28px;
    font-size: 28px;
    padding: 0 16px 2px 0;
  }
  .story-badge::after {
    bottom: 2px;
    width: 12px;
    height: 40px;
  }
  .story-title--light,
  .story-title--teal {
    font-size: 20px;
    line-height: 1.28;
  }
  .story-title--light br,
  .story-title--teal br {
    display: none;
  }

  /* 4. Section 01: 深湖水綠全幅區塊 + 雙並排圖 + 書冊海報 + 跨界白盒 */
  .eng-teal-section {
    padding: 32px 0 0;
    margin-bottom: 76px;
    background-size: 165% auto;
  }
  .eng-teal-body {

  }
  .eng-teal-subhead {
    font-size: 16px;
    margin: 20px 0 6px;
  }
  /* 保持雙相片並排 */
  .eng-photo-pair {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px auto;
  }
  .photo-pair-des {
    font-size: 14px;
    line-height: 1.28;
    margin-top: 6px;
  }
  /* 海報書冊置中縮小 */
  .eng-poster-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .eng-poster-split__media img {
    
    margin: 6px auto 0;
        padding-left: 6%;
        width: 75%;	
  }
  .container.marginUp {
    margin-top: -80px;
  }
  .eng-quote-box {
    padding: 18px 20px;
    font-size: 16px;
    line-height: 1.4;
  }
  .eng-quote-box::after {
    right: -4px;
    top: 22%;
    bottom: -14px;
    width: 4px;
  }

  /* 5. Section 02: 淺灰卡片 + 雙拼圖滿版還原 */
  .eng-sec2 {
    padding: 56px 0 28px;
	padding-top: 100px;
  }
  .eng-sec2::before,
  .eng-sec3::after {
    display: none;
  }
  .eng-sec2-group {
    margin-bottom: 24px;
  }
  .eng-banner-photo {
    margin: 0 -15px;
    width: auto;
  }
  .eng-gray-card {
    margin: 0 -15px;
    padding: 20px 18px 24px;
    font-size: 16px;
    line-height: 1.4;
  }
  .eng-gray-card p {
    margin-bottom: 16px;
  }
  .eng-card-subhead {
    font-size: 16px;
  }
  .eng-gray-card__photo {
    width: 100%;
  }
  .eng-gray-card__photo.fullWidth {
    margin: 0 -15px;
    width: auto;
  }
  .eng-photo-centered {
    width: 100%;
  }
  .eng-gray-card--line-left-bottom::after,
  .eng-gray-card--line-right-bottom::after,
  .eng-gray-card--line-left-bottom.lastChart::after {
    display: none;
  }
  .eng-below-card-text {
    padding: 22px 4px;
    font-size: 16px;
    line-height: 1.4;
  }

  /* 6. Section 03: GAME Network (保留交錯浮框 + 左右並排卡片構圖) */
  .eng-sec3 {
    padding: 20px 0 40px;
  }
  .eng-container.last {
    margin-bottom: 20px;
  }
  .story-body {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 24px;
  }
  .eng-overlap-block {
    margin-bottom: 28px;
  }
  .eng-teal-callout {
    padding: 14px 16px;
    margin-bottom: -14px;
  }
  .eng-overlap-block--right .eng-teal-callout {
    margin-right: -15px;
  }
  .eng-overlap-block--left .eng-teal-callout {
    margin-left: -15px;
  }
  .eng-overlap-photo,
  .eng-overlap-photo.fullWidth {
    width: 100%;
  }
  .eng-photo-game1 {
    width: 100%;
  }

  /* Block C & D：手機版維持「左圖右框 / 左框右圖」錯落並排比例 */
  .eng-side-callout-row {
    margin: 44px -15px 28px;
    align-items: start;
  }
  .eng-side-callout-row--img-left {
    grid-template-columns: 1fr;
  }
  .eng-side-callout-row--img-right {
    grid-template-columns: 1fr;
  }
  .eng-side-photo img {
    min-height: 130px;
	width: 85%;
  }
  .eng-side-photo.right {
	text-align:right;
  }  
  .eng-side-photo.right img {
		display: inline-block;
  }
          
  .eng-teal-box {
    padding: 14px 14px;
    
  }
  .eng-teal-box.marginUp {
    margin-top: 0px;
    margin-bottom: 0px;
  }
  .eng-teal-box.marginUp p {
    margin-bottom: 8px;
  }
  .eng-teal-box.marginUp p:last-child {
    margin-bottom: 0;
  }
}