/* Homepage top sections (partials/home-sections.php): operator banner, latest articles slider, next tips.
   Roboto Condensed @font-face comes from articles.css. */
.home-sections{
	--home-teal:#1fc2ab;
	--home-odd:#62dac6;
	--home-text:#1b1b1b;
	--home-muted:#9aa3ad;
	--home-line:#e9edf2;
	--home-font:'Roboto Condensed','Roboto',Arial,sans-serif;
}
.home-sections .custom-media.art-banner{margin:0 0 30px;border-radius:8px 8px 0 0}
/* same inset as the banner inside articles (.article-generic padding in articles.css) */
@media only screen and (max-device-width:1199px){.home-sections .custom-media.art-banner{margin-left:20px;margin-right:20px}}
@media only screen and (max-device-width:639px){.home-sections .custom-media.art-banner{margin-left:12px;margin-right:12px}}
/* style.css gives every element margin:0 auto, which collapses grid/flex items and centres short ones */
.home-articles *,.home-tips *{margin:0}

/* latest articles slider: image left, text right; stacked on phones */
.home-articles{position:relative;overflow:hidden}
.home-articles .scroll-container{gap:0}
/* Figma proportions: card 754x303, image column 60% (about 1.5:1) */
.home-slide{display:grid;grid-template-columns:60% 1fr;aspect-ratio:754/303;min-height:0;overflow:hidden;font-family:var(--home-font);color:var(--home-text)}
/* whole image, never cropped (promo banners carry text to the edges); a blurred copy fills the spare space */
.home-slide-image{position:relative;display:block;overflow:hidden;background:#e1e7ed}
.home-slide-image::before{content:"";position:absolute;inset:-20px;background:var(--slide-bg) center/cover no-repeat;filter:blur(16px) brightness(.85)}
.home-slide-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block;margin:0}
.home-slide-body{display:flex;flex-direction:column;align-items:flex-start;min-height:0;overflow:hidden;padding:18px 24px 60px}
.home-slide-cat{font-size:12px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:var(--home-teal);text-decoration:none}
.home-slide-cat:hover{color:var(--home-text)}
.home-slide-title{margin:8px 0 0;padding:0;border:0;font-family:var(--home-font);font-size:20px;font-weight:700;line-height:1.18;letter-spacing:0;text-transform:none;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.home-slide-title a{color:var(--home-text);text-decoration:none}
.home-slide-title a:hover{color:var(--home-teal)}
.home-slide-excerpt{margin:10px 0 0;font-family:var(--home-font);font-size:14px;line-height:1.38;color:var(--home-text);display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}
.home-slide-meta{display:flex;justify-content:space-between;gap:10px;width:100%;margin-top:auto;padding-top:14px;font-size:11px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--home-muted)}
/* one set of arrows + dots for the whole slider, under the text column */
.home-articles-nav{position:absolute;left:60%;right:0;bottom:14px;margin:0}
.home-articles-nav .arrow{border:1px solid var(--home-line);background:#fff}

/* next tips */
.home-tips .match-vote-title h2{font-family:var(--home-font);font-size:26px;font-weight:700;line-height:1.1;text-transform:uppercase;letter-spacing:0;color:#3c3c3c;padding:0;border:0}
.home-tip{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding:12px 14px;border-bottom:1px solid var(--home-line);font-family:var(--home-font);color:var(--home-text)}
.home-tip-match{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;color:var(--home-text);text-decoration:none}
.home-tip-when{font-size:13px;color:#333}
.home-tip-teams{display:flex;align-items:center;gap:12px}
.home-tip-flag{flex:none;display:flex;align-items:center;justify-content:center;width:40px;height:40px}
.home-tip-flag .flag{display:block;width:24px;height:24px;transform:scale(1.67)}
.home-tip-name{font-size:13px;font-weight:700;text-transform:uppercase;line-height:1.25;transition:color .2s}
.home-tip-match:hover .home-tip-name{color:var(--home-teal)}
.home-tip-odds-wrap{flex:none;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.home-tip-odd-label{font-size:10px;font-weight:700;text-transform:uppercase;color:#555}
.home-tip-odds{display:flex;align-items:stretch;height:36px;border-radius:6px;overflow:hidden;text-decoration:none}
.home-tip-odd{display:flex;align-items:center;justify-content:center;min-width:60px;padding:0 10px;background:var(--home-odd);color:#fff;font-size:18px;font-weight:700}
.home-tip-book{display:flex;align-items:center;justify-content:center;width:70px;padding:0 4px}
.home-tip-book img{display:block;max-width:60px;max-height:26px;width:auto;height:auto;margin:0}
.home-tip-more{flex:none;display:flex;align-items:center;justify-content:center;width:30px;height:40px;color:var(--home-teal)}
.home-tip-more:hover{color:var(--home-text)}
button.home-tip-more{border:0;background:none;padding:0;cursor:pointer}
.home-tip-toggle svg{transition:transform .2s;transform:rotate(180deg)}
.home-tip.is-open .home-tip-toggle svg{transform:none}
.home-tip-toggle:focus-visible{outline:2px solid var(--home-teal);outline-offset:-2px;border-radius:6px}
.home-tip-analysis{flex-basis:100%}
.home-tip-analysis-inner{background:#f5f7f9;border-radius:8px;padding:18px 20px;font-size:16px;line-height:1.45}
.home-tip-analysis-inner p{margin:0 0 10px;font-size:inherit;line-height:inherit;font-family:var(--home-font)}
.home-tip-analysis-inner p:last-child{margin-bottom:0}
.home-tips-all{display:block;padding:10px;text-align:center;font-family:var(--home-font);font-size:12px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:var(--home-teal);text-decoration:none}
.home-tips-all:hover{color:var(--home-text)}

@media (max-width:640px){
	.home-slide{grid-template-columns:1fr;grid-template-rows:200px auto;aspect-ratio:auto}
	.home-slide-body{padding:16px 16px 64px}
	.home-slide-title{font-size:21px}
	.home-slide-excerpt{font-size:15px;-webkit-line-clamp:3}
	.home-articles-nav{left:0;bottom:14px}
	.home-tips .match-vote-title h2{font-size:22px}
	.home-tip{flex-wrap:wrap;gap:10px 12px;padding:12px}
	.home-tip-match{flex-basis:100%}
	.home-tip-odds-wrap{flex-direction:row;align-items:center;gap:10px;margin-left:52px}
	.home-tip-more{margin-left:auto}
}

/* the whole tip opens its own page (scripts/tips.js); the odds still go to the bookmaker */
.home-tip[data-tip-url]{cursor:pointer}
