/* 在頂部定義品牌色彩變數 (根據 CMYK 值) */
:root {
    --navbar-height: 60px;
}

body {
    padding-top: var(--navbar-height);
}
:root {
    --color-main-yellow-orange: #FFCC00; 
    --color-main-dark-grey: #666666; 
    --color-aux-orange: #FF9900; 
    --color-aux-teal: #00A8A8; 
    --color-background-light: #fffef6; 
    --color-white: #ffffff;
}

a.btn-apply:visited{
    color: #5857578e;
}


body {
    font-family: 'Noto Sans TC', sans-serif;
    margin: 0;
    padding: 0;
    background-color: black;
    color: var(--color-main-dark-grey); 
    line-height: 1.7;
}

.bg-img-top{
    background-image: url("/backImg/background01.png");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: 45%;
    }
  
  .bg-img{
  background-image: url("/");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 45%;
  }
@media (min-width: 768px) {
    
    .bg-img-top{
        background-size: 35%;
        }
      
      .bg-img{
      background-size: 35%;
      }
}

.container {
    padding: 90px 35px; 
}

.my-5 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.leaderbtn{
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: space-around;
    position: relative;
    margin-bottom: 100px;
    margin-left: 30px;
    margin-right: 30px;
}

@media (max-width: 768px) {
  .leaderbtn {
    justify-content: center;
    align-items: center;
    gap: 10px; 
    width: 100%; 
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 auto;
  }
  .leaderbtn img {
    max-width: 95%; 
    height: auto;
  }
}

.logo-container{
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo{
    height: auto;
    width: 500px;
}

.main-title {
    font-size: 3em;
    text-align: center;
    letter-spacing: 7px;
    font-weight: 900;
    color: white; 
    margin-bottom: 50px;
    text-shadow: 2px 2px 5px rgba(255, 204, 0, 0.4); 
}

.section-heading {
    font-weight: 700;
    text-align: center;
    color: var(--color-aux-orange); 
    margin-top: 90px;
    /* margin-bottom: 10px; */
    letter-spacing: 7px;
}


.main-paragraph{
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--color-main-dark-grey); 
    text-align: justify; /* 這個別改，是為了保持左右對齊 */
}
/* 這裡是4個領袖訓練區塊分頁的，六角形轉跳按鈕 */
.leaderbtn{
    margin-top: 55px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}


@media(min-width: 768px) {
.leaderbtn{
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}
.centerbox{
    align-items: center;
    text-align: center;
    justify-content: center;
}
}

/* 這裡是GLS+的介紹 */
.lead {
    font-size: 1.2em; 
    font-weight:400;
    color: white; 
    letter-spacing:1.5px;
}

/* 立即申請GLS+按鈕容器 */
.gls-plus-container{
    display: grid;
    justify-content: center;
    align-items: center;
    margin-top: -125px;
    margin-bottom: 10vw;
}
/* -- 申請 GLS+ 的互動式按鈕 -- */
.btn-primary {
    background-color: var(--color-aux-orange); 
    border-color: var(--color-aux-orange); 
    color: var(--color-white); 
    font-size: 1.2em;
    padding: 10px 30px;
    border-radius: 30px; 
    box-shadow: 0 5px 9px rgba(255, 153, 0, 0.4); 
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.4s ease; 
    position: relative; 
    overflow: hidden;
    z-index: 10; 
    font-weight: 600; 
    letter-spacing: 4px; 
}

.btn-primary:hover {
    background-color: #e68a00; 
    border-color: #e68a00;
    transform: translateY(-3px) scale(1.03); 
    box-shadow: 0 8px 18px rgba(255, 153, 0, 0.6), 0 0 25px rgba(255, 153, 0, 0.5); 
}


.btn-primary:focus {
     outline: none; 
     box-shadow: 0 8px 18px rgba(255, 153, 0, 0.6), 0 0 25px rgba(255, 153, 0, 0.5);
     transform: translateY(-3px) scale(1.03);
}


/* -- GLS+ 課程區塊的格狀佈局 -- */
.course-sections-grid {
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px;
    margin-top: 100px;
}



@media (min-width: 768px) {
    .course-sections-grid {
        grid-template-columns: repeat(2, 1fr); 
    }
}



.course-section {
    background-color: var(--color-white);
    border-radius: 10px;
    padding: 30px;

    box-shadow: 0 6px 12px rgba(102, 102, 102, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee; 
}

.course-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(102, 102, 102, 0.35);
}


.course-section .section-title {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--color-main-dark-grey);
    text-align: center;
    position: relative; 
    padding-bottom: 10px;
}

/* 下方裝飾線條的語法 */
.course-section .section-title::after {
    content: '';
    display: block;
    width: 200px;
    height: 4px;
    background-color: var(--color-main-yellow-orange); 
    margin: 10px auto 0; 
    border-radius: 2px;
}

.course-section .section-intro {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--color-main-dark-grey); 
    text-align: justify;
    flex-grow: 1;
    letter-spacing:1.5px;
}


