﻿:root {
      --brand: #a80532;
      --ink: #192039;
      --muted: #5d6578;
      --line: #e5e9f1;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background: #fff;
      font-family: Inter, Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
    }

    .page-container {
      width: calc(100% - 48px);
      margin-inline: auto;
    }

    .nav-link {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 74px;
      color: #1e253d;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
    }

    .nav-link.active,
    .nav-link:hover { color: var(--brand); }

    .nav-link.active::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: 0;
      left: 0;
      height: 3px;
      border-radius: 3px 3px 0 0;
      background: var(--brand);
    }

    .nav-item {
      position: relative;
      display: flex;
      align-items: center;
    }

    .nav-caret {
      transition: transform .18s ease;
    }

    .nav-item:hover .nav-caret,
    .nav-item:focus-within .nav-caret {
      transform: rotate(180deg);
    }

    .nav-dropdown {
      position: absolute;
      top: calc(100% - 6px);
      left: 0;
      z-index: 30;
      min-width: 246px;
      border: 1px solid #e3e8f1;
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 14px 30px rgba(28, 38, 63, .12);
      padding: 7px 0;
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .nav-item:hover .nav-dropdown,
    .nav-item:focus-within .nav-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    .nav-dropdown a {
      display: block;
      padding: 10px 14px;
      color: #242b43;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
    }

    .nav-dropdown a:hover {
      background: #f9edf1;
      color: var(--brand);
    }

    .hero {
      position: relative;
      min-height: 372px;
      overflow: hidden;
      background: #fbfaf8;
    }

    .hero::after {
      content: "";
      position: absolute;
      z-index: 3;
      right: 0;
      bottom: -1px;
      left: 0;
      height: 80px;
      background: #fff;
      clip-path: polygon(0 44%, 24% 72%, 50% 75%, 76% 71%, 100% 42%, 100% 100%, 0 100%);
    }

    .hero-photo {
      position: absolute;
      z-index: 1;
      inset: 0;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      pointer-events: none;
    }

    .hero-photo::before {
      content: "";
      position: absolute;
      z-index: 2;
      inset: 0;
      display: none;
    }

    .hero-photo img,
    .media-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .hero-photo img {
      width: 58%;
      height: 100%;
      object-fit: cover;
      object-position: 74% 30%;
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 10%, rgba(0,0,0,.55) 24%, #000 38%, #000 100%);
      mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 10%, rgba(0,0,0,.55) 24%, #000 38%, #000 100%);
    }

    .btn-primary,
    .btn-outline {
      display: inline-flex;
      height: 44px;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      padding-inline: 24px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      transition: .18s ease;
    }

    .btn-primary {
      border: 1px solid var(--brand);
      background: var(--brand);
      color: #fff;
    }

    .btn-primary:hover { background: #7f0325; border-color: #7f0325; color: #fff; }

    .btn-outline {
      border: 1px solid var(--brand);
      background: rgba(255,255,255,.84);
      color: var(--brand);
    }

    .btn-outline:hover { background: #f8edf1; }

    .field {
      width: 100%;
      height: 43px;
      border: 1px solid #dce2ec;
      border-radius: 5px;
      background: #fff;
      padding: 0 14px;
      color: #2b324a;
      font-size: 14px;
      font-weight: 600;
      outline: none;
    }

    .field:focus {
      border-color: var(--brand);
    }

    .section-title {
      color: var(--ink);
      font-size: 23px;
      line-height: 1.18;
      font-weight: 600;
      letter-spacing: -.02em;
    }

    .link-red {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: var(--brand);
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
    }

    .link-red:hover { color: var(--brandDark); }

    .course-card {
      position: relative;
      min-height: 252px;
      overflow: hidden;
      border: 1px solid #dfe5ef;
      border-radius: 7px;
      background: #fff;
    }

    .course-slider {
      display: flex;
      gap: 24px;
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
    }

    .course-slider::-webkit-scrollbar { display: none; }

    .course-slider .course-card {
      flex: 0 0 100%;
      scroll-snap-align: start;
    }

    .course-image {
      position: absolute;
      inset: 0;
      overflow: hidden;
      background: #f4f1ef;
    }

    .course-image::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 42%, rgba(255,255,255,.88) 76%, #fff 100%),
        linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 34%, rgba(255,255,255,.44) 66%, rgba(255,255,255,0) 100%);
    }

    .course-card > .p-4 {
      position: relative;
      z-index: 2;
      display: flex;
      min-height: 252px;
      flex-direction: column;
      padding: 18px 16px 16px;
    }

    .course-card h3 {
      max-width: 74%;
      margin-top: 34px;
      min-height: 46px;
    }

    .course-card .meta-row:first-child {
      margin-top: 2px;
    }

    .tag {
      position: absolute;
      z-index: 3;
      top: 13px;
      left: 13px;
      border-radius: 3px;
      padding: 6px 8px;
      color: #fff;
      font-size: 10px;
      font-weight: 600;
      line-height: 1;
      text-transform: uppercase;
    }

    .tag.bg-brand {
      background: var(--brand);
    }

    .course-card .mt-5 {
      margin-top: auto;
      padding-top: 16px;
    }

    .course-seats {
      font-size: 12px;
      line-height: 1.2;
    }

    .meta-row {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #4d5669;
      font-size: 13px;
      line-height: 1.28;
    }

    .meta-row i {
      width: 13px;
      color: #697184;
      font-size: 13px;
    }

    .category-card {
      display: flex;
      min-height: 144px;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 14px;
      border: 1px solid #e6eaf1;
      border-radius: 8px;
      color: #232a42;
      background: #fff;
      box-shadow: 0 1px 2px rgba(26, 33, 52, .03);
      text-align: center;
      text-decoration: none;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.25;
      transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .category-card:hover {
      border-color: rgba(168, 5, 50, .34);
      box-shadow: 0 10px 22px rgba(26, 33, 52, .08);
      transform: translateY(-2px);
    }

    .icon-outline {
      display: grid;
      width: 48px;
      height: 48px;
      place-items: center;
      color: var(--brand);
      font-size: 38px;
      line-height: 1;
    }

    .step-card {
      position: relative;
      display: grid;
      grid-template-columns: 74px 1fr;
      gap: 18px;
      align-items: center;
    }

    .step-bubble {
      position: relative;
      display: grid;
      width: 70px;
      height: 70px;
      place-items: center;
      border-radius: 999px;
      background: #f8edf1;
      color: var(--brand);
      font-size: 28px;
    }

    .step-number {
      position: absolute;
      top: -6px;
      left: -7px;
      display: grid;
      width: 24px;
      height: 24px;
      place-items: center;
      border-radius: 999px;
      background: var(--brand);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
    }

    .audience-grid {
      display: grid;
      gap: 20px;
    }

    .audience-card {
      display: flex;
      flex-direction: column;
      min-height: 100%;
      border: 1px solid #e0e6ef;
      border-radius: 8px;
      background: #fff;
      padding: 22px;
      box-shadow: 0 8px 20px rgba(26, 33, 52, .05);
    }

    .audience-icon {
      display: grid;
      width: 54px;
      height: 54px;
      place-items: center;
      border-radius: 999px;
      background: #f8edf1;
      color: var(--brand);
      font-size: 23px;
    }

    .audience-card h3 {
      margin-top: 16px;
      color: var(--ink);
      font-size: 18px;
      line-height: 1.3;
      font-weight: 700;
    }

    .audience-card p,
    .audience-card li {
      color: #272b34;
      font-size: 14px;
      line-height: 1.5;
    }

    .audience-card p {
      margin-top: 8px;
      font-weight: 400;
    }

    .audience-card ul {
      margin-top: 12px;
      padding-left: 18px;
    }

    .audience-card li + li {
      margin-top: 7px;
    }

    .benefit-icon {
      display: grid;
      width: 56px;
      height: 56px;
      flex: 0 0 auto;
      place-items: center;
      border-radius: 999px;
      background: #f4f5f8;
      color: #737b8f;
      font-size: 22px;
    }

    .lecturer-card {
      display: grid;
      grid-template-columns: 148px 1fr;
      min-height: 112px;
      overflow: hidden;
      border: 1px solid #e0e6ef;
      border-radius: 8px;
      background: #fff;
    }

    .lecturer-card .media-img {
      object-position: center top;
    }

    .lecturer-card > .p-4 {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 16px 18px;
    }

    .lecturer-card h3 {
      color: var(--ink);
      font-size: 18px;
      line-height: 1.25;
    }

    .contact-cta {
      display: grid;
      grid-template-columns: 1.25fr .9fr auto;
      gap: 40px;
      align-items: center;
      border-radius: 8px;
      background: #fbedf0;
      padding: 24px 44px 24px 28px;
    }

    .contact-cta-icon {
      color: var(--brand);
      font-size: 50px;
      line-height: 1;
    }

    .contact-cta-methods {
      display: grid;
      gap: 13px;
      color: var(--ink);
      font-size: 18px;
      font-weight: 700;
    }

    .contact-cta-methods a {
      display: inline-flex;
      align-items: center;
      gap: 18px;
      color: inherit;
      text-decoration: none;
    }

    .contact-cta-methods i {
      width: 34px;
      color: var(--brand);
      font-size: 23px;
      text-align: center;
    }

    .faq-row {
      transition: color .18s ease;
    }

    .faq-row:hover {
      color: var(--brand);
    }

    .faq-row i {
      transition: transform .18s ease;
    }

    .faq-row[aria-expanded="true"] {
      color: var(--brand);
    }

    .faq-row[aria-expanded="true"] i {
      transform: rotate(180deg);
    }

    .faq-panel {
      padding: 0 0 14px;
      color: #272b34;
      font-size: 14px;
      line-height: 1.55;
    }

    .faq-panel[hidden] {
      display: none;
    }

    .faq-item + .faq-item { border-top: 1px solid #e3e8f0; }

    .footer-link {
      display: inline-flex;
      transition: color .18s ease;
    }

    .footer-link:hover {
      color: var(--brand);
    }

    .social-link {
      display: inline-grid;
      width: 34px;
      height: 34px;
      place-items: center;
      border-radius: 999px;
      color: #5e6678;
      font-size: 22px;
      transition: color .18s ease, background-color .18s ease, transform .18s ease;
    }

    .social-link:hover {
      background: #f9edf1;
      color: var(--brand);
      transform: translateY(-2px);
    }

    @media (max-width: 1180px) {
      .nav-link { display: none; }
    }

    @media (max-width: 900px) {
      .contact-cta { grid-template-columns: 1fr; }
      .hero { min-height: auto; }
      .hero-photo { opacity: .22; }
      .hero-photo::before { background: rgba(255,255,255,.78); }
      .hero::after { height: 52px; }
    }

    @media (max-width: 640px) {
      .page-container { width: calc(100% - 32px); }
      .section-title { font-size: 20px; }
      .step-card { grid-template-columns: 58px 1fr; }
      .step-bubble { width: 56px; height: 56px; font-size: 22px; }
      .audience-card { padding: 18px; }
      .lecturer-card { grid-template-columns: 112px 1fr; }
    }

    @media (min-width: 640px) {
      .course-slider .course-card { flex-basis: calc((100% - 24px) / 2); }
    }

    @media (min-width: 1024px) {
      .course-slider .course-card { flex-basis: calc((100% - 48px) / 3); }
    }

:root {
      --brand: #a80532;
      --ink: #192039;
      --muted: #5d6578;
      --line: #e5e9f1;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background: #fff;
      font-family: Inter, Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
    }

    .page-container {
      width: calc(100% - 48px);
      margin-inline: auto;
    }

    .nav-link {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 74px;
      color: #1e253d;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
    }

    .nav-link.active,
    .nav-link:hover { color: var(--brand); }

    .nav-link.active::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: 0;
      left: 0;
      height: 3px;
      border-radius: 3px 3px 0 0;
      background: var(--brand);
    }

    .nav-item {
      position: relative;
      display: flex;
      align-items: center;
    }

    .nav-caret {
      transition: transform .18s ease;
    }

    .nav-item:hover .nav-caret,
    .nav-item:focus-within .nav-caret {
      transform: rotate(180deg);
    }

    .nav-dropdown {
      position: absolute;
      top: calc(100% - 6px);
      left: 0;
      z-index: 30;
      min-width: 246px;
      border: 1px solid #e3e8f1;
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 14px 30px rgba(28, 38, 63, .12);
      padding: 7px 0;
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .nav-item:hover .nav-dropdown,
    .nav-item:focus-within .nav-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    .nav-dropdown a {
      display: block;
      padding: 10px 14px;
      color: #242b43;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
    }

    .nav-dropdown a:hover {
      background: #f9edf1;
      color: var(--brand);
    }

    .hero {
      position: relative;
      min-height: 372px;
      overflow: hidden;
      background: #fbfaf8;
    }

    .hero::after {
      content: "";
      position: absolute;
      z-index: 3;
      right: 0;
      bottom: -1px;
      left: 0;
      height: 80px;
      background: #fff;
      clip-path: polygon(0 44%, 24% 72%, 50% 75%, 76% 71%, 100% 42%, 100% 100%, 0 100%);
    }

    .hero-photo {
      position: absolute;
      z-index: 1;
      inset: 0;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      pointer-events: none;
    }

    .hero-photo::before {
      content: "";
      position: absolute;
      z-index: 2;
      inset: 0;
      display: none;
    }

    .hero-photo img,
    .media-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .hero-photo img {
      width: 58%;
      height: 100%;
      object-fit: cover;
      object-position: 74% 30%;
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 10%, rgba(0,0,0,.55) 24%, #000 38%, #000 100%);
      mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 10%, rgba(0,0,0,.55) 24%, #000 38%, #000 100%);
    }

    .btn-primary,
    .btn-outline {
      display: inline-flex;
      height: 44px;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      padding-inline: 24px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      transition: .18s ease;
    }

    .btn-primary {
      border: 1px solid var(--brand);
      background: var(--brand);
      color: #fff;
    }

    .btn-primary:hover { background: #7f0325; border-color: #7f0325; color: #fff; }

    .btn-outline {
      border: 1px solid var(--brand);
      background: rgba(255,255,255,.84);
      color: var(--brand);
    }

    .btn-outline:hover { background: #f8edf1; }

    .field {
      width: 100%;
      height: 43px;
      border: 1px solid #dce2ec;
      border-radius: 5px;
      background: #fff;
      padding: 0 14px;
      color: #2b324a;
      font-size: 14px;
      font-weight: 600;
      outline: none;
    }

    .field:focus {
      border-color: var(--brand);
    }

    .section-title {
      color: var(--ink);
      font-size: 23px;
      line-height: 1.18;
      font-weight: 600;
      letter-spacing: -.02em;
    }

    .link-red {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: var(--brand);
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
    }

    .link-red:hover { color: var(--brandDark); }

    .course-card {
      position: relative;
      min-height: 252px;
      overflow: hidden;
      border: 1px solid #dfe5ef;
      border-radius: 7px;
      background: #fff;
    }

    .course-slider {
      display: flex;
      gap: 24px;
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
    }

    .course-slider::-webkit-scrollbar { display: none; }

    .course-slider .course-card {
      flex: 0 0 100%;
      scroll-snap-align: start;
    }

    .course-image {
      position: absolute;
      inset: 0;
      overflow: hidden;
      background: #f4f1ef;
    }

    .course-image::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 42%, rgba(255,255,255,.88) 76%, #fff 100%),
        linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 34%, rgba(255,255,255,.44) 66%, rgba(255,255,255,0) 100%);
    }

    .course-card > .p-4 {
      position: relative;
      z-index: 2;
      display: flex;
      min-height: 252px;
      flex-direction: column;
      padding: 18px 16px 16px;
    }

    .course-card h3 {
      max-width: 74%;
      margin-top: 34px;
      min-height: 46px;
    }

    .course-card .meta-row:first-child {
      margin-top: 2px;
    }

    .tag {
      position: absolute;
      z-index: 3;
      top: 13px;
      left: 13px;
      border-radius: 3px;
      padding: 6px 8px;
      color: #fff;
      font-size: 10px;
      font-weight: 600;
      line-height: 1;
      text-transform: uppercase;
    }

    .tag.bg-brand {
      background: var(--brand);
    }

    .course-card .mt-5 {
      margin-top: auto;
      padding-top: 16px;
    }

    .course-seats {
      font-size: 12px;
      line-height: 1.2;
    }

    .meta-row {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #4d5669;
      font-size: 13px;
      line-height: 1.28;
    }

    .meta-row i {
      width: 13px;
      color: #697184;
      font-size: 13px;
    }

    .category-card {
      display: flex;
      min-height: 144px;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 14px;
      border: 1px solid #e6eaf1;
      border-radius: 8px;
      color: #232a42;
      background: #fff;
      box-shadow: 0 1px 2px rgba(26, 33, 52, .03);
      text-align: center;
      text-decoration: none;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.25;
      transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .category-card:hover {
      border-color: rgba(168, 5, 50, .34);
      box-shadow: 0 10px 22px rgba(26, 33, 52, .08);
      transform: translateY(-2px);
    }

    .icon-outline {
      display: grid;
      width: 48px;
      height: 48px;
      place-items: center;
      color: var(--brand);
      font-size: 38px;
      line-height: 1;
    }

    .step-card {
      position: relative;
      display: grid;
      grid-template-columns: 74px 1fr;
      gap: 18px;
      align-items: center;
    }

    .step-bubble {
      position: relative;
      display: grid;
      width: 70px;
      height: 70px;
      place-items: center;
      border-radius: 999px;
      background: #f8edf1;
      color: var(--brand);
      font-size: 28px;
    }

    .step-number {
      position: absolute;
      top: -6px;
      left: -7px;
      display: grid;
      width: 24px;
      height: 24px;
      place-items: center;
      border-radius: 999px;
      background: var(--brand);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
    }

    .audience-grid {
      display: grid;
      gap: 20px;
    }

    .audience-card {
      display: flex;
      flex-direction: column;
      min-height: 100%;
      border: 1px solid #e0e6ef;
      border-radius: 8px;
      background: #fff;
      padding: 22px;
      box-shadow: 0 8px 20px rgba(26, 33, 52, .05);
    }

    .audience-icon {
      display: grid;
      width: 54px;
      height: 54px;
      place-items: center;
      border-radius: 999px;
      background: #f8edf1;
      color: var(--brand);
      font-size: 23px;
    }

    .audience-card h3 {
      margin-top: 16px;
      color: var(--ink);
      font-size: 18px;
      line-height: 1.3;
      font-weight: 700;
    }

    .audience-card p,
    .audience-card li {
      color: #272b34;
      font-size: 14px;
      line-height: 1.5;
    }

    .audience-card p {
      margin-top: 8px;
      font-weight: 400;
    }

    .audience-card ul {
      margin-top: 12px;
      padding-left: 18px;
    }

    .audience-card li + li {
      margin-top: 7px;
    }

    .benefit-icon {
      display: grid;
      width: 56px;
      height: 56px;
      flex: 0 0 auto;
      place-items: center;
      border-radius: 999px;
      background: #f4f5f8;
      color: #737b8f;
      font-size: 22px;
    }

    .lecturer-card {
      display: grid;
      grid-template-columns: 148px 1fr;
      min-height: 112px;
      overflow: hidden;
      border: 1px solid #e0e6ef;
      border-radius: 8px;
      background: #fff;
    }

    .lecturer-card .media-img {
      object-position: center top;
    }

    .lecturer-card > .p-4 {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 16px 18px;
    }

    .lecturer-card h3 {
      color: var(--ink);
      font-size: 18px;
      line-height: 1.25;
    }

    .contact-cta {
      display: grid;
      grid-template-columns: 1.25fr .9fr auto;
      gap: 40px;
      align-items: center;
      border-radius: 8px;
      background: #fbedf0;
      padding: 24px 44px 24px 28px;
    }

    .contact-cta-icon {
      color: var(--brand);
      font-size: 50px;
      line-height: 1;
    }

    .contact-cta-methods {
      display: grid;
      gap: 13px;
      color: var(--ink);
      font-size: 18px;
      font-weight: 700;
    }

    .contact-cta-methods a {
      display: inline-flex;
      align-items: center;
      gap: 18px;
      color: inherit;
      text-decoration: none;
    }

    .contact-cta-methods i {
      width: 34px;
      color: var(--brand);
      font-size: 23px;
      text-align: center;
    }

    .faq-row {
      transition: color .18s ease;
    }

    .faq-row:hover {
      color: var(--brand);
    }

    .faq-row i {
      transition: transform .18s ease;
    }

    .faq-row[aria-expanded="true"] {
      color: var(--brand);
    }

    .faq-row[aria-expanded="true"] i {
      transform: rotate(180deg);
    }

    .faq-panel {
      padding: 0 0 14px;
      color: #272b34;
      font-size: 14px;
      line-height: 1.55;
    }

    .faq-panel[hidden] {
      display: none;
    }

    .faq-item + .faq-item { border-top: 1px solid #e3e8f0; }

    .footer-link {
      display: inline-flex;
      transition: color .18s ease;
    }

    .footer-link:hover {
      color: var(--brand);
    }

    .social-link {
      display: inline-grid;
      width: 34px;
      height: 34px;
      place-items: center;
      border-radius: 999px;
      color: #5e6678;
      font-size: 22px;
      transition: color .18s ease, background-color .18s ease, transform .18s ease;
    }

    .social-link:hover {
      background: #f9edf1;
      color: var(--brand);
      transform: translateY(-2px);
    }

    @media (max-width: 1180px) {
      .nav-link { display: none; }
    }

    @media (max-width: 900px) {
      .contact-cta { grid-template-columns: 1fr; }
      .hero { min-height: auto; }
      .hero-photo { opacity: .22; }
      .hero-photo::before { background: rgba(255,255,255,.78); }
      .hero::after { height: 52px; }
    }

    @media (max-width: 640px) {
      .page-container { width: calc(100% - 32px); }
      .section-title { font-size: 20px; }
      .step-card { grid-template-columns: 58px 1fr; }
      .step-bubble { width: 56px; height: 56px; font-size: 22px; }
      .audience-card { padding: 18px; }
      .lecturer-card { grid-template-columns: 112px 1fr; }
    }

    @media (min-width: 640px) {
      .course-slider .course-card { flex-basis: calc((100% - 24px) / 2); }
    }

    @media (min-width: 1024px) {
      .course-slider .course-card { flex-basis: calc((100% - 48px) / 3); }
    }

    .text-page {
      padding-block: 34px 0;
    }

    .text-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.32fr) minmax(320px, .82fr);
      gap: 34px;
      align-items: start;
    }

    .breadcrumbs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-bottom: 26px;
      color: #5e6678;
      font-size: 14px;
      font-weight: 600;
    }

    .breadcrumbs a {
      color: #5e6678;
      text-decoration: none;
      transition: color .18s ease;
    }

    .breadcrumbs a:hover {
      color: var(--brand);
    }

    .breadcrumbs i {
      color: #b6bdca;
      font-size: 11px;
    }

    .page-intro {
      max-width: 760px;
      margin-bottom: 34px;
    }

    .page-intro h1 {
      color: var(--ink);
      font-size: 38px;
      line-height: 1.12;
      font-weight: 700;
      letter-spacing: -.02em;
    }

    .page-intro p {
      margin-top: 14px;
      color: #272b34;
      font-size: 17px;
      line-height: 1.65;
      font-weight: 400;
    }

    .text-section + .text-section {
      margin-top: 36px;
    }

    .text-heading {
      position: relative;
      margin-bottom: 26px;
      color: var(--ink);
      font-size: 24px;
      line-height: 1.2;
      font-weight: 700;
      letter-spacing: -.01em;
    }

    .text-heading::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -12px;
      width: 52px;
      height: 3px;
      border-radius: 999px;
      background: var(--brand);
    }

    .text-copy {
      max-width: 660px;
      color: #272b34;
      font-size: 15px;
      line-height: 1.8;
      font-weight: 500;
    }

    .value-list {
      display: grid;
      gap: 23px;
      margin-top: 36px;
    }

    .value-item {
      display: grid;
      grid-template-columns: 62px 1fr;
      gap: 18px;
      align-items: center;
    }

    .value-icon,
    .direction-icon {
      display: grid;
      place-items: center;
      border-radius: 999px;
      color: var(--brand);
      background: #fbecef;
    }

    .value-icon {
      width: 54px;
      height: 54px;
      font-size: 24px;
    }

    .value-item h3,
    .side-card h3 {
      color: var(--ink);
      font-size: 17px;
      line-height: 1.3;
      font-weight: 700;
    }

    .value-item p,
    .side-card p,
    .direction-list li,
    .approach-list li {
      color: #272b34;
      font-size: 14px;
      line-height: 1.55;
      font-weight: 400;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
      margin-top: 24px;
    }

    .stat-card {
      min-height: 108px;
      border: 1px solid #e3e8f1;
      border-radius: 8px;
      background: #fff;
      padding: 18px 12px;
      text-align: center;
    }

    .stat-card i {
      color: var(--brand);
      font-size: 26px;
    }

    .stat-card strong {
      display: block;
      margin-top: 10px;
      color: var(--brand);
      font-size: 22px;
      line-height: 1;
      font-weight: 900;
    }

    .stat-card span {
      display: block;
      margin-top: 7px;
      color: #272b34;
      font-size: 12px;
      line-height: 1.25;
      font-weight: 700;
    }

    .side-column {
      display: grid;
      gap: 26px;
    }

    .side-card {
      overflow: hidden;
      border: 1px solid #e3e8f1;
      border-radius: 10px;
      background: #fff;
      padding: 26px;
    }

    .side-card-soft {
      border-color: #f7dce3;
      background: linear-gradient(135deg, #fff3f5 0%, #fff 100%);
    }

    .direction-list,
    .approach-list {
      display: grid;
      gap: 16px;
      margin-top: 22px;
    }

    .direction-list li,
    .approach-list li {
      display: grid;
      grid-template-columns: 22px 1fr;
      gap: 10px;
      align-items: start;
    }

    .direction-icon {
      width: 18px;
      height: 18px;
      margin-top: 1px;
      background: #fff;
      border: 1px solid #f0a8b8;
      font-size: 9px;
    }

    .approach-list i {
      margin-top: 3px;
      color: var(--brand);
      font-size: 13px;
    }

    .side-image {
      height: 190px;
      margin: -26px -26px 22px;
      overflow: hidden;
      background: #f5f2ef;
    }

    .side-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .text-cta {
      display: grid;
      grid-template-columns: 74px 1fr auto;
      gap: 22px;
      align-items: center;
      margin-top: 36px;
      border-radius: 10px;
      background: #fbedf0;
      padding: 24px 34px;
    }

    .text-cta-icon {
      color: var(--brand);
      font-size: 48px;
      line-height: 1;
      text-align: center;
    }

    .text-cta h2 {
      color: var(--ink);
      font-size: 20px;
      line-height: 1.25;
      font-weight: 700;
    }

    .text-cta p {
      margin-top: 6px;
      max-width: 560px;
      color: #272b34;
      font-size: 14px;
      line-height: 1.55;
      font-weight: 600;
    }

    @media (max-width: 980px) {
      .text-layout { grid-template-columns: 1fr; }
      .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .text-cta { grid-template-columns: 56px 1fr; }
      .text-cta .btn-primary { grid-column: 2; justify-self: start; }
    }

    @media (max-width: 640px) {
      .text-page { padding-top: 24px; }
      .page-intro h1 { font-size: 30px; }
      .value-item { grid-template-columns: 52px 1fr; gap: 14px; }
      .value-icon { width: 48px; height: 48px; font-size: 21px; }
      .side-card { padding: 20px; }
      .side-image { margin: -20px -20px 18px; }
      .text-cta { grid-template-columns: 1fr; padding: 22px; }
      .text-cta .btn-primary { grid-column: auto; }
      .text-cta-icon { text-align: left; }
    }

:root {
      --brand: #a80532;
      --ink: #192039;
      --muted: #5d6578;
      --line: #e5e9f1;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background: #fff;
      font-family: Inter, Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
    }

    .page-container {
      width: calc(100% - 48px);
      margin-inline: auto;
    }

    .nav-link {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 74px;
      color: #1e253d;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
    }

    .nav-link.active,
    .nav-link:hover { color: var(--brand); }

    .nav-link.active::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: 0;
      left: 0;
      height: 3px;
      border-radius: 3px 3px 0 0;
      background: var(--brand);
    }

    .nav-item {
      position: relative;
      display: flex;
      align-items: center;
    }

    .nav-caret {
      transition: transform .18s ease;
    }

    .nav-item:hover .nav-caret,
    .nav-item:focus-within .nav-caret {
      transform: rotate(180deg);
    }

    .nav-dropdown {
      position: absolute;
      top: calc(100% - 6px);
      left: 0;
      z-index: 30;
      min-width: 246px;
      border: 1px solid #e3e8f1;
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 14px 30px rgba(28, 38, 63, .12);
      padding: 7px 0;
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .nav-item:hover .nav-dropdown,
    .nav-item:focus-within .nav-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    .nav-dropdown a {
      display: block;
      padding: 10px 14px;
      color: #242b43;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
    }

    .nav-dropdown a:hover {
      background: #f9edf1;
      color: var(--brand);
    }

    .hero {
      position: relative;
      min-height: 372px;
      overflow: hidden;
      background: #fbfaf8;
    }

    .hero::after {
      content: "";
      position: absolute;
      z-index: 3;
      right: 0;
      bottom: -1px;
      left: 0;
      height: 80px;
      background: #fff;
      clip-path: polygon(0 44%, 24% 72%, 50% 75%, 76% 71%, 100% 42%, 100% 100%, 0 100%);
    }

    .hero-photo {
      position: absolute;
      z-index: 1;
      inset: 0;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      pointer-events: none;
    }

    .hero-photo::before {
      content: "";
      position: absolute;
      z-index: 2;
      inset: 0;
      display: none;
    }

    .hero-photo img,
    .media-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .hero-photo img {
      width: 58%;
      height: 100%;
      object-fit: cover;
      object-position: 74% 30%;
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 10%, rgba(0,0,0,.55) 24%, #000 38%, #000 100%);
      mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 10%, rgba(0,0,0,.55) 24%, #000 38%, #000 100%);
    }

    .btn-primary,
    .btn-outline {
      display: inline-flex;
      height: 44px;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      padding-inline: 24px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      transition: .18s ease;
    }

    .btn-primary {
      border: 1px solid var(--brand);
      background: var(--brand);
      color: #fff;
    }

    .btn-primary:hover { background: #7f0325; border-color: #7f0325; color: #fff; }

    .btn-outline {
      border: 1px solid var(--brand);
      background: rgba(255,255,255,.84);
      color: var(--brand);
    }

    .btn-outline:hover { background: #f8edf1; }

    .field {
      width: 100%;
      height: 43px;
      border: 1px solid #dce2ec;
      border-radius: 5px;
      background: #fff;
      padding: 0 14px;
      color: #2b324a;
      font-size: 14px;
      font-weight: 600;
      outline: none;
    }

    .field:focus {
      border-color: var(--brand);
    }

    .section-title {
      color: var(--ink);
      font-size: 23px;
      line-height: 1.18;
      font-weight: 600;
      letter-spacing: -.02em;
    }

    .link-red {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: var(--brand);
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
    }

    .link-red:hover { color: var(--brandDark); }

    .course-card {
      position: relative;
      min-height: 252px;
      overflow: hidden;
      border: 1px solid #dfe5ef;
      border-radius: 7px;
      background: #fff;
    }

    .course-slider {
      display: flex;
      gap: 24px;
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
    }

    .course-slider::-webkit-scrollbar { display: none; }

    .course-slider .course-card {
      flex: 0 0 100%;
      scroll-snap-align: start;
    }

    .course-image {
      position: absolute;
      inset: 0;
      overflow: hidden;
      background: #f4f1ef;
    }

    .course-image::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 42%, rgba(255,255,255,.88) 76%, #fff 100%),
        linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 34%, rgba(255,255,255,.44) 66%, rgba(255,255,255,0) 100%);
    }

    .course-card > .p-4 {
      position: relative;
      z-index: 2;
      display: flex;
      min-height: 252px;
      flex-direction: column;
      padding: 18px 16px 16px;
    }

    .course-card h3 {
      max-width: 74%;
      margin-top: 34px;
      min-height: 46px;
    }

    .course-card .meta-row:first-child {
      margin-top: 2px;
    }

    .tag {
      position: absolute;
      z-index: 3;
      top: 13px;
      left: 13px;
      border-radius: 3px;
      padding: 6px 8px;
      color: #fff;
      font-size: 10px;
      font-weight: 600;
      line-height: 1;
      text-transform: uppercase;
    }

    .tag.bg-brand {
      background: var(--brand);
    }

    .course-card .mt-5 {
      margin-top: auto;
      padding-top: 16px;
    }

    .course-seats {
      font-size: 12px;
      line-height: 1.2;
    }

    .meta-row {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #4d5669;
      font-size: 13px;
      line-height: 1.28;
    }

    .meta-row i {
      width: 13px;
      color: #697184;
      font-size: 13px;
    }

    .category-card {
      display: flex;
      min-height: 144px;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 14px;
      border: 1px solid #e6eaf1;
      border-radius: 8px;
      color: #232a42;
      background: #fff;
      box-shadow: 0 1px 2px rgba(26, 33, 52, .03);
      text-align: center;
      text-decoration: none;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.25;
      transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .category-card:hover {
      border-color: rgba(168, 5, 50, .34);
      box-shadow: 0 10px 22px rgba(26, 33, 52, .08);
      transform: translateY(-2px);
    }

    .icon-outline {
      display: grid;
      width: 48px;
      height: 48px;
      place-items: center;
      color: var(--brand);
      font-size: 38px;
      line-height: 1;
    }

    .step-card {
      position: relative;
      display: grid;
      grid-template-columns: 74px 1fr;
      gap: 18px;
      align-items: center;
    }

    .step-bubble {
      position: relative;
      display: grid;
      width: 70px;
      height: 70px;
      place-items: center;
      border-radius: 999px;
      background: #f8edf1;
      color: var(--brand);
      font-size: 28px;
    }

    .step-number {
      position: absolute;
      top: -6px;
      left: -7px;
      display: grid;
      width: 24px;
      height: 24px;
      place-items: center;
      border-radius: 999px;
      background: var(--brand);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
    }

    .audience-grid {
      display: grid;
      gap: 20px;
    }

    .audience-card {
      display: flex;
      flex-direction: column;
      min-height: 100%;
      border: 1px solid #e0e6ef;
      border-radius: 8px;
      background: #fff;
      padding: 22px;
      box-shadow: 0 8px 20px rgba(26, 33, 52, .05);
    }

    .audience-icon {
      display: grid;
      width: 54px;
      height: 54px;
      place-items: center;
      border-radius: 999px;
      background: #f8edf1;
      color: var(--brand);
      font-size: 23px;
    }

    .audience-card h3 {
      margin-top: 16px;
      color: var(--ink);
      font-size: 18px;
      line-height: 1.3;
      font-weight: 700;
    }

    .audience-card p,
    .audience-card li {
      color: #272b34;
      font-size: 14px;
      line-height: 1.5;
    }

    .audience-card p {
      margin-top: 8px;
      font-weight: 400;
    }

    .audience-card ul {
      margin-top: 12px;
      padding-left: 18px;
    }

    .audience-card li + li {
      margin-top: 7px;
    }

    .benefit-icon {
      display: grid;
      width: 56px;
      height: 56px;
      flex: 0 0 auto;
      place-items: center;
      border-radius: 999px;
      background: #f4f5f8;
      color: #737b8f;
      font-size: 22px;
    }

    .lecturer-card {
      display: grid;
      grid-template-columns: 148px 1fr;
      min-height: 112px;
      overflow: hidden;
      border: 1px solid #e0e6ef;
      border-radius: 8px;
      background: #fff;
    }

    .lecturer-card .media-img {
      object-position: center top;
    }

    .lecturer-card > .p-4 {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 16px 18px;
    }

    .lecturer-card h3 {
      color: var(--ink);
      font-size: 18px;
      line-height: 1.25;
    }

    .contact-cta {
      display: grid;
      grid-template-columns: 1.25fr .9fr auto;
      gap: 40px;
      align-items: center;
      border-radius: 8px;
      background: #fbedf0;
      padding: 24px 44px 24px 28px;
    }

    .contact-cta-icon {
      color: var(--brand);
      font-size: 50px;
      line-height: 1;
    }

    .contact-cta-methods {
      display: grid;
      gap: 13px;
      color: var(--ink);
      font-size: 18px;
      font-weight: 700;
    }

    .contact-cta-methods a {
      display: inline-flex;
      align-items: center;
      gap: 18px;
      color: inherit;
      text-decoration: none;
    }

    .contact-cta-methods i {
      width: 34px;
      color: var(--brand);
      font-size: 23px;
      text-align: center;
    }

    .faq-row {
      transition: color .18s ease;
    }

    .faq-row:hover {
      color: var(--brand);
    }

    .faq-row i {
      transition: transform .18s ease;
    }

    .faq-row[aria-expanded="true"] {
      color: var(--brand);
    }

    .faq-row[aria-expanded="true"] i {
      transform: rotate(180deg);
    }

    .faq-panel {
      padding: 0 0 14px;
      color: #272b34;
      font-size: 14px;
      line-height: 1.55;
    }

    .faq-panel[hidden] {
      display: none;
    }

    .faq-item + .faq-item { border-top: 1px solid #e3e8f0; }

    .footer-link {
      display: inline-flex;
      transition: color .18s ease;
    }

    .footer-link:hover {
      color: var(--brand);
    }

    .social-link {
      display: inline-grid;
      width: 34px;
      height: 34px;
      place-items: center;
      border-radius: 999px;
      color: #5e6678;
      font-size: 22px;
      transition: color .18s ease, background-color .18s ease, transform .18s ease;
    }

    .social-link:hover {
      background: #f9edf1;
      color: var(--brand);
      transform: translateY(-2px);
    }

    @media (max-width: 1180px) {
      .nav-link { display: none; }
    }

    @media (max-width: 900px) {
      .contact-cta { grid-template-columns: 1fr; }
      .hero { min-height: auto; }
      .hero-photo { opacity: .22; }
      .hero-photo::before { background: rgba(255,255,255,.78); }
      .hero::after { height: 52px; }
    }

    @media (max-width: 640px) {
      .page-container { width: calc(100% - 32px); }
      .section-title { font-size: 20px; }
      .step-card { grid-template-columns: 58px 1fr; }
      .step-bubble { width: 56px; height: 56px; font-size: 22px; }
      .audience-card { padding: 18px; }
      .lecturer-card { grid-template-columns: 112px 1fr; }
    }

    @media (min-width: 640px) {
      .course-slider .course-card { flex-basis: calc((100% - 24px) / 2); }
    }

    @media (min-width: 1024px) {
      .course-slider .course-card { flex-basis: calc((100% - 48px) / 3); }
    }

    .text-page {
      padding-block: 34px 0;
    }

    .text-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.32fr) minmax(320px, .82fr);
      gap: 34px;
      align-items: start;
    }

    .breadcrumbs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-bottom: 26px;
      color: #5e6678;
      font-size: 14px;
      font-weight: 600;
    }

    .breadcrumbs a {
      color: #5e6678;
      text-decoration: none;
      transition: color .18s ease;
    }

    .breadcrumbs a:hover {
      color: var(--brand);
    }

    .breadcrumbs i {
      color: #b6bdca;
      font-size: 11px;
    }

    .page-intro {
      max-width: 760px;
      margin-bottom: 34px;
    }

    .page-intro h1 {
      color: var(--ink);
      font-size: 38px;
      line-height: 1.12;
      font-weight: 700;
      letter-spacing: -.02em;
    }

    .page-intro p {
      margin-top: 14px;
      color: #272b34;
      font-size: 17px;
      line-height: 1.65;
      font-weight: 400;
    }

    .text-section + .text-section {
      margin-top: 36px;
    }

    .text-heading {
      position: relative;
      margin-bottom: 26px;
      color: var(--ink);
      font-size: 24px;
      line-height: 1.2;
      font-weight: 700;
      letter-spacing: -.01em;
    }

    .text-heading::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -12px;
      width: 52px;
      height: 3px;
      border-radius: 999px;
      background: var(--brand);
    }

    .text-copy {
      max-width: 660px;
      color: #272b34;
      font-size: 15px;
      line-height: 1.8;
      font-weight: 500;
    }

    .value-list {
      display: grid;
      gap: 23px;
      margin-top: 36px;
    }

    .value-item {
      display: grid;
      grid-template-columns: 62px 1fr;
      gap: 18px;
      align-items: center;
    }

    .value-icon,
    .direction-icon {
      display: grid;
      place-items: center;
      border-radius: 999px;
      color: var(--brand);
      background: #fbecef;
    }

    .value-icon {
      width: 54px;
      height: 54px;
      font-size: 24px;
    }

    .value-item h3,
    .side-card h3 {
      color: var(--ink);
      font-size: 17px;
      line-height: 1.3;
      font-weight: 700;
    }

    .value-item p,
    .side-card p,
    .direction-list li,
    .approach-list li {
      color: #272b34;
      font-size: 14px;
      line-height: 1.55;
      font-weight: 400;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
      margin-top: 24px;
    }

    .stat-card {
      min-height: 108px;
      border: 1px solid #e3e8f1;
      border-radius: 8px;
      background: #fff;
      padding: 18px 12px;
      text-align: center;
    }

    .stat-card i {
      color: var(--brand);
      font-size: 26px;
    }

    .stat-card strong {
      display: block;
      margin-top: 10px;
      color: var(--brand);
      font-size: 22px;
      line-height: 1;
      font-weight: 900;
    }

    .stat-card span {
      display: block;
      margin-top: 7px;
      color: #272b34;
      font-size: 12px;
      line-height: 1.25;
      font-weight: 700;
    }

    .side-column {
      display: grid;
      gap: 26px;
    }

    .side-card {
      overflow: hidden;
      border: 1px solid #e3e8f1;
      border-radius: 10px;
      background: #fff;
      padding: 26px;
    }

    .side-card-soft {
      border-color: #f7dce3;
      background: linear-gradient(135deg, #fff3f5 0%, #fff 100%);
    }

    .direction-list,
    .approach-list {
      display: grid;
      gap: 16px;
      margin-top: 22px;
    }

    .direction-list li,
    .approach-list li {
      display: grid;
      grid-template-columns: 22px 1fr;
      gap: 10px;
      align-items: start;
    }

    .direction-icon {
      width: 18px;
      height: 18px;
      margin-top: 1px;
      background: #fff;
      border: 1px solid #f0a8b8;
      font-size: 9px;
    }

    .approach-list i {
      margin-top: 3px;
      color: var(--brand);
      font-size: 13px;
    }

    .side-image {
      height: 190px;
      margin: -26px -26px 22px;
      overflow: hidden;
      background: #f5f2ef;
    }

    .side-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .text-cta {
      display: grid;
      grid-template-columns: 74px 1fr auto;
      gap: 22px;
      align-items: center;
      margin-top: 36px;
      border-radius: 10px;
      background: #fbedf0;
      padding: 24px 34px;
    }

    .text-cta-icon {
      color: var(--brand);
      font-size: 48px;
      line-height: 1;
      text-align: center;
    }

    .text-cta h2 {
      color: var(--ink);
      font-size: 20px;
      line-height: 1.25;
      font-weight: 700;
    }

    .text-cta p {
      margin-top: 6px;
      max-width: 560px;
      color: #272b34;
      font-size: 14px;
      line-height: 1.55;
      font-weight: 600;
    }

    @media (max-width: 980px) {
      .text-layout { grid-template-columns: 1fr; }
      .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .text-cta { grid-template-columns: 56px 1fr; }
      .text-cta .btn-primary { grid-column: 2; justify-self: start; }
    }

    @media (max-width: 640px) {
      .text-page { padding-top: 24px; }
      .page-intro h1 { font-size: 30px; }
      .value-item { grid-template-columns: 52px 1fr; gap: 14px; }
      .value-icon { width: 48px; height: 48px; font-size: 21px; }
      .side-card { padding: 20px; }
      .side-image { margin: -20px -20px 18px; }
      .text-cta { grid-template-columns: 1fr; padding: 22px; }
      .text-cta .btn-primary { grid-column: auto; }
      .text-cta-icon { text-align: left; }
    }

    .login-page {
      background: #fff;
    }

    .login-hero {
      position: relative;
      overflow: hidden;
      min-height: 280px;
      background: #fbfaf8;
    }

    .login-hero-content {
      position: relative;
      z-index: 3;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 32px;
      align-items: end;
      padding-block: 58px 86px;
    }

    .login-breadcrumbs {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 42px;
      color: #5e6678;
      font-size: 14px;
      font-weight: 700;
    }

    .login-breadcrumbs a {
      color: var(--brand);
      text-decoration: none;
    }

    .login-breadcrumbs i {
      color: #b8bfcc;
      font-size: 11px;
    }

    .login-hero h1 {
      color: var(--ink);
      font-size: 44px;
      line-height: 1.12;
      font-weight: 700;
      letter-spacing: -.025em;
    }

    .login-hero p {
      margin-top: 22px;
      max-width: 520px;
      color: #272b34;
      font-size: 16px;
      line-height: 1.75;
      font-weight: 400;
    }

    .login-wrap {
      margin-top: -54px;
      position: relative;
      z-index: 4;
      padding-block: 0 34px;
    }

    .login-hero-action {
      margin-bottom: 8px;
      white-space: nowrap;
    }

    .login-grid {
      max-width: 690px;
      margin-inline: auto;
    }

    .login-card {
      border: 1px solid #e0e6ef;
      border-radius: 10px;
      background: #fff;
      padding: 54px 38px 48px;
    }

    .login-card-inner {
      max-width: none;
    }

    .login-card h2 {
      color: var(--ink);
      font-size: 28px;
      line-height: 1.2;
      font-weight: 700;
      letter-spacing: -.015em;
    }

    .login-form {
      margin-top: 46px;
    }

    .login-field + .login-field {
      margin-top: 30px;
    }

    .login-field label {
      display: block;
      margin-bottom: 12px;
      color: #2b3048;
      font-size: 15px;
      font-weight: 700;
    }

    .login-input-wrap {
      position: relative;
    }

    .login-input {
      width: 100%;
      height: 58px;
      border: 1px solid #d6dde8;
      border-radius: 6px;
      background: #fff;
      padding: 0 50px 0 18px;
      color: #2b3048;
      font-size: 16px;
      font-weight: 600;
      outline: none;
      transition: border-color .14s ease;
    }

    .login-input:focus {
      border-color: var(--brand);
    }

    .login-input:focus-visible,
    .login-options input:focus-visible,
    .login-submit:focus-visible {
      outline: none;
    }

    .login-input-wrap i {
      position: absolute;
      right: 18px;
      top: 50%;
      color: #5e6678;
      font-size: 20px;
      transform: translateY(-50%);
    }

    .login-options {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-top: 30px;
      color: #2b3048;
      font-size: 15px;
      font-weight: 600;
    }

    .login-options label {
      display: inline-flex;
      align-items: center;
      gap: 12px;
    }

    .login-options input {
      width: 18px;
      height: 18px;
      accent-color: var(--brand);
    }

    .login-options a,
    .register-link a {
      color: var(--brand);
      font-weight: 700;
      text-decoration: none;
    }

    .login-submit {
      width: 100%;
      height: 58px;
      margin-top: 34px;
      border: 1px solid var(--brand);
      border-radius: 6px;
      background: var(--brand);
      color: #fff;
      font-size: 17px;
      font-weight: 700;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .login-submit:hover:not(:disabled) {
      background: #7f0325;
      border-color: #7f0325;
    }

    .login-submit:disabled {
      cursor: default;
      opacity: .82;
    }

    .login-separator {
      height: 1px;
      margin: 44px 0 30px;
      background: #e6ebf2;
    }

    .register-link {
      color: #2f374f;
      text-align: center;
      font-size: 16px;
      font-weight: 600;
    }

    @media (max-width: 640px) {
      .login-hero { min-height: 320px; }
      .login-hero-content { grid-template-columns: 1fr; padding-block: 62px 74px; }
      .login-hero-action { margin-bottom: 0; justify-self: start; }
      .login-hero h1 { font-size: 34px; }
      .login-wrap { padding-bottom: 20px; }
      .login-card { padding: 28px 20px; }
      .login-options { align-items: flex-start; flex-direction: column; }
    }

:root {
      --brand: #a80532;
      --ink: #192039;
      --muted: #5d6578;
      --line: #e5e9f1;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: var(--ink);
      background: #fff;
      font-family: Inter, Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
    }

    .page-container {
      width: calc(100% - 48px);
      margin-inline: auto;
    }

    .nav-link {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 74px;
      color: #1e253d;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
    }

    .nav-link.active,
    .nav-link:hover { color: var(--brand); }

    .nav-link.active::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: 0;
      left: 0;
      height: 3px;
      border-radius: 3px 3px 0 0;
      background: var(--brand);
    }

    .nav-item {
      position: relative;
      display: flex;
      align-items: center;
    }

    .nav-caret {
      transition: transform .18s ease;
    }

    .nav-item:hover .nav-caret,
    .nav-item:focus-within .nav-caret {
      transform: rotate(180deg);
    }

    .nav-dropdown {
      position: absolute;
      top: calc(100% - 6px);
      left: 0;
      z-index: 30;
      min-width: 246px;
      border: 1px solid #e3e8f1;
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 14px 30px rgba(28, 38, 63, .12);
      padding: 7px 0;
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .nav-item:hover .nav-dropdown,
    .nav-item:focus-within .nav-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    .nav-dropdown a {
      display: block;
      padding: 10px 14px;
      color: #242b43;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
    }

    .nav-dropdown a:hover {
      background: #f9edf1;
      color: var(--brand);
    }

    .hero {
      position: relative;
      min-height: 372px;
      overflow: hidden;
      background: #fbfaf8;
    }

    .hero::after {
      content: "";
      position: absolute;
      z-index: 3;
      right: 0;
      bottom: -1px;
      left: 0;
      height: 80px;
      background: #fff;
      clip-path: polygon(0 44%, 24% 72%, 50% 75%, 76% 71%, 100% 42%, 100% 100%, 0 100%);
    }

    .hero-photo {
      position: absolute;
      z-index: 1;
      inset: 0;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      pointer-events: none;
    }

    .hero-photo::before {
      content: "";
      position: absolute;
      z-index: 2;
      inset: 0;
      display: none;
    }

    .hero-photo img,
    .media-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .hero-photo img {
      width: 58%;
      height: 100%;
      object-fit: cover;
      object-position: 74% 30%;
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 10%, rgba(0,0,0,.55) 24%, #000 38%, #000 100%);
      mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 10%, rgba(0,0,0,.55) 24%, #000 38%, #000 100%);
    }

    .btn-primary,
    .btn-outline {
      display: inline-flex;
      height: 44px;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      padding-inline: 24px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      transition: .18s ease;
    }

    .btn-primary {
      border: 1px solid var(--brand);
      background: var(--brand);
      color: #fff;
    }

    .btn-primary:hover { background: #7f0325; border-color: #7f0325; color: #fff; }

    .btn-outline {
      border: 1px solid var(--brand);
      background: rgba(255,255,255,.84);
      color: var(--brand);
    }

    .btn-outline:hover { background: #f8edf1; }

    .field {
      width: 100%;
      height: 43px;
      border: 1px solid #dce2ec;
      border-radius: 5px;
      background: #fff;
      padding: 0 14px;
      color: #2b324a;
      font-size: 14px;
      font-weight: 600;
      outline: none;
    }

    .field:focus {
      border-color: var(--brand);
    }

    .section-title {
      color: var(--ink);
      font-size: 23px;
      line-height: 1.18;
      font-weight: 600;
      letter-spacing: -.02em;
    }

    .link-red {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: var(--brand);
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
    }

    .link-red:hover { color: var(--brandDark); }

    .course-card {
      position: relative;
      min-height: 252px;
      overflow: hidden;
      border: 1px solid #dfe5ef;
      border-radius: 7px;
      background: #fff;
    }

    .course-slider {
      display: flex;
      gap: 24px;
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
    }

    .course-slider::-webkit-scrollbar { display: none; }

    .course-slider .course-card {
      flex: 0 0 100%;
      scroll-snap-align: start;
    }

    .course-image {
      position: absolute;
      inset: 0;
      overflow: hidden;
      background: #f4f1ef;
    }

    .course-image::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 42%, rgba(255,255,255,.88) 76%, #fff 100%),
        linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 34%, rgba(255,255,255,.44) 66%, rgba(255,255,255,0) 100%);
    }

    .course-card > .p-4 {
      position: relative;
      z-index: 2;
      display: flex;
      min-height: 252px;
      flex-direction: column;
      padding: 18px 16px 16px;
    }

    .course-card h3 {
      max-width: 74%;
      margin-top: 34px;
      min-height: 46px;
    }

    .course-card .meta-row:first-child {
      margin-top: 2px;
    }

    .tag {
      position: absolute;
      z-index: 3;
      top: 13px;
      left: 13px;
      border-radius: 3px;
      padding: 6px 8px;
      color: #fff;
      font-size: 10px;
      font-weight: 600;
      line-height: 1;
      text-transform: uppercase;
    }

    .tag.bg-brand {
      background: var(--brand);
    }

    .course-card .mt-5 {
      margin-top: auto;
      padding-top: 16px;
    }

    .course-seats {
      font-size: 12px;
      line-height: 1.2;
    }

    .meta-row {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #4d5669;
      font-size: 13px;
      line-height: 1.28;
    }

    .meta-row i {
      width: 13px;
      color: #697184;
      font-size: 13px;
    }

    .category-card {
      display: flex;
      min-height: 144px;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 14px;
      border: 1px solid #e6eaf1;
      border-radius: 8px;
      color: #232a42;
      background: #fff;
      box-shadow: 0 1px 2px rgba(26, 33, 52, .03);
      text-align: center;
      text-decoration: none;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.25;
      transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .category-card:hover {
      border-color: rgba(168, 5, 50, .34);
      box-shadow: 0 10px 22px rgba(26, 33, 52, .08);
      transform: translateY(-2px);
    }

    .icon-outline {
      display: grid;
      width: 48px;
      height: 48px;
      place-items: center;
      color: var(--brand);
      font-size: 38px;
      line-height: 1;
    }

    .step-card {
      position: relative;
      display: grid;
      grid-template-columns: 74px 1fr;
      gap: 18px;
      align-items: center;
    }

    .step-bubble {
      position: relative;
      display: grid;
      width: 70px;
      height: 70px;
      place-items: center;
      border-radius: 999px;
      background: #f8edf1;
      color: var(--brand);
      font-size: 28px;
    }

    .step-number {
      position: absolute;
      top: -6px;
      left: -7px;
      display: grid;
      width: 24px;
      height: 24px;
      place-items: center;
      border-radius: 999px;
      background: var(--brand);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
    }

    .audience-grid {
      display: grid;
      gap: 20px;
    }

    .audience-card {
      display: flex;
      flex-direction: column;
      min-height: 100%;
      border: 1px solid #e0e6ef;
      border-radius: 8px;
      background: #fff;
      padding: 22px;
      box-shadow: 0 8px 20px rgba(26, 33, 52, .05);
    }

    .audience-icon {
      display: grid;
      width: 54px;
      height: 54px;
      place-items: center;
      border-radius: 999px;
      background: #f8edf1;
      color: var(--brand);
      font-size: 23px;
    }

    .audience-card h3 {
      margin-top: 16px;
      color: var(--ink);
      font-size: 18px;
      line-height: 1.3;
      font-weight: 700;
    }

    .audience-card p,
    .audience-card li {
      color: #272b34;
      font-size: 14px;
      line-height: 1.5;
    }

    .audience-card p {
      margin-top: 8px;
      font-weight: 400;
    }

    .audience-card ul {
      margin-top: 12px;
      padding-left: 18px;
    }

    .audience-card li + li {
      margin-top: 7px;
    }

    .benefit-icon {
      display: grid;
      width: 56px;
      height: 56px;
      flex: 0 0 auto;
      place-items: center;
      border-radius: 999px;
      background: #f4f5f8;
      color: #737b8f;
      font-size: 22px;
    }

    .lecturer-card {
      display: grid;
      grid-template-columns: 148px 1fr;
      min-height: 112px;
      overflow: hidden;
      border: 1px solid #e0e6ef;
      border-radius: 8px;
      background: #fff;
    }

    .lecturer-card .media-img {
      object-position: center top;
    }

    .lecturer-card > .p-4 {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 16px 18px;
    }

    .lecturer-card h3 {
      color: var(--ink);
      font-size: 18px;
      line-height: 1.25;
    }

    .contact-cta {
      display: grid;
      grid-template-columns: 1.25fr .9fr auto;
      gap: 40px;
      align-items: center;
      border-radius: 8px;
      background: #fbedf0;
      padding: 24px 44px 24px 28px;
    }

    .contact-cta-icon {
      color: var(--brand);
      font-size: 50px;
      line-height: 1;
    }

    .contact-cta-methods {
      display: grid;
      gap: 13px;
      color: var(--ink);
      font-size: 18px;
      font-weight: 700;
    }

    .contact-cta-methods a {
      display: inline-flex;
      align-items: center;
      gap: 18px;
      color: inherit;
      text-decoration: none;
    }

    .contact-cta-methods i {
      width: 34px;
      color: var(--brand);
      font-size: 23px;
      text-align: center;
    }

    .faq-row {
      transition: color .18s ease;
    }

    .faq-row:hover {
      color: var(--brand);
    }

    .faq-row i {
      transition: transform .18s ease;
    }

    .faq-row[aria-expanded="true"] {
      color: var(--brand);
    }

    .faq-row[aria-expanded="true"] i {
      transform: rotate(180deg);
    }

    .faq-panel {
      padding: 0 0 14px;
      color: #272b34;
      font-size: 14px;
      line-height: 1.55;
    }

    .faq-panel[hidden] {
      display: none;
    }

    .faq-item + .faq-item { border-top: 1px solid #e3e8f0; }

    .footer-link {
      display: inline-flex;
      transition: color .18s ease;
    }

    .footer-link:hover {
      color: var(--brand);
    }

    .social-link {
      display: inline-grid;
      width: 34px;
      height: 34px;
      place-items: center;
      border-radius: 999px;
      color: #5e6678;
      font-size: 22px;
      transition: color .18s ease, background-color .18s ease, transform .18s ease;
    }

    .social-link:hover {
      background: #f9edf1;
      color: var(--brand);
      transform: translateY(-2px);
    }

    @media (max-width: 1180px) {
      .nav-link { display: none; }
    }

    @media (max-width: 900px) {
      .contact-cta { grid-template-columns: 1fr; }
      .hero { min-height: auto; }
      .hero-photo { opacity: .22; }
      .hero-photo::before { background: rgba(255,255,255,.78); }
      .hero::after { height: 52px; }
    }

    @media (max-width: 640px) {
      .page-container { width: calc(100% - 32px); }
      .section-title { font-size: 20px; }
      .step-card { grid-template-columns: 58px 1fr; }
      .step-bubble { width: 56px; height: 56px; font-size: 22px; }
      .audience-card { padding: 18px; }
      .lecturer-card { grid-template-columns: 112px 1fr; }
    }

    @media (min-width: 640px) {
      .course-slider .course-card { flex-basis: calc((100% - 24px) / 2); }
    }

    @media (min-width: 1024px) {
      .course-slider .course-card { flex-basis: calc((100% - 48px) / 3); }
    }

    .text-page {
      padding-block: 34px 0;
    }

    .text-layout {
      display: grid;
      grid-template-columns: minmax(0, 1.32fr) minmax(320px, .82fr);
      gap: 34px;
      align-items: start;
    }

    .breadcrumbs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      align-items: center;
      margin-bottom: 26px;
      color: #5e6678;
      font-size: 14px;
      font-weight: 600;
    }

    .breadcrumbs a {
      color: #5e6678;
      text-decoration: none;
      transition: color .18s ease;
    }

    .breadcrumbs a:hover {
      color: var(--brand);
    }

    .breadcrumbs i {
      color: #b6bdca;
      font-size: 11px;
    }

    .page-intro {
      max-width: 760px;
      margin-bottom: 34px;
    }

    .page-intro h1 {
      color: var(--ink);
      font-size: 38px;
      line-height: 1.12;
      font-weight: 700;
      letter-spacing: -.02em;
    }

    .page-intro p {
      margin-top: 14px;
      color: #272b34;
      font-size: 17px;
      line-height: 1.65;
      font-weight: 400;
    }

    .text-section + .text-section {
      margin-top: 36px;
    }

    .text-heading {
      position: relative;
      margin-bottom: 26px;
      color: var(--ink);
      font-size: 24px;
      line-height: 1.2;
      font-weight: 700;
      letter-spacing: -.01em;
    }

    .text-heading::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -12px;
      width: 52px;
      height: 3px;
      border-radius: 999px;
      background: var(--brand);
    }

    .text-copy {
      max-width: 660px;
      color: #272b34;
      font-size: 15px;
      line-height: 1.8;
      font-weight: 500;
    }

    .value-list {
      display: grid;
      gap: 23px;
      margin-top: 36px;
    }

    .value-item {
      display: grid;
      grid-template-columns: 62px 1fr;
      gap: 18px;
      align-items: center;
    }

    .value-icon,
    .direction-icon {
      display: grid;
      place-items: center;
      border-radius: 999px;
      color: var(--brand);
      background: #fbecef;
    }

    .value-icon {
      width: 54px;
      height: 54px;
      font-size: 24px;
    }

    .value-item h3,
    .side-card h3 {
      color: var(--ink);
      font-size: 17px;
      line-height: 1.3;
      font-weight: 700;
    }

    .value-item p,
    .side-card p,
    .direction-list li,
    .approach-list li {
      color: #272b34;
      font-size: 14px;
      line-height: 1.55;
      font-weight: 400;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
      margin-top: 24px;
    }

    .stat-card {
      min-height: 108px;
      border: 1px solid #e3e8f1;
      border-radius: 8px;
      background: #fff;
      padding: 18px 12px;
      text-align: center;
    }

    .stat-card i {
      color: var(--brand);
      font-size: 26px;
    }

    .stat-card strong {
      display: block;
      margin-top: 10px;
      color: var(--brand);
      font-size: 22px;
      line-height: 1;
      font-weight: 900;
    }

    .stat-card span {
      display: block;
      margin-top: 7px;
      color: #272b34;
      font-size: 12px;
      line-height: 1.25;
      font-weight: 700;
    }

    .side-column {
      display: grid;
      gap: 26px;
    }

    .side-card {
      overflow: hidden;
      border: 1px solid #e3e8f1;
      border-radius: 10px;
      background: #fff;
      padding: 26px;
    }

    .side-card-soft {
      border-color: #f7dce3;
      background: linear-gradient(135deg, #fff3f5 0%, #fff 100%);
    }

    .direction-list,
    .approach-list {
      display: grid;
      gap: 16px;
      margin-top: 22px;
    }

    .direction-list li,
    .approach-list li {
      display: grid;
      grid-template-columns: 22px 1fr;
      gap: 10px;
      align-items: start;
    }

    .direction-icon {
      width: 18px;
      height: 18px;
      margin-top: 1px;
      background: #fff;
      border: 1px solid #f0a8b8;
      font-size: 9px;
    }

    .approach-list i {
      margin-top: 3px;
      color: var(--brand);
      font-size: 13px;
    }

    .side-image {
      height: 190px;
      margin: -26px -26px 22px;
      overflow: hidden;
      background: #f5f2ef;
    }

    .side-image img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .text-cta {
      display: grid;
      grid-template-columns: 74px 1fr auto;
      gap: 22px;
      align-items: center;
      margin-top: 36px;
      border-radius: 10px;
      background: #fbedf0;
      padding: 24px 34px;
    }

    .text-cta-icon {
      color: var(--brand);
      font-size: 48px;
      line-height: 1;
      text-align: center;
    }

    .text-cta h2 {
      color: var(--ink);
      font-size: 20px;
      line-height: 1.25;
      font-weight: 700;
    }

    .text-cta p {
      margin-top: 6px;
      max-width: 560px;
      color: #272b34;
      font-size: 14px;
      line-height: 1.55;
      font-weight: 600;
    }

    @media (max-width: 980px) {
      .text-layout { grid-template-columns: 1fr; }
      .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .text-cta { grid-template-columns: 56px 1fr; }
      .text-cta .btn-primary { grid-column: 2; justify-self: start; }
    }

    @media (max-width: 640px) {
      .text-page { padding-top: 24px; }
      .page-intro h1 { font-size: 30px; }
      .value-item { grid-template-columns: 52px 1fr; gap: 14px; }
      .value-icon { width: 48px; height: 48px; font-size: 21px; }
      .side-card { padding: 20px; }
      .side-image { margin: -20px -20px 18px; }
      .text-cta { grid-template-columns: 1fr; padding: 22px; }
      .text-cta .btn-primary { grid-column: auto; }
      .text-cta-icon { text-align: left; }
    }

    .register-page {
      background: #fff;
    }

    .register-hero {
      position: relative;
      overflow: hidden;
      min-height: 330px;
      background: #fbfaf8;
    }

    .register-hero-content {
      position: relative;
      z-index: 3;
      display: grid;
      grid-template-columns: 1fr;
      align-items: center;
      justify-items: center;
      padding-block: 58px 86px;
      text-align: center;
    }

    .register-breadcrumbs {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 42px;
      color: #5e6678;
      font-size: 14px;
      font-weight: 700;
    }

    .register-breadcrumbs a {
      color: var(--brand);
      text-decoration: none;
    }

    .register-breadcrumbs i {
      color: #b8bfcc;
      font-size: 11px;
    }

    .register-hero h1 {
      color: var(--ink);
      font-size: 44px;
      line-height: 1.12;
      font-weight: 700;
      letter-spacing: -.025em;
    }

    .register-hero p {
      margin-top: 22px;
      margin-inline: auto;
      max-width: 520px;
      color: #2f374f;
      font-size: 16px;
      line-height: 1.75;
      font-weight: 500;
    }

    .register-hero-action {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      margin-top: 24px;
    }

    .register-wrap {
      margin-top: -54px;
      position: relative;
      z-index: 4;
      padding-block: 0 34px;
    }

    .register-card {
      display: block;
      max-width: 960px;
      margin-inline: auto;
      border: 1px solid #e0e6ef;
      border-radius: 10px;
      background: #fff;
      padding: 54px 38px 48px;
    }

    .register-form {
      padding-right: 0;
      border-right: 0;
    }

    .register-form h2 {
      color: var(--ink);
      font-size: 28px;
      line-height: 1.2;
      font-weight: 700;
      text-align: center;
    }

    .form-block {
      margin-top: 34px;
    }

    .register-form > .form-block {
      margin-bottom: 50px;
    }

    .form-title {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-bottom: 24px;
      color: var(--ink);
      font-size: 18px;
      font-weight: 700;
    }

    .form-title i {
      width: 28px;
      color: var(--brand);
      font-size: 26px;
      text-align: center;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 22px 26px;
    }

    .form-field.full {
      grid-column: 1 / -1;
    }

    .form-field label {
      display: block;
      margin-bottom: 10px;
      color: #2b3048;
      font-size: 14px;
      font-weight: 700;
    }

    .input,
    .select-input {
      width: 100%;
      height: 58px;
      border: 1px solid #d6dde8;
      border-radius: 6px;
      background: #fff;
      padding: 0 18px;
      color: #2b3048;
      font-size: 16px;
      font-weight: 600;
      outline: none;
      transition: border-color .14s ease;
    }

    .input:focus,
    .select-input:focus {
      border-color: var(--brand);
    }

    .input:focus-visible,
    .select-input:focus-visible,
    .radio-row input:focus-visible,
    .check-row input:focus-visible,
    .register-submit:focus-visible {
      outline: none;
    }

    .phone-row {
      display: grid;
      grid-template-columns: 118px 1fr;
      gap: 10px;
    }

    .password-wrap {
      position: relative;
    }

    .password-wrap .input {
      padding-right: 50px;
    }

    .password-wrap i {
      position: absolute;
      right: 18px;
      top: 50%;
      color: #5e6678;
      font-size: 20px;
      transform: translateY(-50%);
    }

    .choice-list {
      display: grid;
      gap: 18px;
    }

    .radio-row,
    .check-row {
      display: grid;
      grid-template-columns: 22px 1fr;
      gap: 14px;
      align-items: start;
      color: #2b3048;
      font-size: 15px;
      font-weight: 700;
    }

    .radio-row input {
      width: 17px;
      height: 17px;
      margin-top: 8px;
      accent-color: var(--brand);
    }

    .check-row input {
      width: 17px;
      height: 17px;
      margin-top: 5px;
      accent-color: var(--brand);
    }

    .radio-row span,
    .check-row span {
      display: block;
      margin-top: 4px;
      color: #272b34;
      font-size: 14px;
      line-height: 1.45;
      font-weight: 500;
    }

    .check-row {
      margin-top: 18px;
      font-size: 14px;
      font-weight: 600;
    }

    .check-row a {
      color: var(--brand);
      font-weight: 700;
      text-decoration: none;
    }

    .register-submit {
      width: 100%;
      height: 58px;
      margin-top: 34px;
      border: 1px solid var(--brand);
      border-radius: 6px;
      background: var(--brand);
      color: #fff;
      font-size: 17px;
      font-weight: 700;
      cursor: pointer;
    }

    .register-submit:hover {
      background: #7f0325;
      border-color: #7f0325;
    }

    .login-note {
      margin-top: 22px;
      color: #272b34;
      text-align: center;
      font-size: 14px;
      font-weight: 600;
    }

    .login-note a {
      color: var(--brand);
      font-weight: 700;
      text-decoration: none;
    }

    .register-side {
      display: grid;
      gap: 28px;
      align-content: start;
    }

    .register-panel {
      border-radius: 10px;
      background: linear-gradient(135deg, #fff3f5 0%, #fff 100%);
      padding: 34px 28px;
    }

    .register-panel h2,
    .help-panel h2 {
      color: var(--ink);
      font-size: 22px;
      line-height: 1.25;
      font-weight: 700;
      letter-spacing: -.01em;
    }

    .benefit-list {
      display: grid;
      gap: 30px;
      margin-top: 34px;
    }

    .register-benefit {
      display: grid;
      grid-template-columns: 64px 1fr;
      gap: 18px;
      align-items: start;
    }

    .register-benefit-icon {
      display: grid;
      width: 58px;
      height: 58px;
      place-items: center;
      border-radius: 999px;
      background: #fbedf0;
      color: var(--brand);
      font-size: 28px;
    }

    .register-benefit h3 {
      color: var(--ink);
      font-size: 17px;
      line-height: 1.3;
      font-weight: 700;
    }

    .register-benefit p,
    .help-panel p,
    .help-panel a {
      margin-top: 8px;
      color: #272b34;
      font-size: 14px;
      line-height: 1.55;
      font-weight: 600;
    }

    .help-panel {
      border-radius: 10px;
      background: #fff;
      padding: 34px 28px;
    }

    .help-panel a {
      display: flex;
      align-items: center;
      gap: 14px;
      margin-top: 20px;
      color: var(--ink);
      font-size: 16px;
      font-weight: 700;
      text-decoration: none;
    }

    .help-panel i {
      width: 22px;
      color: var(--brand);
      font-size: 22px;
    }

    @media (max-width: 980px) {
      .register-card { grid-template-columns: 1fr; }
      .register-form { padding-right: 0; border-right: 0; }
    }

    @media (max-width: 640px) {
      .register-hero h1 { font-size: 34px; }
      .register-hero-content { padding-block: 34px 74px; }
      .register-card { padding: 24px 18px; }
      .form-grid { grid-template-columns: 1fr; }
      .phone-row { grid-template-columns: 104px 1fr; }
      .register-benefit { grid-template-columns: 52px 1fr; }
      .register-benefit-icon { width: 48px; height: 48px; font-size: 23px; }
    }

:root {
      --brand: #a80532;
      --ink: #192039;
      --muted: #5d6578;
      --line: #e5e9f1;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      color: #26304a;
      background: #fff;
      font-family: Inter, Arial, sans-serif;
      -webkit-font-smoothing: antialiased;
    }

    .page-container {
      width: calc(100% - 48px);
      margin-inline: auto;
    }

    .nav-link {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      min-height: 74px;
      color: #1e253d;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      white-space: nowrap;
    }

    .nav-link.active,
    .nav-link:hover { color: var(--brand); }

    .nav-link.active::after {
      content: "";
      position: absolute;
      right: 0;
      bottom: 0;
      left: 0;
      height: 3px;
      border-radius: 3px 3px 0 0;
      background: var(--brand);
    }

    .nav-item {
      position: relative;
      display: flex;
      align-items: center;
    }

    .nav-caret {
      transition: transform .18s ease;
    }

    .nav-item:hover .nav-caret,
    .nav-item:focus-within .nav-caret {
      transform: rotate(180deg);
    }

    .nav-dropdown {
      position: absolute;
      top: calc(100% - 6px);
      left: 0;
      z-index: 30;
      min-width: 246px;
      border: 1px solid #e3e8f1;
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 14px 30px rgba(28, 38, 63, .12);
      padding: 7px 0;
      opacity: 0;
      visibility: hidden;
      transform: translateY(8px);
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .nav-item:hover .nav-dropdown,
    .nav-item:focus-within .nav-dropdown {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      pointer-events: auto;
    }

    .nav-dropdown a {
      display: block;
      padding: 10px 14px;
      color: #242b43;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
    }

    .nav-dropdown a:hover {
      background: #f9edf1;
      color: var(--brand);
    }

    .hero {
      position: relative;
      min-height: 372px;
      overflow: hidden;
      background: #fbfaf8;
    }

    .hero::after {
      content: "";
      position: absolute;
      z-index: 3;
      right: 0;
      bottom: -1px;
      left: 0;
      height: 80px;
      background: #fff;
      clip-path: polygon(0 44%, 24% 72%, 50% 75%, 76% 71%, 100% 42%, 100% 100%, 0 100%);
    }

    .hero-photo {
      position: absolute;
      z-index: 1;
      inset: 0;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      pointer-events: none;
    }

    .hero-photo::before {
      content: "";
      position: absolute;
      z-index: 2;
      inset: 0;
      display: none;
    }

    .hero-photo img,
    .media-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .hero-photo img {
      width: 58%;
      height: 100%;
      object-fit: cover;
      object-position: 74% 30%;
      -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 10%, rgba(0,0,0,.55) 24%, #000 38%, #000 100%);
      mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.08) 10%, rgba(0,0,0,.55) 24%, #000 38%, #000 100%);
    }

    .btn-primary,
    .btn-outline {
      display: inline-flex;
      height: 44px;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      padding-inline: 24px;
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
      transition: .18s ease;
    }

    .btn-primary {
      border: 1px solid var(--brand);
      background: var(--brand);
      color: #fff;
    }

    .btn-primary:hover { background: #7f0325; border-color: #7f0325; color: #fff; }

    .btn-outline {
      border: 1px solid var(--brand);
      background: rgba(255,255,255,.84);
      color: var(--brand);
    }

    .btn-outline:hover { background: #f8edf1; }

    .field {
      width: 100%;
      height: 43px;
      border: 1px solid #dce2ec;
      border-radius: 5px;
      background: #fff;
      padding: 0 14px;
      color: #2b324a;
      font-size: 14px;
      font-weight: 600;
      outline: none;
    }

    .field:focus {
      border-color: var(--brand);
    }

    .section-title {
      color: var(--ink);
      font-size: 23px;
      line-height: 1.18;
      font-weight: 600;
      letter-spacing: -.02em;
    }

    .link-red {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      color: var(--brand);
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
    }

    .link-red:hover { color: var(--brandDark); }

    .course-card {
      position: relative;
      min-height: 252px;
      overflow: hidden;
      border: 1px solid #dfe5ef;
      border-radius: 7px;
      background: #fff;
    }

    .course-slider {
      display: flex;
      gap: 24px;
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
    }

    .course-slider::-webkit-scrollbar { display: none; }

    .course-slider .course-card {
      flex: 0 0 100%;
      scroll-snap-align: start;
    }

    .course-image {
      position: absolute;
      inset: 0;
      overflow: hidden;
      background: #f4f1ef;
    }

    .course-image::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.18) 42%, rgba(255,255,255,.88) 76%, #fff 100%),
        linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 34%, rgba(255,255,255,.44) 66%, rgba(255,255,255,0) 100%);
    }

    .course-card > .p-4 {
      position: relative;
      z-index: 2;
      display: flex;
      min-height: 252px;
      flex-direction: column;
      padding: 18px 16px 16px;
    }

    .course-card h3 {
      max-width: 74%;
      margin-top: 34px;
      min-height: 46px;
    }

    .course-card .meta-row:first-child {
      margin-top: 2px;
    }

    .tag {
      position: absolute;
      z-index: 3;
      top: 13px;
      left: 13px;
      border-radius: 3px;
      padding: 6px 8px;
      color: #fff;
      font-size: 10px;
      font-weight: 600;
      line-height: 1;
      text-transform: uppercase;
    }

    .tag.bg-brand {
      background: var(--brand);
    }

    .course-card .mt-5 {
      margin-top: auto;
      padding-top: 16px;
    }

    .course-seats {
      font-size: 12px;
      line-height: 1.2;
    }

    .meta-row {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #4d5669;
      font-size: 13px;
      line-height: 1.28;
    }

    .meta-row i {
      width: 13px;
      color: #697184;
      font-size: 13px;
    }

    .category-card {
      display: flex;
      min-height: 144px;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      gap: 14px;
      border: 1px solid #e6eaf1;
      border-radius: 8px;
      color: #232a42;
      background: #fff;
      box-shadow: 0 1px 2px rgba(26, 33, 52, .03);
      text-align: center;
      text-decoration: none;
      font-size: 16px;
      font-weight: 700;
      line-height: 1.25;
      transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
    }

    .category-card:hover {
      border-color: rgba(168, 5, 50, .34);
      box-shadow: 0 10px 22px rgba(26, 33, 52, .08);
      transform: translateY(-2px);
    }

    .icon-outline {
      display: grid;
      width: 48px;
      height: 48px;
      place-items: center;
      color: var(--brand);
      font-size: 38px;
      line-height: 1;
    }

    .step-card {
      position: relative;
      display: grid;
      grid-template-columns: 74px 1fr;
      gap: 18px;
      align-items: center;
    }

    .step-bubble {
      position: relative;
      display: grid;
      width: 70px;
      height: 70px;
      place-items: center;
      border-radius: 999px;
      background: #f8edf1;
      color: var(--brand);
      font-size: 28px;
    }

    .step-number {
      position: absolute;
      top: -6px;
      left: -7px;
      display: grid;
      width: 24px;
      height: 24px;
      place-items: center;
      border-radius: 999px;
      background: var(--brand);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
    }

    .audience-grid {
      display: grid;
      gap: 20px;
    }

    .audience-card {
      display: flex;
      flex-direction: column;
      min-height: 100%;
      border: 1px solid #e0e6ef;
      border-radius: 8px;
      background: #fff;
      padding: 22px;
      box-shadow: 0 8px 20px rgba(26, 33, 52, .05);
    }

    .audience-icon {
      display: grid;
      width: 54px;
      height: 54px;
      place-items: center;
      border-radius: 999px;
      background: #f8edf1;
      color: var(--brand);
      font-size: 23px;
    }

    .audience-card h3 {
      margin-top: 16px;
      color: var(--ink);
      font-size: 18px;
      line-height: 1.3;
      font-weight: 700;
    }

    .audience-card p,
    .audience-card li {
      color: #272b34;
      font-size: 14px;
      line-height: 1.5;
    }

    .audience-card p {
      margin-top: 8px;
      font-weight: 400;
    }

    .audience-card ul {
      margin-top: 12px;
      padding-left: 18px;
    }

    .audience-card li + li {
      margin-top: 7px;
    }

    .benefit-icon {
      display: grid;
      width: 56px;
      height: 56px;
      flex: 0 0 auto;
      place-items: center;
      border-radius: 999px;
      background: #f4f5f8;
      color: #737b8f;
      font-size: 22px;
    }

    .lecturer-card {
      display: grid;
      grid-template-columns: 148px 1fr;
      min-height: 112px;
      overflow: hidden;
      border: 1px solid #e0e6ef;
      border-radius: 8px;
      background: #fff;
    }

    .lecturer-card .media-img {
      object-position: center top;
    }

    .lecturer-card > .p-4 {
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 16px 18px;
    }

    .lecturer-card h3 {
      color: var(--ink);
      font-size: 18px;
      line-height: 1.25;
    }

    .contact-cta {
      display: grid;
      grid-template-columns: 1.25fr .9fr auto;
      gap: 40px;
      align-items: center;
      border-radius: 8px;
      background: #fbedf0;
      padding: 24px 44px 24px 28px;
    }

    .contact-cta-icon {
      color: var(--brand);
      font-size: 50px;
      line-height: 1;
    }

    .contact-cta-methods {
      display: grid;
      gap: 13px;
      color: var(--ink);
      font-size: 18px;
      font-weight: 700;
    }

    .contact-cta-methods a {
      display: inline-flex;
      align-items: center;
      gap: 18px;
      color: inherit;
      text-decoration: none;
    }

    .contact-cta-methods i {
      width: 34px;
      color: var(--brand);
      font-size: 23px;
      text-align: center;
    }

    .faq-row {
      transition: color .18s ease;
    }

    .faq-row:hover {
      color: var(--brand);
    }

    .faq-row i {
      transition: transform .18s ease;
    }

    .faq-row[aria-expanded="true"] {
      color: var(--brand);
    }

    .faq-row[aria-expanded="true"] i {
      transform: rotate(180deg);
    }

    .faq-panel {
      padding: 0 0 14px;
      color: #272b34;
      font-size: 14px;
      line-height: 1.55;
    }

    .faq-panel[hidden] {
      display: none;
    }

    .faq-item + .faq-item { border-top: 1px solid #e3e8f0; }

    .footer-link {
      display: inline-flex;
      transition: color .18s ease;
    }

    .footer-link:hover {
      color: var(--brand);
    }

    .social-link {
      display: inline-grid;
      width: 34px;
      height: 34px;
      place-items: center;
      border-radius: 999px;
      color: #5e6678;
      font-size: 22px;
      transition: color .18s ease, background-color .18s ease, transform .18s ease;
    }

    .social-link:hover {
      background: #f9edf1;
      color: var(--brand);
      transform: translateY(-2px);
    }

    @media (max-width: 1180px) {
      .nav-link { display: none; }
    }

    @media (max-width: 900px) {
      .contact-cta { grid-template-columns: 1fr; }
      .hero { min-height: auto; }
      .hero-photo { opacity: .22; }
      .hero-photo::before { background: rgba(255,255,255,.78); }
      .hero::after { height: 52px; }
    }

    @media (max-width: 640px) {
      .page-container { width: calc(100% - 32px); }
      .section-title { font-size: 20px; }
      .step-card { grid-template-columns: 58px 1fr; }
      .step-bubble { width: 56px; height: 56px; font-size: 22px; }
      .audience-card { padding: 18px; }
      .lecturer-card { grid-template-columns: 112px 1fr; }
    }

    @media (min-width: 640px) {
      .course-slider .course-card { flex-basis: calc((100% - 24px) / 2); }
    }

    @media (min-width: 1024px) {
      .course-slider .course-card { flex-basis: calc((100% - 48px) / 3); }
    }

    .account-page {
      background: #fbfcfe;
    }

    .account-topbar {
      position: relative;
      display: flex;
      align-items: center;
      gap: 16px;
    }

    .account-notification {
      position: relative;
      display: grid;
      width: 42px;
      height: 42px;
      place-items: center;
      border: 0;
      border-radius: 999px;
      background: #f8f6f8;
      color: #26304a;
      cursor: pointer;
      font-family: inherit;
      font-size: 20px;
      text-decoration: none;
    }

    .account-notification span {
      position: absolute;
      top: -3px;
      right: -2px;
      display: grid;
      min-width: 20px;
      height: 20px;
      place-items: center;
      border-radius: 999px;
      background: var(--brand);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
    }

    .notification-menu-wrap {
      position: relative;
      display: grid;
      place-items: center;
    }

    .account-profile {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
      align-items: center;
      border: 0;
      background: transparent;
      color: var(--ink);
      cursor: pointer;
      font-family: inherit;
      padding: 0;
      text-decoration: none;
    }

    .account-profile strong {
      display: block;
      font-size: 15px;
      line-height: 1.1;
      font-weight: 700;
    }

    .account-profile span {
      display: block;
      margin-top: 3px;
      color: #26304a;
      font-size: 13px;
      font-weight: 600;
    }

    .account-profile:hover,
    .account-profile:hover span {
      color: var(--brand);
    }

    .account-dropdown {
      position: absolute;
      top: calc(100% + 14px);
      right: 0;
      z-index: 60;
      width: 286px;
      border: 1px solid #e3e8f1;
      border-radius: 10px;
      background: #fff;
      padding: 10px;
      box-shadow: 0 18px 38px rgba(28, 38, 63, .14);
    }

    .account-dropdown[hidden] {
      display: none;
    }

    .account-dropdown .account-menu {
      gap: 4px;
    }

    .account-dropdown .account-menu a {
      min-height: 44px;
      font-size: 14px;
    }

    .account-dropdown .logout-link {
      margin-top: 0;
      border-top: 0;
      padding-top: 0;
    }

    .notification-dropdown {
      position: absolute;
      top: calc(100% + 14px);
      right: 0;
      z-index: 70;
      width: min(360px, calc(100vw - 32px));
      border: 1px solid #e3e8f1;
      border-radius: 10px;
      background: #fff;
      padding: 12px;
      box-shadow: 0 18px 38px rgba(28, 38, 63, .14);
    }

    .notification-dropdown[hidden] {
      display: none;
    }

    .notification-dropdown-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 4px 4px 10px;
      border-bottom: 1px solid #edf0f5;
    }

    .notification-dropdown-head strong {
      color: var(--ink);
      font-size: 15px;
      font-weight: 600;
    }

    .notification-dropdown-head a,
    .notification-all-link {
      color: var(--brand);
      font-size: 13px;
      font-weight: 600;
      text-decoration: none;
    }

    .notification-preview-list {
      display: grid;
      gap: 6px;
      padding-block: 8px;
    }

    .notification-preview {
      display: grid;
      gap: 5px;
      border-radius: 8px;
      padding: 10px;
      color: #26304a;
      text-decoration: none;
    }

    .notification-preview:hover {
      background: #f8f6f8;
    }

    .notification-preview strong {
      color: var(--ink);
      font-size: 14px;
      font-weight: 600;
      line-height: 1.25;
    }

    .notification-preview span,
    .notification-empty {
      color: #5e6678;
      font-size: 13px;
      line-height: 1.45;
      font-weight: 400;
    }

    .notification-preview time {
      color: #7b8496;
      font-size: 12px;
      font-weight: 500;
    }

    .notification-empty {
      margin: 0;
      padding: 14px 10px;
    }

    .notification-all-link {
      display: flex;
      justify-content: center;
      border-top: 1px solid #edf0f5;
      padding-top: 12px;
    }

    .account-shell {
      display: grid;
      grid-template-columns: 290px minmax(0, 1fr);
      gap: 28px;
      padding-block: 34px 0;
    }

    .account-sidebar {
      position: sticky;
      top: 98px;
      align-self: start;
      border-right: 1px solid #e7ebf2;
      padding-right: 18px;
    }

    .account-sidebar h1 {
      margin-bottom: 20px;
      color: var(--ink);
      font-size: 24px;
      line-height: 1.2;
      font-weight: 700;
      letter-spacing: -.01em;
    }

    .account-menu {
      display: grid;
      gap: 6px;
    }

    .account-menu a,
    .account-menu-toggle {
      display: flex;
      min-height: 48px;
      align-items: center;
      gap: 14px;
      border: 0;
      border-radius: 8px;
      padding: 0 14px;
      background: transparent;
      color: #26304a;
      cursor: pointer;
      font-family: inherit;
      font-size: 15px;
      font-weight: 600;
      text-decoration: none;
      text-align: left;
      width: 100%;
    }

    .account-menu a:hover,
    .account-menu a.active,
    .account-menu-toggle:hover,
    .account-menu-toggle.active {
      background: #fbedf0;
      color: var(--brand);
    }

    .account-menu i {
      width: 20px;
      font-size: 17px;
      text-align: center;
    }

    .account-submenu {
      display: grid;
      gap: 4px;
      margin: -2px 0 4px 34px;
      padding-left: 16px;
      border-left: 1px solid #e4e9f1;
    }

    .account-submenu[hidden] {
      display: none;
    }

    .account-submenu-chevron {
      margin-left: auto;
      font-size: 12px !important;
      transition: transform .18s ease;
    }

    .account-menu-toggle[aria-expanded="true"] .account-submenu-chevron {
      transform: rotate(180deg);
    }

    .account-menu .account-submenu a {
      min-height: 34px;
      border-radius: 6px;
      padding: 0 12px;
      color: #5e6678;
      font-size: 14px;
      font-weight: 500;
    }

    .account-menu .account-submenu a .account-badge {
      min-width: 20px;
      height: 20px;
      font-size: 11px;
    }

    .account-menu .account-submenu a:hover,
    .account-menu .account-submenu a.active {
      background: #f8f6f8;
      color: var(--brand);
    }

    .account-badge {
      margin-left: auto;
      display: grid;
      min-width: 22px;
      height: 22px;
      place-items: center;
      border-radius: 999px;
      background: var(--brand);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
    }

    .logout-link {
      margin-top: 26px;
      border-top: 1px solid #e7ebf2;
      padding-top: 18px;
      color: var(--brand) !important;
    }

    .dashboard-hero {
      position: relative;
      display: flex;
      align-items: center;
      overflow: hidden;
      min-height: 220px;
      border-radius: 12px;
      background: linear-gradient(102deg, #fff3f5 0%, #fff8fa 34%, #fff 70%, #fff 100%);
    }

    .dashboard-hero-content {
      position: relative;
      z-index: 2;
      width: min(56%, 640px);
      padding: 34px 40px;
    }

    .dashboard-hero h2 {
      color: var(--ink);
      font-size: 32px;
      line-height: 1.15;
      font-weight: 700;
      letter-spacing: -.02em;
    }

    .dashboard-hero p {
      margin-top: 12px;
      max-width: 390px;
      color: #272b34;
      font-size: 16px;
      line-height: 1.65;
      font-weight: 500;
    }

    .dashboard-hero img {
      height: 100%;
      width: 100%;
      object-fit: cover;
      object-position: center right;
      display: block;
    }

    .dashboard-hero-image {
      position: absolute;
      inset: 0 0 0 auto;
      overflow: hidden;
      width: min(62%, 760px);
    }

    .dashboard-hero-image::before {
      content: "";
      position: absolute;
      inset: 0 auto 0 0;
      z-index: 1;
      width: 84%;
      background: linear-gradient(90deg, #fff8fa 0%, rgba(255,248,250,.98) 22%, rgba(255,248,250,.82) 48%, rgba(255,248,250,.42) 74%, rgba(255,248,250,0) 100%);
      pointer-events: none;
    }

    .stat-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px;
      margin-top: 26px;
    }

    .account-stat,
    .dashboard-card {
      border: 1px solid #e0e6ef;
      border-radius: 10px;
      background: #fff;
    }

    .account-stat {
      display: grid;
      grid-template-columns: 48px 1fr;
      gap: 16px;
      min-height: 116px;
      align-items: start;
      padding: 22px 28px;
    }

    .stat-icon {
      display: grid;
      width: 48px;
      height: 48px;
      align-self: start;
      justify-self: center;
      place-items: center;
      border-radius: 999px;
      background: #f4f5f8;
      color: #5e6678;
      font-size: 18px;
      line-height: 1;
    }

    .stat-icon i {
      line-height: 1;
    }

    .account-stat strong {
      display: block;
      color: var(--ink);
      font-size: 30px;
      line-height: 1;
      font-weight: 700;
    }

    .account-stat > div > span {
      display: block;
      margin-top: 5px;
      color: #2b3048;
      font-size: 14px;
      font-weight: 700;
    }

    .account-stat a,
    .card-link {
      margin-top: 12px;
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--brand);
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
    }

    .dashboard-grid {
      display: grid;
      grid-template-columns: minmax(0, 1.25fr) minmax(320px, .78fr);
      gap: 22px;
      margin-top: 26px;
      align-items: start;
    }

    .admin-dashboard-upcoming-grid {
      grid-template-columns: 1fr;
    }

    .admin-dashboard-upcoming-grid > .dashboard-stack > .dashboard-card:first-child,
    .admin-dashboard-upcoming-grid > aside {
      display: none;
    }

    .dashboard-stack {
      display: grid;
      gap: 22px;
    }

    .dashboard-card {
      padding: 24px;
      margin-bottom: 40px;
    }

    .card-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 18px;
    }

    .card-head h2 {
      color: var(--ink);
      font-size: 20px;
      line-height: 1.2;
      font-weight: 700;
    }

    .course-item {
      display: grid;
      grid-template-columns: 72px 1fr auto;
      gap: 16px;
      align-items: center;
      border: 1px solid #e6ebf2;
      border-radius: 9px;
      padding: 18px;
    }

    .course-item + .course-item,
    .notice-item + .notice-item,
    .document-item + .document-item,
    .finished-item + .finished-item {
      margin-top: 14px;
    }

    .date-box {
      display: grid;
      min-height: 64px;
      place-items: center;
      border-radius: 8px;
      background: #f8f6f8;
      color: var(--ink);
      text-align: center;
      font-weight: 700;
    }

    .date-box strong {
      display: block;
      font-size: 21px;
      line-height: 1;
    }

    .date-box span {
      display: block;
      margin-top: 4px;
      font-size: 13px;
    }

    .course-tag {
      display: inline-flex;
      border-radius: 4px;
      padding: 5px 8px;
      color: #fff;
      background: #7b3fc4;
      font-size: 10px;
      font-weight: 700;
      line-height: 1;
      text-transform: uppercase;
    }

    .course-tag.blue { background: #0d6ca8; }
    .course-tag.red { background: var(--brand); }

    .course-item h3,
    .finished-item h3,
    .document-item h3,
    .material-card h3,
    .notice-item h3 {
      color: var(--ink);
      font-size: 16px;
      line-height: 1.3;
      font-weight: 700;
    }

    .course-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
      margin-top: 9px;
      color: #5e6678;
      font-size: 13px;
      font-weight: 600;
    }

    .course-meta span {
      align-items: center;
      display: inline-flex;
      gap: 5px;
    }

    .course-meta i { color: #788196; }

    .status-pill {
      display: inline-flex;
      border-radius: 999px;
      padding: 6px 10px;
      background: #e9f8ee;
      color: #238044;
      font-size: 12px;
      font-weight: 700;
      white-space: nowrap;
    }

    .status-pill.attention {
      background: #fff1f4;
      color: var(--brand);
    }

    .status-pill.muted {
      background: #f3f5f9;
      color: #6a7285;
      display: inline-block;
    }

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

    .admin-chart-panel {
      border: 1px solid #e6ebf2;
      border-radius: 8px;
      padding: 18px;
      background: #fbfcfe;
    }

    .admin-chart-panel h3 {
      color: var(--ink);
      font-size: 15px;
      line-height: 1.25;
      font-weight: 700;
    }

    .admin-bar-row {
      margin-top: 16px;
    }

    .admin-bar-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      color: #2b3048;
      font-size: 13px;
      font-weight: 700;
    }

    .admin-bar-label strong {
      color: var(--ink);
      font-size: 18px;
      line-height: 1;
    }

    .admin-bar-track {
      overflow: hidden;
      height: 10px;
      margin-top: 9px;
      border-radius: 999px;
      background: #edf1f6;
    }

    .admin-bar-fill {
      display: block;
      min-width: 4px;
      height: 100%;
      border-radius: inherit;
      background: #7b3fc4;
    }

    .admin-bar-fill.red { background: var(--brand); }
    .admin-bar-fill.blue { background: #0d6ca8; }
    .admin-bar-fill.green { background: #238044; }

    .admin-course-meta,
    .admin-application-count {
      margin-top: 8px;
      color: #6a7285;
      font-size: 13px;
      line-height: 1.4;
      font-weight: 600;
    }

    .admin-application-count {
      margin-top: 0;
      text-align: right;
    }

    .admin-status-list,
    .admin-action-list {
      display: grid;
      gap: 12px;
    }

    .admin-status-list a {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      border: 1px solid #e6ebf2;
      border-radius: 8px;
      padding: 14px;
      color: #2b3048;
      text-decoration: none;
      font-size: 13px;
      font-weight: 700;
    }

    .admin-status-list a:hover {
      border-color: var(--brand);
    }

    .admin-status-list span {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .admin-status-list strong {
      color: var(--ink);
      white-space: nowrap;
    }

    .admin-action-list .small-btn {
      justify-content: flex-start;
      width: 100%;
    }

    .small-btn {
      display: inline-flex;
      min-height: 38px;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 1px solid #dce2ec;
      border-radius: 6px;
      padding: 0 14px;
      color: #2b3048;
      background: #fff;
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
      transition: border-color .18s ease, color .18s ease;
    }

    .small-btn:hover {
      border-color: var(--brand);
      color: var(--brand);
    }

    .small-btn.danger {
      color: #a80532;
    }

    .small-btn.danger:hover {
      border-color: #a80532;
      color: #a80532;
    }

    .finished-item,
    .document-item,
    .notice-item {
      display: grid;
      gap: 14px;
      align-items: center;
    }

    .finished-item {
      grid-template-columns: 58px 1fr auto auto;
      border: 1px solid #e6ebf2;
      border-radius: 9px;
      padding: 14px 16px;
    }

    .notice-item {
      grid-template-columns: 10px 1fr;
      padding-bottom: 16px;
      border-bottom: 1px solid #e6ebf2;
    }

    .notice-dot {
      width: 8px;
      height: 8px;
      align-self: start;
      margin-top: 7px;
      border-radius: 999px;
      background: var(--brand);
    }

    .notice-item p,
    .document-item p,
    .material-card p {
      margin-top: 5px;
      color: #5e6678;
      font-size: 13px;
      line-height: 1.45;
      font-weight: 600;
    }

    .document-item {
      grid-template-columns: 36px 1fr auto;
      padding-bottom: 16px;
      border-bottom: 1px solid #e6ebf2;
    }

    .doc-icon {
      display: grid;
      width: 32px;
      height: 38px;
      place-items: center;
      color: var(--brand);
      font-size: 24px;
    }

    .download-btn {
      display: grid;
      width: 34px;
      height: 34px;
      place-items: center;
      border-radius: 999px;
      color: #2b3048;
      background: #f7f8fb;
      text-decoration: none;
      transition: color .18s ease, background-color .18s ease;
    }

    .download-btn:hover {
      color: var(--brand);
      background: #fbedf0;
    }

    .materials-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }

    .material-card {
      display: grid;
      grid-template-columns: 34px 1fr auto;
      gap: 12px;
      align-items: center;
      border: 1px solid #e6ebf2;
      border-radius: 8px;
      padding: 14px;
    }

    .account-cta {
      display: grid;
      grid-template-columns: 64px minmax(0, 1fr) auto auto;
      gap: 24px;
      align-items: center;
      margin-top: 28px;
      border-radius: 10px;
      background: #fbedf0;
      padding: 24px 34px;
    }

    .account-cta-icon {
      color: var(--brand);
      font-size: 48px;
      line-height: 1;
    }

    .account-cta h2 {
      color: var(--ink);
      font-size: 20px;
      font-weight: 700;
    }

    .account-cta p,
    .account-cta a:not(.btn-primary) {
      color: #272b34;
      font-size: 14px;
      line-height: 1.45;
      font-weight: 700;
      text-decoration: none;
    }

    @media (max-width: 1120px) {
      .account-shell { grid-template-columns: 1fr; }
      .account-sidebar { position: static; border-right: 0; padding-right: 0; }
      .account-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .dashboard-grid { grid-template-columns: 1fr; }
      .materials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .account-cta { grid-template-columns: 52px 1fr; }
      .account-cta .btn-primary { grid-column: 2; justify-self: start; }
    }

    @media (max-width: 760px) {
      .dashboard-hero { grid-template-columns: 1fr; }
      .dashboard-hero-content { width: auto; }
      .dashboard-hero-image { display: none; }
      .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .admin-chart-grid { grid-template-columns: 1fr; }
      .course-item { grid-template-columns: 64px 1fr; }
      .course-item > .grid { grid-column: 1 / -1; justify-self: start; }
      .admin-course-item > .grid { justify-items: start; }
      .admin-application-count { text-align: left; }
      .finished-item { grid-template-columns: 54px 1fr auto; }
      .finished-item .fa-chevron-right { display: none; }
      .materials-grid { grid-template-columns: 1fr; }
    }

    @media (max-width: 560px) {
      .account-menu { grid-template-columns: 1fr; }
      .stat-row { grid-template-columns: 1fr; }
      .dashboard-card { padding: 18px; }
      .dashboard-hero-content { padding: 26px; }
      .account-cta { grid-template-columns: 1fr; padding: 22px; }
      .account-cta .btn-primary { grid-column: auto; }
    }

.form-error {
  margin-top: 8px;
  color: #a80532;
  font-size: 13px;
  font-weight: 600;
}

.form-alert {
  border: 1px solid #f1c6d1;
  border-radius: 8px;
  background: #fff5f7;
  color: #84213b;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 18px;
  padding: 12px 14px;
}

.account-menu form {
  margin: 0;
}

.account-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #26304a;
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  gap: 14px;
  min-height: 48px;
  padding: 0 14px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.account-menu button:hover {
  background: #f7f8fb;
  color: #a80532;
}

.account-menu .account-menu-toggle {
  font-weight: 600;
}

.account-menu .account-menu-toggle:hover,
.account-menu .account-menu-toggle.active {
  background: #fbedf0;
  color: var(--brand);
}

.account-ability {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
  border: 1px solid #e8ecf3;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.account-ability h3 {
  color: #192039;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.account-ability p {
  margin-top: 6px;
  color: #5d6578;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.account-page-description {
  margin-top: 10px;
  color: #5d6578;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
}

.user-page-head {
  align-items: flex-start;
}

.user-page-head .small-btn {
  gap: 8px;
}

.user-filter-form {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-left: auto;
  margin-top: 22px;
  margin-bottom: 4px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e7ebf2;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 16px;
}

.user-filter-form label,
.user-form label {
  color: #4d566a;
  font-size: 13px;
  font-weight: 600;
}

.user-filter-field {
  display: grid;
  flex: 1 1 240px;
  gap: 8px;
  min-width: 0;
}

.user-filter-form-compact {
  margin-left: auto;
  max-width: 420px;
  justify-content: end;
}

.user-filter-form-compact .user-filter-field {
  flex: 0 1 260px;
}

.material-search-form {
  justify-content: flex-start;
  margin-left: 0;
  margin-top: 14px;
  margin-bottom: 14px;
  max-width: 560px;
}

.user-filter-form input,
.user-filter-form select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  background: #fff;
  color: #26304a;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.user-filter-form .small-btn {
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  border-color: #a80532;
  background: #a80532;
  color: #fff;
  white-space: nowrap;
}

.user-filter-form .small-btn:hover {
  border-color: #870428;
  background: #870428;
  color: #fff;
}

.certificates-user-filter-form {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  margin-left: 0;
  max-width: none;
}

.certificates-user-filter-form .user-filter-field {
  min-width: 0;
}

.certificates-user-filter-form .user-filter-field:nth-of-type(1),
.certificates-user-filter-form .user-filter-field:nth-of-type(2),
.certificates-user-filter-form .user-filter-field:nth-of-type(3) {
  grid-column: span 4;
}

.certificates-user-filter-form .user-filter-field:nth-of-type(4) {
  grid-column: span 4;
}

.certificates-user-filter-form .user-filter-field:nth-of-type(5),
.certificates-user-filter-form .user-filter-field:nth-of-type(6) {
  grid-column: span 2;
}

.certificates-user-filter-form .small-btn {
  grid-column: span 2;
  justify-content: center;
  width: 100%;
}

.user-table-wrap {
  margin-top: 22px;
  overflow-x: auto;
}

.user-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.user-table th {
  border-bottom: 1px solid #dfe5ee;
  color: #6a7285;
  font-size: 12px;
  font-weight: 600;
  padding: 0 16px 12px;
  text-align: left;
  text-transform: uppercase;
}

.user-table td {
  border-bottom: 1px solid #edf1f6;
  color: #26304a;
  font-size: 14px;
  font-weight: 500;
  padding: 16px;
  vertical-align: middle;
}

.user-table td strong,
.user-table td span {
  display: block;
}

.user-table td strong {
  color: #192039;
  font-size: 15px;
  font-weight: 600;
}

.user-table td span {
  margin-top: 4px;
  color: #6a7285;
  font-size: 13px;
  font-weight: 500;
}

.user-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-name-line .user-archived-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef1f6;
  color: #9599a4;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.user-role-pill {
  display: inline-flex !important;
  width: max-content;
  max-width: none;
  white-space: nowrap !important;
  border-radius: 999px;
  background: #f3f5f9;
  color: #26304a !important;
  padding: 6px 10px;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.payment-amount-cell {
  white-space: nowrap;
}

.payment-status-cell .user-role-pill {
  max-width: 100%;
  white-space: nowrap !important;
}

.payment-course-meta {
  display: block;
  color: #6a7285;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.user-role-pill.status-pending {
  background: #fff4e0;
  color: #9a6700 !important;
}

.user-role-pill.status-paid {
  background: #e6f4ea;
  color: #1e7b34 !important;
}

.user-role-pill.status-failed {
  background: #fdeaea;
  color: #b3261e !important;
}

.user-table tr.is-archived td,
.user-table tr.is-archived td strong,
.user-table tr.is-archived td span {
  color: #9599a4;
}

.user-table tr.is-archived td .user-role-pill,
.user-table tr.is-archived td .user-group-tag {
  color: #9599a4 !important;
}

.user-group-tag {
  display: inline-flex !important;
  width: max-content;
  max-width: none;
  white-space: nowrap !important;
  border: 1px solid #cbd5e2;
  border-radius: 999px;
  background: #fff;
  color: #26304a !important;
  padding: 6px 10px;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.user-group-empty {
  color: #98a1b2 !important;
}

.user-account-empty {
  color: #98a1b2 !important;
}

.certificate-count-cell {
  text-align: center;
}

.certificate-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  background: #f3e8f5;
  color: #7b2c8c;
  font-size: 13px;
  font-weight: 800 !important;
  line-height: 28px;
}

.account-toggle-field {
  grid-column: 1 / -1;
}

.account-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
}

.account-toggle-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.account-toggle-hint {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.password-generate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 2px 9px;
  border: 1px solid #d7dce5;
  border-radius: 6px;
  background: #f7f8fb;
  color: #5d6578;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  vertical-align: middle;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.password-generate-btn:hover {
  border-color: var(--brand);
  background: #f9edf1;
  color: var(--brand);
}

.password-wrap i {
  cursor: pointer;
}

.user-actions-head {
  text-align: right !important;
}

.user-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  white-space: nowrap;
}

.user-actions form {
  margin: 0;
}

.icon-btn {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fff;
  color: #26304a;
  text-decoration: none;
}

.icon-btn:hover {
  border-color: #a80532;
  color: #a80532;
}

.icon-btn.danger {
  cursor: pointer;
}

.icon-btn.danger:hover {
  border-color: #d63638;
  color: #d63638;
}

.icon-btn:disabled {
  cursor: not-allowed;
  opacity: .38;
}

.course-review-btn.has-score,
.course-review-btn.has-count,
.course-applications-btn.has-count {
  display: inline-flex;
  width: auto;
  min-width: 36px;
  max-width: none;
  padding: 0 10px;
  gap: 6px;
  justify-content: center;
  white-space: nowrap;
}

.course-review-btn span,
.course-applications-btn span {
  margin-top: 0 !important;
  color: inherit !important;
  font-size: 11px !important;
  line-height: 1.15;
}

.participant-add-row {
  display: grid;
  grid-template-columns: minmax(240px, 430px) auto auto;
  justify-content: end;
  gap: 8px;
  align-items: end;
  margin-top: 14px;
}

.participant-add-row label {
  grid-column: 1 / -1;
  color: #2b3048;
  font-size: 13px;
  font-weight: 700;
}

.participant-user-select {
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 14px;
}

/* ── Select2 searchable user picker styled to match the native select ── */
.participant-user-select2 + .select2-container--default {
  width: 100%;
}

.participant-user-select2 + .select2-container--default .select2-selection--single {
  height: 40px;
  border: 1px solid #d6dde8;
  border-radius: 6px;
  background: #fff;
  transition: border-color .14s ease;
}

.participant-user-select2 + .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 30px 0 12px;
  color: #2b3048;
  font-size: 14px;
  font-weight: 600;
  line-height: 38px;
}

