/* ====================================================
   07-opini-page.css
   Halaman Opini — pentradr.com/p/opini.html
   Repo: pecoding/pentradr-css
   CDN:  https://cdn.jsdelivr.net/gh/pecoding/pentradr-css@latest/css/07-opini-page.css
   ==================================================== */

/* --- Variabel Warna (sesuai tema pentradr) --- */
:root {
  --op-primary:    #2a4a66;
  --op-accent:     #00699b;
  --op-hover:      #662a49;
  --op-bg:         #f9f9f9;
  --op-card-bg:    #ffffff;
  --op-border:     #dee8ff;
  --op-text:       #3e3e3e;
  --op-muted:      #7d7d7d;
  --op-tag-bg:     #ecf0f4;
  --op-tag-text:   #2a4a66;
  --op-shadow:     0 2px 14px rgba(42,74,102,0.09);
  --op-radius:     10px;
  --op-hero-grad:  linear-gradient(135deg, #1a3550 0%, #2a4a66 55%, #00699b 100%);
}

/* ====================================================
   HERO SECTION
   ==================================================== */
.op-hero {
  background: var(--op-hero-grad);
  color: #fff;
  padding: 56px 24px 48px;
  text-align: center;
  border-radius: 0 0 var(--op-radius) var(--op-radius);
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.op-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.op-hero-label {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
}

.op-hero h1 {
  font-family: 'Lora', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 14px;
  color: #fff;
}

.op-hero p {
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.op-hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.op-hero-stat {
  text-align: center;
}

.op-hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.op-hero-stat span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.68);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ====================================================
   FILTER / TAG BAR
   ==================================================== */
.op-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 0 0 36px;
  padding: 0 8px;
}

.op-filter-btn {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--op-tag-bg);
  color: var(--op-tag-text);
  border: 1px solid var(--op-border);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.op-filter-btn:hover,
.op-filter-btn.active {
  background: var(--op-primary);
  color: #fff;
  border-color: var(--op-primary);
  text-decoration: none;
}

/* ====================================================
   FEATURED ARTICLE (card besar di atas)
   ==================================================== */
.op-featured {
  background: var(--op-card-bg);
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
  border: 1px solid var(--op-border);
  margin-bottom: 36px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 260px;
  transition: box-shadow 0.25s;
}

.op-featured:hover {
  box-shadow: 0 6px 28px rgba(42,74,102,0.16);
}

.op-featured-img {
  background: var(--op-hero-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  min-height: 220px;
}

.op-featured-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.op-badge {
  display: inline-block;
  background: var(--op-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.op-featured-body h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--op-primary);
  margin: 0 0 10px;
  line-height: 1.3;
}

.op-featured-body h2 a {
  color: var(--op-primary);
  text-decoration: none;
}

.op-featured-body h2 a:hover {
  color: var(--op-hover);
  text-decoration: underline;
}

.op-featured-body p {
  font-size: 0.92rem;
  color: var(--op-muted);
  line-height: 1.7;
  margin: 0 0 18px;
}

.op-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--op-accent);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.2s;
}

.op-read-more:hover {
  color: var(--op-hover);
  text-decoration: none;
}

.op-read-more::after {
  content: '→';
  transition: transform 0.2s;
}

.op-read-more:hover::after {
  transform: translateX(3px);
}

/* ====================================================
   SECTION HEADING
   ==================================================== */
.op-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.op-section-heading h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--op-primary);
  margin: 0;
}

.op-section-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--op-border);
}

/* ====================================================
   ARTICLE GRID
   ==================================================== */
.op-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

/* ====================================================
   ARTICLE CARD
   ==================================================== */
.op-card {
  background: var(--op-card-bg);
  border: 1px solid var(--op-border);
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
  text-decoration: none;
  color: inherit;
}

.op-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(42,74,102,0.14);
  text-decoration: none;
}

.op-card-thumb {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
  background: var(--op-tag-bg);
}

