/* Home Page Specific Styles */

/* Hero Section — clean gradient, no wave overlay */
.rp-hero {
  background: linear-gradient(135deg, #667eea 0%, #6f73d4 42%, #764ba2 100%);
  color: #fff;
  padding: 1.75rem 0 1.5rem;
  border-radius: var(--rp-radius-lg, 16px);
  overflow: hidden;
  position: relative;
  box-shadow: var(--rp-shadow-md, 0 4px 16px rgba(15, 23, 42, 0.08));
  margin-bottom: 1.5rem;
  margin-top: -1.5rem;
}

.rp-hero-inner {
  position: relative;
  z-index: 1;
}

.rp-hero__title {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.85rem;
}

.rp-hero__features {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 1rem;
  max-width: 26rem;
}

.rp-hero__features li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  opacity: 0.95;
}

.rp-hero__check {
  color: #86efac;
  font-weight: 700;
  flex-shrink: 0;
}

.rp-hero__search {
  display: flex;
  gap: 0.5rem;
  max-width: 32rem;
}

.rp-hero__search-input {
  flex: 1;
  min-width: 0;
  border: none;
  border-radius: var(--rp-radius-sm, 8px);
  padding: 0.65rem 0.9rem;
  font-size: 0.9375rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.rp-hero__search-input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}

.rp-hero__search-btn {
  flex-shrink: 0;
  padding: 0.65rem 1.35rem;
  font-size: 0.9375rem;
  font-weight: 700;
  white-space: nowrap;
  border: none !important;
  background: linear-gradient(145deg, #ff8a4c 0%, #ff6b35 42%, #f7931e 100%) !important;
  box-shadow:
    0 4px 14px rgba(255, 107, 53, 0.38),
    0 2px 6px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.4, 0.64, 1),
    box-shadow 0.28s ease,
    background 0.28s ease !important;
  transform: translateZ(0);
}

.rp-hero__search-btn:hover {
  background: linear-gradient(145deg, #ff9a5e 0%, #ff7847 42%, #f9a02a 100%) !important;
  transform: translateY(-2px) scale(1.04) !important;
  box-shadow:
    0 10px 26px rgba(255, 107, 53, 0.45),
    0 4px 10px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.32) !important;
  color: #fff !important;
}

.rp-hero__search-btn:active {
  transform: translateY(0) scale(0.98) !important;
  box-shadow:
    0 3px 10px rgba(255, 107, 53, 0.32),
    inset 0 2px 4px rgba(0, 0, 0, 0.12) !important;
}

.rp-hero__search-btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.85);
  outline-offset: 2px;
}

.rp-hero-panel {
  height: 100%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--rp-radius-md, 12px);
  padding: 0.85rem 1rem;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rp-hero-panel__heading {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.4rem;
  opacity: 0.9;
}

