/* ═══════════════════════════════════════════
   ReviewHosting Modern Theme – Global Styles
   ═══════════════════════════════════════════ */

/* ── Variables ── */
:root {
  --rh-primary:#22c55e; --rh-primary-dark:#16a34a;
  --rh-primary-light:#dcfce7; --rh-primary-glow:rgba(34,197,94,0.15);
  --rh-dark:#0f172a;
  --rh-g50:#f8fafc; --rh-g100:#f1f5f9; --rh-g200:#e2e8f0;
  --rh-g300:#cbd5e1; --rh-g400:#94a3b8; --rh-g500:#64748b;
  --rh-g600:#475569; --rh-g700:#334155; --rh-g800:#1e293b;
  --rh-rad:12px; --rh-rad-lg:20px; --rh-rad-xl:28px;
  --rh-sh-sm:0 1px 2px rgba(0,0,0,0.05);
  --rh-sh:0 4px 6px -1px rgba(0,0,0,0.07),0 2px 4px -2px rgba(0,0,0,0.05);
  --rh-sh-md:0 10px 25px -5px rgba(0,0,0,0.08),0 8px 10px -6px rgba(0,0,0,0.04);
  --rh-sh-lg:0 20px 50px -12px rgba(0,0,0,0.12);
  --rh-sh-glow:0 0 40px rgba(34,197,94,0.12);
  --rh-max:1200px;
}

/* ── Base ── */
body.rh-modern-theme {
  font-family:'Inter',system-ui,-apple-system,sans-serif !important;
  background:#fafbfc !important;
  color:#1a1a2e;
  -webkit-font-smoothing:antialiased;
}
html { margin-top:0 !important; }

/* ═══════ HEADER (all pages) ═══════ */
.rh-header {
  position:fixed; top:0; left:0; right:0; z-index:99999;
  background:rgba(255,255,255,0.88);
  backdrop-filter:blur(20px) saturate(180%);
  -webkit-backdrop-filter:blur(20px) saturate(180%);
  border-bottom:1px solid rgba(0,0,0,0.06);
  transition:box-shadow .3s;
}
.rh-header.scrolled { box-shadow:var(--rh-sh-md); }
.rh-header-inner {
  max-width:var(--rh-max); margin:0 auto; padding:0 24px;
  height:72px; display:flex; align-items:center; justify-content:space-between;
}
.rh-logo img { height:36px; width:auto; }
.rh-nav { display:flex; align-items:center; gap:6px; }
.rh-nav a {
  padding:8px 16px; font-size:14px; font-weight:500;
  color:var(--rh-g600); border-radius:8px; transition:all .2s;
  text-decoration:none;
}
.rh-nav a:hover { color:var(--rh-dark); background:var(--rh-g100); }
.rh-nav a.rh-active { color:var(--rh-primary-dark); background:var(--rh-primary-light); }
.rh-nav-cta {
  background:var(--rh-primary) !important; color:#fff !important;
  font-weight:600 !important; padding:10px 22px !important;
  border-radius:100px !important; box-shadow:0 2px 8px rgba(34,197,94,0.3);
  transition:all .2s !important;
}
.rh-nav-cta:hover {
  background:var(--rh-primary-dark) !important; transform:translateY(-1px);
  box-shadow:0 4px 16px rgba(34,197,94,0.35) !important;
}
.rh-hamburger { display:none; background:none; border:none; cursor:pointer; padding:8px; }
.rh-hamburger svg { width:24px; height:24px; stroke:var(--rh-dark); }

.rh-mobile-menu {
  display:none; position:fixed; top:72px; left:0; right:0;
  background:#fff; border-bottom:1px solid var(--rh-g200);
  padding:16px 24px; z-index:99998; box-shadow:var(--rh-sh-md);
}
.rh-mobile-menu.open { display:block; }
.rh-mobile-menu a {
  display:block; padding:12px 0; font-size:15px; font-weight:500;
  color:var(--rh-g600); border-bottom:1px solid var(--rh-g100); text-decoration:none;
}
.rh-mobile-menu a:last-child { border:none; }

/* ═══════ FOOTER (all pages) ═══════ */
.rh-footer { background:var(--rh-dark); padding:60px 24px 30px; color:var(--rh-g400); }
.rh-footer-inner { max-width:var(--rh-max); margin:0 auto; }
.rh-footer-top {
  display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px;
  padding-bottom:40px; border-bottom:1px solid rgba(255,255,255,0.08);
}
.rh-footer-brand p { font-size:14px; line-height:1.7; margin-top:16px; max-width:320px; color:var(--rh-g400); }
.rh-footer-brand img { height:32px; filter:brightness(0) invert(1); }
.rh-footer h4 {
  color:#fff; font-size:14px; font-weight:600;
  text-transform:uppercase; letter-spacing:0.08em; margin-bottom:20px;
}
.rh-footer ul { list-style:none; padding:0; margin:0; }
.rh-footer ul li { margin-bottom:10px; }
.rh-footer ul a { font-size:14px; color:var(--rh-g400); transition:color .2s; text-decoration:none; }
.rh-footer ul a:hover { color:var(--rh-primary); }
.rh-footer-bottom {
  display:flex; justify-content:space-between; align-items:center;
  padding-top:24px; font-size:13px; color:var(--rh-g400);
}