.op-card-thumb.cat-investasi { background: linear-gradient(135deg,#e8f4fd,#c7e0f4); }
.op-card-thumb.cat-asuransi  { background: linear-gradient(135deg,#f0e8fd,#d8c4f0); }
.op-card-thumb.cat-karir     { background: linear-gradient(135deg,#edfce8,#c4f0d0); }
.op-card-thumb.cat-ekonomi   { background: linear-gradient(135deg,#fdf3e8,#f0d4a0); }
.op-card-thumb.cat-mindset   { background: linear-gradient(135deg,#fde8e8,#f0b8b8); }
.op-card-thumb.cat-saham     { background: linear-gradient(135deg,#e8fdf6,#a0f0d8); }

.op-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.op-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--op-accent);
  margin-bottom: 7px;
}

.op-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 0.97rem;
  font-weight: 700;
  color: var(--op-primary);
  line-height: 1.4;
  margin: 0 0 8px;
  flex: 1;
}

.op-card-title a {
  color: inherit;
  text-decoration: none;
}

.op-card-title a:hover {
  color: var(--op-hover);
}

.op-card-meta {
  font-size: 0.75rem;
  color: var(--op-muted);
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ====================================================
   LIST VIEW (artikel teks-only, sederhana)
   ==================================================== */
.op-list {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.op-list li {
  background: var(--op-card-bg);
  border: 1px solid var(--op-border);
  border-radius: 8px;
  transition: background 0.18s, box-shadow 0.18s;
}

.op-list li:hover {
  background: #f0f5ff;
  box-shadow: var(--op-shadow);
}

.op-list li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  text-decoration: none;
  color: var(--op-primary);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.4;
}

.op-list li a .op-list-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  width: 36px;
  text-align: center;
}

.op-list li a .op-list-tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--op-muted);
  flex-shrink: 0;
}

.op-list li a:hover .op-list-tag {
  color: var(--op-accent);
}

/* ====================================================
   CTA BANNER
   ==================================================== */
.op-cta {
  background: var(--op-hero-grad);
  border-radius: var(--op-radius);
  color: #fff;
  padding: 36px 28px;
  text-align: center;
  margin-bottom: 40px;
}

.op-cta h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.3rem;
  margin: 0 0 10px;
  color: #fff;
}

.op-cta p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.82);
  margin: 0 0 22px;
  line-height: 1.6;
}

.op-cta-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.op-cta-btn {
  padding: 10px 22px;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
  display: inline-block;
}

.op-cta-btn:hover { opacity: 0.88; text-decoration: none; }

.op-cta-btn.primary {
  background: #fff;
  color: var(--op-primary);
}

.op-cta-btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
}

/* ====================================================
   TENTANG OPINI BOX
   ==================================================== */
.op-about-box {
  background: var(--op-card-bg);
  border: 1px solid var(--op-border);
  border-left: 4px solid var(--op-accent);
  border-radius: 0 var(--op-radius) var(--op-radius) 0;
  padding: 20px 22px;
  margin-bottom: 36px;
  font-size: 0.9rem;
  color: var(--op-muted);
  line-height: 1.7;
}

.op-about-box strong {
  color: var(--op-primary);
  display: block;
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  margin-bottom: 6px;
}

/* ====================================================
   RESPONSIVE — MOBILE
   ==================================================== */
@media (max-width: 700px) {
  .op-hero {
    padding: 40px 16px 36px;
    border-radius: 0;
  }

  .op-hero h1 {
    font-size: 1.55rem;
  }

  .op-hero-stats {
    gap: 20px;
  }

  .op-featured {
    grid-template-columns: 1fr;
  }

  .op-featured-img {
    min-height: 140px;
    font-size: 3.5rem;
  }

  .op-featured-body {
    padding: 20px 18px;
  }

  .op-featured-body h2 {
    font-size: 1.2rem;
  }

  .op-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .op-cta {
    padding: 28px 18px;
  }
}

/* ====================================================
   TABEL ARTIKEL OPINI
   Responsive, rapi di mobile & desktop
   ==================================================== */

.op-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--op-radius);
  box-shadow: var(--op-shadow);
  margin-bottom: 40px;
  border: 1px solid var(--op-border);
}

.op-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--op-card-bg);
  font-size: 0.9rem;
  min-width: 320px;
}

/* Header row */
.op-table thead tr {
  background: var(--op-primary);
  color: #fff;
}

.op-table th {
  padding: 13px 14px;
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  text-align: left;
  white-space: nowrap;
}

.op-th-no  { width: 40px; text-align: center; }
.op-th-kat { width: 130px; }
.op-th-art { }

/* Body rows — striped gradient untuk pembeda antar baris */
.op-tr {
  border-bottom: 2px solid #fff;  /* garis putih tebal sebagai separator jelas */
  transition: background 0.17s, box-shadow 0.17s;
  position: relative;
}

.op-tr:last-child {
  border-bottom: none;
}

/* Baris ganjil: putih bersih */
.op-tr:nth-child(odd) {
  background: #ffffff;
}

/* Baris genap: gradasi biru-abu sangat lembut tapi jelas beda */
.op-tr:nth-child(even) {
  background: linear-gradient(90deg, #eef4fd 0%, #f5f8ff 60%, #edf2fb 100%);
}

/* Aksen garis kiri berwarna per baris genap agar tambah jelas */
.op-tr:nth-child(even) .op-td-no {
  border-left: 3px solid #c2d4f0;
}

.op-tr:nth-child(odd) .op-td-no {
  border-left: 3px solid #e0e8f5;
}

.op-tr:hover {
  background: linear-gradient(90deg, #ddeeff 0%, #eaf3ff 100%);
  box-shadow: inset 0 0 0 1px #b8d4f0;
}

.op-td-no {
  padding: 13px 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--op-muted);
  letter-spacing: 0.5px;
}

.op-td-kat {
  padding: 13px 10px 13px 14px;
  white-space: nowrap;
  vertical-align: middle;
}

.op-td-art {
  padding: 13px 16px 13px 10px;
  vertical-align: middle;
  line-height: 1.45;
}

.op-td-art a {
  color: var(--op-primary);
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.op-td-art a:hover {
  color: var(--op-hover);
  text-decoration: underline;
}

/* Kategori badge/pill */
.op-kat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.op-kat-asuransi  { background: #eee5fb; color: #6b35bd; }
.op-kat-investasi { background: #e3f5e8; color: #1a7a3a; }
.op-kat-saham     { background: #e3f5ec; color: #157050; }
.op-kat-ekonomi   { background: #fef5e2; color: #9a6800; }
.op-kat-mindset   { background: #fee8e8; color: #b93030; }

/* Mobile: sembunyikan kolom # agar lebih compact */
@media (max-width: 480px) {
  .op-th-no,
  .op-td-no {
    display: none;
  }

  /* Di mobile: border-left pindah ke td-kat karena td-no tersembunyi */
  .op-tr:nth-child(even) .op-td-kat {
    border-left: 4px solid #a8c8f0;
  }

  .op-tr:nth-child(odd) .op-td-kat {
    border-left: 4px solid #d0dff5;
  }

  /* Tambah padding atas-bawah agar tiap baris lebih "bernapas" */
  .op-td-kat,
  .op-td-art {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .op-th-kat,
  .op-td-kat {
    width: 90px;
    min-width: 90px;
    padding-left: 10px;
  }

  .op-kat {
    font-size: 0.66rem;
    padding: 3px 7px;
  }

  .op-td-art {
    padding: 11px 12px 11px 8px;
  }

  .op-td-art a {
    font-size: 0.86rem;
  }
}
