/* =============================================
   PAGES REDESIGN — Refund, FAQ, T&C, Privacy
   Shared CSS for all policy & support pages
   Matches about-redesign.css design language
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ───────────────────────────── */
:root {
  --pg-navy: #012169;
  --pg-navy-light: #01449e;
  --pg-red: #C8102E;
  --pg-red-light: #ff607b;
  --pg-dark: #0f172a;
  --pg-gray-900: #1f2937;
  --pg-gray-700: #374151;
  --pg-gray-600: #4b5563;
  --pg-gray-500: #6b7280;
  --pg-gray-400: #9ca3af;
  --pg-gray-200: #e5e7eb;
  --pg-gray-100: #f3f4f6;
  --pg-gray-50: #f9fafb;
  --pg-indigo-50: #eef2ff;
  --pg-indigo-100: #e0e7ff;
  --pg-indigo-200: #c7d2fe;
  --pg-card-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --pg-card-hover-shadow: 0 12px 36px rgba(1, 33, 105, 0.12);
}

/* ── Hero Inner Banner ──────────────────────── */
.page-hero {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(1, 33, 105, 0.92) 0%,
      rgba(1, 33, 105, 0.75) 50%,
      rgba(200, 16, 46, 0.5) 100%);
  z-index: 1;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  font-family: 'Inter', sans-serif !important;
  font-weight: 900 !important;
  font-size: 3rem !important;
  letter-spacing: -1px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  color: white;
  margin-bottom: 8px;
}

.page-hero .hero-subtitle {
  font-family: 'Inter', sans-serif !important;
  font-weight: 400 !important;
  font-size: 1.1rem !important;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.page-hero .hero-breadcrumb {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 14px;
  letter-spacing: 0.3px;
}

.page-hero .hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-hero .hero-breadcrumb a:hover {
  color: white;
}

/* ── Page Content Section ──────────────────── */
.page-content {
  background: linear-gradient(180deg, #f7f8fc 0%, #fff 30%, #fff 70%, #f7f8fc 100%);
  font-family: 'Inter', sans-serif;
  padding: 60px 0 80px;
}

.page-content .container {
  max-width: 1100px;
}

/* ── Page Title ─────────────────────────────── */
.page-content .page-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--pg-dark);
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-content .page-title .title-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  background: linear-gradient(135deg, var(--pg-navy), var(--pg-navy-light));
  box-shadow: 0 4px 12px rgba(1, 33, 105, 0.2);
  flex-shrink: 0;
}

/* ── Section Cards ─────────────────────────── */
.policy-card {
  background: white;
  border: 1px solid var(--pg-gray-200);
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.policy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pg-navy), var(--pg-red));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.policy-card:hover {
  box-shadow: var(--pg-card-hover-shadow);
  border-color: var(--pg-indigo-200);
}

.policy-card:hover::before {
  opacity: 1;
}

.policy-card .section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--pg-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  padding-bottom: 14px;
}

.policy-card .section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 50px;
  background: linear-gradient(90deg, var(--pg-navy), var(--pg-red));
  border-radius: 2px;
}

.policy-card .section-title .section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.95rem;
  color: white;
}

.policy-card .section-title .section-icon.navy {
  background: linear-gradient(135deg, var(--pg-navy), var(--pg-navy-light));
  box-shadow: 0 3px 8px rgba(1, 33, 105, 0.2);
}

.policy-card .section-title .section-icon.red {
  background: linear-gradient(135deg, var(--pg-red), var(--pg-red-light));
  box-shadow: 0 3px 8px rgba(200, 16, 46, 0.2);
}

.policy-card .section-title .section-icon.green {
  background: linear-gradient(135deg, #059669, #34d399);
  box-shadow: 0 3px 8px rgba(5, 150, 105, 0.2);
}

.policy-card .section-title .section-icon.purple {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  box-shadow: 0 3px 8px rgba(124, 58, 237, 0.2);
}

.policy-card .section-title .section-icon.amber {
  background: linear-gradient(135deg, #d97706, #fbbf24);
  box-shadow: 0 3px 8px rgba(217, 119, 6, 0.2);
}

/* ── Policy Points ─────────────────────────── */
.policy-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy-points li {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  color: var(--pg-gray-600);
  line-height: 1.75;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  background: var(--pg-gray-50);
  border: 1px solid var(--pg-gray-200);
  border-radius: 12px;
  transition: all 0.25s ease;
}

.policy-points li:hover {
  background: var(--pg-indigo-50);
  border-color: var(--pg-indigo-200);
  transform: translateX(4px);
  box-shadow: 0 2px 8px rgba(1, 33, 105, 0.06);
}

.policy-points li .point-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pg-navy), var(--pg-navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.policy-points li .point-icon i {
  color: white;
  font-size: 0.6rem;
}

.policy-points li .point-text {
  flex: 1;
}

.policy-points li .point-text strong {
  color: var(--pg-dark);
  font-weight: 600;
}

.policy-points li .point-text a {
  color: var(--pg-navy);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed var(--pg-navy);
  transition: all 0.2s ease;
}

.policy-points li .point-text a:hover {
  color: var(--pg-red);
  border-bottom-color: var(--pg-red);
}

/* Sub-lists inside points */
.policy-points li .point-text ul {
  margin: 10px 0 4px 0;
  padding: 0;
  list-style: none;
}

.policy-points li .point-text ul li {
  padding: 6px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--pg-gray-200);
  gap: 8px;
  font-size: 0.88rem;
}

.policy-points li .point-text ul li:last-child {
  border-bottom: none;
}

.policy-points li .point-text ul li:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
}