.participant-user-select2 + .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #2b3048;
}

.participant-user-select2 + .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 4px;
  height: 38px;
  width: 22px;
}

.participant-user-select2 + .select2-container--default.select2-container--focus .select2-selection--single,
.participant-user-select2 + .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--brand);
  box-shadow: none;
  outline: none;
}

.participant-user-select2 + .select2-container--default .select2-dropdown {
  border: 1px solid #d6dde8;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(25, 32, 57, .12);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  overflow: hidden;
}

.participant-user-select2 + .select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid #d6dde8;
  border-radius: 6px;
  padding: 8px 12px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  outline: none;
}

.participant-user-select2 + .select2-container--default .select2-results__group {
  padding: 8px 12px 2px;
  color: #5d6578;
  font-size: 12px;
  font-weight: 700;
}

.participant-user-select2 + .select2-container--default .select2-results__option {
  padding: 8px 12px;
  color: #2b3048;
  font-size: 13px;
}

.participant-user-select2 + .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: #a80532;
  color: #fff;
}

.participant-user-select2 + .select2-container--default .select2-results__option--disabled {
  color: #aab0bd;
}

.participant-add-btn {
  min-height: 40px;
  padding: 0 14px;
  gap: 7px;
  border: 1px solid #69ab7a;
  border-radius: 7px;
  background: #69ab7a;
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.participant-add-btn:hover {
  border-color: #549368;
  background: #549368;
  color: #fff;
}

.participant-add-btn i {
  width: 14px;
  text-align: center;
}

.participant-add-btn.is-disabled {
  cursor: not-allowed;
  opacity: .45;
}

.course-attendance-board {
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #fff;
  margin: 18px 0 22px;
  overflow: hidden;
}

.course-attendance-board .participant-list-head {
  border-bottom: 1px solid #e7ecf4;
}

.course-attendance-create-btn {
  gap: 8px;
}

.course-attendance-head-actions {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
}

.course-attendance-head-actions form {
  margin: 0;
}

.course-attendance-board .participant-add-row {
  justify-content: start;
  margin: 16px;
}

.course-attendance-list {
  min-height: 120px;
}

.course-attendance-board .user-form-actions {
  border-top: 1px solid #e7ecf4;
  margin-top: 0;
  padding: 14px 16px 16px;
}

.autosave-status {
  align-items: center;
  color: #5d6578;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 6px;
  min-height: 20px;
  padding: 12px 0 14px;
}

.autosave-status[data-state="saving"] {
  color: #3965b8;
}

.autosave-status[data-state="saving"] .fa-spin {
  animation-duration: 0.6s;
}

.autosave-status[data-state="saved"] {
  color: #1c7f4d;
}

.autosave-status[data-state="error"] {
  color: #a80532;
}

.seats-full-note {
  grid-column: 1 / -1;
  color: #a80532;
  font-size: 13px;
  font-weight: 700;
}

.seats-full-note[hidden] {
  display: none;
}

.course-participants-toolbar {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 26px;
  justify-content: space-between;
  margin-top: 18px;
}

.course-participants-toolbar .public-visibility-field {
  align-self: center;
  min-width: 0;
}

.course-participants-toolbar .public-visibility-field small {
  display: block;
  margin-top: 6px;
  max-width: 360px;
}

.course-participants-toolbar .participant-add-row {
  flex: 0 1 auto;
  grid-template-columns: minmax(200px, 300px) auto auto;
  margin-top: 0;
  margin-left: auto;
}

.participant-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.participant-list-panel {
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #fbfcfe;
  min-width: 0;
}

.participant-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #e7ecf4;
  padding: 14px 16px;
}

