:root {
    --padding: 100px;
}

body {
    font-family: "Noto Sans TC", sans-serif;
}

h1 {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 400;
    font-family: "Chiron Sung HK", serif;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3rem);
    font-weight: 400;
    font-family: "Chiron Sung HK", serif;
}

h3 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 400;
    font-family: "Chiron Sung HK", serif;
}

h4 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 400;
    font-family: "Chiron Sung HK", serif;
}

h5 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 400;
    font-family: "Chiron Sung HK", serif;
}

h6 {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 400;
    font-family: "Chiron Sung HK", serif;
}

p {
    font-weight: 300;
    font-family: "Noto Sans TC", sans-serif;
}

a {
    text-decoration: none;
}

.section-padding {
    padding-top: var(--padding);
    padding-bottom: var(--padding);
}

.section-padding-sm {
    padding-top: calc(var(--padding) * 0.5);
    padding-bottom: calc(var(--padding) * 0.5);
}

.section-padding-lg {
    padding-top: calc(var(--padding) * 1.5);
    padding-bottom: calc(var(--padding) * 1.5);
}

.top-padding {
    padding-top: var(--padding);
}

.bottom-padding {
    padding-bottom: var(--padding);
}

.bottom-padding-sm {
    padding-bottom: calc(var(--padding) * 0.5);
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.logo {
    height: 40px;
}

.home-hero-img {
    height: min(75vh, 760px);
    object-fit: cover;
    display: block;
}

.home-intro {
    /* background-color: #f6f6f4; */
}

/* .home-intro-text {
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.9;
    letter-spacing: 0.06em;
} */

.home-benefits {
    /* background-color: #ebe9e5; */
    background-image: url(../img/home/texture_bg_gray.png);
}

.icon-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}

.battle-bg-left {
    background-image: url(../img/battle-of-hong-kong/bg_l.png);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: auto 200px;
}

.battle-bg-right {
    background-image: url(../img/battle-of-hong-kong/bg_r.png);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: auto 200px;
}

.benefit-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    isolation: isolate;
}

.benefit-card-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.benefit-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.benefit-card-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    z-index: 1;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.benefit-card:hover .benefit-card-image {
    transform: scale(1.04);
}

.benefit-card:hover::after {
    opacity: 1;
}

.benefit-card:hover .benefit-card-content {
    opacity: 1;
    transform: translateY(0);
}

footer {
    min-height: 100px;
    background-color: #091d49;
}

.battleSwiper .swiper-slide {
    transition: transform 0.3s ease;
}

.battleSwiper .swiper-slide img {
    object-fit: cover;
}

.about-history {
    /* background-color: #f2f2f2; */
}

.history-content {
    padding: 1rem 0.5rem;
}

.history-timeline {
    position: relative;
    min-height: 100%;
}

.history-years-list {
    position: relative;
    width: 100%;
    max-width: 120px;
}

.history-years-list::before {
    content: "";
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    left: 5.51px;
    width: 1px;
    background-color: #cfcfcf;
}

.history-year-btn {
    border: none;
    background: transparent;
    color: #8e8e8e;
    /* font-size: 0.95rem; */
    padding: 0 0 0 1.25rem;
    position: relative;
    text-align: left;
    transition: color 0.25s ease;
}

.history-year-btn::before {
    content: "";
    position: absolute;
    left: 0.1rem;
    top: 50%;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    border: 2px solid #c8c8c8;
    background-color: #f2f2f2;
    transform: translateY(-50%);
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.history-year-btn:hover {
    color: #444;
}

.history-year-btn.is-active {
    color: #222;
    font-weight: 600;
}

.history-year-btn.is-active::before {
    border-color: #ae2030;
    background-color: #ffffff;
}

.history-image-wrap {
    /* border: 16px solid #b71f2e; */
    overflow: hidden;
    min-height: 460px;
}

.history-image {
    object-fit: cover;
    display: block;
}