/* Finsai Academy + E-Books — matched to finsaitrade.com reference */

.academy-page-body {
  background: #ffffff;
}

.academy-page-body .site-header {
  background-color: rgba(11, 33, 57, 0.95);
}

.academy-main {
  color: #0b2139;
  background: #ffffff;
  overflow-x: hidden;
}

.academy-main .container {
  max-width: 1140px;
}

/* Top spacer under fixed header (reference: -90px margin) */
.academy-top-spacer {
  margin-top: -90px;
  min-height: 50px;
  background: #0b2139;
}

/* Beyond learning — curve background */
.academy-beyond {
  position: relative;
  padding: 70px 0 80px;
  background: #ffffff;
}

.academy-beyond::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/academy/curve-bg-3.png") 76% 0 / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

.academy-beyond .container {
  position: relative;
  z-index: 1;
}

.academy-beyond h2 {
  margin: 0 0 30px;
  color: #000000;
  font-size: 35px;
  font-weight: 600;
  line-height: 1.2;
}

.academy-beyond p {
  margin: 0 0 28px;
  color: #000000;
  font-size: 18px;
  line-height: 1.55;
}

.academy-beyond img {
  width: 100%;
  height: auto;
}

/* Gem-style buttons (reference Elementor) */
.academy-gem-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid #87edf7;
  border-radius: 10px;
  padding: 15px 40px;
  color: #ffffff;
  background: #056fb4;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.academy-gem-btn:hover,
.academy-gem-btn:focus {
  color: #0b2139;
  background: transparent;
  border-color: #000000;
}

.academy-gem-btn.is-light {
  color: #ffffff;
  border-color: #87edf7;
}

.academy-gem-btn.is-light:hover {
  color: #ffffff;
  background: transparent;
  border-color: #87edf7;
}

.academy-gem-btn.is-rev {
  background: #007aff;
  border-color: #007aff;
}

/* Feature slider (Revolution-style full-width slides) */
.academy-features {
  background: #ffffff;
}

.academy-features-carousel {
  position: relative;
}

.academy-features-carousel .academy-carousel-viewport {
  overflow: hidden;
}

.academy-features-carousel .academy-carousel-slide {
  flex: 0 0 100%;
  max-width: 100%;
}

.academy-features-carousel .academy-carousel-btn.prev {
  left: 12px;
}

.academy-features-carousel .academy-carousel-btn.next {
  right: 12px;
}

.academy-feature-slide {
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 42%);
  align-items: center;
  gap: 40px;
  min-height: 450px;
  padding: 50px 8vw;
}

.academy-feature-slide.is-white {
  background: #ffffff;
}

.academy-feature-slide.is-sky {
  background: #add8e6;
}

.academy-feature-slide h2 {
  margin: 0 0 16px;
  color: #000000;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.25;
}

.academy-feature-slide p {
  margin: 0 0 24px;
  color: #000000;
  font-size: 17px;
  line-height: 1.5;
}

.academy-feature-slide img {
  width: 100%;
  max-width: 520px;
  height: auto;
  justify-self: end;
}

/* Stand out — large faded numbers with centered labels */
.academy-standout {
  padding: 50px 0;
  background: #ffffff;
}

.academy-standout-intro {
  margin-bottom: 30px;
  text-align: center;
}

.academy-standout-intro h2 {
  margin: 0 0 30px;
  color: #000000;
  font-size: 35px;
  font-weight: 600;
  line-height: 42px;
}

.academy-standout-intro p {
  margin: 0;
  color: #000000;
  font-size: 18px;
}

.academy-standout-board {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.academy-standout-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.academy-standout-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
}

.academy-standout-cell {
  position: relative;
  width: 100%;
  max-width: 100%;
}

.academy-standout-num-layer {
  text-align: center;
}

.academy-standout-row-top .academy-standout-num-layer {
  padding: 90px 0 70px;
}

.academy-standout-row-bottom .academy-standout-num-layer {
  padding: 0;
}

