/**
 * Shared page components – about-us, why-choose-us, channel-directory,
 * compatibility, knowledge pages
 */
:root {
  --pg-navy: #071a42;
  --pg-blue: #0b2b6f;
  --pg-primary: #ffb302;
  --pg-primary-dark: #e6a000;
  --pg-muted: #5c6370;
  --pg-radius: 16px;
  --pg-shadow: 0 12px 40px rgba(11, 43, 111, 0.1);
  --section-y: clamp(64px, 8vw, 88px);
}

/* ── Page shell ── */
.page-content main {
  overflow-x: hidden;
}

/* ── Hero ── */
.pg-hero {
  background: linear-gradient(125deg, #0040c1 0%, #0b2b6f 48%, #071a42 100%);
  padding: var(--section-y) 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.pg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 85% 30%, rgba(255, 179, 2, 0.08) 0%, transparent 55%),
    linear-gradient(180deg, rgba(7, 26, 66, 0.2) 0%, transparent 40%);
  pointer-events: none;
}

.pg-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.pg-hero .container {
  position: relative;
  z-index: 1;
}

.pg-hero__badge {
  display: inline-block;
  background: rgba(255, 179, 2, 0.15);
  border: 1px solid rgba(255, 179, 2, 0.4);
  color: var(--pg-primary);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 16px;
}

.pg-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 700;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 16px;
  max-width: 600px;
  letter-spacing: -0.02em;
}

.pg-hero__lead {
  font-size: clamp(1rem, 1.8vw, 1.08rem);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
  margin-bottom: 18px;
}

.pg-hero__trust {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.pg-hero__trust li {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pg-hero__trust li i {
  color: var(--pg-primary);
  font-size: 12px;
}

.pg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Buttons ── */
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
  border: 2px solid transparent;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.pg-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.pg-btn--whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.pg-btn--whatsapp:hover {
  background: #1fb855;
  color: #fff;
}

.pg-btn--primary {
  background: var(--pg-primary);
  color: var(--pg-navy);
  box-shadow: 0 8px 24px rgba(255, 179, 2, 0.35);
}

.pg-btn--primary:hover {
  background: var(--pg-primary-dark);
  color: var(--pg-navy);
}

.pg-btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.pg-btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ── Sections ── */
.pg-section {
  padding: var(--section-y) 0;
}

.pg-section--alt {
  background: #f8f9fc;
}

.pg-section__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto clamp(32px, 5vw, 44px);
}

.pg-section__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pg-blue);
  margin-bottom: 10px;
}

.pg-section__head h2 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  color: var(--pg-navy);
  margin-bottom: 12px;
  line-height: 1.25;
}

.pg-section__head p {
  color: var(--pg-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0;
}

/* ── Responsive grids (2 / 3 / 4 col) ── */
.pg-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}

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

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

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

@media (min-width: 768px) {
  .pg-grid--3,
  .pg-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .pg-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.pg-grid > .col,
.pg-grid > [class*="col-"] {
  display: flex;
}

/* ── Cards ── */
.pg-card {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: calc(var(--pg-radius) + 2px);
  padding: 22px 20px;
  box-shadow: 0 6px 22px rgba(11, 43, 111, 0.06);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

a.pg-card {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.pg-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(11, 43, 111, 0.14);
  border-color: rgba(255, 179, 2, 0.25);
}

a.pg-card:hover {
  text-decoration: none;
  color: inherit;
}

.pg-card__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 179, 2, 0.2) 0%, rgba(255, 179, 2, 0.08) 100%);
  color: var(--pg-primary-dark);
  font-size: 22px;
  margin-bottom: 14px;
}

.pg-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pg-blue);
  background: rgba(11, 43, 111, 0.07);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.pg-card h3,
.pg-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--pg-navy);
  margin: 0 0 8px;
  line-height: 1.3;
}

.pg-card p,
.pg-card__text {
  font-size: 14px;
  color: var(--pg-muted);
  line-height: 1.65;
  margin: 0 0 14px;
  flex: 1;
}

.pg-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--pg-blue);
  text-decoration: none;
  margin-top: auto;
}

.pg-card__link:hover {
  text-decoration: underline;
}

