/* ===== Global Shares Page ===== */
.page-global-shares {
  background: var(--color-white);
}

/* Hero */
.gls-hero {
  position: relative;
  background: #050230;
  color: var(--color-white);
  padding: calc(var(--header-height) + 48px) 0 64px;
  overflow: hidden;
  min-height: 420px;
}

.gls-hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.gls-hero__media {
  min-height: 360px;
  background-image: url('https://assets.cmcinvest.com/invest-sg/video-global-shares-hero.webp');
  background-repeat: no-repeat;
  background-position: left center;
  background-size: auto 100%;
}

.gls-hero__text h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.gls-hero__lead {
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.45;
  color: var(--color-white);
  margin-bottom: 16px;
}

.gls-hero__lead strong {
  font-weight: 700;
}

.gls-hero__note {
  font-size: 14px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
}

/* Section common */
.gls-section {
  padding: 80px 0;
}

.gls-section--white {
  background: var(--color-white);
}

.gls-section--cloud {
  background: var(--color-gray-bg);
}

.gls-section--dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.gls-section__title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.15;
}

.gls-section__title--left {
  text-align: left;
}

.gls-section--dark .gls-section__title {
  color: var(--color-white);
}

/* Why invest */
.gls-why__inner {
  display: grid;
  grid-template-columns: 4fr 8fr;
  gap: 48px;
  align-items: start;
}

.gls-why__video {
  display: flex;
  justify-content: center;
}

.gls-why__video video {
  width: 100%;
  max-width: 266px;
}

.gls-why__block + .gls-why__block {
  margin-top: 28px;
}

.gls-why__block h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-text);
}

.gls-why__block p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-light);
}

/* Exchange tabs */
.gls-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 48px;
}

.gls-tab {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.gls-tab:hover {
  background: #f5f6fa;
}

.gls-tab.active {
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(232, 93, 117, 0.35);
}

.gls-tab-panel {
  display: none;
}

.gls-tab-panel.active {
  display: block;
}

.gls-exchange__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.gls-exchange__text p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-light);
}

.gls-exchange__logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gls-logo {
  aspect-ratio: 1;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.gls-exchange__logos--lse .gls-logo {
  padding: 8px;
}

/* Steps */
.gls-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 16px;
}

.gls-step {
  position: relative;
  padding-top: 36px;
}

.gls-step__curve {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
  z-index: 0;
}

.gls-step__shroud--v {
  display: block;
  width: 75px;
  margin-left: auto;
  padding-right: 36px;
}

.gls-step__shroud--h {
  display: none;
  width: 100%;
  margin-top: -4px;
}

.gls-step__arrow {
  position: absolute;
  top: 50%;
  left: -30px;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-white);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gls-step__arrow img {
  width: 22px;
  transform: rotate(-90deg);
}

.gls-step__pill {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  gap: 16px;
  min-height: 160px;
  padding: 24px 28px 24px 48px;
  border-radius: 999px;
  color: var(--color-white);
}

.gls-step--blue .gls-step__pill {
  background: var(--color-primary);
}

.gls-step--dark .gls-step__pill {
  background: var(--color-dark-alt);
}

.gls-step--rose .gls-step__pill {
  background: var(--color-accent);
}

.gls-step__num {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 800;
  line-height: 1;
}

.gls-step__pill h3 {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  margin-bottom: 6px;
}

.gls-step__pill p {
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.gls-steps__cta {
  text-align: center;
  margin-top: 40px;
}

/* Learn */
.gls-learn__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.gls-learn__image {
  flex: 0 0 600px;
  max-width: 100%;
  background-image: url('https://assets.cmcinvest.com/invest-sg/pie-cake-90.png');
  background-repeat: no-repeat;
  background-position: top center;
  background-size: contain;
  min-height: 420px;
}

.gls-learn__content {
  flex: 1;
  min-width: 280px;
  padding: 20px 0 20px 40px;
}

.gls-learn__block + .gls-learn__block {
  margin-top: 28px;
}

.gls-learn__block h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.gls-learn__block p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

.gls-learn__content .btn {
  margin-top: 28px;
}

/* Why Trade */
.gls-trade__inner {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: start;
}

.gls-trade__text h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--color-text);
}

.gls-trade__subtitle {
  font-size: 16px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.gls-trade__text > p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--color-text-light);
}

.gls-trade__features {
  margin: 20px 0 24px;
}

.gls-trade__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  margin-bottom: 16px;
}

.gls-trade__features img {
  width: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

.gls-trade__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.gls-trade__badges img {
  height: 45px;
  width: auto;
}

.gls-trade__legal {
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-light);
}

.gls-trade__visual {
  display: flex;
  justify-content: center;
}

