/*
Theme Name: Ace Markets Child
Template: hestia
Version: 1.0
*/

/* ================= GLOBAL ================= */

body {
  font-family: Inter, system-ui, sans-serif;
  color: #0E1726;
  background: #ffffff;
  margin: 0;
}

h1, h2, h3, h4 {
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}

p {
  font-size: 2rem;
  line-height: 1.8;
  color: #334155;
}

/* ================= CONTAINER ================= */

.ace-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ================= NAVBAR ================= */

.home .navbar,
.home .navbar.navbar-default {
  background: transparent !important;
  box-shadow: none !important;
  position: absolute;
  width: 100%;
  z-index: 999;
  transition: 0.3s ease;
}

.home .navbar.scrolled {
  background: #0E1726 !important;
  box-shadow: 0 10px 40px rgba(15,23,42,0.25) !important;
}

.home .navbar .navbar-nav > li > a,
.home .navbar .navbar-brand {
  color: #ffffff !important;
}

/* ================= HERO ================= */

.ace-hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0E1726;
  text-align: center;
}

.ace-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ace-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,23,38,0.85);
}

.ace-hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 0 20px;
  color: #ffffff;
}

.ace-hero-title {
  font-size: clamp(3.5rem,6vw,5.5rem);
  font-weight: 700;
  line-height: 1.05;
}

.ace-hero-subtitle {
  font-size: 1.4rem;
  margin-top: 20px;
  color: #CBD5E1;
}

/* ================= BUTTONS ================= */

.ace-btn {
  padding: 14px 32px;
  border-radius: 14px;
  font-weight: 600;
  transition: 0.25s ease;
  display: inline-block;
  margin-top: 30px;
}

.ace-btn-primary {
  background: #1BA39C;
  color: #ffffff;
}

.ace-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 45px rgba(27,163,156,0.35);
}

.ace-btn-secondary {
  border: 1px solid rgba(27,163,156,0.7);
  color: #1BA39C;
  margin-left: 12px;
}

.ace-btn-secondary:hover {
  background: #1BA39C;
  color: #ffffff;
}

/* ================= MARKET STRIP ================= */

.ace-market-strip {
  background: #0B1220;
  color: #CBD5E1;
  padding: 14px 0;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

.ace-market-grid {
  display: flex;
  justify-content: center;
  gap: 60px;
  opacity: 0.75;
}

/* ================= SECTIONS ================= */

.ace-section {
  padding: 160px 0;
}

.ace-section + .ace-section {
  border-top: 1px solid #F1F5F9;
}

/* Soft section for rhythm */

.ace-section-soft {
  background: #F4F7FA;
}

/* Dark section */

.ace-section-dark {
  background:
    radial-gradient(circle at 80% 20%, rgba(27,163,156,0.12), transparent 40%),
    linear-gradient(180deg,#0E1726 0%,#0B1422 100%);
  color: #ffffff;
  position: relative;
}

.ace-section-dark h2,
.ace-section-dark h3 {
  color: #ffffff;
}

.ace-section-dark p,
.ace-section-dark li {
  color: #CBD5E1;
}

/* ================= SECTION HEADERS ================= */

.ace-section h2 {
  font-size: clamp(2.6rem,3vw,3.4rem);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
}

.ace-section-dark h2 {
  text-align: left;
}

/* ================= GRID ================= */

.ace-grid-3,
.ace-grid-4 {
  display: grid;
  gap: 36px;
}

.ace-grid-3 { grid-template-columns: repeat(3,1fr); }
.ace-grid-4 { grid-template-columns: repeat(4,1fr); }

/* ================= CARDS ================= */

.ace-card,
.ace-tile {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 40px;
  transition: 0.3s ease;
}

.ace-card:hover,
.ace-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 80px rgba(15,23,42,0.08);
  border-color: rgba(27,163,156,0.5);
}

.ace-card-flat {
  background: #F8FAFC;
  box-shadow: none;
}

/* ================= READINESS ================= */

.ace-readiness-box {
  background: #ffffff;
  border-radius: 24px;
  padding: 50px;
  border: 1px solid #E2E8F0;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 60px rgba(15,23,42,0.06);
}

.ace-check {
  margin-right: 12px;
}

.disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* ================= LEGAL ================= */

.ace-legal-links {
  list-style: none;
  padding: 0;
}

.ace-legal-links li {
  margin-bottom: 10px;
}

.ace-legal-links a {
  color: #1BA39C;
}

/* ================= SCROLL REVEAL ================= */

.ace-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.9s ease;
}