.rp-hero-panel__jobs {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rp-hero-panel__jobs li {
  margin: 0 0 0.35rem;
}

.rp-hero-panel__jobs li:last-child {
  margin-bottom: 0;
}

.rp-hero-panel__jobs a {
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-decoration: none;
  display: block;
  padding: 0.2rem 0;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.rp-hero-panel__jobs a:hover {
  opacity: 1;
  text-decoration: underline;
  transform: translateX(2px);
}

.rp-hero-trend-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rp-hero-trend-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.rp-hero-trend-chip:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rp-hero-panel__block--trend {
  margin-top: auto;
}

@media (max-width: 991px) {
  .rp-hero {
    padding: 1.35rem 0 1.25rem;
  }

  .rp-hero-panel {
    margin-top: 0.25rem;
  }

  .rp-hero-panel__block--trend {
    margin-top: 0;
  }
}

@media (max-width: 576px) {
  .rp-hero {
    margin-top: -1rem;
    padding: 1.15rem 0 1rem;
    border-radius: var(--rp-radius-md, 12px);
  }

  .rp-hero__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem 0.65rem;
    max-width: 100%;
  }

  .rp-hero__features li {
    font-size: 0.8125rem;
  }

  .rp-hero__search {
    flex-direction: column;
  }

  .rp-hero__search-btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .rp-hero {
    margin-top: -1.5rem;
  }
}

.rp-meta-line { color: #6c757d; font-size: 0.95rem; }
.rp-card-title a { text-decoration: none; color: #2c3e50; }
.rp-card-title a:hover { text-decoration: underline; }

/* Clean Job Card Design */
.job-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.job-card {
  border: 1px solid #e5e7eb;
  border-radius: var(--rp-radius-md, 12px);
  background: white;
  transition: transform var(--rp-transition, 0.25s ease), box-shadow var(--rp-transition, 0.25s ease), border-color 0.25s ease;
  box-shadow: var(--rp-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.06));
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.job-card-link:hover .job-card {
  box-shadow: var(--rp-shadow-hover, 0 8px 24px rgba(102, 126, 234, 0.15));
  border-color: #c7d2fe;
  transform: translateY(-3px);
}

.job-card .job-card-header {
  padding: 1.25rem 1.25rem 0.75rem !important;
}

.job-card .job-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0 !important;
  color: #2563eb;
  transition: color 0.2s ease;
}

.job-card-link:hover .job-card-title {
  color: #1d4ed8;
}

.job-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  background: #f3f4f6;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #4b5563;
}

.job-card-badge svg {
  width: 12px;
  height: 12px;
}

.job-card .job-card-body {
  padding: 0 1.25rem 1.25rem !important;
  flex-grow: 1;
}

.job-card-excerpt {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



@media (max-width: 768px) {
  .job-card .job-card-header {
    padding: 1rem !important;
    padding-bottom: 0.75rem !important;
  }
  
  .job-card .job-card-title {
    font-size: 0.9375rem;
  }
  
  .job-card .job-card-body {
    padding: 0 1rem 1rem !important;
  }
  
  .job-card-excerpt {
    font-size: 0.8125rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
}

/* Blog Card Design - Different from Job Cards */
.blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.blog-card {
  border: 1px solid #e5e7eb;
  border-radius: var(--rp-radius-md, 12px);
  background: white;
  transition: transform var(--rp-transition, 0.25s ease), box-shadow var(--rp-transition, 0.25s ease), border-color 0.25s ease;
  box-shadow: var(--rp-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.06));
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
}

.blog-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #28a745 0%, #20c997 100%);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s ease;
}

.blog-card-link:hover .blog-card {
  box-shadow: 0 8px 24px rgba(40, 167, 69, 0.18);
  border-color: #86efac;
  transform: translateY(-3px);
}

.blog-card:hover::after {
  transform: scaleY(1);
}

.blog-card-header {
  padding: 1.25rem 1.25rem 0.75rem;
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
  color: #2563eb;
  transition: color 0.2s ease;
}

.blog-card-link:hover .blog-card-title {
  color: #1d4ed8;
}

.blog-card-excerpt {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-body {
  padding: 0 1.25rem 1.25rem;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .blog-card-header {
    padding: 1rem;
    padding-bottom: 0.75rem;
  }
  
  .blog-card-body {
    padding: 0 1rem 1rem;
  }
  
  .blog-card-title {
    font-size: 0.9375rem;
  }
  
  /* Hide desktop view all buttons on mobile */
  .view-all-btn-desktop {
    display: none !important;
  }
  
  /* Show mobile view all buttons on mobile */
  .view-all-btn-mobile {
    display: block !important;
  }
}

/* Show desktop view all buttons on desktop */
.view-all-btn-desktop {
  display: inline-block;
}

/* Hide mobile view all buttons on desktop */
.view-all-btn-mobile {
  display: none;
}

/* Homepage section CTAs */
.view-all-btn-desktop,
.view-all-btn-mobile .btn {
  letter-spacing: 0.01em;
}

.text-center.view-all-btn-mobile {
  margin-top: 0.5rem;
}

/* Category Slider Wrapper */
.category-slider-wrapper {
  position: relative;
}

.category-swiper {
  padding-bottom: 50px;
}

.category-swiper .swiper-slide {
  height: auto;
}

/* Job Category Cards */
.category-card {
  display: block;
  background: white;
  border: 1px solid #e9ecef;
  border-radius: var(--rp-radius-md, 12px);
  transition: transform var(--rp-transition, 0.25s ease), box-shadow var(--rp-transition, 0.25s ease), border-color var(--rp-transition, 0.25s ease);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--rp-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.06));
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--rp-shadow-hover, 0 10px 28px rgba(102, 126, 234, 0.22));
  border-color: #a5b4fc;
  text-decoration: none;
}

