body {
    background-color: #faf8f5;
    overflow-x: hidden;
}

a {
    border: none;
    text-decoration: none;
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 1px;
    color: var(--black);
}

#loading-center-absolute {
    position: initial;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    margin: 0;
    width: 100%;
    height: 100%;
    gap: 30px;
}

.object {
    margin: 0;
}

.title h2 {
    font-weight: 500;
    font-size: 2.75rem;
}

.title span {
    color: var(--black);
}

.slider-area {
    aspect-ratio: 2560 / 1440;
}

.slider-bg-color {
    background: transparent;
}

.slider-height {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 100%;
    min-height: auto;
    position: relative;
}

.banner {
    width: 100%;
    height: auto;
    display: block;
}

.person {
    position: absolute;
    top: 29%;
    left: 48%;
    width: clamp(60px, 19vw, 800px);
    height: auto;
}

.spot {
    position: absolute;
    bottom: 23%;
    left: 18.5%;
    width: clamp(30px, 27vw, 690px);
}

.banner-logo {
    position: absolute;
    top: 11%;
    left: 11.5%;
    width: clamp(120px, 18.5vw, 820px);
}

.banner-text {
    position: absolute;
    top: 25%;
    left: 31%;
    width: clamp(80px, 16.5vw, 500px);
}

.banner-green {
    position: absolute;
    top: 31%;
    right: 16%;
    width: clamp(100px, 18vw, 1200px);
}

.animate__delay-350ms {
    animation-delay: 3.5s;
}

.rotate-3d-y {
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.rotate-3d-y.rotate-3d-y-animate {
    animation: rotateYOnce 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1;
}

@keyframes rotateYOnce {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.person,
.spot,
.banner-logo,
.banner-text,
.banner-green {
    opacity: 0;
    pointer-events: none;
}

.spot {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.spot-link:hover .spot {
    transform: scale(1.04) !important;
}

.about-img-over::before,
.about-img-over::after {
    content: none;
}

.about-shape1,
.about-shape2 {
    background: none;
    width: auto;
    height: auto;
    border: none;
}

.about-shape2 {
    top: 37%;
    left: 0px;
}

.section-bg {
    background: #f5f5f0;
}

.banana {
    position: absolute;
    left: 10%;
    top: 9%;
    width: 300px;
}

.intro-feature-text h4 {
    font-weight: 500;
    font-size: 1.75rem;
    margin-bottom: 4px;
}

.intro-feature-text h5 {
    font-size: 1rem;
    margin: 0;
}

.ticket-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    width: 100%;
    min-height: 88px;
    padding: 24px 18px 32px;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #2c2c2c;
    overflow: visible;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    margin-bottom: 48px;
    border: 1px solid rgba(26, 26, 26, 0.06);
}

.ticket-card .ribbon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 14px;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
}

.city-chiayi .ribbon {
    background: #d6d38f;
}

.city-chiayi-county .ribbon {
    background: #8bbdc1;
}

.city-tainan .ribbon {
    background: #7a8c6a;
}

.city-kaohsiung .ribbon {
    background: #d38f95;
}

.city-pingtung .ribbon {
    background: #cbb188;
}

.city-taitung .ribbon {
    background: #a991b5;
}

.city-penghu .ribbon {
    background: #a1abcd;
}

.ticket-card::before,
.ticket-card::after {
    content: "";
    position: absolute;
    bottom: 40%;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f1ede7;
    transition: all 0.2s ease-in-out;
}

.ticket-card::before {
    left: -9px;
}

.ticket-card::after {
    right: -9px;
}

.ticket-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.14);
}

.ticket-card:hover::before,
.ticket-card:hover::after {
    background: #eae7de;
}

.ticket-card img {
    width: 36px;
}

.desc {
    letter-spacing: 1px;
}

.intro-feature-area {
    border-radius: 0 170px 0 170px;
}

