
:root{
  --ig-text: 18px;
  --ig-primary-color: #0052a3;
  --ig-secondary-color: #1e88e5;
}
body{font-size:var(--ig-text);line-height:1.8}
h1{font-size:48px;line-height:1.2}
h2{font-size:32px;line-height:1.3}
h3{font-size:24px;line-height:1.4}
p{margin:0 0 16px}
.ig-hero{
  position:relative;
  padding:120px 0 70px;
  background-size:cover;
  background-position:center;
}
.ig-hero:before{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(135deg, rgba(0,82,163,.65), rgba(30,136,229,.45));
}
.ig-hero .container, .ig-hero .themesflat-container{position:relative; z-index:2}
.ig-hero .ig-kicker{display:inline-block;margin-bottom:16px;padding:8px 14px;border-radius:8px;background:rgba(255,255,255,.2);color:#fff;font-weight:700;text-transform:uppercase;letter-spacing:1px;font-size:13px}
.ig-hero h1{color:#fff;max-width:900px}
.ig-hero p{color:rgba(255,255,255,.90);max-width:820px;font-size:18px}
.ig-section{padding:64px 0}
/* Default: dark text on light background */
.ig-section h2, .ig-section h3, .ig-section p, .ig-section li, .ig-section strong{color:#333}
.ig-section[style*="background:#f8f9fa"] h2, 
.ig-section[style*="background:#f8f9fa"] h3, 
.ig-section[style*="background:#f8f9fa"] p, 
.ig-section[style*="background:#f8f9fa"] li, 
.ig-section[style*="background:#f8f9fa"] strong{color:#1a1a1a}
/* Fix text color on white/light backgrounds */
div[style*="background:#f8f9fa"], 
div[style*="background:#fff"],
p[style*="background:#f8f9fa"],
p[style*="background:#fff"] {
  color: #1a1a1a !important;
}
div[style*="background:#f8f9fa"] *,
div[style*="background:#fff"] *,
p[style*="background:#f8f9fa"] *,
p[style*="background:#fff"] * {
  color: #1a1a1a !important;
}
div[style*="background:#f8f9fa"] a,
div[style*="background:#fff"] a,
p[style*="background:#f8f9fa"] a,
p[style*="background:#fff"] a {
  color: #0052a3 !important;
}
/* Light text on dark background */
body:not([style*="background"]) .ig-section:not([style*="background:#f8f9fa"]):not([style*="background:#fff"]) h2,
body:not([style*="background"]) .ig-section:not([style*="background:#f8f9fa"]):not([style*="background:#fff"]) h3,
body:not([style*="background"]) .ig-section:not([style*="background:#f8f9fa"]):not([style*="background:#fff"]) p,
body:not([style*="background"]) .ig-section:not([style*="background:#f8f9fa"]):not([style*="background:#fff"]) li,
body:not([style*="background"]) .ig-section:not([style*="background:#f8f9fa"]):not([style*="background:#fff"]) strong{color:#fff}
.ig-section .ig-media{
  border-radius:18px; overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
}
.ig-section img{width:100%;height:auto;display:block}
.ig-card{
  border-radius:20px;
  border:1px solid rgba(255,255,255,.15);
  padding:28px;
  height:100%;
  background:linear-gradient(135deg, rgba(0,82,163,0.5), rgba(30,136,229,0.3));
  box-shadow:0 8px 24px rgba(0,0,0,0.2);
}
.ig-card h3, .ig-card p, .ig-card li, .ig-card strong{color:#fff !important}
.ig-card a{color:#fff !important;opacity:0.9}
.ig-card a:hover{color:#fff !important;opacity:1}
.ig-card .ig-muted{color:rgba(255,255,255,0.86) !important}
/* Light text for sections on dark background */
body .ig-section:not([style*="background:#f8f9fa"]):not([style*="background:#fff"]) h2,
body .ig-section:not([style*="background:#f8f9fa"]):not([style*="background:#fff"]) h3,
body .ig-section:not([style*="background:#f8f9fa"]):not([style*="background:#fff"]) p,
body .ig-section:not([style*="background:#f8f9fa"]):not([style*="background:#fff"]) li,
body .ig-section:not([style*="background:#f8f9fa"]):not([style*="background:#fff"]) strong,
body .ig-section:not([style*="background:#f8f9fa"]):not([style*="background:#fff"]) ul{color:#fff !important}
/* Ensure mobile menu close icon is visible */
.mobile-nav-close{cursor:pointer;z-index:1000001;color:#fff !important}
.mobile-nav-close i{color:#fff !important;font-size:24px}
.mobile-nav-close:hover{opacity:0.8}
.ig-muted{opacity:.86}
.ig-footer{
  padding:52px 0 28px;
  border-top:2px solid rgba(255,255,255,.15);
  background:rgba(0,0,0,0.3);
}
.ig-footer a{opacity:.9}
.ig-micro{
  margin-top:12px;
  font-size:13px;
  opacity:.75;
}
/* Remove any template wallet button if present */
.connect-wallet, .wallet, .btn-wallet, [class*="wallet"]{display:none !important}

/* Fix menu display - desktop only */
@media (min-width: 992px) {
  #main-nav {
    position: absolute !important;
    left: 22.48% !important;
    right: auto !important;
    width: auto !important;
    max-width: calc(100% - 300px) !important;
  }
  #main-nav .menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0;
    align-items: center;
    width: auto !important;
    overflow: visible !important;
  }
  #main-nav .menu li {
    white-space: nowrap;
    flex-shrink: 0;
    float: none !important;
  }
  #main-nav .menu li a {
    padding: 8px 10px;
    font-size: 13px;
  }
  /* When header is fixed, make menu more compact */
  .header_1.is-fixed #main-nav {
    left: 22.48% !important;
    max-width: calc(100% - 300px) !important;
  }
  .header_1.is-fixed #main-nav .menu {
    flex-wrap: nowrap !important;
    overflow: visible !important;
  }
  .header_1.is-fixed #main-nav .menu li a {
    padding: 8px 8px;
    font-size: 12px;
  }
  /* Ensure header container has proper width */
  .header_1 .themesflat-container {
    position: relative;
  }
  .header_1 .wrap-box {
    position: relative;
    overflow: visible !important;
  }
  /* Prevent menu from wrapping */
  #site-header-inner {
    overflow: visible !important;
  }
  .header_1.is-fixed .wrap-box {
    overflow: visible !important;
  }
}

/* Fix header z-index to stay above content */
#header_main {
  z-index: 1000 !important;
  position: relative;
}
.header-fixed #header_main {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000 !important;
  background: rgba(0,0,0,0.95) !important;
  width: 100% !important;
}
.header-fixed #header_main .themesflat-container {
  width: 100% !important;
  max-width: 100% !important;
}

/* Fix contact form z-index */
.ig-section {
  position: relative;
  z-index: 1;
}
.ig-card {
  position: relative;
  z-index: 1;
}
