/* Pronostics index / sub listing + article — jg template */

.gray {
    margin-top: 10px;
}

.jg-pronostics-page .jg-pronostics-intro {
    margin-bottom: 18px;
}

.jg-pronostics-tree {
    margin-top: 6px;
}

/* ---- Top-level sub: card with a blue header bar ---- */
.jg-prono-node--d0 {
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid #e3ecf3;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}

.jg-prono-node--d0 > .jg-prono-node__head {
    background: linear-gradient(90deg, #1e83b4 0%, #2a9fd6 100%);
    padding: 10px 16px;
}

.jg-prono-node--d0 > .jg-prono-node__head .jg-prono-node__title {
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}

.jg-prono-node--d0 > .jg-prono-node__head .jg-prono-node__title:hover {
    text-decoration: underline;
}

.jg-prono-node--d0 > .jg-prono-links,
.jg-prono-node--d0 > .jg-prono-children {
    padding: 10px 16px 14px;
}

/* ---- Nested subs (child subs) ---- */
.jg-prono-children {
    margin-top: 6px;
}

.jg-prono-node--d1,
.jg-prono-node--d2,
.jg-prono-node--d3,
.jg-prono-node--d4 {
    margin: 12px 0 0;
    padding-left: 14px;
    border-left: 3px solid #e3ecf3;
}

.jg-prono-node--d1 > .jg-prono-node__head .jg-prono-node__title,
.jg-prono-node--d2 > .jg-prono-node__head .jg-prono-node__title,
.jg-prono-node--d3 > .jg-prono-node__head .jg-prono-node__title,
.jg-prono-node--d4 > .jg-prono-node__head .jg-prono-node__title {
    display: inline-block;
    margin-bottom: 2px;
    color: #21506b;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
}

.jg-prono-node__head .jg-prono-node__title:hover {
    /*color: #1e83b4;*/
}

/* ---- Pronostics link lists ---- */
.jg-prono-links {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 28px;
}

.jg-prono-links li {
    position: relative;
    padding-left: 14px;
    line-height: 1.7;
}

.jg-prono-links li::before {
    content: "\203A"; /* › */
    position: absolute;
    left: 0;
    color: #2a9fd6;
    font-weight: 700;
}

.jg-prono-links a {
    color: #1e83b4;
    text-decoration: none;
}

.jg-prono-links a:hover {
    text-decoration: underline;
}

/* Standalone "direct pronostics" block (no header bar) */
.jg-prono-direct > .jg-prono-links {
    padding: 12px 16px;
}

.imgintxt {
    display: block;
    max-width: 100%;
    clear: both;
}

.jg-pronostics-intro img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}

.floatright {
    float: right;
    margin: 8px 0 5px 10px;
}

.floatleft {
    float: left;
    margin: 8px 10px 5px 0;
}

h2:not(.jg-side-card):not(.jg-side-card__title) {
    background-image: linear-gradient(to right, #2a9fd6, #135e8d);
    background-size: 300px 3px;
    background-position: bottom left;
    background-repeat: no-repeat;
    padding-bottom: 8px;
    font-size: 18px !important;
    line-height: 24px !important;
}

h3 {
    font-size: 16px !important;
    line-height: 24px !important;
}

span#credit {
    float: none;
    text-align: center;
    /*border: 1px #ccc solid;*/
    /*padding: 5px;*/
    margin: 5px auto 0;
    box-sizing: border-box;
}

div.imgintxt img {
    margin: unset !important;
}

@media (max-width: 600px) {
    .jg-prono-links {
        grid-template-columns: 1fr;
    }
}

/* ---- Sidebar (top bookmakers + bookmaker of the month) ---- */
.jg-side-card {
    background: #fff;
    border-radius: 10px;
    padding: 18px 16px;
    border: 1px #f5f5f5   solid;
    box-shadow: 0 4px 10px rgba(88, 113, 157, .16);
    margin-bottom: 22px;
    color: #2c313a;
}

.jg-side-card__title {
    margin: 0 0 12px;
    padding: 0 0 10px;
    border-bottom: 3px solid #2a9fd6;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #2c313a;
    line-height: 1.2;
}

/* Top bookmakers list */
.jg-side-tops__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jg-side-tops__item {
    display: grid;
    grid-template-columns: 46% 1fr;
    grid-template-areas:
        "logo cta"
        "stars cta";
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid #e3ecf3;
}

.jg-side-tops__item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.jg-side-tops__logo {
    grid-area: logo;
    display: block;
    text-align: center;
}

.jg-side-tops__logo img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

.jg-side-tops__rating {
    grid-area: stars;
    display: flex;
    justify-content: center;
}

/* Star rating sprite (same 2-row SVG as the original toplist):
   .stars shows the empty row (left bottom); .stars_in overlays the filled row
   (left top) and starsNew() sets its inline width % to reveal the rating. */
.jg-side-tops__rating {
    line-height: 0;
}

.jg-side-tops__rating .stars {
    display: flex;
    width: 90px;
    height: 17px;
    background: url('../img/commons/clf/home_stars_new.svg') left bottom repeat-x;
}

.jg-side-tops__rating .stars_in {
    width: 100%;
    height: 100%;
    background: url('../img/commons/clf/home_stars_new.svg') left top repeat-x;
}

.jg-side-tops__cta {
    grid-area: cta;
    align-self: center;
}

/* Shared CTA button (jg blue) */
.jg-side-tops__cta,
.jg-side-monthly__cta,
.jg-side-week__cta {
    display: block;
    text-align: center;
    background: linear-gradient(90deg, #1e83b4 0%, #2a9fd6 100%);
    color: #fff !important;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.15;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    padding: 12px 10px;
    transition: filter .15s ease;
}

.jg-side-tops__cta:hover,
.jg-side-monthly__cta:hover,
.jg-side-week__cta:hover {
    filter: brightness(1.08);
    text-decoration: none;
}

/* Bookmaker of the month */
.jg-side-monthly {
    text-align: center;
}

.jg-side-monthly__logo {
    display: block;
    margin: 6px auto 16px;
}

.jg-side-monthly__logo img {
    display: block;
    max-width: 82%;
    height: auto;
    margin: 0 auto;
}

.jg-side-monthly__benefits {
    text-align: left;
    margin: 0 0 16px;
    color: #34495e;
}

.jg-side-monthly__benefits ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jg-side-monthly__benefits li,
.jg-side-monthly__benefits p {
    position: relative;
    margin: 0;
    padding: 4px 0 4px 26px;
    line-height: 1.5;
}

.jg-side-monthly__benefits li::before,
.jg-side-monthly__benefits p::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2ecc71;
    color: #fff;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
}

/* Pronostic of the week */
.jg-side-week__img {
    display: block;
    margin: 0 0 12px;
}

.jg-side-week__img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

/*.widget #pronosticshp img {*/
/*    width: 100%;*/
/*    height: auto;*/
/*    max-width: 500px;*/
/*}*/

.jg-side-week__teaser {
    margin: 0 0 12px;
    color: #34495e;
    line-height: 1.5;
    font-weight: bold;
}

.jg-side-week__teaser a {
    color: #1e83b4;
    white-space: nowrap;
}

.jg-side-week__tip {
    background: #f1f7fb;
    border-left: 3px solid #2a9fd6;
    padding: 10px 12px;
    margin: 0 0 14px;
    border-radius: 0 6px 6px 0;
}

.jg-side-week__tip-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: #21506b;
}

/* Latest pronostics */
.jg-side-latest__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.jg-side-latest__list li {
    padding: 9px 0 9px 16px;
    position: relative;
    border-bottom: 1px solid #e3ecf3;
    line-height: 1.4;
}

.jg-side-latest__list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.jg-side-latest__list li::before {
    content: "\203A"; /* › */
    position: absolute;
    left: 0;
    top: 9px;
    color: #2a9fd6;
    font-weight: 700;
}

.jg-side-latest__list a {
    color: #1e83b4;
    text-decoration: none;
}

.jg-side-latest__list a:hover {
    text-decoration: underline;
}

.page-header {
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 26px !important;
}

@media(max-width: 768px) {
    .jg-pronostics-page .jg-pronostics-intro {
        margin-top: 15px;
    }

    .gray {
        margin-top: 20px;
    }

    .jg-pronostics-sidebar {
        margin-bottom: 20px;
    }
}