/* ═══════ PAGE CONTENT AREA ═══════ */
.rh-page-content-wrap {
  padding-top:96px; /* account for fixed header */
  min-height:60vh;
}

/* Main container override */
body.rh-modern-theme .rh-container {
  max-width:var(--rh-max);
  margin:0 auto;
  padding:0 24px;
}
body.rh-modern-theme .rh-outer-wrap {
  background:transparent !important;
  box-shadow:none !important;
}
body.rh-modern-theme .rh-content-wrap {
  padding:40px 0;
}

/* ═══════ TYPOGRAPHY ═══════ */
body.rh-modern-theme h1,
body.rh-modern-theme h2,
body.rh-modern-theme h3,
body.rh-modern-theme h4,
body.rh-modern-theme h5 {
  font-family:'Inter',system-ui,sans-serif !important;
  letter-spacing:-0.01em;
  color:var(--rh-dark);
}
body.rh-modern-theme h1 { font-weight:800; }
body.rh-modern-theme h2 { font-weight:700; }
body.rh-modern-theme a { color:var(--rh-primary-dark); }
body.rh-modern-theme a:hover { color:var(--rh-primary); }

/* ═══════ BREADCRUMB ═══════ */
body.rh-modern-theme .breadcrumb {
  font-size:13px; color:var(--rh-g400); padding:16px 0;
}
body.rh-modern-theme .breadcrumb a { color:var(--rh-g500); }
body.rh-modern-theme .breadcrumb a:hover { color:var(--rh-primary); }

/* ═══════ BLOG / ARCHIVE – Post Listings ═══════ */
body.rh-modern-theme .news-community {
  background:#fff !important;
  border:1px solid var(--rh-g200) !important;
  border-radius:var(--rh-rad-lg) !important;
  box-shadow:none !important;
  margin-bottom:24px !important;
  transition:all .3s;
  overflow:hidden;
}
body.rh-modern-theme .news-community:hover {
  border-color:var(--rh-primary) !important;
  box-shadow:var(--rh-sh-md) !important;
  transform:translateY(-2px);
}
body.rh-modern-theme .news-community .newsimage img {
  border-radius:var(--rh-rad) !important;
}
body.rh-modern-theme .newsdetail h3 a {
  font-weight:700 !important;
  color:var(--rh-dark) !important;
}
body.rh-modern-theme .newsdetail h3 a:hover {
  color:var(--rh-primary) !important;
}
body.rh-modern-theme .meta.post-meta,
body.rh-modern-theme .meta.post-meta a {
  color:var(--rh-g400) !important;
  font-size:13px !important;
}

/* ═══════ SINGLE POST / REVIEW ═══════ */
body.rh-modern-theme .main-side.single {
  padding:40px 0;
}
body.rh-modern-theme article.post {
  background:#fff;
  border-radius:var(--rh-rad-lg);
  padding:40px;
  box-shadow:var(--rh-sh-sm);
  border:1px solid var(--rh-g200);
}
body.rh-modern-theme article.post .entry-content {
  font-size:16px;
  line-height:1.8;
  color:var(--rh-g700);
}

/* Review score */
body.rh-modern-theme .review-top .overall-score {
  background:var(--rh-primary) !important;
  border-radius:var(--rh-rad-lg) !important;
  box-shadow:0 4px 16px rgba(34,197,94,0.25) !important;
}
body.rh-modern-theme .overall-score .overall-text {
  border-radius:0 0 var(--rh-rad-lg) var(--rh-rad-lg) !important;
}

/* Rate bars */
body.rh-modern-theme .rate-bar {
  background:var(--rh-g200) !important;
  border-radius:100px !important;
  height:8px !important;
}
body.rh-modern-theme .rate-bar-bar {
  background:var(--rh-primary) !important;
  border-radius:100px !important;
}

/* ═══════ OFFER LIST / HOST CARDS ═══════ */
body.rh-modern-theme .rh_offer_list {
  background:#fff !important;
  border:1px solid var(--rh-g200) !important;
  border-radius:var(--rh-rad-lg) !important;
  box-shadow:none !important;
  margin-bottom:20px !important;
  transition:all .3s;
}
body.rh-modern-theme .rh_offer_list:hover {
  border-color:var(--rh-primary) !important;
  box-shadow:var(--rh-sh-md) !important;
  transform:translateY(-2px);
}