.intro-feature-area .title h2,
.intro-feature-area .title span {
    margin-bottom: 6px;
}

.intro-feature-area .title p {
    margin-bottom: 0;
}

.flag img {
    width: 42px;
}

.flag {
    position: absolute;
    top: -3px;
    left: 13%;
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    transform-origin: bottom center;
}

.ticket-card:hover .flag {
    transform: translateX(-50%) translateY(-95%);
    opacity: 1;
}

@keyframes flagInsert {
    0% {
        transform: translateX(-50%) translateY(-120%) rotate(-10deg) scale(0.8);
        opacity: 0;
    }
    50% {
        transform: translateX(-50%) translateY(-90%) rotate(5deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-50%) translateY(-95%) rotate(0deg) scale(1);
        opacity: 1;
    }
}

.ticket-card:hover .flag {
    animation: flagInsert 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.intro-feature-area .container {
    position: relative;
}

.train-scene {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100px;
    height: 120px;
    overflow: hidden;
}

.train {
    position: absolute;
    bottom: 0;
    right: 15px;
    width: 50px;
    z-index: 2;
}

.smoke-container {
    position: absolute;
    bottom: 55px;
    right: 40px;
}

.smoke {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgb(194, 194, 194);
    border-radius: 50%;
    filter: blur(2px);
    animation: smokeUp 4s ease-out infinite;
}

.smoke:nth-child(1) {
    animation-delay: 0s;
}
.smoke:nth-child(2) {
    animation-delay: 1s;
}
.smoke:nth-child(3) {
    animation-delay: 2s;
}
.smoke:nth-child(4) {
    animation-delay: 3s;
}

@keyframes smokeUp {
    0% {
        transform: translate(0, 0) scale(0.5);
        opacity: 0.8;
    }
    50% {
        transform: translate(-15px, -30px) scale(1);
        opacity: 0.4;
    }
    100% {
        transform: translate(-30px, -60px) scale(1.5);
        opacity: 0;
    }
}

.single-intro-feature-wrapper {
    padding: 0;
}

.single-intro-feature-wrapper > [class*="col-"] {
    position: relative;
}

.single-intro-feature-wrapper > [class*="col-"]::before,
.single-intro-feature-wrapper > [class*="col-"]::after {
    position: absolute;
    bottom: 0;
    transform: translateY(50%);
    pointer-events: none;
}

.single-intro-feature-wrapper > [class*="col-"]::before {
    content: none;
    height: 2px;
    background: #c8c8c8;
    right: 0;
    opacity: 0.6;
    z-index: 1;
}

.single-intro-feature-wrapper > [class*="col-"]::after {
    content: "";
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c8c8c8;
    transform: translate(-50%, 50%);
    z-index: 2;
}

.portfolio-area {
    padding-top: 140px;
}

.marquee {
    opacity: 0.6;
}

.marquee span {
    color: var(--black);
    letter-spacing: 2px;
}

.portfolio .title h2 {
    font-size: 2rem;
    font-weight: 400;
}

.experience-service-text h3 {
    font-size: 1.5rem;
    color: var(--black);
    margin-bottom: 0;
}

.experience-service-text img {
    width: 42px;
    height: 42px;
}

.experience-service-text a {
    color: #fff;
}

.flaticon-graduation-cap:before {
    content: none;
}

.traffic-img-wrapper img {
    width: 50px;
}

.traffic-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tab-content {
    opacity: 0;
    transform: scale(0.98);
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 0;
}

.tab-content.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.portfolio-area .portfolio-menu button {
    position: relative;
    color: var(--black);
}

.portfolio-menu button.active,
.portfolio-menu button:hover {
    color: var(--main-color);
}

.portfolio-menu button::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: var(--main-color);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.portfolio-menu button:hover::after,
.portfolio-menu button.active::after {
    transform: scaleX(1);
}

.viewpoint a {
    margin-right: 12px;
}

.experience-ser-icon {
    border: none;
}

.education-content {
    margin-right: 100px;
}

.education-img {
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.education-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#chiayi .card-body {
    padding: 20px;
}

.traffic-btn {
    padding: 10px 22px 11px;
    border-radius: 8px;
}

.fa-arrow-up-right-from-square {
    margin-left: 8px;
}

.tree01 {
    position: absolute;
    bottom: 5px;
    width: 130px;
    right: 15px;
}

.single-intro-feature-wrapper {
    padding: 0;
}

.text-secondary {
    color: var(--black) !important;
}

.spot-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.spot-item:last-child {
    border-bottom: none;
}

.spot-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    perspective: 1000px;
}

