/* ══════════════════════════════════════════════════
   MM-Thai Visa — page.css  (clean rewrite)
   Styles for subpages only
   ══════════════════════════════════════════════════ */

/* Light blue page background */
body { background: #EFF6FC; }

/* ── TWO-COLUMN LAYOUT ── */
.page-cols {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 2px 16px rgba(26,63,111,0.06);
}
.page-cols.wide { grid-template-columns: 1fr 360px; }

/* ── SIDEBAR ── */
.page-sidebar { display: flex; flex-direction: column; gap: 1.2rem; }

.sidebar-box {
  background: var(--white);
  border: 1.5px solid var(--blue-border);
  border-radius: 12px;
  padding: 1.5rem;
  position: static;
}

.sidebar-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--blue-deep);
  margin-bottom: 0.9rem;
}
.sidebar-box ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.sidebar-box li {
  font-size: 0.84rem;
  color: var(--gray-700);
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  line-height: 1.4;
}
.sidebar-box li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.sidebar-box a {
  color: var(--blue-mid);
  text-decoration: none;
  font-size: 0.84rem;
}
.sidebar-box a:hover { text-decoration: underline; }

/* Contact sidebar box — blue gradient */
.sidebar-box.sidebar-contact {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  border: none;
}
.sidebar-box.sidebar-contact h3 { color: #fff; }
.sidebar-box.sidebar-contact p {
  color: rgba(255,255,255,0.85);
  font-size: 0.84rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.sidebar-box.sidebar-contact li { color: rgba(255,255,255,0.85); }
.sidebar-box.sidebar-contact li::before { color: rgba(255,255,255,0.6); }
.sidebar-box.sidebar-contact a { color: rgba(255,255,255,0.9); }
.sidebar-box.sidebar-contact a:hover { color: #fff; }

.sidebar-tel {
  display: block;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent) !important;
  text-decoration: none !important;
  margin: 0.5rem 0 0.3rem;
}
.sidebar-line {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}

/* ── CONTENT SECTIONS ── */
.content-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--blue-pale);
}
.content-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.content-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--blue-deep);
}
.content-section h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--blue-deep);
  margin-bottom: 0.7rem;
  margin-top: 1.3rem;
}
.content-section p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}
.content-section ul {
  list-style: none;
  margin: 0.5rem 0 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.content-section ul li {
  font-size: 0.88rem;
  color: var(--gray-700);
  display: flex;
  gap: 0.6rem;
  line-height: 1.5;
  align-items: flex-start;
}
.content-section ul li::before {
  content: '▸';
  color: var(--blue-mid);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── REQ BOX ── */
.req-box {
  background: #F5F9FF;
  border: 1.5px solid var(--blue-border);
  border-left: 4px solid var(--blue-mid);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.2rem;
}
.req-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--blue-mid);
  margin-bottom: 0.8rem;
}
.req-list { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.req-list li {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.87rem; color: var(--gray-700); line-height: 1.5;
}
.req-list li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; margin-top: 0.1rem; }

/* ── FAQ ── */
.faq-item { border: 1.5px solid var(--blue-border); border-radius: 8px; margin-bottom: 0.7rem; overflow: hidden; }
.faq-q {
  padding: 0.9rem 1.2rem;
  font-weight: 600; font-size: 0.88rem; color: var(--blue-deep);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  background: var(--white); user-select: none;
  transition: background 0.15s;
}
.faq-q:hover { background: var(--blue-pale); }
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--blue-mid); }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 1.2rem 0.9rem; font-size: 0.86rem; color: var(--gray-700); line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── RELATED CARDS ── */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.related-card { background: var(--white); border: 1.5px solid var(--blue-border); border-radius: 10px; padding: 1.2rem; text-decoration: none; display: block; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.related-card:hover { border-color: var(--blue-light); box-shadow: 0 4px 16px rgba(37,99,168,0.1); transform: translateY(-2px); }
.related-icon { font-size: 1.4rem; margin-bottom: 0.5rem; display: block; }
.related-title { font-size: 0.88rem; font-weight: 600; color: var(--blue-deep); margin-bottom: 0.3rem; }
.related-desc { font-size: 0.76rem; color: var(--gray-500); line-height: 1.5; }

/* ── HERO WITH IMAGE ── */
.page-hero-with-img {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: stretch;
  padding: 3.5rem 3rem !important;
}
.hero-img-wrap {
  position: relative;
  z-index: 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  min-height: 320px;
  height: 100%;
  align-self: stretch;
}
.hero-img-wrap .hero-img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: absolute;
  top: 0; left: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .page-cols, .page-cols.wide { grid-template-columns: 1fr 280px; }
}

@media (max-width: 900px) {
  .page-cols, .page-cols.wide {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }
  .page-sidebar { order: -1; }
  .sidebar-box { position: static !important; }
  .page-hero-with-img { grid-template-columns: 1fr; }
  .hero-img-wrap { display: none; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .page-cols { padding: 1.2rem; border-radius: 10px; }
  .related-grid { grid-template-columns: 1fr; }
  .faq-q { font-size: 0.85rem; }
}

/* ── SIDEBAR TWO COLUMNS ── */
.sidebar-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.sidebar-mini {
  padding: 1.2rem;
}
.sidebar-mini h3 {
  font-size: 0.88rem;
  margin-bottom: 0.7rem;
}
.sidebar-mini li {
  font-size: 0.8rem;
}
.sidebar-mini li::before { content: '✓'; }
.sidebar-mini a { font-size: 0.8rem; }

@media (max-width: 900px) {
  .sidebar-two-col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .sidebar-two-col { grid-template-columns: 1fr; }
}

/* ── PAGE IMAGE GRIDS ── */
.page-img-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}
.page-img-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.page-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--blue-pale);
  position: relative;
}
.page-img-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Slight scale to eliminate white border padding on stock photos */
  transform: scale(1.04);
}
.page-img-single {
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
  max-height: 320px;
}
.page-img-single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 640px) {
  .page-img-grid { grid-template-columns: 1fr; }
}

/* Hero image — contain (no crop) variant for poster/infographic images */
.page-hero-contain-img .hero-img-wrap {
  background: transparent;
  box-shadow: none;
  border-radius: 12px;
  overflow: visible;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-hero-contain-img .hero-img {
  object-fit: contain !important;
  object-position: center center !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  max-height: 480px;
}
.page-hero-contain-img {
  grid-template-columns: 1fr 420px;
  align-items: center;
}
