.oqsha-wrap {
  background:
    radial-gradient(
      900px 500px at 18% 22%,
      rgba(17, 96, 251, 0.15),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 78% 12%,
      rgba(255, 255, 255, 0.04),
      transparent 60%
    ),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
  padding: clamp(12px, 3vw, 24px);
  font-family: "Inter", sans-serif;
  min-height: 100vh;
  overflow-x: clip;
}

.oqsha-wrap.resources-blog-page-active {
  background: rgba(248, 250, 252, 1);
}

.oqsha-wrap.resources-blog-page-active {
  min-height: auto;
}

.oqsha-hero-card {
  max-width: 1360px;
  margin: 0 auto;
  border-radius: 32px;
  border: 1px solid var(--stroke);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.01)
  );
  padding: clamp(24px, 5vw, 48px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.oqsha-hero-card.resources-blog-page-active {
  max-width: 1400px;
  padding: clamp(24px, 5vw, 48px) 8px;
  background: none;
  border: none;
  box-shadow: none;
  overflow: visible;
}

.oqsha-hero-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.oqsha-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  position: relative;
  z-index: 2;
  font-family: "Inter", sans-serif;
}

.oqsha-wrap.resources-blog-page-active .oqsha-hero-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.oqsha-hero-badge {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(30, 100, 247, 1);
  background-color: rgba(239, 246, 255, 1);
  border-radius: 999px;
  margin-bottom: 8px;
}

.oqsha-hero-card.resources-blog-page-active .oqsha-hero-badge {
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(226, 232, 240, 1);
  background: rgba(255, 255, 255, 1);
  color: rgba(51, 65, 85, 1);
}

.oqsha-h1 {
  margin: 0 0 20px;
  line-height: 1.25;
  font-family: "Sora", sans-serif;
  font-size: clamp(40px, 4vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.oqsha-hero-card.resources-blog-page-active .oqsha-h1 {
  font-size: clamp(40px, 4vw, 64px);
  color: rgba(15, 23, 42, 1);
}

.oqsha-sub {
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.6;
  max-width: 632px;
}

.oqsha-hero-card.resources-blog-page-active .oqsha-sub {
  color: rgba(82, 98, 122, 1);
}

.oqsha-hero-card.resources-blog-page-active .oqsha-sub {
  max-width: 570px;
  font-size: 20px;
}

.oqsha-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.oqsha-hero-card.resources-blog-page-active .oqsha-btn--primary {
  background: rgba(15, 23, 42, 1);
  border: 1px solid rgba(203, 213, 225, 1);
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  color: rgba(255, 255, 255, 1);
}

.oqsha-hero-card.resources-blog-page-active .oqsha-btn--primary:hover {
  background-color: rgba(15, 23, 42, 0.9);
  transform: translateY(-2px);
}

.oqsha-btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.oqsha-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.oqsha-hero-card.resources-blog-page-active .oqsha-btn--ghost {
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(226, 232, 240, 1);
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.05);
  color: rgba(51, 65, 85, 1);
}

.oqsha-hero-card.resources-blog-page-active .oqsha-btn--ghost:hover {
  background-color: rgba(0 0 0 / 0.05);
  transform: translateY(-2px);
}

/* Right content of hero section of resource blog page */
.res-blog-mockup-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.res-blog-mockup-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 520px;
  border: 1px solid rgba(241, 245, 249, 1);
  box-shadow:
    0 30px 60px -15px rgba(20, 35, 60, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}

/* Top Bar */
.res-blog-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border: 1.5px solid #f1f5f9;
  border-radius: 12px;
  margin-bottom: 20px;
}

.res-blog-search-icon {
  width: 18px;
  height: 18px;
  color: #94a3b8;
}

.res-blog-search-track {
  flex: 1;
  height: 10px;
  background-color: #f1f5f9;
  border-radius: 6px;
}

/* Body Content */
.res-blog-body {
  display: flex;
  gap: 20px;
}

/* Left Column inside card */
.res-blog-col-left {
  flex: 1.1;
  border: 1.5px solid #f1f5f9;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.res-blog-img-placeholder {
  height: 130px;
  background-color: #e6effd; /* Light blue placeholder */
  position: relative;
}