.spot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    background: #e3ead0;
    padding: 10px;
}

.spot-info {
    flex-grow: 1;
}

.spot-info h5 {
    font-size: 1.1rem;
    margin: 0 0 0.3rem;
    color: #4a403a;
}

.spot-btn {
    flex-shrink: 0;
}

.rotate-y {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
}

.spot-item:hover .rotate-y,
.spot-item:focus-within .rotate-y {
    transform: rotateY(360deg);
}

.portfolio-area.scroll-text {
    padding: 80px 0 65px 0;
}

.seal {
    position: absolute;
    top: -8%;
    right: 13%;
    transform: rotate(10deg) !important;
    width: 200px;
    opacity: 0.6;
}

@media (width > 1920px) {
    .xxl-device-width {
        max-width: none;
    }

    .banana {
        left: 17%;
        width: 350px;
    }
}

@media (width <=1440px) {
    .banana {
        left: 3%;
    }

    .seal {
        right: 5%;
    }

    .intro-feature-area {
        border-radius: 0 150px 0 150px;
    }
}

@media (width >=1400px) {
    .single-intro-feature-wrapper > [class*="col-"]:nth-child(4n)::before {
        content: "";
        left: calc(-278% - (3 * var(--bs-gutter-x)));
    }

    .single-intro-feature-wrapper > [class*="col-"]:last-child:nth-child(4n-1)::before {
        content: "";
        left: calc(-200% - (2 * var(--bs-gutter-x)));
        right: -170px;
    }

    .single-intro-feature-wrapper > [class*="col-"]:last-child:nth-child(4n-2)::before {
        content: "";
        left: calc(-100% - var(--bs-gutter-x));
    }

    .single-intro-feature-wrapper > [class*="col-"]:last-child:nth-child(4n-3)::before {
        content: "";
        left: 0;
    }
}

@media (width <=1399px) {
    .seal {
        width: 180px;
        right: 7%;
        top: -2%;
    }

    .single-intro-feature-wrapper > [class*="col-"]:nth-child(4n)::before {
        content: "";
        left: calc(-270% - (3 * var(--bs-gutter-x)));
    }
    .single-intro-feature-wrapper > [class*="col-"]:last-child:nth-child(4n-1)::before {
        content: "";
        left: calc(-200% - (2 * var(--bs-gutter-x)));
        right: -100px;
    }
    .single-intro-feature-wrapper > [class*="col-"]:last-child:nth-child(4n-2)::before {
        content: "";
        left: calc(-100% - var(--bs-gutter-x));
    }
    .single-intro-feature-wrapper > [class*="col-"]:last-child:nth-child(4n-3)::before {
        content: "";
        left: 0;
    }
}

@media (width <=1199px) {
    .intro-feature-text h4 {
        font-size: 1.25rem;
    }

    .intro-feature-text h5 {
        font-size: 0.9rem;
    }

    .ticket-card {
        gap: 16px;
    }

    .about-margin {
        margin: 90px 0;
    }

    .intro-feature-area,
    .portfolio-area {
        padding: 120px 0;
    }

    .portfolio-area.scroll-text {
        padding: 20px 0 40px 0;
    }

    .banana {
        top: 16%;
        width: 240px;
    }

    .seal {
        right: 2%;
        width: 160px;
    }

    .intro-feature-area {
        border-radius: 0 100px 0 100px;
    }

    .intro-feature-area .row.mb-80 {
        margin-bottom: 60px;
    }

    .portfolio .title h2{
        margin-bottom: 12px;
    }

    #chiayi-county .tree01{
        display: none;
    }

    .port-button {
        margin-bottom: 16px;
    }
}

