/* ========================================
   pj-ok.fun — Global Stylesheet
   Target: Bangladesh (bn-BD)
   Core keyword: pjok
   ======================================== */

/* --- CSS Variables --- */
:root {
  --primary: #f472b6;
  --primary-dark: #db2777;
  --secondary: #60a5fa;
  --secondary-dark: #3b82f6;
  --accent: #a78bfa;
  --soft-pink: #fdf2f8;
  --soft-blue: #eff6ff;
  --soft-purple: #f5f3ff;
  --ink: #1f2937;
  --ink-light: #374151;
  --muted: #6b7280;
  --light: #f9fafb;
  --card: #ffffff;
  --border: #f3d2e5;
  --border-light: #fce7f3;
  --shadow-sm: 0 4px 12px rgba(96,165,250,.08);
  --shadow: 0 12px 35px rgba(96,165,250,.14);
  --shadow-lg: 0 20px 50px rgba(244,114,182,.16);
  --radius: 24px;
  --radius-sm: 16px;
  --radius-xs: 10px;
  --font: 'Hind Siliguri', 'Noto Sans Bengali', sans-serif;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: linear-gradient(180deg, var(--soft-pink) 0%, #ffffff 30%, var(--soft-blue) 70%, #ffffff 100%);
  color: var(--ink);
  line-height: 1.85;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary-dark); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

h1 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.85rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

p { margin-bottom: 1rem; color: var(--ink-light); }

ul, ol { padding-left: 1.5rem; }
li { margin-bottom: .4rem; }

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 24px);
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(244,114,182,.06);
  border-bottom: 1px solid rgba(243,210,229,.3);
}

.header-inner {
  width: 100%;
  max-width: none;
  padding: 0 clamp(10px, 1.2vw, 20px);
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: clamp(10px, 1vw, 18px);
}

.brand-wrap {
  flex: 0 0 auto;
  margin-right: clamp(4px, .8vw, 14px);
  display: flex;
  align-items: center;
}

.site-logo {
  display: block;
  width: auto;
  height: clamp(32px, 3vw, 42px);
  max-width: clamp(118px, 10vw, 168px);
  object-fit: contain;
}

.primary-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(4px, .6vw, 12px);
  white-space: nowrap;
  overflow: visible;
}

.primary-nav a {
  flex: 0 1 auto;
  min-width: 0;
  padding: 9px clamp(6px, .65vw, 12px);
  font-size: clamp(13px, .84vw, 15px);
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
  border-radius: 999px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a.active {
  background: linear-gradient(90deg, rgba(244,114,182,.15), rgba(96,165,250,.15));
  color: #111827;
}

.header-actions {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(6px, .6vw, 10px);
  white-space: nowrap;
}

/* Nav Toggle (Mobile) */
.nav-toggle {
  display: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  cursor: pointer;
  padding: 0;
  transition: background var(--transition);
}

.nav-toggle:hover { background: var(--soft-pink); }

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: var(--transition);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: absolute;
  left: 0;
  transition: var(--transition);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: rotate(45deg); top: 0; }
.nav-toggle[aria-expanded="true"] span::after { transform: rotate(-45deg); top: 0; }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(16px);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
  animation: slideDown .3s ease;
}

.mobile-menu.is-open { display: block; }

.mobile-menu a {
  display: block;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: background var(--transition);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: linear-gradient(90deg, rgba(244,114,182,.1), rgba(96,165,250,.1));
  border-radius: var(--radius-xs);
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .85rem 1.6rem;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  line-height: 1;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 8px 24px rgba(244,114,182,.22);
}

.btn-primary:hover {
  box-shadow: 0 12px 32px rgba(244,114,182,.35);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--soft-pink);
  color: var(--primary-dark);
}

.btn-sm {
  padding: .6rem 1.2rem;
  font-size: 13px;
}

/* ========================================
   BADGES
   ======================================== */
.badge-soft {
  display: inline-block;
  background: linear-gradient(90deg, rgba(244,114,182,.15), rgba(96,165,250,.18));
  color: #7c2d5b;
  padding: .45rem .85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 1rem;
}

/* ========================================
   CARDS
   ======================================== */
.glass-card {
  background: rgba(255,255,255,.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.content-card {
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 3vw, 40px);
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 2vw, 32px);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(244,114,182,.16), rgba(96,165,250,.18));
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.mini-stat {
  background: linear-gradient(135deg, rgba(244,114,182,.1), rgba(96,165,250,.1));
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  text-align: center;
  border: 1px solid rgba(243,210,229,.5);
}

.mini-stat .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
}

.mini-stat .stat-label {
  font-size: .85rem;
  color: var(--muted);
}

/* ========================================
   IMAGE BLOCKS
   ======================================== */
.img-block {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(17,24,39,.1);
}

.img-block img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* ========================================
   SECTIONS
   ======================================== */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section-sm { padding: clamp(24px, 4vw, 48px) 0; }

.section-alt {
  background: linear-gradient(135deg, var(--soft-pink), var(--soft-blue));
}

/* ========================================
   HERO
   ======================================== */
.hero-section {
  padding: clamp(60px, 8vw, 100px) 0 clamp(30px, 4vw, 60px);
  position: relative;
  overflow: hidden;
}

.hero-section::before,
.hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .2;
  z-index: 0;
}

.hero-section::before {
  width: 320px; height: 320px;
  background: var(--primary);
  top: -80px; left: -90px;
}

.hero-section::after {
  width: 280px; height: 280px;
  background: var(--secondary);
  right: -70px; bottom: -80px;
}

.hero-content { position: relative; z-index: 1; }

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb-wrap {
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 4px;
  font-size: 14px;
}

