.navbar-nav .nav-link{
    max-width:140px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.navbar-nav .dropdown-toggle,
.navbar-brand {
    white-space: inherit;
}

.navbar-brand {
    min-width: 150px;
}

.navbar-brand,
.navbar-brand .site-name-inline {
    white-space: nowrap;
}

#backButton{
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    border-radius: 50px;
}

/* Section spacing */
.section-padding {
    padding: 80px 0;
}

.section-light {
    background-color: #f8f9fa;
}

.section-gold {
    background: linear-gradient(135deg, #fff8e1, #fffdf5);
}

.section-title {
    font-weight: 700;
    letter-spacing: 1px;
}

.home-region-banner {
    background: linear-gradient(180deg, rgba(255, 248, 225, 0.72) 0%, rgba(255, 253, 245, 0) 100%);
}

.home-region-title {
    color: #4d3425;
    font-family: "Playfair Display", "Noto Serif TC", serif;
    font-size: clamp(1.6rem, 2.8vw, 2.6rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.home-region-flags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
}

.home-region-flags span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.76rem;
    min-height: 3.84rem;
    font-size: 3.24rem;
    line-height: 1;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 4px 12px rgba(139, 94, 60, 0.12);
}

.map-container {
    position: relative;
}

.map-container::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../images/map-bg.jpg), url(../images/map-bgr.png);
    background-size: auto 100%, auto 100%;
    background-repeat: no-repeat, repeat-x;
    background-position: 85% 20%, 0 0;
    opacity: 0.2;
    z-index: 1;
}

.map-container .chief {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(../images/chief.png);
    background-size: auto 50%;
    background-repeat: no-repeat;
    background-position: center 15%;
    z-index: 1;
}

.map-container {
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .map-container .chief { display: none; }
}

/* ================= CARDS ================= */

