/*
Theme Name: AI for Traders
Theme URI: https://aifortraders.com.au
Description: Custom child theme for AI for Traders - built on GeneratePress
Author: Trader IQ Pty Ltd
Author URI: https://tradingtools.com.au
Template: generatepress
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ai-for-traders
*/

/* ══════════════════════════════════════════
   AI FOR TRADERS DESIGN SYSTEM
   ══════════════════════════════════════════ */

/* ── HIDE GENERATEPRESS DEFAULTS ── */
.site-header { display: none !important; }
.entry-title { display: none !important; }
.site-footer { display: none !important; }
.site-info { display: none !important; }
.site-content { padding: 0 !important; }
.content-area { width: 100% !important; max-width: 100% !important; }
#primary { margin: 0 !important; padding: 0 !important; }
.inside-article { padding: 0 !important; margin: 0 !important; }

/* ── RESET & VARIABLES ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --navy: #0b1929;
  --navy-mid: #0f2235;
  --navy-light: #163350;
  --teal: #00c9be;
  --teal-dim: #009e95;
  --teal-glow: rgba(0,201,190,.12);
  --cyan: #38bdf8;
  --white: #eef6ff;
  --muted: #7a9ab8;
  --border: rgba(0,201,190,.18);
  --card: rgba(15,34,53,.9);
  --gold: #f0b429;
  --red: #f87171;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--navy);
  color: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: all .15s; }
a:hover { color: #00e5d9; }

/* ── CONTAINER ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 48px; }

/* ══════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════ */
.aft-navbar {
  position: sticky; top: 0; z-index: 200;
  background: rgba(11,25,41,.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.aft-navbar-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.aft-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--white);
}
.aft-logo-icon {
  width: 40px; height: 40px; border: 1.5px solid var(--teal); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.aft-logo-text { font-size: 1.15rem; font-weight: 700; }
.aft-logo-text em { color: var(--teal); font-style: normal; }
.aft-logo-sub { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 1px; }
.aft-nav-links { display: flex; align-items: center; gap: 4px; list-style: none; }
.aft-nav-links li a {
  color: var(--muted); font-size: .88rem; font-weight: 500;
  padding: 7px 13px; border-radius: 6px; transition: all .15s;
}
.aft-nav-links li a:hover { color: var(--white); background: rgba(255,255,255,.04); }
.aft-nav-links li a.active { color: var(--teal); }
.aft-nav-cta {
  border: 1px solid var(--border) !important; color: var(--teal) !important;
  padding: 7px 16px !important; border-radius: 7px !important;
}
.aft-nav-cta:hover { background: var(--teal-glow) !important; border-color: var(--teal) !important; }
.aft-hamburger {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 4px;
}
.aft-hamburger span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; }

/* ── NAV DROPDOWN ── */
.has-dropdown { position: relative; }
.has-dropdown > a { cursor: pointer; }
.aft-dropdown {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  background: var(--navy-mid); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 0; min-width: 220px; list-style: none;
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
  margin-top: 8px; z-index: 300;
}
.aft-dropdown::before {
  content: ''; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; background: var(--navy-mid); border-left: 1px solid var(--border);
  border-top: 1px solid var(--border); transform: translateX(-50%) rotate(45deg);
}
.has-dropdown:hover .aft-dropdown { display: block; }
.aft-dropdown li a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px !important; font-size: .86rem !important;
  color: var(--muted) !important; border-radius: 0 !important;
  transition: all .12s;
}
.aft-dropdown li a:hover { background: rgba(0,201,190,.06) !important; color: var(--white) !important; }
.dd-chip {
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-glow); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 4px; flex-shrink: 0;
}

/* ══════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════ */
.btn-primary {
  background: var(--teal); color: var(--navy); font-family: inherit;
  font-weight: 600; font-size: .9rem; padding: 11px 22px; border-radius: 7px;
  border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: all .2s; text-decoration: none;
  box-shadow: 0 0 20px rgba(0,201,190,.2);
}
.btn-primary:hover { background: #00e5d9; color: var(--navy); transform: translateY(-1px); box-shadow: 0 4px 24px rgba(0,201,190,.35); }

.btn-ghost {
  background: transparent; color: var(--white); font-family: inherit;
  font-weight: 500; font-size: .88rem; padding: 10px 20px; border-radius: 7px;
  border: 1px solid rgba(255,255,255,.12); cursor: pointer; display: inline-flex;
  align-items: center; gap: 6px; transition: all .2s; text-decoration: none;
}
.btn-ghost:hover { border-color: var(--teal); background: var(--teal-glow); color: var(--white); }

/* ══════════════════════════════════════════
   SHARED COMPONENTS
   ══════════════════════════════════════════ */
.eyebrow {
  font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--teal); display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--teal); }

