/* ========================================
   หน้าเมนูหลัก /page/index.php
   ======================================== */

/* Video wrapper */
.videoWrapper {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 25px;
  height: 0;
}
.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Background */
body {
  background: linear-gradient(135deg, #f5e6e6 0%, #780e0e 50%, #fff0f0 100%);
}

/* Main container */
.main-container {
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  margin: 20px auto;
  overflow: hidden;
}

/* Banner */
.banner-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 20px;
  max-height: 300px;
}
.banner-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: center top;
}
.banner-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.8), transparent);
}

/* App title */
.app-title {
  background: linear-gradient(45deg, rgb(132, 14, 8), #e8b5b5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  text-align: center;
  margin: 30px 0;
  font-size: 2.5rem;
}

/* Menu cards */
.menu-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}
.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* Menu buttons */
.menu-btn {
  border: none;
  border-radius: 12px;
  padding: 15px 25px;
  font-weight: 600;
  text-decoration: none;
  display: block;
  width: 100%;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}
.menu-btn:last-child {
  margin-bottom: 0;
}
.menu-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
.menu-btn:hover::before {
  left: 100%;
}
.menu-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Button color variants */
.btn-primary-custom {
  background: linear-gradient(45deg, #a8d0f0, #87ceeb);
  color: #2c5282;
}
.btn-success-custom {
  background: linear-gradient(45deg, #a8d5ba, #90c695);
  color: #2d5016;
}
.btn-danger-custom {
  background: linear-gradient(45deg, #f5a8a8, #f08080);
  color: #742a2a;
}
.btn-warning-custom {
  background: linear-gradient(45deg, #f5e6a3, #f0d070);
  color: #744210;
}
.btn-info-custom {
  background: linear-gradient(45deg, #a8e6e1, #7dd3c0);
  color: #234e52;
}
.btn-amber-custom {
  background: linear-gradient(45deg, #fcd34d, #f59e0b);
  color: #78350f;
}

/* สนธิแฟลชการ์ด — ปุ่มเด่น (ของใหม่) โทนสีเดียวกับตัวแอป + ป้าย "ใหม่" สีทอง */
.btn-sonti-flash {
  background: linear-gradient(135deg, #16967e, #0c544a);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  box-shadow: 0 6px 20px rgba(12, 84, 74, .32);
}
.btn-sonti-flash:hover {
  color: #fff;
}
.new-badge {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  background: linear-gradient(135deg, #ffd24d, #f0a500);
  color: #5a3d00;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 3px 11px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
  text-shadow: none;
  animation: newPulse 1.8s ease-in-out infinite;
}
@keyframes newPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .new-badge { animation: none; }
}
/* จอแคบ: ป้ายลอยมุมขวาจะทับชื่อเมนูที่ตัดขึ้นบรรทัดสอง → วางไว้บรรทัดของตัวเองเหนือชื่อ */
@media (max-width: 575.98px) {
  .new-badge { position: static; display: table; margin: 0 0 6px; }
}

/* Section title */
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #6b4423;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid #d4a5a5;
  position: relative;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #e8b5b5;
}

/* Credit section */
.credit-section {
  background: linear-gradient(45deg, #faf7f7, #fff0f0);
  padding: 30px;
  border-radius: 15px;
  margin-top: 30px;
  text-align: center;
  border: 2px solid rgba(212, 165, 165, 0.3);
}

/* Icon */
.icon-large {
  font-size: 1.2em;
  margin-right: 8px;
}

/* ════ User Bar ════ */
.user-bar {
  background: linear-gradient(135deg, #8b0000, #b22222, #dc143c);
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(220, 20, 60, 0.3);
}

.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 6px 16px;
  cursor: pointer;
  transition: all 0.2s;
  color: white;
}
.user-menu-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}
.user-menu-btn img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.user-menu-btn span {
  font-weight: 600;
}
.user-menu-btn .bi-chevron-down {
  font-size: 0.75rem;
  transition: transform 0.2s;
}
.user-menu-btn.open .bi-chevron-down {
  transform: rotate(180deg);
}

/* User dropdown */
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  overflow: hidden;
  z-index: 1000;
}
.user-dropdown.show {
  display: block;
}
.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: #4a5568;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  border-bottom: 1px solid #e2e8f0;
}
.user-dropdown a:last-child {
  border-bottom: none;
}
.user-dropdown a:hover {
  background: #fef2f2;
  color: #dc2626;
}
.user-dropdown a i {
  color: #dc2626;
}

/* Login button */
.login-btn {
  color: white;
  text-decoration: none;
  padding: 6px 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition: all 0.2s;
  font-weight: 500;
}
.login-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  color: white;
}

/* ════ App Download Cards ════ */
.app-download-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.app-download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}
.app-icon {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: linear-gradient(45deg, #f8f9fa, #e9ecef);
  object-fit: cover;
  flex-shrink: 0;
}
.app-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  margin-right: 15px;
}
.app-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-width: 90px;
}
.app-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: #6b4423;
  margin-bottom: 5px;
}
.app-description {
  color: #8b6f47;
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Download buttons */
.download-btn {
  width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.download-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
.download-btn:hover::before {
  left: 100%;
}
.download-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.download-btn i {
  margin-right: 3px;
}

/* Inline button styles (for unique colors) */
.btn-story {
  background: linear-gradient(45deg, #f5eed8, #e8ddc0);
  color: #6b5518;
}
.btn-exam {
  background: linear-gradient(45deg, #c4b5fd, #a78bfa);
  color: #4c1d95;
}
.btn-youtube {
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
}
.btn-grammar-radio {
  background: linear-gradient(45deg, #a8e6d8, #7dd3c0);
  color: #234e52;
}

/* ════ ธรรมบทอรรถกถา — การ์ดเรื่องเล่าแยกจากหมวดเกม ════ */
.dhamma-story-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(255, 211, 123, 0.38);
  border-radius: 18px;
  color: #fffaf0;
  text-decoration: none;
  background: #061d25;
  box-shadow: 0 14px 34px rgba(17, 39, 44, 0.28);
  isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.dhamma-story-hero:hover,
.dhamma-story-hero:focus-visible {
  color: #fffaf0;
  transform: translateY(-4px);
  border-color: rgba(255, 214, 128, 0.8);
  box-shadow: 0 20px 44px rgba(17, 39, 44, 0.38);
}
.dhamma-story-hero:focus-visible {
  outline: 3px solid #ffd580;
  outline-offset: 3px;
}
.dhamma-story-art {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  transform: scale(1.01);
  transition: transform .55s ease;
}
.dhamma-story-hero:hover .dhamma-story-art {
  transform: scale(1.045);
}
.dhamma-story-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(3, 20, 29, .98) 0%,
      rgba(4, 29, 38, .94) 35%,
      rgba(5, 35, 42, .72) 50%,
      rgba(4, 23, 30, .12) 78%),
    linear-gradient(0deg, rgba(4, 20, 27, .38), transparent 60%);
}
.dhamma-story-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(56%, 680px);
  padding: 32px 36px;
}
.dhamma-story-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 9px;
  padding: 4px 12px;
  border: 1px solid rgba(255, 213, 128, .42);
  border-radius: 999px;
  color: #ffdf9d;
  background: rgba(255, 190, 70, .12);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.dhamma-story-title {
  display: block;
  color: #fff;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.08;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .44);
}
.dhamma-story-title small {
  display: block;
  margin-top: 5px;
  color: #ffd991;
  font-size: 1.05rem;
  font-weight: 700;
}
.dhamma-story-lead {
  display: block;
  max-width: 48ch;
  margin-top: 11px;
  color: rgba(255, 250, 240, .9);
  font-size: 1rem;
  line-height: 1.65;
}
.dhamma-story-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
.dhamma-story-chips span {
  padding: 4px 10px;
  border: 1px solid rgba(255, 224, 161, .25);
  border-radius: 9px;
  color: #fff6e3;
  background: rgba(255, 255, 255, .1);
  font-size: .78rem;
  font-weight: 600;
}
.dhamma-story-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 18px;
  border-radius: 12px;
  color: #3f2708;
  background: linear-gradient(135deg, #ffe2a4, #f7b83f);
  box-shadow: 0 8px 20px rgba(247, 184, 63, .25);
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dhamma-story-hero:hover .dhamma-story-cta {
  transform: translateX(4px);
  box-shadow: 0 10px 24px rgba(247, 184, 63, .36);
}

/* Credit text */
.credit-text {
  font-size: 1.1rem;
  color: #6b4423;
}
.credit-subtitle {
  color: #d4a5a5;
}
.credit-heart {
  color: #f5a8a8;
}
.credit-title {
  color: #d4a5a5;
  margin-bottom: 15px;
}

/* ════ Responsive ════ */
@media (max-width: 768px) {
  .app-title {
    font-size: 2rem;
  }
  .menu-btn {
    font-size: 1rem;
  }
  .app-download-card {
    padding: 15px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  .app-info {
    text-align: center;
    margin-right: 0;
    margin-bottom: 15px;
  }
  .app-buttons {
    align-items: center;
  }
  .app-icon {
    width: 60px;
    height: 60px;
  }
  .dhamma-story-hero {
    min-height: 540px;
    align-items: flex-end;
  }
  .dhamma-story-art {
    object-position: 72% center;
  }
  .dhamma-story-hero::before {
    background:
      linear-gradient(0deg,
        rgba(3, 19, 27, .99) 0%,
        rgba(4, 28, 37, .94) 38%,
        rgba(4, 25, 33, .38) 70%,
        rgba(4, 20, 27, .08) 100%);
  }
  .dhamma-story-content {
    width: 100%;
    padding: 245px 20px 24px;
  }
  .dhamma-story-title {
    font-size: 1.8rem;
  }
  .dhamma-story-lead {
    font-size: .94rem;
  }
  .dhamma-story-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dhamma-story-hero,
  .dhamma-story-art,
  .dhamma-story-cta {
    transition: none;
  }
  .dhamma-story-hero:hover {
    transform: none;
  }
  .dhamma-story-hero:hover .dhamma-story-art {
    transform: scale(1.01);
  }
  .dhamma-story-hero:hover .dhamma-story-cta {
    transform: none;
  }
}

/* ========================================
   ป้าย Hero "บาลีธันเดอร์" — ลิงก์ออกไปเว็บพี่น้อง thunder.purivaro.com
   วางเหนือหมวด Application ในหน้าเมนูหลัก

   ทำไมเป็น CSS ไม่ใช่รูปที่เจนมา: ป้ายนี้เป็นแนวนอนเต็มความกว้าง
   ถ้าใช้รูปเดียวจะเบลอบนจอ retina และตัวหนังสือไทยจะแตกตอนย่อบนมือถือ
   วิธีนี้ใช้ตราจริง (PNG โปร่งใส 21 KB) + ตัวหนังสือเป็น text จริง
   → คมทุกจอ อ่านออกเสมอ แก้คำได้ และ SEO/screen reader อ่านได้

   สีพื้นเป็นกรมท่าเข้ม (ไม่ใช่ทองล้วนแบบไฟล์แบนเนอร์เดิม) เพื่อให้ตราทอง
   เด่นตัดกับพื้น และไม่กลืนกับพื้นหลังแดงเลือดหมูของหน้านี้
   ======================================== */
.pt-hero {
  display: flex;
  align-items: center;
  gap: 26px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  padding: 26px 32px;
  border-radius: 20px;
  text-decoration: none;
  color: #fff8e1;
  /* พื้น: โทนน้ำเงิน — กรมท่าเกือบดำ → น้ำเงินหลวง → ฟ้าคราม
     ทองบนน้ำเงินเข้มตัดกันแรงกว่าโทนม่วง/น้ำตาลที่ลองก่อนหน้า
     วงแสงซ้ายเป็นทอง (รับกับตรา) วงขวาเป็นฟ้าสว่าง (ให้ความรู้สึกสายฟ้า)
     + ริ้วเฉียงบาง ๆ โดยไม่รบกวนการอ่าน */
  background:
    repeating-linear-gradient(74deg, rgba(186, 230, 253, 0.05) 0 2px, transparent 2px 26px),
    radial-gradient(circle at 11% 48%, rgba(255, 205, 92, 0.16) 0%, transparent 32%),
    radial-gradient(circle at 88% 58%, rgba(56, 189, 248, 0.26) 0%, transparent 48%),
    linear-gradient(112deg, #09183a 0%, #0e2a5e 42%, #123f78 72%, #14538c 100%);
  box-shadow: 0 14px 34px rgba(6, 15, 36, 0.4), inset 0 1px 0 rgba(255, 214, 102, 0.22);
  border: 1px solid rgba(255, 199, 61, 0.32);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pt-hero:hover, .pt-hero:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 214, 102, 0.72);
  box-shadow: 0 20px 46px rgba(6, 15, 36, 0.5), 0 0 0 1px rgba(255, 214, 102, 0.3),
              inset 0 1px 0 rgba(255, 226, 148, 0.34);
  color: #fff8e1;
}
.pt-hero:focus-visible { outline: 3px solid #ffd166; outline-offset: 3px; }

/* แถบแสงกวาดผ่านตอน hover — บอกว่า "กดได้" โดยไม่ต้องมีข้อความบอก */
.pt-hero::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 236, 179, 0.16), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
  pointer-events: none;
}
.pt-hero:hover::after { left: 115%; }

/* ตรา (พัดยศ + สายฟ้า) — วงแสงข้างหลังทำด้วย ::before ของกล่องครอบ
   ไม่ใส่ที่ <img> เพราะ pseudo-element ใช้กับ img ไม่ได้ */
.pt-hero-badge {
  flex: 0 0 auto;
  position: relative;
  display: grid;
  place-items: center;
}
.pt-hero-badge::before {
  content: '';
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.34) 0%, transparent 68%);
}
.pt-hero-emblem {
  position: relative;
  width: 124px;
  height: auto;
  filter: drop-shadow(0 6px 18px rgba(255, 183, 3, 0.55));
}

/* กลางป้าย: จำกัดความกว้างบรรทัดไว้ ไม่ให้ข้อความยืดจนอ่านยากบนจอกว้าง
   แต่ยังกินพื้นที่ (flex:1) เพื่อดันปุ่มไปสุดขวา */
.pt-hero-body { flex: 1 1 auto; min-width: 0; max-width: 62ch; }

.pt-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.14);
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 999px;
  padding: 3px 11px;
  margin-bottom: 8px;
}

