/* MiCoSTSkills TVET E-Learning Portal */
:root {
  --brand-red: #cf202f;
  --brand-blue: #1358a8;
  --brand-cyan: #00b8b0;
  --ink: #26323a;
  --muted: #65737f;
  --line: #d9e2e8;
  --soft: #f4f8fb;
  --dark: #334149;
}

* {
  box-sizing: border-box;
}

.elearning-body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: #e9f0f3;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

.el-cover {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(10, 51, 72, 0.58), rgba(9, 56, 50, 0.72)),
    url("../../resources/banner.png") center / cover no-repeat;
}

.el-hero {
  min-height: 74vh;
  display: grid;
  place-items: center;
  padding: 72px 20px 48px;
  text-align: center;
  color: white;
}

.el-logo-mark {
  max-width: 330px;
  width: min(70vw, 330px);
  margin: 0 auto 28px;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.3));
  animation: floatLogo 4.8s ease-in-out infinite;
}

.el-kicker {
  margin: 0 auto 20px;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: fadeLift 0.7s ease both;
}

.el-title {
  margin: 0;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  animation: fadeLift 0.8s 0.08s ease both;
}

.el-subtitle {
  max-width: 820px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.55;
  animation: fadeLift 0.8s 0.16s ease both;
}

.el-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  min-height: 74px;
  margin-top: 44px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: #3d4248;
  font-size: 25px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
  animation: fadeLift 0.8s 0.24s ease both, softPulse 2.8s 1.3s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.el-enter:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

.portal-choice {
  min-height: 62vh;
  padding: 84px 20px 96px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.11) 25%, transparent 25%) 0 0 / 180px 180px,
    linear-gradient(225deg, rgba(255,255,255,0.11) 25%, transparent 25%) 0 0 / 180px 180px,
    linear-gradient(135deg, #04a5c9, #43bfd4);
  text-align: center;
}

.portal-choice h2 {
  margin: 0 0 64px;
  color: white;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.choice-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.choice-card {
  display: grid;
  min-width: min(100%, 380px);
  min-height: 118px;
  place-items: center;
  border-radius: 56px;
  background: white;
  color: #29b783;
  text-decoration: none;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  box-shadow: 0 20px 40px rgba(0, 91, 116, 0.14);
  animation: fadeLift 0.65s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.choice-card:nth-child(2) {
  animation-delay: 0.12s;
}

.choice-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 55px rgba(0, 91, 116, 0.22);
  color: var(--brand-blue);
}

.portal-footer {
  padding: 48px 20px 56px;
  background:
    linear-gradient(rgba(17, 57, 47, 0.86), rgba(17, 57, 47, 0.86)),
    url("../../resources/banner.png") center / cover no-repeat;
  text-align: center;
  color: white;
}

.telegram-info {
  padding: 76px 20px 86px;
  background: #f6fbfc;
}

.telegram-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
}

.telegram-inner .el-kicker {
  color: #006657;
  border-color: #9be2de;
  background: #eafffd;
}

.telegram-inner h2 {
  margin: 18px 0 12px;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
}

.telegram-inner > p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.telegram-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.telegram-card {
  border: 1px solid var(--line);
  background: white;
  padding: 28px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  animation: cardIn 0.58s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.telegram-card:nth-child(2) {
  animation-delay: 0.12s;
}

.telegram-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
}

.qr-frame {
  display: grid;
  place-items: center;
  width: min(100%, 360px);
  aspect-ratio: 1 / 1.2;
  margin: 0 auto;
  border-radius: 8px;
  background: #050505;
  padding: 18px;
}

.qr-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.qr-placeholder {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  border: 2px dashed rgba(255,255,255,0.35);
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.telegram-card h3 {
  margin: 22px 0 8px;
  color: var(--brand-blue);
  font-size: 24px;
  font-weight: 900;
}

.telegram-card span {
  color: var(--muted);
  font-weight: 700;
}

.social-strip {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 999px;
  padding: 20px 48px;
}

.course-shell {
  max-width: 1708px;
  margin: 0 auto;
  background: white;
  box-shadow: 0 0 0 1px rgba(26, 43, 55, 0.08);
}

.course-topline {
  height: 6px;
  background: var(--brand-cyan);
}

.course-header {
  min-height: 170px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 620px);
  gap: 24px;
  align-items: center;
  padding: 28px 54px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.92), rgba(255,255,255,0.74)),
    url("../../resources/header_putih-01.png") center / cover no-repeat;
}

.course-brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.course-brand img {
  width: 180px;
  max-width: 44vw;
  animation: fadeLift 0.7s ease both;
}

.course-brand-title {
  border-left: 2px solid #1f2937;
  padding-left: 22px;
}

