body {
    font-family: Noto Sans TC;
}

img{
    background-color: #f0f0f0;
}

.main-menu-position img.top-logo,
.supporter-card-icon img,
.c-icon-stack img,
.pd-icon-container img,
.social-media img,
.fundraising-card-donation-icon {
    background-color: transparent !important;
}

.CM_banner .container {
    padding: 0;
}

.CM_banner_img {
    display: flex;
    justify-content: center;
}

.CM_banner_img img {
    max-width: 669px;
    width: 100%;
}
.mb-4 {
    margin-bottom: 15px !important;
}
/*=============================================================================================*/
.c-stat-card {
    border-radius: 15px;
    padding: 25px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.c-stat-card-green {
    background-color: #449342;
    color: #FFFFFF;
    max-width: 400px;
    width: 100%;
}
.c-stat-card-grey {
    background-color: #EFEFEF;
    color: #333333;
    max-width: 170px;
    width: 100%;
}
.c-icon-stack {
    margin-right: 20px;
    max-width: 66px;
}
.c-icon-stack svg {
    width: 100%;
    display: block;
}
.c-amount {
    font-weight: 900;
    font-size: 25px;
    line-height: 1;
    margin-bottom: 10px;
}
.c-amount .unit{
    font-size: 18px;
}
.c-label {
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}
.c-stat-value {
    font-weight: 700;
    font-size: 30px;
    line-height: 1;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .c-stat-card-green {
        max-width: unset;
    }
    .c-stat-card-grey {
        max-width: unset;
    }
}
/*=============================================================================================*/
.pd-btn-rose {
    color: #333333 !important;
    background-color: #D7EBD7  !important;
    border-color: #398038  !important;
    transition: all 0.3s ease-in-out;
    font-weight: 700;
    font-size: 24px;
    line-height: 120%;
    padding-left: 50px;
    padding-right: 50px;
}
.pd-btn-rose:hover {
    color: #fff;
    background-color: #d63a6a;
    border-color: #d63a6a;
}
/* 光暈效果 */
.pd-btn-rose:focus, .pd-btn-rose.focus {
    color: #fff;
    background-color: #d63a6a;
    border-color: #d63a6a;
    box-shadow: 0 0 0 0.25rem rgba(225, 76, 119, 0.5);
}
/* 圖標容器 */
.pd-icon-container {
    width: 27px;
    height: 27px;
    flex-shrink: 0;
}
/* SVG 圖標顏色 */
.pd-icon-plus {
    width: 18px;
    height: 18px;
    /*color: #E24A70;*/
    color:#449342;
}

/* Responsive styles for pd-btn-rose */
@media (max-width: 1199px){
    .pd-btn-rose {
        padding-left: 15px;
        padding-right: 15px;
    }
}
@media (max-width: 768px) {
    .pd-btn-rose {
        font-size: 20px;
        padding-left: 35px;
        padding-right: 35px;
    }
}

@media (max-width: 576px) {
    .pd-btn-rose {
        font-size: 18px;
        padding-left: 25px;
        padding-right: 25px;
        width: 100%;
        max-width: 100%;
    }
    
    .pd-btn-rose span {
        font-size: 16px;
    }
    
    .pd-icon-container {
        width: 24px;
        height: 24px;
        margin-right: 0.5rem !important;
    }
    
    .pd-icon-plus {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 400px) {
    .pd-btn-rose {
        font-size: 16px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .pd-btn-rose span {
        font-size: 14px;
    }
    
    .pd-btn-rose br {
        display: inline; 
    }
    
    .pd-icon-container {
        width: 22px;
        height: 22px;
    }
    
    .pd-icon-plus {
        width: 14px;
        height: 14px;
    }
}
/*=============================================================================================*/
.frc-card {
    border: none;
    border-radius: 0.75rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: #fff;
   /* cursor: pointer; */
}
.card-body {
    gap: 10px;
    min-height: 251px;
}
.frc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,0.1) !important;
}
.card-img-top {
    /*
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    object-position: 0 25%;
    */
}
.progress {
    height: 11px;
    border-radius: 30px;
    background-color: #D9D9D9;
}
.progress-bar {
    border-radius: 30px;
}
.frc-card-title {
    color: #449342;
    font-weight: 900;
    font-size: 20px;
    line-height: 120%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    padding: 5px 0;
    height: 55px;
}
.frc-card-text {
    color: #888888;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    height:70px;
}
.frc-card-label {
    color: #555555;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
}
.frc-amount-raised {
    color: #3F873F;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}
.frc-amount-raised .unit {
    font-size: 14px;
}
.frc-percentage {
    color: #3F873F;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
}
.frc-page-title {
    font-weight: 700;
    font-size: 32px;
    color: #3F873F;
    text-align: center;
    margin-bottom: 2rem;
}
.frc-load-more-btn {
    display: block;
    width: 200px;
    margin: 2rem auto 0;
    padding: 21px 49px;
    border: 2px solid #449342;
    color: #449342;
    background-color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.frc-load-more-btn:hover {
    background-color: #449342;
    color: #fff;
}
@media (min-width: 1200px) {
    /* .frc-grid { */
        /* max-width: 960px; */
    /* } */
}
/*=============================================================================================*/
.fundraising-card-wrapper {
    max-width: 1024px;
    margin: 0 auto;
    /*padding: 1rem;*/
}

/* 響應式佈局 */
.fundraising-content-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* 手機版順序 */
.fundraising-grid-area-image { order: 1; }
.fundraising-grid-area-title { order: 2; }
.fundraising-grid-area-sidebar { order: 3; }
.fundraising-grid-area-description { order: 4; }


/* 桌面版佈局 (min-width: 992px) */
@media (min-width: 992px) {
    .fundraising-card-wrapper {
        margin: 2rem auto;
        padding: 20px;
    }

    .fundraising-content-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
        grid-template-areas:
            "title   title"
            "image   sidebar"
            "desc    sidebar";
        gap: 20px;
    }
    /* 桌面版順序 */
    .fundraising-grid-area-title { grid-area: title; }
    .fundraising-grid-area-image { grid-area: image;max-height: 386px; }
    .fundraising-grid-area-sidebar { grid-area: sidebar; }
    .fundraising-grid-area-description { grid-area: desc;margin-top: -20px; }
}

.fundraising-card-title {
    font-size: 32px;
    font-weight: 800;
    color: #3F873F;
}

.fundraising-card-image {
    width: 100%;
    max-height: 386px;
    object-fit: cover;
}

.fundraising-card-description {
    color: #333333;
    font-weight: 400;
    font-size: 18px;
    line-height: 180%;
}

/* 右側資訊卡 */
.fundraising-card-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fundraising-card-progress-box {
    border: 3px solid #449342;
    padding: 20px;
    border-radius: 15px;
}

.fundraising-card-progress-label {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 0.5rem;
}

.fundraising-card-raised-amount {
    font-size: 30px;
    font-weight: 700;
    color: #3F873F;
    line-height: 1;
}

.fundraising-card-raised-amount .unit {
    font-size: 18px;
}

.fundraising-card-raised-text {
    font-size: 16px;
    font-weight: 500;
    color: #333333;
}

.fundraising-card-goal-amount {
    color: #333333;
    text-align: right;
}
.fundraising-card-goal-amount-num {
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
}
.fundraising-card-goal-amount-num .unit {
    font-size: 16px;
}
.fundraising-card-goal-amount-desc {
    font-weight: 500;
    font-size: 16px;
}
.fundraising-card-progress {
    height: 11px;
    border-radius: 30px;
    background-color: #D9D9D9;
    margin-top: 14px;
    margin-bottom: 14px;
}

.fundraising-card-progress-bar {
    background-color: #449342;
    border-radius: 30px;
}

.fundraising-card-percentage {
    font-size: 44px;
    line-height: 38px;
    font-weight: 700;
    color: #3F873F;
    font-family: Noto Sans;
}

.fundraising-card-info-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.fundraising-card-info-box {
    max-width: 177px;
    box-shadow: none;
}

.fundraising-card-info-box-value {
    font-size: 1.75rem;
    font-weight: 700;
}

.fundraising-card-info-box-label {
    font-size: 0.85rem;
    color: #6c757d;
}

.fundraising-card-end-date {
    font-family: Noto Sans TC;
    color: #666666;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    text-align: center;
    border-bottom: 1px solid #EFEFEF;
    padding-bottom: 20px;
    margin-bottom: 0;
}

.fundraising-card-donation-section {
    display: flex;
    flex-direction: column;
}

.fundraising-card-donation-title-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.fundraising-card-donation-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #333333;
}

.fundraising-card-donation-icon {
    color: #449342;
    width: 24px;
    height: 24px;
}

.fundraising-card-amount-options {
    /*display: grid;*/
    /*grid-template-columns: 1fr 1fr;*/
    gap: 10px;
    display: flex;
    margin-bottom: 20px;
}

.fundraising-card-amount-btn {
    border: 3px solid #449342;
    background-color: #fff;
    color: #449342;
    padding: 16px 21px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
    font-family: Noto Sans TC;
    font-weight: 900;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    letter-spacing: 0;
    width: 25%;
}

.fundraising-card-amount-btn .unit {
    font-weight: 400;
    font-size: 13px;
}

.fundraising-card-amount-btn:hover {
    border-color: #449342;
    color: #449342;
}

.fundraising-card-amount-btn.active {
    background-color: #449342;
    border-color: #449342;
    color: #fff;
}

.fundraising-card-submit-btn {
    background-color: #449342;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    padding: 0.85rem;
    border-radius: 100px;
    border: none;
    transition: background-color 0.2s;
}
.fundraising-card-submit-btn.active,
.fundraising-card-submit-btn:hover {
    background-color: #449342 !important;
    color: #fff !important;
}

@media (max-width: 992px) {

    .fundraising-card-description,
    .fundraising-card-sidebar,
    .fundraising-card-title {
        padding: 0 20px;
    }
    .fundraising-card-info-box {
        max-width: unset;
    }
}

@media (max-width: 450px) {

    .fundraising-card-amount-btn {
        padding: 16px 0;
        margin: 0 auto;
        font-size: 18px;
    }
}

/*=============================================================================================*/

/* Supporters Section */
.supporters-section-wrapper {
    max-width: 1024px;
    margin: 2rem auto;
    padding: 1rem;
}

@media (min-width: 992px) {
    .supporters-section-wrapper {
         padding: 0 1rem;
    }
}

.supporters-section-header {
    padding: 0.5rem;
}

.supporters-section-breadcrumb {
    font-family: Noto Sans TC;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0;
    color: #333333;
    margin-bottom: 10px;
}

.supporters-section-main-event-title {
    font-family: Noto Sans TC;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0;
    color: #3F873F;
    margin-bottom: 1rem;
    text-decoration: none;
}

.supporters-section-divider {
    border-top: 1px solid #EFEFEF;
    margin: 20px 0;
    opacity: 1;
}

.supporters-section-title {
    font-weight: 700;
    font-size: 24px;
   /* color: #E24A70; */
    color:#6c757d;
    margin-bottom: 30px;
    padding: 0 0.5rem;
}

.supporters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    .supporters-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.supporter-card {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid #EBEBEB;
    display: flex;
    gap: 10px;
    min-width: 0;
}

.supporter-card-right {
    width: 100%;
    min-width: 0;
}

.supporter-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
    min-width: 0;
}