.ace-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */

@media(max-width:1024px){
  .ace-grid-4{grid-template-columns:repeat(2,1fr);}
  .ace-grid-3{grid-template-columns:1fr;}
}

@media(max-width:768px){
  .ace-section{padding:110px 0;}
  .ace-hero-title{font-size:2.6rem;}
}
/* ================= READINESS CENTER FIX ================= */

.ace-readiness h2,
.ace-readiness p {
  text-align: center;
}

.ace-readiness-box {
  margin-top: 40px;
}
.ace-readiness-box label {
  display: block;
  width: 100%;
  margin: 0 0 18px 0;
  text-align: left;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 600;
  color: #172033;
}

.ace-readiness-box input[type="checkbox"] {
  display: inline-block;
  margin-right: 12px;
  vertical-align: middle;
}
/* ================= MT5 INFRASTRUCTURE FIX ================= */

.ace-section-dark {
  background:
    radial-gradient(circle at 80% 20%, rgba(27,163,156,0.15), transparent 40%),
    linear-gradient(180deg,#0E1726 0%,#0B1422 100%);
  padding: 180px 0;
}

.ace-section-dark h2 {
  font-size: clamp(3rem,3vw,3.6rem);
  font-weight: 700;
  margin-bottom: 25px;
  letter-spacing: -0.03em;
}

.ace-section-dark p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.ace-section-dark .ace-list {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-top: 30px;
}
/* =====================================
   FINAL VISUAL POLISH LAYER
====================================== */

/* --- Fix white-on-white headings permanently --- */
.ace-section:not(.ace-section-dark) h1,
.ace-section:not(.ace-section-dark) h2,
.ace-section:not(.ace-section-dark) h3,
.ace-section:not(.ace-section-dark) h4 {
  color: #0E1726 !important;
}

.ace-section:not(.ace-section-dark) p {
  color: #334155 !important;
}

/* --- Improve section rhythm (avoid two white blocks in a row) --- */
.ace-section-soft {
  background: #F4F7FA;
}

/* --- Make MT5 section feel bigger and more premium --- */
.ace-section-dark {
  padding: 200px 0;
}

.ace-section-dark h2 {
  font-size: clamp(3.2rem,3vw,3.8rem);
  line-height: 1.05;
}

.ace-section-dark .ace-list li {
  margin-bottom: 8px;
}

/* --- Improve card density and spacing --- */
.ace-card,
.ace-tile {
  padding: 48px;
}

/* --- Improve paragraph scale globally --- */
.ace-section p {
  font-size: 1.15rem;
}

/* --- Better vertical spacing between headings and grids --- */
.ace-section h2 {
  margin-bottom: 50px;
}

/* --- Add subtle divider under section titles --- */
.ace-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #1BA39C;
  margin: 20px auto 0;
}

.ace-section-dark h2::after {
  background: rgba(27,163,156,0.7);
  margin-left: 0;
}

/* --- Make readiness section visually intentional --- */
.ace-readiness-box {
  box-shadow: 0 30px 80px rgba(15,23,42,0.08);
}

/* --- Improve legal block card contrast --- */
.ace-section-dark .ace-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

/* --- Slightly reduce market strip dominance --- */
.ace-market-strip {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
/* ================= REGULATORY HEADER FIX ================= */

.ace-section-dark .ace-section-header {
  position: relative;
  z-index: 3;
  text-align: center;
  margin-bottom: 100px;
}

.ace-section-dark .ace-section-header h2 {
  color: #ffffff !important;
  font-size: clamp(3rem,3vw,3.8rem);
  letter-spacing: -0.03em;
}

.ace-section-dark .ace-section-header p {
  color: #CBD5E1;
}
.ace-card p,
.ace-tile p {
  font-size: 1.5rem;
}

.ace-market-strip {
  font-size: 1.5rem;
}
/* ================= FORCE LARGER BODY TEXT ================= */

/* Dark section paragraphs (MT5 etc.) */
.ace-section-dark p {
  font-size: 1.5rem !important;
  line-height: 1.8;
}

/* Dark section bullet list */
.ace-section-dark .ace-list li {
  font-size: 1.5rem !important;
  line-height: 1.9;
}

/* Readiness intro text */
.ace-readiness p {
  font-size: 1.5rem !important;
}

/* Readiness checkbox labels */
.ace-readiness-box label {
  font-size: 1.5rem !important;
  line-height: 1.9;
}

/* Legal block body text */
.ace-section-dark .ace-card p {
  font-size: 1.5rem !important;
}
/* ================= MT5 WORLD-CLASS PANEL ================= */

.ace-split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 100px;
  align-items: start;
}

