/* Internal page styles for the 1xBet ශ්‍රී ලංකාව guide section (book-gratuit.com).
   Loaded after site.css; adds layout for the guide pages and the coded CTA separator
   only, and never overrides the theme palette. */

/* ------------------------------------------------------------------
   Coded CTA separator: reuses the theme's hero card, compacted for
   inline use. The whole card is one anchor, so logo, offer, rating and
   the button are all clickable.
   ------------------------------------------------------------------ */

/* Kill any inherited/default underline on the whole-card link.
   Bootstrap underlines every <a> and text-decoration propagates to
   block descendants, so the pseudo-states and the children need it too. */
.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;
}

/* This theme hides .hero-cta-card with opacity:0 and reveals it with a
   fadeInUp animation. The inline separator switches the animation off,
   so the card must be forced visible or it renders as blank space. */
a.hero-cta-card.cta-banner-card {
    display: block;
    text-decoration: none;
    color: inherit;
    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(75, 0, 130, 0.22);
}
a.hero-cta-card.cta-banner-card:focus-visible {
    outline: 3px solid #4B0082;
    outline-offset: 3px;
}

.cta-banner {
    width: 100%;
    max-width: 900px;
    margin: 1.7rem auto;
    padding: 0 0.75rem;
    box-sizing: border-box;
}
/* On the home page the separators live inside the article column, so they
   should simply fill it. */
#article-content .cta-banner { max-width: 100%; }
.cta-banner .cta-banner-card {
    margin-top: 0;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(75, 0, 130, 0.14);
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(13, 27, 42, 0.12);
}
.cta-banner .hero-cta-logo { max-height: 42px; width: auto; }

/* The card is white, so the offer title keeps the theme's purple; the
   5px gradient strip of the theme card is left in place. */
.cta-banner .cta-banner-title {
    color: #4B0082;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}
.cta-banner .bonus-text { font-size: 1rem; font-weight: 600; margin-bottom: 0.15rem; }
.cta-banner .rating { font-size: 0.9rem; letter-spacing: 1px; }
.cta-banner .hero-cta-button {
    padding: 0.65rem 1.3rem;
    font-size: 0.95rem;
    white-space: nowrap;
    animation: none;
    position: relative;
    z-index: 3;
}
.cta-banner .hero-cta-button::after { animation: none; }

/* Stretched link: makes an existing hero card fully clickable without
   nesting anchors (used on the home page hero card, whose editor ids
   must survive). */
.cta-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
    display: block;
    opacity: 1 !important;
}
.hero-cta-card .hero-cta-button { position: relative; z-index: 3; }

/* The home page promo cards became non-heading cards (p.h5); keep the
   theme's own card typography for them. */
.hero-cta-info .cta-banner-title {
    color: var(--primary-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.2;
}
#promo-text-col .cta-banner-title {
    color: var(--primary-color);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ------------------------------------------------------------------
   Internal page chrome
   ------------------------------------------------------------------ */

.nav-cta {
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50px;
    padding: 0.45rem 1.15rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(75, 0, 130, 0.35);
}
.nav-cta:hover { color: #fff !important; text-decoration: none !important; }

/* Reuse the theme's dark navy hero band for the page title. */
.hero-section.page-hero { padding: 2.6rem 0 2.2rem !important; }
.page-hero h1 {
    color: #fff !important;
    font-size: 2.1rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    font-weight: 800;
    animation: none;
}
.page-hero-sub { color: rgba(255, 255, 255, 0.88); font-size: 1.02rem; max-width: 54rem; margin: 0; }

.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; 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: 2rem; padding-bottom: 3rem; }
.page-body p { margin-bottom: 1.1rem; }
.page-body h2 { margin-top: 2.3rem; padding-top: 0.3rem; color: #24103a; font-size: 1.6rem; }
.page-body h3 { margin-top: 1.5rem; font-size: 1.25rem; color: #2f1a4a; }
.page-body ul, .page-body ol { margin: 0 0 1.2rem 1.1rem; }
.page-body li { margin-bottom: 0.45rem; }
.page-body a { color: var(--primary-color); font-weight: 600; }
.page-body a:hover { color: var(--secondary-color); }

.page-faq h3 { font-size: 1.12rem; margin-top: 1.4rem; }
.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: #24103a; font-weight: 700; }
.author-box #bio-text { color: #3b3b4f; margin-bottom: 0; }

.related-links { background: #fff; border-radius: 14px; padding: 1.2rem 1.3rem; box-shadow: 0 6px 24px rgba(13, 27, 42, 0.08); margin: 2rem 0 0; }
.related-links .h5 { color: #24103a; font-weight: 700; margin-top: 0; }
.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 li { margin: 0; }
.related-links a { color: var(--primary-color); font-weight: 600; text-decoration: none; }
.related-links a:hover { text-decoration: underline; }

.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: #eaf1fb; text-decoration: none; font-size: 0.9rem; opacity: 0.9; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }

.rg-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 50px;
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
    text-decoration: none;
    align-self: center;
}
.rg-pill:hover { color: #fff; background: rgba(255, 255, 255, 0.22); text-decoration: none; }
#footer-18plus { background: #fff; border-radius: 6px; padding: 2px 4px; }

@media (max-width: 767px) {
    .page-hero h1 { font-size: 1.55rem; }
    .page-body { padding-top: 1.2rem; }
    .page-body h2 { font-size: 1.35rem; }
    .cta-banner .hero-cta-content { flex-wrap: wrap; gap: 0.9rem; }
    .cta-banner .hero-cta-button { width: 100%; text-align: center; }
    .cta-banner .hero-cta-logo { max-height: 34px; }
    .cta-banner .cta-banner-title { font-size: 1.05rem; }
}