/* ═══════ BUTTONS ═══════ */
body.rh-modern-theme .btn_offer_block,
body.rh-modern-theme .wpsm-button.rehub_main_btn,
body.rh-modern-theme .wpsm-button.green,
body.rh-modern-theme .btn_more,
body.rh-modern-theme input[type="submit"],
body.rh-modern-theme .priced_block .btn_offer_block {
  background:var(--rh-primary) !important;
  color:#fff !important;
  border:none !important;
  border-radius:100px !important;
  font-family:'Inter',system-ui,sans-serif !important;
  font-weight:600 !important;
  padding:12px 28px !important;
  box-shadow:0 2px 12px rgba(34,197,94,0.25) !important;
  transition:all .2s !important;
  text-transform:none !important;
}
body.rh-modern-theme .btn_offer_block:hover,
body.rh-modern-theme .wpsm-button.rehub_main_btn:hover,
body.rh-modern-theme .wpsm-button.green:hover,
body.rh-modern-theme .btn_more:hover,
body.rh-modern-theme input[type="submit"]:hover {
  background:var(--rh-primary-dark) !important;
  box-shadow:0 4px 20px rgba(34,197,94,0.35) !important;
  transform:translateY(-1px);
}

/* ═══════ SEARCH FORM ═══════ */
body.rh-modern-theme form.search-form input[type="text"] {
  border:1px solid var(--rh-g200) !important;
  border-radius:100px !important;
  padding:14px 20px !important;
  font-family:'Inter',system-ui,sans-serif !important;
  transition:border-color .2s;
  background:#fff !important;
}
body.rh-modern-theme form.search-form input[type="text"]:focus {
  border-color:var(--rh-primary) !important;
  box-shadow:0 0 0 3px var(--rh-primary-glow) !important;
  outline:none;
}
body.rh-modern-theme form.search-form [type="submit"] {
  border-radius:100px !important;
  background:var(--rh-primary) !important;
}

/* ═══════ SIDEBAR ═══════ */
body.rh-modern-theme .sidebar .widget {
  background:#fff !important;
  border:1px solid var(--rh-g200) !important;
  border-radius:var(--rh-rad-lg) !important;
  padding:24px !important;
  margin-bottom:24px !important;
  box-shadow:none !important;
}
body.rh-modern-theme .sidebar .widget .title {
  font-family:'Inter',system-ui,sans-serif !important;
  font-weight:700 !important;
  font-size:16px !important;
  color:var(--rh-dark) !important;
  border-bottom:2px solid var(--rh-primary) !important;
  padding-bottom:12px !important;
  margin-bottom:16px !important;
}
body.rh-modern-theme .sidebar .widget .title:after {
  display:none !important;
}

/* ═══════ COMMENTS ═══════ */
body.rh-modern-theme .commentlist .comment {
  background:#fff !important;
  border:1px solid var(--rh-g200) !important;
  border-radius:var(--rh-rad) !important;
  padding:24px !important;
  margin-bottom:16px !important;
}
body.rh-modern-theme .comment-content {
  font-size:15px; line-height:1.7; color:var(--rh-g700);
}
body.rh-modern-theme .comment-reply-link {
  color:var(--rh-primary) !important;
  font-weight:600;
}
body.rh-modern-theme .comment-form textarea,
body.rh-modern-theme .comment-form input[type="text"],
body.rh-modern-theme .comment-form input[type="email"],
body.rh-modern-theme .comment-form input[type="url"] {
  border:1px solid var(--rh-g200) !important;
  border-radius:var(--rh-rad) !important;
  padding:12px 16px !important;
  font-family:'Inter',system-ui,sans-serif !important;
  transition:border-color .2s;
}
body.rh-modern-theme .comment-form textarea:focus,
body.rh-modern-theme .comment-form input:focus {
  border-color:var(--rh-primary) !important;
  box-shadow:0 0 0 3px var(--rh-primary-glow) !important;
  outline:none;
}

/* ═══════ PAGINATION ═══════ */
body.rh-modern-theme ul.page-numbers li a,
body.rh-modern-theme ul.page-numbers li span,
body.rh-modern-theme .tw-pagination a,
body.rh-modern-theme .tw-pagination span {
  border-radius:10px !important;
  font-weight:600 !important;
  font-family:'Inter',system-ui,sans-serif !important;
}
body.rh-modern-theme ul.page-numbers li span.current,
body.rh-modern-theme .tw-pagination .current {
  background:var(--rh-primary) !important;
  color:#fff !important;
  border-color:var(--rh-primary) !important;
}

/* ═══════ WPBakery OVERRIDES ═══════ */
body.rh-modern-theme .vc_row {
  max-width:var(--rh-max);
  margin-left:auto !important;
  margin-right:auto !important;
  padding-left:24px;
  padding-right:24px;
}
body.rh-modern-theme .centered-container {
  max-width:var(--rh-max);
  margin:0 auto;
}
body.rh-modern-theme .vc_message_box {
  border-radius:var(--rh-rad-lg) !important;
  font-family:'Inter',system-ui,sans-serif !important;
}

/* ═══════ PROS/CONS BOXES ═══════ */
body.rh-modern-theme .wpsm_pros,
body.rh-modern-theme .wpsm_cons {
  border-radius:var(--rh-rad-lg) !important;
  padding:24px !important;
}

/* ═══════ PAGE TEMPLATE ═══════ */
body.rh-modern-theme .page .entry-content,
body.rh-modern-theme .page-template .rh-container {
  max-width:var(--rh-max);
  margin:0 auto;
}