.participant-list-head h3 {
  color: #192039;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.participant-list-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #eef2f7;
  color: #26304a;
  font-size: 13px;
  font-weight: 800;
}

.participant-dropzone {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 240px;
  padding: 12px;
}

.participant-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #dfe5ee;
  border-radius: 7px;
  background: #fff;
  padding: 12px 10px 12px 12px;
  cursor: grab;
}

.participant-card:hover {
  border-color: #c7d0dd;
}

.participant-card.is-dragging {
  opacity: .55;
}

.participant-card strong,
.participant-card span,
.participant-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-card strong {
  color: #192039;
  font-size: 14px;
  font-weight: 800;
}

.participant-card span {
  margin-top: 3px;
  color: #596174;
  font-size: 13px;
  font-weight: 500;
}

.participant-card small {
  margin-top: 4px;
  color: #7a8496;
  font-size: 12px;
  font-weight: 700;
}

.participant-card-actions {
  display: flex;
  gap: 5px;
}

.participant-card-actions .icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: #33405c;
  font-size: 13px;
}

.participant-card-actions .icon-btn:hover {
  color: #a80532;
}

@media (max-width: 860px) {
  .participant-add-row,
  .participant-lists {
    grid-template-columns: 1fr;
  }

  .participant-add-row .small-btn {
    justify-content: center;
  }
}