.supporter-card-icon {
    background-color: #fff;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0px 2px 10px 0px #0000001F;
}

.supporter-card-icon img {
    width: 24px;
    height: 22px;
}

.supporter-card-name {
    font-family: Noto Sans;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
    color: #666666;
    word-break: break-word;
    overflow-wrap: break-word;
    flex: 1;
    min-width: 0;
}

.supporter-card-amount {
    font-family: Noto Sans;
    font-weight: 400;
    font-size: 10px;
    line-height: 20px;
    letter-spacing: 0;
    text-align: right;
    color: #AEAEAE;
    margin-left: auto;
    /* white-space: nowrap; */
}

.supporter-card-amount strong {
    color: #000000;
    font-weight: 700;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0;
}

.supporter-card-message {
    background-color: #F8FFF8;
    border: 1px solid #B7D7B6;
    padding: 6px 10px;
    border-radius: 5px;
    color: #333333;
    font-family: Noto Sans;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0;
    /* white-space: nowrap; */
    width: 100%;
    box-sizing: border-box;
}

.supporter-card-more-btn {
    display: block;
    width: 200px;
    margin: 2rem auto 0;
    padding: 21px 49px;
    border: 2px solid #E24A70;
    color: #E24A70;
    background-color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}
.supporter-card-more-btn:hover {
    background-color: #E24A70;
    color: #fff;
}

