/* Internal page styles for the 1xbetsouthkorea-kr.com guide section.
   Loaded after the site stylesheet (assets/css/site.css); adds layout only, never overrides the theme.
   Theme facts used here: --primary-color #4B0082, --secondary-color #e74c3c, page background #f5f7fa,
   .promo-card is a white card, .btn-play is an orange/pink gradient, --star-color #FFD700. */

html { scroll-behavior: smooth; }

/* ---------------------------------------------------------------------------
   Coded CTA separator card.
   Rebuilt from the site's own promo-card look: white card, purple title, gold
   stars and the gradient play button, compacted for inline use inside an article.
   The whole card is one <a> (button is a <span>), so the entire card is clickable.
   Two hard requirements from the project rules:
     - the theme reveals cards through fadeInUp, so the inline card needs
       "animation: none" AND "opacity: 1 !important" or it renders as blank space;
     - the card is an anchor, so every underline state (incl. Bootstrap and
       descendant propagation) must be killed.
   --------------------------------------------------------------------------- */
.cta-banner { margin: 1.7rem 0; }

.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 *,
.cta-banner a.hero-cta-card *:hover,
.cta-banner a.hero-cta-card *:focus {
    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;
    opacity: 1 !important;
    animation: none;
    transform: none;
    background: #fff;
    border: 1px solid rgba(75, 0, 130, 0.14);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(31, 38, 135, 0.12);
    padding: 1rem 1.25rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.hero-cta-card.cta-banner-card:hover,
a.hero-cta-card.cta-banner-card:focus-visible {
    transform: translateY(-2px);
    border-color: #dd2476;
    box-shadow: 0 14px 34px rgba(221, 36, 118, 0.20);
}
a.hero-cta-card.cta-banner-card:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

.cta-banner .hero-cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.cta-banner .hero-cta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}
.cta-banner .hero-cta-logo {
    max-height: 42px;
    width: auto;
    flex: 0 0 auto;
    padding: 0.15rem 0.3rem;
    border-radius: 0.6rem;
    filter: drop-shadow(0 2px 8px rgba(75, 0, 130, 0.10));
}
.cta-banner .hero-cta-info { min-width: 0; }
.cta-banner .cta-banner-title {
    color: var(--primary-color);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 0.15rem;
    letter-spacing: -0.01em;
}
.cta-banner .bonus-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.1rem;
    line-height: 1.35;
}
.cta-banner .rating {
    font-size: 0.9rem;
    line-height: 1.2;
    color: var(--star-color);
    letter-spacing: 1px;
}
.cta-banner .hero-cta-button {
    display: inline-block;
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50px;
    background: linear-gradient(90deg, #ff512f 0%, #dd2476 100%);
    box-shadow: 0 6px 18px rgba(221, 36, 118, 0.22);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.18);
}
a.hero-cta-card.cta-banner-card:hover .hero-cta-button {
    background: linear-gradient(90deg, #dd2476 0%, #ff512f 100%);
    box-shadow: 0 0 14px 2px rgba(255, 81, 47, 0.55);
}

/* Stretched link: makes an existing card fully clickable without nesting anchors.
   Used on the home page promo card, whose markup carries editor ids that must survive. */
.cta-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    background: transparent;
}
#main-promo-card { position: relative; }
#main-promo-card .casino-logo-link,
#main-promo-card .btn-play {
    position: relative;
    z-index: 3;
}

/* ---------------------------------------------------------------------------
   Internal page shell: hero, breadcrumb, article body.
   --------------------------------------------------------------------------- */
.page-hero {
    background: linear-gradient(135deg, #283593 0%, #4B0082 60%, #283593 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 80% 20%, rgba(255, 215, 0, 0.18), transparent 55%);
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
    color: #fff;
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -0.02em;
    margin-bottom: 0.7rem;
    word-break: keep-all;
}
.page-hero-sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.02rem;
    max-width: 54rem;
    margin: 0;
    word-break: keep-all;
}

/* Header CTA on internal pages (brand logo + register button only, no page menu). */
.nav-cta {
    display: inline-block;
    background: var(--primary-color);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.55rem 1.35rem;
    border-radius: 50px;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(75, 0, 130, 0.32);
}
.nav-cta:hover { background: #3b0066; color: #fff !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: var(--primary-color); text-decoration: none !important; font-weight: 600; }
.breadcrumb-bar span.sep { color: #98a2b3; margin: 0 0.4rem; }
.breadcrumb-bar .current { color: #56606e; }

.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; }
.page-body h2 {
    margin-top: 2.4rem;
    padding-top: 0.4rem;
    color: var(--primary-color);
    font-size: 1.65rem;
    line-height: 1.4;
    letter-spacing: -0.02em;
}
.page-body h3 { margin-top: 1.6rem; font-size: 1.22rem; color: #1a237e; 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; }
.page-body a { color: var(--primary-color); font-weight: 600; }
.page-body a:hover { text-decoration: underline !important; }
.page-body .lead { font-size: 1.12rem; line-height: 1.85; }

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

/* Author bio, shown 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: var(--primary-color); font-weight: 700; }
.author-box #bio-text { color: #3b3b4f; 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(0, 0, 0, 0.06);
    margin: 2rem 0 0;
}
.related-links p.h5 { color: #24103a; font-weight: 700; }
.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: var(--primary-color); font-weight: 600; text-decoration: none !important; }
.related-links a:hover { text-decoration: underline !important; }

/* Footer navigation: Home + the seven 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 !important; font-size: 0.9rem; opacity: 0.9; }
.footer-nav a:hover { opacity: 1; text-decoration: underline !important; }

/* ---------------------------------------------------------------------------
   Responsive: the coded banner stacks on small screens, article type scales down.
   --------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .page-hero h1 { font-size: 1.6rem; }
    .page-hero { padding: 2.2rem 0 1.9rem; }
    .page-body { padding-top: 1.4rem; }
    .page-body h2 { font-size: 1.38rem; }
    .page-body p { font-size: 1rem; }
    .cta-banner { margin: 1.3rem 0; }
    .cta-banner .hero-cta-content { flex-wrap: wrap; gap: 0.8rem; }
    .cta-banner .hero-cta-left { gap: 0.7rem; }
    .cta-banner .hero-cta-logo { max-height: 34px; }
    .cta-banner .cta-banner-title { font-size: 1rem; }
    .cta-banner .bonus-text { font-size: 0.95rem; }
    .cta-banner .hero-cta-button { width: 100%; text-align: center; }
    .footer-nav ul { gap: 0.3rem 0.7rem; }
    .footer-nav a { font-size: 0.82rem; }
}
