/* Tips & Trik - Kemenangan Jaya */
.tips-page {
  background: #f4f6f9;
  font-family: 'Poppins', sans-serif;
}

/* ===== HERO ===== */
.tips-hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 40px;
  color: #fff;
  background: linear-gradient(125deg, #0f172a 0%, #14532d 42%, #15803d 72%, #22c55e 100%);
}

.tips-hero::before,
.tips-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.tips-hero::before {
  width: 380px;
  height: 380px;
  top: -160px;
  right: -100px;
}

.tips-hero::after {
  width: 240px;
  height: 240px;
  bottom: -120px;
  left: -60px;
}

.tips-hero-inner {
  position: relative;
  z-index: 1;
}

.tips-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 16px;
}

.tips-hero h1 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  max-width: 600px;
}

.tips-hero h1 span {
  color: #bbf7d0;
}

.tips-hero-lead {
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.92;
  max-width: 520px;
  margin: 0 0 24px;
}

.tips-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.tips-stat-chip {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 16px;
}

.tips-stat-chip strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.tips-stat-chip span {
  font-size: 11px;
  opacity: 0.88;
}

.tips-search-form {
  max-width: 520px;
}

.tips-search-box {
  display: flex;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
  background: #fff;
}

.tips-search-box input {
  flex: 1;
  border: none;
  padding: 14px 18px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.tips-search-box button {
  border: none;
  background: #dc2626;
  color: #fff;
  padding: 0 22px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.tips-search-box button:hover {
  background: #b91c1c;
}

/* ===== TRUST ===== */
.tips-trust {
  background: #fff;
  border-bottom: 1px solid #e8ecf1;
  padding: 16px 0;
  margin-bottom: 28px;
}

.tips-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.tips-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.tips-trust-item i {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f0fdf4;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.tips-trust-item strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
  margin-bottom: 2px;
}

/* ===== LAYOUT ===== */
.tips-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding-bottom: 48px;
}

.tips-main-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.tips-main-head h2 {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.tips-filter-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tips-filter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  text-decoration: none;
}

.tips-filter-badge.is-kat {
  background: #dcfce7;
  color: #166534;
}

.tips-filter-badge .remove {
  color: inherit;
  opacity: 0.7;
  text-decoration: none;
  font-weight: 800;
}

.tips-filter-badge .remove:hover {
  opacity: 1;
}

/* ===== FEATURED ===== */
.tips-featured {
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8ecf1;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: inherit;
  margin-bottom: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tips-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
  color: inherit;
}

.tips-featured-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 260px;
}

.tips-featured-media {
  position: relative;
  min-height: 220px;
  background: linear-gradient(135deg, #ecfdf5, #bbf7d0);
}

.tips-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.tips-featured-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: 0.5;
}

.tips-featured-media .tips-kat-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
}

.tips-featured-body {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tips-featured-label {
  font-size: 11px;
  font-weight: 800;
  color: #16a34a;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.tips-featured-body h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 12px;
}

.tips-featured-excerpt {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tips-read-more {
  font-size: 13px;
  font-weight: 700;
  color: #16a34a;
  margin-top: auto;
}

.tips-read-more i {
  margin-left: 6px;
  transition: transform 0.2s;
}

.tips-featured:hover .tips-read-more i {
  transform: translateX(4px);
}

/* ===== GRID ===== */
.tips-artikel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.tips-artikel-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8ecf1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s;
}

.tips-artikel-card:hover {
  transform: translateY(-4px);
  border-color: #bbf7d0;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
  color: inherit;
}

.tips-card-media {
  position: relative;
  height: 168px;
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  overflow: hidden;
}

.tips-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.tips-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  opacity: 0.45;
}

.tips-card-media.has-img .tips-card-placeholder {
  display: none;
}

.tips-kat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: #15803d;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.tips-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tips-card-body h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tips-card-excerpt {
  font-size: 12px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.tips-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 11px;
  color: #94a3b8;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.tips-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ===== SIDEBAR ===== */
.tips-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tips-sidebar-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.tips-sidebar-card h6 {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #f1f5f9;
}

.tips-kat-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tips-kat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.tips-kat-link:hover,
.tips-kat-link.active {
  background: #f0fdf4;
  color: #15803d;
}

.tips-kat-link i {
  font-size: 11px;
  opacity: 0.5;
}

.tips-populer-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.tips-populer-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tips-populer-item:first-child {
  padding-top: 0;
}

.tips-populer-item:hover {
  color: #15803d;
}

.tips-populer-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tips-populer-num.top {
  background: #dc2626;
  color: #fff;
}

.tips-populer-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
}

.tips-populer-meta {
  font-size: 10px;
  color: #94a3b8;
  margin-top: 4px;
}

.tips-cta-card {
  text-align: center;
  background: linear-gradient(145deg, #f0fdf4, #dcfce7);
  border: 1px solid #bbf7d0;
}

.tips-cta-card .icon {
  font-size: 40px;
  margin-bottom: 10px;
}

.tips-cta-card h6 {
  border: none;
  padding: 0;
  margin-bottom: 6px;
  color: #14532d;
}

.tips-cta-card p {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 14px;
}

.tips-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.tips-btn-primary {
  background: #16a34a;
  color: #fff;
}

.tips-btn-primary:hover {
  background: #15803d;
  color: #fff;
  transform: translateY(-1px);
}

.tips-btn-wa {
  background: #25d366;
  color: #fff;
  margin-top: 8px;
}

.tips-btn-wa:hover {
  background: #1da851;
  color: #fff;
}

/* ===== PAGINATION ===== */
.tips-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

.tips-pagination a,
.tips-pagination span {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  color: #475569;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}

.tips-pagination a:hover {
  background: #15803d;
  color: #fff;
  border-color: #15803d;
}

.tips-pagination span.active {
  background: #15803d;
  color: #fff;
  border-color: #15803d;
}

/* ===== EMPTY ===== */
.tips-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border-radius: 16px;
  border: 1px dashed #e2e8f0;
}

.tips-empty i {
  font-size: 48px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.tips-empty h3 {
  font-size: 18px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
}

.tips-empty p {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .tips-layout {
    grid-template-columns: 1fr;
  }

  .tips-sidebar {
    order: -1;
  }

  .tips-trust-grid {
    grid-template-columns: 1fr;
  }

  .tips-featured-inner {
    grid-template-columns: 1fr;
  }

  .tips-featured-media {
    min-height: 200px;
  }
}

@media (max-width: 768px) {
  .tips-artikel-grid {
    grid-template-columns: 1fr;
  }

  .tips-hero {
    padding: 36px 0 32px;
  }
}

@media (max-width: 576px) {
  .tips-artikel-grid {
    grid-template-columns: 1fr;
  }
}