.res-blog-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: #ffffff;
  color: #1a56db;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

.res-blog-col-left-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.res-blog-skel-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Right Column inside card */
.res-blog-col-right {
  flex: 0.9;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.res-blog-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1.5px solid #f1f5f9;
  border-radius: 12px;
}

.res-blog-list-icon {
  width: 36px;
  height: 36px;
  background-color: #f1f5f9;
  border-radius: 8px;
  flex-shrink: 0;
}

.res-blog-list-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Skeleton Line Styles */
.res-blog-skel-dark {
  background-color: #1e293b;
  border-radius: 6px;
  height: 12px;
}

.res-blog-skel-light {
  background-color: #e2e8f0;
  border-radius: 6px;
  height: 8px;
}

/* Utility widths for skeletons */
.res-blog-w-full {
  width: 100%;
}
.res-blog-w-85 {
  width: 85%;
}
.res-blog-w-70 {
  width: 70%;
}
.res-blog-w-60 {
  width: 60%;
}

/* 1. The keyframes stay exactly the same */
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Hide elements initially so they don't show before loading finishes */
.res-blog-topbar,
.res-blog-col-left,
.res-blog-list-item {
  opacity: 0;
}

/* 3. ONLY run animations when the '.animations-ready' class is added */
.animations-ready .res-blog-topbar {
  animation: slideInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.animations-ready .res-blog-col-left {
  animation: slideInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

.animations-ready .res-blog-list-item {
  animation: slideInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.animations-ready .res-blog-list-item:nth-child(1) {
  animation-delay: 1.2s;
}
.animations-ready .res-blog-list-item:nth-child(2) {
  animation-delay: 1.4s;
}
.animations-ready .res-blog-list-item:nth-child(3) {
  animation-delay: 1.6s;
}

@media (max-width: 175px) {
  .oqsha-hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

@media (max-width: 1024px) {
  .res-blog-body {
    flex-direction: column;
  }

  .oqsha-hero-card.resources-blog-page-active .oqsha-h1 {
    font-size: clamp(40px, 6vw, 64px);
  }
  .oqsha-hero-card.resources-blog-page-active .oqsha-sub {
    font-size: 24px;
  }
  .oqsha-hero-card.resources-blog-page-active .oqsha-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .oqsha-hero-card.resources-blog-page-active .oqsha-copy {
    order: initial;
    text-align: center;
  }
  .oqsha-cta {
    justify-content: center;
  }
  .oqsha-sub {
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .oqsha-cta {
    flex-direction: column;
    align-items: center;
  }
}

/* Get weekly safety insights */
.res-feat-section {
  background-color: rgba(11, 19, 43, 1);
  padding: 80px 5%;
  color: #ffffff;
  display: flex;
  justify-content: center;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

.res-feat-container {
  width: 100%;
  max-width: 1360px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* * TOP GRID (Cards) * */
.res-feat-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

/* 1. Featured Article Card */
.res-feat-article-card {
  background-color: rgba(30, 41, 59, 0.5);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.res-feat-img-wrapper {
  width: 45%;
  flex-shrink: 0;
}

.res-feat-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.res-feat-article-content {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.res-feat-tag {
  background-color: rgba(219, 234, 254, 1);
  color: rgba(29, 78, 216, 1);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 20px;
  border: 1px solid rgba(191, 219, 254, 1);
}

.res-feat-article-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 16px 0;
  color: #ffffff;
}

.res-feat-article-desc {
  color: rgba(148, 163, 184, 1);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 32px 0;
}

.res-feat-article-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
}

.res-feat-read-time {
  color: rgba(100, 116, 139, 1);
  font-size: 13px;
}

.res-feat-read-link {
  color: rgba(96, 165, 250, 1);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s;
}

.res-feat-read-link:hover {
  color: #93c5fd;
}

/* 2. Newsletter Card */
.res-feat-newsletter-card {
  background: radial-gradient(
    circle at top right,
    #1f2e4d 0%,
    #0d1424 40%,
    rgba(30, 41, 59, 0.3) 100%
  );
  border-radius: 16px;
  padding: 40px 32px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.res-feat-mail-icon {
  width: 32px;
  height: 32px;
  color: rgba(96, 165, 250, 1);
  margin-bottom: 20px;
}

.res-feat-disclaimer {
  text-align: center;
  color: rgba(100, 116, 139, 1);
  font-size: 12px;
  margin-top: 16px;
}

/* Jetpack Newsletter Form Styling - Featured Section */
.res-feat-newsletter-card .jetpack_subscription_widget {
  margin: 0;
}

.res-feat-newsletter-card .jetpack_subscription_widget h2.widgettitle {
  font-size: 20px !important;
  font-weight: 700 !important;
  margin: 0 0 12px 0 !important;
  color: #ffffff !important;
  text-transform: none !important;
  text-align: left !important;
  letter-spacing: normal !important;
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  font-family: inherit !important;
}

.res-feat-newsletter-card .jetpack_subscription_widget #subscribe-text p {
  color: rgba(148, 163, 184, 1) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  margin: 0 0 24px 0 !important;
  text-align: left !important;
}

.res-feat-newsletter-card .jetpack_subscription_widget form {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  align-items: stretch !important;
}

.res-feat-newsletter-card .jetpack_subscription_widget form > div#subscribe-text {
  width: 100% !important;
}

.res-feat-newsletter-card .jetpack_subscription_widget #subscribe-email {
  flex: 1 !important;
  margin: 0 !important;
}

.res-feat-newsletter-card .jetpack_subscription_widget #subscribe-submit {
  margin: 0 !important;
}

.res-feat-newsletter-card .jetpack_subscription_widget input[type="email"] {
  background-color: #0f172a !important;
  border: 1px solid rgba(51, 65, 85, 1) !important;
  color: #ffffff !important;
  padding: 14px 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  outline: none !important;
  transition: border-color 0.2s !important;
  height: auto !important;
  min-height: 44px !important;
}

.res-feat-newsletter-card .jetpack_subscription_widget input[type="email"]::placeholder {
  color: rgba(100, 116, 139, 1) !important;
}

.res-feat-newsletter-card .jetpack_subscription_widget input[type="email"]:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1) !important;
}

.res-feat-newsletter-card .jetpack_subscription_widget button[type="submit"],
.res-feat-newsletter-card .jetpack_subscription_widget .wp-block-button__link {
  background-color: rgba(37, 99, 235, 1) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 14px 16px !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  height: auto !important;
}

.res-feat-newsletter-card .jetpack_subscription_widget button[type="submit"]:hover,
.res-feat-newsletter-card .jetpack_subscription_widget .wp-block-button__link:hover {
  background-color: #2563eb !important;
}

/* Success/Error Messages */
.res-feat-newsletter-card .jetpack_subscription_widget .success,
.res-feat-newsletter-card .jetpack_subscription_widget .error {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
}

.res-feat-newsletter-card .jetpack_subscription_widget .success {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.res-feat-newsletter-card .jetpack_subscription_widget .error {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Hide Jetpack branding if present */
.res-feat-newsletter-card .jetpack_subscription_widget .wp-block-jetpack-subscriptions__show-subs {
  display: none;
}

/* * BOTTOM CATEGORIES * */
.res-feat-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.res-feat-cat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(51, 65, 85, 0.5);
  color: rgba(203, 213, 225, 1);
  padding: 10px 18px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.res-feat-cat-pill svg {
  width: 16px;
  height: 16px;
  color: #64748b;
  transition: color 0.2s;
}

.res-feat-cat-pill:hover {
  background-color: #1e293b;
  color: #ffffff;
  border-color: #334155;
}

.res-feat-cat-pill:hover svg {
  color: #94a3b8;
}

/* * RESPONSIVE DESIGN * */
@media (max-width: 1024px) {
  .res-feat-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .res-feat-article-card {
    flex-direction: column;
  }
  .res-feat-img-wrapper {
    width: 100%;
    height: 200px;
  }
  .res-feat-article-content {
    padding: 24px;
  }
  .res-feat-newsletter-card {
    padding: 32px 24px;
  }
}

/* What will you learn */
.res-learn-section {
  background-color: rgba(11, 19, 43, 1);
  padding: 80px 5%;
  display: flex;
  justify-content: center;
  color: #ffffff;
}

.res-learn-container {
  width: 100%;
  max-width: 1360px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* * HEADER AREA * */
.res-learn-header {
  text-align: center;
  max-width: 700px;
  margin-bottom: 60px;
}

.res-learn-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 16px 0;
  color: #ffffff;
}

.res-learn-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(148, 163, 184, 1);
  margin: 0;
}

/* * CARDS GRID * */
.res-learn-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  width: 100%;
}

/* * INDIVIDUAL CARD * */
.res-learn-card {
  background-color: #131b2d; /* Slightly lighter navy for cards */
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.res-learn-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.3);
}

/* * ICON WRAPPER * */
.res-learn-icon-wrapper {
  width: 44px;
  height: 44px;
  background-color: rgba(59, 130, 246, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.res-learn-icon {
  width: 20px;
  height: 20px;
  color: rgba(96, 165, 250, 1);
}

/* * CARD TEXT * */
.res-learn-card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 16px 0;
  line-height: 1.3;
  color: #ffffff;
}

.res-learn-card-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(148, 163, 184, 1);
  margin: 0;
}

/* * RESPONSIVE DESIGN * */
@media (max-width: 1024px) {
  .res-learn-grid {
    grid-template-columns: 1fr;
  }

  .res-learn-container {
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .res-learn-header {
    margin-bottom: 40px;
  }
}

/* Not ready for demo section */
.res-cta-section {
  background-color: #f8fafc;
  padding: 80px 5%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* * BANNER WRAPPER * */
.res-cta-banner {
  width: 100%;
  max-width: 1100px;
  border-radius: 24px;
  display: flex;
  overflow: hidden;
  color: #ffffff;
  box-shadow:
    0 25px 50px -12px rgba(37, 99, 235, 0.25),
    0 0 0 1px rgba(0, 0, 0, 0.05);
}

/* * LEFT COLUMN (Demo) * */
.res-cta-left {
  flex: 1.2;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background-color: rgba(37, 99, 235, 1);
}

.res-cta-title-main {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: #ffffff;
}

.res-cta-desc-main {
  font-size: 15px;
  line-height: 1.6;
  color: #dbeafe;
  margin: 0 0 32px 0;
  max-width: 82%;
}

.res-cta-btn-white {
  background-color: #ffffff;
  color: #1d4ed8;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    background-color 0.2s,
    transform 0.1s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.res-cta-btn-white:hover {
  background-color: #f8fafc;
}

.res-cta-btn-white:active {
  transform: translateY(1px);
}

.res-cta-icon-play {
  width: 20px;
  height: 20px;
}

/* * RIGHT COLUMN (Newsletter) * */
.res-cta-right {
  flex: 1;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: rgba(29, 78, 216, 0.95);
}

/* Jetpack Newsletter Form Styling - CTA Section */
.res-cta-right .jetpack_subscription_widget {
  margin: 0;
  width: 100%;
  max-width: 400px;
}

.res-cta-right .jetpack_subscription_widget h2.widgettitle {
  font-size: 20px !important;
  font-weight: 700 !important;
  margin: 0 0 16px 0 !important;
  color: #ffffff !important;
  text-transform: none !important;
  text-align: left !important;
  letter-spacing: normal !important;
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  font-family: inherit !important;
}

.res-cta-right .jetpack_subscription_widget #subscribe-text p {
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #dbeafe !important;
  margin: 0 0 24px 0 !important;
  text-align: left !important;
}

.res-cta-right .jetpack_subscription_widget form {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  width: 100% !important;
  align-items: stretch !important;
}

.res-cta-right .jetpack_subscription_widget form > div#subscribe-text {
  width: 100% !important;
}

.res-cta-right .jetpack_subscription_widget #subscribe-email {
  flex: 1 !important;
  margin: 0 !important;
}

.res-cta-right .jetpack_subscription_widget #subscribe-submit {
  margin: 0 !important;
}

