/* Internal page styles for the 1xBet 한국 guide section (1xbetsouth-korea.com).
   Loaded after the site stylesheet (assets/css/site.css); adds layout only, never overrides it.
   Theme facts used here: --green #166534, --green-mid #15803d, --green-soft #dcfce7, --gold #ca8a04,
   white paper cards on a #f7f9f6 background. The card is white, so the separator title is green. */

html { scroll-behavior: smooth; }

/* Coded CTA separator: one anchor wraps the whole card, so logo, offer, rating and button all click.
   The card must stay visible even when a stylesheet is stale, hence opacity:1 !important. */
.cta-banner {
    max-width: calc(var(--max) + 2.5rem);
    margin: 1.6rem auto;
    padding: 0 1.25rem;
    box-sizing: border-box;
}
/* Inside the article the column already provides the gutter, so drop the extra padding. */
.page-main .cta-banner { padding: 0; }
/* On the landing page the separator sits inside an existing card, so keep it flush. */
.sk-sec .cta-banner, #sk-faq .cta-banner { max-width: 100%; padding: 0; }

/* Kill any inherited/default underline on the whole-card link, in every state and on descendants. */
.cta-banner a.hero-cta-card,
.cta-banner a.hero-cta-card:hover,
.cta-banner a.hero-cta-card:focus,
.cta-banner a.hero-cta-card:active,
.cta-banner a.hero-cta-card:visited,
.cta-banner a.hero-cta-card * {
    text-decoration: none !important;
    border-bottom: 0 !important;
}
.cta-stretched-link,
.cta-stretched-link:hover,
.cta-stretched-link:focus,
.cta-stretched-link:active,
.cta-stretched-link:visited { text-decoration: none !important; border-bottom: 0 !important; }

a.hero-cta-card.cta-banner-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 6px 18px rgba(22, 101, 52, 0.08);
    opacity: 1 !important;
    animation: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
a.hero-cta-card.cta-banner-card:hover,
a.hero-cta-card.cta-banner-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(22, 101, 52, 0.18);
}
a.hero-cta-card.cta-banner-card:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 3px; }

.cta-banner .hero-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.cta-banner .hero-cta-left { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.cta-banner .hero-cta-logo { max-height: 42px; width: auto; display: block; }
.cta-banner .cta-banner-title {
    color: var(--green);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    line-height: 1.25;
}
.cta-banner .bonus-text { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 0.1rem; }
.cta-banner .rating { font-size: 0.9rem; color: var(--gold); letter-spacing: 1px; line-height: 1.2; }
.cta-banner .hero-cta-button {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--green-mid);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 8px;
    text-decoration: none !important;
    white-space: nowrap;
    position: relative;
    z-index: 3;
}
.cta-banner a.hero-cta-card:hover .hero-cta-button { background: var(--green); }

/* Stretched overlay link: makes an existing offer card clickable without touching its bindings. */
.cta-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}
/* Offer card on the landing page: the overlay needs a positioned parent and the inner button
   must sit above the overlay so it keeps its own click target. */
#sk-offer { position: relative; }
#sk-offer-btn { position: relative; z-index: 3; }

