main{
    /* background-color: #686e43; */
    /* margin-top: 5%; */
    height: fit-content;
    width: 100%;
    padding:1rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.description{
    /* background-color: aquamarine; */
    width:100%;
}
.Story{
    /* background-color: aqua; */
    font-size: 1.5rem;
    line-height: 1.6;
    width:60%;
    font-weight: bold;
}
.Story::first-letter{
    font-size: 3em;
    font-weight: bold;
    float: left;
    line-height: 1;
    margin-right: 8px;
}
.join{
    display: block;
    /* background-color: white; */
    width:60%;
}
section{
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}
#CampInfo{
    background-color: var(--color-surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding:1rem 2rem 0 2rem;
    border: 2px solid rgba(128, 128, 128,0.5);
}
.Info{
    /* background-color: blue; */
    width: 100%;
    display:flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}
#CampInfo .Info-container{
    /* background-color: beige; */
    display: flex;
    flex-direction: column;
    width: 100%;
}
.location {
    background-color: var(--color-surface);
    border: 2px solid var(--color-border);
}
.information{
    width:100%;
    display: flex;
    align-items:baseline;
    padding:1rem;
    gap:1rem;
}
.information .map-link{
    font-weight: bolder;
    font-size: 1.1rem;
    padding: 2px;
    border: 2px solid black;
}
.information a.Brochure{
    text-decoration: none;
    font-weight: normal;
    font-size: 1.1rem;
    border: 0px solid black;
}
#CampInfo .map-container {
    position: relative;
    width:80%;
    padding-top: 40%; /* 4:3 比例：高 = 寬 × 75% */
    border-radius: 5%;
    overflow: hidden;
    z-index: 10;
}
#CampInfo .map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.row-container {
    /* background-color: blue; */
    padding:1rem 2rem;
    width: fit-content;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
}
.transport{
    /* background-color: bisque; */
    width:100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 1rem;
}
.transport-tabs {
    /* background-color: beige; */
    display: flex;
    justify-content: center;
    align-items: center;
    width:100%;
    gap: 1rem;
    margin-top: 1rem;
}
.tab-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--color-text-dark);
    background: white;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    width: 20rem;
    border-radius: 999px;
}
.tab-btn:hover{
    background-color: rgba(249, 157, 36,0.5);
}
.tab-btn.active {
    background: var(--color-accent-dark);
    color: white;
}
.tab-content {
    display: none;
}
.tab-content.active {
    /* background-color: blue; */
    display: flex;
    width: 100%;
    padding:1rem 2rem;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    margin-top: 1rem;;
}
.columns{
    /* background-color: aquamarine; */
    display: flex;
    flex-direction: column;
    justify-content: baseline;
    align-items: center;
    gap:1rem;
    padding:1rem;
    width: 100%;
    /* overflow: hidden; */
}
.block{
    /* background-color: aqua; */
    display: flex;
    justify-content: center;
    align-items: center;
    padding:1rem;
    gap:1rem;
    width:100%;
}
.location{
    background-color:bisque;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 auto;
    height: 8rem;
    padding:1rem;
    border: 2px solid gray;
    font-weight: bold;
    border-radius: 20%;
}
.direction{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 200px;
    min-width: 150px;
    font-size: 1.05rem;
    font-weight: 500;
    color:rgb(0, 0, 0);
}
.direction a{
    color: rgb(255, 171, 2);
}

#CourseInfo{
    /* background-color: bisque; */
    width:100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}
.courses{
    width: 100%;
    height:auto;
    align-items: baseline;
}
.text{
    /* background-color: brown; */
    display: flex;
    flex-direction: column;
    align-items: center;
    max-height: 100%;
}
svg{
    fill:black;
    width: 1.1rem;
    height: 1.1rem;
    transition: 0.2s ease ;
}
.right-svg.rotated{
    transform: rotate(90deg);
    transition: 0.2s ease ;
}
.CIntro{
    width: 32rem;
    background-color: var(--color-surface-dark);
    border: 2px solid var(--color-border);
    border-radius: 37px;
}
/* 標題（可點擊） */
.course-title {
    width: 100%;
    padding: 1rem;
    font-size: 1.3rem;
    text-align: center;
    border: 2px solid var(--color-border);
    border-radius: 35px;
    cursor: pointer;
    font-weight: bold;
}
/* 內容區（預設收起） */
.course-content {
    max-height: 0;
    overflow: hidden;
    /* transition: max-height 0.3s ease; */
}
/* 展開狀態 */
.course-content.active {
    max-height: 800px; /* 可以調整 */
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.course-content p{
    font-size: 1.1rem;
}
.Hackathon{
    background-color: rgba(0, 0, 0,0.2);
    border: 3px  solid var(--color-text-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem 4rem;
}
.Hackathon p{
    margin-top: 0.5rem;
    font-size: 1.2rem;
}
.Hackathon a{
    color: aliceblue;
    border: 0;
    font-style: oblique;
    /* background-color:rgb(245, 171, 96) */
}
.link{
    padding: 5px;
    border: 2px solid black;
}
.link:hover{
    color: yellow;
}

#FAQ {
    text-align: center;
    height: auto; /* 固定高度改成 auto */
}
.faq-container {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap; /* 超過自動換行 */
    justify-content: center;
    gap: 1rem;
    width: 100%;
    font-weight: bold;
}
.faq-card {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05); /* 搭配極淡邊框增加精緻感 */
    perspective: 1000px;
    font-size: 1.1rem;
    cursor: pointer;
    flex: 0 0 20rem; /* 不放大、可縮小、基礎寬300px */
}
.faq-card:hover {
  transform: translateY(-5px);
  transition: 0.2s;
}
/* 內層翻轉 */
.card-inner {
  position: relative;
  width: 100%;
  min-height: 200px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}
