
:root{
  --ig-text: 17px;
}
body{font-size:var(--ig-text);line-height:1.75}
h1{font-size:44px;line-height:1.15}
h2{font-size:30px;line-height:1.25}
h3{font-size:22px;line-height:1.35}
p{margin:0 0 14px}
.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(45,90,160,.65), rgba(30,60,120,.45));
}
.ig-hero .container, .ig-hero .themesflat-container{position:relative; z-index:2}
.ig-hero .ig-kicker{display:inline-block;margin-bottom:14px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-weight:600}
.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:56px 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: #2d5aa0 !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:18px;
  border:1px solid rgba(255,255,255,.10);
  padding:20px;
  height:100%;
  background:rgba(0,0,0,0.4);
}
.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}
/* Footer: readable muted text on dark background */
.ig-footer p.ig-muted{
  opacity:1 !important;
  color:rgba(255,255,255,.88) !important;
}
.ig-footer .ig-micro p{
  opacity:1 !important;
  color:rgba(255,255,255,.82) !important;
}
.ig-footer{
  padding:44px 0 24px;
  border-top:1px solid rgba(255,255,255,.10);
  clear:both;
  position:relative;
  z-index:2;
}
.ig-footer a{opacity:.9}
.ig-footer .col-lg-4,
.ig-footer .col-lg-8{
  min-width:0;
}
.ig-footer .ig-micro{
  overflow-wrap:anywhere;
  word-break:break-word;
}
/* Keep sidebar/contact blocks from overlapping footer legal links */
.ig-section .row::after,
.ig-footer .row::after{
  content:"";
  display:block;
  clear:both;
}
.ig-section .col-lg-4{
  position:relative;
  z-index:1;
}
/* Contact page: hard-isolated layout to prevent any overlap */
.ig-contact-section .ig-contact-grid{
  display:grid !important;
  grid-template-columns:1fr;
  gap:30px;
  align-items:start;
  margin-left:0 !important;
  margin-right:0 !important;
}
.ig-contact-section .ig-contact-grid > [class*="col-"]{
  width:auto !important;
  max-width:none !important;
  flex:0 0 auto !important;
  float:none !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
.ig-contact-section .ig-contact-side .ig-card,
.ig-contact-section .ig-contact-side .ig-aside-note{
  position:relative !important;
  top:auto !important;
  right:auto !important;
  bottom:auto !important;
  left:auto !important;
  transform:none !important;
}
.ig-contact-section .ig-contact-side{
  width:100%;
  max-width:760px;
}
.ig-contact-section .ig-contact-side .ig-card{
  margin-bottom:20px;
}
.ig-contact-footer .ig-contact-footer-grid{
  display:grid !important;
  grid-template-columns:minmax(0,2fr) minmax(260px,1fr);
  gap:24px;
  align-items:start;
  margin-left:0 !important;
  margin-right:0 !important;
}
.ig-contact-footer{
  margin-top:18px;
}
.ig-contact-footer .ig-contact-footer-grid > [class*="col-"]{
  width:auto !important;
  max-width:none !important;
  flex:0 0 auto !important;
  float:none !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
@media (max-width: 991.98px) {
  .ig-contact-footer .ig-contact-footer-grid{
    grid-template-columns:1fr;
    gap:20px;
  }
}
@media (max-width: 1199.98px) {
  .ig-footer .col-lg-8,
  .ig-footer .col-lg-4{
    flex:0 0 100%;
    max-width:100%;
  }
  .ig-footer .col-lg-4{
    margin-top:20px;
  }
}
.ig-micro{
  margin-top:12px;
  font-size:13px;
  opacity:.75;
}
/* “Last updated” / notes on dark sections — no light strip, high contrast */
.ig-last-updated{
  margin-top:20px;
  padding:16px 18px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  border-left:4px solid #4a9eff;
  border-radius:0 10px 10px 0;
}
body .ig-section p.ig-last-updated,
body .ig-section p.ig-last-updated strong{
  color:rgba(255,255,255,.93) !important;
}
/* Same look for informational callouts (e.g. visiting page) */
.ig-info-callout{
  margin-top:20px;
  padding:16px 18px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  border-left:4px solid #4a9eff;
  border-radius:0 10px 10px 0;
}
body .ig-section p.ig-info-callout,
body .ig-section p.ig-info-callout strong{
  color:rgba(255,255,255,.93) !important;
}
/* Light panels inside dark sections — beat section-wide white !important */
body .ig-section .ig-light-panel,
body .ig-section .ig-light-panel h3,
body .ig-section .ig-light-panel h4,
body .ig-section .ig-light-panel p,
body .ig-section .ig-light-panel strong{
  color:#1a1a1a !important;
}
body .ig-section .ig-light-panel a{
  color:#0066cc !important;
}
body .ig-section .ig-light-panel .ig-light-panel-note{
  color:#555 !important;
}
/* Contact / warnings on dark background (beats light #fff3cd + white text bug) */
.ig-callout-warn-dark{
  margin:12px 0 14px;
  padding:16px 18px;
  background:rgba(255,193,7,.14);
  border:1px solid rgba(255,193,7,.32);
  border-left:4px solid #ffc107;
  border-radius:10px;
}
body .ig-section p.ig-callout-warn-dark,
body .ig-section p.ig-callout-warn-dark strong{
  color:rgba(255,255,255,.94) !important;
}
#wrapper .ig-section p.ig-callout-warn-dark,
#wrapper .ig-section p.ig-callout-warn-dark strong{
  color:rgba(255,255,255,.94) !important;
}
#wrapper .ig-section .ig-aside-note h4{
  color:rgba(255,255,255,.95) !important;
}
#wrapper .ig-section .ig-aside-note p{
  color:rgba(255,255,255,.88) !important;
}
/* Sidebar “About” blurb — same family as info callout, for div+h4+p */
.ig-aside-note{
  margin-top:20px;
  padding:16px 18px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.12);
  border-left:4px solid #4a9eff;
  border-radius:0 10px 10px 0;
}
body .ig-section .ig-aside-note h4{
  margin-bottom:10px;
  font-size:1.1rem;
  color:rgba(255,255,255,.95) !important;
}
body .ig-section .ig-aside-note p{
  margin:0;
  font-size:14px;
  line-height:1.6;
  color:rgba(255,255,255,.88) !important;
}
/* Light panel (e.g. contact email box): #wrapper beats over-specific section :not() rules */
#wrapper .ig-section .ig-light-panel,
#wrapper .ig-section .ig-light-panel h3,
#wrapper .ig-section .ig-light-panel p,
#wrapper .ig-section .ig-light-panel strong{
  color:#1a1a1a !important;
}
#wrapper .ig-section .ig-light-panel a{
  color:#0066cc !important;
}
#wrapper .ig-section .ig-light-panel .ig-light-panel-note{
  color:#555 !important;
}
/* 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;
}