@media (width <=991px) {
    .ticket-card {
        justify-content: start;
        padding: 24px 18px 32px 32px;
    }

    .train-scene {
        right: 12%;
    }

    .intro-feature-area,
    .portfolio-area {
        padding: 100px 0;
    }

    .banana,
    .seal {
        display: none;
    }

    .intro-feature-area {
        border-radius: 0 150px 0 150px;
    }

    .intro-feature-area .row.mb-80 {
        margin-bottom: 45px;
    }

    .single-intro-feature-wrapper > [class*="col-"]:nth-child(2n)::before {
        content: "";
        left: calc(-95% - var(--bs-gutter-x));
    }
    .single-intro-feature-wrapper > [class*="col-"]:last-child:nth-child(2n-1)::before {
        content: "";
        left: -60px;
        right: -100px;
    }
}

@media (width <=767px) {
    .single-intro-feature-wrapper > [class*="col-"]::before {
        content: none;
    }

    .slider-area {
        aspect-ratio: 419 / 595;
    }

    .ticket-card {
        margin-bottom: 24px;
    }

    .tree01 {
        display: none;
    }

    .person {
        top: 33.5%;
        left: 36%;
        width: clamp(60px, 33vw, 1200px);
    }

    .spot {
        bottom: 27%;
        left: 17.5%;
        width: clamp(60px, 38vw, 1200px);
    }

    .banner-logo {
        top: 11%;
        left: 9%;
        width: clamp(100px, 38vw, 1200px);
    }

    .banner-text {
        top: 28%;
        left: 9%;
        width: clamp(60px, 32vw, 1200px);
    }

    .banner-green {
        top: 39%;
        right: 3%;
        width: clamp(80px, 32vw, 1200px);
        transform: rotate(12deg);
    }

    .train {
        right: 0;
    }

    .portfolio .title h2 {
        font-size: 1.75rem;
    }

    .title h2 {
        font-size: 2.25rem;
    }

    .mobile-menubar {
        padding: 5px 10px;
        font-size: 20px;
    }

    .intro-feature-area {
        border-radius: 0 120px 0 120px;
    }

    .single-intro-feature-wrapper > [class*="col-"]:last-child:nth-child(2n-1)::before {
        right: -80px;
        left: -40px;
    }

    .port-button {
        margin-bottom: 32px;
    }
}

@media (width <= 575px) {
    .single-intro-feature-wrapper > [class*="col-"]::after {
        content: none;
    }

    .train-scene {
        display: none;
    }

    .ticket-card {
        gap: 24px;
        width: 80%;
        justify-content: center;
        padding: 24px 18px 32px;
        margin-bottom: 0;
    }

    .city {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .intro-feature-text {
        width: 128px;
    }

    .intro-feature-area,
    .portfolio-area {
        padding: 90px 0;
    }

    .flag {
        display: none;
    }

    .intro-feature-area {
        border-radius: 0;
    }

    .single-intro-feature-wrapper > [class*="col-"]::after,
    .single-intro-feature-wrapper > [class*="col-"]::before,
    .single-intro-feature-wrapper > [class*="col-"]:nth-child(2n)::before,
    .single-intro-feature-wrapper > [class*="col-"]:last-child:nth-child(2n-1)::before {
        content: none;
    }
}

@media (width <=399px) {
    .portfolio-area .portfolio-menu button {
        margin-right: 0;
        padding: 6px 8px;
        font-size: 1rem;
    }
}
