/* Internal guide styles for koreamanagement.org (Korean, 1xBet).
   Loaded after assets/css/site.css (the home page's own stylesheet), so it only adds
   layout and the coded CTA banner; it never repaints the theme's core components.
   Theme facts used here: navy #102a43 / #173b52, teal #2a8791 / #1b6270, gold #ffd166,
   body text #425765, white cards on #eef3f6. */

html { scroll-behavior: smooth; }

/* ------------------------------------------------------------------
   Coded CTA banner (never an image). ONE anchor wraps the whole card;
   the visual button is a <span>, so no nested anchors.
   The card must stay visible: the theme fades promo cards in, so the
   inline instance forces opacity:1 !important and disables animation.
   ------------------------------------------------------------------ */
.cta-banner { margin: 1.6rem 0; }

/* Kill any inherited/default underline on the whole-card link (Bootstrap underlines
   every <a>, and text-decoration propagates to all inline 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: #fff;
    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 34px rgba(16, 42, 67, 0.28);
}
a.hero-cta-card.cta-banner-card:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }

.cta-banner .cta-banner-card {
    margin-top: 0;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 26px rgba(16, 42, 67, 0.18);
    border-radius: 16px;
}
.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: 1rem; min-width: 0; }
.cta-banner .hero-cta-logo {
    max-height: 46px;
    width: auto;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 10px;
    padding: 0.4rem 0.55rem;
}
.cta-banner .hero-cta-info { min-width: 0; }
/* Readable title on the dark card: gold, not the purple link colour. */
.cta-banner .cta-banner-title {
    color: #ffd166;
    font-size: 1.12rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.cta-banner .bonus-text { font-size: 1rem; margin-bottom: 0.15rem; color: #fff; font-weight: 600; }
.cta-banner .rating { font-size: 0.9rem; color: #ffd166; letter-spacing: 1px; line-height: 1; }
.cta-banner .hero-cta-button {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
    border-radius: 999px;
    background: #ffd166;
    color: #102a43;
    box-shadow: 0 4px 0 #c99525;
}

/* Stretched overlay link: makes an existing hero/promo card fully clickable
   without nesting anchors (the inner button stays above it). */
.cta-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}
#main-promo-card { position: relative; }
#main-promo-card .btn-play { position: relative; z-index: 3; }
.cta-banner .hero-cta-card .hero-cta-button { position: relative; z-index: 3; }

/* ------------------------------------------------------------------
   Internal page hero, breadcrumb and header CTA
   ------------------------------------------------------------------ */
.page-hero {
    background: linear-gradient(135deg, #102a43 0%, #173b52 48%, #2a8791 100%);
    color: #fff;
    padding: 3rem 0 2.6rem;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 82% 18%, rgba(66, 166, 173, 0.28), transparent 55%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: 2.25rem; line-height: 1.32; margin-bottom: 0.7rem; word-break: keep-all; letter-spacing: -0.02em; }
.page-hero-sub { color: rgba(255, 255, 255, 0.88); font-size: 1.02rem; max-width: 54rem; margin: 0; word-break: keep-all; line-height: 1.7; }

.nav-cta {
    display: inline-block;
    background: #ffd166;
    color: #102a43 !important;
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.55rem 1.35rem;
    border-radius: 999px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 0 #c99525;
}
.nav-cta:hover { background: #ffdf8f; color: #102a43 !important; }

.breadcrumb-bar { background: #fff; border-bottom: 1px solid rgba(0, 0, 0, 0.06); font-size: 0.85rem; }
.breadcrumb-bar .container { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.breadcrumb-bar a { color: #17616b; text-decoration: none; font-weight: 700; }
.breadcrumb-bar span.sep { color: #98a2b3; margin: 0 0.4rem; }
.breadcrumb-bar .current { color: #56606e; }

/* ------------------------------------------------------------------
   Article body
   ------------------------------------------------------------------ */
.page-body { max-width: 900px; padding-top: 2.2rem; padding-bottom: 3rem; word-break: keep-all; }
.page-body p { margin-bottom: 1.1rem; font-size: 1.06rem; line-height: 1.85; color: #425765; }
.page-body h2 {
    margin-top: 2.4rem;
    padding: 0.2rem 0 0.2rem 0.9rem;
    border-left: 5px solid #2a8791;
    color: #173b52;
    font-size: 1.62rem;
    font-weight: 800;
    line-height: 1.4;
}
.page-body h3 { margin-top: 1.6rem; font-size: 1.2rem; color: #1b6270; font-weight: 700; line-height: 1.45; }
.page-body ul, .page-body ol { margin: 0 0 1.2rem 1.1rem; }
.page-body li { margin-bottom: 0.45rem; line-height: 1.8; color: #425765; }
.page-body a { color: #17616b; font-weight: 700; }
.page-body a:hover { text-decoration: underline; }
.lead { font-size: 1.12rem; line-height: 1.85; }

.key-points {
    background: #fff;
    border-left: 4px solid #2a8791;
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin: 1.4rem 0 1.8rem;
    box-shadow: 0 4px 18px rgba(16, 42, 67, 0.05);
}
.key-points ul { margin-bottom: 0; }

.page-faq h3 { font-size: 1.08rem; margin-top: 1.4rem; color: #1b6270; }
.page-faq p { margin-bottom: 0.8rem; }

/* Author bio, after the FAQ on every page (mirrors the home page block). */
.author-box { margin-top: 2.4rem; }
.author-box #bio-avatar { max-width: 110px; }
.author-box #bio-name { margin-bottom: 0.35rem; color: #173b52; font-weight: 800; }
.author-box #bio-text { color: #3b4c59; margin-bottom: 0; font-size: 0.98rem; line-height: 1.8; }

.related-links {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem 1.3rem;
    box-shadow: 0 6px 24px rgba(16, 42, 67, 0.06);
    margin: 2rem 0 0;
}
.related-links p.h5 { color: #173b52; font-weight: 800; }
.related-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.4rem 1rem;
}
.related-links a { color: #17616b; font-weight: 700; text-decoration: none; }
.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;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
}
.footer-nav a { color: #f5f0e6; text-decoration: none; font-size: 0.9rem; opacity: 0.9; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 767px) {
    .page-hero h1 { font-size: 1.6rem; }
    .page-body { padding-top: 1.4rem; }
    .page-body h2 { font-size: 1.36rem; }
    .cta-banner .hero-cta-content { flex-direction: column; align-items: stretch; gap: 0.9rem; }
    .cta-banner .hero-cta-button { width: 100%; text-align: center; }
    .cta-banner .hero-cta-logo { max-height: 36px; }
    .cta-banner .cta-banner-title { font-size: 1rem; }
    .footer-nav ul { gap: 0.3rem 0.7rem; }
    .footer-nav a { font-size: 0.82rem; }
}