.pg-card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  flex: 1;
}

.pg-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--pg-muted);
  line-height: 1.55;
  padding: 6px 0;
  border-bottom: 1px solid #f3f5f9;
}

.pg-card__list li:last-child {
  border-bottom: none;
}

.pg-card__list li i {
  color: #16a34a;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ── Stats row ── */
.pg-stat {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pg-stat {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.pg-stat__item {
  text-align: center;
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: calc(var(--pg-radius) + 2px);
  padding: clamp(20px, 3vw, 28px) 16px;
  box-shadow: 0 6px 22px rgba(11, 43, 111, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.pg-stat__item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(11, 43, 111, 0.11);
  border-color: rgba(255, 179, 2, 0.25);
}

.pg-section--alt .pg-stat__item {
  background: #fff;
}

.pg-hero .pg-stat__item {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.pg-hero .pg-stat__item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 179, 2, 0.3);
  box-shadow: none;
}

.pg-stat__value {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--pg-navy);
  line-height: 1.15;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.pg-hero .pg-stat__value {
  color: var(--pg-primary);
}

.pg-stat__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--pg-muted);
  line-height: 1.4;
}

.pg-hero .pg-stat__label {
  color: rgba(255, 255, 255, 0.85);
}

/* ── SEO content typography ── */
.pg-seo {
  max-width: 820px;
  margin: 0 auto;
}

.pg-seo h2 {
  font-size: clamp(1.35rem, 2.8vw, 1.75rem);
  font-weight: 700;
  color: var(--pg-navy);
  margin: 32px 0 12px;
  line-height: 1.3;
}

.pg-seo h2:first-child {
  margin-top: 0;
}

.pg-seo h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pg-navy);
  margin: 24px 0 10px;
}

.pg-seo p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--pg-muted);
  margin-bottom: 12px;
}

.pg-seo a {
  color: var(--pg-blue);
  font-weight: 600;
  text-decoration: none;
}

.pg-seo a:hover {
  text-decoration: underline;
}

.pg-seo ul,
.pg-seo ol {
  margin: 0 0 16px;
  padding-left: 1.25rem;
}

.pg-seo ul {
  list-style: none;
  padding-left: 0;
}

.pg-seo ul li {
  position: relative;
  padding-left: 22px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pg-muted);
  margin-bottom: 8px;
}

.pg-seo ul li::before {
  content: "\f00c";
  font-family: FontAwesome;
  position: absolute;
  left: 0;
  top: 4px;
  color: var(--pg-primary-dark);
  font-size: 12px;
}

.pg-seo ol li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pg-muted);
  margin-bottom: 8px;
}

/* ── Final CTA ── */
.pg-cta {
  background: linear-gradient(135deg, var(--pg-navy) 0%, var(--pg-blue) 55%, #1a4a9e 100%);
  padding: clamp(56px, 8vw, 72px) 0;
  color: #fff;
}

.pg-cta__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.pg-cta h2 {
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.pg-cta p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.pg-cta__trust {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pg-primary);
  margin-bottom: 22px;
}

.pg-cta__trust i {
  font-size: 12px;
}

.pg-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pg-cta__actions .pg-btn {
  flex: 1 1 200px;
  max-width: 280px;
}

/* ── Floating contact ── */
.page-content .floating-contact {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.page-content .floating-contact a {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease;
}

.page-content .floating-contact a:hover {
  transform: translateY(-3px);
}

.page-content .floating-contact .btn-whatsapp {
  background: #25d366;
}

.page-content .floating-contact .btn-telegram {
  background: #0088cc;
}

.page-content .floating-contact.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

.page-content .back-to-top-wrapper.back-to-top-btn-show {
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(max(24px, env(safe-area-inset-bottom)) + 124px);
  z-index: 999;
}

/* ── Breadcrumb ── */
.pg-breadcrumb {
  padding: 14px 0 0;
  position: relative;
  z-index: 2;
}

.pg-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
}

.pg-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.65);
}

.pg-breadcrumb li:not(:last-child)::after {
  content: "/";
  opacity: 0.5;
}

.pg-breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
}

.pg-breadcrumb a:hover {
  color: var(--pg-primary);
}

