/* Language2Go — public site overlay: course catalog, contacts, footer cleanup */

.l2g-hidden {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* Shared tokens (scoped, no global resets)                           */
/* ------------------------------------------------------------------ */

.l2g-catalog-wrap,
.l2g-contact-cards,
.l2g-consultation-styled {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  color: #202229;
}

/* ------------------------------------------------------------------ */
/* Courses catalog — /courses/all                                     */
/* ------------------------------------------------------------------ */

.l2g-catalog-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 8px auto 64px;
}

.l2g-catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.l2g-filter-pill {
  appearance: none;
  border: 1px solid #e6e1f0;
  border-radius: 999px;
  background: #fff;
  color: #60616b;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}

.l2g-filter-pill:hover {
  border-color: #a63cc4;
  color: #7c2d91;
}

.l2g-filter-pill.l2g-active {
  background: #7c2d91;
  border-color: #7c2d91;
  color: #fff;
}

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

.l2g-course-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6e1f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(60, 20, 90, .08);
  transition: transform .25s, box-shadow .25s;
}

.l2g-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(60, 20, 90, .16);
}

.l2g-course-card.l2g-card-hidden {
  display: none;
}

/* Covers -------------------------------------------------------------*/

.l2g-cover {
  position: relative;
  height: 200px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.l2g-cover-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.5px, transparent 1.5px);
  background-size: 18px 18px;
  opacity: .5;
}

.l2g-cover-mark {
  position: absolute;
  right: -6px;
  bottom: -14px;
  color: rgba(255, 255, 255, .22);
  font-size: 76px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  font-family: "Segoe UI", "Open Sans", Arial, sans-serif;
}

.l2g-level-badge {
  position: relative;
  z-index: 1;
  margin: 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, .92);
  color: #4f278f;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.l2g-cover-1 { background: linear-gradient(135deg, #3a1258 0%, #7c2d91 100%); }