.participant-add-btn[hidden],
.participant-list-panel[hidden] {
  display: none;
}

.course-participants-board.has-single-list .participant-lists {
  grid-template-columns: 1fr;
}

.user-table-empty {
  color: #6a7285 !important;
  text-align: center;
}

.user-pagination {
  margin-top: 20px;
}

.user-success {
  border-color: #bfe8cd;
  background: #f1fbf5;
  color: #236a3a;
  margin-top: 18px;
}

.course-sync-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.course-sync-actions form {
  margin: 0;
}

.course-sync-actions .small-btn {
  gap: 8px;
}

.report-filter-form {
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #fbfcfe;
  padding: 14px;
}

.report-filter-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.report-filter-form .form-field label {
  margin-bottom: 5px;
  color: #5d6578;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}

.report-filter-form .input,
.report-filter-form .select-input {
  height: 38px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 400;
}

.report-filter-field-wide {
  grid-column: span 2;
}

.report-filter-field-compact {
  grid-column: span 2;
}

.report-filter-field-row {
  grid-row: 2;
  grid-column: span 4;
}

.report-category-select2 + .select2-container--default .select2-selection--multiple {
  min-height: 38px;
  border: 1px solid #d6dde8;
  border-radius: 6px;
  background: #fff;
  padding: 0 6px;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
}

.report-category-select2 + .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--brand);
  box-shadow: none;
  outline: none;
}

