/* ============================================================
   PATANA PASA — Global Stylesheet
   Design: Editorial minimal, Thai-inspired warmth
   Fonts: Cormorant Garamond (display) + Karla (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=Sora:wght@300;400;500;600&display=swap');

/* === CSS VARIABLES === */
:root {
  --blue:        #1356B4;
  --blue-dark:   #0A3D8F;
  --blue-light:  #EEF4FF;
  --blue-mid:    #C5D9F7;
  --red:         #C0392B;
  --dark:        #0F1B2D;
  --body:        #374151;
  --muted:       #6B7280;
  --border:      #E5E9F2;
  --off-white:   #F8F9FC;
  --white:       #FFFFFF;

  --font-hero:    'Outfit', system-ui, sans-serif;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'Sora', system-ui, sans-serif;

  --radius:      6px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 4px rgba(15,27,45,0.08);
  --shadow:      0 4px 20px rgba(15,27,45,0.10);
  --shadow-lg:   0 8px 40px rgba(15,27,45,0.14);

  --max-width:   1080px;
  --nav-height:  68px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--body);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--dark);
  line-height: 1.2;
  font-weight: 700;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
  font-family: var(--font-body);
  font-size: 1.02rem;
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

/* === LAYOUT === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-full {
  padding: 80px 0;
}

.section-alt {
  background: var(--off-white);
}

.section-blue {
  background: var(--blue);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}

.btn-white {
  background: var(--white);
  color: var(--blue);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
  text-decoration: none;
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  text-decoration: none;
}

/* === NAVIGATION === */
#pp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
}

nav.pp-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-name {
  font-family: var(--font-hero);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.nav-logo-sub {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--body);
  border-radius: var(--radius);
  transition: all 0.15s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-cta {
  margin-left: 8px;
}

.nav-cta a {
  background: var(--blue) !important;
  color: var(--white) !important;
  padding: 8px 18px !important;
}

.nav-cta a:hover {
  background: var(--blue-dark) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.2s ease;
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow);
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  display: block;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--body);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s ease;
}

.nav-mobile a:hover,
.nav-mobile a.active {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-mobile .nav-cta-mobile {
  margin-top: 8px;
  background: var(--blue);
  color: var(--white) !important;
  text-align: center;
}

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 1fr 420px;
  min-height: 520px;
}

.hero-left {
  background: var(--blue);
  padding: 72px 48px 72px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-left-inner {
  max-width: 580px;
  margin-left: auto;
  padding: 0 0 0 24px;
}

.hero-left h1 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 20px;
  font-style: italic;
}

.hero-left h1 em {
  font-style: normal;
  color: var(--blue-mid);
}

.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-right {
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  gap: 20px;
}

.hero-right img {
  width: 140px;
  height: auto;
  filter: drop-shadow(var(--shadow));
}

.hero-right-org {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--dark);
  text-align: center;
  line-height: 1.4;
}

.hero-right-reg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-right-reg::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--border);
}

/* === FEATURE STRIP === */
.feature-strip {
  background: var(--dark);
  padding: 20px 24px;
}

.feature-strip-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.feature-pill::before {
  content: '✓';
  color: var(--blue-mid);
  font-weight: 700;
  font-size: 0.9rem;
}

/* === SERVICE CARDS === */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.card h3 {
  margin-bottom: 12px;
  color: var(--dark);
}

.card p {
  color: var(--body);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.02em;
}

/* === WHY SECTION === */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.why-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.why-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.why-item h4 {
  margin-bottom: 6px;
  font-size: 0.98rem;
}

.why-item p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.6;
}

/* === CONTACT SECTION === */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.75;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-detail strong {
  color: var(--dark);
}