.course-brand-title strong {
  display: block;
  color: var(--brand-red);
  font-size: 38px;
  line-height: 1;
}

.course-brand-title span {
  display: block;
  margin-top: 6px;
  color: var(--brand-blue);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 58px;
  gap: 8px;
  align-items: start;
  animation: fadeLift 0.7s 0.08s ease both;
}

.login-field {
  min-height: 50px;
  border: 0;
  background: rgba(255,255,255,0.92);
  padding: 0 16px;
  color: #374151;
  font-size: 18px;
  outline: 1px solid rgba(148, 163, 184, 0.25);
}

.login-btn {
  min-height: 50px;
  border: 0;
  background: var(--dark);
  color: white;
  font-size: 28px;
  font-weight: 900;
  cursor: pointer;
}

.forgotten {
  grid-column: 1 / -1;
  justify-self: end;
  color: #009b8f;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.user-chip {
  display: none;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-left: 5px solid var(--brand-cyan);
  background: rgba(255,255,255,0.9);
  padding: 14px 16px;
}

.user-chip strong {
  display: block;
  font-size: 16px;
}

.user-chip span {
  color: var(--muted);
  font-size: 13px;
}

.course-nav {
  display: flex;
  flex-wrap: wrap;
  min-height: 78px;
  background: var(--dark);
  border-bottom: 3px solid #cbd5dc;
  padding-left: 0;
}

.course-nav a,
.course-nav button {
  display: grid;
  place-items: center;
  min-width: 136px;
  padding: 0 24px;
  border: 0;
  background: transparent;
  color: white;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.course-nav .active {
  background: #006657;
}

.course-hero {
  min-height: 470px;
  display: grid;
  align-items: center;
  padding: 58px 64px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.72), rgba(255,255,255,0.24)),
    var(--hero-image) center / cover no-repeat;
  color: white;
}

.course-hero-content {
  max-width: 840px;
  animation: fadeLift 0.8s ease both;
}

.course-hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  font-weight: 900;
}

.course-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: rgba(255,255,255,0.88);
  font-size: 20px;
  line-height: 1.65;
}

.content-band {
  padding: 58px 50px;
}

.section-title {
  margin: 0;
  color: #50565c;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
  font-weight: 800;
}

.section-rule {
  width: 112px;
  height: 5px;
  margin: 28px 0;
  background: var(--brand-cyan);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
  gap: 54px;
  align-items: center;
}

.intro-copy {
  color: #5b6066;
  font-size: 20px;
  line-height: 1.8;
}

.video-panel {
  min-height: 300px;
  display: grid;
  place-items: center;
  background: #111827;
  color: white;
  text-align: center;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.video-panel strong {
  display: block;
  font-size: 28px;
}

.resource-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin: 28px 0;
}

.resource-toolbar input {
  min-height: 52px;
  border: 1px solid var(--line);
  padding: 0 16px;
  font-size: 16px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-btn {
  min-height: 52px;
  border: 1px solid var(--line);
  background: white;
  padding: 0 18px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--brand-cyan);
  background: var(--brand-cyan);
  color: white;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.resource-card,
.module-item,
.exam-card,
.leader-card,
.certificate-card {
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.resource-card {
  padding: 24px;
  animation: cardIn 0.58s ease both;
}

.resource-card:nth-child(2) { animation-delay: 0.05s; }
.resource-card:nth-child(3) { animation-delay: 0.1s; }
.resource-card:nth-child(4) { animation-delay: 0.15s; }
.resource-card:nth-child(5) { animation-delay: 0.2s; }
.resource-card:nth-child(6) { animation-delay: 0.25s; }

.resource-card[hidden] {
  display: none;
}

.resource-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #e5fbf8;
  color: #006657;
  font-size: 26px;
  font-weight: 900;
}

.resource-card h3 {
  margin: 20px 0 10px;
  color: var(--ink);
  font-size: 22px;
}

.resource-card p {
  color: var(--muted);
  line-height: 1.65;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.11);
}

.lecturer-materials {
  margin-top: 34px;
}

.lecturer-materials-header {
  margin-bottom: 18px;
}

.lecturer-materials-header h3 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 28px;
}