.report-category-select2 + .select2-container--default .select2-selection--multiple .select2-selection__choice {
  margin: 4px 4px 4px 0;
  padding: 3px 8px;
  border: 1px solid #c7c8c9;
  border-radius: 4px;
  background-color: #e9ecef;
  color: #212529;
  font-size: 12px;
  line-height: 1.35;
}

.report-filter-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.report-summary-grid .account-stat {
  min-height: 104px;
  padding: 18px;
}

.report-table td {
  vertical-align: top;
}

.course-index-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  border-bottom: 1px solid #e4e8f0;
}

.course-index-tab {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border-bottom: 2px solid transparent;
  color: #687187;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.course-index-tab:hover {
  color: #a80532;
}

.course-index-tab.is-active {
  border-bottom-color: #a80532;
  color: #22283a;
}

.first-aid-city-filter {
  justify-content: flex-start;
  margin-left: 0;
  margin-top: 18px;
  max-width: 560px;
}

[data-first-aid-course-results][aria-busy="true"] {
  opacity: .62;
  pointer-events: none;
}

.highlighted-field {
  position: relative;
  grid-column: 1 / -1;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  background: #fbfcfe;
  box-shadow: 0 2px 8px rgba(31, 38, 54, .05);
  padding: 12px;
}

.highlighted-field label,
.highlighted-field .form-field-label {
  align-items: center;
  color: #22283a;
  display: flex;
  gap: 8px;
  font-weight: 800;
}