/*=============================================================================================*/

.df-container {
    max-width: 1024px;
}

@media (min-width: 992px) {
    .df-container-left {
        width: 46%;
    }
    
    .df-container-right {
        width: 53%;
    }
}

.needs-validation {
    margin: 0;
}

/* 左側固定欄位的樣式 (僅桌面版) */
.fundraising-portal__sidebar-wrapper {
    position: sticky;
    top: 2rem;
    /*height: calc(100vh - 4rem);*/
    overflow-y: auto;
}

/* 右側表單區塊的樣式 */
.fundraising-portal__form-container {
    background-color: #FFFFFF;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 15px 0px #00000033;
    margin-bottom: 2rem;
}

@media (max-width: 991.98px) {
    .fundraising-portal__form-container {
        padding: 20px 30px;
    }
    .fundraising-portal__mobile-header-wrapper {
        margin-right: calc(var(--bs-gutter-x) * -.5);
        margin-left: calc(var(--bs-gutter-x) * -.5);
    }
    .fundraising-portal__mobile-header-wrapper .fundraising-portal__shared-header-content {
        border-radius: 0;
    }
}

.necessary-star {
    color: #FF0040 !important;
}

.fundraising-portal__main-title {
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
    letter-spacing: 0;
    vertical-align: middle;
    color: #333333;
    margin-bottom: 20px;
}