.gls-trade__visual--desktop {
  width: 100%;
  max-width: 520px;
}

.gls-trade__visual--mobile {
  display: none;
  width: 300px;
  margin: 0 auto;
}

/* Learn cards */
.gls-cards__controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}

.gls-cards__arrow {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-gray-bg);
  transition: background var(--transition);
}

.gls-cards__arrow:hover {
  background: #e2e6ef;
}

.gls-cards__arrow img {
  width: 20px;
}

.gls-cards__viewport {
  overflow: hidden;
}

.gls-cards__track {
  display: flex;
  gap: 24px;
  transition: transform 0.4s ease;
}

.gls-card {
  flex: 0 0 calc(33.333% - 16px);
  min-height: 550px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.gls-card:hover {
  color: var(--color-white);
}

.gls-card--dark {
  background: var(--color-dark);
}

.gls-card--blue {
  background: var(--color-primary);
}

.gls-card--rose {
  background: var(--color-accent);
  color: var(--color-text);
}

.gls-card--rose .gls-card__footer {
  background: var(--color-dark-alt);
  color: var(--color-white);
}

.gls-card__body {
  padding: 28px 24px 0;
}

.gls-card__body h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.gls-card__body p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.gls-card--rose .gls-card__body p {
  color: rgba(26, 26, 46, 0.85);
}

.gls-card__image {
  flex: 1;
  margin: 24px 32px 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 180px;
}

.gls-card__footer {
  display: block;
  padding: 16px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  background: var(--color-dark-alt);
}

.gls-cards__dots {
  display: none;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.gls-cards__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  padding: 0;
}

.gls-cards__dots button.active {
  background: rgba(0, 0, 0, 0.75);
}

/* FAQ */
.gls-faq__subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--color-text-light);
  margin-top: -24px;
  margin-bottom: 40px;
}

.gls-faq__list {
  max-width: 900px;
  margin: 0 auto;
}

.gls-faq__item {
  border-bottom: 1px solid #e0e4ed;
}

.gls-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 40px 20px 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  text-align: left;
  position: relative;
  cursor: pointer;
}

.gls-faq__question img {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.gls-faq__item.is-open .gls-faq__question img {
  transform: translateY(-50%) rotate(180deg);
}

.gls-faq__answer {
  display: none;
  padding: 0 0 20px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--color-text-light);
}

.gls-faq__item.is-open .gls-faq__answer {
  display: block;
}

.gls-faq__answer ul {
  list-style: disc;
  padding-left: 20px;
  margin: 12px 0;
}

.gls-faq__answer li {
  margin-bottom: 6px;
}

/* Pre-footer */
.gls-prefooter {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 24px 0;
}

.gls-prefooter__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.gls-prefooter__icon {
  width: 70px;
  flex-shrink: 0;
}

.gls-prefooter__text {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.2;
}

.gls-prefooter__badges {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gls-prefooter__badges img {
  width: 135px;
}

/* Responsive */
@media (max-width: 1024px) {
  .gls-why__inner,
  .gls-exchange__inner,
  .gls-trade__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gls-learn__image {
    flex: 1 1 100%;
    min-height: 320px;
  }

  .gls-learn__content {
    padding: 0;
  }

  .gls-steps {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }

  .gls-step__arrow {
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
  }

  .gls-step__arrow img {
    transform: none;
  }

  .gls-step__shroud--v {
    display: none;
  }

  .gls-step__shroud--h {
    display: block;
  }

  .gls-step__pill {
    flex-direction: column;
    text-align: center;
    border-radius: var(--radius-lg);
    padding: 36px 24px 24px;
  }

  .gls-card {
    flex: 0 0 calc(50% - 12px);
  }
}

@media (max-width: 768px) {
  .gls-hero__layout {
    grid-template-columns: 1fr;
  }

  .gls-hero__media {
    order: -1;
    min-height: 280px;
    background-position: center;
    background-size: 420px auto;
    border-bottom: 4px solid var(--color-accent);
  }

  .gls-section {
    padding: 60px 0;
  }

  .gls-tab {
    font-size: 13px;
    padding: 8px 12px;
  }

  .gls-trade__visual--desktop {
    display: none;
  }

  .gls-trade__visual--mobile {
    display: block;
  }

  .gls-trade__visual {
    order: -1;
    margin-bottom: 24px;
  }

  .gls-card {
    flex: 0 0 100%;
  }

  .gls-cards__dots {
    display: flex;
  }

  .gls-cards__controls {
    justify-content: center;
  }

  .gls-prefooter__inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .gls-why__video video {
    max-width: 220px;
  }

  .gls-learn__image {
    min-height: 250px;
    background-size: 250px auto;
  }

  .gls-exchange__logos {
    gap: 10px;
  }
}
