/* General styles for content sections */
.content-section {
    padding: 40px 20px;
    background-color: #EBC9A4;
    background-image: url("/content-back.png");
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* 內容容器 */
.content-container {
    background-color: #014E78;
    width: 90%;
    margin: 10px auto;
    padding: 20px;
    box-sizing: border-box;
}

/* 標題樣式 */
.content-container h2 {
    color: #F89B1C;
}

/* 段落與連結 */
.content-container p,
.content-container a {
    color: #EBC9A4;
}

/* 一般欄位排版 */
.content-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 特殊兩欄排版處理 */
.content-column.two-columns {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* 每個 content-space */
.content-space {
    flex: 1 1 48%; /* 均分寬度，並允許彈性 */
    box-sizing: border-box;
}

/* 讓圖片自適應寬度 */
.content-space img {
    width: 100%;
    height: auto;
    display: block;
}

/* 響應式調整：小螢幕改為上下排列 */
@media screen and (max-width: 800px) {
    .content-column.two-columns {
        flex-direction: column;
    }

    .content-space {
        flex: 1 1 100%;
    }
}

/* /static/css/hero-style.css */

.hero-redesigned {
    padding: 40px 20px;
    background-color:  #014E78;
    background-image: url("/hero-back.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-redesigned h1 {
    text-align: center;
    line-height: 2rem;
    color: #F89B1C;
}

.hero-redesigned h2 {
    text-align: center;
    color: #EBC9A4;
}

.hero-container {
    display: flex;
    flex-wrap: wrap; /* Wrap columns on smaller screens */
    gap: 30px;
    max-width: 1500px;
    margin: 0 auto;
    align-items: flex-start; /* Align items at the top */
}

.hero-column {
    flex: 1; /* Each column takes equal space */
    min-width: 300px; /* Minimum width before wrapping */
}

/* Left Column Styles */
.hero-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-image-box {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.hero-image-box img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-countdown-overlay {
    position: absolute;
    bottom: 5px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;

}

.hero-fundraising-status {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-progress-info,
.hero-stats,
.hero-fundraising-countdown {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hero-label {
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}


/* Right Column Styles */
.hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;

}
.ticker-container-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* 3. 設定右邊容器佔用剩餘空間 */
  .ticker-container-right {
    flex: 1; 
    text-align: center; /* 保持內部文字置中 */
  }

.hero-ticket-info {
    width: 100%;
    background-color: #EBC9A4;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center; /* 可選：保持垂直居中對齊 */
    /* gap: 16px; */ /* 注意：如果使用 gap，實際寬度會略小於40%/60% 來容納間距。如果需要精確的40/60，則不應使用 gap 或 margin */
}

.hero-ticket-info p {
    color: #014E78; /* Blue title */
    text-align: center;
    line-height: 2rem;
    align-items: center; /* 可選：保持垂直居中對齊 */

}

.hero-ticket-price {
    font-size: 24px;
    font-weight: bold;
    align-items: center; /* 可選：保持垂直居中對齊 */

}

.hero-event-details {
    text-align: center;
}


.p-1 {
    color: #EBC9A4;
    gap: 8px; /* Space between icon and text */
    letter-spacing: 0%;
    text-align: center;
    line-height: 2rem;
}

.p-2 {
    color: #EDA253;
    gap: 8px; /* Space between icon and text */
    letter-spacing: 0%;
    text-align: center;
    line-height: 2rem;
}

.hero-event-details i {
    color: #cd0046; /* Icon color */
    width: 20px; /* Fixed width for alignment */
    text-align: center;
    margin-right: 5px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column; /* Stack columns */
    }
    .hero-column {
        width: 100%; /* Full width for columns */
    }
    .hero-left {
        order: 2;
    }
    .hero-right {
        order: 1;
    }
}

.countsize {
    font-size: 20px;
}

/* 以下為跳舞小人動畫區域內容 */
#B {
    display: inline-block; /* 讓容器大小跟隨內容 */
    position: relative; /* 讓 loader 可以正確定位 */
}
#B img {
    display: block;
    max-width: 100%; /* 讓圖片寬度符合瀏覽器最大寬度 */
    height: auto; /* 高度等比例縮放 */
}
.loader {
    width: 60px;
    height: 16px;
    display: flex;
    justify-content: space-between;
    position: absolute;
    animation: l3-0 6s infinite linear;
}
.loader:before,
.loader:after {
    content: "";
    width: 16px; /* 圖片寬度 */
    height: 16px; /* 圖片高度 */
    background-size: cover;
    background-position: center;
    animation: l3-1 3s infinite alternate;
}
.loader:before {
    background-image: url('/left-dancer.png'); /* 第一張圖片 */
}
.loader:after {
    background-image: url('/right-dancer.png'); /* 第二張圖片 */
    --s: -1;
}
@keyframes l3-0 {
    0%,40%   {transform: rotate(0)}
    80%,100% {transform: rotate(1turn)}
}
@keyframes l3-1 {
    80%,100% {transform: translate(calc(var(--s,1)*14px))}
}
/*動畫結束*/


.ticket-container-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.ticket-container-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


/* 以下為新loading動畫 */

.progress-container {
    width: 80px;  /* 可自訂大小 */
    height: 80px;
    position: relative;
  }

.progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.bg {
stroke: #f0f0f0;
fill: none;
stroke-width: 10;
stroke-linecap: round;
}

.progress {
stroke: #EDA253;
stroke-dasharray: 440;
stroke-dashoffset: 0;
transition: stroke-dashoffset 0.5s ease;
fill: none;
stroke-width: 10;
stroke-linecap: round;
}

.progress-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 24px;
font-weight: bold;
color: #666;
}