:root {
  --yl-green: #078855;
  --yl-green-dk: #056640;
  --yl-green-tint: #eef8f3;
  --yl-navy: #1a2855;
  --yl-text: #4a5568;
  --yl-border: #e1ece6;
  --yl-radius: 14px;
  --yl-shadow: 0 12px 28px rgba(7, 70, 45, .14);
}

.yealink-page {
  color: var(--yl-text);
  overflow-wrap: break-word;
}

.yealink-page p {
  font-size: 1rem;
}

.yealink-page section {
  scroll-margin-top: 90px;
}

html {
  scroll-behavior: smooth;
}

/* ── BUTTONS ── */
.btn-yealink,
.btn-yealink:visited {
  padding: .55rem 1.4rem;
  border: 2px solid var(--yl-green);
  border-radius: 8px;
  background: var(--yl-green);
  color: #fff;
  font-weight: 600;
  transition: background .2s, border-color .2s, transform .2s;
}

.btn-yealink:hover,
.btn-yealink:focus {
  border-color: var(--yl-green-dk);
  background: var(--yl-green-dk);
  color: #fff;
  transform: translateY(-2px);
}

.btn-yealink-outline,
.btn-yealink-outline:visited {
  padding: .55rem 1.4rem;
  border: 2px solid var(--yl-green);
  border-radius: 8px;
  background: transparent;
  color: var(--yl-green);
  font-weight: 600;
  transition: background .2s, color .2s, transform .2s;
}

.btn-yealink-outline:hover,
.btn-yealink-outline:focus {
  background: var(--yl-green);
  color: #fff;
  transform: translateY(-2px);
}

/* ── HERO ── */
.yl-hero {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, #e6f5ee 0%, #f6fbf8 100%);
}

.yl-hero h1 {
  margin-bottom: 1rem;
  color: var(--yl-green);
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
}

.yl-hero p {
  max-width: 560px;
  margin: 0 auto 1.5rem;
  line-height: 1.7;
}

.yl-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.yl-hero-visual img {
  max-height: 340px;
  filter: drop-shadow(0 18px 30px rgba(7, 70, 45, .18));
}

@media (min-width: 992px) {
  .yl-hero p {
    margin-left: 0;
  }

  .yl-hero-actions {
    justify-content: flex-start;
  }
}

/* ── QUICK NAV ── */
.yl-quicknav {
  padding: 1rem 0;
  background: #fff;
  border-bottom: 1px solid var(--yl-border);
}

.yl-quicknav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yl-quicknav a {
  display: inline-block;
  padding: .4rem 1rem;
  border: 1px solid var(--yl-border);
  border-radius: 999px;
  background: #fff;
  color: var(--yl-navy);
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}

.yl-quicknav a:hover,
.yl-quicknav a:focus-visible {
  border-color: var(--yl-green);
  background: var(--yl-green);
  color: #fff;
}

/* ── FEATURED CAROUSEL ── */
.yl-featured {
  padding: 3rem 0 1rem;
  background: #fff;
}

.yl-carousel {
  overflow: hidden;
  border-radius: var(--yl-radius);
  box-shadow: var(--yl-shadow);
}

.yl-carousel img {
  cursor: pointer;
}

.yl-carousel .carousel-control-prev,
.yl-carousel .carousel-control-next {
  width: 8%;
  color: #fff;
  font-size: 1.5rem;
  opacity: .85;
}

/* ── SECTIONS ── */
.yl-section {
  padding: 3rem 0;
  background: #fff;
}

.yl-section-alt {
  background: var(--yl-green-tint);
}

.yealink-section-title {
  position: relative;
  display: inline-block;
  padding-bottom: .6rem;
  margin-bottom: .25rem;
  color: var(--yl-navy);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 700;
}

.yealink-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--yl-green);
}

.yl-head {
  margin-bottom: 2rem;
}

.yl-head p {
  max-width: 720px;
  margin: .75rem 0 0;
  line-height: 1.7;
}

