/* ============================================================
   THE IMG PATH — public shell (Phase 2)
   Shared components for the new backend-driven public pages
   (service, pricing, countries, colleges, about, contact,
   login, checkout). Namespaced .ps-* so nothing collides with
   style.css or page-specific styles.
   Brand: blue #2563eb · cyan #38bdf8 · ink #071022 · bg #f7fbff
   ============================================================ */

.ps-main {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 12%, rgba(56, 189, 248, 0.20), transparent 30%),
    radial-gradient(circle at 12% 22%, rgba(37, 99, 235, 0.10), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f3f9ff 45%, #f8fbff 100%);
  color: #071022;
  padding-bottom: 56px;
}

.ps-wrap {
  width: min(var(--container, 1200px), calc(100% - 2 * var(--gutter, 24px)));
  margin: 0 auto;
}

/* ── Page hero ─────────────────────────────────────────────── */
.ps-hero { padding: 54px 0 30px; }

.ps-hero .ps-eyebrow,
.ps-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.14);
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.2px;
  margin-bottom: 18px;
  box-shadow: 0 14px 38px rgba(37, 99, 235, 0.08);
}

.ps-hero h1 {
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -1.6px;
  font-weight: 900;
  margin: 0 0 14px;
}

.ps-hero h1 .ps-grad {
  background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 40%, #38bdf8 75%, #7c3aed 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.ps-hero p {
  color: #4f5f73;
  font-size: 17px;
  line-height: 1.7;
  max-width: 720px;
  margin: 0;
  font-weight: 500;
}

/* ── Sections ──────────────────────────────────────────────── */
.ps-section { padding: 26px 0 8px; }

.ps-section-title {
  font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.8px;
  font-weight: 900;
  margin: 0 0 6px;
}

.ps-section-sub {
  color: #64748b;
  font-weight: 500;
  margin: 0 0 20px;
  font-size: 15px;
}

/* ── Grid + cards ──────────────────────────────────────────── */
.ps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

@media (max-width: 980px) {
  .ps-grid, .ps-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ps-grid, .ps-grid.cols-2, .ps-grid.cols-4 { grid-template-columns: 1fr; }
}

.ps-card {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(8, 34, 64, 0.10);
  border-radius: var(--r-lg, 24px);
  padding: 24px;
  box-shadow: var(--shadow-md, 0 18px 50px rgba(37, 99, 235, 0.08));
  transition: transform var(--t, 200ms ease), box-shadow var(--t, 200ms ease);
  display: flex;
  flex-direction: column;
}

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

.ps-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg, 0 26px 70px rgba(37, 99, 235, 0.13));
}

.ps-card h3 {
  font-size: 19px;
  letter-spacing: -0.4px;
  font-weight: 900;
  margin: 0 0 8px;
  color: #071022;
}

.ps-card p {
  color: #4f5f73;
  font-size: 14.5px;
  line-height: 1.65;
  font-weight: 500;
  margin: 0 0 14px;
}

.ps-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(56, 189, 248, 0.14));
  border: 1px solid rgba(37, 99, 235, 0.12);
  margin-bottom: 14px;
}

/* ── Badges ────────────────────────────────────────────────── */
.ps-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  background: rgba(15, 23, 42, 0.05);
  color: #475569;
  border: 1px solid rgba(15, 23, 42, 0.08);
  white-space: nowrap;
}

.ps-badge.blue   { background: rgba(37, 99, 235, 0.09);  color: #2563eb; border-color: rgba(37, 99, 235, 0.18); }
.ps-badge.green  { background: rgba(5, 150, 105, 0.09);  color: #059669; border-color: rgba(5, 150, 105, 0.20); }
.ps-badge.amber  { background: rgba(217, 119, 6, 0.09);  color: #d97706; border-color: rgba(217, 119, 6, 0.20); }
.ps-badge.purple { background: rgba(124, 58, 237, 0.09); color: #7c3aed; border-color: rgba(124, 58, 237, 0.20); }

/* ── Buttons ───────────────────────────────────────────────── */
.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.10);
  background: #ffffff;
  color: #071022;
  font-weight: 900;
  font-size: 14.5px;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--t, 200ms ease), box-shadow var(--t, 200ms ease), background var(--t-fast, 150ms ease);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.ps-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(37, 99, 235, 0.13); }

.ps-btn.dark {
  background: #071126;
  color: #ffffff;
  border-color: rgba(7, 17, 38, 0.2);
  box-shadow: 0 16px 40px rgba(7, 17, 38, 0.18);
}

.ps-btn.blue {
  background: #2563eb;
  color: #ffffff;
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.22);
}