.highlighted-field .form-field-label {
  margin-bottom: 10px;
}

.highlighted-field .select-input,
.highlighted-field .input {
  border-color: #b9c3d2;
  background: #fff;
}

.highlighted-field .select-input:focus,
.highlighted-field .input:focus {
  border-color: #a80532;
  box-shadow: 0 0 0 3px rgba(168, 5, 50, .12);
  outline: none;
}

.org-course-directory {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  margin-top: 22px;
}

.org-course-sidebar {
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  padding: 16px;
}

.account-course-filter-form,
.course-filter-block,
.course-filter-options {
  display: grid;
  gap: 12px;
}

.course-filter-block + .course-filter-block {
  border-top: 1px solid #edf1f6;
  padding-top: 14px;
}

.course-filter-label,
.course-filter-block legend {
  color: #192039;
  font-size: 13px;
  font-weight: 800;
}

.course-search-field {
  align-items: center;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  min-height: 42px;
  border: 1px solid #d9e0ea;
  border-radius: 8px;
  padding: 0 12px;
}

.course-search-field i {
  color: #7b8498;
}

.course-search-field input {
  border: 0;
  color: #26304a;
  font-size: 14px;
  font-weight: 500;
  outline: 0;
}

.course-filter-option {
  align-items: center;
  color: #30384f;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
}

.course-filter-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.course-filter-actions .small-btn {
  gap: 8px;
}

.course-reset-link {
  color: #a80532;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.report-stats-section {
  margin-top: 20px;
}

.report-stats-columns {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.report-stats-card {
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  padding: 18px 20px;
}

.report-stats-title {
  margin: 0 0 14px;
  color: #192039;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-stats-title i {
  color: #a80532;
  font-size: 15px;
}

.report-stats-empty {
  color: #5d6578;
  font-size: 13px;
  margin: 0;
}

.report-bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-bar-item {
  display: grid;
  grid-template-columns: 140px 1fr 40px;
  align-items: center;
  gap: 10px;
}

.report-bar-label {
  font-size: 13px;
  font-weight: 600;
  color: #192039;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-bar-track {
  height: 18px;
  border-radius: 4px;
  background: #f0f2f7;
  overflow: hidden;
}

.report-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: #a80532;
  min-width: 2px;
  transition: width .35s ease;
}

.report-bar-count {
  font-size: 13px;
  font-weight: 700;
  color: #192039;
  text-align: right;
}

@media (max-width: 768px) {
  .report-stats-columns {
    grid-template-columns: 1fr;
  }

  .report-bar-item {
    grid-template-columns: 110px 1fr 34px;
    gap: 8px;
  }
}

.org-course-results {
  display: grid;
  gap: 14px;
}

.org-course-card {
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 220px);
  padding: 14px;
}

.org-course-card.is-readonly {
  grid-template-columns: minmax(0, 1fr);
}

a.org-course-card-link {
  color: inherit;
  position: relative;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}

a.org-course-card-link:hover {
  border-color: rgba(168, 5, 50, .28);
  box-shadow: 0 6px 20px rgba(26, 33, 52, .08);
}

.org-course-card-hover-btn {
  align-items: center;
  background: var(--brand);
  border-radius: 5px;
  color: #fff;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  opacity: 1;
  padding: 8px 18px;
  position: absolute;
  right: 16px;
  top: 16px;
  transition: opacity .22s ease, transform .22s ease;
}


.org-course-card-main {
  display: grid;
  gap: 16px;
  grid-template-columns: 72px minmax(0, 1fr);
}

.org-course-content h3 {
  color: #192039;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  margin-top: 10px;
}