.lecturer-material-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lecturer-material-card {
  border-color: #bfe9f0;
  background: #fbffff;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  background: #edf4f7;
  color: #42515b;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.open-btn,
.primary-btn,
.secondary-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.open-btn {
  margin-top: 20px;
  background: var(--dark);
  color: white;
}

.primary-btn {
  background: var(--brand-cyan);
  color: white;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.module-list {
  display: grid;
  gap: 14px;
}

.module-item {
  display: grid;
  grid-template-columns: 72px 1fr minmax(140px, 220px);
  gap: 20px;
  align-items: center;
  padding: 18px;
  animation: fadeLift 0.55s ease both;
}

.module-number {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  background: #e5fbf8;
  color: #006657;
  font-size: 20px;
  font-weight: 900;
}

.module-item h3 {
  margin: 0;
  font-size: 21px;
}

.module-item p {
  margin: 6px 0 0;
  color: var(--muted);
}

.progress-text {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.progress-bar {
  height: 10px;
  overflow: hidden;
  background: #e5edf2;
}

.progress-fill {
  width: var(--progress);
  height: 100%;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-blue), var(--brand-cyan));
  transform-origin: left;
  animation: progressGrow 1.1s ease both;
}

.exam-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: start;
}

.exam-layout-single {
  grid-template-columns: minmax(0, 1fr);
}

.exam-card,
.leader-card,
.certificate-card {
  padding: 24px;
}

.exam-card h3,
.leader-card h3,
.certificate-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
}

.exam-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.exam-meta div {
  background: var(--soft);
  padding: 14px;
}

.question-box {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.question-box strong {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
}

.option-grid {
  display: grid;
  gap: 9px;
}

.option-grid label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  padding: 12px;
  cursor: pointer;
}

.exam-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  background: white;
  padding-top: 18px;
}

.certificate-card {
  display: none;
  border: 0;
  background: transparent;
  text-align: initial;
  animation: certificateReveal 0.55s ease both;
}

.certificate-card-visible {
  display: block;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.module-detail-grid {
  display: grid;
  gap: 22px;
}

.module-detail-card {
  border: 1px solid var(--line);
  background: white;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.module-detail-card h3 {
  margin: 18px 0 10px;
  color: var(--ink);
  font-size: 28px;
}

.module-detail-card h4 {
  margin: 24px 0 10px;
  color: var(--brand-blue);
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.module-detail-card ul,
.module-detail-card ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.75;
}

.module-objective {
  max-width: 900px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.7;
}

.video-link-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.video-link-grid a {
  border: 1px solid var(--line);
  background: #f7fafc;
  color: var(--ink);
  padding: 14px;
  font-weight: 900;
  text-decoration: none;
}

.video-link-grid a:hover {
  border-color: var(--brand-cyan);
  color: #006657;
}

.mini-quiz li {
  margin-bottom: 8px;
}

.table-scroll {
  overflow-x: auto;
}

.ranking-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

.ranking-table th,
.ranking-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

.ranking-table th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 900;
}

.cert-download-btn {
  margin-top: 22px;
}

.achievement-certificate {
  position: relative;
  overflow: hidden;
  border: 8px solid #092346;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  color: #0b2447;
  padding: 34px 38px 70px 138px;
  min-height: 650px;
}

.achievement-certificate::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid #c48a2c;
  pointer-events: none;
}

.achievement-certificate::after {
  content: "MS";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(9, 35, 70, 0.04);
  font-family: Georgia, serif;
  font-size: clamp(140px, 28vw, 310px);
  font-weight: 900;
  pointer-events: none;
}

.cert-ribbon {
  position: absolute;
  top: 0;
  left: 44px;
  width: 84px;
  height: 290px;
  background: linear-gradient(180deg, #061b39, #102f5c);
  border-left: 4px solid #c48a2c;
  border-right: 4px solid #c48a2c;
}

.cert-ribbon::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -36px;
  border-left: 28px solid transparent;
  border-right: 28px solid transparent;
  border-top: 36px solid #102f5c;
}

.cert-medal {
  position: absolute;
  top: 142px;
  left: 18px;
  z-index: 2;
  display: grid;
  width: 145px;
  height: 145px;
  place-items: center;
  border: 7px solid #d7a23a;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff7c4, #e8b341 56%, #a86c16);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.cert-medal span {
  display: block;
  color: #d8232a;
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
}