.pt-hero-title {
  margin: 0;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 12px rgba(255, 183, 3, 0.38);
}
.pt-hero-title small {
  display: block;
  margin-top: 2px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .22em;
  color: rgba(255, 226, 148, 0.82);
  text-shadow: none;
}

.pt-hero-lead {
  margin: 8px 0 0;
  font-size: 1.02rem;
  color: rgba(255, 248, 225, 0.9);
}

.pt-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}
.pt-hero-chips span {
  font-size: .84rem;
  font-weight: 600;
  color: #fff8e1;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 226, 148, 0.26);
  border-radius: 9px;
  padding: 3px 10px;
}

/* ฝั่งขวา: ปุ่ม + ชื่อเว็บ — เดิมมีแต่ปุ่มลอยเดี่ยว ทำให้ช่องขวาโหวง */
.pt-hero-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  /* ดันไปชิดขอบขวา — ถ้าไม่ใส่ ที่ว่างจะไปกองท้ายป้าย ทำให้ปุ่มลอยกลาง ๆ
     (เพราะ .pt-hero-body ถูกจำกัด max-width จึงโตกินที่ว่างไม่ได้) */
  margin-left: auto;
}
.pt-hero-domain {
  font-size: .78rem;
  letter-spacing: .04em;
  text-align: center;
  color: rgba(255, 226, 148, 0.7);
}