#contact-form {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(19,86,180,0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-msg {
  display: none;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-msg.success {
  display: block;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.form-msg.error {
  display: block;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* === DBD BADGE === */
.dbd-wrap {
  display: flex;
  justify-content: center;
  padding: 32px 0 0;
}

.dbd-wrap img {
  height: 80px;
  width: auto;
}

/* === INNER PAGE HEADER === */
.page-header {
  background: var(--blue);
  padding: 56px 24px 48px;
}

.page-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.page-header h1 {
  font-family: var(--font-hero);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.page-header p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
}

.breadcrumb a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { opacity: 0.5; }

/* === INNER PAGE CONTENT === */
.page-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.page-content h2 {
  font-size: 1.5rem;
  margin-top: 2em;
  margin-bottom: 0.5em;
  padding-top: 0.5em;
  border-top: 1px solid var(--border);
  color: var(--dark);
}

.page-content h2:first-child {
  margin-top: 0;
  border-top: none;
}

.page-content h3 {
  font-size: 1.15rem;
  margin-top: 1.5em;
  margin-bottom: 0.4em;
  color: var(--dark);
}

.page-content p {
  color: var(--body);
  line-height: 1.8;
}

.page-content ul, .page-content ol {
  padding-left: 1.4em;
  margin-bottom: 1em;
  color: var(--body);
}

.page-content li {
  line-height: 1.8;
  margin-bottom: 4px;
}

.page-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content blockquote {
  border-left: 3px solid var(--blue-mid);
  padding: 4px 0 4px 20px;
  margin: 24px 0;
  color: var(--body);
}

.page-content blockquote a {
  display: block;
  line-height: 1.8;
}

.page-cta-box {
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.page-cta-box p {
  font-weight: 500;
  color: var(--dark);
  margin: 0;
}

/* === ENROLLMENT SUCCESS === */
.success-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}

.success-box {
  max-width: 540px;
  text-align: center;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
}

.success-box h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.success-box p {
  color: var(--body);
  font-size: 1.02rem;
  line-height: 1.75;
}

.line-id-box {
  margin: 28px auto;
  display: inline-block;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 28px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.04em;
}

/* === FOOTER === */
footer.pp-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
  opacity: 0.9;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
  max-width: 300px;
  margin-bottom: 0;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col ul li a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-dbd {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-dbd img {
  height: 40px;
  width: auto;
  opacity: 0.8;
}

/* === SOURCES PAGE === */
.sources-header {
  background: var(--dark);
  padding: 48px 24px 40px;
}

.sources-header-inner {
  max-width: 780px;
  margin: 0 auto;
}

.sources-header p.series-label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-mid);
  font-weight: 600;
  margin-bottom: 12px;
}

.sources-header h1 {
  color: var(--white);
  font-style: italic;
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.sources-header .byline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0;
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-intro {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-top: 12px;
}

hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-left {
    padding: 56px 24px;
    order: 1;
  }

  .hero-left-inner {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .hero-right {
    order: 0;
    padding: 36px 24px;
    background: var(--blue-dark);
  }

  .hero-right img { width: 110px; }
  .hero-right-org { color: rgba(255,255,255,0.8); }
  .hero-right-reg { color: rgba(255,255,255,0.5); }

  .cards-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .feature-strip-inner { gap: 20px; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }
  .section { padding: 56px 20px; }
  .page-content { padding: 40px 20px 60px; }
  .page-cta-box { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* === CENTERED HERO === */
.hero-centered {
  background: var(--white);
  padding: 72px 24px 80px;
  border-bottom: 1px solid var(--border);
}

.hero-centered-inner {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo {
  width: 96px;
  height: auto;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 20px rgba(19,86,180,0.18));
}

.hero-org-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.hero-centered h1 {
  font-family: var(--font-hero);
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 20px;
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-centered h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-centered .hero-sub {
  font-family: var(--font-body);
  color: var(--body);
  font-size: 1.08rem;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-centered .hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-reg-badge {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
}

@media (max-width: 600px) {
  .hero-centered {
    padding: 52px 20px 60px;
  }
  .hero-centered h1 {
    font-size: 2.4rem;
  }
  .hero-centered .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hero-centered .hero-ctas .btn {
    text-align: center;
    justify-content: center;
  }
}

/* Hero buttons on white background */
.hero-centered .btn-outline-white {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.hero-centered .btn-outline-white:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}
.hero-centered .btn-white {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.hero-centered .btn-white:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  text-decoration: none;
}
