:root {
    --light-gray: #f0f0f0;
    --bs-link-hover-color: #16C0F5;
    --bs-link-hover-color-rgb: 22, 192, 245;
    --pc-primary-color-rgb: 22, 192, 245;
    --pc-primary-color: #16C0F5;
    --pc-primary-color-rgb-08: rgba(22, 192, 245, .8);
    --pc-dark-primary-color-rgb: 16, 148, 189;
    --pc-dark-primary-color: #1094BD;
    --pc-darker-primary-color-rgb: 5, 126, 123;
    --pc-darker-primary-color: #057E7B;
    /*--pc-secondary-color-rgb: 255, 226, 1;*/
    /*--pc-secondary-color: #FFE201;*/
    --pc-secondary-color-rgb: 255, 202, 3;
    --pc-secondary-color: #FFCA03;
    --bs-form-height: 38px;
}

.mb-3{
    margin-bottom: 2rem;
}
.mb-2{
    margin-bottom: 1rem;
}
.mb-4{
    margin-bottom: 2.5rem;
}

.m-0{
    margin: 0 !important;
}

.border-top{
    border-top: 1px solid #ddd;
}

.py-3{
    padding-top: 2rem ;
    padding-bottom: 2rem ;
}

.text-black {
    color: black;
}

.text-pc-primary {
    color: var(--pc-primary-color);
}

.position-absolute{
    position: absolute;
}
.top-1{
    top: 1rem;
}
.left-1{
    left: 1rem;
}

.fw-bold{
    font-weight: bold;
}

.w-30{
    width: 30%;
}

.required::after {
    content: "*";
    color: red;
    margin-left: 4px;
}

/* steps */
/* 步驟進度提示 */
.step-indicator {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.wizard > .steps > ul {
    display: flex;
    justify-content: space-between;
}

/* 美化步驟區塊 */
.wizard > .steps > ul > li {
    width: 33%;
    text-align: center;
    position: relative;
    font-size: 16px;
    font-weight: bold;
    color: #999;
    cursor: default !important;
}

/* 美化步驟圓圈 */
.wizard > .steps > ul > li a {
    display: inline-block;
    width: 35px;
    height: 35px;
    line-height: 35px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #555;
    text-decoration: none;
    margin-bottom: 5px;
    pointer-events: none !important; /* 禁止滑鼠點擊步驟 */
}

/* 當前步驟樣式 */
.wizard > .steps > ul > li.current a {
    background: #4caf50;
    color: #fff;
}

/* 已完成步驟樣式 */
.wizard > .steps > ul > li.done a {
    background: #2196f3;
    color: #fff;
}

/* 下一步 / 上一步按鈕美化 */
.wizard > .actions a {
    background: #4caf50;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    margin: 5px;
    display: inline-block;
}

.wizard > .actions a:hover {
    background: #45a049;
}
#example-form .content > h3 {
    display: none;
}



/* bs-stepper*/

/* Custom RWD Styles */
.bs-stepper-header {
    padding: 0.5rem 0;
}
.bs-stepper-circle {
    padding: 0;
}


/* Desktop: Adjust circle and label size */
@media (min-width: 768px) {
    .bs-stepper-circle {
        width: 2rem;
        height: 2rem;
        line-height: 2rem;
        font-size: 1rem;
    }
    .bs-stepper-label {
        font-size: 1rem;
    }
    .line {
        margin: 0 0.5rem;
    }
}

/* Tablet: Slightly smaller elements */
@media (max-width: 767.98px) {
    .bs-stepper-circle {
        width: 1.75rem;
        height: 1.75rem;
        line-height: 1.75rem;
        font-size: 0.9rem;
    }
    .bs-stepper-label {
        font-size: 0.9rem;
    }
}