@media (max-width: 1024px) {
  .ace-split {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* Right visual wrapper */

.ace-mt5-visual {
  display: flex;
  justify-content: flex-end;
}

/* Panel */

.ace-mt5-panel {
  width: 100%;
  max-width: 520px;
  padding: 60px;
  border-radius: 24px;

  background: rgba(10, 20, 35, 0.22);  /* semi transparent */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.12);

  box-shadow:
    0 60px 140px rgba(0,0,0,0.45);

  position: relative;
}

/* Top accent line */

.ace-mt5-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #1BA39C;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
}

/* Rows */

.ace-mt5-panel div {
  padding: 22px 0;
  font-size: 1.3rem;
  line-height: 1.7;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #CBD5E1;
}

/* Remove border on last row */

.ace-mt5-panel div:last-child {
  border-bottom: none;
}

/* Label styling */

.ace-mt5-panel strong {
  display: inline-block;
  width: 120px;
  font-weight: 600;
  color: #ffffff;
}

/* ================= MARKET TICKER ================= */

.ace-market-strip {
  overflow: hidden;
  white-space: nowrap;
}

.ace-market-ticker {
  overflow: hidden;
  position: relative;
}

.ace-market-track {
  display: inline-flex;
  gap: 80px;
  animation: aceTicker 25s linear infinite;
}

.ace-market-item {
  font-size: 1rem;
  color: #CBD5E1;
  display: flex;
  gap: 8px;
  align-items: center;
}

.ace-market-item span {
  color: #1BA39C;
  font-weight: 600;
}

@keyframes aceTicker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
/* ================= MT5 FULL BACKGROUND IMAGE ================= */

.ace-mt5-bg {
  position: relative;

  background:
    linear-gradient(
      90deg,
      rgba(8,16,28,0.75) 0%,
      rgba(8,16,28,0.70) 35%,
      rgba(8,16,28,0.65) 55%,
      rgba(8,16,28,0.55) 75%,
      rgba(8,16,28,0.50) 100%
    ),
    url("https://s6e.2fa.myftpupload.com/wp-content/uploads/2026/02/MT5-MetaTrader-5-Platform-FX-Trading.png");

  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
}

.ace-mt5-panel {
  width: 100%;
  max-width: 520px;
  padding: 60px;
  border-radius: 24px;

  background: rgba(10, 20, 35, 0.82);  /* semi transparent */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  border: 1px solid rgba(255,255,255,0.12);

  box-shadow:
    0 60px 140px rgba(0,0,0,0.45);

  position: relative;
}
/* ================= MARKETS BACKGROUND FADE ================= */

.ace-section-fade {
  position: relative;
  overflow: hidden;
  background: #F4F7FA;
}

/* Background layers */

.ace-section-fade .ace-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

/* First image */
.ace-section-fade .ace-bg-1 {
  background-image: url("https://s6e.2fa.myftpupload.com/wp-content/uploads/2026/02/Trade-Forex-and-Oil-New-Zealand.jpg");
  animation: fadeMarkets1 20s infinite;
}

/* Second image */
.ace-section-fade .ace-bg-2 {
  background-image: url("https://s6e.2fa.myftpupload.com/wp-content/uploads/2026/02/Trade-Gold-XAUUSD-New-Zealand.jpg");
  animation: fadeMarkets2 20s infinite;
}

/* Soft overlay for readability */

.ace-section-fade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(244,247,250,0.92);
  z-index: 1;
}

/* Keep content above images */

.ace-section-fade .ace-container {
  position: relative;
  z-index: 2;
}

/* Fade timing */

