/*-- 統一色系，若需要直接修改 --*/
@import url('./variables.css');
@import url("https://fonts.googleapis.com/css?family=Poppins:100,200,300,400,500,600,700,800,900");
/* 

/* ESG 2025 Bold CSS */
/* Global Styles */
:root {
  --base-font-size: 1.2vw;
}
body {
  font-size: var(--base-font-size);
}
.esg-events {
    background-image: url(../images/esg-events-bg.jpg);
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 140px 0;
    position: relative;
}

.esg-events .section-heading p {
    color: #fff;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 40px;
}

.section-heading h2 {
  font-size: 2.5rem;
}

.timeline-wrapper {
    position: relative;
    padding: 40px 0;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 10%;
    left: 50%;
    width: 4px;
    background-color: var(--secondary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-item.left {
    padding-right: 60px;
}

.timeline-item.right {
    padding-left: 60px;
    margin-left: auto;
}

.timeline-content {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.timeline-item.left .timeline-content::after {
    content: '';
    position: absolute;
    right: -14px;
    top: 50%;
    width: 24px;
    height: 24px;
    background-color: var(--orangeRed);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item.right .timeline-content::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    width: 24px;
    height: 24px;
    background-color: var(--orangeRed);
    border-radius: 50%;
    transform: translateY(-50%);
}

.event-date {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--light);
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    width: 80px;
}


.timeline-item.left .event-date {
    right: -100px;
}

.timeline-item.right .event-date {
    left: -100px;
}



.event-date h6 {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--secondary);
}

.event-date span {
    display: block;
    color: #1f272b;
    font-size: 22px;
    margin-top: 7px;
}

.event-date h6 {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--secondary);
}



.event-image02 {
    flex: 0 0 40%;
    margin-right: 20px;
}

.event-image img {
    border-radius: 10px;
    object-fit: cover;
    height: 120px;
}

.event-details {
    flex: 1;
    padding: 0 10px;
}

.event-details h4 a {
    font-size: 18px;
    font-weight: 600;
    color: var(--darkGray);
    margin-bottom: 10px;
}

.event-details p {
    font-size: 14px;
    color: #2a2a2a;
    margin-bottom: 15px;
}

.explore-more a {
    padding: 12px 60px;
    margin-top: 40px;
}