.policy-points li .point-text ul li::before {
  content: "›";
  color: var(--pg-navy);
  font-weight: 700;
  font-size: 1rem;
}

/* ── Paragraph Text ────────────────────────── */
.policy-card p,
.policy-card .policy-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--pg-gray-600);
}

/* ── FAQ Accordion ─────────────────────────── */
.faq-container {
  max-width: 1100px;
}

/* FAQ category tabs */
.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
  padding: 0;
  list-style: none;
}

.faq-categories li a {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pg-gray-600);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 12px;
  border: 1px solid var(--pg-gray-200);
  background: white;
  transition: all 0.25s ease;
  display: block;
}

.faq-categories li a:hover,
.faq-categories li a.active {
  background: linear-gradient(135deg, var(--pg-navy), var(--pg-navy-light));
  color: white;
  border-color: var(--pg-navy);
  box-shadow: 0 4px 12px rgba(1, 33, 105, 0.2);
}

/* FAQ groups and accordion */
.faq-group {
  margin-bottom: 36px;
}

.faq-group-title {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--pg-dark);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  position: relative;
}

.faq-group-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--pg-navy), var(--pg-red));
  border-radius: 2px;
}

.faq-group-title .group-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq-item {
  background: white;
  border: 1px solid var(--pg-gray-200);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--pg-indigo-200);
  box-shadow: 0 4px 16px rgba(1, 33, 105, 0.06);
}

.faq-item.active {
  border-color: var(--pg-navy);
  box-shadow: 0 6px 24px rgba(1, 33, 105, 0.1);
}

.faq-question {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pg-dark);
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.faq-question:hover {
  color: var(--pg-navy);
}

.faq-question .question-text {
  flex: 1;
}

.faq-question .faq-toggle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pg-indigo-50);
  border: 1px solid var(--pg-indigo-200);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
  font-size: 0.75rem;
  color: var(--pg-navy);
}

.faq-item.active .faq-question .faq-toggle {
  background: linear-gradient(135deg, var(--pg-navy), var(--pg-navy-light));
  color: white;
  border-color: var(--pg-navy);
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 1200px;
}

.faq-answer-inner {
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--pg-gray-600);
  padding: 0 24px 20px;
  border-top: 1px solid var(--pg-gray-100);
  padding-top: 16px;
  margin-top: 0;
}

.faq-answer-inner ul {
  padding-left: 0;
  list-style: none;
  margin: 10px 0;
}

.faq-answer-inner ul li {
  padding: 6px 0;
  position: relative;
  padding-left: 18px;
}

.faq-answer-inner ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--pg-navy);
  font-weight: 700;
  font-size: 1.1rem;
}

/* ── Terms Tabs (vertical nav pills) ────────── */
.terms-tabs {
  position: sticky;
  top: 20px;
}

.terms-tabs .nav-link {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  color: var(--pg-gray-600) !important;
  padding: 14px 20px !important;
  border-radius: 12px !important;
  border: 1px solid var(--pg-gray-200) !important;
  background: white !important;
  margin-bottom: 8px !important;
  transition: all 0.25s ease !important;
  text-align: left !important;
}

.terms-tabs .nav-link:hover {
  border-color: var(--pg-indigo-200) !important;
  background: var(--pg-indigo-50) !important;
  color: var(--pg-navy) !important;
}

.terms-tabs .nav-link.active {
  background: linear-gradient(135deg, var(--pg-navy), var(--pg-navy-light)) !important;
  color: white !important;
  border-color: var(--pg-navy) !important;
  box-shadow: 0 4px 16px rgba(1, 33, 105, 0.2) !important;
  font-weight: 600 !important;
}

/* ── Highlight / Info Cards ────────────────── */
.info-highlight {
  background: linear-gradient(135deg, var(--pg-navy) 0%, var(--pg-navy-light) 100%);
  color: white;
  border-radius: 18px;
  padding: 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(1, 33, 105, 0.15);
}

.info-highlight::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.info-highlight::after {
  content: "";
  position: absolute;
  bottom: -30px;
  left: -30px;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.info-highlight h4,
.info-highlight p {
  position: relative;
  z-index: 1;
}

.info-highlight h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: white;
}