.org-course-kicker {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.org-course-excerpt {
  color: #5d6578;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  margin-top: 8px;
}

.org-course-assignment {
  background: #f8fafc;
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.org-course-assignment-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.org-course-assignment-title {
  display: grid;
  gap: 2px;
}

.org-course-assignment-title strong {
  color: #192039;
  font-size: 14px;
  font-weight: 800;
}

.org-course-assignment-title small {
  color: #6a7285;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.org-course-assignment-count {
  align-items: center;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 999px;
  color: #192039;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 26px;
  justify-content: center;
  min-width: 26px;
  padding: 0 7px;
  white-space: nowrap;
}

.org-course-assignee-list {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  max-height: 176px;
  overflow: auto;
  padding: 0;
}

.org-course-assignee-list li {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e9f1;
  border-radius: 6px;
  display: grid;
  gap: 9px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 46px;
  padding: 6px 8px;
}

.org-course-participant-icon {
  align-items: center;
  background: #f3eef2;
  border-radius: 999px;
  color: #a80532;
  display: inline-flex;
  font-size: 13px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.org-course-assignee-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.org-course-assignee-text strong {
  color: #26304a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.org-course-assignee-text small,
.org-course-empty {
  color: #5d6578;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.org-course-empty {
  margin: 0;
}

.org-course-assign-form {
  display: grid;
  gap: 10px;
}

.org-course-add-panel {
  border-top: 1px solid #e5e9f1;
  padding-top: 12px;
}

.org-course-add-panel summary {
  align-items: center;
  border: 1px dashed #cfd7e5;
  border-radius: 8px;
  color: #a80532;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 12px;
}

.org-course-add-panel summary::-webkit-details-marker {
  display: none;
}

.org-course-add-panel summary span {
  align-items: center;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
}

.org-course-add-panel summary small {
  color: #6a7285;
  font-size: 12px;
  font-weight: 700;
}

.org-course-add-panel[open] summary,
.org-course-add-panel summary:hover {
  background: #fff;
  border-color: #efccd6;
}

.org-course-add-options {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 220px;
  overflow: auto;
}

.org-course-participant-option {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 9px;
  grid-template-columns: 18px 30px minmax(0, 1fr);
  min-height: 48px;
  padding: 7px 9px;
}

.org-course-participant-option:hover {
  background: #fff8fa;
  border-color: #efccd6;
}

.org-course-participant-option input {
  accent-color: #a80532;
  height: 17px;
  margin: 0;
  width: 17px;
}

.org-course-add-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.org-course-add-actions .small-btn {
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  font-size: 12px;
  width: 100%;
}

.account-course-detail {
  gap: 0;
}

.account-course-detail .course-detail-hero {
  border: 0;
  border-radius: 0;
  padding: 36px 0 30px;
}

.account-course-detail .course-detail-hero-grid {
  align-items: center;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 860px);
}

.account-course-detail .course-detail-hero-content h1 {
  color: #192039;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
}

.account-course-topbar {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.account-course-detail .course-back-link {
  align-items: center;
  color: #a80532;
  display: inline-flex;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
  text-decoration: none;
}

.account-course-detail .course-back-link:hover {
  color: #7f0325;
}

.account-course-edit-link {
  gap: 8px;
}

.account-course-detail .course-tabs-section {
  margin-top: 30px;
  background: #fff;
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  padding: 28px;
}

.account-course-detail .course-tabs-nav {
  border-bottom: 1px solid #e5e9f1;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 28px;
  padding-bottom: 0;
}

.account-course-detail .course-tab-btn {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  color: #596174;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  min-height: 48px;
  padding: 0 24px;
}

.account-course-detail .course-tab-btn:hover,
.account-course-detail .course-tab-btn.is-active {
  border-bottom-color: #a80532;
  background: transparent;
  color: #a80532;
}

.account-course-detail .course-tab-content {
  color: #192039;
  font-size: 16px;
  line-height: 1.7;
  max-width: 760px;
  text-align: justify;
}

.account-course-detail .course-tab-content p {
  margin: 0 0 14px;
}

.account-course-detail .course-tab-content :last-child {
  margin-bottom: 0;
}

.account-course-detail .course-tab-content ul,
.account-course-detail .course-tab-content ol {
  margin: 16px 0;
  padding-left: 22px;
}

.account-course-detail .course-tab-content li {
  margin: 7px 0;
  list-style: disc;
}

.account-course-detail .course-tab-content strong,
.account-course-detail .course-tab-content b {
  font-weight: 800;
}

.account-course-detail .course-detail-overview {
  color: #192039;
  display: grid;
  gap: 36px;
  margin-top: 44px;
  max-width: 920px;
  /* Same card container as .course-tabs-section */
  background: #fff;
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  padding: 28px;
}

.account-course-detail .course-detail-overview > p {
  font-size: 16px;
  line-height: 1.35;
  margin: 0;
}

.account-course-detail .course-detail-overview > p strong {
  display: inline-block;
  font-weight: 800;
  margin-bottom: 2px;
}

.account-course-detail .course-detail-info-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.account-course-detail .course-detail-info-card {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.account-course-detail .course-detail-info-card h2 {
  color: #192039;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

/* The "Tēmas" card title is deliberately not bold. */
.account-course-detail .course-detail-info-card h2.is-plain {
  font-weight: 400;
}

.account-course-detail .course-detail-info-card p {
  align-items: center;
  color: #192039;
  display: flex;
  font-size: 16px;
  gap: 11px;
  line-height: 1.3;
  margin: 0;
  min-width: 0;
}

.account-course-detail .course-detail-info-card i {
  align-items: center;
  color: #a80532;
  display: inline-flex;
  flex: 0 0 20px;
  font-size: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}

.account-course-detail .course-detail-info-card .fa-clock {
  background: #a80532;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  height: 20px;
  width: 20px;
}

.account-course-detail .course-detail-info-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-course-meta-layout {
  display: grid;
  grid-template-columns: minmax(0, 860px);
  justify-content: start;
  padding: 28px 0 0;
}

.account-course-meta-panel {
  border: 0;
  border-radius: 0 0 8px 8px;
}

.account-course-detail-list {
  background: #fff;
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  box-shadow: none;
  display: flex;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 30px;
}

.account-course-detail-list > div {
  align-content: start;
  border-bottom: 1px solid #edf1f6;
  border-right: 1px solid #edf1f6;
  border-radius: 0;
  flex: 1;
  gap: 8px;
  min-height: 90px;
  padding: 16px 16px;
}

.account-course-detail-list > div:first-child {
  grid-column: auto;
  min-height: 0;
}

.account-course-detail-list > div:last-child {
  border-right: 0;
}

.account-course-detail-list dt {
  align-items: center;
  color: #5d6578;
  display: grid;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
  grid-template-columns: 28px minmax(0, 1fr);
  letter-spacing: 0;
  line-height: 1.25;
}

.account-course-detail-list dt i {
  align-items: center;
  background: #fff6f8;
  border-radius: 999px;
  box-shadow: none;
  color: #a80532;
  display: inline-flex;
  font-size: 14px;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.account-course-detail-list dd {
  color: #192039;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.account-course-detail-list > div:nth-child(3n) {
  border-right: 0;
}

.account-course-detail-list > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

@media (max-width: 820px) {
  .report-filter-grid,
  .report-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-filter-field-row {
    grid-row: auto;
    grid-column: span 2;
  }

  .report-filter-field-compact {
    grid-column: span 1;
  }

  .account-course-detail .course-detail-info-grid,
  .account-course-detail-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .account-course-detail-list > div:nth-child(3n) {
    border-right: 1px solid #edf1f6;
  }

  .account-course-detail-list > div:nth-child(2n) {
    border-right: 0;
  }

  .account-course-detail-list > div:nth-last-child(-n + 3) {
    border-bottom: 1px solid #edf1f6;
  }

  .account-course-detail-list > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .report-filter-grid,
  .report-summary-grid {
    grid-template-columns: 1fr;
  }

  .report-filter-field-row,
  .report-filter-field-wide,
  .report-filter-field-compact {
    grid-row: auto;
    grid-column: auto;
  }

  .account-course-detail .course-detail-hero {
    padding: 28px 0 34px;
  }

  .account-course-detail .course-detail-hero-content h1 {
    font-size: 31px;
  }

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

  .account-course-detail .course-tab-content {
    font-size: 16px;
  }

  .account-course-detail .course-tab-btn {
    padding: 0 16px;
  }

  .account-course-detail-list {
    grid-template-columns: 1fr;
  }

  .account-course-detail-list > div,
  .account-course-detail-list > div:nth-child(2n),
  .account-course-detail-list > div:nth-child(3n) {
    border-right: 0;
  }

  .account-course-detail-list > div:nth-last-child(-n + 2) {
    border-bottom: 1px solid #edf1f6;
  }

  .account-course-detail-list > div:last-child {
    border-bottom: 0;
  }
}

.notification-list {
  display: grid;
  gap: 12px;
}

.notification-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  border: 1px solid #e6ebf2;
  border-radius: 9px;
  background: #fff;
  overflow: hidden;
}

.notification-row.is-unseen {
  border-color: #f0c9d4;
  background: #fff8fa;
}

.notification-row-link {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.notification-row-link:hover h3 {
  color: var(--brand);
}

.notification-state {
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 999px;
  background: #c7cedb;
}

.notification-row.is-unseen .notification-state {
  background: var(--brand);
}

.notification-row-body {
  min-width: 0;
}

.notification-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.notification-row h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}

.notification-row time,
.notification-detail time {
  flex: 0 0 auto;
  color: #7b8496;
  font-size: 13px;
  font-weight: 500;
}

.notification-row p {
  margin-top: 7px;
  color: #5e6678;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
}

.notification-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.notification-delete-form {
  margin: 16px 16px 0 0;
}

.notification-batches {
  margin-bottom: 26px;
}

.notification-batches-head h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.notification-batch-list {
  display: grid;
  gap: 10px;
}

.notification-batch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 16px;
  border: 1px solid #e6ebf2;
  border-radius: 9px;
  background: #f8fafc;
  color: inherit;
  text-decoration: none;
}

.notification-batch-row:hover {
  border-color: var(--brand);
}

.notification-batch-main {
  min-width: 0;
}

.notification-batch-main h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.notification-batch-main p {
  margin: 3px 0 0;
  color: #6a7285;
  font-size: 13px;
}

.notification-batch-actions {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.notification-batch-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.notification-batch-action:hover {
  text-decoration: underline;
}

.notification-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

.notification-status.is-seen {
  color: #2f7d4f;
}

.notification-status.is-unseen {
  color: #7b8496;
}

.notification-recipients-panel {
  margin-top: 22px;
  border: 1px solid #e6ebf2;
  border-radius: 9px;
  background: #fbfcfe;
  padding: 16px;
}

.notification-recipients-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.notification-recipients-head h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}

.notification-recipients-count {
  display: inline-flex;
  min-width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef2f7;
  color: #26304a;
  font-size: 13px;
  font-weight: 700;
  padding: 0 8px;
}

.notification-recipients-status {
  color: #6a7285;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.notification-recipients-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  max-height: 300px;
  overflow: auto;
}

.notification-recipients-row {
  display: grid;
  gap: 3px;
  border: 1px solid #e6ebf2;
  border-radius: 7px;
  background: #fff;
  padding: 10px 12px;
}

.notification-recipients-row strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.notification-recipients-row span {
  color: #6a7285;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.notification-empty-panel {
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 180px;
  border: 1px dashed #d8dee9;
  border-radius: 9px;
  color: #5e6678;
  text-align: center;
}

.notification-empty-panel i {
  color: #a8b0bf;
  font-size: 28px;
}

.notification-empty-panel p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
}

.notification-detail .card-head {
  align-items: flex-start;
}

.notification-detail h2 {
  margin-top: 12px;
}

.notification-back-link {
  margin-top: 0;
}

.notification-full-body {
  margin-top: 22px;
  color: #26304a;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
}

.user-form {
  margin-top: 22px;
}

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

.compact-form .user-form-grid,
.compact-course-form .user-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 12px;
}

.compact-form .input,
.compact-form .select-input,
.compact-course-form .input,
.compact-course-form .select-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.compact-form .form-field label,
.compact-course-form .form-field label,
.compact-course-form .form-field .form-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #22283d;
}

.compact-form .admin-textarea,
.compact-course-form .admin-textarea {
  min-height: 82px;
  padding: 10px 12px;
}

.compact-form .admin-textarea.tall,
.compact-course-form .admin-textarea.tall {
  min-height: 140px;
}

.email-template-list {
  display: grid;
  gap: 22px;
}

.email-template-form {
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}

.email-template-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.email-template-head h3 {
  margin: 0;
  color: #192039;
  font-size: 18px;
  font-weight: 800;
}

.email-template-head p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.email-placeholder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.email-placeholder-list code {
  border: 1px solid #e5e9f1;
  border-radius: 999px;
  padding: 5px 9px;
  background: #f7f8fb;
  color: #192039;
  font-size: 12px;
  font-weight: 700;
}

.email-list-intro {
  margin: 0 0 20px;
  color: #5d6578;
  font-size: 14px;
}

.email-template-card {
  display: block;
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  text-decoration: none;
  transition: border-color .2s, box-shadow .2s;
}

.email-template-card:hover {
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(28, 38, 63, .08);
}

.email-template-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.email-template-card-head h3 {
  margin: 0;
  color: #192039;
  font-size: 18px;
  font-weight: 800;
}

.email-template-card-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.email-template-card-key {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 13px;
}

.review-star-rating {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
  min-height: 44px;
  align-items: center;
}

.review-star-rating input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.review-star-rating label {
  margin: 0;
  cursor: pointer;
  color: #e3e7ef;
  font-size: 22px;
  line-height: 1;
  transition: color .15s ease, transform .15s ease;
}

.review-star-rating label:hover,
.review-star-rating label:hover ~ label,
.review-star-rating input:checked + label,
.review-star-rating input:checked + label ~ label {
  color: #f3b21b;
}

.review-star-rating input:focus-visible + label {
  outline: 2px solid #a80532;
  outline-offset: 3px;
  border-radius: 4px;
}

.review-star-rating label:hover {
  transform: translateY(-1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.course-groups-field {
  align-self: stretch;
}

.course-group-checkbox-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.course-group-checkbox-list .check-row {
  align-items: center;
  border: 1px solid #dfe5ee;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 18px 1fr;
  margin: 0;
  min-height: 44px;
  padding: 10px 12px;
}

.course-group-checkbox-list .check-row input {
  accent-color: #a80532;
  height: 17px;
  margin: 0;
  width: 17px;
}

.course-group-checkbox-list .check-row span {
  color: #26304a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.public-visibility-field {
  align-self: end;
}

.public-visibility-field .check-row {
  align-items: center;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  padding: 0 2px;
}

.public-visibility-field .check-row input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #a80532;
}

.public-visibility-field .check-row span {
  color: #26304a;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.public-visibility-field + .public-visibility-field {
  margin-top: -8px;
}

.user-form label span {
  font-weight: 600;
}

.user-form label .required-mark {
  color: #a80532;
  font-weight: 800;
}

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

.course-applications-panel {
  border-top: 1px solid #e5e9f1;
  margin-top: 26px;
  padding-top: 22px;
}

.course-groups-panel {
  border-top: 1px solid #e5e9f1;
  margin-top: 24px;
  padding-top: 22px;
}

.course-groups-panel h3,
.course-participant-group h4 {
  color: #192039;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.course-group-list,
.course-participant-groups {
  display: grid;
  gap: 16px;
}

.course-group-card,
.course-participant-group {
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  padding: 16px;
}

.course-group-card-head,
.course-participant-group-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.course-group-card-head strong,
.course-participant-group-head strong {
  color: #192039;
  font-size: 14px;
  font-weight: 700;
}

.course-participant-group-head span {
  color: #6a7285;
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

.course-participant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.course-manual-participant {
  background: #f8fafc;
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 16px;
}

.course-manual-participant h4 {
  color: #192039;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
}

.course-participant-form .user-form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.participant-group-picker {
  margin-top: 14px;
}

.participant-group-picker > strong {
  color: #192039;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.participant-group-options {
  display: grid;
  gap: 8px;
}

.participant-group-option {
  align-items: center;
  background: #fff;
  border: 1px solid #e5e9f1;
  border-radius: 6px;
  color: #30384f;
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  padding: 9px 10px;
}

.participant-group-option input {
  flex: 0 0 auto;
}

.compact-actions {
  margin-top: 16px;
}

.course-group-grid .field-wide {
  grid-column: 1 / -1;
}

.course-groups-cell {
  min-width: 300px;
}

.course-group-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-group-summary-list li {
  background: #f8fafc;
  border: 1px solid #e5e9f1;
  border-left: 3px solid #a80532;
  border-radius: 6px;
  display: grid;
  flex: 1 1 220px;
  gap: 5px;
  padding: 8px 10px;
}

.course-group-summary-main,
.course-group-summary-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.course-group-summary-main strong {
  color: #192039;
  font-size: 13px;
  font-weight: 700;
}

.course-group-summary-main span,
.course-group-summary-meta span {
  color: #5d6578;
  font-size: 12px;
  font-weight: 600;
}

.compact-course-form .readonly-input {
  background: #f5f7fb;
  color: #596174;
  cursor: default;
}

.date-picker-field {
  position: relative;
}

.date-picker-field .date-display-input {
  padding-right: 44px;
}

.date-picker-field .native-date-input {
  border: 0;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
}

.date-picker-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #596174;
  cursor: pointer;
  display: inline-flex;
  height: 36px;
  justify-content: center;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
}

.date-picker-button:hover {
  color: #a80532;
}

.course-days-list {
  display: grid;
  gap: 10px;
}

.course-day-row {
  align-items: flex-start;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.course-day-row .date-picker-field,
.course-day-row .course-day-time {
  width: 100%;
}

.course-day-remove {
  flex: 0 0 auto;
}

.delete-check {
  align-items: center;
  color: #a80532;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

.course-applications-panel .card-head {
  margin-bottom: 14px;
}

.course-applications-panel h3 {
  color: #192039;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.application-summary {
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 16px;
}

.application-summary span {
  color: #6a7285;
  font-size: 13px;
  font-weight: 500;
}

.application-summary strong {
  color: #192039;
  font-size: 17px;
  font-weight: 600;
}

.application-summary a {
  color: #a80532;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  border-bottom: 1px solid #e5e9f1;
}

.admin-subnav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-bottom: 2px solid transparent;
  color: #5d6578;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.admin-subnav a:hover,
.admin-subnav a.active {
  border-color: #a80532;
  color: #a80532;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, .8fr) 120px auto;
  gap: 14px;
  align-items: end;
  margin-top: 22px;
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  padding: 16px;
}

.admin-inline-form.compact {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, .6fr) auto;
}

.admin-inline-form.lookup-form {
  grid-template-columns: minmax(220px, 360px) minmax(96px, max-content) auto;
  justify-content: start;
}

.lookup-form .lookup-name-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.admin-inline-actions {
  display: flex;
  gap: 10px;
}

.admin-inline-actions .small-btn {
  gap: 8px;
  min-height: 44px;
}

.admin-textarea {
  min-height: 108px;
  padding: 12px;
}

.admin-textarea.tall {
  min-height: 190px;
}

.color-swatch {
  display: inline-block !important;
  width: 18px;
  height: 18px;
  margin: 0 8px 0 0 !important;
  border: 1px solid #d9e0ea;
  border-radius: 999px;
  vertical-align: middle;
}

.material-form .choice-list {
  max-height: 260px;
  overflow: auto;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
}

.choice-row,
.attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #2b3048;
  font-size: 14px;
  font-weight: 600;
}

.choice-row {
  justify-content: flex-start;
}

.choice-row input,
.attachment-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.attachment-list {
  display: grid;
  gap: 8px;
}

.attachment-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.material-view-list {
  display: grid;
  gap: 8px;
  margin-top: 0;
}

.material-view-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 10px 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
}

.material-view-card .card-head {
  align-items: center;
  min-width: 0;
  margin-bottom: 0;
}

.material-view-card h3 {
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.material-view-card p {
  margin-top: 6px;
  color: #5e6678;
  font-size: 14px;
  line-height: 1.55;
}

.material-view-card .card-head span {
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.material-list-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #5e6678;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.material-list-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.material-list-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.material-list-actions .small-btn {
  min-height: 32px;
  padding: 0 10px;
}

.material-detail {
  display: grid;
  gap: 24px;
}

.material-content {
  color: #2b3048;
  line-height: 1.65;
}

.material-content ul,
.material-content ol {
  padding-left: 24px;
}

.material-downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.material-downloads .small-btn {
  gap: 8px;
}

.material-detail-downloads {
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.material-detail-downloads h3 {
  flex-basis: 100%;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .material-view-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .material-list-meta {
    grid-column: 1 / -1;
  }

  .material-list-actions {
    grid-row: 1;
    grid-column: 2;
  }

  .user-filter-form {
    display: grid;
    margin-left: 0;
    max-width: none;
  }

  .certificates-user-filter-form {
    grid-template-columns: 1fr;
  }

  .certificates-user-filter-form .user-filter-field:nth-of-type(1),
  .certificates-user-filter-form .user-filter-field:nth-of-type(2),
  .certificates-user-filter-form .user-filter-field:nth-of-type(3),
  .certificates-user-filter-form .user-filter-field:nth-of-type(4),
  .certificates-user-filter-form .user-filter-field:nth-of-type(5),
  .certificates-user-filter-form .user-filter-field:nth-of-type(6) {
    grid-column: auto;
  }

  .certificates-user-filter-form .small-btn {
    grid-column: auto;
  }

  .user-form-grid {
    grid-template-columns: 1fr;
  }

  .compact-form .user-form-grid,
  .compact-course-form .user-form-grid {
    grid-template-columns: 1fr;
  }

  .org-course-directory,
  .org-course-card,
  .org-course-card-main,
  .org-course-assign-form {
    grid-template-columns: 1fr;
  }

  .admin-inline-form {
    grid-template-columns: 1fr;
  }
}

.login-page .login-hero-content {
  align-items: center;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.login-page .login-hero-content > div {
  max-width: 720px;
}

.login-page .login-hero h1,
.login-page .login-hero p {
  margin-inline: auto;
}

.login-page .login-hero-action {
  justify-self: center;
  margin-bottom: 0;
  margin-top: 8px;
}

.check-row {
  display: flex !important;
}

/* ── Select2 custom styling for course-form multi-select ── */
.course-category-select2 + .select2-container--default .select2-selection--multiple,
.course-group-select2 + .select2-container--default .select2-selection--multiple {
  min-height: 43px;
  border: 1px solid #dce2ec;
  border-radius: 5px;
  background: #fff;
  padding: 4px 8px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
}

.course-category-select2 + .select2-container--default.select2-container--focus .select2-selection--multiple,
.course-group-select2 + .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--brand);
}

.course-category-select2 + .select2-container--default .select2-selection--multiple .select2-selection__choice,
.course-group-select2 + .select2-container--default .select2-selection--multiple .select2-selection__choice {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 3px 4px 3px 0;
  padding: 5px 10px;
  border: 1px solid #c7c8c9;
  border-radius: 4px;
  background-color: #e9ecef;
  color: #212529;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

.course-category-select2 + .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
.course-group-select2 + .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  margin-right: 2px;
  border-right: 0;
  color: #6c757d;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}

.course-category-select2 + .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  color: #343a40;
}

.course-category-select2 + .select2-container--default .select2-search--inline .select2-search__field,
.course-group-select2 + .select2-container--default .select2-search--inline .select2-search__field {
  margin-top: 4px;
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
}

.report-filter-field-wide .select2-selection__choice__remove {
  border: 0 !important;
}

.report-category-select2 + .select2-container--default .select2-selection--multiple .select2-selection__choice {
  padding-left: 13px !important;
}

.btn-draft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 26px;
  border: 1px solid #6c757d;
  border-radius: 6px;
  background: #6c757d;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: Inter, Arial, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s;
  white-space: nowrap;
}

.btn-draft:hover {
  background: #5a6268;
  border-color: #5a6268;
  color: #fff;
}

.draft-tag {
  display: inline-block !important;
  padding: 2px 10px;
  border-radius: 999px;
  background: #0d6efd;
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: middle;
}

.draft-status-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  border-radius: 6px;
  background: #e7f1ff;
  color: #084298;
  font-size: 14px;
  font-weight: 500;
}

.draft-status-notice i {
  font-size: 16px;
}

.draft-status-notice strong {
  font-weight: 700;
}

/* Certificate badge & inline form */
.certificate-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #d0021b;
  border-radius: 4px;
  padding: 2px 8px;
}

.inline-form {
  display: inline;
}

.document-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.document-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Certificate preview in show page */
.certificate-preview {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.certificate-preview-frame {
  width: 100%;
  overflow-x: auto;
}

.certificate-preview-frame iframe,
.certificate-preview-frame object {
  width: 100%;
  min-height: 400px;
  border: none;
}

.certificate-preview-frame .certificate,
.certificate-preview-frame [class*="certificate"] {
  transform-origin: top left;
}

/* Participant card extra button spacing */
.participant-card-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.account-page-description {
  padding-right: 16px;
}

.course-attendance-board .autosave-status {
  padding-left: 16px;
}

/* Poll admin */
.poll-questions-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.poll-questions-head h3 {
  margin: 0;
  font-size: 16px;
}

.poll-questions-head .account-page-description {
  margin: 4px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
}

.poll-questions-list {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.poll-question-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.poll-question-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poll-question-number {
  font-weight: 700;
  color: var(--brand);
}

.poll-question-fields {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: 10px;
}

.poll-question-fields .form-field {
  margin: 0;
}

.poll-question-fields .form-field:first-child {
  flex: 1;
}

.poll-required-field {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.poll-required-field .check-row {
  margin-top: 0;
}

.poll-options {
  margin-top: 12px;
}

.poll-options > label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}

.poll-options-list {
  display: grid;
  gap: 8px;
}

.poll-option-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.poll-option-row .icon-btn {
  flex-shrink: 0;
}

.poll-options .small-btn {
  margin-top: 10px;
}

.course-polls-board {
  margin: 24px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.course-poll-list {
  display: grid;
  gap: 10px;
  padding: 0 16px 16px;
}

.course-poll-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

.course-poll-row strong {
  display: block;
}

.course-poll-row span {
  color: var(--muted);
  font-size: 13px;
}

/* Public poll */
.public-poll-page {
  min-height: 100vh;
  background: #f4f6fb;
  padding: 48px 0;
}

.public-poll-page .page-container {
  max-width: 720px;
}

.public-poll-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px;
}

.public-poll-header h1 {
  margin: 0;
  font-size: 24px;
}

.public-poll-header p {
  margin: 12px 0 0;
  color: var(--muted);
}

.public-poll-form {
  margin-top: 24px;
}

.public-poll-question {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.public-poll-question h2 {
  margin: 0 0 14px;
  font-size: 16px;
}

.public-poll-required {
  color: var(--brand);
}

.public-poll-stars {
  display: flex;
  gap: 4px;
}

.public-poll-star {
  border: none;
  background: none;
  padding: 2px;
  font-size: 36px;
  line-height: 1;
  color: #d3d9e5;
  cursor: pointer;
}

.public-poll-star.is-active {
  color: #f5a623;
}

.public-poll-rating-label {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.public-poll-options {
  display: grid;
  gap: 8px;
}

.public-poll-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.public-poll-textarea {
  width: 100%;
  padding: 15px 18px;
  height: 150px;
}

.public-poll-submit {
  margin-top: 24px;
}

.public-poll-completed {
  text-align: center;
}

.public-poll-completed-icon {
  color: #2f9e44;
  font-size: 44px;
}

.public-poll-completed h1 {
  margin: 12px 0 8px;
}

.public-poll-completed p {
  color: var(--muted);
}

/* Poll admin compact fields (match course form sizing) */
.compact-poll-form .user-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 12px;
}

.compact-poll-form .input,
.compact-poll-form .select-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
}

.compact-poll-form .form-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #22283d;
}

.compact-poll-form .poll-question-top .input,
.compact-poll-form .poll-question-fields .input,
.compact-poll-form .poll-question-fields .select-input,
.compact-poll-form .poll-option-row .input {
  height: 40px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .compact-poll-form .user-form-grid {
    grid-template-columns: 1fr;
  }
}

/* Social care course participants page */
.social-care-participants-page {
  background: #fbfcfe;
}

.social-care-participants-page .dashboard-card {
  border: 1px solid #e0e6ef;
  border-radius: 10px;
  background: #fff;
  padding: 24px;
}

.social-care-participants-page .user-page-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.social-care-participants-page .user-page-head h2 {
  max-width: 980px;
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  color: #101936;
}

.social-care-participants-page .user-page-head .small-btn {
  min-height: 38px;
  border-color: #d9e1ec;
  background: #fff;
}

.social-care-participants-page .course-attendance-board,
.social-care-participants-page .course-polls-board,
.social-care-participants-page .participant-list-panel {
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  background: #fff;
}

.social-care-participants-page .course-attendance-board {
  margin: 0 0 20px;
  overflow: hidden;
}

.social-care-participants-page .participant-list-head {
  border-bottom: 1px solid #e5ebf3;
  padding: 16px 20px;
}

.social-care-participants-page .course-attendance-board .participant-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.social-care-participants-page .course-attendance-board .participant-list-head > :only-child {
  margin-left: auto;
}

.social-care-participants-page .participant-list-head h3 {
  font-size: 15px;
  color: #101936;
}

.social-care-participants-page .account-page-description {
  max-width: 620px;
  margin-top: 10px;
  padding: 0;
  color: #667087;
  font-size: 15px;
  line-height: 1.55;
}

.social-care-participants-page .course-attendance-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.social-care-participants-page [data-list-count] {
  min-width: 30px;
  height: 30px;
  border: 1px solid #e0e6ef;
  background: #fbfcfe;
  color: #101936;
  font-size: 14px;
}

.social-care-participants-page .course-attendance-create-btn {
  min-height: 36px;
  border-color: #cfe8d7;
  background: #f3fbf5;
  color: #2f7d4f;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
}

.social-care-participants-page .course-attendance-create-btn:hover {
  border-color: #b7dfc3;
  background: #eaf8ef;
  color: #2f7d4f;
}

.social-care-participants-page .course-attendance-signatures-btn {
  border-color: #c3e6e0;
  background: #ebf9f6;
  color: #17675c;
}

.social-care-participants-page .course-attendance-signatures-btn:hover {
  border-color: #a9d9d0;
  background: #dff3ef;
  color: #17675c;
}

.social-care-participants-page .course-attendance-send-certificates-btn {
  min-height: 36px;
  border-color: #cfe0f5;
  background: #f4f8fd;
  color: #245a96;
  padding: 7px 12px;
  font-size: 13px;
  line-height: 1.15;
  white-space: nowrap;
}

.social-care-participants-page .course-attendance-send-certificates-btn:hover {
  border-color: #b8d2ee;
  background: #eaf1fb;
  color: #245a96;
}

.social-care-participants-page .course-certificates-sent-badge {
  align-items: center;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  min-height: 32px;
  padding: 6px 10px;
  white-space: nowrap;
}

.social-care-participants-page .course-attendance-board .participant-add-row {
  grid-template-columns: minmax(280px, 560px) max-content;
  align-items: end;
  justify-content: end;
  margin: 0;
  padding: 16px 20px;
}

.social-care-participants-page .participant-add-row label {
  color: #101936;
  font-size: 13px;
}

.social-care-participants-page .participant-user-select {
  height: 38px;
  min-height: 38px;
  border-color: #d6dde8;
  border-radius: 6px;
  font-size: 13px;
}

.social-care-participants-page .participant-add-btn {
  width: auto;
  min-height: 38px;
  border-color: #69ab7a;
  border-radius: 6px;
  background: #69ab7a;
  padding-inline: 14px;
  font-size: 13px;
  white-space: nowrap;
}

.social-care-participants-page .participant-add-btn:hover {
  border-color: #337a52;
  background: #337a52;
}

.social-care-participants-page .participant-table-wrap {
  margin-top: 0;
  overflow-x: visible;
}

.social-care-participants-page .participant-table {
  min-width: 0;
}

.social-care-participants-page .participant-card {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  border: 1px solid #e5ebf3;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  cursor: grab;
}

.social-care-participants-page .participant-card:hover {
  border-color: #cfd8e6;
  background: #fbfcfe;
}

.social-care-participants-page .participant-card-main {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.social-care-participants-page .participant-card-copy {
  min-width: 0;
}

.social-care-participants-page .participant-card strong {
  color: #101936;
  font-size: 15px;
}

.social-care-participants-page .participant-card span[data-participant-email] {
  margin-top: 3px;
  color: #667087;
  font-size: 13px;
}

.social-care-participants-page .participant-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.social-care-participants-page .participant-card-meta small {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #e5ebf3;
  background: #fbfcfe;
  padding: 0 10px;
  color: #667087;
  font-size: 12px;
}

.social-care-participants-page .participant-table .participant-number-head {
  width: 44px;
}

.social-care-participants-page .participant-row-number {
  width: 44px;
  color: #98a1b2;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.social-care-participants-page .participant-row.is-dragging {
  opacity: .55;
}

.social-care-participants-page .participant-row-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.social-care-participants-page .participant-avatar {
  display: grid;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  background: #f5f3f6;
  color: #26304a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.social-care-participants-page .participant-row-copy {
  min-width: 0;
}

.social-care-participants-page .participant-row-copy strong,
.social-care-participants-page .participant-row-copy span[data-participant-email] {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-care-participants-page .participant-row-copy strong {
  color: #101936;
  font-size: 15px;
}

.social-care-participants-page .participant-row-copy span[data-participant-email] {
  margin-top: 3px;
  color: #667087;
  font-size: 13px;
}

.social-care-participants-page .participant-row-group {
  vertical-align: middle;
}

.social-care-participants-page .participant-row-group [data-participant-group] {
  display: block;
  color: #26304a;
  font-size: 14px;
}

.social-care-participants-page .participant-row-certificate {
  vertical-align: middle;
}

.social-care-participants-page .participant-row-actions {
  text-align: right;
  white-space: nowrap;
}

.social-care-participants-page .participant-row-actions .participant-card-actions {
  justify-content: flex-end;
}

.social-care-participants-page .certificate-badge {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  border: 1px solid #ead8a8;
  background: #fffaf0;
  padding: 0 10px;
  color: #78520e;
  font-size: 12px;
  font-weight: 700;
}

.social-care-participants-page .participant-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.social-care-participants-page .participant-card-actions .icon-btn {
  width: 34px;
  height: 34px;
  border-color: #d9e1ec;
  border-radius: 8px;
  background: #fff;
  color: #17213c;
}

.social-care-participants-page .participant-card-actions .icon-btn:hover {
  border-color: #b7c5d9;
  background: #f7f9fc;
  color: #17213c;
}

.social-care-participants-page .participant-card-actions a[href*="certificates"][aria-label^="Skat"] {
  border-color: #cfe0f5;
  background: #f4f8fd;
  color: #245a96;
}

.social-care-participants-page .participant-card-actions a[href*="certificates"][aria-label^="Lejup"] {
  border-color: #d9d3f0;
  background: #f8f6fd;
  color: #4c3d8f;
}

.social-care-participants-page .participant-card-actions [data-cert-create] {
  border-color: #cfe8d7;
  background: #f3fbf5;
  color: #2f7d4f;
}

.social-care-participants-page .participant-card-actions .icon-btn.warning {
  border-color: #ead8a8;
  background: #fffaf0;
  color: #8a6416;
}

.social-care-participants-page .participant-card-actions .icon-btn.danger {
  border-color: #f0c8d0;
  background: #fff5f7;
  color: #a80532;
}

.social-care-participants-page .participant-card-actions a[href*="certificates"][aria-label^="Skat"]:hover,
.social-care-participants-page .participant-card-actions a[href*="certificates"][aria-label^="Lejup"]:hover,
.social-care-participants-page .participant-card-actions [data-cert-create]:hover {
  filter: brightness(.97);
}

.social-care-participants-page .participant-card-actions .icon-btn.danger:hover,
.social-care-participants-page .participant-card-actions .icon-btn.warning:hover {
  border-color: #a80532;
  background: #a80532;
  color: #fff;
}

.social-care-participants-page .participant-card-actions [data-cert-destroy]:hover {
  border-color: #b9831f;
  background: #b9831f;
  color: #fff;
}

.social-care-participants-page .participant-card-actions [data-remove-participant]:hover {
  border-color: #a80532;
  background: #a80532;
  color: #fff;
}

.social-care-participants-page .course-polls-board .participant-list-head a.small-btn {
  border-color: #d9e1ec;
  background: #fff;
  color: #a80532;
}

.social-care-participants-page .course-polls-board .participant-list-head a.small-btn:hover {
  border-color: #a80532;
  color: #a80532;
}

.social-care-participants-page .course-attendance-board .autosave-status {
  padding: 0 20px 16px;
}

.social-care-participants-page .course-polls-board {
  margin: 20px 0 0;
  padding-top: 0;
}

.social-care-participants-page .course-polls-board .participant-list-head .small-btn {
  min-height: 38px;
}

.social-care-participants-page .course-poll-sent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 1px solid #cfe8d7;
  border-radius: 999px;
  background: #f3fbf5;
  padding: 0 14px;
  color: #2f7d4f;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.social-care-participants-page .course-poll-sent-badge i {
  color: #2f7d4f;
}

/* Social care courses index actions */
.social-care-courses-index-page .user-actions .icon-btn {
  border-color: #d9e1ec;
  background: #fff;
  color: #17213c;
}

.social-care-courses-index-page .user-actions .icon-btn:hover {
  border-color: #b7c5d9;
  background: #f7f9fc;
  color: #17213c;
}

.social-care-courses-index-page .user-actions a[href*="/social-care-courses/"][aria-label^="Skat"] {
  border-color: #cfe0f5;
  background: #f4f8fd;
  color: #245a96;
}

.social-care-courses-index-page .user-actions a[href*="/edit"] {
  border-color: #d9d3f0;
  background: #f8f6fd;
  color: #4c3d8f;
}

.social-care-courses-index-page .user-actions .course-review-btn {
  border-color: #ead8a8;
  background: #fffaf0;
  color: #8a6416;
}

.social-care-courses-index-page .user-actions a[aria-label^="Dalībnieki"] {
  border-color: #cfe8d7;
  background: #f3fbf5;
  color: #2f7d4f;
}

.social-care-courses-index-page .user-actions .course-attendance-btn {
  border-color: #c3e6e0;
  background: #ebf9f6;
  color: #17675c;
}

.social-care-courses-index-page .user-actions .course-applications-btn {
  border-color: #d9d3f0;
  background: #f8f6fd;
  color: #4c3d8f;
}

.social-care-courses-index-page .user-actions .icon-btn.danger {
  border-color: #f0c8d0;
  background: #fff5f7;
  color: #a80532;
}

.social-care-courses-index-page .user-actions a[href*="/social-care-courses/"][aria-label^="Skat"]:hover,
.social-care-courses-index-page .user-actions a[href*="/edit"]:hover,
.social-care-courses-index-page .user-actions .course-review-btn:hover,
.social-care-courses-index-page .user-actions a[aria-label^="Dalībnieki"]:hover,
.social-care-courses-index-page .user-actions .course-attendance-btn:hover,
.social-care-courses-index-page .user-actions .course-applications-btn:hover {
  filter: brightness(.97);
}

.social-care-courses-index-page .user-actions .icon-btn.danger:hover {
  border-color: #a80532;
  background: #a80532;
  color: #fff;
}

/* First aid courses index actions */
.first-aid-courses-index-page .user-actions .icon-btn {
  border-color: #d9e1ec;
  background: #fff;
  color: #17213c;
}

.first-aid-courses-index-page .user-actions .icon-btn:hover {
  border-color: #b7c5d9;
  background: #f7f9fc;
  color: #17213c;
}

.first-aid-courses-index-page .user-actions a[aria-label^="Eksport"] {
  border-color: #cfe8d7;
  background: #f3fbf5;
  color: #2f7d4f;
}

.first-aid-courses-index-page .user-actions a[href*="/edit"] {
  border-color: #d9d3f0;
  background: #f8f6fd;
  color: #4c3d8f;
}

.first-aid-courses-index-page .user-actions .icon-btn.danger {
  border-color: #f0c8d0;
  background: #fff5f7;
  color: #a80532;
}

.first-aid-courses-index-page .user-actions a[aria-label^="Eksport"]:hover,
.first-aid-courses-index-page .user-actions a[href*="/edit"]:hover {
  filter: brightness(.97);
}

.first-aid-courses-index-page .user-actions .icon-btn.danger:hover {
  border-color: #a80532;
  background: #a80532;
  color: #fff;
}

/* Shared tinted table actions */
.tinted-actions-page .user-actions .icon-btn {
  border-color: #d9e1ec;
  background: #fff;
  color: #17213c;
}

.tinted-actions-page .user-actions .icon-btn:hover {
  border-color: #b7c5d9;
  background: #f7f9fc;
  color: #17213c;
}

.tinted-actions-page .user-actions a[aria-label^="Skat"] {
  border-color: #cfe0f5;
  background: #f4f8fd;
  color: #245a96;
}

.tinted-actions-page .user-actions a[href*="/edit"],
.tinted-actions-page .user-actions a[aria-label^="Labot"] {
  border-color: #d9d3f0;
  background: #f8f6fd;
  color: #4c3d8f;
}

.tinted-actions-page .user-actions a[aria-label^="Eksport"],
.tinted-actions-page .user-actions button[aria-label^="Atz"] {
  border-color: #cfe8d7;
  background: #f3fbf5;
  color: #2f7d4f;
}

.tinted-actions-page .user-actions .icon-btn.danger {
  border-color: #f0c8d0;
  background: #fff5f7;
  color: #a80532;
}

.tinted-actions-page .user-actions a[aria-label^="Skat"]:hover,
.tinted-actions-page .user-actions a[href*="/edit"]:hover,
.tinted-actions-page .user-actions a[aria-label^="Labot"]:hover,
.tinted-actions-page .user-actions a[aria-label^="Eksport"]:hover,
.tinted-actions-page .user-actions button[aria-label^="Atz"]:hover {
  filter: brightness(.97);
}

.tinted-actions-page .user-actions .icon-btn.danger:hover {
  border-color: #a80532;
  background: #a80532;
  color: #fff;
}

.tinted-actions-page .user-actions .icon-btn.warning {
  border-color: #ead8a8;
  background: #fffaf0;
  color: #8a6416;
}

.tinted-actions-page .user-actions .icon-btn.warning:hover {
  border-color: #8a6416;
  background: #8a6416;
  color: #fff;
}

.materials-index-page .material-list-actions .small-btn {
  border-color: #cfe0f5;
  background: #f4f8fd;
  color: #245a96;
}

.materials-index-page .material-list-actions .small-btn:hover {
  filter: brightness(.97);
}

.certificates-index-page .document-item-actions .small-btn {
  border-color: #cfe0f5;
  background: #f4f8fd;
  color: #245a96;
}

.certificates-index-page .document-item-actions .download-btn {
  border-color: #d9d3f0;
  background: #f8f6fd;
  color: #4c3d8f;
}

.certificates-index-page .document-item-actions .small-btn:hover,
.certificates-index-page .document-item-actions .download-btn:hover {
  filter: brightness(.97);
}

.notifications-index-page .notification-delete-form .icon-btn.danger {
  border-color: #f0c8d0;
  background: #fff5f7;
  color: #a80532;
}

.notifications-index-page .notification-delete-form .icon-btn.danger:hover {
  border-color: #a80532;
  background: #a80532;
  color: #fff;
}

@media (max-width: 860px) {
  .social-care-participants-page .user-page-head {
    gap: 16px;
  }

  .social-care-participants-page .course-attendance-board .participant-list-head {
    grid-template-columns: 1fr;
  }

  .social-care-participants-page .course-attendance-head-actions {
    justify-content: flex-start;
    max-width: none;
  }

  .social-care-participants-page .course-attendance-board .participant-add-row {
    grid-template-columns: 1fr;
  }

  .social-care-participants-page .participant-card {
    grid-template-columns: 1fr;
  }

  .social-care-participants-page .participant-card-actions {
    justify-content: flex-start;
  }
}

/* Course poll results */
.course-poll-results-head {
  margin-bottom: 20px;
}

.course-poll-results-head h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.course-poll-questions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-poll-question-card {
  padding: 16px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #fbfcfe;
}

.course-poll-question-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 4px;
}

.course-poll-question-head h4 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.35;
}

.course-poll-answer-count {
  flex-shrink: 0;
  color: #5d6578;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.course-poll-avg {
  margin: 4px 0 14px;
  color: #5d6578;
  font-size: 13px;
}

.course-poll-avg strong {
  color: var(--ink);
}

.course-poll-option-list .report-bar-item {
  grid-template-columns: minmax(160px, 300px) 1fr 76px;
}

.course-poll-option-list .report-bar-label {
  white-space: normal;
  line-height: 1.3;
}

.course-poll-text-answers {
  margin: 4px 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #2b3048;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .course-poll-option-list .report-bar-item {
    grid-template-columns: 1fr 40px;
  }

  .course-poll-option-list .report-bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* Bootstrap-style tooltips */
[data-tooltip] {
  position: relative;
}

.tooltip {
  position: absolute;
  z-index: 1080;
  display: block;
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
  text-align: start;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-break: normal;
  white-space: normal;
  word-spacing: normal;
  line-break: auto;
  word-wrap: break-word;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease;
}

.tooltip.show {
  opacity: 1;
}

.tooltip-inner {
  max-width: 240px;
  padding: 6px 10px;
  color: #fff;
  text-align: center;
  background-color: #1a1d24;
  border-radius: 6px;
}

.tooltip-arrow {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
}

.tooltip-arrow::before {
  position: absolute;
  content: "";
  border: 6px solid transparent;
}

.tooltip[data-placement="top"] {
  padding: 6px 0;
}

.tooltip[data-placement="top"] .tooltip-arrow {
  bottom: 0;
  left: 50%;
  margin-left: -6px;
}

.tooltip[data-placement="top"] .tooltip-arrow::before {
  top: 0;
  border-top-color: #1a1d24;
}

.tooltip[data-placement="bottom"] {
  padding: 6px 0;
}

.tooltip[data-placement="bottom"] .tooltip-arrow {
  top: 0;
  left: 50%;
  margin-left: -6px;
}

.tooltip[data-placement="bottom"] .tooltip-arrow::before {
  bottom: 0;
  border-bottom-color: #1a1d24;
}
.login-page .login-back-link {
  position: absolute;
  top: 24px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.login-page .login-back-link:hover {
  color: #7f0325;
}

.login-page .login-back-link i {
  font-size: 12px;
}

@media (max-width: 640px) {
  .login-page .login-back-link {
    top: 16px;
  }
}

.participant-add-row .select2-selection--multiple {
  border: 1px solid #d6dde8;
  border-radius: 6px;
  background: #fff;
  padding: 0 18px;
  color: #2b3048;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  transition: border-color .14s ease;
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 14px;
  line-height: 25px;
}

/* ── Checkbox participant picker ── */
.participant-picker {
  position: relative;
  min-width: 0;
  width: 100%;
}

.participant-picker-label {
  display: block;
  color: #2b3048;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.participant-picker-toggle {
  align-items: center;
  background: #fff;
  border: 1px solid #d6dde8;
  border-radius: 6px;
  color: #2b3048;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 10px;
  height: 40px;
  justify-content: space-between;
  padding: 0 12px;
  transition: border-color .14s ease;
  width: 100%;
}

.participant-picker-toggle:hover,
.participant-picker-toggle[aria-expanded="true"] {
  border-color: var(--brand);
}

.participant-picker-toggle i {
  font-size: 12px;
  transition: transform .14s ease;
}

.participant-picker-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.participant-picker-dropdown {
  background: #fff;
  border: 1px solid #d6dde8;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(25, 32, 57, .12);
  left: 0;
  margin-top: 6px;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
}

.participant-picker-search {
  border-bottom: 1px solid #e5ebf3;
  padding: 10px;
}

.participant-picker-search input {
  border: 1px solid #d6dde8;
  border-radius: 6px;
  color: #2b3048;
  font-size: 14px;
  height: 38px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

.participant-picker-search input:focus {
  border-color: var(--brand);
}

.participant-picker-list {
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
}

.participant-picker-group + .participant-picker-group {
  margin-top: 10px;
}

.participant-picker-group-name {
  color: #5d6578;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 6px 6px;
}

.participant-picker-option {
  align-items: center;
  border-radius: 6px;
  gap: 10px;
  margin: 0;
  min-height: 36px;
  padding: 6px 8px;
}

.participant-picker-option:hover {
  background: #f7f9fc;
}

.participant-picker-option input {
  accent-color: #a80532;
  flex-shrink: 0;
  height: 16px;
  margin: 0;
  width: 16px;
}

.participant-picker-option span {
  color: #26304a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.participant-picker-option input:disabled + span {
  color: #aab0bd;
}

.compact-form .form-field .form-field-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #22283d;
}

.file-upload {
  display: block;
  cursor: pointer;
}

.file-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.file-upload-drop {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 2px dashed #c8d2e0;
  border-radius: 10px;
  background: #f8fafc;
  transition: border-color .14s ease, background .14s ease;
}

.file-upload:hover .file-upload-drop,
.file-upload.is-dragover .file-upload-drop {
  border-color: var(--brand);
  background: #fff;
}

.file-upload.has-files .file-upload-drop {
  border-color: #9ecf9b;
  border-style: solid;
  background: #f6fbf6;
}

.file-upload.has-files .file-upload-icon {
  background: #e4f3e4;
  color: #2f7d32;
}

.file-upload-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 10px;
  background: #eef1f6;
  color: #5e6678;
  font-size: 20px;
}

.file-upload-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.file-upload-copy strong {
  color: #2b3048;
  font-size: 14px;
  font-weight: 700;
}

.file-upload-copy span {
  color: #7a8298;
  font-size: 13px;
  font-weight: 500;
}

.file-upload-pick {
  margin-left: auto;
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid #d6dde8;
  border-radius: 8px;
  background: #fff;
  color: #2b3048;
  font-size: 13px;
  font-weight: 700;
  transition: border-color .14s ease;
}

.file-upload:hover .file-upload-pick {
  border-color: var(--brand);
}

.file-upload-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.file-upload-list[hidden] {
  display: none;
}

.file-upload-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #2b3048;
  font-size: 14px;
  font-weight: 600;
}