/* ═══════ CONTACT FORM 7 ═══════ */
body.rh-modern-theme .wpcf7 input[type="text"],
body.rh-modern-theme .wpcf7 input[type="email"],
body.rh-modern-theme .wpcf7 textarea {
  border:1px solid var(--rh-g200) !important;
  border-radius:var(--rh-rad) !important;
  padding:12px 16px !important;
  font-family:'Inter',system-ui,sans-serif !important;
}
body.rh-modern-theme .wpcf7-submit {
  background:var(--rh-primary) !important;
  color:#fff !important;
  border-radius:100px !important;
  padding:14px 32px !important;
  font-weight:600 !important;
  border:none !important;
  cursor:pointer;
}

/* ═══════ PRICE BLOCKS ═══════ */
body.rh-modern-theme .price_count {
  border-radius:100px !important;
  font-weight:700 !important;
}
body.rh-modern-theme .rehub_offer_coupon {
  border-radius:100px !important;
}

/* ═══════ RIBBON BADGES ═══════ */
body.rh-modern-theme .re-ribbon-badge span {
  background:var(--rh-primary) !important;
  border-radius:0 8px 8px 0 !important;
  font-family:'Inter',system-ui,sans-serif !important;
  font-weight:600 !important;
}

/* ═══════ TABS ═══════ */
body.rh-modern-theme .rehub_woo_tabs_menu li.current,
body.rh-modern-theme .wpsm_nav-tabs li.active a {
  border-top-color:var(--rh-primary) !important;
  color:var(--rh-primary-dark) !important;
}

/* ═══════ COLORS (override ReHub theme color) ═══════ */
body.rh-modern-theme .rehub-main-color,
body.rh-modern-theme .color_link {
  color:var(--rh-primary) !important;
}
body.rh-modern-theme .rehub-main-color-bg {
  background:var(--rh-primary) !important;
}

/* ═══════ COOKIE BAR FIX ═══════ */
body.rh-modern-theme #cookie-law-info-bar {
  border-radius:var(--rh-rad-lg) var(--rh-rad-lg) 0 0 !important;
  font-family:'Inter',system-ui,sans-serif !important;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width:968px) {
  .rh-nav { display:none !important; }
  .rh-hamburger { display:block !important; }
  .rh-footer-top { grid-template-columns:1fr 1fr; }
  body.rh-modern-theme article.post { padding:24px; }
}
@media (max-width:600px) {
  .rh-header-inner { padding:0 16px; }
  .rh-page-content-wrap { padding-top:80px; }
  .rh-footer-top { grid-template-columns:1fr; }
  .rh-footer-bottom { flex-direction:column; gap:12px; text-align:center; }
  body.rh-modern-theme article.post { padding:16px; border-radius:var(--rh-rad); }
}

/* ═══════ FIX: Hide empty WPBakery blocks on archive pages ═══════ */
body.rh-modern-theme .top_rating_text.post {
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  padding:0 !important;
  margin:0 !important;
}
body.rh-modern-theme .top_rating_text .vc_row-has-fill {
  background:transparent !important;
  padding:0 !important;
}
/* Hide empty WPBakery article blocks with only &nbsp; */
body.rh-modern-theme .top_rating_text .wpb_wrapper > article.post:only-child {
  display:none;
}
body.rh-modern-theme .top_rating_text .vc_custom_1562768892306 {
  display:none !important;
}

/* ═══════ FIX: search-header-contents on inner pages ═══════ */
body.rh-modern-theme .search-header-contents {
  display:none !important;
}

/* ═══════ FIX: ReHub boxed container bg override ═══════ */
body.rh-modern-theme.rh-boxed-container {
  background:#fafbfc !important;
}
body.rh-modern-theme .rh-outer-wrap {
  max-width:100% !important;
  box-shadow:none !important;
  background:transparent !important;
}

/* ═══════ FIX: Category title styling ═══════ */
body.rh-modern-theme .wpsm-cat-title h5 {
  font-size:28px !important;
  font-weight:800 !important;
  color:var(--rh-dark) !important;
  font-family:'Inter',system-ui,sans-serif !important;
  margin-bottom:24px !important;
}

/* ═══════ FIX: Article card on archive/blog shouldn't be white ═══════ */
body.rh-modern-theme article.top_rating_text {
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  border-radius:0 !important;
  padding:0 !important;
}

/* ═══════ BLOG ARCHIVE – Full Redesign ═══════ */

/* Center the content area — remove sidebar float, full width */
body.rh-modern-theme.archive .rh-content-wrap,
body.rh-modern-theme.category .rh-content-wrap {
  max-width:900px !important;
  margin:0 auto !important;
  float:none !important;
}
body.rh-modern-theme.archive .main-side,
body.rh-modern-theme.category .main-side {
  width:100% !important;
  float:none !important;
  padding:0 !important;
}
/* Hide sidebar on blog archive */
body.rh-modern-theme.archive .sidebar,
body.rh-modern-theme.category .sidebar {
  display:none !important;
}