/***九個數字區塊 **/
.esg-achievements {
    background-image: url(../images/facts-bg.jpg);
    background-position: center center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.esg-achievements .section-heading p {
    color: #fff;
    font-size: 16px;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 28px;
}

.data-wheel {
    position: relative;
    width: 100%;
    height: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel-center {
    position: absolute;
    text-align: center;
    background-color: rgba(31, 39, 43, 0.85);
    border-radius: 20px;
    padding: 30px;
    width: 300px;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 1;
}

.wheel-center h3 {
    color: #f5a425;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
}

.wheel-center p {
    color: #fff;
    font-size: 14px;
    line-height: 24px;
}

.data-point {
    position: absolute;
    width: 150px;
    height: 150px;
    transform-origin: center;
    transform: rotate(calc(40deg * var(--index))) translate(300px) rotate(calc(-40deg * var(--index)));
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    animation: fadeInPoint 0.5s ease forwards;
    animation-delay: calc(0.2s * var(--index));
}

@keyframes fadeInPoint {
    from { opacity: 0; transform: rotate(calc(40deg * var(--index))) translate(300px) rotate(calc(-40deg * var(--index))) scale(0.8); }
    to { opacity: 1; transform: rotate(calc(40deg * var(--index))) translate(300px) rotate(calc(-40deg * var(--index))) scale(1); }
}

.data-point:hover {
    transform: rotate(calc(40deg * var(--index))) translate(300px) rotate(calc(-40deg * var(--index))) scale(1.1);
    z-index: 2;
}

.point-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.data-point:hover .point-inner {
    transform: rotateY(180deg);
}

.point-front, .point-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 0; /* 由圓形改為方形 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.point-front {
    padding: 15px;
}

.point-front i {
    font-size: 1.5rem;
    color: var(--grassGreen);
    margin-bottom: 10px;
}

.point-front .count-digit {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 5px;
    width:50%;
}

.count-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.point-front .count-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1f272b;
}

.point-back {
    transform: rotateY(180deg);
    padding: 15px;
    display: flex;
    align-items: center;
}

.point-back p {
    font-size: 13px;
    color: #2a2a2a;
    line-height: 20px;
}

.data-grid-3rows {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 32px 0;
    margin: 40px 0 0 0;
    width: 100%;
}

.data-row,
.data-grid-3rows .middle-row {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    width: 100%;
}

.data-grid-3rows .data-point {
    flex: 1 1 0;
    max-width: 100%;
    min-width: 0;
    margin: 0 8px;
    width: auto;
    height: 150px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: box-shadow 0.2s;
    perspective: 600px;
    position: relative;
}

.data-grid-3rows .data-point:hover {
    z-index: 2;
}

.data-grid-3rows .middle-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    width: 100%;
    gap: 0;
    align-items: stretch;
    justify-items: stretch;
}

.data-grid-3rows .middle-row .data-point:first-child {
    grid-column: 1 / 2;
}
.data-grid-3rows .middle-row .wheel-center {
    grid-column: 2 / 3;
}
.data-grid-3rows .middle-row .data-point:last-child {
    grid-column: 3 / 4;
}

.data-grid-3rows .middle-row .data-point {
    height: 150px;
    margin: 0 8px;
    /* 4/1 權重 */
}
.data-grid-3rows .middle-row .wheel-center {
    height: 150px;
    margin: 0 8px;
    /* 4/2 權重 */
}

@media (max-width: 1200px) {
    :root { --base-font-size: 1.5vw; }
    .section-heading h2 { font-size: 2rem; }
    .point-front .count-digit { font-size: 2rem; }
    .data-row,
    .data-grid-3rows .middle-row {
        gap: 0;
    }
    .data-grid-3rows .middle-row {
        grid-template-columns: 1fr 2fr 1fr;
    }
    .data-grid-3rows .middle-row .wheel-center {
        min-width: 120px;
        max-width: 220px;
        padding: 16px;
        height: 120px;
    }
    .data-grid-3rows .middle-row .data-point {
        height: 120px;
    }
}

@media (max-width: 992px) {
    :root { --base-font-size: 2vw; }
    .section-heading h2 { font-size: 1.5rem; }
    .point-front .count-digit { font-size: 1.5rem; }
    .timeline-wrapper::before {
        display: none;
    }
    .timeline-wrapper::before {
        left: 30px;
    }
    .timeline-item.left,
    .timeline-item.right {
        padding-left: 60px;
        padding-right: 20px;
        margin-left: 0;
    }
    .timeline-item.left .event-date,
    .timeline-item.right .event-date {
        left: -30px;
        right: auto;
    }
    .timeline-item.left .timeline-content::after,
    .timeline-item.right .timeline-content::before {
        display: none;
    }
    .data-wheel {
        height: 800px;
        flex-direction: column;
    }
    .data-point {
        position: static;
        transform: none;
        margin: 15px 0;
        opacity: 1;
        animation: none;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 130px !important;
        margin: 0 !important;
    }
    .point-inner {
        height: 115px;
        background-color: #0000ff;
    }
    .wheel-center {
        position: static;
        margin-bottom: 30px;
        width: 100%;
        height: auto;
    }
    .data-point.text-center.white {
        display: none !important;
    }
    .data-row,
    .data-grid-3rows .middle-row {
        flex-direction: column !important;
        display: flex !important;
        gap: 10px 0 !important;
        align-items: stretch;
    }
    .interval {
        margin: -10px 0;
    }
   
}

@media (max-width: 900px) {
    .data-row,
    .data-grid-3rows .middle-row {
        flex-wrap: wrap;
        gap: 0;
    }
    .data-grid-3rows .middle-row {
        grid-template-columns: 1fr 2fr 1fr;
    }
    .data-grid-3rows .middle-row .data-point {
        height: 100px;
        margin: 0 4px;
    }
    .data-grid-3rows .middle-row .wheel-center {
        min-width: 80px;
        max-width: 140px;
        padding: 10px;
        height: 100px;
    }
}

@media (max-width: 767px) {
    .timeline-content {
        flex-direction: column;
        align-items: flex-start;
    }
    .event-image {
        flex: 0 0 100%;
        margin-right: 0;
        margin-bottom: 15px;
    }
    .event-image img {
        height: auto;
        max-height: 200px;
    }
    .data-point {
        width: 120px;
        height: 120px;
    }
    .point-front i {
        font-size: 20px;
    }
    .point-front .count-digit {
        font-size: 20px;
    }
    .point-front .count-title {
        font-size: 12px;
    }
    .point-back p {
        font-size: 12px;
    }
}

@media (max-width: 600px) {
    :root { --base-font-size: 3vw; }
    .section-heading h2 { font-size: 1.2rem; }
    .point-front .count-digit { font-size: 1.2rem; }
    .data-grid-3rows {
        gap: 10px 0;
    }
    .data-row,
    .data-grid-3rows .middle-row {
        flex-direction: column;
        gap: 20px 0 !important;
        align-items: stretch;
        display: flex;
    }
    .data-grid-3rows .middle-row {
        display: flex;
        flex-direction: column;
        gap: 20px 0 !important;
    }
    .data-grid-3rows .data-point,
    .data-grid-3rows .middle-row .wheel-center {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0;
        height: 130px !important;
        min-height: 80px;
        max-height: 220px;
    }
    .data-grid-3rows .middle-row .wheel-center {
        height: auto;
        min-height: 80px;
        max-height: 220px;
        padding: 10px;
    }
    .data-grid-3rows .middle-row {
        display: flex;
    }
    .data-point {
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }
    .data-row > .data-point:first-child,
    .data-grid-3rows .middle-row > .data-point:first-child {
        margin-top: 0 !important;
    }
    .data-row > .data-point:last-child,
    .data-grid-3rows .middle-row > .data-point:last-child {
        margin-bottom: 0 !important;
    }

    .interval {
        margin: 30px 0;
    }
}

/*---- 共用 ----*/
.white {
    color: var(--white);
}

.regForm {
  word-wrap: break-word;
  word-break: break-word;
  white-space: normal;
}

.res_en {
  word-break: break-word;
  word-wrap: break-word;
  white-space: normal;
  overflow-wrap: break-word;
  display: inline;
}
@media (max-width: 799px) {
  .res_en {
    display: block;
    width: 100%;
  }
}