.lc-header-cards {
  width: min(100%, 460px);
  margin: 20px auto;
  padding: 12px;
  border-radius: 18px;
  background: #f9f6ee;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  overflow: hidden;
  box-sizing: border-box;
}

.lc-header-cards *,
.lc-header-cards *::before,
.lc-header-cards *::after {
  box-sizing: border-box;
}

.lc-header-cards .lc-flag-area {
  min-height: 135px;
  border-radius: 14px;
    background:
        linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)),
        url("https://media.lankaconnect.com/Courses/stylescss/HeaderCardLogo.png") center center / cover no-repeat;
    position: relative;

}

.lc-header-cards .lc-tagline {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
  background: rgba(255,255,255,.88);
  color: #222;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  padding: 7px 16px;
  border-radius: 6px;
  white-space: nowrap;
  text-align: center;
  box-shadow: 0 1px 5px rgba(0,0,0,.15);
}

.lc-header-cards .lc-main-box {
  background: #fffdf7;
  border: 2px solid #d8c99f;
  border-radius: 10px;
  margin: 10px 0 12px;
  padding: 14px 12px;
  text-align: center;
  color: #1f1f1f;
}

.lc-header-cards .lc-main-box p {
  margin: 0;
  font-size: clamp(16px, 2.6vw, 18px);
  line-height: 1.3;
}

.lc-header-cards .lc-main-box strong {
  font-weight: 800;
}

.lc-header-cards .lc-main-box .gold {
  color: #b99745;
}

.lc-header-cards .lc-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.lc-header-cards .lc-menu-link,
.lc-header-cards .lc-menu-link:hover,
.lc-header-cards .lc-menu-link:focus,
.lc-header-cards .lc-menu-link:visited {
  text-decoration: none;
  color: inherit;
  display: block;
  outline: none;
}

.lc-header-cards .lc-menu-link:focus-visible .lc-menu-item {
  outline: 3px solid #b99745;
  outline-offset: 2px;
}

.lc-header-cards .lc-menu-item {
  background: #fff;
  border: 2px solid #d8c99f;
  border-radius: 10px;
  min-height: 112px;
  height: 100%;
  padding: 10px 5px;
  text-align: center;
  color: #1f1f1f;
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.12);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  word-break: normal;
  overflow-wrap: anywhere;
}

.lc-header-cards .lc-menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0,0,0,.18);
  border-color: #b99745;
}

.lc-header-cards .lc-icon {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .lc-header-cards {
    width: min(100%, 520px);
  }

  .lc-header-cards .lc-menu-item {
    min-height: 118px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .lc-header-cards {
    width: 100%;
    margin: 12px auto;
    padding: 10px;
    border-radius: 16px;
  }

  .lc-header-cards .lc-flag-area {
    min-height: 120px;
  }

  .lc-header-cards .lc-tagline {
    bottom: 18px;
    font-size: 13px;
    padding: 6px 10px;
  }

  .lc-header-cards .lc-menu-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }

  .lc-header-cards .lc-menu-item {
    min-height: 76px;
    font-size: 9.5px;
    padding: 7px 3px;
    border-radius: 8px;
    line-height: 1.12;
  }

  .lc-header-cards .lc-icon {
    font-size: 23px;
    margin-bottom: 5px;
  }
}

@media (max-width: 340px) {
  .lc-header-cards .lc-tagline {
    white-space: normal;
  }

  .lc-header-cards .lc-menu-grid {
    gap: 4px;
  }

  .lc-header-cards .lc-menu-item {
    min-height: 70px;
    font-size: 8.5px;
    padding: 6px 2px;
  }

  .lc-header-cards .lc-icon {
    font-size: 21px;
    margin-bottom: 4px;
  }
}

.lc-header-cards .lc-icon-mask {
  width: 34px;
  height: 34px;
  display: inline-block;
  background-color: var(--lc-icon-color, #b99745);
  -webkit-mask-image: var(--lc-icon-url);
  mask-image: var(--lc-icon-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.lc-header-cards .lc-icon-emoji {
  display: inline-block;
  font-size: 34px;
  line-height: 1;
  filter: none;
}

@media (max-width: 480px) {
  .lc-header-cards .lc-icon-mask {
    width: 23px;
    height: 23px;
  }

  .lc-header-cards .lc-icon-emoji {
    font-size: 23px;
  }
}

@media (max-width: 340px) {
  .lc-header-cards .lc-icon-mask {
    width: 21px;
    height: 21px;
  }

  .lc-header-cards .lc-icon-emoji {
    font-size: 21px;
  }
}