.file-upload-item i {
  color: #7a8298;
}

.file-upload-item-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-item-size {
  margin-left: auto;
  flex: 0 0 auto;
  color: #7a8298;
  font-size: 12px;
  font-weight: 500;
}

.file-upload-item-remove {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: #fef2f2;
  color: #b91c1c;
  cursor: pointer;
  font-size: 14px;
}

.file-upload-item-remove:hover {
  background: #fde8e8;
}

[data-add-course-day] {
  margin-top: 10px;
}

/* ── Soft-deleted users ────────────────────────────────────── */
.user-status-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid #eadfe3;
  border-radius: 999px;
  background: #fbf7f8;
}

.user-status-tab {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 15px;
  border-radius: 999px;
  color: #5d6578;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.user-status-tab:hover {
  color: var(--brand);
}

.user-status-tab.is-active {
  background: var(--brand);
  color: #fff;
}

.user-name-line .user-deleted-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: #fdecef;
  color: #a80532;
  font-size: 11px;
  font-weight: 700;
}

.user-table tr.is-deleted td strong {
  text-decoration: line-through;
  text-decoration-color: rgba(168, 5, 50, .4);
}

/* Soft-deleted course participants stay in the lists for statistics, dimmed. */
.participant-card.is-deleted {
  opacity: .5;
}

/* Solid fill so the badge stays readable inside the 50% dimmed card. */
/* Status badge, not a button: muted tint instead of a solid red pill. */
.participant-deleted-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 3px 9px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #fff;
  color: #a80532;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .02em;
  white-space: nowrap;
}

/* Participant picker: styled dropdown over the native <select> */
.pp-select { position: relative; width: 100%; }

/* keeps the real <select> in the a11y tree and readable by other scripts */
.pp-select-native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.pp-select-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d6dde8;
  border-radius: 6px;
  background: #fff;
  color: #2b3048;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .14s ease;
}

.pp-select-toggle:hover,
.pp-select-toggle[aria-expanded="true"] { border-color: var(--brand); }

.pp-select-toggle i { font-size: 12px; }

.pp-select-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.pp-select-label.is-placeholder { color: #8a93a6; font-weight: 500; }

.pp-select-dropdown {
  position: absolute;
  z-index: 40;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 6px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid #d6dde8;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(25, 32, 57, .12);
}

.pp-select-group {
  padding: 9px 12px 4px;
  color: #8a93a6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.pp-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  background: none;
  color: #2b3048;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.pp-select-option:hover { background: #fbf2f5; }

.pp-select-option:disabled { cursor: default; opacity: .35; }

.pp-select-option.is-deleted { background: #fdf7f8; }

/* dim the name but keep the Dzests badge at full strength */
.pp-select-option.is-deleted .pp-select-option-name { opacity: .55; }

.pp-select-option-tag {
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

/* Clickable user name in the users table */
.user-name-line .user-name-link {
  color: inherit;
  text-decoration: none;
}

.user-name-line .user-name-link:hover strong,
.user-name-line .user-name-link:focus-visible strong {
  color: var(--brand);
  text-decoration: underline;
}

/* Seat summary. It sits inside .participant-list-panel, whose content is inset
   by 16px (.participant-list-head). A global rule already gave it
   padding-right: 16px, so without a matching left side the text hugged the
   panel border. Applies to both participants pages (same component). */
[data-seat-summary] {
  padding-left: 16px;
}

/* Multi-day schedules: one line per day, so they are not mistaken for
   separate courses. */
.course-schedule-days {
  display: grid;
  gap: 2px;
}

.course-schedule-day {
  display: block;
}

/* Replace-participant panel (managers, once late removals are closed). */
.replace-participant-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  max-width: 560px;
}

/* ==========================================================================
   Header rework: brand red bar with white content, matching prastpalidzet.lv.
   --------------------------------------------------------------------------
   Everything for this rework lives in this single block, so reverting is
   deleting it (or restoring the backup copy of this file). `!important` is used
   only where a Tailwind utility, injected by the Play CDN after this file,
   would otherwise win the cascade.
   ========================================================================== */

body > header {
  background-color: #a80532 !important;
  border-bottom-color: #8f042a !important;
}

/* The logo is an SVG, so a filter turns it into a white silhouette. */
body > header img {
  filter: brightness(0) invert(1);
}

body > header .text-ink {
  color: #fff !important;
}

body > header .logo-subtitle {
  color: #fff;
}

/* Signed-in user block. */
body > header .account-profile,
body > header .account-profile strong {
  color: #fff;
}

body > header .account-profile span {
  color: rgba(255, 255, 255, .78);
}

/* Hover must not fall back to brand red on a brand red bar. */
body > header .account-profile:hover,
body > header .account-profile:hover strong,
body > header .account-profile:hover span {
  color: #fff;
}

/* Unread badge: white on red so it stays visible (it was brand red on white). */
body > header .account-notification span {
  background: #fff;
  color: #a80532;
}

/* ==========================================================================
   Content colour: brand red block titles.
   --------------------------------------------------------------------------
   Targets the app's block headings (.card-head h2 — «Kursu pārskats»,
   «Plānotās mācības», «Pabeigtās mācības» and friends). Nothing in the markup
   carries a colour utility on these, so no !important is needed. Delete this
   block to return to the previous ink-coloured titles.
   ========================================================================== */

.card-head h2 {
  color: #a80532;
}

/* ==========================================================================
   Content colour: red table headings.
   --------------------------------------------------------------------------
   Scoped to .user-table (the app's on-screen tables, including the
   .report-table and .participant-table variants). The PDF templates use their
   own self-contained styles and are deliberately not touched. Delete this block
   to return to the previous grey headings.
   ========================================================================== */

.user-table th {
  background-color: #a80532;
  color: #fff;
  border-bottom-color: #8f042a;
  /* was 0 16px 12px - a filled band needs the same space top and bottom */
  padding: 12px 16px;
}

/* A little more inset on the outermost cells. Applied to th and td together,
   so a header stays aligned with the column underneath it. */
.user-table th:first-child,
.user-table td:first-child {
  padding-left: 24px;
}

.user-table th:last-child,
.user-table td:last-child {
  padding-right: 24px;
}

/* ==========================================================================
   Layout: a little more room for the «Gaida rindā» column on the social care
   course list (6th column). In table-layout: auto a cell width acts as a
   minimum, so this can only widen the column, never shrink it.
   ========================================================================== */

.social-care-courses-index-page .user-table th:nth-child(6),
.social-care-courses-index-page .user-table td:nth-child(6) {
  width: 140px;
}

/* ==========================================================================
   Row hover: a slight tint so the eye can follow one row across the table.
   Body rows only, so the red header band is unaffected. Delete this block to
   remove the effect.
   ========================================================================== */

.user-table tbody tr {
  transition: background-color .15s ease;
}

.user-table tbody tr:hover {
  background-color: #fafafa;
}

/* ==========================================================================
   Compact date badge: one or two day+month pairs side by side. A two-day
   course shows both dates; three or more show the first and last joined by
   "-". The existing .date-box span rule stacks each month under its day.
   ========================================================================== */

.date-box-pairs {
  align-items: center;
  display: flex;
  gap: 4px;
}

.date-box .date-box-sep {
  margin-top: 0;
  color: #c3c9d4;
  font-size: 18px;
  font-weight: 400;
}

/* Multi-date badge: wider date column on the course list. */
.org-course-card-main:has(.date-box-pairs) {
  grid-template-columns: 90px minmax(0, 1fr);
}

/* ==========================================================================
   Layout: a little more room for the «Kurss» column (1st) on the social care
   course list, so long course titles are not squeezed.
   ========================================================================== */

.social-care-courses-index-page .user-table th:nth-child(1),
.social-care-courses-index-page .user-table td:nth-child(1) {
  width: 560px;
}

/* Courses a user took, listed under the user edit form. */
.user-courses-section {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #e5e9f1;
}

.user-courses-title {
  margin: 0 0 14px;
  color: #192039;
  font-size: 18px;
  font-weight: 700;
}

/* Report type and user filter share one row above the filter grid. */
.report-filter-type-row {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.report-filter-type-row > .form-field {
  flex: 0 1 300px;
  min-width: 0;
}

/* Pārskata veids keeps its width; Lietotājs takes the remaining space.
   Both drop onto their own line when the row gets too narrow. */
.report-filter-type-row > .form-field:first-child {
  flex-basis: 360px;
  flex-grow: 0;
}

.report-filter-type-row > .form-field:last-child {
  flex-basis: 300px;
  flex-grow: 1;
  max-width: 460px;
}

/* ==========================================================================
   Report filter Select2 fields: match .report-filter-form .select-input
   (38px tall, 1px #d6dde8 border, 6px radius, 13px text). The app already
   styles the multi-select variant; this covers the single-value fields.
   ========================================================================== */

.report-category-select2 + .select2-container--default {
  width: 100%;
}

.report-category-select2 + .select2-container--default .select2-selection--single {
  height: 38px;
  border: 1px solid #d6dde8;
  border-radius: 6px;
  background: #fff;
  transition: border-color .14s ease;
}

.report-category-select2 + .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0 28px 0 10px;
  color: #2b3048;
  font-size: 13px;
  font-weight: 400;
  line-height: 36px;
}

.report-category-select2 + .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #2b3048;
}

.report-category-select2 + .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 4px;
  height: 36px;
  width: 20px;
}

.report-category-select2 + .select2-container--default.select2-container--focus .select2-selection--single,
.report-category-select2 + .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--brand);
  box-shadow: none;
  outline: none;
}

/* Report filter Select2 dropdown. Select2 appends the dropdown to <body>, so
   it cannot be reached with the select's sibling selector - it carries
   dropdownCssClass instead. */
.report-filter-select2-dropdown {
  border: 1px solid #d6dde8;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(25, 32, 57, .12);
  font-size: 12px;
  overflow: hidden;
}

.report-filter-select2-dropdown .select2-results__option {
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.report-filter-select2-dropdown .select2-search--dropdown .select2-search__field {
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

/* Spacing for the Aktīvie / Dzēstie tabs on the users page: more room above
   (it sat flush against the card head), less below. */
.user-status-tabs {
  margin-top: 18px;
  margin-bottom: 6px;
}

/* Participants report: one line per course, with its date and hours. */
.report-course-line {
  display: block;
}

.report-course-line + .report-course-line {
  margin-top: 6px;
}

.report-course-line span {
  color: #5d6578;
  display: block;
  font-size: 12px;
}

/* Export button sits directly above the results table, right aligned. */
.report-export-row {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0 14px;
}

/* Export button: dark navy with white text. */
.report-export-row .small-btn {
  background: #26304a;
  border-color: #26304a;
  color: #fff;
}

.report-export-row .small-btn:hover,
.report-export-row .small-btn:focus-visible {
  background: #1b2337;
  border-color: #1b2337;
  color: #fff;
}

/* Attendance date under the participant's name. */
.participant-row-date {
  color: #5d6578;
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

/* Course date under the participants heading. */
.participant-course-date {
  color: #5d6578;
  font-size: 13px;
  font-weight: 400;
  margin: 4px 0 0;
}

/* Indent only the seat summary. The board's own description keeps the
   page's padding: 0, and this needs the page prefix to outrank it. */
.social-care-participants-page [data-seat-summary] {
  padding-left: 12px;
}

/* Parakstu saraksts: button with a per-date menu. */
.signature-menu {
  display: inline-block;
  position: relative;
}

.signature-menu-chevron {
  font-size: 10px;
  margin-left: 2px;
}

/* Matches the app's Select2 dropdown: same border, radius, shadow, sizes. */
.signature-menu-list {
  background: #fff;
  border: 1px solid #d6dde8;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(25, 32, 57, .12);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  font-size: 14px;
  min-width: 160px;
  overflow: hidden;
  padding: 4px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
}

.signature-menu-list[hidden] {
  display: none;
}

.signature-menu-list a {
  border-radius: 4px;
  color: #2b3048;
  display: block;
  font-size: 13px;
  font-weight: 400;
  padding: 8px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.signature-menu-list a:hover,
.signature-menu-list a:focus-visible {
  background: #f4f6fa;
}

/* Menu inside the participant list head: plain block, no card of its own. */
.participant-list-head .signature-menu-list {
  background: transparent;
  border: 0;
  box-shadow: none;
  display: block;
  height: auto;
  overflow: visible;
  padding: 0;
  width: 100%;
}

/* display:block above would otherwise beat [hidden], keeping the menu open. */
.participant-list-head .signature-menu-list[hidden] {
  display: none;
}

.participant-list-head .signature-menu-list a {
  background: #ebf9f6;
  border: 1px solid #c3e6e0;
  color: #17675c;
  margin-top: 1px;
}

.participant-list-head .signature-menu-list a:hover,
.participant-list-head .signature-menu-list a:focus-visible {
  background: #d9f2ec;
  border-color: #a9dcd3;
  color: #17675c;
}
/* Real-attendance checkbox, in place of the row number. */
.participant-row-check {
  text-align: center;
  width: 38px;
}

.participant-check {
  accent-color: #a80532;
  cursor: pointer;
  height: 17px;
  width: 17px;
}
/* Opens at full opacity; only once someone is marked do the rest dim. */
.participant-row.is-present {
  opacity: 1;
}

tbody.has-participants .participant-row:not(.is-present) {
  opacity: .5;
}

tbody.has-participants .participant-row .participant-row-check {
  opacity: 1;
}

.participant-row.is-absent .participant-row-check {
  opacity: 1;
}
