#app-demo {
    margin-top: 1.5rem;
}

#app-demo h2 {
    font-size: 2rem;
    line-height: 1.2;
    text-align: center;
    font-weight: 700;
    text-transform: none;
    margin-bottom: 2rem;
}

#app-demo section {
    margin-bottom: 3rem;
    border-bottom: 1px solid #d3d3d3;
}


#app-demo .custom-styles a {
    color: #ec407a;
    text-decoration: none!important;
    position: relative;
}

#app-demo .custom-styles a::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
}

#app-demo .custom-styles a:hover::after {
    width: 100%;
}

#app-demo .custom-styles ul {
    list-style: none;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}


#app-demo .custom-styles ul li::after {
    display: inline-block;
    padding-left: 1rem;
}

#app-demo .custom-styles ul li:first-child {
    padding-left: 0;
}

#app-demo .custom-styles ul li:last-child::after {
    display: none;
}

#app-demo .custom-styles a {
    font-weight: 600;
}

#app-demo .custom-styles .smarty-template {
    margin-bottom: 1.5rem;
    font-size: 26px;
}

#app-demo .custom-styles code {
    color: white;
    background: #333;
    border-radius: 4px;
    padding: .75rem;
    display: inline-block;
}


/* === Shared card style === */
#app-demo .rw-ql-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 0 auto 3rem;
  list-style: none;
  padding: 0;
}

#app-demo .rw-ql-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: #fff;
  color: #222;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  text-decoration: none!important;
  box-shadow: 0 6px 18px rgba(0,0,0,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  height: 100%;
}

#app-demo .rw-ql-card:hover {
  transform: translateY(-2px);
  border: 1px, solid #f57ea5;
  box-shadow: 0 12px 28px rgba(0,0,0,.20);
}

#app-demo .rw-ql-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: #ffe3ee;
  color: #ec407a;
}

#app-demo .rw-ql-icon svg {
  width: 20px;
  height: 20px;
}

#app-demo .rw-ql-text {
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
  font-size: 22px;
}

#app-demo .rw-ql-grid--4 > li {
  flex: 0 1 calc((100% - 3 * 28px) / 4);
}

#app-demo .rw-ql-grid--2 > li {
  flex: 0 1 calc((100% - 28px) / 2);
}

@media (max-width: 900px) {
  #app-demo .rw-ql-grid--4 > li { flex: 0 1 calc((100% - 2 * 28px) / 3); }
}
@media (max-width: 700px) {
  #app-demo .rw-ql-grid--4 > li,
  #app-demo .rw-ql-grid--2 > li {
    flex: 1 1 100%;
  }
}
