/* Open Your Account (left, ~42%) | Notice Board (right, ~58%) on a plain soft gradient.
   Desktop = two columns. Tablet = stacked, board in two columns. Mobile = stacked, full width. */
.oyn {
  --navy: var(--purple, #37305c);
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(26px, 2.6vw, 36px) 0;
  border-top: 1px solid rgba(55, 48, 92, 0.06);
  background:
    radial-gradient(circle at 8% 30%, rgba(241, 135, 23, 0.075), transparent 34%),
    radial-gradient(circle at 92% 75%, rgba(124, 98, 220, 0.075), transparent 38%),
    linear-gradient(115deg, #fffaf6 0%, #ffffff 50%, #faf7ff 100%);
}
.oyn__inner {
  width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 72px); box-sizing: border-box;
  display: grid; grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); column-gap: clamp(32px, 4.4vw, 80px); align-items: center;
}
.oyn__title { margin: 0; font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 700; font-size: clamp(30px, 3vw, 48px); line-height: 1.08; letter-spacing: -0.03em; color: var(--navy); text-wrap: balance; }
.oyn__title em { font-style: normal; color: #f18717; }

/* ---- left: Open Your Account ---- */
.oyn__lead { margin: 18px 0 0; max-width: 38ch; font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.55; color: #5f5b78; }
.oyn__panel {
  margin-top: clamp(24px, 2.6vw, 36px); padding: clamp(20px, 2vw, 28px); border-radius: 26px; display: grid; gap: clamp(20px, 2vw, 28px);
  background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(55, 48, 92, 0.07); box-shadow: 0 14px 40px -22px rgba(55, 48, 92, 0.22);
}
.oyn__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; }
.oyn__steps li { position: relative; display: grid; justify-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; line-height: 1.3; text-align: center; color: var(--navy); }
.oyn__steps li span { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #ece6ff; color: #4f35b0; font-weight: 700; }
.oyn__steps li:first-child span { background: var(--o); color: #1d1d1f; }
.oyn__steps li + li::before { content: ""; position: absolute; top: 18px; right: 50%; width: 100%; border-top: 1px dashed rgba(55, 48, 92, 0.25); }
.oyn__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.oyn__scan { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 14px; background: #fff; border: 1px solid rgba(55, 48, 92, 0.08); }
.oyn .oya__qr { flex: 0 0 auto; width: 64px; height: 64px; padding: 0; margin: 0; border-radius: 0; background: none; box-shadow: none; }
.oyn .oya__qr::before, .oyn .oya__qr::after { display: none; }
.oyn .oya__qr svg { display: block; width: 100%; height: 100%; }
.oyn__scan.is-noqr .oya__qr, .oyn [data-oya-qr].is-noqr .oya__qr { display: none; }
.oyn__scantitle { margin: 0; font-size: 11.5px; font-weight: 800; line-height: 1.25; letter-spacing: 0.02em; text-transform: uppercase; color: var(--navy); }
.oyn .oya__url { display: inline-block; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--o); white-space: nowrap; }
.oyn .oya__url:hover { text-decoration: underline; }

/* ---- right: Notice Board (images only) ---- */
.nb {
  min-width: 0; max-width: 560px; padding: clamp(14px, 1.4vw, 20px); border-radius: 22px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(55, 48, 92, 0.07); box-shadow: 0 12px 35px rgba(55, 48, 92, 0.05);
}
.nb__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: clamp(8px, 1vw, 12px); }
.nb__head .oyn__title { font-size: clamp(22px, 1.9vw, 30px); }
.nb__ctl { display: flex; gap: 8px; }
.nb__arrow { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 1px solid rgba(55, 48, 92, 0.18); background: rgba(255, 255, 255, 0.86); color: var(--navy); cursor: pointer; transition: opacity 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease; }
.nb__arrow i { font-size: 15px; }
.nb__arrow:hover:not(:disabled) { border-color: var(--navy); background: #fff; }
.nb__arrow:focus-visible, .nb__track:focus-visible, .nb__dot:focus-visible { outline: 2px solid var(--o); outline-offset: 3px; }
.nb__arrow:disabled { opacity: 0.35; cursor: default; }
.nb.is-empty .nb__ctl, .nb.is-single .nb__ctl { visibility: hidden; }

/* a fixed outer frame; each notice is centred inside it and shown whole (never cropped, stretched or overlaid) */
.nb__frame { position: relative; aspect-ratio: 16 / 9; max-height: 300px; width: 100%; border-radius: 16px; overflow: hidden; background: #f5f2fb; border: 1px solid rgba(55, 48, 92, 0.06); }
.nb__track { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; }
.nb__track::-webkit-scrollbar { display: none; }
.nb__track.is-drag { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.nb.is-single .nb__track { cursor: default; }
.nb__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: clamp(8px, 1vw, 14px); box-sizing: border-box; }
.nb__slide a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.nb__slide img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; -webkit-user-drag: none; }
.nb__empty { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; font-size: 14px; color: #5f5b78; }
.nb__empty[hidden] { display: none; }
.nb__foot { display: flex; align-items: center; justify-content: center; min-height: 20px; margin-top: 8px; }
.nb__dots { display: flex; align-items: center; gap: 4px; }
.nb__dots[hidden], .nb__count[hidden] { display: none; }
.nb__dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.nb__dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; border-radius: 99px; background: rgba(55, 48, 92, 0.62); transform: translate(-50%, -50%); transition: width 0.3s ease, background 0.3s ease; }
.nb__dot.is-on::before { width: 22px; background: #37305c; }
.nb__count { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: #5f5b78; }
.nb.is-empty .nb__foot { display: none; }

/* ================= tablet: stacked ================= */
@media (max-width: 1023px) {
  .oyn__inner { grid-template-columns: minmax(0, 1fr); row-gap: 48px; align-items: start; }
  .oyn__lead { max-width: 52ch; }
  .oyn__panel { max-width: 640px; }
}

/* ================= mobile ================= */
@media (max-width: 699px) {
  .nb__head .oyn__title { font-size: clamp(27px, 7.6vw, 34px); }
  .nb__frame { aspect-ratio: 4 / 5; }
  .oyn__title { font-size: clamp(30px, 8.4vw, 38px); }
  .oyn__panel { padding: 20px 16px; }
  .oyn__cta { flex-direction: column; align-items: stretch; }
  .oyn__cta .btn { width: 100%; justify-content: center; }
  .oyn__scan { justify-content: flex-start; }
}

/* ---- narrower + shorter: same width as the WhatsApp / Features block above ---- */
.oyn { padding: clamp(18px, 2vw, 28px) 0; }
.oyn__inner { max-width: 940px; column-gap: clamp(20px, 2.6vw, 40px); }
.oyn__title { font-size: clamp(24px, 2.2vw, 34px); }
.oyn__lead { margin-top: 10px; font-size: clamp(13.5px, 1vw, 15px); }
.oyn__panel { margin-top: clamp(14px, 1.6vw, 22px); padding: clamp(14px, 1.4vw, 20px); gap: clamp(14px, 1.4vw, 20px); border-radius: 20px; }
.nb { max-width: none; }
@media (min-width: 1024px) { .oyn__inner { grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); } .oyn__lead { max-width: 40ch; } }

/* Notice Board card is as tall as the Open Your Account column; the notice frame takes the spare height */
@media (min-width: 1024px) {
  .oyn__inner { align-items: stretch; }
  .nb { display: flex; flex-direction: column; }
  .nb__frame { flex: 1 1 0; aspect-ratio: auto; max-height: none; min-height: 160px; }
}

/* wider band: Open Your Account keeps its earlier width and moves to the left; the Notice Board takes all the extra width */
@media (min-width: 1024px) {
  .oyn__inner { max-width: 1240px; grid-template-columns: 380px minmax(0, 1fr); }
}

/* steps 1 -> 2 -> 3 light up one after another on a 6s loop; the dashed line turns orange as each step is reached */
.oyn__steps li span { animation: oyn-step 6s ease-in-out infinite; }
.oyn__steps li:nth-child(2) span { animation-delay: 2s; }
.oyn__steps li:nth-child(3) span { animation-delay: 4s; }
.oyn__steps li:nth-child(2)::before { animation: oyn-line2 6s ease-in-out infinite; }
.oyn__steps li:nth-child(3)::before { animation: oyn-line3 6s ease-in-out infinite; }
@keyframes oyn-step {
  0%, 28%   { background: var(--o); color: #1d1d1f; transform: scale(1.14); box-shadow: 0 0 0 6px rgba(241, 135, 23, 0.2); }
  36%, 100% { background: #ece6ff; color: #4f35b0; transform: scale(1); box-shadow: 0 0 0 0 rgba(241, 135, 23, 0); }
}
@keyframes oyn-line2 { 0%, 26% { border-top-color: rgba(55, 48, 92, 0.25); } 34%, 96% { border-top-color: var(--o); } 100% { border-top-color: rgba(55, 48, 92, 0.25); } }
@keyframes oyn-line3 { 0%, 59% { border-top-color: rgba(55, 48, 92, 0.25); } 67%, 96% { border-top-color: var(--o); } 100% { border-top-color: rgba(55, 48, 92, 0.25); } }