.cert-medal small {
  color: #0b2447;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.cert-top,
.cert-main,
.cert-info-grid,
.cert-sign-row,
.cert-bottom {
  position: relative;
  z-index: 1;
}

.cert-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.cert-top img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.cert-top strong {
  display: block;
  color: #e11d2e;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 0.9;
}

.cert-top span {
  color: #0b2447;
  font-size: clamp(13px, 2vw, 19px);
  font-weight: 900;
  text-transform: uppercase;
}

.cert-watermark {
  display: none;
}

.cert-main {
  text-align: center;
}

.cert-main h3 {
  margin: 0;
  color: #0b2447;
  font-family: Georgia, serif;
  font-size: clamp(36px, 6vw, 70px);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cert-subtitle {
  margin: 6px 0 22px;
  color: #b9832b;
  font-family: Georgia, serif;
  font-size: clamp(16px, 2.4vw, 28px);
  letter-spacing: 0.22em;
  text-align: center;
  text-transform: uppercase;
}

.cert-presented {
  margin: 0;
  text-align: center;
  font-size: 18px;
}

.certificate-card .cert-name {
  margin: 14px auto;
  max-width: 760px;
  border-bottom: 2px solid #c48a2c;
  padding-bottom: 10px;
  color: #0b2447;
  font-family: Georgia, serif;
  font-size: clamp(34px, 5.5vw, 58px);
  font-style: italic;
  font-weight: 500;
  text-align: center;
}

.cert-body-text {
  max-width: 720px;
  margin: 0 auto 26px;
  color: #23344d;
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}

.cert-info-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.58fr;
  gap: 24px;
  align-items: start;
  margin-top: 22px;
}

.cert-course span {
  display: inline-flex;
  border-radius: 999px;
  background: #092346;
  color: #fff;
  padding: 9px 20px;
  font-weight: 900;
}

.cert-course strong {
  display: block;
  margin: 12px 0;
  color: #0b2447;
  font-family: Georgia, serif;
  font-size: 22px;
}

.cert-course p,
.cert-verify p {
  color: #334155;
  line-height: 1.55;
}

.cert-meta-list {
  border-left: 2px solid #c48a2c;
  padding-left: 20px;
}

.cert-meta-list div {
  display: grid;
  grid-template-columns: minmax(125px, 0.8fr) 1fr;
  gap: 12px;
  border-bottom: 1px solid #d8b46a;
  padding: 9px 0;
  font-size: 14px;
}

.cert-meta-list span {
  font-weight: 900;
}

.cert-verify {
  border-left: 2px solid #c48a2c;
  padding-left: 18px;
  text-align: center;
}

.cert-verify strong {
  display: block;
  font-size: 18px;
}

.cert-verify span {
  display: inline-block;
  margin: 10px 0;
  border-radius: 999px;
  background: #092346;
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 900;
}

.cert-qr-placeholder {
  display: grid;
  width: 104px;
  height: 104px;
  margin: 8px auto;
  place-items: center;
  border: 7px solid #111827;
  background: repeating-linear-gradient(45deg, #111827 0 7px, #fff 7px 14px);
  color: #e11d2e;
  font-size: 24px;
  font-weight: 900;
}

.cert-sign-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  max-width: 760px;
  margin: 42px auto 0;
  text-align: center;
}

.cert-sign-row span {
  display: block;
  height: 38px;
  border-bottom: 2px solid #c48a2c;
}

.cert-sign-row p {
  margin: 10px 0 0;
  color: #0b2447;
  font-size: 13px;
  font-weight: 900;
}

.cert-bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 55px;
  background: #061b39;
  color: #fff;
  padding: 17px 24px;
  text-align: center;
  font-weight: 800;
}

.certificate-pending {
  border: 1px solid #fecdd3;
  background: #fff1f2;
  padding: 28px;
  text-align: center;
}

.certificate-card .cert-score {
  font-size: 46px;
  font-weight: 900;
  color: var(--brand-red);
}

.status-note {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.course-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 5px solid var(--brand-cyan);
  background: var(--dark);
  color: #cad3d8;
  padding: 54px 64px;
}

.course-footer h3 {
  margin: 0 0 20px;
  color: white;
  font-size: 23px;
}

@keyframes fadeLift {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes softPulse {
  0%, 100% {
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow: 0 22px 55px rgba(0, 184, 176, 0.36);
  }
}

@keyframes progressGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes certificateReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1020px) {
  .course-header,
  .intro-grid,
  .exam-layout,
  .cert-info-grid,
  .course-footer {
    grid-template-columns: 1fr;
  }

  .resource-toolbar,
  .login-bar {
    grid-template-columns: 1fr;
  }

  .resource-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lecturer-material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-link-grid {
    grid-template-columns: 1fr;
  }

  .achievement-certificate {
    padding: 280px 28px 90px;
  }

  .cert-ribbon {
    left: 50%;
    transform: translateX(-50%);
  }

  .cert-medal {
    left: 50%;
    transform: translateX(-50%);
  }

  .cert-top {
    justify-content: center;
    text-align: center;
  }

  .cert-meta-list,
  .cert-verify {
    border-left: 0;
    padding-left: 0;
  }

  .cert-sign-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cert-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .course-nav a,
  .course-nav button {
    min-height: 62px;
  }
}

@media (max-width: 680px) {
  .course-header,
  .content-band,
  .course-hero,
  .course-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .course-brand {
    align-items: flex-start;
    flex-direction: column;
  }

  .resource-grid,
  .lecturer-material-grid,
  .telegram-grid,
  .module-item,
  .exam-meta {
    grid-template-columns: 1fr;
  }

  .choice-card {
    border-radius: 34px;
    min-height: 96px;
  }
}