/* ── Blog title ── */
body.rh-modern-theme .wpsm-cat-title {
  text-align:center !important;
  margin-bottom:40px !important;
}
body.rh-modern-theme .wpsm-cat-title h5 {
  font-size:36px !important;
  font-weight:800 !important;
  letter-spacing:-0.02em !important;
}

/* ── Article cards – complete overhaul ── */
body.rh-modern-theme .news-community {
  display:flex !important;
  flex-direction:row !important;
  align-items:stretch !important;
  background:#fff !important;
  border:1px solid var(--rh-g200) !important;
  border-radius:var(--rh-rad-lg) !important;
  overflow:hidden !important;
  margin-bottom:28px !important;
  box-shadow:none !important;
  padding:0 !important;
  transition:all .3s !important;
}
body.rh-modern-theme .news-community:hover {
  border-color:var(--rh-primary) !important;
  box-shadow:var(--rh-sh-md) !important;
  transform:translateY(-3px) !important;
}

/* ── Image area – much bigger ── */
body.rh-modern-theme .news-community .rh_grid_image_wrapper {
  flex:0 0 280px !important;
  max-width:280px !important;
  display:flex !important;
  float:none !important;
  width:auto !important;
}
body.rh-modern-theme .news-community .newsimage.rh_gr_img {
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  padding:0 !important;
}
body.rh-modern-theme .news-community .newsimage figure {
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  position:relative;
}
body.rh-modern-theme .news-community .newsimage figure a {
  display:block !important;
  width:100% !important;
  height:100% !important;
  min-height:220px;
}
body.rh-modern-theme .news-community .newsimage img,
body.rh-modern-theme .news-community .newsimage .lazyload {
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  border-radius:0 !important;
  max-width:none !important;
  max-height:none !important;
  min-height:220px;
}
/* Remove the tiny fixed dimensions */
body.rh-modern-theme .news-community .newsimage img[width="160"] {
  width:100% !important;
  height:100% !important;
}

/* ── Content area ── */
body.rh-modern-theme .news-community .newsdetail {
  float:none !important;
  width:auto !important;
}
body.rh-modern-theme .news-community .rh_gr_top_right {
  padding:24px 28px 0 !important;
  width:auto !important;
  float:none !important;
}
body.rh-modern-theme .news-community .newstitleblock {
  padding:12px 28px 0 !important;
  width:auto !important;
  float:none !important;
}
body.rh-modern-theme .news-community .newstitleblock h2 {
  font-size:20px !important;
  font-weight:700 !important;
  line-height:1.4 !important;
}
body.rh-modern-theme .news-community .newstitleblock h2 a {
  color:var(--rh-dark) !important;
  text-decoration:none !important;
}
body.rh-modern-theme .news-community .newstitleblock h2 a:hover {
  color:var(--rh-primary) !important;
}
body.rh-modern-theme .news-community .rh_gr_right_desc {
  padding:8px 28px 0 !important;
  font-size:14px !important;
  color:var(--rh-g500) !important;
  line-height:1.7 !important;
  float:none !important;
  width:auto !important;
}
body.rh-modern-theme .news-community .rh_gr_right_btn {
  padding:16px 28px 24px !important;
  float:none !important;
  width:auto !important;
  text-align:right !important;
}

/* ── Hide the temperature/voting bar (clutters the design) ── */
body.rh-modern-theme .news-community .hotmeter_wrap {
  display:none !important;
}

/* ── Wishlist heart on image ── */
body.rh-modern-theme .news-community .favorrightside.wishonimage {
  position:absolute !important;
  top:12px !important;
  right:12px !important;
  z-index:5 !important;
  background:rgba(255,255,255,0.9) !important;
  border-radius:50% !important;
  width:36px !important;
  height:36px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  backdrop-filter:blur(8px) !important;
}

/* ── Read More button ── */
body.rh-modern-theme .news-community .btn_more {
  font-size:13px !important;
  padding:10px 24px !important;
}

/* ── The WPBakery category description blocks ── */
body.rh-modern-theme .top_rating_text .vc_row-has-fill {
  padding:0 !important;
  margin:0 !important;
  background:transparent !important;
}
body.rh-modern-theme .top_rating_text .vc_row {
  max-width:100% !important;
  padding:0 !important;
}

/* ═══════ Responsive ═══════ */
@media (max-width:768px) {
  body.rh-modern-theme .news-community {
    flex-direction:column !important;
  }
  body.rh-modern-theme .news-community .rh_grid_image_wrapper {
    flex:none !important;
    max-width:100% !important;
    height:200px !important;
  }
  body.rh-modern-theme .news-community .newsimage figure a {
    min-height:200px;
  }
  body.rh-modern-theme .news-community .newsimage img {
    min-height:200px;
  }
  body.rh-modern-theme.archive .rh-content-wrap,
  body.rh-modern-theme.category .rh-content-wrap {
    padding:0 16px !important;
  }
}

/* ═══════════════════════════════════════════════
   BLOG ARCHIVE – Complete Override v2
   ═══════════════════════════════════════════════ */