.breadcrumb li { display: flex; align-items: center; gap: 4px; }
.breadcrumb li + li::before { content: '/'; color: var(--muted); margin: 0 4px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ========================================
   PRIVACY / POLICY CARDS
   ======================================== */
.policy-card {
  background: linear-gradient(135deg, rgba(253,242,248,.95), rgba(239,246,255,.95));
  border-left: 6px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: clamp(20px, 3vw, 40px);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

/* ========================================
   STEP CARDS
   ======================================== */
.step-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: clamp(20px, 2vw, 32px);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

/* ========================================
   TABLES
   ======================================== */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.table-theme {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.table-theme thead th {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}

.table-theme td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

.table-theme tbody tr:hover { background: var(--soft-pink); }

/* ========================================
   FAQ
   ======================================== */
.faq-section { padding: clamp(40px, 5vw, 60px) 0; }

.faq-item {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 20px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: background var(--transition);
}

.faq-question:hover { background: var(--soft-pink); }

.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 400;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item.is-open .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 20px 16px;
  color: var(--ink-light);
  font-size: 14px;
  line-height: 1.8;
}

.faq-item.is-open .faq-answer { display: block; }

/* ========================================
   FORMS
   ======================================== */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ink);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xs);
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244,114,182,.15);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: #fff;
  border-top: 1px solid var(--border-light);
  padding: clamp(48px, 6vw, 72px) 0 clamp(20px, 3vw, 32px);
  margin-top: clamp(40px, 5vw, 60px);
}

.footer-brand {
  margin-bottom: 18px;
}

.footer-brand img {
  height: 44px;
  width: auto;
}

.footer-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
  max-width: 360px;
  margin-bottom: 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(3, minmax(140px, .8fr)) minmax(180px, 1fr);
  gap: 28px 36px;
  align-items: start;
}

.footer-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-link-group,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--ink-light);
  font-size: 15px;
  padding: 0;
  transition: color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--primary-dark); }

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(244,114,182,.08);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(244,114,182,.14);
}

.footer-contact a,
.footer-contact p {
  color: var(--ink-light);
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  margin-top: 32px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--muted);
}

/* ========================================
   GRID LAYOUTS
   ======================================== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 24px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }

.grid-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

.grid-content-reverse {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  align-items: center;
}

.grid-content-reverse > :first-child { order: 2; }
.grid-content-reverse > :last-child { order: 1; }

/* ========================================
   UTILITIES
   ======================================== */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.fw-bold { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.gap-2 { gap: 12px; }
.gap-3 { gap: 16px; }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1180px) {
  .site-header .header-inner {
    width: 100%;
    max-width: none;
    padding-left: clamp(8px, 2.4vw, 14px);
    padding-right: clamp(8px, 2.4vw, 14px);
    justify-content: flex-start;
    gap: clamp(6px, 1.8vw, 10px);
  }

  .brand-wrap {
    flex: 0 1 auto;
    margin-right: 0;
  }

  .site-logo {
    height: clamp(30px, 8vw, 40px);
    max-width: clamp(104px, 27vw, 138px);
  }

  .primary-nav { display: none; }

  .nav-toggle {
    display: inline-flex;
  }

  .header-actions {
    margin-left: auto;
    justify-content: flex-end;
  }

  .grid-content,
  .grid-content-reverse {
    grid-template-columns: 1fr;
  }

  .grid-content-reverse > :first-child { order: 1; }
  .grid-content-reverse > :last-child { order: 2; }

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

  .footer-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .auth-form-wrap {
    max-width: 100%;
  }

  .auth-card {
    padding: 28px 24px;
  }

  .auth-card h2 {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-bottom: 1.5rem;
  }

  .auth-card .form-input {
    min-height: 56px;
    font-size: 16px;
  }

  .auth-card .btn.btn-primary {
    min-height: 54px;
    font-size: 17px;
  }
}

@media (max-width: 375px) {
  .site-header .header-inner {
    padding-left: 8px;
    padding-right: 8px;
    gap: 6px;
  }

  .site-logo { max-width: 104px; }

  .nav-toggle {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .btn {
    padding: .7rem 1.2rem;
    font-size: 14px;
  }
}

/* ========================================
   PAGE-SPECIFIC VARIATIONS
   ======================================== */

/* Auth pages */
.auth-form-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(32px, 4.8vw, 56px);
  box-shadow: var(--shadow);
}

.auth-card h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 1.75rem;
}

.auth-card .form-group {
  margin-bottom: 22px;
}

.auth-card .form-label {
  font-size: 16px;
  margin-bottom: 10px;
}

.auth-card .form-input {
  min-height: 62px;
  padding: 16px 20px;
  font-size: 17px;
  border-radius: 18px;
}

.auth-card .btn.btn-primary {
  min-height: 58px;
  font-size: 18px;
  border-radius: 999px;
}

.auth-card .text-center.mt-3 {
  font-size: 16px !important;
  margin-top: 20px;
}

/* Article/Blog pages */
.article-content {
  max-width: 800px;
}

.article-content h2 {
  margin-top: 2rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--border-light);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 1.5rem;
}

/* Info/Highlight boxes */
.info-box {
  background: linear-gradient(135deg, rgba(253,242,248,.6), rgba(239,246,255,.6));
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  margin-bottom: 1.5rem;
}

.warning-box {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius);
  padding: clamp(32px, 4vw, 56px);
  text-align: center;
  color: #fff;
}

.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,.85); }

.cta-section .btn-primary {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

.cta-section .btn-primary:hover {
  background: var(--soft-pink);
}

/* ========================================
   PRINT
   ======================================== */
@media print {
  .site-header, .site-footer, .nav-toggle, .mobile-menu { display: none; }
  body { background: #fff; }
}