.pg-breadcrumb li[aria-current="page"] {
  color: var(--pg-primary);
  font-weight: 600;
}

/* ── FAQ accordion ── */
.pg-faq {
  max-width: 820px;
  margin: 0 auto;
}

.pg-faq .accordion-items {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: var(--pg-radius);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(11, 43, 111, 0.04);
}

.pg-section--alt .pg-faq .accordion-items {
  background: #fff;
}

.pg-faq .accordion-buttons {
  width: 100%;
  text-align: left;
  padding: 18px 48px 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pg-navy);
  background: transparent;
  border: none;
  position: relative;
  line-height: 1.45;
}

.pg-faq .accordion-buttons::after {
  content: "\f078";
  font-family: FontAwesome;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--pg-blue);
  transition: transform 0.2s ease;
}

.pg-faq .accordion-buttons:not(.collapsed)::after {
  transform: translateY(-50%) rotate(180deg);
}

.pg-faq .accordion-body {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--pg-muted);
}

/* ── Comparison table ── */
.pg-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: calc(var(--pg-radius) + 2px);
  border: 1px solid #e8ecf4;
  box-shadow: var(--pg-shadow);
}

.pg-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: #fff;
  margin: 0;
}

.pg-table th,
.pg-table td {
  padding: 14px 18px;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px solid #eef1f7;
}

.pg-table thead th {
  background: var(--pg-navy);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.pg-table tbody tr:nth-child(even) {
  background: #f8f9fc;
}

.pg-table td:first-child {
  font-weight: 600;
  color: var(--pg-navy);
}

.pg-table .pg-table__yes {
  color: #16a34a;
  font-weight: 700;
}

.pg-table .pg-table__no {
  color: #dc2626;
  font-weight: 700;
}

/* ── Callout / disclaimer ── */
.pg-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff8e6;
  border: 1px solid rgba(255, 179, 2, 0.35);
  border-left: 4px solid var(--pg-primary);
  border-radius: var(--pg-radius);
  padding: 20px 22px;
  max-width: 820px;
  margin: 0 auto;
}

.pg-callout__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 179, 2, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pg-primary-dark);
  font-size: 18px;
}

.pg-callout h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pg-navy);
  margin: 0 0 6px;
}

.pg-callout p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--pg-muted);
  margin: 0;
}

/* ── Trust quotes ── */
.pg-quotes {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .pg-quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pg-quote {
  background: #fff;
  border: 1px solid #e8ecf4;
  border-radius: calc(var(--pg-radius) + 2px);
  padding: 22px 20px;
  box-shadow: 0 6px 22px rgba(11, 43, 111, 0.06);
  margin: 0;
}

.pg-quote__stars {
  color: var(--pg-primary);
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.pg-quote p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--pg-muted);
  margin: 0 0 12px;
  font-style: italic;
}

.pg-quote footer {
  font-size: 13px;
  font-weight: 700;
  color: var(--pg-navy);
}

/* ── Device card meta ── */
.pg-card__meta {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  flex: 1;
}

.pg-card__meta li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f5f9;
  color: var(--pg-muted);
}

.pg-card__meta li:last-child {
  border-bottom: none;
}

.pg-card__meta strong {
  color: var(--pg-navy);
  font-weight: 600;
  flex-shrink: 0;
}

.pg-card__meta .pg-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
}

.pg-badge--easy {
  background: rgba(22, 163, 74, 0.12);
  color: #16a34a;
}

.pg-badge--moderate {
  background: rgba(255, 179, 2, 0.15);
  color: #b45309;
}

.pg-badge--yes {
  background: rgba(11, 43, 111, 0.08);
  color: var(--pg-blue);
}

/* ── Responsive ── */
@media (max-width: 767.98px) {
  .pg-hero__actions {
    flex-direction: column;
  }

  .pg-hero__actions .pg-btn {
    width: 100%;
  }

  .pg-cta__actions .pg-btn {
    max-width: none;
    width: 100%;
  }

  .pg-grid,
  .pg-grid--2,
  .pg-grid--3,
  .pg-grid--4 {
    grid-template-columns: 1fr;
  }

  .pg-stat {
    grid-template-columns: 1fr;
  }
}