.fundraising-portal__main-tip {
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0;
    vertical-align: middle;
    color: #333333;
    margin-bottom: 25px;
}

.fundraising-portal__section-title {
    font-weight: 700;
    font-style: Bold;
    font-size: 24px;
    line-height: 140%;
    letter-spacing: 0;
    vertical-align: middle;
    color: #449342;
    display: inline-block;
    margin-bottom: 15px;
}

.fundraising-portal__form-group {
    margin-bottom: 30px;
}

.fundraising-portal__form-container .fundraising-portal__form-group:last-child {
    margin-bottom: 0;
}

.fundraising-portal__form-label {
    margin-bottom: 10px;
    display: block;
    font-weight: 400;
    font-size: 16px;
    line-height: 18px;
    letter-spacing: 0;
}

.fundraising-portal__form-label.mandatory{
    color: #FF0040 !important;
}

.fundraising-portal__form-label.optional{
    color: #0000FF !important;
}

.fundraising-portal__form-control {
    border-radius: 5px;
    border: 1px solid #E6E6E6;
    background-color: #F8F8F8;

    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    letter-spacing: 0;
    color: #333333;
    padding: 14px 12px;
}

.fundraising-portal__form-control::placeholder {
    color: hsla(0, 0%, 20%, 0.5);
}