.academy-standout-num-layer .num {
  display: block;
  margin: 0;
  font-family: Tahoma, sans-serif;
  font-weight: 700;
  line-height: 0.82;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.academy-standout-row-top .academy-standout-num-layer .num {
  color: #056fb44a;
  font-size: 200px;
}

.academy-standout-row-bottom .academy-standout-num-layer .num {
  color: #056fb470;
  font-size: 100px;
}

.academy-standout-cell .label {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  max-width: 11em;
  margin: 0;
  color: #000000;
  font-size: 30px;
  font-weight: 500;
  line-height: 30px;
  text-align: center;
  transform: translate(-50%, -50%);
}

/* Milestones — counters + copy */
.academy-milestones {
  padding: 60px 0;
  color: #ffffff;
  background: #0b2139;
}

.academy-milestones-copy h2 {
  margin: 0 0 22px;
  color: #ffffff;
  font-size: 35px;
  font-weight: 500;
  line-height: 42px;
}

.academy-milestones-copy p {
  margin-bottom: 28px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.55;
}

.academy-milestones-btn {
  border-color: #056fb4;
  padding: 12px 28px;
}

.academy-counter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.academy-counter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 30px 20px;
  text-align: center;
  border-radius: 30px;
  background: radial-gradient(at center center, #6593da 32%, #0059e1 100%);
}

.academy-counter-card .title {
  display: block;
  margin: 0;
  color: #ffffff;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.4;
}

.academy-counter-card .value {
  display: block;
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(2.75rem, 5vw, 4.3rem);
  font-weight: 600;
  line-height: 1;
}

/* Course carousel */
.academy-courses {
  padding: 40px 0 70px;
  background: #ffffff;
}

.academy-courses-head {
  margin-bottom: 30px;
  text-align: center;
}

.academy-courses-head h2 {
  margin: 0 0 30px;
  color: #000000;
  font-size: 35px;
  font-weight: 600;
  line-height: 42px;
}

.academy-courses-head p {
  margin: 0;
  color: #000000;
  font-size: 18px;
}

.academy-carousel {
  position: relative;
  padding: 0 44px;
}

.academy-courses-carousel,
.ebooks-carousel {
  padding: 0 56px;
}

.academy-carousel-viewport {
  overflow: hidden;
}

.academy-carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.45s ease;
  will-change: transform;
}

.academy-carousel-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
}

.academy-courses-carousel .academy-carousel-slide {
  padding: 0 10px;
}

.academy-course-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 22px 20px 20px;
  border-radius: 12px;
  color: #000000;
  background: linear-gradient(120deg, #8ed2fe 0%, #e0c8ff 100%);
}

.academy-course-card h3 {
  margin: 0 0 2px;
  padding: 0 0 0 4px;
  border-bottom: 0;
  color: #000000;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.academy-course-card h3::after {
  content: "";
  display: block;
  width: 90%;
  height: 3px;
  margin: 10px 0 14px;
  background: #000000;
}

.academy-course-card ul {
  display: grid;
  gap: 4px;
  margin: 0 0 20px;
  padding-left: 22px;
  text-align: left;
}

.academy-course-card li {
  color: #000000;
  font-size: 17px;
  line-height: 1.35;
}

.academy-course-btn {
  width: fit-content;
  margin-top: auto;
  margin-left: 10px;
  border: 0;
  border-radius: 10px;
  padding: 10px 22px;
  color: #ffffff;
  background: #056fb4;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.academy-course-btn:hover,
.academy-course-btn:focus {
  color: #000000;
  background: #ffffff;
}

.academy-courses-carousel .academy-carousel-btn {
  width: auto;
  height: auto;
  font-size: 50px;
}

.academy-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 0;
  color: #056fb4;
  background: transparent;
  font-size: 50px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.academy-carousel-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.academy-carousel-btn.prev {
  left: -8px;
}

.academy-carousel-btn.next {
  right: -8px;
}

/* Quick learning — dark band + blog cards */
.academy-quick {
  padding: 40px 0;
  color: #ffffff;
  background: #213f7d;
}

.academy-quick h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 35px;
  font-weight: 600;
  text-transform: none;
}

.academy-quick .sub {
  margin: 20px 0 28px;
  color: #ffffff;
  font-size: 17px;
}

.academy-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.academy-quick-card {
  overflow: hidden;
  background: #f2f5f6;
}

.academy-quick-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.academy-quick-card .caption {
  padding: 18px 16px 20px;
}

.academy-quick-card h3 {
  margin: 0;
  color: #0b2139;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.academy-quick-card h3 .date {
  display: block;
  margin-bottom: 6px;
  color: #056fb4;
  font-weight: 700;
}

/* Promo + certificate + testimonials */
.academy-promo {
  padding: 50px 0;
  background: #ffffff;
}

.academy-promo-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 232px;
  padding: 20px;
}

