/* Premium homepage layer. Loaded on the front page only.
   Rules under body.rto-home-premium apply only when Premium layout is on.
   Rules not under that class are opt-in features (review badge, image cards). */

/* ---- Hero review badge (opt-in setting) ---- */
.hero-review-badge{display:inline-flex;align-items:center;gap:10px;margin:0 0 14px;padding:8px 16px;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.28);color:#fff;font-size:.875rem;font-weight:600;text-decoration:none;backdrop-filter:blur(4px);max-width:100%}
.hero-review-badge:hover{background:rgba(255,255,255,.2);color:#fff}
.hero-review-badge .hrb-stars{color:#fbbf24;letter-spacing:2px;font-size:.9rem;white-space:nowrap}
.hero-review-badge .hrb-text{min-width:0}
.hero-content .hero-review-badge{display:flex;width:max-content;max-width:100%;margin-left:auto;margin-right:auto}

/* ---- Why Choose Us: image + text cards (opt-in style) ---- */
.why-cards{display:grid;gap:18px;max-width:900px;margin:0 auto}
.why-card{display:grid;grid-template-columns:260px minmax(0,1fr);background:#fff;border:1px solid var(--gray-200,#e2e8f0);border-radius:18px;overflow:hidden}
.why-card.no-img{grid-template-columns:1fr}
.why-img{min-height:190px;position:relative;background:var(--primary-100,#dbeafe)}
.why-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.why-body{padding:24px 28px;display:flex;flex-direction:column;gap:10px;min-width:0}
.why-body h3{margin:0;font-size:1.25rem;color:var(--primary-600,#2563eb)}
.why-body p{margin:0;color:var(--gray-600,#475569);font-size:.95rem}
.why-hl{background:var(--primary-100,#dbeafe);color:var(--primary-900,#1e3a8a);border-radius:10px;padding:11px 14px;font-weight:600;font-size:.9rem;display:flex;gap:9px;align-items:flex-start}
.why-body .why-note{font-size:.78rem;font-style:italic;color:var(--gray-500,#64748b)}
@media (max-width:700px){.why-card{grid-template-columns:1fr}.why-img{min-height:0;aspect-ratio:16/9}.why-body{padding:20px}}

/* ---- Premium polish on existing sections ---- */
.rto-home-premium .hero-title{letter-spacing:-.02em;text-wrap:balance}
.rto-home-premium .hero-subtitle{text-wrap:pretty}
.rto-home-premium .stats-container{border-radius:24px;box-shadow:0 30px 60px -30px rgba(15,23,42,.45);border:1px solid var(--gray-200,#e2e8f0)}
.rto-home-premium .section-header h2{letter-spacing:-.02em;text-wrap:balance}
.rto-home-premium .course-card,.rto-home-premium .testimonial-card,.rto-home-premium .feature-card{border-radius:18px;transition:transform .2s,box-shadow .2s}
.rto-home-premium .course-card:hover,.rto-home-premium .testimonial-card:hover,.rto-home-premium .feature-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px -22px rgba(15,23,42,.35)}
.rto-home-premium .industries-section{background:#fff}

/* ---- New sections ---- */
.rh-section{padding:5.5rem 0}
.rh-section:nth-of-type(even){background:var(--gray-50,#f8fafc)}
.rh-head{margin-bottom:2.75rem}
.rh-btn,.rh-btn-sm{display:inline-flex;align-items:center;font-weight:700;border-radius:12px;text-decoration:none;transition:transform .15s}
.rh-btn{padding:14px 24px;background:var(--accent,var(--rto-accent,#f97316));color:#111;margin-top:22px}
.rh-btn-sm{padding:9px 14px;font-size:.8125rem;border:1.5px solid var(--primary-600,#2563eb);color:var(--primary-600,#2563eb)}
.rh-btn:hover,.rh-btn-sm:hover{transform:translateY(-2px)}
.rh-btn-sm:hover{background:var(--primary-600,#2563eb);color:#fff}
.rh-more{text-align:center;margin:26px 0 0}
/* how it works */
.rh-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:20px;counter-reset:s}
.rh-steps li{background:#fff;border:1px solid var(--gray-200,#e2e8f0);border-radius:16px;padding:24px;counter-increment:s;min-width:0}
.rh-steps li::before{content:counter(s);display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--primary-600,#2563eb);color:#fff;font-weight:800;margin-bottom:14px}
.rh-steps h3{margin:0 0 6px;font-size:1.0625rem}.rh-steps p{margin:0;font-size:.875rem;color:var(--gray-600,#475569)}
/* intakes table */
.rh-table-wrap{border:1px solid var(--gray-200,#e2e8f0);border-radius:16px;background:#fff;overflow-x:auto}
.rh-table{width:100%;border-collapse:collapse;font-size:.9rem}
.rh-table th{text-align:left;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--gray-500,#64748b);padding:14px 18px;background:var(--gray-50,#f8fafc)}
.rh-table td{padding:16px 18px;border-top:1px solid var(--gray-200,#e2e8f0);font-variant-numeric:tabular-nums}
.rh-table td:last-child{text-align:right}
@media (max-width:700px){
 .rh-table-wrap{border:0;background:transparent;overflow:visible}.rh-table,.rh-table tbody{display:block}.rh-table thead{display:none}
 .rh-table tr{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;background:#fff;border:1px solid var(--gray-200,#e2e8f0);border-radius:14px;padding:16px;margin-bottom:12px}
 .rh-table td{border:0;padding:0}.rh-table td:first-child{width:100%;font-size:1rem}.rh-table td:last-child{margin-left:auto}
}
/* fees + funding */
.rh-pay-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:24px}
.rh-pay-card{border-radius:20px;padding:34px;background:#fff;border:1px solid var(--gray-200,#e2e8f0);min-width:0}
.rh-pay-card.dark{background:var(--secondary,var(--gray-900,#0f172a));color:#f1f5ff;border:0}
.rh-pay-card h3{margin:0 0 10px;font-size:1.4rem;color:inherit}.rh-pay-card p{margin:0;color:inherit;opacity:.85}
.rh-opts{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:22px}
.rh-opt{background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);border-radius:12px;padding:14px}
.rh-opt b{display:block;font-size:1.25rem}.rh-opt span{font-size:.75rem;opacity:.8}
.rh-ticks{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:11px}
.rh-ticks li{display:flex;gap:10px;align-items:flex-start;font-size:.95rem}
.rh-ticks i{flex:none;width:22px;height:22px;border-radius:50%;background:var(--success,var(--rto-success,#10b981));color:#fff;display:grid;place-items:center;font-size:12px;font-style:normal;margin-top:1px}
.rh-note{font-size:.78rem!important;font-style:italic;margin-top:16px!important;color:var(--gray-500,#64748b)!important;opacity:1!important}
@media (max-width:900px){.rh-pay-grid{grid-template-columns:1fr}.rh-opts{grid-template-columns:1fr}.rh-steps{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.rh-steps{grid-template-columns:1fr}}
/* trainers + blog */
.rh-people{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.rh-person,.rh-post{display:block;background:#fff;border:1px solid var(--gray-200,#e2e8f0);border-radius:16px;overflow:hidden;text-decoration:none;color:inherit;min-width:0;transition:transform .2s,box-shadow .2s}
.rh-person:hover,.rh-post:hover{transform:translateY(-4px);box-shadow:0 18px 40px -22px rgba(15,23,42,.35)}
.rh-ph{aspect-ratio:1/1;background:var(--primary-100,#dbeafe);position:relative;display:grid;place-items:center;overflow:hidden}
.rh-ph img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.rh-init{font-size:2.5rem;font-weight:800;color:var(--primary-600,#2563eb)}
.rh-pi{padding:16px}.rh-pi h3{margin:0;font-size:1rem}.rh-pi p{margin:4px 0 0;font-size:.8125rem;color:var(--gray-500,#64748b)}.rh-pi small{color:var(--gray-500,#64748b);font-size:.78rem}
.rh-posts{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.rh-post .rh-ph{aspect-ratio:16/9}.rh-post .rh-pi{display:grid;gap:6px}
@media (max-width:900px){.rh-people{grid-template-columns:1fr 1fr}.rh-posts{grid-template-columns:1fr}}
@media (max-width:560px){.rh-section{padding:3.5rem 0}.rh-post{display:grid;grid-template-columns:104px 1fr}.rh-post .rh-ph{aspect-ratio:auto;height:100%;min-height:96px}.rh-post .rh-pi{align-content:center}}
@media (prefers-reduced-motion:reduce){.rto-home-premium *{transition:none!important}}

/* ================= Premium look (visible upgrade, premium layout only) ================= */
/* Hero: more air, bigger type, nothing clipped by the floating stats card */
.rto-home-premium .hero-section{min-height:0;padding:5.5rem 0 9rem}
.rto-home-premium .hero-title{font-size:clamp(2.25rem,5vw,3.75rem);line-height:1.08;font-weight:800}
.rto-home-premium .hero-subtitle{font-size:clamp(1rem,1.6vw,1.2rem);max-width:62ch;margin-left:auto;margin-right:auto;opacity:.92}
.rto-home-premium .hero-badge{background:rgba(255,255,255,.12)!important;border:1px solid rgba(255,255,255,.28)!important;backdrop-filter:blur(6px)}
.rto-home-premium .hero-search{margin:2rem auto!important;max-width:680px!important}
.rto-home-premium .hero-search-form{border-radius:16px!important;padding:6px;box-shadow:0 28px 60px -24px rgba(0,0,0,.65)!important}
.rto-home-premium .hero-search-form input{padding:1.1rem 1rem 1.1rem 3.5rem!important;font-size:1.05rem!important}
.rto-home-premium .hero-search-btn{border-radius:12px!important;padding:0 2rem!important}
.rto-home-premium .hero-search-form:focus-within{outline:3px solid var(--accent,#f97316)}
.rto-home-premium .hero-buttons,.rto-home-premium .hero-cta{margin-top:1.5rem}

/* Stats: one confident row */
.rto-home-premium .stats-section{margin-top:-5.5rem;background:transparent}
.rto-home-premium .stats-container{max-width:1120px;padding:1.75rem 1.5rem}
.rto-home-premium .stats-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.rto-home-premium .stat-item{padding:.75rem 1rem}
.rto-home-premium .stat-icon{width:48px;height:48px;margin-bottom:.75rem;border-radius:14px}
.rto-home-premium .stat-number{font-size:2rem}
.rto-home-premium .stat-label{font-size:.72rem}
@media (max-width:767px){.rto-home-premium .hero-section{padding:3.5rem 0 8rem}.rto-home-premium .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rto-home-premium .stat-item:not(:last-child)::after{display:none}.rto-home-premium .stats-container{padding:1rem}}

/* Section rhythm and headings */
.rto-home-premium .section{padding:5rem 0}
.rto-home-premium .section-header{margin-bottom:3rem}
.rto-home-premium .section-header h2{font-size:clamp(1.75rem,3.4vw,2.5rem);font-weight:800}
.rto-home-premium .section-badge{background:var(--primary-100);color:var(--primary-700,var(--primary-600));letter-spacing:.08em}
.rto-home-premium .features-section{background:var(--gray-50,#f8fafc)}
.rto-home-premium .rh-intakes,.rh-pay,.rto-home-premium .rh-gallery{background:#fff}
.rto-home-premium .rh-how,.rto-home-premium .rh-trainers,.rto-home-premium .rh-blog{background:var(--gray-50,#f8fafc)}
.rto-home-premium .rh-section:nth-of-type(even){background:inherit}
.rto-home-premium .rh-pay{background:#fff}
@media (max-width:767px){.rto-home-premium .section,.rto-home-premium .rh-section{padding:3.25rem 0}.rto-home-premium .section-header{margin-bottom:2rem}}

/* Why Choose Us (icons style): four across on desktop */
@media (min-width:1100px){.rto-home-premium .features-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.rto-home-premium .feature-card{border:1px solid var(--gray-200,#e2e8f0);box-shadow:none}

/* Course + testimonial cards */
.rto-home-premium .course-card{border:1px solid var(--gray-200,#e2e8f0);box-shadow:0 1px 2px rgba(15,23,42,.04)}
.rto-home-premium .testimonial-card{border:1px solid var(--gray-200,#e2e8f0);box-shadow:none}

/* Final call to action */
.rto-home-premium .cta-section{padding:5rem 0}
.rto-home-premium .cta-section h2{font-size:clamp(1.75rem,3.6vw,2.6rem);letter-spacing:-.02em}

/* Phone refinements */
@media (max-width:767px){
 .rto-home-premium .stat-item{display:block!important;text-align:center;padding:.75rem .5rem}
 .rto-home-premium .stat-icon{margin:0 auto .5rem!important}
 .rto-home-premium .stat-number{font-size:1.6rem}
 .rto-home-premium .stat-label{display:block;font-size:.66rem;letter-spacing:.06em}
 .rto-home-premium .hero-search-form{flex-direction:column!important;gap:6px;padding:6px!important}
 .rto-home-premium .hero-search-input-wrap{width:100%}
 .rto-home-premium .hero-search-btn{width:100%;padding:.95rem 1.25rem!important}
}

/* Few items? Centre them instead of leaving empty columns on the right */
.rto-home-premium .industries-grid,.rto-home-premium .courses-grid,.rto-home-premium .rh-people,.rto-home-premium .rh-posts{display:flex;flex-wrap:wrap;justify-content:center;gap:22px}
.rto-home-premium .industries-grid>*{flex:0 1 260px}
.rto-home-premium .courses-grid>*{flex:1 1 320px;max-width:420px}
.rto-home-premium .rh-people>*{flex:0 1 240px}
.rto-home-premium .rh-posts>*{flex:1 1 300px;max-width:380px}
@media (max-width:640px){.rto-home-premium .industries-grid>*,.rto-home-premium .courses-grid>*,.rto-home-premium .rh-posts>*{flex-basis:100%;max-width:none}.rto-home-premium .rh-people>*{flex-basis:calc(50% - 11px)}}

/* Industries: centre when there are only a few (base rule is !important) */
.rto-home-premium .industries-grid{display:flex!important;flex-wrap:wrap!important;justify-content:center!important;gap:22px!important}
.rto-home-premium .industries-grid>*{flex:0 1 260px!important}
@media (max-width:480px){.rto-home-premium .industries-grid>*{flex-basis:100%!important}}

/* Premium FAQ: one focused column, soft cards, clear open state (overrides the inline styles) */
.rto-home-premium .faq-section{background:var(--gray-50,#f8fafc)!important}
.rto-home-premium .faq-grid{display:flex!important;flex-direction:column!important;gap:12px!important;max-width:860px;margin:0 auto}
.rto-home-premium .faq-column{display:contents!important}
.rto-home-premium .faq-item{background:#fff!important;border:1px solid #e2e8f0!important;border-radius:16px!important;box-shadow:0 1px 2px rgba(15,23,42,.04);transition:box-shadow .2s,border-color .2s!important}
.rto-home-premium .faq-item:hover{border-color:#cbd5e1!important;box-shadow:0 6px 18px rgba(15,23,42,.07)}
.rto-home-premium .faq-item:has(.faq-question[aria-expanded="true"]){border-color:var(--primary,#1e3a8a)!important;box-shadow:0 10px 28px rgba(15,23,42,.10)}
.rto-home-premium .faq-question{padding:1.35rem 1.6rem!important;font-size:1.0625rem!important;font-weight:700!important;line-height:1.4;color:#0f172a!important}
.rto-home-premium .faq-question .faq-icon{width:34px!important;height:34px!important;padding:8px;border-radius:50%;background:#eef2f7;color:var(--primary,#1e3a8a)!important}
.rto-home-premium .faq-question[aria-expanded="true"] .faq-icon{background:var(--primary,#1e3a8a);color:#fff!important}
.rto-home-premium .faq-answer-content{padding:0 1.6rem 1.6rem!important;font-size:1rem!important;line-height:1.75!important;color:#475569!important}
.rto-home-premium .faq-answer-content>*:first-child{margin-top:0}
@media (max-width:640px){.rto-home-premium .faq-question{padding:1.1rem 1.1rem!important;font-size:1rem!important}.rto-home-premium .faq-answer-content{padding:0 1.1rem 1.3rem!important}}

/* Why study with us: wide, alternating image + text rows */
.rto-home-premium .why-cards{max-width:1180px;gap:28px;counter-reset:why}
.rto-home-premium .why-card{grid-template-columns:44% minmax(0,1fr);border-radius:24px;border:1px solid #e2e8f0;box-shadow:0 18px 50px -24px rgba(15,23,42,.22);counter-increment:why;transition:transform .25s,box-shadow .25s}
.rto-home-premium .why-card:hover{transform:translateY(-3px);box-shadow:0 26px 60px -24px rgba(15,23,42,.3)}
.rto-home-premium .why-card.no-img{grid-template-columns:1fr}
.rto-home-premium .why-card:nth-child(even):not(.no-img){grid-template-columns:minmax(0,1fr) 44%}
.rto-home-premium .why-card:nth-child(even) .why-img{order:2}
.rto-home-premium .why-img{min-height:340px}
.rto-home-premium .why-img::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(15,23,42,.18))}
.rto-home-premium .why-body{padding:clamp(28px,4vw,52px);gap:14px;justify-content:center}
.rto-home-premium .why-body::before{content:"0" counter(why);font-size:.8rem;font-weight:800;letter-spacing:.14em;color:var(--primary-600,#2563eb);display:inline-flex;align-items:center;gap:10px}
.rto-home-premium .why-body::before{background:none}
.rto-home-premium .why-body h3{font-size:clamp(1.4rem,2.4vw,1.85rem);line-height:1.2;color:#0f172a}
.rto-home-premium .why-body p{font-size:1.05rem;line-height:1.75}
.rto-home-premium .why-hl{border-radius:14px;padding:14px 18px;font-size:.98rem;margin-top:4px}
@media (max-width:900px){.rto-home-premium .why-card,.rto-home-premium .why-card:nth-child(even):not(.no-img){grid-template-columns:1fr}.rto-home-premium .why-card:nth-child(even) .why-img{order:0}.rto-home-premium .why-img{min-height:0;aspect-ratio:16/10}.rto-home-premium .why-body{padding:24px 20px}.rto-home-premium .why-card{border-radius:20px}}
