/* ============================================================
   PS Market — Unified Page Styling (pages.css)
   Applied to all header/footer-linked content pages.
   Scoped to .ps-page to avoid affecting header, footer, or homepage.
   ============================================================ */

/* ── Google Fonts Poppins is loaded via <link> in header.php ── */

/* ── Base: Apply Poppins to all .ps-page content ── */
.ps-page {
  font-family: 'Poppins', sans-serif;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Headings ── */
.ps-page h1 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: #222;
}

.ps-page h2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.35;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #333;
}

.ps-page h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1.25rem;
  margin-bottom: 0.6rem;
  color: #444;
}

.ps-page h4 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: #444;
}

.ps-page h5 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: #555;
}

/* ── Paragraphs ── */
.ps-page p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: #555;
}

/* ── Lists ── */
.ps-page ul,
.ps-page ol {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.ps-page ul li,
.ps-page ol li {
  margin-bottom: 0.4rem;
  color: #555;
}

/* ── Links ── */
.ps-page a {
  color: #6f42c1;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ps-page a:hover {
  color: #5a32a3;
  text-decoration: underline;
}

/* ── Page Container ── */
.ps-page .container {
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
}

.ps-page .about-inner {
  padding-top: 40px;
  padding-bottom: 60px;
}

/* ── Cards (uniform) ── */
.ps-page .card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  transition: box-shadow 0.3s ease;
  overflow: hidden;
}

.ps-page .card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.ps-page .card-body {
  padding: 24px;
}

.ps-page .card-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #6f42c1;
}

.ps-page .card-text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.ps-page .card-header {
  font-size: 16px;
  font-weight: 600;
  padding: 14px 20px;
  border-bottom: none;
}

/* ── Tables — Desktop ── */
.ps-page .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  font-size: 15px;
  margin-bottom: 1.5rem;
}

.ps-page .table thead th {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 14px 16px;
  border: none;
  white-space: nowrap;
}

.ps-page .table tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
  color: #555;
}

.ps-page .table tbody tr:last-child td {
  border-bottom: none;
}

.ps-page .table tbody tr:hover {
  background-color: #f8f6ff;
}

