/* ============ Shared page-level section styles ============ */
.l-section {
  padding: 64px 0;
  position: relative;
  overflow: hidden;
  overflow: clip;
}

@media (min-width: 768px) {
  .l-section {
    padding: 50px 0;
  }
}

@media (min-width: 1024px) {
  .l-section {
    padding: 70px 0;
  }
}

.l-section__header-spacer {
  height: 0;
}

/* ---------- Transparent section (no bg color, grid decoration) ---------- */
.l-section-transparent {
  background-color: var(--color-white);
}

.l-section-transparent::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpath d='M44 0H0V44' fill='none' stroke='%231d4a7f' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 44px 44px;
}

.l-section-transparent::after {
  content: "";
  position: absolute;
  top: -110px;
  right: -110px;
  width: 280px;
  height: 280px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'%3E%3Cg fill='none' stroke='%231d4a7f' stroke-opacity='0.09'%3E%3Ccircle cx='140' cy='140' r='80' stroke-width='1.5'/%3E%3Ccircle cx='140' cy='140' r='120' stroke-width='1'/%3E%3Cpath d='M20 140H260M140 20V260' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.l-section-transparent .l-container {
  position: relative;
}

/* ---------- Accent section (tinted bg, corner arc decorations) ---------- */
.l-section-accent {
  background-color: #eef3f9;
}

.l-section-accent::before,
.l-section-accent::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  pointer-events: none;
  background-repeat: no-repeat;
}

.l-section-accent::before {
  bottom: -140px;
  left: -140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%231d4a7f' stroke-opacity='0.08'%3E%3Cpath d='M0 420 a130 130 0 0 0 130 -130' stroke-width='1.5'/%3E%3Cpath d='M0 420 a90 90 0 0 0 90 -90' stroke-width='1.5'/%3E%3Cpath d='M0 420 a180 180 0 0 0 180 -180' stroke-width='1'/%3E%3Cpath d='M0 420 a230 230 0 0 0 230 -230' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
}

.l-section-accent::after {
  top: -140px;
  right: -140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%231d4a7f' stroke-opacity='0.08'%3E%3Cpath d='M210 210 m-130 0 a130 130 0 1 0 260 0 a130 130 0 1 0 -260 0' stroke-width='1.5'/%3E%3Cpath d='M210 210 m-90 0 a90 90 0 1 0 180 0 a90 90 0 1 0 -180 0' stroke-width='1.5'/%3E%3Cpath d='M60 210 a150 150 0 0 1 300 0' stroke-width='1'/%3E%3Cpath d='M90 210 a120 120 0 0 1 240 0' stroke-width='1'/%3E%3C/g%3E%3C/svg%3E");
}

.l-section-accent .l-container {
  position: relative;
}

/* ---------- Image section (parallax fixed background) ---------- */
.l-section-img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  isolation: isolate;
}

.l-section-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
}

.l-section-img .l-container {
  position: relative;
}

.l-section-img .c-section-header__title,
.l-section-img .c-section-header .c-section-desc {
  color: var(--color-white);
}

.l-section-img .c-section-header__title em {
  color: var(--color-primary-tint);
}

@media (max-width: 767px) {
  .l-section-img {
    background-attachment: scroll;
  }
}

/* ============ Shared subpage banner (all pages except home) ============ */
.l-banner {
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--topbar-height) + var(--header-height) + 46px);
  padding-bottom: 64px;
  background: linear-gradient(
    115deg,
    var(--color-primary-dark) 0%,
    var(--color-primary) 60%,
    var(--color-primary-light) 100%
  );
  isolation: isolate;
}

.l-banner::before {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 420px;
  height: 420px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.l-banner::after {
  content: "";
  position: absolute;
  bottom: -190px;
  left: -110px;
  width: 460px;
  height: 460px;
  border: 2px solid rgba(255, 255, 255, 0.07);
  border-radius: 50%;
}

.l-banner__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M48 0H0V48' fill='none' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 48px 48px;
}

.l-banner__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.l-banner__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 0;
}

.l-banner--blur .l-banner__bg {
  filter: blur(8px);
  transform: scale(1.05);
}

.l-banner .l-container {
  position: relative;
  z-index: 1;
}

.l-banner__title {
  color: var(--color-white);
  margin-bottom: 14px;
}

.l-banner__desc {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  margin-bottom: 0;
}

/* Detail-style banner (flex: info left / media right) */
.l-banner--flex .l-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.l-banner__main {
  flex: 1;
  min-width: 0;
}

.l-banner__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.l-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.l-banner__media {
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 1024px) {
  .l-banner--flex .l-container {
    flex-direction: row;
    align-items: center;
    gap: 56px;
  }

  .l-banner__media {
    flex: 0 0 500px;
    width: 500px;
  }
}