.category-card-body {
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100px;
  gap: 0.75rem;
}

.category-card-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  color: white;
  transition: transform 0.3s ease;
}

.category-card-icon svg {
  width: 20px;
  height: 20px;
}

.category-card:hover .category-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.category-card-name {
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: #2c3e50;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.category-card:hover .category-card-name {
  color: #667eea;
}

.category-card-count {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
  text-align: center;
  font-weight: 400;
}

.state-card-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 0.75rem;
  flex-shrink: 0;
}

.category-card:hover .state-card-icon {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

/* State card specific styling */
.state-card {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.state-card:hover {
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
  transform: translateY(-3px);
}

.state-card .category-card-body {
  padding: 1.5rem 1rem;
  min-height: 140px;
  gap: 0.75rem;
}

.state-card .category-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  margin-top: 0;
  line-height: 1.3;
  text-align: center;
}

@media (max-width: 768px) {
  .category-card-body {
    padding: 1rem 0.5rem;
    min-height: 90px;
    gap: 0.5rem;
  }
  
  .category-card-icon {
    width: 36px;
    height: 36px;
  }
  
  .category-card-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .category-card-name {
    font-size: 0.8125rem;
  }
  
  .state-card-icon {
    width: 56px;
    height: 56px;
    font-size: 1.125rem;
    margin-bottom: 0.625rem;
  }
  
  .state-card .category-card-body {
    padding: 1.25rem 0.75rem;
    min-height: 130px;
  }
  
  .state-card .category-card-name {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .category-card-body {
    padding: 0.875rem 0.5rem;
    min-height: 85px;
    gap: 0.5rem;
  }
  
  .category-card-icon {
    width: 32px;
    height: 32px;
  }
  
  .category-card-icon svg {
    width: 16px;
    height: 16px;
  }
  
  .category-card-name {
    font-size: 0.75rem;
  }
  
  .state-card-icon {
    width: 52px;
    height: 52px;
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  .state-card .category-card-body {
    padding: 1rem 0.625rem;
    min-height: 120px;
  }
  
  .state-card .category-card-name {
    font-size: 0.8125rem;
  }
  
  .category-slider-wrapper {
    padding: 0 20px;
  }
}

/* Swiper Navigation Buttons */
.category-swiper-button-next,
.category-swiper-button-prev {
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  color: #667eea;
  transition: all 0.3s ease;
}

.category-swiper-button-next:after,
.category-swiper-button-prev:after {
  font-size: 16px;
  font-weight: 700;
}

.category-swiper-button-next:hover,
.category-swiper-button-prev:hover {
  background: #667eea;
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transform: scale(1.1);
}

.category-swiper-button-next {
  right: 0;
}

.category-swiper-button-prev {
  left: 0;
}

/* Swiper Pagination */
.category-swiper-pagination {
  bottom: 0 !important;
}

.category-swiper-pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: #d1d5db;
  opacity: 1;
  transition: all 0.3s ease;
}

.category-swiper-pagination .swiper-pagination-bullet-active {
  background: #667eea;
  width: 24px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .category-slider-wrapper {
    padding: 0 30px;
  }
  
  .category-swiper-button-next,
  .category-swiper-button-prev {
    width: 32px;
    height: 32px;
  }
  
  .category-swiper-button-next:after,
  .category-swiper-button-prev:after {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .category-slider-wrapper {
    padding: 0 25px;
  }
  
  .category-swiper-button-next,
  .category-swiper-button-prev {
    width: 28px;
    height: 28px;
  }
  
  .category-swiper-button-next:after,
  .category-swiper-button-prev:after {
    font-size: 12px;
  }
}

/* FAQ Section Styles */
.faq-container {
  margin-top: 1.5rem;
}

.faq-container .accordion {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.faq-container .accordion-item {
  border: none;
  border-bottom: 1px solid #e9ecef;
  background: white;
}

.faq-container .accordion-item:last-child {
  border-bottom: none;
}

.faq-container .accordion-button {
  background: #f8f9fa;
  color: #2c3e50;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.25rem 1.5rem;
  border: none;
  box-shadow: none;
  transition: all 0.3s ease;
}

.faq-container .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: none;
}

.faq-container .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}

.faq-container .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232c3e50'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transition: transform 0.3s ease;
}

.faq-container .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(180deg);
}

