/* =========================================================
   Training Page (tr-)
   File: /css/pages/training.css
   ========================================================= */

:root{
  --tr-bg: var(--bg, #f6f8fb);
  --tr-text: var(--text, #0f172a);
  --tr-muted: var(--muted, #64748b);
  --tr-border: var(--border, #e6eaf2);
  --tr-brand: var(--brand, #0b63f6);
  --tr-shadow: var(--shadow, 0 18px 60px rgba(15,23,42,.08));
}

/* Layout */
.tr-section{ padding:70px 0; background:#fff; }
.tr-section--alt{ background:var(--tr-bg); }
.tr-grid2{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:16px;
  align-items:start;
}
@media(max-width:980px){ .tr-grid2{ grid-template-columns:1fr; } }

/* Left card */
.tr-card{
  background:#fff;
  border:1px solid var(--tr-border);
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 35px rgba(15,23,42,.06);
}

.tr-h2{
  margin:0 0 10px 0;
  font-size:28px;
  font-weight:950;
  letter-spacing:-.3px;
  color:var(--tr-text);
}
.tr-h3{
  margin:18px 0 10px;
  font-size:18px;
  font-weight:950;
  color:var(--tr-text);
}
.tr-sub{ color:var(--tr-muted); margin-top:8px; line-height:1.75; max-width:860px; }

.tr-p{ color:var(--tr-muted); line-height:1.85; margin-top:10px; }

.tr-list{ display:grid; gap:10px; margin-top:12px; }
.tr-item{
  display:grid;
  grid-template-columns: 220px 1fr;
  gap:10px;
  padding:12px;
  border:1px solid var(--tr-border);
  border-radius:16px;
  background:#fff;
}
.tr-item strong{ font-weight:950; color:var(--tr-text); }
.tr-item span{ color:var(--tr-muted); line-height:1.7; }
@media(max-width:560px){ .tr-item{ grid-template-columns:1fr; } }

/* Callout */
.tr-callout{
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(11,99,246,.18);
  background:rgba(11,99,246,.06);
  color:var(--tr-text);
  font-weight:900;
  display:grid;
  gap:6px;
}
.tr-callout__sub{
  font-weight:800;
  color:var(--tr-muted);
  line-height:1.7;
}

/* Right side */
.tr-side{ display:grid; gap:12px; }

.tr-photo{
  background:#fff;
  border:1px solid var(--tr-border);
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--tr-shadow);
}
.tr-photo img{
  width:100%;
  height:320px;
  object-fit:cover;
  display:block;
}
.tr-photo--sm img{ height:260px; }

@media(max-width:980px){
  .tr-photo img{ height:260px; }
  .tr-photo--sm img{ height:240px; }
}

/* Box */
.tr-box{
  background:#fff;
  border:1px solid var(--tr-border);
  border-radius:18px;
  padding:16px;
  box-shadow:0 10px 35px rgba(15,23,42,.06);
}

.tr-box__t{ font-weight:950; color:var(--tr-text); }

.tr-pills{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.tr-pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(11,99,246,.18);
  background:rgba(11,99,246,.08);
  color:var(--tr-brand);
  font-weight:950;
  font-size:.85rem;
}

.tr-ul{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--tr-muted);
  line-height:1.8;
}

/* HRDC PDF block */
.tr-doc{ margin-top:10px; display:grid; gap:10px; }
.tr-docBtn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--tr-border);
  background:#fff;
  font-weight:950;
  text-decoration:none;
  color:var(--tr-text);
}
.tr-docBtn:hover{ filter:brightness(.98); }

.tr-docFrame{
  border:1px solid var(--tr-border);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  height:320px;
}
.tr-docFrame iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

/* Courses */
.tr-head{ margin-bottom:14px; }

.tr-courses{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:14px;
}
@media(max-width:980px){ .tr-courses{ grid-template-columns:1fr; } }

.tr-course{
  background:#fff;
  border:1px solid var(--tr-border);
  border-radius:18px;
  padding:18px;
  box-shadow:0 10px 35px rgba(15,23,42,.06);
}

.tr-courseTop{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-bottom:10px;
}
.tr-badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(16,185,129,.10);
  border:1px solid rgba(16,185,129,.18);
  color:#065f46;
  font-weight:950;
  font-size:.85rem;
}
.tr-price{
  font-weight:950;
  color:var(--tr-text);
}

.tr-courseH{
  margin:0 0 10px 0;
  font-size:18px;
  font-weight:950;
  letter-spacing:-.2px;
  color:var(--tr-text);
}
.tr-courseP{
  color:var(--tr-muted);
  line-height:1.85;
  margin:0;
}

.tr-split{
  margin-top:12px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
@media(max-width:560px){ .tr-split{ grid-template-columns:1fr; } }

.tr-mini{
  border:1px solid var(--tr-border);
  border-radius:16px;
  padding:12px;
  background:#fff;
}
.tr-miniT{ font-weight:950; color:var(--tr-text); margin-bottom:8px; }
.tr-miniP{ color:var(--tr-muted); line-height:1.7; }
.tr-miniUl{
  margin:0;
  padding-left:18px;
  color:var(--tr-muted);
  line-height:1.8;
}

.tr-courseBtnRow{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.tr-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:12px;
  font-weight:950;
  text-decoration:none;
  background:var(--tr-brand);
  color:#fff;
  border:1px solid transparent;
}
.tr-btn:hover{ filter:brightness(.98); }

.tr-btn--ghost{
  background:#fff;
  color:var(--tr-text);
  border:1px solid var(--tr-border);
}

/* HRDC Official Badge */
.tr-official{
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(16,185,129,.25);
  background:linear-gradient(135deg, rgba(16,185,129,.08), rgba(16,185,129,.03));
  margin-bottom:14px;
}

.tr-official__badge{
  font-weight:950;
  color:#065f46;
  font-size:14px;
  letter-spacing:.2px;
}

.tr-official__desc{
  margin-top:4px;
  font-size:13px;
  color:var(--tr-muted);
}

/* Enquiry Section */
.tr-enquiry{
  padding:80px 0;
  background:#fff;
}

.tr-enquiryCard{
  background:#fff;
  border:1px solid var(--tr-border);
  border-radius:20px;
  padding:30px;
  box-shadow:0 20px 60px rgba(15,23,42,.08);
}

.tr-enquiryHead h2{
  margin:0;
  font-size:28px;
  font-weight:950;
}

.tr-enquiryHead p{
  margin-top:8px;
  color:var(--tr-muted);
}

.tr-form{
  margin-top:24px;
}

.tr-formGrid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:16px;
}

.tr-field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.tr-field--full{
  grid-column: span 2;
}

.tr-field label{
  font-weight:900;
  font-size:14px;
}

.tr-field input,
.tr-field select,
.tr-field textarea{
  padding:12px;
  border-radius:12px;
  border:1px solid var(--tr-border);
  font-size:14px;
}

.tr-field input:focus,
.tr-field select:focus,
.tr-field textarea:focus{
  outline:none;
  border-color:var(--tr-brand);
}

.tr-submitBtn{
  margin-top:20px;
  padding:14px 22px;
  border-radius:14px;
  font-weight:950;
  background:var(--tr-brand);
  color:#fff;
  border:none;
  cursor:pointer;
}

.tr-submitBtn:hover{
  filter:brightness(.95);
}

@media(max-width:980px){
  .tr-formGrid{
    grid-template-columns:1fr;
  }
  .tr-field--full{
    grid-column:auto;
  }
}