/* -- 收合/展開的地方-- */
.core-content-toggle {
    font-weight: bold;
    color: var(--color-aux-orange);
    cursor: pointer;
    margin-top: 20px;
    padding: 15px 0;
    /* 以下是邊框顏色*/
    border-top: 1px solid var(--color-main-dark-grey);
    border-bottom: 1px solid var(--color-main-dark-grey);
    text-align: center;
    transition: color 0.3s ease;
    user-select: none;
}

.core-content-toggle:hover {
    color: #e68a00;
}

.core-content-toggle .toggle-icon {
    display: inline-block;
    margin-left: 8px; /* 這裡是箭頭與文字間距 */
    transition: transform 0.3s ease;
}

.core-content-details {
    display: grid;
    grid-template-rows: 0fr; 
    transition: grid-template-rows 0.6s ease-in-out; 
    background-color: var(--color-aux-teal); 
    border-radius: 0 0 10px 10px; 
    margin-top: 0; 
    padding: 0 20px;
}

/* 展開狀態 */
.core-content-details.expanded {
    grid-template-rows: 1fr; 
}


.core-content-overflow-container {
    overflow: hidden;
}

.core-content-details p {
    margin: 20px 0; 
    font-size: 1em;
    line-height: 1.7;
    color: var(--color-white); 
    text-align: left;
    letter-spacing: 1px;
}

/* 箭頭圖示的旋轉 */
.core-content-details.expanded + .core-content-toggle .toggle-icon {
     transform: rotate(180deg);
}

 .join-section {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    padding: 0px 0;
    margin-top: 80px;
    margin-bottom: 90px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.join-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 204, 0, 0.1), transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255, 153, 0, 0.1), transparent 50%);
}

.join-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.join-title {
    font-size: 3.5em;
    font-weight: 900;
    color: var(--color-main-yellow-orange);
    text-shadow: 0 0 30px rgba(255, 204, 0, 0.6);
    margin-bottom: 30px;
    letter-spacing: 5px;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    from { text-shadow: 0 0 30px rgba(255, 204, 0, 0.6); }
    to { text-shadow: 0 0 50px rgba(255, 204, 0, 0.8); }
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 50px 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.step-item {
    background: linear-gradient(135deg, var(--color-background-section), #333);
    border-radius: 15px;
    padding: 25px 20px;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.step-item::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, var(--color-main-yellow-orange), var(--color-aux-orange));
    border-radius: 15px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask-composite: xor;
}


.apply-gls-plus:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 204, 0, 0.5);
    cursor: pointer;
}

.step-number {
    font-size: 2.5em;
    font-weight: 900;
    color: var(--color-aux-orange);
    margin-bottom: 10px;
    text-shadow: 0 0 15px rgba(255, 153, 0, 0.5);
}

.apply-gls-plus:hover .step-number {
    color: white;
}

.step-text {
    font-size: 1.1em;
    color: whitesmoke;
    letter-spacing: 1px;
    line-height: 1.6;
}

/* 大螢幕使用特定的網格布局 */
@media (min-width: 992px) {
    .steps-container {
        display: grid;
        grid-template-columns: repeat(6, 1fr); 
        grid-template-rows: repeat(2, auto); 
        gap: 20px;
        max-width: 900px;
    }
    
    .steps-container > :nth-child(1) {
        grid-column: 1 / 4; /* 讓第一個項目橫跨 1-3 欄 */
        grid-row: 1;
    }
    .steps-container > :nth-child(2) {
        grid-column: 4 / 7; /* 讓第二個項目橫跨 4-6 欄 */
        grid-row: 1;
    }
    
    .step-item:nth-child(3) {
        grid-column: 1 / 3;
        grid-row: 2;
    }
    
    .step-item:nth-child(4) {
        grid-column: 3 / 5;
        grid-row: 2;
    }
    
    .step-item:nth-child(5) {
        grid-column: 5 / 7;
        grid-row: 2;
    }
}


/* 平板 */
@media (min-width: 768px) and (max-width: 991px) {
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 手機版保持原樣 */
@media (max-width: 767px) {
    .steps-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}



/* 申請按鈕 */
.btn-apply {
    background: linear-gradient(135deg, var(--color-aux-orange), #e68a00);
    border: none;
    color: var(--color-white);
    font-size: 1.5em;
    padding: 20px 50px;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 3px;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.4);
}


.btn-apply::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-apply:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 35px rgba(255, 153, 0, 0.6);
    color: var(--color-white);
    text-decoration: none;
}

.btn-apply:hover::before {
    left: 100%;
}
@media (max-width: 768px) {
    .main-title {
        font-size: 2.2em;
        letter-spacing: 3px;
    }

    .join-title {
        font-size: 2.5em;
        letter-spacing: 2px;
    }

    .btn-apply {
        font-size: 1.3em;
        padding: 20px 35px;
        border-radius: 20px;
    }

    .step-number {
        font-size: 2em;
    }

    .steps-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .container {
        padding-left: 55px;
        padding-right: 55px; 
    }
}