.academy-promo-visual img {
  width: 100%;
  max-width: 520px;
  height: auto;
}

.academy-promo-copy {
  text-align: right;
}

.academy-promo-copy h2 {
  margin: 0 0 12px;
  color: #000000;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.35;
}

.academy-promo-lead {
  margin: 0 0 0;
  color: #000000;
  font-size: 20px;
  line-height: 1.4;
}

.academy-promo-text {
  margin: 30px 0;
  color: #000000;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
}

.academy-promo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  padding: 12px 28px;
  color: #ffffff;
  background: #056fb4;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.academy-promo-btn:hover,
.academy-promo-btn:focus {
  color: #000000;
  background: #ffffff;
  box-shadow: inset 0 0 0 2px #056fb4;
}

.academy-promo-terms {
  margin: 10px 0 0;
  color: #000000;
  font-size: 18px;
  line-height: 1.4;
}

.academy-cert {
  padding: 60px 0;
  background: #ffffff;
}

.academy-cert h2 {
  margin: 0 0 22px;
  color: #0b2139;
  font-size: 35px;
  font-weight: 600;
  line-height: 42px;
}

.academy-cert p {
  font-size: 17px;
  line-height: 1.55;
}

.academy-cert img {
  width: 100%;
  max-width: 520px;
}

.academy-reviews {
  padding: 50px 0 70px;
  background: #ffffff;
}

.academy-reviews h2 {
  margin: 0 0 24px;
  text-align: left;
  color: #000000;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
}

.academy-reviews-carousel {
  position: relative;
  padding: 0 56px;
}

.academy-reviews-carousel .academy-carousel-slide {
  flex: 0 0 100%;
  padding: 0 8px 24px;
}

.academy-reviews-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: #4a4a4a;
  background: #e0c8ff;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
  transition: background 0.2s ease;
}

.academy-reviews-nav:hover:not(:disabled) {
  background: #d4b8ff;
}

.academy-reviews-nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.academy-reviews-nav.prev {
  left: 0;
}

.academy-reviews-nav.next {
  right: 0;
}

.academy-review-card {
  position: relative;
  margin: 0 auto;
  max-width: 920px;
  padding: 36px 48px 44px;
  border-radius: 28px;
  background: #f2f5f6;
}

.academy-review-card::after {
  content: "";
  position: absolute;
  bottom: -14px;
  left: 56px;
  width: 32px;
  height: 16px;
  background: #f2f5f6;
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}

.academy-review-card h3 {
  margin: 0 0 16px;
  color: #056fb4;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.academy-review-card p {
  margin: 0;
  max-width: none;
  color: #5f727f;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  text-align: left;
}

.academy-review-quote {
  display: block;
  margin: 20px auto 0;
  color: #056fb4;
  font-size: 60px;
  font-weight: 700;
  line-height: 0.8;
  text-align: center;
}

/* ——— E-Books page ——— */
.ebooks-page .academy-top-spacer {
  margin-top: 0;
  min-height: 0;
}

.ebooks-hero-wrap {
  
  padding: 70px 0 40px;
  color: #ffffff;
  background: #0b2139;
}

.ebooks-hero-wrap h1 {
  margin: 0;
  color: #ffffff;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
}

.ebooks-hero-wrap .hero-row {
  align-items: center;
}

.ebooks-hero-wrap .hero-image img {
  width: 85%;
  max-width: 520px;
  margin-left: auto;
  display: block;
}

.ebooks-socials {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 24px;
}

.ebooks-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #0b2139;
  background: #87edf7;
  font-size: 18px;
  text-decoration: none;
}

.ebooks-content {
  padding: 50px 0 80px;
  background: #ffffff;
}

.ebooks-quote {
  max-width: 900px;
  margin: 0 auto 48px;
  padding: 32px 28px;
  text-align: center;
  background: #ffffff;
  box-shadow: 0 8px 30px rgba(11, 33, 57, 0.08);
}

.ebooks-quote blockquote {
  margin: 0;
  color: #0b2139;
  font-size: 22px;
  line-height: 1.45;
}

.ebooks-quote cite {
  display: block;
  margin-top: 14px;
  color: #0c0c0c;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
}

.ebooks-download-section {
  margin-top: 8px;
}

.ebooks-download-section h2 {
  margin: 0 0 0;
  padding-bottom: 50px;
  text-align: center;
  color: #000000;
  font-size: 30px;
  font-weight: 600;
  line-height: 40px;
}