/* ── CATEGORY CARDS ── */
.category-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--yl-border);
  border-radius: var(--yl-radius);
  background: #fff;
  box-shadow: 0 2px 8px rgba(7, 70, 45, .05);
  transition: box-shadow .3s ease, transform .3s ease;
}

.category-card:hover {
  box-shadow: var(--yl-shadow);
  transform: translateY(-4px);
}

.yl-cat-img {
  overflow: hidden;
  background: #0d1f3c;
}

.yl-cat-img img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  object-position: center;
  transition: transform .45s ease;
}

.category-card:hover .yl-cat-img img {
  transform: scale(1.06);
}

.yl-cat-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: .9rem 1rem 1.1rem;
}

.yl-cat-body p {
  flex: 1;
  margin-bottom: .9rem !important;
}

.yl-cat-body .btn {
  padding: .4rem 1.1rem;
  font-size: .9rem;
}

.category-card h3 {
  margin: 0 0 .4rem;
  color: var(--yl-navy);
  font-size: 1rem;
  font-weight: 700;
}

.yealink-page .yl-cat-body p,
.yealink-page .yl-item-body p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.55;
}

.bg-headset {
  background-image: url(/images/yealink/headsetbg.png);
  background-position: center;
  background-size: cover;
}

.bg-mszoom {
  background-image: url(/images/yealink/microsoftzoombg.webp);
  background-position: center;
  background-size: cover;
}

/* ── ITEM CARDS ── */
.yealink-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--yl-border);
  border-radius: var(--yl-radius);
  box-shadow: 0 2px 8px rgba(7, 70, 45, .05);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}

.yealink-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--yl-shadow);
}

.yealink-item img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
}

.yealink-item .yl-item-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: center;
  padding: .85rem 1rem 1rem;
}

.yealink-item h3 {
  margin-bottom: .4rem;
  color: var(--yl-navy);
  font-size: 1rem;
  font-weight: 700;
}

.yealink-page .yl-item-body p {
  margin-bottom: .9rem;
}

.yealink-item .btn {
  margin-top: auto;
  padding: .4rem 1.1rem;
  font-size: .9rem;
}

/* ── MEETING SPACES ── */
.yl-space {
  height: 100%;
  padding: 1.4rem 1rem;
  background: #fff;
  border: 1px solid var(--yl-border);
  border-radius: var(--yl-radius);
  text-align: center;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.yl-space:hover,
.yl-space:focus-visible {
  border-color: var(--yl-green);
  box-shadow: var(--yl-shadow);
  transform: translateY(-4px);
}

.yl-space-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: .8rem;
  border-radius: 12px;
  background: var(--yl-green-tint);
  color: var(--yl-green);
  font-size: 1.3rem;
}

.yl-space h3 {
  margin: 0;
  color: var(--yl-navy);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.4;
}

/* ── STRATEGIC PARTNERS ── */
.yl-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.yl-partners li {
  padding: .6rem 1.4rem;
  background: #fff;
  border: 1px solid var(--yl-border);
  border-radius: 10px;
  color: var(--yl-navy);
  font-weight: 700;
}

/* ── CLOSING CTA ── */
.yl-cta {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, var(--yl-green) 0%, var(--yl-green-dk) 100%);
  color: #fff;
  text-align: center;
}

.yl-cta h2 {
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
}

.yl-cta .btn {
  padding: .55rem 1.6rem;
  border: 2px solid #fff;
  border-radius: 8px;
  background: #fff;
  color: var(--yl-green-dk);
  font-weight: 700;
}

.yl-cta .btn:hover {
  background: transparent;
  color: #fff;
}

/* two-up cards are wider, so give their images more height */
.yl-section .col-md-6 > .yealink-item img {
  height: 280px;
}

@media (max-width: 575.98px) {
  .yl-cat-img img,
  .yealink-item img {
    height: 160px;
  }
}
