/* =========================
   RESET & GLOBAL
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f7fb;
  color: #1e293b;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================
   LAYOUT
========================= */
.layout {
  max-width: 1280px;
  margin: 30px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.main {
  min-width: 0;
}

.pari-card {
  background: linear-gradient(135deg, #00364f, #000d2b);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.05);
  margin-bottom: 28px;
  border: 1px solid #eef2f7;
}

.pari-section-head {
  margin-bottom: 20px;
}

.pari-section-head h2,
.pari-section-head h3 {
  font-size: 1.35rem;
  color: #c7d8ff;
  font-weight: 700;
}

/* =========================
   HEADER / TOPBAR
========================= */
.pari-topbar {
  background: linear-gradient(135deg, #abecff, #1e3a8a);
  padding: 18px 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
  position: sticky;
  top: 0;
  z-index: 999;
}

.pari-topbar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.pari-brand__wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.pari-brand__logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.pari-brand__title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.pari-brand__text p {
  font-size: 13px;
  opacity: 0.88;
  margin-top: 2px;
}

.pari-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.pari-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.pari-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* =========================
   HERO
========================= */
.pari-hero {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0 20px;
}

.pari-hero__content {
  background: linear-gradient(135deg, #00364f, #000d2b);
  color: #fff;
  border-radius: 28px;
  padding: 56px 42px;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.18);
  position: relative;
  overflow: hidden;
}

.pari-hero__content::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  top: -80px;
  right: -60px;
}

.pari-hero__content h1 {
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.pari-hero__content p {
  font-size: 1.05rem;
  max-width: 760px;
  line-height: 1.9;
  opacity: 0.96;
  position: relative;
  z-index: 2;
}

.pari-badge {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  position: relative;
  z-index: 2;
}

.pari-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
  position: relative;
  z-index: 2;
}

/* =========================
   BUTTON
========================= */
.pari-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.pari-btn--primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.pari-btn--primary:hover {
  transform: translateY(-2px);
}

.pari-btn--secondary {
  background: #fff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
}

.pari-btn--secondary:hover {
  background: #eff6ff;
}

/* =========================
   FEATURE GRID
========================= */
.pari-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.pari-feature-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
  transition: 0.25s ease;
}

.pari-feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.pari-feature-box h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
  color: #c7d8ff;
}

.pari-feature-box p {
  color: #475569;
  font-size: 15px;
  line-height: 1.8;
}

/* =========================
   POST LIST
========================= */
.pari-post-list {
  display: grid;
  gap: 20px;
}

.pari-post-item {
  background: #f8fafc;
  border: 1px solid #e5edf5;
  border-radius: 20px;
  padding: 24px;
  transition: 0.25s ease;
}

.pari-post-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.pari-post-item h3 {
  font-size: 1.22rem;
  line-height: 1.5;
  margin: 12px 0 14px;
  color: #c7d8ff;
}

.pari-post-item h3 a:hover {
  color: #2563eb;
}

.pari-post-item p {
  font-size: 15px;
  line-height: 1.9;
  color: #475569;
  text-align: justify;
}

.article-meta-mini,
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 16px;
}