/* ── Override the ReHub CSS Grid on blog cards ── */
body.rh-modern-theme .news-community .rh_grid_image_wrapper {
  display:grid !important;
  grid-template-columns:260px 1fr !important;
  grid-template-rows:auto 1fr auto auto !important;
  grid-column-gap:0 !important;
  column-gap:0 !important;
  width:100% !important;
}

/* ── Image column: spans all rows ── */
body.rh-modern-theme .news-community .rh_gr_img {
  grid-row:1 / -1 !important;
  grid-column:1 !important;
  overflow:hidden !important;
  min-height:240px !important;
  background:var(--rh-g100);
  position:relative;
}
body.rh-modern-theme .news-community .rh_gr_img figure {
  width:100% !important;
  height:100% !important;
  margin:0 !important;
  padding:0 !important;
}
body.rh-modern-theme .news-community .rh_gr_img figure a {
  display:block !important;
  width:100% !important;
  height:100% !important;
}
/* Force images to fill the space, override the tiny 160x160 */
body.rh-modern-theme .news-community .rh_gr_img img {
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  border-radius:0 !important;
  position:absolute !important;
  top:0 !important;
  left:0 !important;
}
/* Also handle the lazyload blank.gif src — show a placeholder bg */
body.rh-modern-theme .news-community .rh_gr_img img[src*="blank.gif"] {
  background:linear-gradient(135deg,var(--rh-g100),var(--rh-g200)) !important;
}

/* ── Content columns: all in column 2 ── */
body.rh-modern-theme .news-community .rh_gr_top_right {
  grid-column:2 !important;
  padding:20px 28px 0 !important;
  width:auto !important;
  float:none !important;
}
body.rh-modern-theme .news-community .rh_gr_right_sec {
  grid-column:2 !important;
  padding:8px 28px 0 !important;
  width:auto !important;
  float:none !important;
}
body.rh-modern-theme .news-community .rh_gr_right_desc {
  grid-column:2 !important;
  padding:8px 28px 0 !important;
  width:auto !important;
  float:none !important;
  font-size:14px !important;
  line-height:1.7 !important;
  color:var(--rh-g500) !important;
}
body.rh-modern-theme .news-community .rh_gr_right_btn {
  grid-column:2 !important;
  padding:16px 28px 20px !important;
  width:auto !important;
  float:none !important;
  align-self:end !important;
}

/* ── Title styling ── */
body.rh-modern-theme .news-community h2 {
  font-size:20px !important;
  font-weight:700 !important;
  line-height:1.35 !important;
  margin:0 !important;
}
body.rh-modern-theme .news-community h2 a {
  color:var(--rh-dark) !important;
}
body.rh-modern-theme .news-community h2 a:hover {
  color:var(--rh-primary) !important;
}

/* ── Meta info ── */
body.rh-modern-theme .news-community .meta.post-meta {
  font-size:13px !important;
  color:var(--rh-g400) !important;
  margin-top:6px !important;
}

/* ── Read More button ── */
body.rh-modern-theme .news-community .btn_more {
  display:inline-flex !important;
  align-items:center !important;
  gap:6px !important;
  font-size:13px !important;
  padding:10px 24px !important;
}

/* ── Ajax content blocks inside card ── */
body.rh-modern-theme .news-community .newscom_head_ajax,
body.rh-modern-theme .news-community .newscom_content_ajax {
  grid-column:2 !important;
}

/* ═══════ Responsive ═══════ */
@media (max-width:768px) {
  body.rh-modern-theme .news-community .rh_grid_image_wrapper {
    grid-template-columns:1fr !important;
  }
  body.rh-modern-theme .news-community .rh_gr_img {
    grid-row:auto !important;
    grid-column:1 !important;
    min-height:200px !important;
    max-height:220px !important;
  }
  body.rh-modern-theme .news-community .rh_gr_top_right,
  body.rh-modern-theme .news-community .rh_gr_right_sec,
  body.rh-modern-theme .news-community .rh_gr_right_desc,
  body.rh-modern-theme .news-community .rh_gr_right_btn,
  body.rh-modern-theme .news-community .newscom_head_ajax,
  body.rh-modern-theme .news-community .newscom_content_ajax {
    grid-column:1 !important;
  }
}

/* ═══════════════════════════════════════
   BLOG ARCHIVE – Clean Custom Template
   ═══════════════════════════════════════ */
.rh-blog-archive {
  padding:40px 24px 80px;
}
.rh-blog-inner {
  max-width:900px;
  margin:0 auto;
}
.rh-blog-title {
  font-size:36px !important;
  font-weight:800 !important;
  text-align:center !important;
  margin-bottom:48px !important;
  color:var(--rh-dark) !important;
  letter-spacing:-0.02em;
}

/* ── Card Grid ── */
.rh-blog-grid {
  display:flex;
  flex-direction:column;
  gap:28px;
}