.res-cta-right .jetpack_subscription_widget input[type="email"] {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  padding: 14px 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  outline: none !important;
  transition: background-color 0.2s, border-color 0.2s !important;
  width: 100% !important;
  box-sizing: border-box !important;
  height: auto !important;
  min-height: 44px !important;
}

.res-cta-right .jetpack_subscription_widget input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
}

.res-cta-right .jetpack_subscription_widget input[type="email"]:focus {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
}

.res-cta-right .jetpack_subscription_widget button[type="submit"],
.res-cta-right .jetpack_subscription_widget .wp-block-button__link {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border: none !important;
  padding: 14px 16px !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background-color 0.2s !important;
  width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 44px !important;
  height: auto !important;
}

.res-cta-right .jetpack_subscription_widget button[type="submit"]:hover,
.res-cta-right .jetpack_subscription_widget .wp-block-button__link:hover {
  background-color: #1e293b !important;
}

/* Success/Error Messages */
.res-cta-right .jetpack_subscription_widget .success,
.res-cta-right .jetpack_subscription_widget .error {
  margin-top: 12px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
}

.res-cta-right .jetpack_subscription_widget .success {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.res-cta-right .jetpack_subscription_widget .error {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Hide Jetpack branding if present */
.res-cta-right .jetpack_subscription_widget .wp-block-jetpack-subscriptions__show-subs {
  display: none;
}

/* * RESPONSIVE DESIGN * */
@media (max-width: 1024px) {
  .res-cta-right {
    flex: 0.8;
  }
  .res-cta-left,
  .res-cta-right {
    padding: 40px 32px;
  }
}

@media (max-width: 768px) {
  .res-cta-banner {
    flex-direction: column;
  }

  .res-cta-right {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
  }

  .res-cta-desc-main {
    max-width: 95%;
  }

  .res-cta-left,
  .res-cta-right {
    padding: 40px 32px;
  }
}

/* Base Variables & Reset Scoped to this section */
.rb-section {
  --rb-bg-color: #ffffff;
  --rb-text-main: #111827;
  --rb-text-muted: #6b7280;
  --rb-border-color: #f3f4f6;
  --rb-border-darker: #E2E8F0;
  --rb-input-bg: #F8FAFC;
  --rb-primary-blue: #2563eb;
  --rb-primary-blue-hover: #1d4ed8;

  /* Badge Colors */
  --rb-badge-blue-bg: #EFF6FF;
  --rb-badge-blue-text: #2563EB;
  --rb-badge-orange-bg: #FFF7ED;
  --rb-badge-orange-text: #EA580C;
  --rb-badge-green-bg: #ECFDF5;
  --rb-badge-green-text: #059669;
  --rb-badge-gray-bg: #F1F5F9;
  --rb-badge-gray-text: #475569;
  --rb-badge-purple-bg: #F5F3FF;
  --rb-badge-purple-text: #7C3AED;
  --rb-badge-pink-bg: #FDF2F8;
  --rb-badge-pink-text: #DB2777;
  --rb-badge-yellow-bg: #FEFCE8;
  --rb-badge-yellow-text: #CA8A04;
  --rb-badge-teal-bg: #F0FDFA;
  --rb-badge-teal-text: #0D9488;

  font-family: inherit;
  background-color: var(--rb-bg-color);
  color: var(--rb-text-main);
  -webkit-font-smoothing: antialiased;
  padding: 4rem 0;
}

.rb-section * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.rb-section a {
  text-decoration: none;
}
.rb-section button {
  font-family: inherit;
}

/* Container */
.rb-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .rb-container {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .rb-container {
    padding: 0 2rem;
  }
}

/* Toolbar / Header */
.rb-toolbar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rb-border-color);
}

