/* Shared refinements (desktop + mobile). Loaded after each page's own stylesheet. */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a {
    transition: color 0.2s, opacity 0.2s, background-color 0.2s;
}

:focus-visible {
    outline: 3px solid #63a7b0;
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

/* Social icons */
.svg-inline--fa {
    transition: transform 0.25s, color 0.25s;
}

a:hover > .svg-inline--fa {
    color: #3d7f89;
    transform: translateY(-3px) scale(1.1);
}

/* TikTok thumbnails */
.tiktok-click-wrapper {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.tiktok-play-btn {
    transition: background-color 0.25s, transform 0.25s;
}

.tiktok-click-wrapper:hover .tiktok-play-btn {
    background: rgba(99, 167, 176, 0.9);
    transform: translate(-50%, -50%) scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

/* The local banner image already contains the logo, so hide the separate logo overlay. */
.line0box1innersplitbox1 {
    visibility: hidden;
}

/* Shared hero ribbon (identical on every page) */
.hero-ribbon {
    display: flex;
    height: 500px;
    max-width: 100%;
    background: linear-gradient(135deg, #1d3a40 0%, #0f2226 100%);
    clip-path: polygon(0% 80%, 25% 90%, 50% 80%, 75% 90%, 100% 80%, 100% 0%, 0% 0%);
}

.hero-ribbon__item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    min-width: 0;
}

.hero-ribbon__item a {
    display: flex;
    height: 100%;
    max-width: 100%;
}

.hero-ribbon__img {
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.45));
    transition: transform 0.3s;
}

.hero-ribbon__item a:hover .hero-ribbon__img {
    transform: scale(1.04);
}

@media (max-width: 800px) {
    .hero-ribbon {
        height: 200px;
        clip-path: polygon(0% 85%, 25% 95%, 50% 85%, 75% 95%, 100% 85%, 100% 0%, 0% 0%);
    }
}

/* Visually hidden but available to search engines and screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