/* ปุ่มเรียก — ไม่ใช่ <button> เพราะทั้งป้ายเป็นลิงก์อยู่แล้ว ซ้อน <a> ใน <a> ไม่ได้ */
.pt-hero-cta {
  flex: 0 0 auto;
  justify-content: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #3a2410;
  background: linear-gradient(135deg, #ffd166 0%, #ffb703 100%);
  border-radius: 14px;
  padding: 13px 24px;
  box-shadow: 0 8px 20px rgba(255, 183, 3, 0.34);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pt-hero:hover .pt-hero-cta {
  transform: scale(1.05);
  box-shadow: 0 12px 26px rgba(255, 183, 3, 0.46);
}
.pt-hero-cta i { font-size: 1.15rem; }

@media (max-width: 768px) {
  .pt-hero {
    flex-direction: column;
    text-align: center;
    gap: 16px;
    padding: 22px 18px;
  }
  .pt-hero-emblem { width: 86px; }
  .pt-hero-body { max-width: none; }
  .pt-hero-title { font-size: 1.75rem; }
  .pt-hero-lead { font-size: .95rem; }
  .pt-hero-chips { justify-content: center; }
  .pt-hero-side { width: 100%; margin-left: 0; }
  .pt-hero-cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pt-hero, .pt-hero-cta, .pt-hero::after { transition: none; }
  .pt-hero:hover { transform: none; }
  .pt-hero:hover .pt-hero-cta { transform: none; }
  .pt-hero:hover::after { left: -60%; }
}

/* ════ การ์ดประชาสัมพันธ์แอป PuriNotes (โซน Application) ════
   โทนกระดาษใบลาน/ทอง ให้ต่างจากการ์ดแอปสีขาวข้างล่าง จะได้อ่านออกทันทีว่าเป็น "แอปใหม่"
   ทั้งใบเป็นลิงก์เดียวไป App Store */
.pn-banner {
  --pn-ink: #4a3b28;
  --pn-gold: #b4892f;
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(115deg, #fdf6e6 0%, #faeed6 52%, #f3e2bf 100%);
  border: 1px solid rgba(180, 137, 47, 0.28);
  box-shadow: 0 8px 25px rgba(74, 59, 40, 0.10);
  color: var(--pn-ink);
}
.pn-banner__art {
  position: relative;
  overflow: hidden;
  background: #f6ead2;
}
.pn-banner__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
.pn-banner__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 20px 22px;
}
.pn-banner__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(180, 137, 47, 0.16);
  color: #8a6516;
  font-size: 0.72rem;
  font-weight: 800;
}
.pn-banner__title {
  margin: 0;
  color: #3d2f1e;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.25;
}
.pn-banner__desc {
  margin: 0;
  max-width: 34rem;
  color: #6b5a41;
  font-size: 0.9rem;
  line-height: 1.65;
}
.pn-banner__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pn-banner__chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(180, 137, 47, 0.3);
  color: #7a6238;
  font-size: 0.72rem;
  font-weight: 700;
}
.pn-banner__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.pn-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 8px;
  border-radius: 12px;
  background: #3d2f1e;
  color: #fdf6e6;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.pn-banner__cta:hover,