@keyframes fadeMarkets1 {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeMarkets2 {
  0%, 45% { opacity: 0; }
  50%, 95% { opacity: 1; }
  100% { opacity: 0; }
}

//Assets Background///
/* ================= ASSETS BACKGROUND ================= */

.ace-section.ace-assets-bg {
  position: relative;
  min-height: 700px;
  overflow: hidden;
  background: none !important;
}

.ace-section.ace-assets-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      rgba(255,255,255,0.78),
      rgba(255,255,255,0.78)
    ),
    url("https://s6e.2fa.myftpupload.com/wp-content/uploads/2026/03/Forex-Oil-Energy-Gold-Silver-Trading.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.ace-section.ace-assets-bg > .ace-container {
  position: relative;
  z-index: 1;
}

.ace-section.ace-assets-bg .ace-tile {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
/* ================= FOOTER ================= */
.ace-footer {
  background: linear-gradient(180deg, #0B1422 0%, #08101C 100%);
  font-size: 1.2rem; 
  color: #ffffff;
  padding: 100px 0 40px;
  text-align: center; /* center everything */
}

/* GRID */
.ace-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  align-items: start;
}

/* HEADINGS */
.ace-footer-col h3 {
  font-size: 1.8rem;        
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 20px;
}

/* PARAGRAPHS */
.ace-footer-col p {
  font-size: 1.5rem;       
  line-height: 1.8;
  color: #ffffff;
  max-width: 420px;
  margin: 0 auto;           
}

/* LINKS */
.ace-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ace-footer-links li {
  margin-bottom: 14px;
}

.ace-footer-links a {
  color: #2bdedb;
  font-size: 1.5rem;      
  font-weight: 500;
  text-decoration: none;
}

.ace-footer-links a:hover {
  color: #67E8F9;
}

/* REMOVE BULLETS */
.ace-footer-links li::before {
  display: none;
}

.ace-footer-bottom {
  text-align: center;
  margin-top: 60px;
  font-size: 1.5rem;     
  color: #ffffff !important; 
  opacity: 1;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 25px;
}

.ace-footer-bottom,
.ace-footer-bottom p {
  color: #ffffff !important;
}

.ace-footer-bottom p {
  font-size: 1.5rem;
  margin: 0;
}
/* ================= ASSETS SECTION ANIMATION ================= */

/* Subtle background movement */
.ace-assets-bg::before {
  animation: bgMove 20s ease-in-out infinite alternate;
}

@keyframes bgMove {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.05) translateY(-20px); }
}

/* Cards start hidden */
.ace-assets-bg .ace-tile {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

/* When visible */
.ace-assets-bg.visible .ace-tile {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger effect */
.ace-assets-bg.visible .ace-tile:nth-child(1) { transition-delay: 0.1s; }
.ace-assets-bg.visible .ace-tile:nth-child(2) { transition-delay: 0.2s; }
.ace-assets-bg.visible .ace-tile:nth-child(3) { transition-delay: 0.3s; }
.ace-assets-bg.visible .ace-tile:nth-child(4) { transition-delay: 0.4s; }

/* Hover lift */
.ace-assets-bg .ace-tile:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

/* Subtle glow */
.ace-assets-bg .ace-tile:hover {
  border-color: rgba(27,163,156,0.5);
}

/* Heading fade */
.ace-assets-bg h2 {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.ace-assets-bg.visible h2 {
  opacity: 1;
  transform: translateY(0);
}

/* ================= ELITE TRUST SECTION ================= */

.ace-trust-pro {
  position: relative;
  background: radial-gradient(circle at center, #0E1726 0%, #08101C 100%);
  color: white;
  text-align: center;
  overflow: hidden;
}

/* subtle animated background grid */
.ace-trust-pro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(27,163,156,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  from { transform: translateY(0); }
  to { transform: translateY(-40px); }
}

/* Title */
.ace-pro-title {
  font-size: clamp(3rem, 4vw, 3.8rem);
  margin-bottom: 80px;
  position: relative;
  z-index: 2;
}

/* Grid */
.ace-pro-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
  position: relative;
  z-index: 2;
}

/* Cards */
.ace-pro-card {
  padding: 50px;
  border-radius: 20px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);

  backdrop-filter: blur(12px);

  transition: all 0.3s ease;
}

/* hover = power feel */
.ace-pro-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(27,163,156,0.5);
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
}

/* Icon */
.ace-pro-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* Heading */
.ace-pro-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

/* Text */
.ace-pro-card p {
  font-size: 1.1rem;
  color: #CBD5E1;
}

/* CTA */
.ace-pro-cta {
  margin-top: 70px;
  position: relative;
  z-index: 2;
}
/* ================= WHY TRADE SECTION ================= */

.ace-why {
  background: #F4F7FA;
  text-align: center;
}

/* title */
.ace-why-title {
  font-size: clamp(3rem,4vw,3.6rem);
  margin-bottom: 70px;
}

/* grid */
.ace-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

/* cards */
.ace-why-card {
  padding: 50px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #E2E8F0;

  transition: all 0.3s ease;
}

/* hover */
.ace-why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 80px rgba(15,23,42,0.08);
  border-color: rgba(27,163,156,0.4);
}

