/* Thai Assignment Service — Frontend CSS v1.1 */
:root {
  --tas-primary: #1a3a5c;
  --tas-accent:  #0f6e56;
  --tas-line:    #06c755;
  --tas-stripe:  #635bff;
  --tas-radius:  12px;
  --tas-shadow:  0 2px 20px rgba(0,0,0,.10);
  --tas-gold:    #f59e0b;
}

/* ── Hero ── */
.tas-hero {
  background: linear-gradient(135deg, var(--tas-primary) 0%, #0d5040 100%);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.tas-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.tas-hero__inner { position: relative; max-width: 680px; margin: 0 auto; }
.tas-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.95);
  font-size: 13px;
  padding: 5px 16px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  letter-spacing: .3px;
}
.tas-hero__title {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 700;
  color: #fff;
  line-height: 1.28;
  margin: 0 0 .875rem;
}
.tas-hero__subtitle {
  color: rgba(255,255,255,.82);
  font-size: 16px;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}
.tas-hero__trust {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.tas-hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.85);
  font-size: 13px;
}
.tas-hero__trust-item span { font-size: 15px; }
.tas-hero__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1.75rem;
  color: rgba(255,255,255,.85);
  font-size: 14px;
}

/* ── Stars ── */
.tas-stars { display: inline-flex; gap: 2px; }
.tas-star--full  { color: var(--tas-gold); }
.tas-star--half  { color: var(--tas-gold); }
.tas-star--empty { color: rgba(255,255,255,.3); }

