/* ===== BLOG GALLERY SECTION ===== */
.rh-blogs {
  background: #ffffff;
  padding: 100px 20px;
  position: relative;
  overflow: hidden;
}

.rh-blogs-container {
  max-width: 1280px;
  margin: 0 auto;
}


/* ── Heading ── */
.rh-blogs-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
  position: relative;
  z-index: 1;
}

.rh-blogs-heading h2 {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: #1a2b3c;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0;
}

.rh-blogs-heading__circle {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.rh-blogs-heading__circle svg {
  position: absolute;
  left: -6px;
  right: -6px;
  top: -4px;
  bottom: 0;
  width: calc(100% + 12px);
  height: calc(100% + 8px);
  transform: translateY(2px);
  pointer-events: none;
}

.rh-blogs-heading__circle svg path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0s;
}

.rh-blogs-heading__circle.is-animated svg path {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.25s ease-in-out;
}


/* ── Grid ── */
.rh-blogs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}


/* ── Card Base ── */
.rh-blogs-card {
  width: 100%;
  background: transparent;
  border: 2px solid currentColor;
  display: flex;
  flex-direction: column;
  transform-origin: center center;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
}

.rh-blogs-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.rh-blogs-card__link {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 24px 24px;
  text-decoration: none;
  color: inherit;
}


/* ── Card Color Themes ── */

