/* ═══════════════════════════════════════════════════════════
   Tipster.news — Custom home v3 (front-page.php). Mobile-first.
   Per-section colour accents via --acc / --chip / --tint.
   ═══════════════════════════════════════════════════════════ */
.tn-home{--n:#0B1C31;--n2:#162B46;--blue:#00B1FF;--lime:#CBFF00;background:#f5f8fc;}
.tn-home *{box-sizing:border-box;}
.tn-wrap{max-width:1200px;margin:0 auto;padding:0 20px;}

/* ── HERO ── */
.tn-hero{background:radial-gradient(120% 120% at 85% 0%,#1e3a5f 0%,#122842 45%,#0B1C31 100%);color:#fff;padding:40px 0 44px;}
.tn-hero__grid{display:grid;grid-template-columns:1fr;gap:30px;align-items:center;}
.tn-hero__eyebrow{margin:0 0 12px;font-size:12px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;color:var(--blue);}
.tn-hero h1{margin:0;font-size:clamp(28px,7vw,44px);line-height:1.12;font-weight:800;letter-spacing:-.5px;color:#fff;}
.tn-hero__sub{margin:16px 0 24px;max-width:56ch;font-size:clamp(15px,4vw,17px);line-height:1.55;color:rgba(255,255,255,.8);}
.tn-hero__cta{display:flex;flex-wrap:wrap;gap:12px;}
.tn-btn{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:13px 24px;border-radius:12px;font-size:15px;font-weight:700;text-decoration:none;border:2px solid transparent;transition:transform .15s ease,background .15s ease;}
.tn-btn:hover{transform:translateY(-2px);}
.tn-btn--primary{background:var(--lime);color:var(--n);box-shadow:0 8px 22px rgba(203,255,0,.3);}
.tn-btn--primary:hover{background:#d8ff33;color:var(--n);}
.tn-btn--light{background:#fff;color:var(--n);}
.tn-btn--light:hover{background:#eaf6ff;color:var(--n);}
.tn-btn--outline{background:transparent;color:#fff;border-color:rgba(255,255,255,.75);}
.tn-btn--outline:hover{background:rgba(255,255,255,.14);color:#fff;}
.tn-hero__stats{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,1fr);gap:18px 12px;max-width:440px;}
.tn-hero__stats li{display:flex;flex-direction:column;gap:2px;}
.tn-hero__stats strong{font-size:26px;font-weight:800;color:var(--lime);line-height:1;}
.tn-hero__stats span{font-size:12px;color:rgba(255,255,255,.62);}

/* featured news card */
.tn-hero__feat{display:block;background:#fff;border-radius:16px;overflow:hidden;text-decoration:none;color:inherit;box-shadow:0 24px 55px rgba(0,0,0,.4);transition:transform .2s ease;}
.tn-hero__feat:hover{transform:translateY(-4px);color:inherit;text-decoration:none;}
.tn-hero__feat-media{position:relative;aspect-ratio:16/9;background:#16283f;overflow:hidden;}
.tn-hero__feat-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease;}
.tn-hero__feat:hover .tn-hero__feat-media img{transform:scale(1.04);}
.tn-hero__feat-tag{position:absolute;top:12px;left:12px;background:var(--lime);color:var(--n);font-size:11px;font-weight:800;padding:5px 12px;border-radius:20px;letter-spacing:.5px;text-transform:uppercase;}
.tn-hero__feat-body{padding:16px 18px 18px;}
.tn-hero__feat-kicker{display:block;font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--blue);margin-bottom:7px;}
.tn-hero__feat-title{display:block;font-size:18px;font-weight:800;line-height:1.3;color:var(--n);margin-bottom:8px;}
.tn-hero__feat:hover .tn-hero__feat-title{color:var(--blue);}
.tn-hero__feat-exc{display:block;font-size:13.5px;line-height:1.55;color:#5a6b7d;margin-bottom:12px;}
.tn-hero__feat-cta{display:inline-block;font-size:13.5px;font-weight:700;color:var(--blue);}

/* ── SECTIONS (colour-coded) ── */
.tn-sec{background:var(--tint,#fff);padding:36px 0;}
.tn-sec__head{display:flex;align-items:flex-start;gap:15px;margin-bottom:22px;}
.tn-sec__ico{flex:0 0 auto;width:50px;height:50px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:var(--chip,#e6f2fb);color:var(--acc,#0091cc);box-shadow:0 6px 16px rgba(11,28,49,.10);}
.tn-sec__ico svg{display:block;}
.tn-sec__headtext{min-width:0;}
.tn-sec__head h2{margin:0;font-size:clamp(21px,5.5vw,29px);font-weight:800;letter-spacing:-.4px;color:var(--n);line-height:1.16;}
.tn-sec__head h2::after{content:"";display:block;width:46px;height:4px;border-radius:3px;background:var(--acc,#0091cc);margin-top:9px;}
.tn-sec__intro{margin:11px 0 0;font-size:14.5px;line-height:1.55;color:#566677;max-width:66ch;}

/* ── CAROUSEL (all sections) ── */
.tn-carousel .tn-home-grid,
.tn-carousel .home-tipsters-grid{
	display:flex !important;flex-wrap:nowrap !important;justify-content:flex-start !important;
	overflow-x:auto;gap:16px;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;padding:4px 2px 14px;margin:0;}
.tn-carousel .tn-home-grid::-webkit-scrollbar,
.tn-carousel .home-tipsters-grid::-webkit-scrollbar{height:6px;}
.tn-carousel .tn-home-grid::-webkit-scrollbar-thumb,
.tn-carousel .home-tipsters-grid::-webkit-scrollbar-thumb{background:var(--acc,rgba(11,28,49,.2));opacity:.4;border-radius:3px;}
.tn-carousel .tn-home-grid > a,
.tn-carousel .home-tipsters-grid > .htc{
	flex:0 0 270px !important;width:270px !important;min-width:270px !important;max-width:270px !important;scroll-snap-align:start;}
@media(max-width:560px){
	.tn-carousel .tn-home-grid > a,
	.tn-carousel .home-tipsters-grid > .htc{flex-basis:82% !important;width:82% !important;min-width:82% !important;max-width:82% !important;}
}

/* View-all button under each carousel (uses section accent on hover) */
.tn-sec__all{display:flex;align-items:center;justify-content:center;gap:8px;width:fit-content;margin:8px auto 0;
	padding:13px 26px;border-radius:12px;background:var(--n);color:#fff;font-size:14.5px;font-weight:700;text-decoration:none;
	transition:background .15s ease,gap .15s ease,transform .15s ease;}
.tn-sec__all:hover{background:var(--acc,#00B1FF);color:#fff;gap:12px;transform:translateY(-2px);}
.tn-sec__all span{transition:transform .15s ease;}

/* ── Desktop ── */
@media (min-width:900px){
	.tn-hero{padding:58px 0 60px;}
	.tn-hero__grid{grid-template-columns:1.05fr .95fr;gap:46px;}
	.tn-hero__stats{display:flex;gap:40px;max-width:none;margin-top:34px;}
	.tn-hero__stats strong{font-size:30px;}
	.tn-sec{padding:56px 0;}
	.tn-sec__ico{width:54px;height:54px;border-radius:15px;}
}

/* ── Fix: force white text on View-all buttons (override global a{} link colour) ── */
.tn-home a.tn-sec__all,
.tn-home a.tn-sec__all:link,
.tn-home a.tn-sec__all:visited,
.tn-home a.tn-sec__all:hover,
.tn-home a.tn-sec__all:focus{color:#fff !important;}
.tn-home a.tn-sec__all span{color:#fff !important;}

/* ── Fix: force hero button text colours over global a{} ── */
.tn-home a.tn-btn--outline,
.tn-home a.tn-btn--outline:link,
.tn-home a.tn-btn--outline:visited,
.tn-home a.tn-btn--outline:hover,
.tn-home a.tn-btn--outline:focus{color:#fff !important;}
.tn-home a.tn-btn--primary,
.tn-home a.tn-btn--primary:link,
.tn-home a.tn-btn--primary:visited,
.tn-home a.tn-btn--light,
.tn-home a.tn-btn--light:link,
.tn-home a.tn-btn--light:visited{color:#0B1C31 !important;}