.pn-banner__cta:focus-visible {
  background: #2b2014;
  color: #fdf6e6;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(61, 47, 30, 0.28);
}
.pn-banner__cta:focus-visible {
  outline: 3px solid var(--pn-gold);
  outline-offset: 2px;
}
.pn-banner__cta-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}
.pn-banner__cta-text small {
  font-size: 0.66rem;
  font-weight: 600;
  opacity: 0.8;
}
.pn-banner__cta-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(253, 246, 230, 0.16);
  font-size: 1rem;
}

/* จอกว้าง: รูป iPad ซ้าย ข้อความขวา */
@media (min-width: 768px) {
  .pn-banner {
    grid-template-columns: minmax(13rem, 21rem) 1fr;
    align-items: stretch;
  }
  /* รูป iPad เป็นแนวตั้ง ปล่อยตามสัดส่วนจริงการ์ดจะสูงเกิน — ตรึงเป็นจัตุรัสแล้วให้ object-fit ครอบ */
  .pn-banner__art { aspect-ratio: 1 / 1; }
  .pn-banner__art::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 3rem;
    background: linear-gradient(90deg, rgba(253, 246, 230, 0) 0%, rgba(253, 246, 230, 0.92) 100%);
  }
  .pn-banner__copy {
    justify-content: center;
    padding: 22px 26px 24px 18px;
  }
  .pn-banner__title { font-size: 1.7rem; }
  .pn-banner__desc { font-size: 0.95rem; max-width: 42rem; }
}

