/* Home page */
.hm-alert { padding: 12px 18px; background: var(--orange-soft); color: var(--orange-dark); text-align: center; font-weight: 600; }

.hm-ticker { background: #fff7e0; border-bottom: 1px solid #f3e0a8; }
.hm-ticker .wrap { display: flex; align-items: stretch; gap: 14px; }
.hm-ticker-label { display: flex; flex: none; align-items: center; gap: 8px; padding: 8px 16px; background: var(--orange-dark); color: #fff; font-weight: 700; white-space: nowrap; }
.hm-ticker-window { flex: 1; min-width: 0; overflow: hidden; padding: 8px 0; }
.hm-ticker-track { display: inline-flex; gap: 48px; padding-left: 100%; list-style: none; white-space: nowrap; animation: hm-move linear infinite; font-weight: 600; }
.hm-ticker-track li::before { content: "◆"; margin-right: 10px; color: var(--orange); font-size: 11px; }
.hm-ticker-window:hover .hm-ticker-track, .hm-ticker-window:focus .hm-ticker-track { animation-play-state: paused; }
@keyframes hm-move { to { transform: translateX(-100%); } }

.hm-hero { background: linear-gradient(125deg, var(--green-dark), var(--green)); color: #fff; }
.hm-hero .wrap { display: grid; grid-template-columns: 5fr 7fr; align-items: center; gap: 36px; max-width: 1320px; padding-top: 38px; padding-bottom: 76px; }
.hm-eyebrow { display: inline-block; margin-bottom: 12px; padding: 3px 14px; border-radius: 30px; background: rgba(255,255,255,.14); color: var(--yellow); font-size: 14px; font-weight: 700; }
.hm-hero h1 { font-size: 42px; line-height: 1.35; font-weight: 700; color: #fff; }
.hm-hero h1 small { display: block; font-size: 22px; font-weight: 500; color: #d9ecdc; }
.hm-hero-text p { margin-top: 12px; color: #e2f0e4; }
.hm-hero-text .hm-motto { display: inline-block; border-left: 4px solid var(--orange); padding-left: 12px; font-size: 19px; font-weight: 700; color: var(--yellow); }
.hm-hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hm-btn-white { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 20px; border-radius: 10px; background: #fff; color: var(--green-dark); font-weight: 700; }
.hm-btn-white:hover { background: var(--yellow); color: var(--green-dark); }
.hm-slides { position: relative; aspect-ratio: 19 / 10; overflow: hidden; border: 5px solid #fff; border-radius: 16px; background: #fff; box-shadow: 0 18px 44px rgba(0,0,0,.28); }
.hm-slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s; }
.hm-slides img.active { opacity: 1; }
.hm-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 4px; }
.hm-dots button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; }
.hm-dots button::before { content: ""; display: block; width: 12px; height: 12px; margin: auto; border: 2px solid #fff; border-radius: 50%; background: rgba(0,0,0,.35); }
.hm-dots button.active::before { background: var(--orange); }

.hm-quick { position: relative; z-index: 2; margin-top: -44px; }
.hm-quick .wrap { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.hm-quick a { display: flex; flex-direction: column; align-items: center; padding: 18px 10px; text-align: center; background: #fff; color: var(--ink); border-bottom: 4px solid var(--orange); border-radius: 14px; box-shadow: var(--shadow); transition: transform .2s; }
.hm-quick a:hover { transform: translateY(-4px); border-color: var(--green); color: var(--ink); }
.hm-quick i { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 10px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 22px; }
.hm-quick strong { font-size: 16px; line-height: 1.5; }
.hm-quick span { font-size: 13px; line-height: 1.5; color: var(--muted); }

.hm-section { padding: 60px 0; }
.hm-section.alt { background: var(--cream); }
.hm-title { margin-bottom: 30px; text-align: center; }
.hm-title.left { margin-bottom: 18px; text-align: left; }
.hm-title span { display: block; margin-bottom: 2px; color: var(--orange-dark); font-size: 14px; font-weight: 700; }
.hm-title h2 { font-size: 29px; line-height: 1.45; font-weight: 700; letter-spacing: 0; color: var(--green-dark); }
.hm-title h2::after { content: ""; display: block; width: 66px; height: 4px; margin: 8px auto 0; border-radius: 4px; background: linear-gradient(90deg, var(--orange), var(--yellow)); }
.hm-title.left h2::after { margin-left: 0; }
.hm-center { margin-top: 28px; text-align: center; }

.hm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hm-fact { padding: 24px 14px; text-align: center; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 14px; box-shadow: var(--shadow); }
.hm-fact:nth-child(even) { border-top-color: var(--orange); }
.hm-fact i { font-size: 26px; color: var(--orange); }
.hm-fact strong { display: block; margin-top: 6px; font-size: 38px; line-height: 1.3; color: var(--green-dark); }
.hm-fact b { display: block; }
.hm-fact small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.hm-water { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 20px; padding: 14px 20px; background: var(--green-soft); border-radius: 12px; }
.hm-water b { color: var(--green-dark); }

.hm-about { display: grid; grid-template-columns: 7fr 5fr; gap: 36px; align-items: start; }
.hm-about p { margin-bottom: 16px; text-align: justify; color: #374239; }
.hm-box { margin-bottom: 18px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.hm-box h3 { margin-bottom: 12px; font-size: 18px; line-height: 1.5; letter-spacing: 0; color: var(--green-dark); }
.hm-box h3 i { margin-right: 6px; color: var(--orange); }
.hm-distance { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hm-distance div { padding: 10px 12px; background: var(--cream); border-left: 3px solid var(--orange); border-radius: 8px; }
.hm-distance dt { font-size: 13px; color: var(--muted); }
.hm-distance dd { margin: 0; font-size: 20px; font-weight: 700; color: var(--green-dark); white-space: nowrap; }
.hm-places { list-style: none; }
.hm-places li { padding: 7px 0 7px 22px; position: relative; border-bottom: 1px dashed var(--line); }
.hm-places li:last-child { border-bottom: 0; }
.hm-places li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.hm-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 26px; }
.hm-tabs button { padding: 9px 24px; border: 2px solid var(--line); border-radius: 40px; background: #fff; color: var(--green-dark); font: inherit; font-weight: 700; cursor: pointer; }
.hm-tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; }
.hm-leader { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.hm-leader[hidden] { display: none; }
.hm-person { overflow: hidden; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding-bottom: 18px; }
.hm-person img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 14px; border-bottom: 5px solid var(--orange); background: #d8d8e5; }
.hm-person strong { display: block; padding: 0 12px; font-size: 18px; line-height: 1.6; color: var(--green-dark); }
.hm-person span { color: var(--orange-dark); font-weight: 700; font-size: 14px; }
.hm-message { padding: 26px 30px; background: var(--cream); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 14px; }
.hm-message h3 { margin-bottom: 14px; font-size: 22px; line-height: 1.5; letter-spacing: 0; color: var(--green-dark); }
.hm-message-text { text-align: justify; color: #333f36; }
.hm-message-text.short { max-height: 330px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.hm-message-text br { display: block; content: ""; margin: 6px 0; }
.hm-message-text .signature { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 700; color: var(--green-dark); text-align: right; }
.hm-readmore { margin-top: 12px; border: 0; background: none; color: var(--orange-dark); font: inherit; font-weight: 700; cursor: pointer; }

.hm-works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hm-work { display: block; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); color: var(--ink); transition: transform .2s; }
.hm-work:hover { transform: translateY(-4px); color: var(--ink); }
.hm-work-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-soft); }
.hm-work-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-work-photo span { position: absolute; left: 12px; top: 12px; padding: 3px 12px; border-radius: 30px; background: var(--green); color: #fff; font-size: 13px; font-weight: 700; }
.hm-work-photo span.ongoing { background: var(--orange-dark); }
.hm-work h3 { margin: 14px 18px 16px; padding: 0; font-size: 17px; line-height: 1.6; letter-spacing: 0; color: var(--green-dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.hm-event { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); color: var(--ink); }
.hm-event:hover { border-color: var(--green); color: var(--ink); }
.hm-event time { flex: none; width: 82px; padding: 6px 0; text-align: center; background: var(--green); color: #fff; border-radius: 10px; font-size: 13px; }
.hm-event time b { display: block; font-size: 28px; line-height: 1.2; }
.hm-event strong { display: block; line-height: 1.6; }
.hm-event span { font-size: 14px; color: var(--muted); }
.hm-weather { padding: 20px; background: linear-gradient(135deg, var(--green-dark), var(--green)); color: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.hm-now { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.25); }
.hm-now i { font-size: 42px; color: var(--yellow); }
.hm-now strong { font-size: 36px; line-height: 1.2; }
.hm-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; list-style: none; text-align: center; }
.hm-days li { padding: 10px 2px; background: rgba(255,255,255,.12); border-radius: 10px; font-size: 13px; line-height: 1.7; }
.hm-days i { display: block; margin: 4px 0; font-size: 20px; color: var(--yellow); }
.hm-days b { display: block; font-size: 15px; }
.hm-source { margin-top: 10px; font-size: 13px; color: var(--muted); }
.hm-source a { color: var(--green); text-decoration: underline; }

.hm-map iframe { display: block; width: 100%; height: 380px; border: 0; }

@media (max-width: 1050px) {
    .hm-hero .wrap { grid-template-columns: 1fr; }
    .hm-slides { order: -1; }
    .hm-hero-text { text-align: center; }
    .hm-hero-buttons { justify-content: center; }
    .hm-quick .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .hm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-about, .hm-two { grid-template-columns: 1fr; }
    .hm-works { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hm-leader { grid-template-columns: 1fr; }
    .hm-person { width: 100%; max-width: 260px; margin: 0 auto; }
}
@media (max-width: 560px) {
    .hm-ticker .wrap { padding-left: 0; gap: 10px; }
    .hm-ticker-label { padding: 8px 12px; font-size: 13px; }
    .hm-hero .wrap { gap: 20px; padding-top: 18px; padding-bottom: 66px; }
    .hm-hero h1 { font-size: 29px; }
    .hm-hero h1 small { font-size: 17px; }
    .hm-hero-buttons > a { flex: 1 1 100%; justify-content: center; }
    .hm-slides { border-width: 3px; aspect-ratio: 4 / 3; }
    .hm-quick .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .hm-section { padding: 40px 0; }
    .hm-title h2 { font-size: 23px; }
    .hm-facts { gap: 10px; }
    .hm-fact strong { font-size: 30px; }
    .hm-works { grid-template-columns: 1fr; }
    .hm-message { padding: 20px 18px; }
    .hm-about p, .hm-message-text { text-align: left; }
    .hm-days { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
    .hm-days li { font-size: 11.5px; }
    .hm-map iframe { height: 300px; }
}
@media (prefers-reduced-motion: reduce) {
    .hm-ticker-track { animation: none; padding-left: 0; white-space: normal; flex-direction: column; gap: 4px; }
    .hm-slides img, .hm-quick a, .hm-work { transition: none; }
}