/* 翻轉 */
.faq-card.flipped .card-inner {
  transform: rotateY(180deg);
}
/* 正反面共用 */
.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  backface-visibility: hidden; /* 🔥 背面不顯示 */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
/* 正面 */
.card-front {
    background: var(--color-surface-dark);
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
/* 背面 */
.card-back {
    background: var(--color-accent-dark);
    color: white;
    transform: rotateY(180deg);
}

.carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    position: relative; /* 加這行 */
}
.carousel-track-wrapper {
    overflow: hidden;
    width: 60%;
    flex-shrink: 0;
    position: relative; /* 加這行，讓按鈕相對於圖片定位 */
}
.carousel-btn {
    position: absolute;  /* 改成絕對定位 */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1;
    padding: 1rem;
}
.carousel-btn.prev {
    left: 8px;  /* 貼在圖片左側 */
}
.carousel-btn.next {
    right: 8px; /* 貼在圖片右側 */
}
.carousel-btn:hover {
    background: rgba(0,0,0,0.7);
}
.carousel-track {
    display: flex;          /* 缺少這行！*/
    transition: transform 0.4s ease;
}
.carousel-track img {
    width: 100%;
    min-width: 100%;
    flex-shrink: 0;
    aspect-ratio: 16 / 9;   /* 設定比例，可改成 16/9 */
    object-fit: cover;
    border-radius: 8px;
}
#CampHistory{
    white-space: nowrap;
}

@media (max-width: 768px) {
    * {
    -webkit-tap-highlight-color: transparent;
    }
    main{
        padding:0rem;
    }
    .description{
        /* background-color: brown; */
        width: 100%;
    }
    .description.columns{
        /* background-color:aqua; */
        padding:0;
        width: 100%;
    }
    .Story{
        /* background-color:antiquewhite; */
        width: 100%;
        padding: 0 1rem;
    }
    .description h1{
        display:none;
    }
    #CampInfo{
        padding:1rem;
        /* min-width: 480px; */
    }
    .row-container{
        display: flex;
        flex-direction: column;
        justify-content: baseline;
        align-items: center;
        gap:1rem;
        padding:1rem;
        width: 100%;
    }
    .Info{
    flex-direction: column;
    }
    #CourseInfo{
        padding: 0;
    }
    .CIntro{
        /* background-color: aqua; */
        width: 100%;
        border-radius: 30px;
        border-radius: 37px;
    }
    .carousel-btn {
        padding: 0.5rem;
    }
    .carousel-track-wrapper {
        width: 100%;
    }
    .transport-tabs {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width:100%;
        gap: 1rem;
    }
    .block{
        /* background-color: aqua; */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding:0rem;
        gap:1rem;
        width:fit-content;
    }
    .row_for_phone{
        /* background-color: aquamarine; */
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        width: 100%;
        padding:0;
    }
    .tab-content {
        display: none;
    }
    .tab-content.active {
        /* background-color: bisque; */
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 1rem;
        width: fit-content;
    }
    .Hackathon{
        padding:1.25rem 3rem;
        border: 0;
        border-top: 3px  solid var(--color-text-dark);
        border-bottom: 3px  solid var(--color-text-dark);
    }
}

@media (max-width: 480px) {
    main{
        padding:1rem 0 0 0;
    }
    .faq-card{
        font-size: 1.5rem;
        flex: 0 0 25rem;
    }
    .card-inner{
        min-height: 150px;
    }
    .contents h2{
        font-size: 1.4rem;
    }
}