.ebooks-download-panel {
  border-top: 1px solid #e3e3e3;
  border-bottom: 1px solid #e3e3e3;
  padding: 28px 0 32px;
}

.ebooks-carousel {
  padding: 0 56px;
}

.ebooks-carousel .academy-carousel-btn {
  width: auto;
  height: auto;
  border-radius: 0;
  color: #056fb4;
  font-size: 50px;
}

.ebooks-carousel .academy-carousel-slide {
  flex: 0 0 calc((100% - 40px) / 3);
  padding: 0 10px;
  border-right: 1px solid #e3e3e3;
}

.ebooks-carousel .academy-carousel-slide:last-child {
  border-right: 0;
}

.ebook-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 10px 16px 16px;
  text-align: center;
}

.ebook-card figure {
  margin: 0 0 20px;
}

.ebook-card img {
  width: auto;
  max-width: 200px;
  max-height: 280px;
  height: auto;
  margin: 0 auto;
  display: block;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.ebook-card .ebook-desc {
  min-height: 72px;
  margin: 0 0 16px;
  color: #000000;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.ebook-card .level {
  display: block;
  margin: 0 0 20px;
  color: #000000;
  font-size: 14px;
  font-weight: 700;
}

.ebook-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  border: 1px solid #056fb4;
  border-radius: 10px;
  padding: 10px 30px;
  color: #ffffff;
  background: #056fb4;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.5s ease, color 0.5s ease;
}

.ebook-download-button:hover,
.ebook-download-button:focus {
  color: #056fb4;
  background: #ffffff;
}

@media (max-width: 1199.98px) {
  .academy-carousel-slide {
    flex: 0 0 calc((100% - 20px) / 2);
  }

  .ebooks-carousel .academy-carousel-slide {
    flex: 0 0 50%;
  }

  .ebooks-carousel .academy-carousel-slide:nth-child(2n) {
    border-right: 0;
  }

  .academy-feature-slide {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 24px;
    text-align: center;
  }

  .academy-feature-slide img {
    justify-self: center;
    max-width: 360px;
  }
}

@media (max-width: 991.98px) {
  .academy-standout-grid,
  .academy-quick-grid {
    grid-template-columns: 1fr;
  }

  .academy-promo-copy {
    margin-top: 8px;
    text-align: left;
  }

  .academy-reviews-carousel {
    padding: 0 48px;
  }

  .academy-review-card {
    padding: 28px 24px 36px;
  }

  .academy-review-card p {
    text-align: left;
  }

  .academy-counter-grid {
    grid-template-columns: 1fr;
    margin-bottom: 32px;
  }

  .academy-carousel-slide {
    flex: 0 0 100%;
  }

  .ebooks-carousel {
    padding: 0 44px;
  }

  .ebooks-carousel .academy-carousel-slide {
    flex: 0 0 100%;
    border-right: 0;
    border-bottom: 1px solid #e3e3e3;
    padding-bottom: 24px;
    margin-bottom: 24px;
  }

  .ebooks-carousel .academy-carousel-slide:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 10px;
  }

  .ebooks-download-panel {
    padding: 20px 0 24px;
  }

  .ebooks-hero-wrap h1 {
    font-size: 36px;
    text-align: center;
  }

  .ebooks-hero-wrap .hero-image img {
    width: 100%;
    margin: 24px auto 0;
  }
}

@media (max-width: 767.98px) {
  .academy-top-spacer {
    margin-top: 0;
    min-height: 0;
  }

  .academy-beyond {
    padding: 50px 0;
  }

  .academy-beyond h2,
  .academy-standout-intro h2,
  .academy-courses-head h2,
  .academy-cert h2 {
    font-size: 26px;
    line-height: 34px;
  }

  .academy-standout-row-top .academy-standout-num-layer .num {
    font-size: clamp(5rem, 18vw, 200px);
  }

  .academy-standout-row-bottom .academy-standout-num-layer .num {
    font-size: clamp(3.5rem, 12vw, 100px);
  }

  .academy-standout-cell .label {
    font-size: 22px;
    line-height: 1.25;
    max-width: 10em;
  }

  .academy-standout-row-top .academy-standout-num-layer {
    padding-top: 50px;
    padding-bottom: 40px;
  }

  .academy-carousel-btn {
    font-size: 36px;
  }

  .ebooks-hero-wrap {
    margin-top: 0;
    padding-top: 0;
  }
}