.ps-btn.sm { min-height: 38px; padding: 8px 16px; font-size: 13px; }
.ps-btn.block { width: 100%; }
.ps-btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ── Price display ─────────────────────────────────────────── */
.ps-price { display: flex; align-items: baseline; gap: 9px; margin: 6px 0 12px; }
.ps-price strong { font-size: 27px; font-weight: 900; letter-spacing: -0.8px; }
.ps-price s { color: #94a3b8; font-size: 15px; font-weight: 600; }
.ps-price .free { color: #059669; }

/* ── Feature list (checkmarks) ─────────────────────────────── */
.ps-list { list-style: none; margin: 0 0 16px; padding: 0; }

.ps-list li {
  position: relative;
  padding: 5px 0 5px 26px;
  color: #3b4a5f;
  font-size: 13.8px;
  font-weight: 600;
  line-height: 1.5;
}

.ps-list li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: rgba(5, 150, 105, 0.10);
  color: #059669;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Filter bar ────────────────────────────────────────────── */
.ps-filterbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 6px 0 22px;
}

.ps-filterbar input,
.ps-filterbar select,
.ps-input,
.ps-form input,
.ps-form select,
.ps-form textarea {
  padding: 13px 16px;
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #ffffff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: #071022;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ps-filterbar input:focus,
.ps-form input:focus,
.ps-form select:focus,
.ps-form textarea:focus,
.ps-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

.ps-filterbar input[type="search"] { flex: 1; min-width: 200px; }
.ps-filterbar select { min-width: 160px; }

/* ── Forms ─────────────────────────────────────────────────── */
.ps-form { display: flex; flex-direction: column; gap: 13px; }
.ps-form label { font-size: 13px; font-weight: 800; color: #334155; display: flex; flex-direction: column; gap: 6px; }
.ps-form textarea { min-height: 110px; resize: vertical; }

/* ── Alerts / notes ────────────────────────────────────────── */
.ps-alert {
  padding: 13px 16px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  background: rgba(37, 99, 235, 0.07);
  border: 1px solid rgba(37, 99, 235, 0.16);
  color: #1e40af;
}

.ps-alert.green { background: rgba(5, 150, 105, 0.08);  border-color: rgba(5, 150, 105, 0.20);  color: #047857; }
.ps-alert.amber { background: rgba(217, 119, 6, 0.08);  border-color: rgba(217, 119, 6, 0.22);  color: #b45309; }
.ps-alert.red   { background: rgba(220, 38, 38, 0.07);  border-color: rgba(220, 38, 38, 0.20);  color: #b91c1c; }

/* ── Empty / error state ───────────────────────────────────── */
.ps-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 52px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px dashed rgba(15, 23, 42, 0.15);
  color: #64748b;
  font-weight: 600;
}

.ps-empty strong { display: block; color: #0f172a; font-size: 17px; margin-bottom: 6px; }

/* ── Loading skeleton ──────────────────────────────────────── */
.ps-skel {
  border-radius: 24px;
  min-height: 190px;
  background: linear-gradient(100deg, rgba(226, 232, 240, 0.6) 30%, rgba(241, 245, 249, 0.95) 46%, rgba(226, 232, 240, 0.6) 62%);
  background-size: 220% 100%;
  animation: ps-shimmer 1.3s linear infinite;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

@keyframes ps-shimmer { to { background-position-x: -220%; } }

/* ── Accordion (FAQs) ──────────────────────────────────────── */
.ps-acc {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  margin-bottom: 10px;
  overflow: hidden;
}

.ps-acc summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 20px;
  font-weight: 800;
  font-size: 15px;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.ps-acc summary::-webkit-details-marker { display: none; }
.ps-acc summary::after { content: "+"; font-size: 19px; color: #2563eb; font-weight: 900; }
.ps-acc[open] summary::after { content: "–"; }

.ps-acc .ps-acc-body {
  padding: 0 20px 17px;
  color: #4f5f73;
  font-size: 14.5px;
  line-height: 1.7;
  font-weight: 500;
}

/* ── Detail meta grid (country/college stats) ──────────────── */
.ps-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.ps-meta {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  padding: 14px 16px;
}

.ps-meta small {
  display: block;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.ps-meta strong { font-size: 15.5px; font-weight: 900; color: #0f172a; }

/* ── Simple data table (fees) ──────────────────────────────── */
.ps-table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid rgba(15, 23, 42, 0.08); background: #fff; }
.ps-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ps-table th {
  text-align: left;
  padding: 12px 16px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.ps-table td { padding: 12px 16px; border-top: 1px solid rgba(15, 23, 42, 0.06); font-weight: 600; color: #1e293b; }

/* ── Breadcrumb ────────────────────────────────────────────── */
.ps-crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 700; color: #64748b; padding: 22px 0 0; flex-wrap: wrap; }
.ps-crumb a { color: #2563eb; text-decoration: none; }
.ps-crumb span::before { content: "›"; margin-right: 8px; color: #94a3b8; }

/* ── Popular ribbon on package cards ───────────────────────── */
.ps-card.popular { border-color: rgba(37, 99, 235, 0.35); box-shadow: 0 24px 60px rgba(37, 99, 235, 0.16); }
.ps-card .ps-ribbon {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #2563eb, #38bdf8);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.6px;
  padding: 5px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
  text-transform: uppercase;
}

/* ── Compact navbar variant for the new pages ──────────────── */
@media (min-width: 701px) {
  .ps-nav .nav-container { flex-wrap: wrap; row-gap: 8px; }
  .ps-nav .nav-menu { flex-wrap: wrap; gap: 4px; padding: 5px; }
  .ps-nav .nav-menu a { font-size: 13px; font-weight: 800; padding: 9px 14px; }
}

.ps-brand-img { height: 50px; width: auto; mix-blend-mode: multiply; display: block; }

/* ── Standard footer for new pages ─────────────────────────── */
.ps-footer {
  margin-top: 56px;
  background: #071126;
  border-radius: 28px 28px 0 0;
  color: #cbd5e1;
  padding: 44px 0 30px;
}

.ps-footer .ps-wrap { display: flex; flex-direction: column; gap: 22px; }

.ps-footer-top { display: flex; justify-content: space-between; gap: 26px; flex-wrap: wrap; }

.ps-footer-brand strong { display: block; color: #ffffff; font-size: 19px; font-weight: 900; margin-bottom: 6px; }
.ps-footer-brand p { margin: 0; font-size: 14px; color: #94a3b8; font-weight: 500; max-width: 380px; }

.ps-footer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; align-items: center; }
.ps-footer-links a { color: #cbd5e1; text-decoration: none; font-size: 13.5px; font-weight: 700; }
.ps-footer-links a:hover { color: #ffffff; }

.ps-footer-contact { font-size: 13.5px; color: #94a3b8; font-weight: 600; display: flex; gap: 7px 20px; flex-wrap: wrap; }
.ps-footer-contact a { color: #38bdf8; text-decoration: none; }

.ps-footer-bottom { border-top: 1px solid rgba(148, 163, 184, 0.18); padding-top: 18px; font-size: 12.5px; color: #748199; font-weight: 600; }

/* ── SEO "popular pages" strip (homepage), sits above the dark footer ── */
.footer-seo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  justify-content: center;
  padding: 26px 0 22px;
  font-size: 13px;
  font-weight: 600;
}
.footer-seo a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.18s ease;
}
.footer-seo a:hover { color: #2563eb; }

/* ── Inline SVG icons (Lucide-style) — replace UI emoji ──
   `.ic` flows with text; box icons sit inside their containers. */
.ic {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  vertical-align: -0.16em;
  stroke-width: 2;
}
.ps-eyebrow .ic,
.ps-badge .ic,
.ps-btn .ic { margin-right: 1px; }
.ps-icon svg { width: 24px; height: 24px; color: var(--accent, #2563eb); }
.icon-box svg { width: 28px; height: 28px; color: var(--accent, #2563eb); }
/* country detail "extras" card headings (icon + label) */
.ps-card h3 .ic { color: var(--accent, #2563eb); margin-right: 6px; }

/* ── Country hero banner (countries.hero_image_url) ── */
.ps-hero-media {
  margin: 22px 0 6px;
  border-radius: var(--r-lg, 24px);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-md, 0 18px 50px rgba(37, 99, 235, 0.08));
  aspect-ratio: 1200 / 420;
  background: linear-gradient(135deg, #082240, #0B4292 55%, #2563eb);
}
.ps-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Branded media header for college cards (no logo column in DB) ── */
.ps-card-media {
  margin: -24px -24px 16px;
  height: 92px;
  border-radius: var(--r-lg, 24px) var(--r-lg, 24px) 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #082240 0%, #0B4292 58%, #2563eb 100%);
  color: #ffffff;
}
.ps-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 82% -20%, rgba(255, 255, 255, 0.20), transparent 46%);
}
.ps-card-media .ps-mono {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: 0.5px;
  opacity: 0.97;
}
.ps-card-media .ps-flag {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 20px;
  line-height: 1;
  z-index: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