.section { padding: 80px 0; }
.section-alt { background: var(--navy-mid); }
.section-h { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 10px; }
.section-sub { color: var(--muted); font-size: .95rem; line-height: 1.75; max-width: 520px; margin-bottom: 44px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--teal-glow); border: 1px solid var(--border);
  border-radius: 40px; padding: 5px 14px;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal);
}
.pill::before { content: ''; width: 6px; height: 6px; background: var(--teal); border-radius: 50%; animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  min-height: 88vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #0b1929, #0f2235 50%, #0b1929);
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?w=1600&q=80') center/cover;
  opacity: .06;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,201,190,.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(0,201,190,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 75%);
}
.hero-glow {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,201,190,.07), transparent 70%);
  top: -100px; right: -100px; pointer-events: none;
}
.hero-inner {
  position: relative; max-width: 1100px; margin: 0 auto; padding: 80px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem); font-weight: 800;
  line-height: 1.08; letter-spacing: -.03em; margin-bottom: 18px;
}
.hero h1 em { color: var(--teal); font-style: normal; }
.hero-text { font-size: 1rem; color: var(--muted); line-height: 1.75; margin-bottom: 30px; max-width: 440px; }
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-proof {
  display: flex; align-items: center; gap: 10px;
  padding-top: 24px; border-top: 1px solid var(--border); font-size: .82rem; color: var(--muted);
}
.hero-img-stack { position: relative; height: 400px; }
.hero-img-main {
  position: absolute; right: 0; top: 0; width: 84%; height: 310px;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--navy-light);
}
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-img-accent {
  position: absolute; left: 0; bottom: 0; width: 54%; height: 190px;
  border-radius: 12px; overflow: hidden; border: 2px solid var(--teal);
  box-shadow: 0 0 28px rgba(0,201,190,.15); background: var(--navy-light);
}
.hero-img-accent img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; top: 16px; left: 16px;
  background: rgba(11,25,41,.9); border: 1px solid var(--border);
  backdrop-filter: blur(10px); border-radius: 9px; padding: 10px 14px;
}
.hero-badge p { font-size: .7rem; color: var(--muted); margin: 0; }
.hero-badge strong { font-size: .92rem; color: var(--teal); }
.img-ph {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); font-size: .8rem; text-align: center; padding: 16px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
}
.img-ph small { opacity: .5; font-size: .7rem; }

