/*
Theme Name: Rehub Voucher
Theme URI: https://yourwebsite.co.uk
Description: Lightweight Rehub child theme optimised for voucher & offer listings
Author: Steve
Author URI: https://yourwebsite.co.uk
Template: rehub-theme
Version: 1.0
*/

/* Do NOT @import the parent CSS here */

.rv-crumbbar{
  margin:0 0 12px;
  font-weight:800;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.04em;
}

.rv-crumbbar--center{
  text-align:left;
}

.rv-crumbbar a{
  text-decoration:none;
}

.rv-crumbbar .sep{
  opacity:.55;
  margin:0 6px;
}


.rv-offer-card{
  display:flex;
  gap:12px;
  justify-content:space-between;
  padding:14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#fff;
}

.rv-offer-main{ flex:1; min-width:0; }

.rv-offer-brand{
  font-weight:800;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.04em;
  opacity:.7;
  margin-bottom:6px;
}

.rv-offer-title{
  margin:0 0 10px;
  font-size:16px;
}

.rv-offer-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.rv-code-pill,
.rv-deal-pill{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  border:1px solid rgba(0,0,0,.12);
  background:#f7f7f7;
}

.rv-expiry{
  font-size:12px;
  opacity:.7;
}

.rv-offer-cta{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:140px;
}

.rv-btn{
  padding:10px 12px;
  border-radius:12px;
  font-weight:800;
  text-align:center;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.2);
}

.rv-copy{
  padding:10px 12px;
  border-radius:12px;
  font-weight:800;
  background:#fff;
  border:1px dashed rgba(0,0,0,.25);
  cursor:pointer;
}

@media (max-width:640px){
  .rv-offer-card{ flex-direction:column; }
  .rv-offer-cta{ flex-direction:row; }
  .rv-btn, .rv-copy{ flex:1; }
}



/* VoucherCodes-style offer cards */
.rv2-card{
  display:flex;
  gap:16px;
  align-items:stretch;
  padding:16px;
  border:1px solid rgba(0,0,0,.12);
  border-radius:14px;
  background:#fff;
}

.rv2-left{ flex:0 0 auto; display:flex; align-items:flex-start; }
.rv2-logo{
  width:65px; height:65px;
  border-radius:12px;
  object-fit:cover;
  border:1px solid rgba(0,0,0,.10);
  background:#fff;
}
.rv2-logo--fallback{
  width:56px;height:56px;
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.10);
  background:#f3f3f3;
}

.rv2-mid{ flex:1; min-width:0; }
.rv2-title{
  margin:0 0 6px;
  font-size:18px;
  line-height:1.25;
  font-weight:800;
}

.rv2-ends{
  display:inline-block;
  padding:4px 10px;
  border-radius:8px;
  font-size:12px;
  background:rgba(0,0,0,.05);
  border:1px solid rgba(0,0,0,.08);
  margin-bottom:8px;
}

.rv2-desc{
  margin:6px 0 10px;
  font-size:13px;
  line-height:1.35;
  opacity:.85;
}

.rv2-code{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:10px 12px;
  border-radius:10px;
  border:2px dashed rgba(0,160,160,.35);
  background:rgba(0,160,160,.06);
  cursor:pointer;
  font-weight:900;
}
.rv2-codehint{
  font-weight:700;
  opacity:.7;
  font-size:12px;
}

.rv2-right{
  flex:0 0 190px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  justify-content:flex-start;
  gap:10px;
}
.rv2-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:120px;
  padding:10px 12px;
  border-radius:12px;
  font-weight:900;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.18);
  background:#0b74b8;
  color:#fff;
}
.rv2-viewall{
  font-weight:800;
  text-decoration:none;
  font-size:13px;
}

@media (max-width: 720px){
  .rv2-card{ flex-direction:column; }
  .rv2-right{ flex:0 0 auto; align-items:flex-start; }
  .rv2-btn{ width:100%; }
}


@media (max-width: 720px){
  .rv2-left{ justify-content:center; width:100%; }
  .rv2-mid{ text-align:center; }
  .rv2-title{ text-align:center; }
  .rv2-meta{ text-align:center; }
}

.rv2-ends.is-urgent{
  background: rgba(220, 0, 0, .10);
  border-color: rgba(220, 0, 0, .22);
  color: #b30000;
  font-weight: 900;
}

