.button-section {
  height: 350px;
  overflow: hidden; /* 避免浮動脫離造成塌陷 */
}

/* 清除浮動 */
.button-section::after {
  content: "";
  display: table;
  clear: both;
}

.section-item {
  box-sizing: border-box;
  min-height: 350px;
  float: left;
}

/* 寬度依然使用百分比 */
.section-item.width-1,
.section-item.width-2 {
  width: 25%;
}

.section-item.width-3 {
  width: 50%;
  background-image: url('/images/vocabulary/course-menu-button-right.jpg');
  background-position: center -15px; /* 往上推*/
    background-size: 96% auto;
  background-repeat: no-repeat;
}

.section-item.width-3-video {
  width: 50%;
}

.section-item.width-3-2 {
  width: 50%;
  background-image: url('/images/vocabulary/course-menu-button-right-selected.jpg');
  background-position: center -15px; /* 往上推*/
    background-size: 96% auto;
  background-repeat: no-repeat;

}

.section-item img {
  max-width: 100%;
  display: block; /* ✅ 拿掉 relative + top，避免 reflow */
  margin-top: -12px; /* ✅ 替代 top 推位 */
}

.button-row {
  display: block;
  width: 100%;
}

.button-item-left,
.button-item-right {
  width: 100%;
  margin-bottom: 20px; /* 取代 grid gap */
  text-align: left; /* 可改為 left/right 看你需求 */
}

.course-menu-instructions-wrapper {
  margin-top: 36px;
  min-height: 500px; /* 這是使用說明的高度，最後再設定 */
}

.course-menu-button {
  width: 68%;
  font-size: 18px;
  padding: 12px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: #343c53;
  text-align: center;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  border: solid 1px #707070;
 box-shadow: rgba(50, 50, 93, 0.15) 0px 2px 4px, rgba(0, 0, 0, 0.1) 0px 1px 2px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.course-menu-button:hover {
  background-color: #fcfab3;
}

.course-menu-button:active {
  background-color: #f7f48d;
}

.kk-ad-video {
  font-size: 18px;
  line-height: 32px;
  padding-top: 12px;
  font-weight: bold;
  color:#595959;
}

/*video 影片位置*/ 
.videocont {
    clear: both;
    height: 1%;
    overflow: hidden;
    padding-bottom: 0px;
}

.video {
    position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	padding-top: 12px;
    height: 0;
    overflow:hidden;
}
.video iframe, .video object, .video embed {
    position: absolute;
	top: 0;
	left: 0;
	max-width: 100%;
    height: 100%;
}

/* 廣告文字連結 */
.link-breath, 
.link-breath:visited {
    color: #ec6227; 
    text-decoration: none;
    font-weight: 600;
    position: relative;  
}

.link-breath:hover {
    color: #f3753f;
    border-bottom: 2px solid #f7a868;
    padding-bottom: 2px;
}


/* 小筆電：1366px 以下 */
@media (max-width: 1366px) {
 
.button-item-left,
.button-item-right {
  margin-bottom: 18px; /* 取代 grid gap */
}

.button-section {
  height: 330px;
}

.section-item {
  min-height: 330px;
}

.kk-ad-video {
  font-size: 16px;
  line-height: 30px;
  padding-top: 12px;
  font-weight: bold;
  color:#595959;
}

} /* 結尾 */



/* 大螢幕：1920px 以上*/
@media (min-width: 1920px) {

/* course menu 設定 */
.course-menu-button {
  color: #353f5e;
  padding: 14px 20px;
  font-size: 23px;
}

.button-section {
  height: 430px;
}

.section-item {
  min-height: 430px;
}

.section-item.width-3 {
  background-position: center -20px; /* 往上推*/
  background-size: 93% auto;
  background-repeat: no-repeat;
}

.section-item.width-3-2 {
  background-position: center -20px; /* 往上推*/
  background-size: 93% auto;
  background-repeat: no-repeat;
}

.button-item-left,
.button-item-right {
  margin-bottom: 22px; 
}

.kk-ad-video {
  font-size: 21px;
  line-height: 33px;
  padding-top: 12px;
  color:#595959;
}

} /* 結尾 */