.card-modern {
    border: none;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.card-modern:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

/* ================= MAP ================= */

.map-container {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* ================= TEXT ================= */

.text-justify-modern {
    text-align: justify;
    line-height: 1.8;
    font-size: 15px;
}

.content-card {
    max-width: 900px;
    margin: auto;
}

/* ================= IMAGES ================= */

.scroll-img {
    max-width: 180px;
    transition: 0.3s ease;
}

.scroll-img:hover {
    transform: scale(1.05);
}

.qr-img {
    max-width: 220px;
}

.profile-img {
    max-width: 300px;
    border-radius: 12px;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* ================= LINKS ================= */

a {
    transition: 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* ================= MOBILE IMPROVEMENTS ================= */

@media (max-width: 768px) {
    .navbar-nav .nav-link {
        max-width: inherit;
    }
    .section-padding {
        padding: 50px 0;
    }
    .profile-img {
        max-width: 220px;
    }
    .home-region-flags span {
        min-width: 5.04rem;
        min-height: 3.48rem;
        font-size: 2.88rem;
    }
}

/* ================= CENTER PROFILE PAGE ================= */

.profile-divider {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #c9a227, transparent);
    margin: 25px 0;
}

.info-block strong {
    display: inline-block;
    min-width: 90px;
}

.address-modern {
    font-style: normal;
    line-height: 1.7;
}

.section-soft {
    background: #fffdf8;
}

.profile-card + .profile-card {
    margin-top: 3rem; /* spacing between multiple cards */
}

.profile-img-placeholder {
    width: 250px;
    height: 250px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #888;
    font-size: 16px;
    border-radius: 10px;
    margin: 0 auto;
}

.placeholder-text {
    text-align: center;
    padding: 10px;
}

.video-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.footer-policy-link a {
    color: #F9F5EB;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}

.footer-policy-link a:hover {
    color: #ffffff;
    opacity: 1;
}

.app-contact-cta {
    margin-top: 1.75rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(166, 25, 46, 0.12);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(249, 245, 235, 0.95), rgba(255, 255, 255, 0.96));
}

.app-contact-cta p {
    color: #5c4633;
}

.contact-page {
    background:
        radial-gradient(circle at top left, rgba(166, 25, 46, 0.1), transparent 28%),
        linear-gradient(180deg, #F9F5EB 0%, #FFFDF8 100%);
}

.contact-hero {
    max-width: 760px;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(166, 25, 46, 0.08);
    color: #A6192E;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-lead {
    color: #4a4a4a;
    font-size: 1.05rem;
    line-height: 1.85;
}

.contact-info-card,
.contact-form-card {
    height: 100%;
    padding: 1.75rem;
    border: 1px solid rgba(166, 25, 46, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 45px rgba(85, 64, 45, 0.08);
}

.contact-info-card h2 {
    color: #A6192E;
    font-family: "Playfair Display", "Noto Serif TC", serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact-info-list {
    display: grid;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.contact-info-item i {
    margin-top: 0.2rem;
    color: #A6192E;
    font-size: 1.1rem;
}

.contact-info-item strong,
.contact-info-item a {
    display: block;
}

.contact-info-item span,
.contact-info-item a {
    color: #5a5a5a;
    text-decoration: none;
}

.contact-form-card .form-label {
    font-weight: 600;
    color: #4d3425;
}

.contact-form-card .form-control {
    border-radius: 12px;
    padding: 0.8rem 0.95rem;
    border-color: rgba(77, 52, 37, 0.16);
}

.contact-form-card .form-control:focus {
    border-color: rgba(166, 25, 46, 0.45);
    box-shadow: 0 0 0 0.2rem rgba(166, 25, 46, 0.12);
}

.recaptcha-placeholder {
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(201, 162, 39, 0.12);
    color: #6a552a;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .contact-info-card,
    .contact-form-card {
        padding: 1.25rem;
    }
}

.privacy-policy-page {
    background:
        radial-gradient(circle at top left, rgba(166, 25, 46, 0.12), transparent 34%),
        linear-gradient(180deg, #F9F5EB 0%, #FFFDF8 100%);
    color: #343434;
}

.privacy-policy-page .privacy-hero {
    padding: 11rem 0 4rem;
}

.privacy-policy-page .privacy-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: rgba(166, 25, 46, 0.08);
    color: #A6192E;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.privacy-policy-page .privacy-title {
    margin-top: 1.5rem;
    color: #A6192E;
    font-family: "Playfair Display", "Noto Serif TC", serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
}

.privacy-policy-page .privacy-lead {
    max-width: 760px;
    margin: 1.5rem auto 0;
    font-size: 1.08rem;
    line-height: 1.9;
    color: #444444;
}

.privacy-policy-page .privacy-updated {
    margin-top: 1.5rem;
    color: rgba(52, 52, 52, 0.72);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.privacy-policy-page .privacy-summary-grid {
    margin-top: 2.5rem;
}

.privacy-policy-page .privacy-summary-card,
.privacy-policy-page .privacy-section,
.privacy-policy-page .privacy-sidebar {
    border: 1px solid rgba(166, 25, 46, 0.12);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 45px rgba(85, 64, 45, 0.08);
}

.privacy-policy-page .privacy-summary-card {
    height: 100%;
    padding: 1.5rem;
}

.privacy-policy-page .privacy-summary-card h2 {
    margin-bottom: 0.75rem;
    color: #A6192E;
    font-size: 1.15rem;
    font-weight: 700;
}

.privacy-policy-page .privacy-summary-card p {
    margin: 0;
    color: #4B4B4B;
    line-height: 1.8;
}

.privacy-policy-page .privacy-content {
    padding-bottom: 5rem;
}

.privacy-policy-page .privacy-section {
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.privacy-policy-page .privacy-section h2 {
    margin-bottom: 1rem;
    color: #A6192E;
    font-family: "Playfair Display", "Noto Serif TC", serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

.privacy-policy-page .privacy-section p,
.privacy-policy-page .privacy-section li {
    color: #414141;
    font-size: 1rem;
    line-height: 1.85;
}

.privacy-policy-page .privacy-section ul {
    margin-bottom: 0;
    padding-left: 1.2rem;
}

.privacy-policy-page .privacy-highlight {
    border-left: 4px solid #A6192E;
    background: linear-gradient(90deg, rgba(166, 25, 46, 0.08), rgba(166, 25, 46, 0));
    padding: 1rem 1.1rem;
    border-radius: 16px;
}

.privacy-policy-page .privacy-sidebar {
    position: sticky;
    top: 7rem;
    padding: 1.75rem;
}

.privacy-policy-page .privacy-sidebar h3 {
    margin-bottom: 1rem;
    color: #A6192E;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.privacy-policy-page .privacy-sidebar ul {
    margin: 0;
    padding-left: 1.1rem;
}

.privacy-policy-page .privacy-sidebar li {
    margin-bottom: 0.7rem;
    color: #414141;
    line-height: 1.7;
}

.privacy-policy-page .privacy-sidebar li:last-child {
    margin-bottom: 0;
}

.privacy-policy-page .privacy-note {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(166, 25, 46, 0.12);
    color: #5A5A5A;
    font-size: 0.96rem;
}

@media (max-width: 991px) {
    .privacy-policy-page .privacy-hero {
        padding-top: 9.5rem;
    }

    .privacy-policy-page .privacy-sidebar {
        position: static;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .privacy-policy-page .privacy-hero {
        padding: 8.5rem 0 3rem;
    }

    .privacy-policy-page .privacy-section,
    .privacy-policy-page .privacy-sidebar,
    .privacy-policy-page .privacy-summary-card {
        border-radius: 20px;
    }

    .privacy-policy-page .privacy-section {
        padding: 1.5rem;
    }

    .privacy-policy-page .privacy-lead {
        font-size: 1rem;
    }
}

.video-card p {
    font-size: 1rem;
    color: #333;
}

.map-embed-shell {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.map-embed-frame {
    width: 100%;
    height: calc(100% + 112px);
    margin-top: -112px;
    border: 0;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .locations-chief-image {
        width: 50%;
    }
}