.rv2-ends.is-ok{
  background: rgba(0, 160, 0, .10);
  border-color: rgba(0, 160, 0, .22);
  color: #0b6b0b;
  font-weight: 800;
}


.rv-brand-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
}

.rv-brand-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border:1px solid rgba(0,0,0,.10);
  border-radius:14px;
  text-decoration:none;
  background:#fff;
}

.rv-brand-logo{
  width:44px;
  height:44px;
  border-radius:10px;
  object-fit:contain;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
}

.rv-brand-logo--fallback{
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.rv-brand-name{
  font-weight:800;
  line-height:1.1;
}

.rv-brand-pager{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-top:10px;
  font-weight:800;
  text-transform:uppercase;
  font-size:12px;
}

.rv-brand-pagebtn{
  text-decoration:none;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
}

.rv-brand-pagepos{
  opacity:.75;
}

@media (max-width: 520px){
  .rv-brand-grid{ grid-template-columns:1fr 1fr; }
}

.rv-brand-item:hover{
  box-shadow:0 4px 14px rgba(0,0,0,.08);
  transform:translateY(-1px);
}


.rv-brand-item{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 2px 10px rgba(0,0,0,.06);
}


.rv2-card{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 3px 14px rgba(0,0,0,.07);
}


.rv2-btn,
.rv-brand-pagebtn{
  box-shadow:0 2px 6px rgba(0,0,0,.10);
}


.rv2-code{
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.35),
             0 1px 4px rgba(0,0,0,.08);
}


@media (max-width: 720px){
  .rv2-viewall{
    width:100%;
    text-align:center;
  }
}


.rv-pagination{
  margin-top:16px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

.rv-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.12);
  text-decoration:none;
  font-weight:800;
  background:#fff;
}

.rv-pagination .page-numbers.current{
  font-weight:900;
  font-size:16px;
  border-color: rgba(0,0,0,.22);
}

.rv-pagination .page-numbers.next,
.rv-pagination .page-numbers.prev{
  font-weight:900;
  font-size:15px;
}



/* Related Categories box */
.rv-related-box{
  margin:18px 0 0;
  padding:14px;
  border:1px solid rgba(0,0,0,.08);
  border-radius:14px;
  background:#f6f7f8;
  box-shadow:0 3px 14px rgba(0,0,0,.07);
}

.rv-related-title{
  margin:0 0 6px;
  font-size:20px;
  font-weight:900;
}

.rv-related-parent{
  font-size:14px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.04em;
  opacity:.7;
  margin:0 0 10px;
}

.rv-related-pills{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.rv-related-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#ffffff;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
}

.rv-related-pill:hover{
  background:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.08);
  transform:translateY(-1px);
}


/* Centered Browse Categories box */
.rv-related-box{
  margin:22px auto 0;              /* center the box itself */
  text-align:center;               /* center all text */
}

/* Center the pills row */
.rv-related-pills{
  justify-content:center;          /* center pills horizontally */
}

/* Center parent label text */
.rv-related-parent{
  text-align:center;
}

/* Optional: make title feel more premium when centered */
.rv-related-title{
  text-align:center;
}



/* Home hero */
.rv-home-hero{ margin:0 0 14px; }
.rv-home-hero-inner{
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  background:#f5f6f7;
  background-size:cover;
  background-position:center;
  min-height:220px;
  box-shadow:0 3px 14px rgba(0,0,0,.06);
}

.rv-home-hero-overlay{
  padding:20px;
  background:linear-gradient(
    180deg,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.35) 100%
  );
}



.rv-home-hero-title,
.rv-home-hero-sub{
  color:#fff;
  margin-bottom:18px; /* increase space before button */
}

.rv-home-hero-btn{
  display:inline-flex; gap:8px; align-items:center;
  padding:10px 14px;
  border-radius:12px;
  background:#fff;
  color:#111 !important;
  text-decoration:none;
  font-weight:900;
}

/* Top offers header */
.rv-home-top{ margin-top:14px; }
.rv-home-top-head{ display:flex; align-items:end; justify-content:space-between; margin:0 0 10px; }
.rv-home-top-title{ margin:0; font-size:20px; font-weight:900; }

/* Offer cards */
.rv-home-offer-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
@media (min-width:768px){
  .rv-home-offer-grid{ grid-template-columns:repeat(2, 1fr); }
}
@media (min-width:1024px){
  .rv-home-offer-grid{ grid-template-columns:repeat(3, 1fr); }
}