/* Internal page hero: the landing page gradient, kept flat and readable. */
.page-hero {
    background: linear-gradient(160deg, #14532d 0%, #166534 50%, #15803d 100%);
    color: #fff;
    padding: 2.6rem 1.25rem 2.2rem;
    position: relative;
    overflow: hidden;
}
.page-hero-inner { max-width: calc(var(--max) + 2.5rem); margin: 0 auto; }
.page-hero h1 {
    color: #fff;
    font-size: clamp(1.5rem, 3.6vw, 2.05rem);
    font-weight: 700;
    line-height: 1.38;
    margin-bottom: 0.75rem;
    max-width: 30ch;
    word-break: keep-all;
}
.page-hero .page-hero-sub {
    color: #bbf7d0;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 62ch;
    margin: 0;
    word-break: keep-all;
}

/* Header CTA on internal pages is the same element as the landing page (#sk-header-cta). */
.breadcrumb-bar { background: var(--paper); border-bottom: 1px solid var(--line); font-size: 0.84rem; }
.breadcrumb-inner {
    max-width: calc(var(--max) + 2.5rem);
    margin: 0 auto;
    padding: 0.55rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}
.breadcrumb-bar a { color: var(--green-mid); text-decoration: none; font-weight: 600; }
.breadcrumb-bar a:hover { text-decoration: underline; }
.breadcrumb-bar .sep { color: #9aa89a; }
.breadcrumb-bar .current { color: var(--muted); }

/* Article body */
.page-main {
    max-width: calc(var(--max) + 2.5rem);
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
    word-break: keep-all;
}
.page-main p { color: #334433; font-size: 1rem; line-height: 1.82; margin-bottom: 1rem; }
.page-main h2 {
    color: var(--green);
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.42;
    margin: 2.2rem 0 0.85rem;
    padding-top: 0.3rem;
}
.page-main h3 {
    color: #14532d;
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.5;
    margin: 1.5rem 0 0.6rem;
}
.page-main ul, .page-main ol { margin: 0 0 1.15rem 1.2rem; }
.page-main li { color: #334433; line-height: 1.78; margin-bottom: 0.4rem; }
.page-main a { color: var(--green-mid); font-weight: 600; }
.page-main a:hover { text-decoration: underline; }
.page-main .lead { font-size: 1.06rem; color: #2b3a29; }
.page-main strong { color: var(--ink); font-weight: 700; }

/* FAQ block */
.page-faq { margin-top: 0.4rem; }
.page-faq h3 { font-size: 1rem; color: #14532d; margin-top: 1.25rem; }
.page-faq p { font-size: 0.96rem; color: var(--muted); margin-bottom: 0.6rem; }

/* Author bio, shown after the FAQ on every page (mirrors the landing page's #sk-author block). */
.author-box {
    margin-top: 2.2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: var(--paper);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
}
.author-box .bio-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--green-soft);
    flex: 0 0 auto;
}
.author-box .bio-name { font-weight: 700; font-size: 0.95rem; color: var(--green); margin-bottom: 0.3rem; }
.author-box .bio-text { font-size: 0.87rem; color: var(--muted); line-height: 1.72; margin: 0; }

/* Related guide links */
.related-links {
    margin-top: 1.8rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.15rem 1.3rem;
}
.related-links .related-title { font-weight: 700; color: var(--green); font-size: 0.95rem; margin-bottom: 0.6rem; }
.related-links ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.35rem 1rem;
}
.related-links a { color: var(--green-mid); font-weight: 600; text-decoration: none; font-size: 0.92rem; }
.related-links a:hover { text-decoration: underline; }

/* Footer navigation: Home + the eight guide pages + sitemap. */.footer-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 1rem;
    margin-bottom: 1rem;
}
.footer-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
}
.footer-nav a { color: #dcfce7; text-decoration: none; font-size: 0.88rem; opacity: 0.92; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }

/* Pre-existing cross-market link strip on the landing page: lay the inline spans out as a row
   so the localised site titles stay readable (the theme has no grid utilities of its own). */
.group-links {
    max-width: calc(var(--max) + 2.5rem);
    margin: 0 auto;
    padding: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.25rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.group-links a { color: var(--green-mid); text-decoration: none; font-weight: 600; }
.group-links a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .page-hero { padding: 2rem 1.1rem 1.8rem; }
    .page-hero h1 { font-size: 1.42rem; }
    .page-main { padding: 1.4rem 1.1rem 2.4rem; }
    .page-main h2 { font-size: 1.14rem; }
    .cta-banner .hero-cta-content { gap: 0.75rem; }
    .cta-banner .hero-cta-button { width: 100%; text-align: center; }
    .cta-banner .hero-cta-logo { max-height: 32px; }
    .author-box { flex-direction: column; }
    .footer-nav ul { gap: 0.3rem 0.7rem; }
    .footer-nav a { font-size: 0.8rem; }
}