/* Mobile: Vertical layout handled by bs-stepper, adjust content and buttons */
@media (max-width: 575.98px) {
    .bs-stepper-content {
        padding: 1rem;
    }
    .bs-stepper-label {
        font-size: 0.85rem;
    }
    .bs-stepper-circle {
        width: 1.5rem;
        height: 1.5rem;
        line-height: 1.5rem;
        font-size: 0.8rem;
    }
    /* Stack buttons vertically */
    .button-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    .button-group .btn {
        width: 100%;
    }
}

/* Ensure content area is responsive */
.bs-stepper-content .content {
    min-height: 150px; /* Prevent content collapse */
    padding: 1rem;
}

/* 比賽辦法 */
.guideline-container h3,.guideline-container h4{
    font-weight: bold;
    margin-bottom: 1.5rem;
}
.guideline-container h5{
    font-weight: bold;
    margin-bottom: 1.2rem;
}
.guideline-container div {
    margin-bottom: 2rem;
}
.guideline-container p {
    margin-bottom: 0.7rem;
}
.guideline-container ul,
.guideline-container li {
    list-style: inherit;
    list-style-position: inside;
    margin-bottom: 0.5rem;
}
.guideline-container ol li span {
    display: inline-block;
    margin-bottom: 0.5rem;
}

/* table */
table {
    border-collapse: collapse; /* 表格邊框合併 */
    width: 100%;
}
th, td {
    border: 1px solid #000; /* 顯示黑色邊框 */
    padding: 8px;
    text-align: left;
}

/* sponsor-block */
.sponsor-block{
    position: relative;
}

.sponsor-block .inner-box{
    position: relative;
}

.sponsor-block .image-box{
    position: relative;
    overflow:hidden;
    aspect-ratio: 1;
}

.sponsor-block .image-box img{
    display: block;
    width: 100%;
    -webkit-transition: all 300ms ease;
    -moz-transition: all 300ms ease;
    -ms-transition: all 300ms ease;
    -o-transition: all 300ms ease;
    transition: all 300ms ease;
    /*height: auto;*/
    height: 100%;
    object-fit:contain;
}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--pc-primary-color);
    --bs-btn-border-color: var(--pc-primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--pc-dark-primary-color);
    --bs-btn-hover-border-color: var(--pc-darker-primary-color);
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--pc-darker-primary-color);
    --bs-btn-active-border-color: #0a53be;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--pc-primary-color);
    --bs-btn-disabled-border-color: var(--pc-primary-color);
}

.form-check-input:checked {
    background-color: var(--pc-primary-color);
    border-color: var(--pc-primary-color);
}

.form-check-input:focus {
    border-color: #86b7fe;
    outline: 0;
    box-shadow:initial !important;
}

input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus {
    outline:initial !important;
}

.form-control, .form-select {
    height: var(--bs-form-height); /* 或其他一致高度 */
    min-height: var(--bs-form-height); /* 確保最小高度一致 */
    padding: 0.375rem 0.75rem; /* 匹配 Bootstrap 預設 padding */
}

.add-btn {
    height: var(--bs-form-height); /* 或其他一致高度 */
    min-height: var(--bs-form-height); /* 確保最小高度一致 */
}

.hover-primary:hover {
    color: var(--pc-primary-color);
    cursor: pointer;
}

.character-img {
    object-fit: cover
}

.character-img-container{
    width: 30%;
    flex-shrink: 0;
    aspect-ratio: 1;
}

.sticky-header img{
    width:150px;
}

@media (max-width: 992px) {
    .bs-stepper-header {
        flex-direction: column;
        justify-content: flex-start;
    }
}

.step-trigger:disabled .bs-stepper-circle {
    background-color: black !important;
}

.bs-stepper-circle {
    background-color: var(--pc-secondary-color) !important;
}

.bs-stepper .step-trigger:not(:disabled):not(.disabled) {
    pointer-events: none;
}

#pagination a.disabled {
    color:var(--light-gray);
    border: 1px solid var(--light-gray);
    pointer-events: none;
}