/* จอแคบ: โปสเตอร์เต็มใบ (ข้อความอยู่ในรูปแล้ว) เหลือแค่ปุ่มกดโหลด
   หัวเรื่อง/คำโปรย/ชิป ยังอยู่ใน DOM เพื่อ screen reader และ SEO */
@media (max-width: 767px) {
  .pn-banner {
    background: #0d2845;
    border-color: rgba(212, 175, 90, 0.42);
  }
  .pn-banner__art {
    aspect-ratio: 3 / 4;
    background: #0d2845;
  }
  .pn-banner__art img { object-position: 50% 50%; }
  .pn-banner__badge,
  .pn-banner__title,
  .pn-banner__desc,
  .pn-banner__chips { display: none; }
  .pn-banner__copy {
    align-items: stretch;
    padding: 12px 14px 15px;
  }
  /* จอแคบ: สองปุ่มวางคู่กันถ้าที่พอ ไม่พอก็ซ้อนลงเต็มความกว้าง — ชื่อร้านต้องอยู่บรรทัดเดียวเสมอ */
  .pn-banner__ctas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 8px;
    margin-top: 0;
  }
  .pn-banner__cta {
    justify-content: center;
    gap: 7px;
    padding: 7px 10px 7px 7px;
    font-size: 0.82rem;
    background: linear-gradient(180deg, #e7cd86 0%, #c9a349 100%);
    color: #2a1f08;
  }
  .pn-banner__cta-icon {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
  }
  .pn-banner__cta:hover,
  .pn-banner__cta:focus-visible {
    background: linear-gradient(180deg, #f0d99b 0%, #d4ae53 100%);
    color: #2a1f08;
  }
  .pn-banner__cta-icon { background: rgba(42, 31, 8, 0.14); }
}

@media (prefers-reduced-motion: reduce) {
  .pn-banner__cta { transition: none; }
  .pn-banner__cta:hover,
  .pn-banner__cta:focus-visible { transform: none; }
}