/* headings */
.ace-why-card h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
}

/* text */
.ace-why-card p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* CTA */
.ace-why-cta {
  margin-top: 60px;
}

/* ================= WHY TRADE SECTION (FINAL) ================= */

.ace-why-pro {
  position: relative;
  background: radial-gradient(circle at center, #0E1726 0%, #08101C 100%);
  color: #ffffff;
  padding: 140px 0;
  overflow: hidden;
}

/* SPLIT LAYOUT */
.ace-why-split {
  display: flex;
  justify-content: center;
  text-align: center;
}

@media(max-width:1024px){
  .ace-why-split {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* LEFT CONTENT */
.ace-why-content h2 {
  font-size: clamp(3rem,4vw,3.8rem);
  margin-bottom: 40px;
  color: #ffffff !important;
  text-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

/* ITEMS */
.ace-why-items {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

/* INDIVIDUAL ITEM */
.ace-why-item {
  padding-left: 20px;
  position: relative;
}

/* LEFT ACCENT LINE */
.ace-why-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  height: calc(100% - 10px);
  width: 3px;
  background: linear-gradient(#1BA39C, #22D3EE);
  border-radius: 2px;
}

/* HEADINGS */
.ace-why-item h3 {
  font-size: 2.0rem;
  margin-bottom: 8px;
  color: #ffffff !important;
}

/* TEXT */
.ace-why-item p {
  font-size: 1.05rem;
  color: #CBD5E1 !important;
  line-height: 1.7;
}

/* BUTTON */
.ace-why-content .ace-btn {
  margin-top: 40px;
}

/* RIGHT VISUAL */
.ace-why-visual {
  position: relative;
  height: 450px;
  border-radius: 24px;
  overflow: hidden;
}

/* IMAGE BACKGROUND */
.ace-why-bg {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(rgba(8,16,28,0.7), rgba(8,16,28,0.6)),
    url("https://s6e.2fa.myftpupload.com/wp-content/uploads/2026/02/Trade-Forex-and-Oil-New-Zealand.jpg");

  background-size: cover;
  background-position: center;

  animation: aceWhyZoom 12s ease-in-out infinite alternate;
}

/* SLOW ZOOM */
@keyframes aceWhyZoom {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

/* GLOW OVERLAY */
.ace-why-overlay {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 20% 30%, rgba(27,163,156,0.25), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(34,211,238,0.25), transparent 50%);

  animation: aceWhyGlow 6s ease-in-out infinite alternate;
}

/* GLOW MOVEMENT */
@keyframes aceWhyGlow {
  from { transform: translateY(0); }
  to { transform: translateY(-20px); }
}
/* ================= WHY VIDEO BACKGROUND ================= */

.ace-why-pro {
  position: relative;
  overflow: hidden;
}

/* VIDEO */
.ace-why-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* OVERLAY (CRITICAL FOR READABILITY) */
.ace-why-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(8,16,28,0.85),
    rgba(8,16,28,0.75)
  );
  z-index: 1;
}

/* CONTENT ABOVE VIDEO */
.ace-why-pro .ace-container {
  position: relative;
  z-index: 2;
}
/* ================= FLIP CARDS ================= */

.ace-why-cards {
  display: flex;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* CARD */
.ace-flip-card {
  width: 260px;
  height: 160px;
  perspective: 1000px;
}

/* INNER */
.ace-flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s ease;
  transform-style: preserve-3d;
}

/* HOVER FLIP */
.ace-flip-card:hover .ace-flip-inner {
  transform: rotateY(180deg) scale(1.03);
}

/* FRONT + BACK */
.ace-flip-front,
.ace-flip-back {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 25px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  backface-visibility: hidden;
}

/* FRONT */
.ace-flip-front {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
}

.ace-flip-front h3 {
  font-size: 2.0rem;   /* increase this */
  font-weight: 600;
  line-height: 1.2;
}

/* BACK */
.ace-flip-back {
  background: linear-gradient(135deg, #1BA39C, #22D3EE);
  color: #08101C;
  transform: rotateY(180deg);
}

.ace-flip-back p {
  font-size: 1.4rem;
  font-weight: 500;
}

/* STAGGERED ENTRY */
.ace-flip-card {
  opacity: 0;
  transform: translateY(40px);
  animation: cardFade 0.8s ease forwards;
}

.ace-flip-card:nth-child(1) { animation-delay: 0.1s; }
.ace-flip-card:nth-child(2) { animation-delay: 0.3s; }
.ace-flip-card:nth-child(3) { animation-delay: 0.5s; }

@keyframes cardFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= MOBILE FIX (GLOBAL) ================= */

@media(max-width:768px){

  /* Fix global text scale */
  p {
    font-size: 1rem !important;
    line-height: 1.6;
  }

  h2 {
    font-size: 2rem !important;
  }

  h3 {
    font-size: 1.3rem !important;
  }

  /* Fix section spacing */
  .ace-section {
    padding: 80px 0 !important;
  }

  /* Containers tighter */
  .ace-container {
    padding: 0 16px;
  }

  /* HERO fix */
  .ace-hero-title {
    font-size: 2.2rem !important;
  }

  .ace-hero-subtitle {
    font-size: 1rem;
  }

  /* GRID fixes */
  .ace-grid-3,
  .ace-grid-4 {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  /* CARDS */
  .ace-card,
  .ace-tile {
    padding: 25px !important;
  }

  /* WHY SECTION FIX */
  .ace-why-content h2 {
    text-align: center;
    margin-bottom: 25px;
  }

  .ace-why-cards {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .ace-flip-card {
    height: 150px;
  }

  /* BUTTONS */
  .ace-btn {
    width: 100%;
    text-align: center;
  }

  /* FOOTER FIX */
  .ace-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 40px;
  }

  .ace-footer-col p {
    font-size: 1rem !important;
  }

  .ace-footer-links a {
    font-size: 1rem !important;
  }

  .ace-footer-bottom p {
    font-size: 0.9rem !important;
  }

}

.ace-footer .ace-risk-disclosure {
  width: 100%;
  max-width: 100%;
  margin: 20px 0 0 0;
  padding: 20px 0 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: left !important;
  font-size: 0;
}

.ace-footer .ace-risk-disclosure h3,
.ace-footer .ace-risk-disclosure p {
  display: inline;
  margin: 0;
  padding: 0;
  text-align: left !important;
}

.ace-footer .ace-risk-disclosure h3 {
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.7 !important;
  color: #fff !important;
  margin-right: 6px;
}

.ace-footer .ace-risk-disclosure p {
  font-size: 11px !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

.ace-footer .ace-risk-disclosure a,
.ace-footer .ace-risk-disclosure strong,
.ace-footer .ace-risk-disclosure span {
  font-size: 11px !important;
  line-height: 1.7 !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

.ace-footer .ace-risk-disclosure a:hover {
  color: #fff !important;
}
.ace-footer .ace-footer-bottom {
  margin-top: 12px;
  padding-top: 12px;
  padding-bottom: 0;
}

.ace-footer .ace-footer-bottom p {
  margin: 0;
}
/* Increase logo size */
.navbar .navbar-brand img {
    max-height: 120px !important; /* increase this */
    width: auto;
}

/* Optional: increase header height so it fits cleanly */
.navbar {
    min-height: 120px;
}
.tradingview-widget-container,
.tradingview-widget-container__widget,
.tradingview-widget-container iframe {
  pointer-events: none !important;
  cursor: default !important;
}