/* ================================================================
   ETM Frontend CSS v6.0
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --blue:    #26418B;
  --bludk:   #1a2f6a;
  --blult:   #3a5ab8;
  --gold:    #f59e0b;
  --white:   #ffffff;
  --bg-page: #26418B;
  --bg-card: #ffffff;
  --text:    #1e293b;
  --muted:   #64748b;
  --border:  #e2e8f0;
  --radius:  0px;
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ══ OUTER WRAPPER ══ */
.etm-event-card {
  font-family: var(--font-sans);
  background: var(--bg-page);
  width: 100%; max-width: 100%;
  margin: 0; padding: 0; display: block;
}

/* ══ HEADER ══ */
.etm-header {
  background: linear-gradient(135deg, #1a2f6a 0%, #26418B 60%, #2d50a8 100%);
  padding: 20px 30px;
  position: relative; overflow: hidden; text-align: center;
}
.etm-header::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background:
    radial-gradient(circle at 80% 30%, rgba(245,158,11,.15) 0%, transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(255,255,255,.06) 0%, transparent 45%);
}
.etm-header-inner { position:relative; z-index:1; }

/* ══ TITLE ══ */
.etm-title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 700; color: #fff;
  margin-top: 170px !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  letter-spacing: -0.02em; text-align: center;
}

/* ══ BODY LAYOUT — NO alignment, just side by side ══ */
.etm-body {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20%;
  padding: 20px 20px 50px;
  background: var(--bg-page);
  margin: 0 !important;
}

/* ══ LEFT COLUMN — 700px fixed ══ */
.etm-main-col {
  width: 700px;
  min-width: 700px;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ══ RIGHT COLUMN — ticket box, no alignment ══ */
.etm-side-col {
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  flex-shrink: 0;
}

/* ══ SECTION BOX ══ */
.etm-section {
  background: var(--bg-card);
  border-radius: 0px;
  border: 15px solid #26418B;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,.18);
  width: 100%;
}

.etm-slabel {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 16px;
  font-size: 10px; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); background: #f4f7ff;
  border-bottom: 1px solid var(--border);
}
.etm-slabel svg { width:12px!important; height:12px!important; min-width:12px!important; fill:var(--blue); flex-shrink:0; }

/* ══ IMAGE BOX ══ */
.etm-img-section { border-radius: var(--radius); overflow:hidden; }
.etm-img-wrap { width:100%; line-height:0; font-size:0; display:flex; justify-content:center; align-items:center; background:var(--blue); }
.etm-event-img { display:block; width:100%; height:auto; object-fit:cover; object-position:center top; border:0; margin:0; padding:0; }