@media (min-width: 1024px) {
  .rb-toolbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Search Input */
.rb-search-container {
  position: relative;
  width: 100%;
}

@media (min-width: 1024px) {
  .rb-search-container {
    width: 24rem;
  }
}

.rb-search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  width: 1rem;
  height: 1rem;
}

input[type=text].rb-search-input {
  width: 100%;
  padding: 0.625rem 1rem 0.625rem 2.5rem;
  background-color: var(--rb-input-bg);
  border: 1px solid var(--rb-border-darker);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
  transition: all 0.2s;
  outline: none;
}

input[type=text].rb-search-input::placeholder {
  color: #9ca3af;
}
input[type=text].rb-search-input:focus {
  border-color: var(--rb-border-darker);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Filters */
.rb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 1024px) {
  .rb-filters {
    width: auto;
  }
}

.rb-filter-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: #ffffff;
  border: 1px solid var(--rb-border-darker);
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.rb-filter-btn:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
}

.rb-filter-btn svg {
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
}

/* Category Dropdown */
.rb-category-dropdown {
  position: relative;
}

.rb-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background-color: #ffffff;
  border: 1px solid var(--rb-border-darker);
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  padding: 0.5rem 0;
  z-index: 50;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.rb-dropdown-menu.active {
  display: block;
}