/* ══════════════════════════════════════════
   COURSE CARDS
   ══════════════════════════════════════════ */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.course-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; transition: all .3s; text-decoration: none; display: block; color: var(--white);
}
.course-card:hover { transform: translateY(-5px); border-color: var(--teal); box-shadow: 0 16px 44px rgba(0,0,0,.3), 0 0 20px rgba(0,201,190,.08); color: var(--white); }
.course-card .card-img { height: 190px; overflow: hidden; position: relative; background: var(--navy-light); }
.course-card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.course-card:hover .card-img img { transform: scale(1.04); }
.course-card .level-chip {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(11,25,41,.85); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal);
}
.course-card .card-body { padding: 22px; }
.course-card .card-body h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 7px; line-height: 1.3; }
.course-card .card-body p { font-size: .85rem; color: var(--muted); line-height: 1.65; margin-bottom: 16px; }
.course-meta { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cmeta { font-size: .76rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.cmeta span { color: var(--teal); }
.course-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 14px; }
.course-price { font-size: 1.35rem; font-weight: 700; }
.course-price small { font-size: .76rem; color: var(--muted); font-weight: 400; }

/* ── BUNDLE BANNER ── */
.bundle-banner {
  background: linear-gradient(135deg, rgba(0,201,190,.08), rgba(56,189,248,.06));
  border: 1px solid var(--teal); border-radius: 14px;
  padding: 28px 32px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; margin-top: 28px; flex-wrap: wrap;
}
.bundle-left h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.bundle-left p { font-size: .88rem; color: var(--muted); line-height: 1.6; margin: 0; }
.bundle-right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.bundle-old { font-size: .88rem; color: var(--muted); text-decoration: line-through; }
.bundle-new { font-size: 1.6rem; font-weight: 700; color: var(--teal); }

/* ══════════════════════════════════════════
   HOW IT WORKS
   ══════════════════════════════════════════ */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.how-grid::after {
  content: ''; position: absolute; top: 32px; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}
.how-step { text-align: center; position: relative; z-index: 1; }
.how-num {
  width: 64px; height: 64px; border-radius: 50%; background: var(--navy-mid);
  border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; font-weight: 700; color: var(--teal); margin: 0 auto 18px; transition: all .25s;
}
.how-step:hover .how-num { background: var(--teal-glow); border-color: var(--teal); transform: scale(1.06); }
.how-step h3 { font-size: .92rem; font-weight: 600; margin-bottom: 7px; }
.how-step p { font-size: .82rem; color: var(--muted); line-height: 1.65; }

/* ══════════════════════════════════════════
   FEATURES GRID
   ══════════════════════════════════════════ */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; transition: all .25s;
}
.feat:hover { border-color: var(--teal); transform: translateY(-2px); }
.feat-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--teal-glow);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; margin-bottom: 14px;
}
.feat h4 { font-size: .92rem; font-weight: 600; margin-bottom: 6px; }
.feat p { font-size: .82rem; color: var(--muted); line-height: 1.65; margin: 0; }

/* ══════════════════════════════════════════
   ARTICLES PREVIEW
   ══════════════════════════════════════════ */
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.art-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: all .25s; text-decoration: none; display: block; color: var(--white);
}
.art-card:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 10px 30px rgba(0,0,0,.25); color: var(--white); }
.art-card .art-img { height: 150px; overflow: hidden; background: var(--navy-light); }
.art-card .art-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.art-card:hover .art-img img { transform: scale(1.04); }
.art-card .art-body { padding: 18px; }
.art-tag { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 7px; }
.art-body h4 { font-size: .92rem; font-weight: 600; line-height: 1.35; margin-bottom: 7px; }
.art-body p { font-size: .8rem; color: var(--muted); line-height: 1.6; margin: 0; }
.art-meta { display: flex; justify-content: space-between; margin-top: 12px; font-size: .74rem; color: var(--muted); }
.art-meta span { color: var(--teal); }

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.aft-footer { background: var(--navy-mid); border-top: 1px solid var(--border); padding: 48px 0 24px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--muted); font-size: .84rem; line-height: 1.7; max-width: 240px; margin-bottom: 14px; }
.footer-col h5 { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { color: var(--muted); font-size: .84rem; transition: color .15s; }
.footer-col ul li a:hover { color: var(--teal); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); padding-top: 18px; flex-wrap: wrap; gap: 12px;
}
.trader-iq-badge {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 12px;
}
.trader-iq-badge p { font-size: .7rem; color: var(--muted); margin: 0; }
.trader-iq-badge strong { font-size: .8rem; color: var(--white); display: block; }
.trader-iq-badge a { color: var(--teal); }
.copy { font-size: .74rem; color: var(--muted); }
.disclaimer { font-size: .68rem; color: rgba(122,154,184,.5); line-height: 1.7; max-width: 700px; margin-top: 14px; }

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .container { padding: 0 20px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; padding: 60px 20px; }
  .hero-img-stack { display: none; }
  .courses-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid::after { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .bundle-banner { flex-direction: column; text-align: center; }
  .aft-nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; padding: 16px; border-bottom: 1px solid var(--border); }
  .aft-nav-links.open { display: flex; }
  .aft-hamburger { display: flex; }
  .aft-navbar-inner { padding: 0 20px; }
  .aft-dropdown { position: static; transform: none; box-shadow: none; margin-top: 0; border: none; background: rgba(255,255,255,.03); border-radius: 8px; }
  .aft-dropdown::before { display: none; }
  .has-dropdown:hover .aft-dropdown { display: none; }
  .has-dropdown.open .aft-dropdown { display: block; }
}
@media (max-width: 600px) {
  .how-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