.ps-page .table-responsive {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* ── Tables — Mobile card layout ── */
@media (max-width: 767px) {
  .ps-page .table-responsive.ps-table-cards .table thead {
    display: none;
  }

  .ps-page .table-responsive.ps-table-cards .table,
  .ps-page .table-responsive.ps-table-cards .table tbody,
  .ps-page .table-responsive.ps-table-cards .table tr,
  .ps-page .table-responsive.ps-table-cards .table td {
    display: block;
    width: 100%;
  }

  .ps-page .table-responsive.ps-table-cards .table tr {
    margin-bottom: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    background: #fff;
  }

  .ps-page .table-responsive.ps-table-cards .table td {
    text-align: left;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 45%;
  }

  .ps-page .table-responsive.ps-table-cards .table td::before {
    content: attr(data-label);
    position: absolute;
    left: 16px;
    top: 10px;
    font-weight: 600;
    color: #6f42c1;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: 40%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ps-page .table-responsive.ps-table-cards .table td:last-child {
    border-bottom: none;
  }
}

/* ── Policy / Terms sections ── */
.ps-page .policy-section {
  margin-bottom: 32px;
  padding-bottom: 8px;
}

.ps-page .policy-header {
  font-size: 1.35rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.6rem;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0ecf7;
}

.ps-page .policy-content {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.ps-page .policy-content li {
  margin-bottom: 0.5rem;
}

/* ── FAQ cards ── */
.ps-page .card-header.bg-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none;
}

.ps-page .card-header.bg-success {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
  border: none;
}

/* ── List groups (payout, refund) ── */
.ps-page .list-group-item {
  font-size: 16px;
  line-height: 1.8;
  border-color: #f0f0f0;
  padding: 12px 20px;
  color: #555;
}

/* ── Step numbers ── */
.ps-page .step-number {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 700;
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 16px;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ── Icon circles (about, career) ── */
.ps-page .icon-circle {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-right: 15px;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ── Icon boxes ── */
.ps-page .icon-box {
  font-size: 28px;
  color: #6f42c1;
  margin-right: 10px;
}

/* ── Hero sections ── */
.ps-page .hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 32px;
}

.ps-page .hero-section h1,
.ps-page .hero-section h2 {
  color: #fff;
}

.ps-page .hero-section p {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Buttons ── */
.ps-page .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.ps-page .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  background: linear-gradient(135deg, #5a6fd6 0%, #6a3f96 100%);
}

/* ── Forms ── */
.ps-page .form-control {
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 10px 14px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ps-page .form-control:focus {
  border-color: #6f42c1;
  box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.15);
}

.ps-page .form-label,
.ps-page label {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin-bottom: 4px;
}

/* ── Section spacing ── */
.ps-page .my-5 {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
}

.ps-page .mb-4 {
  margin-bottom: 24px !important;
}

/* ── Breadcrumb section — uniform across pages ── */
.ps-page-breadcrumb .breadcrumb-oitila {
  font-family: 'Poppins', sans-serif;
}

.ps-page-breadcrumb .breadcrumb-oitila h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

/* ── Font Awesome heading icons ── */
.ps-page h1 > i.fa,
.ps-page h1 > i.fas,
.ps-page h1 > i.far,
.ps-page h1 > i.fab,
.ps-page h2 > i.fa,
.ps-page h2 > i.fas,
.ps-page h2 > i.far,
.ps-page h2 > i.fab,
.ps-page h3 > i.fa,
.ps-page h3 > i.fas,
.ps-page h3 > i.far,
.ps-page h3 > i.fab {
  margin-right: 10px;
  color: #6f42c1;
}

/* ── Card grid uniform spacing ── */
.ps-page .row.g-4 > [class*="col-"] {
  margin-bottom: 24px;
}

.ps-page .row.gy-4 > [class*="col-"] {
  margin-bottom: 24px;
}

/* ── Accordion / Collapse styles (guide, FAQs) ── */
.ps-page .accordion .card {
  margin-bottom: 8px;
}

.ps-page .accordion .card-header {
  cursor: pointer;
  padding: 14px 20px;
}

/* ── Shadow utilities ── */
.ps-page .shadow-sm {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

/* ── Horizontal rule ── */
.ps-page hr {
  border-top: 1px solid #eee;
  margin: 24px 0;
}

/* ── Badges ── */
.ps-page .badge {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 20px;
}

/* ── Alert boxes ── */
.ps-page .alert {
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
  border: none;
}

/* ============================================================
   RESPONSIVE — Tablet (768px – 1023px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .ps-page h1 {
    font-size: 1.75rem;
  }

  .ps-page h2 {
    font-size: 1.35rem;
  }

  .ps-page h3 {
    font-size: 1.15rem;
  }

  .ps-page .card-body {
    padding: 20px;
  }

  .ps-page .about-inner {
    padding-top: 32px;
    padding-bottom: 48px;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (max 767px)
   ============================================================ */
@media (max-width: 767px) {
  .ps-page h1 {
    font-size: 1.5rem;
  }

  .ps-page h2 {
    font-size: 1.2rem;
  }

  .ps-page h3 {
    font-size: 1.05rem;
  }

  .ps-page h4 {
    font-size: 1rem;
  }

  .ps-page p {
    font-size: 15px;
    line-height: 1.7;
  }

  .ps-page ul,
  .ps-page ol {
    font-size: 15px;
    padding-left: 1.2rem;
  }

  .ps-page .card-body {
    padding: 16px;
  }

  .ps-page .card-title {
    font-size: 1.1rem;
  }

  .ps-page .about-inner {
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .ps-page .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .ps-page .hero-section {
    padding: 32px 16px;
    border-radius: 8px;
  }

  .ps-page .step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 14px;
  }

  .ps-page .icon-circle {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .ps-page .list-group-item {
    padding: 10px 14px;
    font-size: 15px;
  }

  /* Stack columns that are side by side */
  .ps-page .row > .col-md-6,
  .ps-page .row > .col-md-4,
  .ps-page .row > .col-md-8,
  .ps-page .row > .col-lg-3 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .ps-page .policy-header {
    font-size: 1.15rem;
  }

  .ps-page .card-header {
    padding: 12px 16px;
    font-size: 14px;
  }

  /* Ensure no horizontal scroll */
  .ps-page .table-responsive {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
  }

  .ps-page img {
    max-width: 100%;
    height: auto;
  }
}

/* ============================================================
   RESPONSIVE — Small Mobile (max 375px)
   ============================================================ */
@media (max-width: 375px) {
  .ps-page h1 {
    font-size: 1.3rem;
  }

  .ps-page h2 {
    font-size: 1.1rem;
  }

  .ps-page h3 {
    font-size: 1rem;
  }

  .ps-page p {
    font-size: 14px;
  }

  .ps-page ul,
  .ps-page ol {
    font-size: 14px;
    padding-left: 1rem;
  }

  .ps-page .card-body {
    padding: 14px;
  }

  .ps-page .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .ps-page .btn-primary {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* ============================================================
   RESPONSIVE — Large Desktop (1280px+)
   ============================================================ */
@media (min-width: 1280px) {
  .ps-page .container {
    max-width: 1200px;
  }

  .ps-page .about-inner {
    padding-top: 48px;
    padding-bottom: 64px;
  }
}

/* ── Print styles ── */
@media print {
  .ps-page .card {
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .ps-page .btn {
    display: none;
  }
}