.rb-dropdown-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: #374151;
  text-decoration: none;
  transition: background-color 0.2s;
}

.rb-dropdown-item:hover {
  background-color: #f3f4f6;
}

.rb-dropdown-item.active {
  background-color: #eff6ff;
  color: #2563eb;
  font-weight: 600;
}

/* Article Grid */
.rb-article-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 2rem;
  row-gap: 3rem;
}

@media (min-width: 768px) {
  .rb-article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .rb-article-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Article Card */
.rb-article-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.rb-article-card:hover .rb-article-image {
  transform: scale(1.05);
}
.rb-article-card:hover .rb-article-title {
  color: var(--rb-primary-blue);
}
.rb-article-card:hover .rb-read-more {
  color: var(--rb-primary-blue-hover);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Image */
.rb-image-wrapper {
  overflow: hidden;
  border-radius: 1rem;
  margin-bottom: 1.25rem;
}

.rb-article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

/* Card Content */
.rb-article-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Badge */
.rb-badge-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.rb-badge {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 0.25rem;
}

.rb-badge.rb-blue {
  background-color: var(--rb-badge-blue-bg);
  color: var(--rb-badge-blue-text);
}
.rb-badge.rb-orange {
  background-color: var(--rb-badge-orange-bg);
  color: var(--rb-badge-orange-text);
}
.rb-badge.rb-green {
  background-color: var(--rb-badge-green-bg);
  color: var(--rb-badge-green-text);
}
.rb-badge.rb-gray {
  background-color: var(--rb-badge-gray-bg);
  color: var(--rb-badge-gray-text);
}
.rb-badge.rb-purple {
  background-color: var(--rb-badge-purple-bg);
  color: var(--rb-badge-purple-text);
}
.rb-badge.rb-pink {
  background-color: var(--rb-badge-pink-bg);
  color: var(--rb-badge-pink-text);
}
.rb-badge.rb-yellow {
  background-color: var(--rb-badge-yellow-bg);
  color: var(--rb-badge-yellow-text);
}
.rb-badge.rb-teal {
  background-color: var(--rb-badge-teal-bg);
  color: var(--rb-badge-teal-text);
}

/* Text Content */
.rb-article-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}

.rb-article-excerpt {
  font-size: 0.875rem;
  color: var(--rb-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card Footer */
.rb-article-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
}

.rb-article-meta {
  font-size: 0.75rem;
  color: var(--rb-text-muted);
  font-weight: 500;
}

.rb-read-more {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rb-primary-blue);
  transition: color 0.2s ease;
}

.rb-read-more svg {
  margin-left: 0.25rem;
  width: 1rem;
  height: 1rem;
}

/* Load More Button */
.rb-load-more-wrapper {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.rb-load-more-btn {
  padding: 0.625rem 1.5rem;
  background-color: #ffffff;
  border: 1px solid var(--rb-border-darker);
  border-radius: 9999px; /* full rounded */
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.rb-load-more-btn:hover {
  background-color: #f9fafb;
  color: var(--rb-text-main);
  border-color: #d1d5db;
}