.info-highlight p {
  font-family: 'Inter', sans-serif;
  font-size: 0.93rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
}

.info-highlight a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.5);
  transition: all 0.2s ease;
}

.info-highlight a:hover {
  color: white;
  border-bottom-color: white;
}

/* ── Registration details footer ───────────── */
.page-reg-details {
  background: var(--pg-gray-50);
  border: 1px solid var(--pg-gray-200);
  border-radius: 18px;
  padding: 28px 32px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.page-reg-details img.hire_logo {
  height: 60px;
  width: auto;
  border-radius: 8px;
}

.page-reg-details p {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--pg-gray-600);
  margin: 0;
  font-weight: 500;
}

.page-reg-details img.payment_types {
  height: 36px;
  width: auto;
}

/* ── Horizontal Dividers ────────────────────── */
.page-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      var(--pg-indigo-200) 20%,
      var(--pg-indigo-200) 80%,
      transparent 100%);
  margin: 2.5rem 0;
  opacity: 1;
}

/* ── Last Updated Badge ────────────────────── */
.last-updated {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--pg-gray-500);
  background: var(--pg-gray-50);
  border: 1px solid var(--pg-gray-200);
  border-radius: 20px;
  padding: 6px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
}

.last-updated i {
  color: var(--pg-navy);
}

/* ── CTA Banner (reusable) ─────────────────── */
.page-cta {
  background: linear-gradient(135deg,
      var(--pg-navy) 0%,
      var(--pg-navy-light) 60%,
      var(--pg-red) 100%);
  border-radius: 20px;
  padding: 44px 40px;
  margin-top: 48px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-cta::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.page-cta::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 130px;
  height: 130px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}

.page-cta h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: white;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.page-cta p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 550px;
  margin: 0 auto 22px;
  position: relative;
  z-index: 1;
}

.page-cta .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  color: var(--pg-navy);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 14px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

.page-cta .btn-cta:hover {
  background: transparent;
  color: white;
  border-color: white;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.15);
}

/* ── Responsive ─────────────────────────────── */
@media (max-width: 991px) {
  .page-hero h1 {
    font-size: 2.3rem !important;
  }

  .page-hero {
    min-height: 240px;
  }

  .faq-categories {
    gap: 6px;
  }

  .faq-categories li a {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .terms-tabs {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
  }

  .terms-tabs .nav-link {
    padding: 10px 16px !important;
    font-size: 0.82rem !important;
    margin-bottom: 0 !important;
  }

  .policy-card {
    padding: 24px 20px;
  }

  .page-reg-details {
    gap: 20px;
    padding: 20px;
  }
}

@media (max-width: 576px) {
  .page-hero h1 {
    font-size: 1.8rem !important;
  }

  .page-hero {
    min-height: 200px;
  }

  .page-content {
    padding: 36px 0 50px;
  }

  .page-content .page-title {
    font-size: 1.5rem;
  }

  .policy-card {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .faq-question {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .faq-answer-inner {
    padding: 0 16px 16px;
    font-size: 0.88rem;
  }

  .page-cta {
    padding: 28px 20px;
    border-radius: 14px;
  }

  .page-cta h3 {
    font-size: 1.3rem;
  }

  .page-reg-details {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}

/* ══════════════════════════════════════════════
   LEGACY T&C CLASSES (used in terms.blade.php)
   Restyle existing markup to match redesign
   ══════════════════════════════════════════════ */

.policy-card .card-title {
  display: none;
  /* Hidden — replaced by section-title in the wrapper */
}

.policy-card .sub-title {
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  color: var(--pg-navy) !important;
  padding-top: 28px !important;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--pg-indigo-100);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.policy-card .card-points {
  padding: 12px 0 !important;
}

.policy-card .points {
  font-family: 'Inter', sans-serif !important;
  font-size: 0.9rem !important;
  color: var(--pg-gray-600) !important;
  line-height: 1.8 !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  background: var(--pg-gray-50) !important;
  border: 1px solid var(--pg-gray-200) !important;
  border-radius: 10px !important;
  transition: all 0.25s ease !important;
  margin: 0 !important;
}

.policy-card .points:hover {
  background: var(--pg-indigo-50) !important;
  border-color: var(--pg-indigo-200) !important;
  transform: translateX(3px) !important;
  box-shadow: 0 2px 6px rgba(1, 33, 105, 0.05) !important;
  font-weight: 400 !important;
  margin-inline: 0 !important;
}

.policy-card .points i {
  color: var(--pg-navy) !important;
  padding-right: 0 !important;
  font-size: 0.85rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.policy-card .points ul {
  margin: 8px 0 4px;
  padding-left: 0;
  list-style: none;
}

.policy-card .points ul li {
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
  font-size: 0.88rem;
  color: var(--pg-gray-600);
}

.policy-card .points ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--pg-navy);
  font-weight: 700;
}