/* Ocean Blue */
.rh-blogs-card[data-color="ocean"] { color: #1565a8; border-color: #1565a8; }
.rh-blogs-card[data-color="ocean"] .rh-blogs-tag { color: #1565a8; border-bottom-color: rgba(21, 101, 168, 0.2); }
.rh-blogs-card[data-color="ocean"] .rh-blogs-card__title { color: #1a1a1a; }
.rh-blogs-card[data-color="ocean"] .rh-blogs-author { color: #1565a8; }
.rh-blogs-card[data-color="ocean"] .rh-blogs-card__footer { border-top-color: rgba(21, 101, 168, 0.15); }
.rh-blogs-card[data-color="ocean"]:hover {
  background-color: #1565a8;
  box-shadow: 0 8px 60px 4px rgba(21, 101, 168, 0.35);
}

/* Teal */
.rh-blogs-card[data-color="teal"] { color: #0e8a7d; border-color: #0e8a7d; }
.rh-blogs-card[data-color="teal"] .rh-blogs-tag { color: #0e8a7d; border-bottom-color: rgba(14, 138, 125, 0.2); }
.rh-blogs-card[data-color="teal"] .rh-blogs-card__title { color: #1a1a1a; }
.rh-blogs-card[data-color="teal"] .rh-blogs-author { color: #0e8a7d; }
.rh-blogs-card[data-color="teal"] .rh-blogs-card__footer { border-top-color: rgba(14, 138, 125, 0.15); }
.rh-blogs-card[data-color="teal"]:hover {
  background-color: #0e8a7d;
  box-shadow: 0 8px 60px 4px rgba(14, 138, 125, 0.35);
}

/* Aqua */
.rh-blogs-card[data-color="aqua"] { color: #0891b2; border-color: #0891b2; }
.rh-blogs-card[data-color="aqua"] .rh-blogs-tag { color: #0891b2; border-bottom-color: rgba(8, 145, 178, 0.2); }
.rh-blogs-card[data-color="aqua"] .rh-blogs-card__title { color: #1a1a1a; }
.rh-blogs-card[data-color="aqua"] .rh-blogs-author { color: #0891b2; }
.rh-blogs-card[data-color="aqua"] .rh-blogs-card__footer { border-top-color: rgba(8, 145, 178, 0.15); }
.rh-blogs-card[data-color="aqua"]:hover {
  background-color: #0891b2;
  box-shadow: 0 8px 60px 4px rgba(8, 145, 178, 0.35);
}


/* ── Shared Hover Text ── */
.rh-blogs-card:hover .rh-blogs-tag { color: rgba(255, 255, 255, 0.7) !important; border-bottom-color: rgba(255, 255, 255, 0.2) !important; }
.rh-blogs-card:hover .rh-blogs-card__title { color: #ffffff !important; }
.rh-blogs-card:hover .rh-blogs-card__excerpt { color: rgba(255, 255, 255, 0.8) !important; }
.rh-blogs-card:hover .rh-blogs-author { color: #ffffff !important; }
.rh-blogs-card:hover .rh-blogs-date { color: rgba(255, 255, 255, 0.7) !important; }
.rh-blogs-card:hover .rh-blogs-card__footer { border-top-color: rgba(255, 255, 255, 0.2) !important; }

.rh-blogs-card:hover { border-radius: 12px; scale: 0.96; rotate: -3deg; }
.rh-blogs-card:nth-child(even):hover { rotate: 3deg; }


/* ── Tag ── */
.rh-blogs-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid;
  transition: color 0.4s ease, border-color 0.4s ease;
}


/* ── Content ── */
.rh-blogs-card__content { flex: 1; }

.rh-blogs-card__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
  margin: 0 0 12px;
  transition: color 0.4s ease;
}

.rh-blogs-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: #777777;
  margin: 0;
  transition: color 0.4s ease;
}


/* ── Footer ── */
.rh-blogs-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid;
  transition: all 0.4s ease;
}

.rh-blogs-author {
  font-size: 13px;
  font-weight: 600;
  transition: color 0.4s ease;
}

.rh-blogs-date {
  font-size: 12px;
  color: #999999;
  transition: color 0.4s ease;
}


/* ============================================================
   VIEW ALL CARD — Rocket scene + CTA
   ============================================================ */
.rh-blogs-viewall {
  border: 2px dashed #0c6e7a !important;
  color: #0c6e7a;
}

.rh-blogs-viewall .rh-blogs-card__link {
  padding: 0;
}

.rh-blogs-viewall:hover {
  border-style: solid !important;
  border-color: #14919b !important;
  background: transparent !important;
  box-shadow: 0 8px 60px 4px rgba(20, 145, 155, 0.3) !important;
  rotate: 0deg !important;
  scale: 0.97 !important;
}

.rh-blogs-viewall__scene {
  flex: 1;
  position: relative;
  background: linear-gradient(135deg, #0c3547 0%, #0e5e6f 40%, #14919b 100%);
  overflow: hidden;
  min-height: 210px;
  border-bottom: 1px solid rgba(12, 110, 122, 0.2);
}

.rh-blogs-viewall__bottom {
  padding: 18px 24px 6px;
  text-align: center;
  background: transparent;
  transition: background 0.4s ease;
}

.rh-blogs-viewall__bottom .rh-blogs-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #0c6e7a;
  margin-bottom: 4px;
}

.rh-blogs-viewall__bottom .rh-blogs-card__excerpt {
  font-size: 12px;
  color: #888888;
}

.rh-blogs-viewall .rh-blogs-card__footer {
  padding: 14px 24px;
  margin-top: 0;
  border-top: 1px solid rgba(12, 110, 122, 0.15);
}

.rh-blogs-viewall .rh-blogs-author { color: #0c6e7a; }

.rh-blogs-viewall:hover .rh-blogs-viewall__bottom { background: #14919b; }
.rh-blogs-viewall:hover .rh-blogs-viewall__bottom .rh-blogs-card__title { color: #ffffff !important; }
.rh-blogs-viewall:hover .rh-blogs-viewall__bottom .rh-blogs-card__excerpt { color: rgba(255, 255, 255, 0.8) !important; }
.rh-blogs-viewall:hover .rh-blogs-card__footer { background: #0e7e87; border-top-color: rgba(255, 255, 255, 0.15) !important; }
.rh-blogs-viewall:hover .rh-blogs-author { color: #ffffff !important; }
.rh-blogs-viewall:hover .rh-blogs-date { color: rgba(255, 255, 255, 0.7) !important; }


/* ============================================================
   ROCKET ANIMATION (scoped to .rh-blogs-viewall__scene)
   ============================================================ */
.rh-blogs-rocket {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-left: -50px;
  animation: rh-blogs-speeder 0.4s linear infinite;
}

.rh-blogs-rocket > span {
  height: 5px;
  width: 35px;
  background: #14919b;
  position: absolute;
  top: -19px;
  left: 60px;
  border-radius: 2px 10px 1px 0;
}

.rh-blogs-rocket__base span {
  position: absolute;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-right: 100px solid #e0f4f4;
  border-bottom: 6px solid transparent;
}

.rh-blogs-rocket__base span::before {
  content: "";
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #e0f4f4;
  position: absolute;
  right: -110px;
  top: -16px;
}

.rh-blogs-rocket__base span::after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 0 solid transparent;
  border-right: 55px solid #e0f4f4;
  border-bottom: 16px solid transparent;
  top: -16px;
  right: -98px;
}

.rh-blogs-rocket__face {
  position: absolute;
  height: 12px;
  width: 20px;
  background: #e0f4f4;
  border-radius: 20px 20px 0 0;
  transform: rotate(-40deg);
  right: -125px;
  top: -15px;
}

.rh-blogs-rocket__face::after {
  content: "";
  height: 12px;
  width: 12px;
  background: #14919b;
  right: 4px;
  top: 7px;
  position: absolute;
  transform: rotate(40deg);
  transform-origin: 50% 50%;
  border-radius: 0 0 2px 2px;
}

/* Exhaust trails */
.rh-blogs-rocket > span > span {
  width: 30px;
  height: 1px;
  background: rgba(255, 255, 255, 0.6);
  position: absolute;
}

.rh-blogs-rocket > span > span:nth-child(1) { animation: rh-blogs-fazer1 0.2s linear infinite; }
.rh-blogs-rocket > span > span:nth-child(2) { top: 3px; animation: rh-blogs-fazer2 0.4s linear infinite; }
.rh-blogs-rocket > span > span:nth-child(3) { top: 1px; animation: rh-blogs-fazer3 0.4s linear infinite; animation-delay: -1s; }
.rh-blogs-rocket > span > span:nth-child(4) { top: 4px; animation: rh-blogs-fazer4 1s linear infinite; animation-delay: -1s; }

@keyframes rh-blogs-fazer1 { 0% { left: 0; } 100% { left: -80px; opacity: 0; } }
@keyframes rh-blogs-fazer2 { 0% { left: 0; } 100% { left: -100px; opacity: 0; } }
@keyframes rh-blogs-fazer3 { 0% { left: 0; } 100% { left: -50px; opacity: 0; } }
@keyframes rh-blogs-fazer4 { 0% { left: 0; } 100% { left: -150px; opacity: 0; } }

@keyframes rh-blogs-speeder {
  0%   { transform: translate(2px, 1px) rotate(0deg); }
  10%  { transform: translate(-1px, -3px) rotate(-1deg); }
  20%  { transform: translate(-2px, 0px) rotate(1deg); }
  30%  { transform: translate(1px, 2px) rotate(0deg); }
  40%  { transform: translate(1px, -1px) rotate(1deg); }
  50%  { transform: translate(-1px, 3px) rotate(-1deg); }
  60%  { transform: translate(-1px, 1px) rotate(0deg); }
  70%  { transform: translate(3px, 1px) rotate(-1deg); }
  80%  { transform: translate(-2px, -1px) rotate(1deg); }
  90%  { transform: translate(2px, 1px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Long fazers */
.rh-blogs-longfazers {
  position: absolute;
  width: 100%;
  height: 100%;
}

.rh-blogs-longfazers span {
  position: absolute;
  height: 2px;
  width: 20%;
  background: rgba(255, 255, 255, 0.15);
}

.rh-blogs-longfazers span:nth-child(1) { top: 20%; animation: rh-blogs-lf 0.6s linear infinite; animation-delay: -5s; }
.rh-blogs-longfazers span:nth-child(2) { top: 40%; animation: rh-blogs-lf2 0.8s linear infinite; animation-delay: -1s; }
.rh-blogs-longfazers span:nth-child(3) { top: 60%; animation: rh-blogs-lf3 0.6s linear infinite; }
.rh-blogs-longfazers span:nth-child(4) { top: 80%; animation: rh-blogs-lf4 0.5s linear infinite; animation-delay: -3s; }

@keyframes rh-blogs-lf  { 0% { left: 200%; } 100% { left: -200%; opacity: 0; } }
@keyframes rh-blogs-lf2 { 0% { left: 200%; } 100% { left: -200%; opacity: 0; } }
@keyframes rh-blogs-lf3 { 0% { left: 200%; } 100% { left: -100%; opacity: 0; } }
@keyframes rh-blogs-lf4 { 0% { left: 200%; } 100% { left: -100%; opacity: 0; } }

/* Clouds */
.rh-blogs-clouds {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.rh-blogs-cloud {
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
  opacity: 0.12;
  animation: rh-blogs-moveClouds linear infinite;
}

.rh-blogs-cloud::before,
.rh-blogs-cloud::after {
  content: "";
  position: absolute;
  background: #ffffff;
  border-radius: 50%;
}

.rh-blogs-cloud::before { width: 60%; height: 60%; top: -30%; left: 10%; }
.rh-blogs-cloud::after  { width: 40%; height: 40%; top: -20%; left: 50%; }

.rh-blogs-cloud--1 { width: 60px; height: 35px; top: 12%; left: 300px; animation-duration: 3s; }
.rh-blogs-cloud--2 { width: 90px; height: 45px; top: 50%; left: 400px; animation-duration: 4s; }
.rh-blogs-cloud--3 { width: 50px; height: 28px; top: 25%; left: 500px; animation-duration: 5s; }
.rh-blogs-cloud--4 { width: 70px; height: 38px; top: 70%; left: 250px; animation-duration: 3.5s; }
.rh-blogs-cloud--5 { width: 80px; height: 30px; top: 85%; left: 350px; animation-duration: 2.5s; }

@keyframes rh-blogs-moveClouds { 0% { transform: translateX(0); } 100% { transform: translateX(-800px); } }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .rh-blogs-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .rh-blogs { padding: 70px 16px; }
  .rh-blogs-heading h2 { font-size: 32px; }
  .rh-blogs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
  }
  .rh-blogs-card__title { font-size: 20px; }
  .rh-blogs-card:hover { scale: 0.98; rotate: -2deg; }
  .rh-blogs-card:nth-child(even):hover { rotate: 2deg; }
  .rh-blogs-viewall__scene { min-height: 180px; }
}

@media (max-width: 480px) {
  .rh-blogs-heading h2 { font-size: 26px; }
  .rh-blogs-heading { margin-bottom: 36px; }
}