.faq-container .accordion-body {
  padding: 1.5rem;
  background: white;
  color: #495057;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-container .accordion-body p {
  margin-bottom: 0.875rem;
}

.faq-container .accordion-body p:last-child {
  margin-bottom: 0;
}

.faq-container .accordion-body ul,
.faq-container .accordion-body ol {
  margin-bottom: 0.875rem;
  padding-left: 1.5rem;
}

.faq-container .accordion-body li {
  margin-bottom: 0.4rem;
}

.faq-container .accordion-body a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
}

.faq-container .accordion-body a:hover {
  color: #764ba2;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .faq-container .accordion-button {
    font-size: 0.9375rem;
    padding: 1rem 1.25rem;
  }
  
  .faq-container .accordion-body {
    padding: 1.25rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .faq-container .accordion-button {
    font-size: 0.875rem;
    padding: 0.875rem 1rem;
  }
  
  .faq-container .accordion-body {
    padding: 1rem;
    font-size: 0.8125rem;
  }
}

/* ===== SECTION HEADING ACCENT ===== */
.home-section-h2 {
  position: relative;
  font-size: clamp(1.15rem, 2.1vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
  color: #1f2937;
  padding-bottom: 0.5rem;
}
.home-section-h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

@media (max-width: 576px) {
  .home-section-h2 {
    font-size: 1.05rem;
    line-height: 1.3;
  }
}

/* ===== JOB CARD META ===== */
.job-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}
.job-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}
.job-meta-cat {
  background: #ede9fe;
  color: #5b21b6;
}
.job-meta-state {
  background: #fef3c7;
  color: #92400e;
}
.job-meta-date {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-left: auto;
}

/* ===== BLOG CARD META ===== */
.blog-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.6rem;
}
.blog-meta-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  background: #d1fae5;
  color: #065f46;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 500;
}
.blog-meta-date {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-left: auto;
}

/* ===== WHY CHOOSE GRID ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.why-item {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--rp-radius-md, 12px);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--rp-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.06));
  transition: transform var(--rp-transition, 0.25s ease), box-shadow var(--rp-transition, 0.25s ease), border-color 0.25s ease;
}
.why-item:hover {
  box-shadow: var(--rp-shadow-hover, 0 8px 24px rgba(102, 126, 234, 0.15));
  border-color: #c4b5fd;
  transform: translateY(-3px);
}
.why-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.why-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}
.why-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}
.why-text {
  font-size: 0.8125rem;
  color: #6b7280;
  line-height: 1.55;
}

/* ===== ABOUT SECTION CARD ===== */
.about-section-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--rp-radius-md, 12px);
  padding: 1.5rem;
  box-shadow: var(--rp-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.06));
}
.about-section-note {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-left: 3px solid #667eea;
  border-radius: 0 var(--rp-radius-sm, 8px) var(--rp-radius-sm, 8px) 0;
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}

/* Home Tags Section - Compact Slider Design */
.home-tags-section {
  margin-bottom: 2rem;
  padding: 0.875rem 1rem;
  background: white;
  border-radius: var(--rp-radius-md, 12px);
  box-shadow: var(--rp-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.06));
  transition: box-shadow var(--rp-transition, 0.25s ease);
}