/* ── Individual Card ── */
.rh-blog-card {
  display:grid;
  grid-template-columns:320px 1fr;
  background:#fff;
  border:1px solid var(--rh-g200);
  border-radius:var(--rh-rad-lg);
  overflow:hidden;
  text-decoration:none !important;
  color:inherit !important;
  transition:all .3s cubic-bezier(.22,1,.36,1);
}
.rh-blog-card:hover {
  border-color:var(--rh-primary);
  box-shadow:var(--rh-sh-md);
  transform:translateY(-3px);
}

/* ── Image ── */
.rh-blog-card-image {
  overflow:hidden;
  background:var(--rh-g100);
  min-height:240px;
}
.rh-blog-card-image img {
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
  transition:transform .4s ease;
}
.rh-blog-card:hover .rh-blog-card-image img {
  transform:scale(1.05);
}
.rh-blog-card-placeholder {
  width:100%;
  height:100%;
  min-height:240px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,var(--rh-g100),var(--rh-g200));
  color:var(--rh-g300);
}

/* ── Content ── */
.rh-blog-card-content {
  padding:28px 32px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.rh-blog-card-meta {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  font-size:13px;
  color:var(--rh-g400);
}
.rh-blog-card-cat {
  background:var(--rh-primary-light);
  color:var(--rh-primary-dark);
  padding:2px 10px;
  border-radius:100px;
  font-weight:600;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:0.04em;
}
.rh-blog-card-content h2 {
  font-size:22px !important;
  font-weight:700 !important;
  line-height:1.35 !important;
  color:var(--rh-dark) !important;
  margin:0 0 10px 0 !important;
  transition:color .2s;
}
.rh-blog-card:hover h2 {
  color:var(--rh-primary) !important;
}
.rh-blog-card-content p {
  font-size:14px;
  line-height:1.7;
  color:var(--rh-g500);
  margin:0 0 16px 0;
}
.rh-blog-card-link {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  font-weight:600;
  color:var(--rh-primary);
  transition:gap .2s;
}
.rh-blog-card:hover .rh-blog-card-link {
  gap:10px;
}

/* ── Pagination ── */
.rh-blog-pagination {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  margin-top:48px;
}
.rh-blog-pagination a,
.rh-blog-pagination span {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:42px;
  height:42px;
  padding:0 14px;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  transition:all .2s;
  color:var(--rh-g600);
  background:#fff;
  border:1px solid var(--rh-g200);
}
.rh-blog-pagination a:hover {
  border-color:var(--rh-primary);
  color:var(--rh-primary);
  background:var(--rh-primary-light);
}
.rh-blog-pagination span.current {
  background:var(--rh-primary) !important;
  color:#fff !important;
  border-color:var(--rh-primary) !important;
}

/* ── Responsive ── */
@media (max-width:768px) {
  .rh-blog-card {
    grid-template-columns:1fr;
  }
  .rh-blog-card-image {
    min-height:200px;
    max-height:220px;
  }
  .rh-blog-card-content {
    padding:20px 24px;
  }
  .rh-blog-card-content h2 {
    font-size:18px !important;
  }
  .rh-blog-title {
    font-size:28px !important;
  }
}
@media (max-width:480px) {
  .rh-blog-archive { padding:24px 16px 60px; }
  .rh-blog-card-image { min-height:160px; max-height:180px; }
}

/* ── Wider blog layout ── */
.rh-blog-inner {
  max-width:1100px !important;
}
.rh-blog-card {
  grid-template-columns:420px 1fr !important;
}
.rh-blog-card-image {
  min-height:260px !important;
}
@media (max-width:900px) {
  .rh-blog-card { grid-template-columns:1fr !important; }
}

/* ── Force image to fill full card height ── */
.rh-blog-card {
  align-items:stretch !important;
}
.rh-blog-card-image {
  position:relative !important;
  min-height:0 !important;
}
.rh-blog-card-image img {
  position:absolute !important;
  top:0 !important;
  left:0 !important;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
}
@media (max-width:900px) {
  .rh-blog-card-image {
    min-height:220px !important;
    position:relative !important;
  }
}

/* ── Even wider image column ── */
.rh-blog-card {
  grid-template-columns:500px 1fr !important;
}

/* ═══════════════════════════════════════
   SIDEBAR LAYOUT – Blog + Single Posts
   ═══════════════════════════════════════ */

/* ── Blog archive: 2-column layout with sidebar ── */
.rh-blog-layout {
  display:grid;
  grid-template-columns:1fr 300px;
  gap:40px;
  max-width:1200px;
  margin:0 auto;
}
.rh-blog-main { min-width:0; }

/* ── Blog sidebar ── */
.rh-blog-sidebar .widget {
  background:#fff !important;
  border:1px solid var(--rh-g200) !important;
  border-radius:var(--rh-rad-lg) !important;
  padding:24px !important;
  margin-bottom:24px !important;
  box-shadow:none !important;
}
.rh-blog-sidebar .widget .widget-title,
.rh-blog-sidebar .widget .widgettitle,
.rh-blog-sidebar .widget h2 {
  font-family:'Inter',system-ui,sans-serif !important;
  font-weight:700 !important;
  font-size:16px !important;
  color:var(--rh-dark) !important;
  border-bottom:2px solid var(--rh-primary) !important;
  padding-bottom:12px !important;
  margin-bottom:16px !important;
}
.rh-blog-sidebar .widget a {
  color:var(--rh-g600) !important;
  text-decoration:none !important;
  transition:color .2s;
}
.rh-blog-sidebar .widget a:hover {
  color:var(--rh-primary) !important;
}
.rh-blog-sidebar .widget input[type="text"],
.rh-blog-sidebar .widget input[type="search"] {
  border:1px solid var(--rh-g200) !important;
  border-radius:100px !important;
  padding:12px 18px !important;
  width:100% !important;
  font-family:'Inter',system-ui,sans-serif !important;
}
.rh-blog-sidebar .widget input[type="text"]:focus,
.rh-blog-sidebar .widget input[type="search"]:focus {
  border-color:var(--rh-primary) !important;
  outline:none;
  box-shadow:0 0 0 3px var(--rh-primary-glow) !important;
}

/* ── Remove old "hide sidebar" rules for archive ── */
body.rh-modern-theme.archive .sidebar,
body.rh-modern-theme.category .sidebar {
  display:block !important;
}
body.rh-modern-theme.archive .main-side,
body.rh-modern-theme.category .main-side {
  width:auto !important;
}

/* ── Single post sidebar: keep visible and style it ── */
body.rh-modern-theme .sidebar {
  display:block !important;
}

/* ── Adjust blog card for narrower space ── */
.rh-blog-layout .rh-blog-card {
  grid-template-columns:340px 1fr !important;
}

/* ── Blog archive container override ── */
.rh-blog-archive {
  max-width:1200px !important;
  margin:0 auto !important;
}
.rh-blog-inner {
  max-width:100% !important;
}

/* ── Responsive ── */
@media (max-width:968px) {
  .rh-blog-layout {
    grid-template-columns:1fr;
  }
  .rh-blog-sidebar {
    order:2;
  }
  .rh-blog-layout .rh-blog-card {
    grid-template-columns:300px 1fr !important;
  }
}
@media (max-width:768px) {
  .rh-blog-layout .rh-blog-card {
    grid-template-columns:1fr !important;
  }
}

/* ═══════════════════════════════════════
   SINGLE POST / PAGE – Proper sidebar layout
   ═══════════════════════════════════════ */

/* Ensure the content-wrap acts as a proper container for floats */
body.rh-modern-theme .rh-content-wrap {
  display:flex !important;
  gap:36px !important;
  max-width:var(--rh-max) !important;
  margin:0 auto !important;
  padding:30px 24px !important;
  float:none !important;
}

/* Main content column */
body.rh-modern-theme .rh-content-wrap > .main-side {
  flex:1 !important;
  min-width:0 !important;
  width:auto !important;
  float:none !important;
}

/* Sidebar column */
body.rh-modern-theme .rh-content-wrap > .sidebar {
  flex:0 0 300px !important;
  width:300px !important;
  float:none !important;
  overflow:visible !important;
}

/* Fix the rh-container to not constrain oddly */
body.rh-modern-theme .rh-page-content-wrap > .rh-container {
  max-width:var(--rh-max) !important;
  margin:0 auto !important;
  padding:0 24px !important;
}

/* Responsive: stack on smaller screens */
@media (max-width:968px) {
  body.rh-modern-theme .rh-content-wrap {
    flex-direction:column !important;
  }
  body.rh-modern-theme .rh-content-wrap > .sidebar {
    flex:none !important;
    width:100% !important;
  }
}

/* ── Flatten double-box on single posts ── */
body.rh-modern-theme .main-side.single {
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  padding:0 !important;
}
body.rh-modern-theme .rh-post-wrapper {
  border-radius:var(--rh-rad-lg) !important;
  border:1px solid var(--rh-g200) !important;
  box-shadow:none !important;
}
body.rh-modern-theme article.post {
  box-shadow:none !important;
  border:none !important;
  padding:0 !important;
  background:transparent !important;
}

/* ── Search results styling ── */
.rh-search-title {
  font-size:32px !important;
  font-weight:700 !important;
  color:var(--rh-dark) !important;
  margin-bottom:36px !important;
  letter-spacing:-0.02em;
}
.rh-search-title span {
  color:var(--rh-primary);
}
.rh-search-empty {
  text-align:center;
  padding:80px 20px;
  color:var(--rh-g400);
}
.rh-search-empty svg {
  margin-bottom:20px;
  color:var(--rh-g300);
}
.rh-search-empty p {
  font-size:18px;
  margin:8px 0;
}
.rh-search-empty .rh-search-hint {
  font-size:14px;
  color:var(--rh-g400);
}

/* ── No sidebar layout ── */
.rh-blog-layout.rh-no-sidebar {
  grid-template-columns:1fr !important;
  max-width:900px !important;
}

/* ── Wider no-sidebar layout ── */
.rh-blog-layout.rh-no-sidebar {
  max-width:1100px !important;
}
.rh-blog-layout.rh-no-sidebar .rh-blog-card {
  grid-template-columns:500px 1fr !important;
}
