/* ═══════════════════════════════════════════════════════════════
   Resources Pages (main, category list, detail)
   ═══════════════════════════════════════════════════════════════ */

/* ── Smooth scroll for anchor nav ── */
html {
  scroll-behavior: smooth;
}

/* ── Category Navigation ── */
.rc-category-nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.rc-nav-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.rc-nav-scroll::-webkit-scrollbar {
  display: none;
}

.rc-nav-inner {
  display: inline-flex;
  min-width: 100%;
  justify-content: center;
  padding: 0 24px;
  gap: 0;
}

.rc-nav-item {
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.rc-nav-item:hover {
  color: var(--color-primary);
  text-decoration: none;
  border-bottom-color: var(--color-primary);
}

.rc-nav-active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* ── Breadcrumb ── */
.rc-breadcrumb {
  color: rgba(255, 255, 255, .7);
  text-decoration: none;
}

.rc-breadcrumb:hover {
  color: #fff;
}

/* ── Section ── */
.rc-section {
  padding: 60px 0;
  scroll-margin-top: 52px;
}

.rc-section:nth-child(even) {
  background: #f5f8fc;
}

.rc-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.rc-section-header {
  text-align: center;
  margin-bottom: 32px;
}

.rc-section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #212121;
  margin: 0 0 8px;
}

.rc-view-more {
  text-align: center;
  margin-top: 36px;
}

/* ── Cards Grid ── */
.rc-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.rc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  text-decoration: none;
  color: #333;
  transition: transform 0.2s, box-shadow 0.2s;
}

.rc-card:not(.rc-card-disabled):hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
  text-decoration: none;
}

.rc-card-disabled {
  cursor: default;
  pointer-events: none;
}

.rc-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.rc-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rc-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(233, 0, 30, .9);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rc-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rc-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #212121;
  margin: 0 0 6px;
  line-height: 1.4;
}

.rc-card-subtitle {
  font-size: 15px;
  color: #444;
  font-weight: 500;
  margin: 0 0 10px;
}

.rc-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #636363;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rc-card-date {
  font-size: 12px;
  color: #999;
  margin-top: auto;
}

/* ── Detail Page ── */
.rc-detail-header {
  padding: 40px 0;
  background: #fff;
}

.rc-detail-breadcrumb {
  font-size: 14px;
  color: #999;
  margin-bottom: 24px;
  padding: 20px 0 0;
}

.rc-detail-breadcrumb a {
  color: #ff0037;
}

.rc-detail-breadcrumb span {
  margin: 0 6px;
}

.rc-detail-hero {
  max-width: 800px;
  margin-bottom: 24px;
}

.rc-detail-hero img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

.rc-detail-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #212121;
  margin: 0 0 8px;
  line-height: 1.25;
}

.rc-detail-subtitle {
  font-size: 1.1rem;
  color: #e9001e;
  font-weight: 600;
  margin: 0 0 12px;
}

.rc-detail-date {
  font-size: 14px;
  color: #999;
}

.rc-detail-body {
  padding: 48px 0 80px;
}

.rc-body-content {
  max-width: 800px;
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.rc-body-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.rc-body-content a {
  color: #ff0037;
}

/* ── Use Case Article (blog-style, matches vicone.com blogInnerContainer) ── */
.use-case-article {
  max-width: 1000px;
  margin: 0 auto;
  padding: 100px 20px 80px;
}

.use-case-article .rc-body-content {
  max-width: 100%;
  font-size: 18px;
  line-height: 1.8;
  color: #333;
}

.use-case-article .rc-body-content h2 {
  font-size: 32px;
  font-weight: 800;
  color: #212121;
  margin: 48px 0 20px;
  line-height: 1.3;
}

.use-case-article .rc-body-content h3 {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin: 36px 0 14px;
  line-height: 1.4;
}

.use-case-article .rc-body-content p {
  margin: 18px 0;
}

.use-case-article .rc-body-content ul {
  padding-left: 24px;
  margin: 18px 0;
}

.use-case-article .rc-body-content li {
  margin-bottom: 10px;
  line-height: 1.8;
}

.use-case-article .rc-body-content a {
  color: #ff0037;
}

.use-case-article .rc-detail-hero {
  max-width: 100%;
  margin-bottom: 40px;
}

.use-case-article .rc-detail-hero img {
  width: 100%;
  border-radius: 8px;
}

.use-case-article .pg-btn-primary {
  margin-top: 32px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .rc-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .rc-section {
    padding: 40px 0;
  }

  .rc-section-header h2 {
    font-size: 22px;
  }

  .rc-cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rc-card-image {
    height: 180px;
  }

  .rc-detail-title {
    font-size: 1.6rem;
  }
}