.home-tags-section:hover {
  box-shadow: var(--rp-shadow-md, 0 4px 16px rgba(15, 23, 42, 0.08));
}

.home-tags-heading {
  font-size: 1rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 0 0 0.75rem 0;
  letter-spacing: -0.01em;
}

.home-tags-swiper {
  overflow: hidden;
  width: 100%;
}

.home-tags-swiper .swiper-wrapper { 
  align-items: center; 
}

.home-tags-swiper .swiper-slide { 
  width: auto; 
}

.home-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  background: var(--rp-gradient-brand, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  transition: transform var(--rp-transition, 0.25s ease), box-shadow var(--rp-transition, 0.25s ease);
  white-space: nowrap;
  box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
  flex-shrink: 0;
}

.home-tag:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.38);
  color: white;
  text-decoration: none;
  background: var(--rp-gradient-brand-hover, linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%));
}

.home-tag:active {
  transform: translateY(0) scale(1);
  box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
}

@media (max-width: 768px) {
  .home-tags-section {
    padding: 0.75rem;
    margin-bottom: 1.5rem;
  }
  
  .home-tags-heading {
    font-size: 0.9375rem;
    margin-bottom: 0.625rem;
  }
  
  .home-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .home-tags-section {
    padding: 0.625rem;
  }
  
  .home-tags-heading {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }
  
  .home-tag {
    font-size: 0.6875rem;
    padding: 0.3rem 0.625rem;
  }
}

/* Homepage content hub grid (category boxes) */
.home-hub-section {
  margin-bottom: 2.5rem;
}

.home-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  --hub-header-bg: linear-gradient(160deg, #5568d3 0%, #4f4589 48%, #3a2d5e 100%);
  --hub-cta-bg: linear-gradient(145deg, #e8956f 0%, #d97850 48%, #c96a45 100%);
  --hub-cta-bg-hover: linear-gradient(145deg, #efaa85 0%, #e08662 48%, #d47852 100%);
}

.home-hub-box {
  background: #fff;
  border: 1px solid #e8eaef;
  border-radius: var(--rp-radius-md, 12px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 4px 14px rgba(15, 23, 42, 0.07),
    0 12px 28px rgba(58, 45, 94, 0.06);
  transition:
    transform 0.3s cubic-bezier(0.34, 1.2, 0.64, 1),
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.home-hub-box:hover {
  transform: translateY(-5px);
  border-color: #d4d0e8;
  box-shadow:
    0 2px 4px rgba(15, 23, 42, 0.05),
    0 10px 24px rgba(15, 23, 42, 0.09),
    0 20px 40px rgba(58, 45, 94, 0.12);
}

.home-hub-box__head {
  background: var(--hub-header-bg);
  color: #f8f7fc;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.7rem 1rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 3px 10px rgba(45, 35, 72, 0.28);
}

.home-hub-box__badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  padding: 0.15rem 0.4rem;
  border-radius: var(--rp-radius-sm, 8px);
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.35);
}

.home-hub-box__body {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem;
}

.home-hub-box__body li {
  margin: 0 0 0.35rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed #eef2f7;
  transition: padding-left var(--rp-transition, 0.25s ease);
}

.home-hub-box__body li:hover {
  padding-left: 0.2rem;
}

.home-hub-box__body li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.home-hub-box__body a {
  color: #2563eb;
  font-size: 0.8125rem;
  line-height: 1.35;
  text-decoration: none;
  display: block;
  transition: color 0.2s ease;
}

.home-hub-box__body a:hover {
  color: #667eea;
}

.home-hub-box__empty {
  color: #9ca3af;
  font-size: 0.875rem;
  margin: 0;
  padding: 0.75rem 1rem;
}

.home-hub-box__foot {
  padding: 0 1rem 1rem;
  margin-top: auto;
}

.home-hub-box__more {
  display: block;
  text-align: center;
  background: var(--hub-cta-bg);
  color: #fffef9 !important;
  padding: 0.42rem 0.75rem;
  line-height: 1.35;
  border-radius: var(--rp-radius-sm, 8px);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(120, 50, 20, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 2px 6px rgba(180, 90, 55, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition:
    transform 0.28s cubic-bezier(0.34, 1.35, 0.64, 1),
    box-shadow 0.28s ease,
    background 0.28s ease,
    border-color 0.28s ease;
}

.home-hub-box__more:hover {
  background: var(--hub-cta-bg-hover);
  color: #fff !important;
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow:
    0 6px 16px rgba(180, 90, 55, 0.32),
    0 2px 4px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.home-hub-box__more:active {
  transform: translateY(0) scale(0.99);
  box-shadow:
    0 1px 4px rgba(180, 90, 55, 0.2),
    inset 0 2px 4px rgba(120, 50, 20, 0.15);
}

/* /latest-update/ page */
.latest-update-header {
  padding: 1rem 0 0.25rem;
}

.latest-update-header__badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.latest-update-type {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}

.latest-update-type--job {
  background: #fff4ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.latest-update-type--blog {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

/* Homepage SEO: stats, trust, author entity */
.home-stats-section {
  margin-bottom: 1.5rem;
}

.home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.home-stat-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--rp-radius-md, 12px);
  padding: 1rem 0.75rem;
  text-align: center;
  box-shadow: var(--rp-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.06));
  transition: transform var(--rp-transition, 0.25s ease), box-shadow var(--rp-transition, 0.25s ease);
}

.home-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--rp-shadow-md, 0 4px 16px rgba(15, 23, 42, 0.08));
}

.home-stat-card__icon {
  display: block;
  color: #22c55e;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.home-stat-card__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: #667eea;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.home-stat-card__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4b5563;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.home-trust-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f5f3ff 100%);
  border: 1px solid #e9ecef;
  border-radius: var(--rp-radius-md, 12px);
  padding: 1.25rem 1.5rem;
}

.home-trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.home-trust-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #374151;
}