.badge-category {
  display: inline-block;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

/* =========================
   ARTICLE PREMIUM STYLE
========================= */
.article-premium {
  background: linear-gradient(135deg, #00364f, #000d2b);
  border-radius: 20px;
  padding: 34px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.article-top-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 18px;
}

.article-reading-time {
  font-size: 13px;
  color: #6b7280;
  background: #f3f4f6;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 600;
}

.article-title-main {
  font-size: 2rem;
  line-height: 1.35;
  color: #c7d8ff;
  margin-bottom: 18px;
}

.article-meta-premium {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  color: #64748b;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 26px;
}

.article-intro-box {
  background: linear-gradient(135deg, #f8fafc, #eef6ff);
  border-left: 4px solid #0ea5e9;
  padding: 20px 22px;
  border-radius: 14px;
  margin-bottom: 28px;
}

.article-intro-box p {
  margin: 0;
  font-size: 17px;
  line-height: 1.9;
  color: #1e293b;
  font-weight: 500;
}

.premium-body {
  margin-top: 10px;
}

.premium-body h2 {
  font-size: 1.45rem;
  color: #c7d8ff;
  margin: 34px 0 14px;
}

.premium-body p {
  font-size: 16px;
  line-height: 1.95;
  color: #ffffff;
  margin-bottom: 22px;
  text-align: justify;
}

.premium-body ul {
  margin: 10px 0 24px 20px;
}

.premium-body li {
  margin-bottom: 10px;
  color: #ffffff;
  line-height: 1.85;
}

.article-highlight-box {
  margin-top: 36px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px;
}

.article-highlight-box h3 {
  margin: 0 0 12px;
  font-size: 20px;
  color: #c7d8ff;
}

.article-highlight-box p {
  margin: 0;
  color: #475569;
  line-height: 1.85;
  font-size: 15px;
}

.article-footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.pari-empty-box {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  padding: 32px;
  text-align: center;
}

.pari-empty-box h3 {
  color: #c7d8ff;
  margin-bottom: 10px;
}

.pari-empty-box p {
  color: #64748b;
}

/* =========================
   SIDEBAR
========================= */
.pari-sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sticky-card {
  position: sticky;
  top: 95px;
}

.pari-side-list {
  list-style: none;
}

.pari-side-list li + li {
  margin-top: 12px;
}

.pari-side-list a {
  color: #ffffff;
  font-size: 15px;
  transition: 0.2s ease;
}

.pari-side-list a:hover {
  color: #2563eb;
  padding-left: 4px;
}

.pari-topic-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pari-topic-grid span {
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 999px;
}

.pari-recommended {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pari-recommended-item {
  font-size: 15px;
  color: #c7d8ff;
  line-height: 1.7;
  font-weight: 600;
  transition: 0.2s ease;
}

.pari-recommended-item:hover {
  color: #2563eb;
}

.pari-contact-box p {
  font-size: 14px;
  color: #475569;
  line-height: 1.9;
  margin-bottom: 8px;
}

/* =========================
   FOOTER
========================= */
.pari-footer {
  background: linear-gradient(135deg, #abecff, #0051ff);
  color: #e2e8f0;
  margin-top: 60px;
  padding-top: 48px;
}

.pari-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pari-footer__col h4 {
  font-size: 1.05rem;
  margin-bottom: 14px;
  color: #fff;
}

.pari-footer__col p,
.pari-footer__links li a {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.9;
}

.pari-footer__links {
  list-style: none;
}

.pari-footer__links li + li {
  margin-top: 8px;
}

.pari-footer__links a:hover {
  color: #fff;
}

.pari-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 20px;
  text-align: center;
  font-size: 14px;
  color: #94a3b8;
}

/* =========================
   AUTH PAGE (LOGIN / REGISTER)
========================= */
.pari-auth-page {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.pari-auth-card {
  width: 100%;
  max-width: 880px;
  background: #fff;
  border-radius: 28px;
  padding: 36px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid #eef2f7;
}

.pari-auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.pari-auth-header h1 {
  font-size: 2rem;
  margin: 14px 0 10px;
  color: #c7d8ff;
}

.pari-auth-header p {
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

.pari-auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pari-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.pari-form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pari-form-group label {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.pari-form-group input,
.pari-form-group select,
.pari-form-group textarea {
  width: 100%;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  transition: 0.2s ease;
}

.pari-form-group input:focus,
.pari-form-group select:focus,
.pari-form-group textarea:focus {
  outline: none;
  border-color: #60a5fa;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.12);
}

.pari-auth-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #475569;
  line-height: 1.7;
}

.pari-auth-btn {
  width: 100%;
  margin-top: 6px;
}

.pari-auth-footer {
  text-align: center;
  margin-top: 10px;
}

.pari-auth-footer p {
  font-size: 14px;
  color: #64748b;
}

.pari-auth-footer a {
  color: #2563eb;
  font-weight: 700;
}

/* =========================
   ARCHIVE / ISSUE / EDITORIAL / CONTACT
========================= */
.pari-archive-list,
.editorial-list,
.pari-contact-grid {
  display: grid;
  gap: 20px;
}

.pari-archive-item,
.editorial-card,
.pari-issue-box,
.pari-contact-info,
.pari-contact-form {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 22px;
}

.pari-archive-item h3,
.editorial-card h3,
.pari-issue-box h2,
.pari-contact-info h3,
.pari-contact-form h3,
.editorial-group h2 {
  color: #c7d8ff;
  margin-bottom: 12px;
}

.pari-archive-item p,
.editorial-card p,
.pari-issue-box p,
.pari-contact-info p,
.pari-contact-note p {
  color: #475569;
  line-height: 1.85;
}

.editorial-group + .editorial-group {
  margin-top: 28px;
}

.pari-contact-grid {
  grid-template-columns: repeat(2, 1fr);
}

.pari-contact-note {
  margin-top: 20px;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  padding: 16px;
  border-radius: 14px;
}

/* =========================
   CATEGORY PAGE
========================= */
.category-title {
  font-size: 2rem;
  color: #c7d8ff;
  margin-bottom: 12px;
}

.category-subtitle {
  font-size: 15px;
  color: #64748b;
  line-height: 1.85;
  margin-bottom: 28px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .pari-sidebar {
    order: 2;
  }

  .sticky-card {
    position: static;
  }

  .pari-feature-grid,
  .pari-footer__inner,
  .pari-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .pari-topbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .pari-nav {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .pari-hero__content {
    padding: 34px 24px;
    border-radius: 22px;
  }

  .pari-hero__content h1 {
    font-size: 1.8rem;
  }

  .pari-card {
    padding: 22px;
    border-radius: 18px;
  }

  .article-premium {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .article-title-main,
  .category-title {
    font-size: 1.55rem;
  }

  .article-intro-box {
    padding: 18px;
  }

  .premium-body p,
  .pari-post-item p {
    font-size: 15px;
    line-height: 1.85;
  }

  .article-footer-actions,
  .pari-hero__actions,
  .pari-form-row {
    flex-direction: column;
    display: flex;
  }

  .article-footer-actions .pari-btn,
  .pari-hero__actions .pari-btn,
  .pari-form-row .pari-form-group,
  .pari-btn {
    width: 100%;
    text-align: center;
  }

  .pari-auth-card {
    padding: 26px 20px;
    border-radius: 22px;
  }
}