/* ── Buttons ── */
.tas-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.tas-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.2); }
.tas-btn--line {
  background: var(--tas-line);
  color: #fff;
  box-shadow: 0 4px 18px rgba(6,199,85,.4);
}
.tas-btn--line:hover { background: #05b34b; }
.tas-btn--stripe {
  background: var(--tas-stripe);
  color: #fff;
  box-shadow: 0 4px 18px rgba(99,91,255,.35);
}
.tas-btn--primary {
  background: var(--tas-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(26,58,92,.25);
}
.tas-btn--lg { padding: 16px 36px; font-size: 17px; }
.tas-btn--md { padding: 11px 22px; font-size: 15px; }

/* LINE icon */
.tas-line-icon {
  width: 22px; height: 22px;
  background: rgba(255,255,255,.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.125h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386c-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.627-.63h2.386c.349 0 .63.285.63.63 0 .349-.281.63-.63.63H17.61v1.125h1.755zm-3.855 3.016c0 .27-.174.51-.432.596-.064.021-.133.031-.199.031-.211 0-.391-.09-.51-.25l-2.443-3.317v2.94c0 .344-.279.629-.631.629-.346 0-.626-.285-.626-.629V8.108c0-.27.173-.51.43-.595.06-.023.136-.033.194-.033.195 0 .375.104.495.254l2.462 3.33V8.108c0-.345.282-.63.63-.63.345 0 .63.285.63.63v4.771zm-5.741 0c0 .344-.282.629-.631.629-.345 0-.627-.285-.627-.629V8.108c0-.345.282-.63.627-.63.349 0 .631.285.631.63v4.771zm-2.466.629H4.917c-.345 0-.63-.285-.63-.629V8.108c0-.345.285-.63.63-.63.348 0 .63.285.63.63v4.141h1.756c.348 0 .629.283.629.63 0 .344-.281.629-.629.629M24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314'/%3E%3C/svg%3E") center/14px no-repeat;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ── Filter Bar ── */
.tas-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 auto 2rem;
  max-width: 960px;
}
.tas-filter-btn {
  padding: 8px 20px;
  border-radius: 24px;
  border: 1.5px solid #dde3e8;
  background: #fff;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.tas-filter-btn:hover { border-color: var(--tas-accent); color: var(--tas-accent); }
.tas-filter-btn.active {
  background: var(--tas-primary);
  border-color: var(--tas-primary);
  color: #fff;
}

/* ── Services Grid ── */
.tas-services-grid {
  display: grid;
  gap: 20px;
  margin: 0 auto;
  max-width: 980px;
}
.tas-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tas-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tas-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 820px) {
  .tas-cols-3, .tas-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .tas-cols-2, .tas-cols-3, .tas-cols-4 { grid-template-columns: 1fr; }
}

/* ── Service Card ── */
.tas-service-card {
  background: #fff;
  border: 1.5px solid #e4eaef;
  border-radius: 16px;
  padding: 0 0 1.5rem;
  text-align: left;
  transition: border-color .2s, transform .22s, box-shadow .22s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tas-service-card:hover {
  border-color: var(--tas-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.11);
}
.tas-service-card--featured {
  border-color: var(--tas-accent);
  box-shadow: 0 4px 20px rgba(15,110,86,.12);
}

/* Thumbnail */
.tas-service-thumb {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8f4f0 0%, #d0e8e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
}
.tas-service-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tas-service-thumb-placeholder {
  font-size: 48px;
  line-height: 1;
}

/* Category tag on thumb */
.tas-service-cat-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--tas-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* Featured badge */
.tas-service-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--tas-gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  letter-spacing: .3px;
}

/* Card body */
.tas-service-body { padding: 1.1rem 1.25rem 0; flex: 1; display: flex; flex-direction: column; }
.tas-service-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 5px;
  color: #111;
  line-height: 1.35;
}
.tas-service-desc {
  font-size: 13px;
  color: #6b7280;
  margin: 0 0 12px;
  line-height: 1.55;
  flex: 1;
}

/* Price row */
.tas-service-footer {
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.tas-service-price { font-size: 13px; color: #444; }
.tas-service-price strong { font-size: 17px; color: var(--tas-primary); font-weight: 700; }
.tas-price-unit { font-size: 12px; color: #999; }
.tas-service-turnaround {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

/* LINE button in card */
.tas-service-card .tas-btn {
  width: calc(100% - 2.5rem);
  margin: 0 1.25rem;
  justify-content: center;
  font-size: 14px;
  padding: 11px 20px;
}

/* No services */
.tas-no-services {
  text-align: center;
  color: #888;
  padding: 2rem;
  grid-column: 1/-1;
}

/* ── Section title ── */
.tas-section-title {
  text-align: center;
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--tas-primary);
  margin: 0 0 .5rem;
}
.tas-section-subtitle {
  text-align: center;
  color: #6b7280;
  font-size: 15px;
  margin: 0 0 2rem;
}

/* ── Steps ── */
.tas-steps { max-width: 660px; margin: 0 auto; }
.tas-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 18px 0;
  border-bottom: 1px solid #f0f0f0;
}
.tas-step:last-child { border-bottom: none; }
.tas-step__num {
  width: 38px; height: 38px; min-width: 38px;
  background: var(--tas-primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.tas-step__content h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; color: #111; }
.tas-step__content p  { font-size: 14px; color: #6b7280; margin: 0; line-height: 1.55; }

/* ── Reviews ── */
.tas-reviews-grid { display: grid; gap: 16px; max-width: 960px; margin: 0 auto; }
@media (min-width: 640px) { .tas-reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .tas-reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.tas-review-item {
  background: #fff;
  border: 1px solid #e4eaef;
  border-radius: 14px;
  padding: 1.25rem;
}
.tas-review-item__header { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.tas-reviewer-avatar {
  width: 38px; height: 38px;
  background: #e8f4f0; color: var(--tas-accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0;
}
.tas-reviewer-name { font-size: 14px; font-weight: 600; color: #111; margin: 0 0 2px; }
.tas-reviewer-meta { font-size: 12px; color: #999; }
.tas-review-text   { font-size: 14px; color: #444; line-height: 1.6; margin: 0; }

/* ── Trust badges ── */
.tas-trust-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.5rem 1rem;
  background: #f8fafb;
  border-top: 1px solid #e4eaef;
  border-bottom: 1px solid #e4eaef;
  margin: 0 0 2rem;
}
.tas-trust-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: #444;
  font-weight: 500;
  padding: 6px 14px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid #e0e6eb;
}
.tas-trust-badge span { font-size: 16px; }

/* ── LINE Warning (admin notice style, shown if LINE not set) ── */
.tas-line-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  color: #856404;
  margin-bottom: 1.5rem;
  text-align: center;
}
.tas-line-notice a { color: var(--tas-primary); font-weight: 600; }

/* ── Utility ── */
.tas-text-center { text-align: center; }
.tas-mt-1 { margin-top: .5rem; }
.tas-mt-2 { margin-top: 1rem; }
.tas-mt-3 { margin-top: 1.5rem; }
.tas-mb-2 { margin-bottom: 1rem; }

/* ══════════════════════════════════════════════
   SINGLE SERVICE PAGE
═══════════════════════════════════════════════ */

/* Clickable card */
.tas-service-card { cursor: pointer; }
.tas-service-card a.tas-card-link {
  position: absolute; inset: 0; z-index: 1;
  border-radius: 16px;
}
/* Keep LINE button above overlay */
.tas-service-card .tas-btn { position: relative; z-index: 2; }

/* ── Wrap ── */
.tas-single-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* ── Breadcrumb ── */
.tas-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: #888;
  margin-bottom: 1.75rem;
}
.tas-breadcrumb a { color: var(--tas-accent); text-decoration: none; }
.tas-breadcrumb a:hover { text-decoration: underline; }
.tas-breadcrumb span { color: #bbb; }
.tas-breadcrumb span:last-child { color: #555; }

/* ── Layout: main + sidebar ── */
.tas-single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 860px) {
  .tas-single-layout {
    grid-template-columns: 1fr;
  }
  .tas-single-sidebar { order: -1; }
}

/* ── Main ── */
.tas-single-hero-img {
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 16/7;
}
.tas-single-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.tas-single-header { margin-bottom: 1.5rem; }
.tas-single-cat {
  display: inline-block;
  background: #e8f4f0;
  color: var(--tas-accent);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 12px;
  margin-bottom: .75rem;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.tas-single-title {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  color: #111;
  margin: 0 0 .75rem;
  line-height: 1.25;
}
.tas-single-excerpt {
  font-size: 16px;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

/* ── Prose content ── */
.tas-prose { font-size: 15px; color: #333; line-height: 1.75; }
.tas-prose h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--tas-primary);
  margin: 2rem 0 .75rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid #e8f0f5;
}
.tas-prose h3 { font-size: 17px; font-weight: 600; margin: 1.5rem 0 .5rem; }
.tas-prose p  { margin: 0 0 1rem; }
.tas-prose ul, .tas-prose ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.tas-prose li { margin-bottom: .4rem; }
.tas-prose strong { color: #111; }

/* ── FAQ ── */
.tas-faq { margin-top: 2.5rem; }
.tas-faq__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--tas-primary);
  margin: 0 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid #e8f0f5;
}
.tas-faq__item {
  border: 1px solid #e4eaef;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}
.tas-faq__item summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 600;
  color: #111;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}
.tas-faq__item summary::-webkit-details-marker { display: none; }
.tas-faq__item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--tas-accent);
  line-height: 1;
  transition: transform .2s;
}
.tas-faq__item[open] summary::after { transform: rotate(45deg); }
.tas-faq__item p {
  margin: 0;
  padding: 0 18px 14px;
  font-size: 14px;
  color: #555;
  line-height: 1.65;
}

/* ── Sidebar ── */
.tas-single-sidebar { position: sticky; top: 90px; }

.tas-sidebar-card {
  background: #fff;
  border: 1.5px solid #e4eaef;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  position: relative;
  overflow: hidden;
}
.tas-sidebar-badge {
  position: absolute;
  top: 0; right: 0;
  background: var(--tas-gold);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 0 16px 0 12px;
}
.tas-sidebar-icon { font-size: 40px; text-align: center; margin-bottom: .75rem; }
.tas-sidebar-price {
  text-align: center;
  margin-bottom: .5rem;
}
.tas-sidebar-price__label { font-size: 13px; color: #888; display: block; }
.tas-sidebar-price strong {
  font-size: 32px;
  font-weight: 800;
  color: var(--tas-primary);
  display: block;
  line-height: 1.15;
}
.tas-sidebar-price__unit { font-size: 13px; color: #999; }
.tas-sidebar-turnaround {
  text-align: center;
  font-size: 13px;
  color: #777;
  margin-bottom: .5rem;
}
.tas-sidebar-divider {
  border: none;
  border-top: 1px solid #f0f0f0;
  margin: 1rem 0;
}
.tas-sidebar-features {
  list-style: none;
  padding: 0; margin: 0 0 1rem;
}
.tas-sidebar-features li {
  font-size: 13px;
  color: #444;
  padding: 5px 0;
  border-bottom: 1px solid #f8f8f8;
}
.tas-sidebar-note {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin: .6rem 0 0;
}
.tas-sidebar-trust {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tas-sidebar-trust .tas-trust-badge {
  font-size: 12px;
  padding: 7px 12px;
}

/* ── Related ── */
.tas-related {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 2px solid #f0f0f0;
}
.tas-related .tas-section-title { margin-bottom: 1.5rem; }