.home-trust-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.home-author-entity__card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-left: 4px solid #667eea;
  border-radius: var(--rp-radius-md, 12px);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--rp-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.06));
}

.home-author-entity__kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #667eea;
  margin: 0 0 0.25rem;
}

.home-author-entity__name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #1f2937;
  margin: 0 0 0.35rem;
}

.home-author-entity__role {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.2rem;
}

.home-author-entity__role-hi {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0 0 0.75rem;
}

.home-author-entity__bio {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 0.75rem;
}

.home-author-entity__link {
  font-weight: 600;
  text-decoration: none;
}

.home-author-entity__link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .home-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .home-stat-card__value {
    font-size: 1.15rem;
  }
}

.home-about-keywords {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: var(--rp-radius-md, 12px);
  padding: 1.75rem 2rem;
  box-shadow: var(--rp-shadow-sm, 0 2px 8px rgba(15, 23, 42, 0.06));
  margin-bottom: 2rem;
  transition: box-shadow var(--rp-transition, 0.25s ease);
}

.home-about-keywords:hover {
  box-shadow: var(--rp-shadow-md, 0 4px 16px rgba(15, 23, 42, 0.08));
}

.home-about-keywords h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.home-about-keywords p {
  color: #495057;
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.home-keywords-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 1.5rem 0 0.75rem;
}

.home-keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-keywords-list a {
  display: inline-block;
  color: #4f46e5;
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: var(--rp-radius-sm, 8px);
  background: #f5f3ff;
  border: 1px solid #ede9fe;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-keywords-list a:hover {
  color: #fff;
  background: var(--rp-gradient-brand, linear-gradient(135deg, #667eea 0%, #764ba2 100%));
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.28);
}

.home-telegram-card .card-body {
  padding: 1.5rem;
}

.home-telegram-card:hover {
  border-color: #bbf7d0;
}

@media (max-width: 992px) {
  .home-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .home-hub-grid {
    grid-template-columns: 1fr;
  }

  .home-about-keywords {
    padding: 1.25rem 1rem;
  }
}