.rv-home-offer{
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
  background:#fff;
  box-shadow:0 3px 14px rgba(0,0,0,.06);
}

.rv-home-offer-media{
  position:relative;
  display:block;
  height:170px;
  background:#f5f6f7;
  background-size:cover;
  background-position:center;
  text-decoration:none;
}

.rv-home-offer-logo{
  position:absolute;
  left:12px;
  bottom:12px;
  width:80px;
  height:80px;
  object-fit:contain;      /* keep logo proportions */
  border-radius:12px;
  background:transparent;  /* REMOVE white background */
  border:0;                /* REMOVE border */
  padding:0;               /* REMOVE padding */
}


.rv-home-offer-badge{
  position:absolute;
  right:12px;
  top:12px;
  font-weight:900;
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(0,0,0,.10);
}

.rv-home-offer-body{ padding:12px; }
.rv-home-offer-brand{ font-weight:900; font-size:12px; letter-spacing:.04em; text-transform:uppercase; opacity:.75; }
.rv-home-offer-brand a{ text-decoration:none; }
.rv-home-offer-title{ margin:6px 0 6px; font-size:16px; font-weight:900; }
.rv-home-offer-desc{ margin:0 0 10px; opacity:.85; font-weight:700; }

.rv-home-offer-actions{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; }

.rv-home-offer-btn{
  display:inline-flex;
  align-items:center;
  padding:10px 12px;
  border-radius:12px;
  background:#0b74b8;
  color:#fff !important;
  text-decoration:none;
  font-weight:900;
}

/* Make the code button match home cards */
.rv-home-code{
  padding:10px 12px;
  border-radius:12px;
  border:1px dashed rgba(0,0,0,.25);
  background:#f5f6f7;
  font-weight:900;
}

/* Front page: logo + badge should not feel clickable */
.rv-home-offer-logo,
.rv-home-offer-badge{
  pointer-events:none;
}

/* Title link looks like text */
.rv-home-offer-titlelink{
  color:inherit;
  text-decoration:none;
}
.rv-home-offer-titlelink:hover{
  text-decoration:underline;
}


.rv-front-intro {
  background: #f7f9fc;
  border-bottom: 1px solid #e6e9ef;
}

.rv-front-intro-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 48px;
  text-align: center;
}

.rv-front-intro-title {
  font-size: 28px;
  line-height: 1.2;
  margin: 0 0 8px;
  font-weight: 800;
}

.rv-front-intro-text {
  font-size: 15px;
  color: #555;
  max-width: 760px;
  margin: 0 auto;
}

/* Expired / missed deals styling */
.rv2-card.is-expired {
  opacity: 0.6;
  filter: grayscale(1);
  background: #f2f2f2;
  border-color: rgba(0,0,0,.10);
}

.rv2-card.is-expired .rv2-btn {
  background: #888 !important;
  pointer-events: none;
  cursor: default;
}

.rv2-card.is-expired .rv2-viewall,
.rv2-card.is-expired .rv2-desc {
  opacity: 0.85;
}


/* Expired / missed deals styling (force) */
.rv2-card.is-expired {
  opacity: 0.55 !important;
  filter: grayscale(1) !important;
  background: #f2f2f2 !important;
  border-color: rgba(0,0,0,.12) !important;
}

.rv2-card.is-expired * {
  opacity: 0.95;
}

.rv2-card.is-expired .rv2-btn {
  background: #888 !important;
  pointer-events: none !important;
  cursor: default !important;
}

.rv2-card.is-expired .rv2-code {
  pointer-events: none !important;
  opacity: 0.7 !important;
}

/* ===============================
   SEO CONTENT (Page Editor)
   =============================== */

.rv-seo-inner p {
  margin: 0 0 14px;
}

.rv-seo-inner h2,
.rv-seo-inner h3,
.rv-seo-inner h4 {
  margin: 18px 0 10px;
}

.rv-seo-inner ul,
.rv-seo-inner ol {
  margin: 0 0 14px 22px;
}

/* ===============================
   Yoast FAQ Block Styling
   =============================== */

.rv-seo-inner .schema-faq-section {
  padding: 12px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 10px;
  margin: 0 0 12px;
  background: #fff;
}

.rv-seo-inner .schema-faq-question {
  display: block;
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 8px;
}

.rv-seo-inner .schema-faq-answer {
  margin: 0;
  line-height: 1.7;
  opacity: .9;
}