.l2g-cover-2 { background: linear-gradient(135deg, #4a1a6b 0%, #a63cc4 100%); }
.l2g-cover-3 { background: linear-gradient(135deg, #2b0f45 0%, #6d2a8c 70%, #1f2a5a 100%); }
.l2g-cover-5 { background: linear-gradient(135deg, #5c1f7a 0%, #c85cf0 100%); }
.l2g-cover-6 { background: linear-gradient(135deg, #1f2a5a 0%, #4a1a6b 100%); }
.l2g-cover-7 { background: linear-gradient(135deg, #2b0f45 0%, #7c2d91 60%, #a63cc4 100%); }

.l2g-cover-4,
.l2g-cover-8 {
  background: #2b0f45;
}

.l2g-cover-photo-china,
.l2g-cover-photo-germany {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.l2g-cover-photo-china {
  background-image:
    linear-gradient(135deg, rgba(58, 18, 88, .82) 0%, rgba(124, 45, 145, .68) 55%, rgba(31, 42, 90, .78) 100%),
    url("/img/china.8aef2529.png");
}

.l2g-cover-photo-germany {
  background-image:
    linear-gradient(135deg, rgba(31, 42, 90, .8) 0%, rgba(74, 26, 107, .68) 55%, rgba(43, 15, 69, .82) 100%),
    url("/img/germany-image-2.8059d8d9.png");
}

.l2g-cover-4 .l2g-cover-mark,
.l2g-cover-8 .l2g-cover-mark {
  display: none;
}

/* Card body ------------------------------------------------------------*/

.l2g-course-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 22px 22px 24px;
}

.l2g-lang-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.l2g-lang-pill i {
  font-style: normal;
  font-size: 14px;
  line-height: 1;
}

.l2g-lang-pill-chinese {
  background: #fbe9f1;
  color: #a63cc4;
}

.l2g-lang-pill-german {
  background: #ece4fb;
  color: #4a1a6b;
}

.l2g-course-title {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.32;
  font-weight: 700;
  color: #202229;
}

.l2g-course-desc {
  margin: 0 0 16px;
  color: #60616b;
  font-size: 14.5px;
  line-height: 1.6;
}

.l2g-course-bullets {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.l2g-course-bullets li {
  position: relative;
  padding-left: 24px;
  color: #202229;
  font-size: 13.5px;
  line-height: 1.5;
}

.l2g-course-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f6f3fb;
  border: 1.5px solid #a63cc4;
}

.l2g-course-bullets li::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 8.5px;
  width: 5px;
  height: 2.5px;
  border-left: 1.5px solid #7c2d91;
  border-bottom: 1.5px solid #7c2d91;
  transform: rotate(-45deg);
}

.l2g-course-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #7c2d91 0%, #a63cc4 100%);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, opacity .25s;
}

.l2g-course-cta:hover {
  opacity: .92;
  box-shadow: 0 10px 24px rgba(124, 45, 145, .28);
}

/* ------------------------------------------------------------------ */
/* Course page — /course/<id>                                         */
/* ------------------------------------------------------------------ */

.l2g-course-request {
  font-family: "Open Sans", "Segoe UI", Arial, sans-serif;
  background: #fff;
  border: 1px solid #e6e1f0;
  border-radius: 16px;
  padding: 28px;
  margin: 24px 0;
  box-shadow: 0 12px 32px rgba(60, 20, 90, .08);
}

.l2g-course-request-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.32;
  color: #202229;
}

.l2g-course-request-text {
  margin: 0 0 20px;
  color: #60616b;
  font-size: 14.5px;
  line-height: 1.6;
}

.l2g-course-request-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  background: linear-gradient(135deg, #7c2d91 0%, #a63cc4 100%);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow .25s, opacity .25s;
}

.l2g-course-request-btn:hover {
  opacity: .92;
  box-shadow: 0 10px 24px rgba(124, 45, 145, .28);
}

/* ------------------------------------------------------------------ */
/* Contacts page — /contacts                                          */
/* ------------------------------------------------------------------ */

.l2g-contact-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0 56px;
}

.l2g-contact-card {
  background: #fff;
  border: 1px solid #e6e1f0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(60, 20, 90, .08);
  transition: transform .25s, box-shadow .25s;
}

.l2g-contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(60, 20, 90, .16);
}

.l2g-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f6f3fb;
  margin-bottom: 16px;
}

.l2g-contact-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: #202229;
}

.l2g-contact-card p {
  margin: 0 0 4px;
  color: #60616b;
  font-size: 14.5px;
  line-height: 1.55;
}

.l2g-contact-card a {
  color: #7c2d91;
  font-weight: 700;
  text-decoration: none;
}

.l2g-contact-card a:hover {
  text-decoration: underline;
}

.l2g-contact-link {
  display: inline-flex;
  margin-top: 10px;
}

/* Consultation / contact form block ----------------------------------*/

.contacts .read-consultation.l2g-consultation-styled {
  display: block;
  height: auto;
  min-height: 0;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto 64px;
  padding: 0;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #2b0f45 0%, #4a1a6b 45%, #1f2a5a 100%);
}

.contacts .read-consultation.l2g-consultation-styled .input-block {
  width: 100%;
  max-width: none;
  flex: none;
  padding: 44px !important;
}

.contacts .read-consultation.l2g-consultation-styled .ipnut-block-container-pg {
  width: 100%;
  max-width: 720px;
}

.contacts .read-consultation.l2g-consultation-styled .input-block-container-title {
  color: #fff;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.contacts .read-consultation.l2g-consultation-styled .input-block-container-subtitle {
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.contacts .read-consultation.l2g-consultation-styled .contact-form-pg {
  width: 100%;
}

.contacts .read-consultation.l2g-consultation-styled .contact-form-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contacts .read-consultation.l2g-consultation-styled .contact-form-input-wrapper {
  display: contents;
}

.contacts .read-consultation.l2g-consultation-styled .contact-provider-textarea {
  grid-column: 1 / -1;
  margin-top: 16px;
}

.contacts .read-consultation.l2g-consultation-styled .contact-form-input,
.contacts .read-consultation.l2g-consultation-styled .contact-form-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
  padding: 13px 16px;
  transition: background .25s, border-color .25s;
}

.contacts .read-consultation.l2g-consultation-styled .contact-form-textarea {
  min-height: 120px;
  resize: vertical;
}

.contacts .read-consultation.l2g-consultation-styled .contact-form-input::placeholder,
.contacts .read-consultation.l2g-consultation-styled .contact-form-textarea::placeholder {
  color: rgba(255, 255, 255, .62);
}

.contacts .read-consultation.l2g-consultation-styled .contact-form-input:focus,
.contacts .read-consultation.l2g-consultation-styled .contact-form-textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .55);
}

.contacts .read-consultation.l2g-consultation-styled .contact-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
  color: rgba(255, 255, 255, .72);
  font-size: 12.5px;
  line-height: 1.5;
}

.contacts .read-consultation.l2g-consultation-styled .contact-form-checkbox a {
  color: #fff;
  text-decoration: underline;
}

.contacts .read-consultation.l2g-consultation-styled .invalid-feedback {
  color: #ffb4c6;
  font-size: 12px;
}

.contacts .read-consultation.l2g-consultation-styled .contact-form-btn {
  margin-top: 22px;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  background: #fff;
  color: #7c2d91;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, opacity .25s;
}

.contacts .read-consultation.l2g-consultation-styled .contact-form-btn:hover {
  opacity: .92;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 1100px) {
  .l2g-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .l2g-catalog {
    grid-template-columns: 1fr;
  }

  .l2g-contact-cards {
    grid-template-columns: 1fr;
  }

  .contacts .read-consultation.l2g-consultation-styled .input-block {
    padding: 28px 22px !important;
  }

  .contacts .read-consultation.l2g-consultation-styled .contact-form-inputs {
    grid-template-columns: 1fr;
  }

  .contacts .read-consultation.l2g-consultation-styled .contact-provider-textarea {
    margin-top: 4px;
  }

  .l2g-course-request {
    padding: 20px;
  }

  .l2g-course-request-btn {
    width: 100%;
    padding: 13px 20px;
  }
}

@media (max-width: 480px) {
  .l2g-cover-mark {
    font-size: 60px;
  }

  .l2g-catalog-filters {
    gap: 8px;
  }

  .l2g-filter-pill {
    padding: 9px 16px;
    font-size: 13px;
  }
}