.fundraising-portal__form-control:focus {
    border-color: var(--portal-primary-green);
    box-shadow: 0 0 0 0.25rem rgba(134, 196, 64, 0.25);
}

.fundraising-portal__form-text {
    font-weight: 400;
    font-size: 15px;
    line-height: 150%;
    letter-spacing: 0;
    vertical-align: middle;
    color: #555555;
}

.fundraising-portal__privacy-text {
    font-weight: 400;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0;
    color: #333333;    
    margin-bottom: 20px;
}

.fundraising-portal__submit-btn {
    background-color: #449342;
    border-color: #449342;
    padding: 20px;
    font-size: 20px;
    font-weight: 700;
    border-radius: 100px;
}
.fundraising-portal__submit-btn:hover {
    background-color: #449342;
    border-color: #449342;
}

.upload-img-desc {
    font-weight: 400;
    font-size: 15px;
    line-height: 150%;
    letter-spacing: 0;
    vertical-align: middle;
    color: #555555;
}

.fundraising-portal__privacy-text-mato {
    text-decoration: underline;
}

.form-check-label {
    cursor: pointer;
    width: 100%;
    margin-left: 10px;
    font-size: 16px;
    font-weight: 400;
}
.form-check-input {
    cursor: pointer;
    width: 20px;
    height: 20px;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

.invalid-feedback {
    font-size: 16px;
}

.form-check-input.is-invalid, .was-validated .form-check-input:invalid {
    border-color: #555555;
}

.form-check-input.is-invalid~.form-check-label, .was-validated .form-check-input:invalid~.form-check-label {
    color: #555555;
}

/*=============================================================================================*/
/*=============================================================================================*/

/* --- Contact Form 7 Bootstrap Checkbox 修正 (v2 - Position 方案) --- */

.cf7-bootstrap-fix {
    margin-bottom: 50px !important;
}

/* 1. 為 checkbox 的外層容器設定相對定位，作為錯誤訊息的定位基準 */
.cf7-bootstrap-fix .wpcf7-form-control-wrap {
    position: relative;
    padding-bottom: 1.7em; 
}

/* 2. 將錯誤訊息絕對定位到容器的左下方 */
.cf7-bootstrap-fix .wpcf7-not-valid-tip {
    position: absolute;
    bottom: 0;
    left: 0;
    display: block;
    width: max-content;
    text-align: left;
}

.cf7-bootstrap-fix input[type="checkbox"] {
    position: relative;
    z-index: 2;
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.cf7-bootstrap-fix input[type="checkbox"] + .wpcf7-list-item-label {
    display: none;
}

.cf7-bootstrap-fix .wpcf7-list-item {
    margin: -2px;
}

.cf7-bootstrap-fix .form-check-input {
    border: 0;
}

.wpcf7-not-valid-tip {
    font-size: 16px;
}
.home-row .c-label,
.home-row .c-amount .unit,
.home-row .c-stat-value,
.home-row .pd-btn-rose,
.home-row .c-amount{font-size: 16px;}
.home-row .c-icon-stack img{width: 70%;}
.home-row .c-stat-card {
    height: auto;
}
.home-row .c-stat-card-grey{max-width: 100%;}
.home-row .c-stat-card{padding: 10px 20px;}
.sup-row{margin-top: 10px;}
.btn-bb{width:100%; cursor: auto !important;}
.fundraising-grid-area-image{
    display: block;
    /* height: 500px; */
    height: auto;
    text-align: center;
}
.frc-card-b,
.card.frc-card > a{
    display: block;
    height: 300px !important;
    text-align: center;
    background-color: #F9F9F9;
}
.frc-card img,
.fundraising-grid-area-image img,
.card-img-top{
    width: unset;
    max-height: 100%;
    max-width: 100%;
    text-align: center;
}
.main-item-section{padding: 80px 20px;}
@media (max-width: 991px) {
    .fundraising-card-image{
        max-height:100%;
    }
}






























