/* #region -----Hero(Banner) 區塊樣式----- */
.hero {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    background: transparent !important; /* 確保 hero 本身無背景色干擾 */
    flex-shrink: 0;
    margin-top: 90px;
    margin-bottom: 4.25rem;
}

.hero-container {
    padding-top: 71px; 
    width: 100%;
}

.hero-img [name="Background"] {
    width: 640px;
    height: 640px;
    object-fit: cover;
}

.hero-img [name="Main"] {
    width: 256px;
    height: 256px;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* #endregion */ 

/* #region -----Story(Banner) 區塊樣式----- */
.story {
    width: 100%;
    padding: 6.25rem;
    display: flex;
    align-items: center; /* 垂直居中內容 */
    justify-content: center;
    overflow: hidden;
}

.story-container {
    gap: 5%;
    width: 100%;
}

.story-container video{
    max-width: 860px;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
    aspect-ratio: 43/30;
}

.story-text{
    max-width: 597px;
}

.story [name="title"] {
    color: var(--White);
}

.story [name="content"] {
    color: var(--White);
}
/* #endregion */ 

/* #region -----Hero(Banner) 區塊樣式----- */
.awards {
    padding: 70px 100px;
}

.awards-text{
    margin-bottom: 70px;
}

.awards [name="title"] {
    text-align: center;
}

.awards [name="content"] {
    text-align: center;
}

.awards-container{
    padding: 0px;
    max-width: 100%;
}

.awards-container p{
    margin-bottom: 0px;
}

.awards-item-container{
    flex: 0 0 auto;
    width: calc(50% - 10px);
    height: 700px;
    padding: 0px;
    border-radius: 5px;
}

.awards-item{
    display: flex;
    gap: .25rem;
    align-items: baseline;
}

.awards-item b{
    font-weight: 600;
}
/* #endregion */ 

/* #region -----Milestones 區塊樣式----- */
.milestones {
    position: relative;
    height: 980px;
    display: flex;
    justify-content: center;
    overflow: hidden;
    background: transparent !important; /* 確保 milestones 本身無背景色干擾 */
    flex-shrink: 0;
}

.milestones video {
    display: block;
    margin: 0 auto;
    position: absolute;
    top: 50%;
    left: 50%;
    height: 100%;
    object-fit: cover; /* 確保影片填滿容器並保持比例 */
    z-index: -1; /* 影片作為背景 */
    transform: translate(-50%, -50%);
}

/* Desktop video - show on screens larger than 992px */
.milestones .video-desktop {
    display: block;
}

/* Mobile video - hide on screens larger than 992px */
.milestones .video-mobile {
    display: none;
}

.milestones .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    background: linear-gradient(180deg, #000 0%, rgba(17, 37, 71, 0.00) 21.02%); /* 半透明黑色遮罩，可調整透明度 */
    z-index: -1 !important; /* 遮罩層在影片之上，內容之下 */
}

.milestones-container {
    justify-content: center;
}

.milestones-container [name="title"] {
    padding-top: 200px;
    text-align: center;
    margin-bottom: 30px;
}

.milestones-container [name="content"] {
    max-width: 1057px;
    padding-top: 160px;
    text-align: center;
    margin-bottom: 40px;
}
/* #endregion */ 

/* #region -----Innovation 區塊樣式----- */
.innovation {
    padding: 130px 0px;
    background-color: var(--Primary-Blue);
}

.innovation-container {
    justify-items: center;
    padding: 0;
}

.innovation-header{
    width: 50%;
}

.innovation-body{
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 60px;
}

.innovation-body a{
    width: 20%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
}

.innovation-body img{
    height: 90px; 
    margin-bottom: 20px;
    object-fit: cover; 
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

.innovation-body p{
    position: relative; /* To position the ::after element properly */
    display: inline-block; /* Ensures the p element’s width can be controlled */
    margin: 0; /* Reset potential default margins */
    padding-right: 35px; /* Space for the arrow */
}

.innovation-body p::after {
    content: url('/images/icons/arrow_right.svg'); /* Use the same image as the original */
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    object-fit: cover;
}
/* #endregion */ 

/* #region -----Global 區塊樣式----- */

.global{
    padding: 80px 50px 130px 50px;
    margin: 0px;
}

.global-container{
    display: grid;
    align-content: space-between;
}
    
.global-item-container {
    width: 100%;
    height: 100%;
    padding: 0px;
    display: flex;
    justify-content: center;
}

.global .dropdown-list{
    width: 55%;
    padding-top: 2px;
    padding-bottom: 0px;
}

.global .bg-black .dropdown-list [name="item"]:last-child {
    border-bottom: 1.2px solid var(--White, #FFFFFF);
}

.global .dropdown-list [name="content"] {
    max-height: 0;
    opacity: 0;
    text-align: left;
    padding: 0;
    transition: unset;
}

.global [name="other"] h1{
    margin-bottom: 55px;
    justify-content: center;
}

.global-countries{
    gap: 40px;
    display: flex;
    justify-content: center;
}

/* #endregion */ 

/* #region -----Sustainability 區塊樣式----- */
.sustainability {
    padding: 0px 0;
    background-color: var(--Primary-Blue);
}

.sustainability-text {
    max-height: 600px;
    padding: 5rem 5%;
    line-height: normal;
}

.sustainability p {
    margin-bottom: 40px;
} 

.sustainability-image {
    padding: 0; /* 移除圖片區域內間距 */
    height: 100%; /* 確保圖片區域高度與左側一致 */
}

.sustainability-image img {
    max-height: 600px;
    object-fit: cover; /* 圖片填滿容器，保持比例 */
    height: 100%; /* 確保圖片高度占滿 */
    width: 100%; /* 確保圖片寬度占滿 */
}
/* #endregion */ 

/* #region -----Join Us 區塊樣式----- */
.join-us {
    padding: 0px 0;
    background-color: var(--White);
}

.join-us-text {
    max-height: 600px;
    padding: 5rem 5%;
    line-height: normal;
}

.join-us p {
    margin-bottom: 40px;
}

.join-us [name="title"] {
    color: var(--Primary-Blue);
}

.join-us [name="content"] {
    color: var(--Black);
}

.join-us-image {
    padding: 0; /* 移除圖片區域內間距 */
    height: 100%; /* 確保圖片區域高度與左側一致 */
}

.join-us-image img {
    max-height: 600px;
    object-fit: cover; /* 圖片填滿容器，保持比例 */
    height: 100%; /* 確保圖片高度占滿 */
    width: 100%; /* 確保圖片寬度占滿 */
}
/* #endregion */ 

/* 中螢幕（<=1400px） */
@media only screen and (max-width: 1400px) {
    .awards-item-container{
        height: 800px;
    }
}

/* 小螢幕（<=1200px） */
@media only screen and (max-width: 1200px) {
    .awards-item-container{
        height: 1000px;
    }
}