/* Course module styles (public pages + admin). Plain CSS, no framework. */
:root {
  --bg: #fbf8f3;
  --card: #ffffff;
  --ink: #2b2118;
  --muted: #6d6158;
  --line: #e7ddd0;
  --brand: #a3401a;
  --brand-ink: #ffffff;
  --brand-soft: #fbeee6;
  --ok: #1f7a3a;
  --ok-soft: #e6f4ea;
  --warn: #8a5a00;
  --warn-soft: #fff4dc;
  --bad: #a11d1d;
  --bad-soft: #fde8e8;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* GHCP change start: 2026-10-19 12:45:20 +05:30 */
.learn-app {
  background: var(--bg); color: var(--ink);
  font: 16px/1.6 "Noto Sans", "Noto Sans Tamil", "Noto Sans Devanagari", "Noto Sans Telugu",
        "Noto Sans Malayalam", "Noto Sans Kannada", system-ui, sans-serif;
}
.learn-app a { color: var(--brand); }
.learn-app img { max-width: 100%; height: auto; }
.learn-app h1, .learn-app h2, .learn-app h3 { line-height: 1.3; margin: 0 0 .6em; letter-spacing: 0; }
.learn-app h1 { font-size: 1.6rem; }
.learn-app h2 { font-size: 1.25rem; }
.learn-app h3 { font-size: 1.05rem; }
.learn-wrap { max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
main.learn-wrap { padding-top: 24px; padding-bottom: 40px; min-height: 60vh; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.right { text-align: right; }

/* Learn navigation below the shared home header. */
.learn-course-bar { background: #eef3f4; border-top: 1px solid #d8e0e2; border-bottom: 1px solid #d8e0e2; }
.learn-course-row { display: flex; align-items: center; justify-content: flex-end; gap: 22px; min-height: 46px; }
.learn-course-row a { color: #022b36; font: 600 14px/1.4 "Open Sans", sans-serif; text-decoration: none; }
.learn-course-row a:hover { color: #18829c; }

#header-top .ewf_contact_info ul li.site-lang-switch { position: relative; }
.site-lang-menu { display: inline-block; position: relative; }
.site-lang-menu > summary { cursor: pointer; color: #fff; font-weight: bold; list-style: none; padding: 0 4px; white-space: nowrap; }
.site-lang-menu > summary::-webkit-details-marker { display: none; }
.site-lang-menu > summary::after { content: " \25BE"; }
#header-top .ewf_contact_info .site-lang-menu > summary i { position: static; float: none; display: inline; margin: 0 4px 0 0; color: #18829c; font-size: 13px; line-height: inherit; }
.site-lang-menu > ul { position: absolute; left: 0; top: 100%; z-index: 1200; margin: 4px 0 0; padding: 4px 0; min-width: 150px; list-style: none; background: #fff; border: 1px solid #ccd5d8; box-shadow: 0 3px 8px rgba(0,0,0,.25); }
#header-top .ewf_contact_info .site-lang-menu > ul li { display: block; margin: 0; }
#header-top .ewf_contact_info .site-lang-menu > ul li a { display: block; padding: 7px 14px; text-align: left; color: #022b36; font-size: 14px; line-height: 1.5; white-space: nowrap; }
#header-top .ewf_contact_info .site-lang-menu > ul li a:hover { background: #eef3f4; }
#header-top .ewf_contact_info .site-lang-menu > ul li a.current { font-weight: bold; color: #c00; }
/* GHCP change end: 2026-10-19 12:45:20 +05:30 */

/* building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.course-card { display: flex; flex-direction: column; }
.course-card img { border-radius: 8px; margin-bottom: 12px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.course-card .grow { flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.tag { font-size: .8rem; background: var(--brand-soft); color: var(--brand); border-radius: 99px; padding: 2px 10px; }
.price { font-size: 1.3rem; font-weight: 700; }
.btn {
  display: inline-block; background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 8px;
  padding: 10px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
/* GHCP change start: 2026-10-19 12:45:20 +05:30 */
.learn-app .btn { color: var(--brand-ink); }
/* GHCP change end: 2026-10-19 12:45:20 +05:30 */
.btn:hover { filter: brightness(1.08); }
.learn-app .btn-light { background: var(--brand-soft); color: var(--brand); }
.btn-ok { background: var(--ok); }
.btn-bad { background: var(--bad); }
.btn-sm { padding: 5px 10px; font-size: .875rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.alert { border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: #b8e0c4; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: #f0d9a6; }
.alert-bad { background: var(--bad-soft); color: var(--bad); border-color: #f3c0c0; }
.status { font-size: .8rem; font-weight: 700; border-radius: 6px; padding: 2px 8px; white-space: nowrap; }
.st-pending_payment, .st-submitted, .st-draft { background: var(--warn-soft); color: var(--warn); }
.st-pending_verification { background: #e8f0fe; color: #1a4fa0; }
.st-confirmed, .st-verified, .st-completed, .st-valid, .st-active, .st-open, .st-running { background: var(--ok-soft); color: var(--ok); }
.st-rejected, .st-cancelled, .st-revoked, .st-refunded, .st-closed, .st-archived { background: var(--bad-soft); color: var(--bad); }

/* forms */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 4px; }
.cols { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=password],
input[type=url], input[type=file], select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { margin-top: 5px; width: auto; }
.field-error { color: var(--bad); font-size: .875rem; margin-top: 4px; }

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; background: var(--card); }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; color: var(--muted); font-weight: 600; background: #faf6f0; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* payment */
.pay-box { display: grid; gap: 20px; grid-template-columns: minmax(0, 260px) 1fr; align-items: start; }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; }
.qr svg, .qr img { width: 100%; max-width: 240px; height: auto; }
.amount-big { font-size: 1.8rem; font-weight: 700; color: var(--brand); }
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps li { counter-increment: s; padding-left: 34px; position: relative; margin-bottom: 8px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: .8rem; display: grid; place-items: center;
}
.terms-box { background: #faf6f0; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: .9rem; max-height: 220px; overflow: auto; white-space: pre-line; }
.syllabus { white-space: pre-line; }

/* admin */
.admin-bar { background: #2b2118; color: #fff; }
.admin-bar a { color: #fff; text-decoration: none; font-weight: 600; }
.admin-bar .lh-row { gap: 14px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 14px; flex: 1; }
.admin-nav a.on { text-decoration: underline; text-underline-offset: 6px; }
.stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-bottom: 20px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { display: block; font-size: 1.6rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 16px; }
.toolbar .form-row { margin: 0; }
.inline { display: inline; }
.lang-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.lang-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 10px; cursor: pointer; font: inherit; }
.lang-tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.lang-pane { display: none; } .lang-pane.on { display: block; }

@media (max-width: 640px) {
  /* GHCP change start: 2026-10-19 12:45:20 +05:30 */
  .learn-app h1 { font-size: 1.35rem; }
  .pay-box { grid-template-columns: 1fr; }
  .learn-course-row { justify-content: flex-start; gap: 14px; overflow-x: auto; min-height: 44px; }
  .learn-course-row a { white-space: nowrap; }
  dl.kv { grid-template-columns: 1fr; gap: 0; }
  dl.kv dd { margin-bottom: 8px; }
  /* GHCP change end: 2026-10-19 12:45:20 +05:30 */
}

@media (max-width: 767px) {
  /* GHCP change start: 2026-10-19 12:45:20 +05:30 */
  #header-top { display: block; padding: 4px 0; }
  #header-top .ewf_contact_info { margin: 0; }
  #header-top .ewf_contact_info ul { margin: 0; text-align: right; }
  #header-top .ewf_contact_info ul li, #header-top-widget-area-2 { display: none; }
  #header-top .ewf_contact_info ul li.site-lang-switch { display: inline-block; margin: 0; }
  .site-lang-menu > summary { padding: 6px 4px; }
  .site-lang-menu > ul { left: auto; right: 0; }
  /* GHCP change end: 2026-10-19 12:45:20 +05:30 */
}