/* ══ SUMMARY ══ */
.etm-summary-body { padding: 14px 18px; background: linear-gradient(135deg, rgba(38,65,139,.03), #fff); }
.etm-summary-body p { margin:0; font-size:14px; line-height:1.72; color:var(--muted); font-style:italic; }

/* ══ POST CONTENT ══ */
.etm-post-content { padding: 14px 18px; font-size: 14px; line-height: 1.75; color: var(--text); }
.etm-post-content p { margin:0 0 10px; }
.etm-post-content p:last-child { margin:0; }

/* ══ TIMING ══ */
.etm-timing-grid { display:grid; grid-template-columns:1fr 1fr; }
.etm-timing-item { display:flex; align-items:center; gap:12px; padding:15px 18px; border-right:1px solid var(--border); }
.etm-timing-item:last-child { border-right:none; }
.etm-t-icon { width:36px; height:36px; flex-shrink:0; background:linear-gradient(135deg,var(--blue),var(--blult)); border-radius:9px; display:flex; align-items:center; justify-content:center; }
.etm-t-icon svg { width:16px; height:16px; fill:#fff; }
.etm-t-label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); margin-bottom:2px; }
.etm-t-val   { font-size:13px; font-weight:600; color:var(--text); }

/* ══ LOCATION ══ */
.etm-loc-row { display:flex; align-items:center; gap:8px; padding:12px 18px; border-bottom:1px solid var(--border); font-size:13px; font-weight:600; color:var(--text); }
.etm-loc-row svg { width:14px!important; height:14px!important; min-width:14px!important; fill:var(--blue); flex-shrink:0; }
.etm-map-wrap { width:100%; overflow:hidden; border-top:1px solid var(--border); }
.etm-map-wrap iframe { display:block; width:100%; height:220px; border:0; }

/* ══ TICKET CARD ══ */
.etm-ticket-card {
  background: var(--bg-card);
  border-radius: 14px; overflow:hidden;
  box-shadow: 0 6px 28px rgba(0,0,0,.28);
  border: 15px solid #26418B;
  position: sticky; top: 20px;
  width: 100%;
  margin-left: auto;
}
.etm-tc-head { background:linear-gradient(135deg,var(--blue),var(--bludk)); padding:22px 18px; text-align:center; }
.etm-tc-price { font-family:var(--font-serif); font-size:44px; font-weight:700; color:#fff; line-height:1; margin-bottom:4px; }
.etm-tc-per { font-size:10px; text-transform:uppercase; letter-spacing:.12em; color:rgba(255,255,255,.6); }

.etm-tc-meta { padding:10px 16px; background:#f8faff; border-bottom:1px solid var(--border); }
.etm-tc-row { display:flex; align-items:center; gap:7px; font-size:12px; color:var(--muted); padding:3px 0; }
.etm-tc-row svg { width:12px!important; height:12px!important; min-width:12px!important; fill:var(--blue); flex-shrink:0; }

.etm-tc-form-wrap { padding:14px 16px; }
.etm-fg  { margin-bottom:11px; }
.etm-fl  { display:block; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }
.etm-fi  { width:100%; padding:9px 11px; border:1.5px solid var(--border); border-radius:7px; font-size:13px; color:var(--text); background:#fafbff; transition:border-color .2s; font-family:var(--font-sans); }
.etm-fi:focus { outline:none; border-color:var(--blue); box-shadow:0 0 0 3px rgba(38,65,139,.1); background:#fff; }

.etm-qty-wrap { display:flex; align-items:center; border:1.5px solid var(--border); border-radius:7px; overflow:hidden; background:#fafbff; }
.etm-qbtn { width:38px; height:38px; border:none; background:transparent; cursor:pointer; font-size:18px; color:var(--blue); display:flex; align-items:center; justify-content:center; transition:background .15s; }
.etm-qbtn:hover { background:rgba(38,65,139,.08); }
.etm-qinput { flex:1; border:none; text-align:center; font-size:14px; font-weight:700; color:var(--text); background:transparent; padding:0; -moz-appearance:textfield; }
.etm-qinput::-webkit-outer-spin-button, .etm-qinput::-webkit-inner-spin-button { -webkit-appearance:none; }

.etm-total-row { display:flex; justify-content:space-between; align-items:center; padding:9px 0; border-top:1.5px dashed var(--border); margin:5px 0 11px; font-size:12px; color:var(--muted); font-weight:600; }
.etm-total-val { font-size:20px; font-weight:700; color:var(--blue); font-family:var(--font-serif); }

.etm-buy-btn { width:100%; padding:13px 14px; background:linear-gradient(135deg,var(--blue),var(--bludk)); color:#fff; border:none; border-radius:9px; font-size:13px; font-weight:700; cursor:pointer; transition:all .22s; display:flex; align-items:center; justify-content:center; gap:7px; box-shadow:0 3px 12px rgba(38,65,139,.35); font-family:var(--font-sans); }
.etm-buy-btn:hover { background:linear-gradient(135deg,var(--blult),var(--blue)); transform:translateY(-2px); box-shadow:0 6px 18px rgba(38,65,139,.42); }
.etm-buy-btn:active { transform:translateY(0); }
.etm-buy-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }

.etm-msg { margin-top:10px; padding:10px 13px; border-radius:7px; font-size:12px; line-height:1.5; font-weight:500; }
.etm-msg.success { background:#ecfdf5; color:#065f46; border:1px solid #6ee7b7; }
.etm-msg.error   { background:#fef2f2; color:#991b1b; border:1px solid #fca5a5; }

.etm-spinner { display:inline-block; width:14px; height:14px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:etm-spin .65s linear infinite; }
@keyframes etm-spin { to { transform:rotate(360deg); } }
.etm-error { padding:12px 16px; background:#fef2f2; color:#991b1b; border-radius:8px; font-size:13px; }

/* ══ TABLET ≤ 1100px ══ */
@media (max-width: 1100px) {
  .etm-main-col { width: 500px; min-width: 500px; max-width: 500px; }
}

/* ══ TABLET ≤ 860px ══ */
@media (max-width: 860px) {
  .etm-body { flex-direction: column; padding: 14px 14px 36px; }
  .etm-main-col { width: 100%; min-width: unset; max-width: 100%; }
  .etm-side-col  { width: 100%; }
  .etm-ticket-card { position: static; }
  .etm-title { margin-top: 60px !important; }
}

/* ══ MOBILE ≤ 480px ══ */
@media (max-width: 480px) {
  .etm-title { margin-top: 30px !important; font-size: 20px; }
  .etm-timing-grid { grid-template-columns: 1fr; }
  .etm-timing-item { border-right:none; border-bottom:1px solid var(--border); }
  .etm-timing-item:last-child { border-bottom:none; }
  .etm-map-wrap iframe { height: 160px; }
  .etm-tc-price { font-size: 34px; }
}
