/* ==========================================================================
   FE-Trading Institute — Brand Override Stylesheet
   Loaded AFTER bootstrap.min.css and style.css so these rules win.
   Brand colors/fonts sourced from the FE brand system (main.css).
   ========================================================================== */

:root{
  --bs-primary: #d9232d;
  --bs-primary-rgb: 217,35,45;
  --brand-accent: #d9232d;
  --brand-accent-dark: #b91d26;
  --brand-heading: #556270;
  --brand-body: #444444;
}

/* Slightly smaller type sitewide. Bootstrap's headings, display classes and
   spacing are mostly rem-based, so scaling the root font-size scales all of
   them proportionally in one place. */
html{
  font-size: 14px;
}

/* Fonts */
body{
  font-family: 'Roboto', sans-serif;
  color: var(--brand-body);
}
h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6,
.navbar-brand, .footer-item h4, .team-title h4, .testimonial-title h4 {
  font-family: 'Raleway', sans-serif;
}
.navbar-light .navbar-nav .nav-link,
.navbar-light .navbar-nav .nav-item .nav-link,
.dropdown-item {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

/* Primary color — bootstrap.min.css bakes hex values into these classes,
   so we re-declare them explicitly (mirrors --bs-primary above). */
.text-primary{ color: var(--brand-accent) !important; }
.bg-primary{ background-color: var(--brand-accent) !important; }
.border-primary{ border-color: var(--brand-accent) !important; }
.link-primary{ color: var(--brand-accent); }
.link-primary:hover, .link-primary:focus{ color: var(--brand-accent-dark); }

.btn-primary{
  color: #fff;
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-check:checked + .btn-primary,
.btn-primary:active,
.btn-primary.active {
  color: #fff;
  background-color: var(--brand-accent-dark);
  border-color: var(--brand-accent-dark);
}
.btn-primary:focus{
  box-shadow: 0 0 0 .25rem rgba(217,35,45,.5);
}
.btn-primary.disabled{
  color: #fff;
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
}

.btn-outline-primary{
  color: var(--brand-accent);
  border-color: var(--brand-accent);
}
.btn-outline-primary:hover{
  color: #fff;
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
}
.btn-outline-primary,
.btn-outline-primary:focus{
  box-shadow: 0 0 0 .25rem rgba(217,35,45,.5);
}
.btn-check:active + .btn-outline-primary,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show{
  color: #fff;
  background-color: var(--brand-accent);
  border-color: var(--brand-accent);
}
.btn-outline-primary:disabled,
.btn-outline-primary.disabled{
  color: var(--brand-accent);
  background-color: transparent;
}

/* Heading-family accent (secondary brand color) used sparingly */
.accordion-button:not(.collapsed){
  color: var(--brand-accent-dark) !important;
  background-color: rgba(217,35,45,.08) !important;
}
.accordion-button:focus{
  box-shadow: 0 0 0 .25rem rgba(217,35,45,.25);
}

/* Disclaimer strip (compliance notice shown above the footer copyright) */
.disclaimer-strip{
  background-color: #f2f4f6;
  color: var(--brand-body);
  font-size: 0.85rem;
  padding: 14px 0;
  text-align: center;
  line-height: 1.5;
}
.disclaimer-strip a{
  color: var(--brand-accent);
  font-weight: 600;
}

/* Navbar logo chip — the navbar sits transparent over the hero photo on desktop.
   The blur strip now spans the FULL HEIGHT of the navbar (not just around the
   logo), extending 30px left and right past the logo, with feathered edges
   so there's no hard blur boundary. navbar-brand stretches to the navbar's
   full height (flex align-self:stretch) so the chip has something to fill. */
.navbar .navbar-brand{
  display: flex;
  align-items: center;
  align-self: stretch;
  padding-top: 0;
  padding-bottom: 0;
}
.navbar-logo-chip{
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 30px;
}
/* The actual blur lives on a pseudo-element filling the full stretched height,
   feathered left/right (linear-gradient mask) so it fades into the hero photo
   rather than showing a hard edge. */
.navbar-logo-chip::before{
  content: "";
  position: absolute;
  inset: 0;
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 78%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.navbar-logo-chip img{
  position: relative;
  z-index: 1;
  max-height: 40px;
  display: block;
}
.sticky-top.navbar-light .navbar-logo-chip img{
  max-height: 32px;
}
/* Browsers without backdrop-filter support get no blur at all, so give them
   a very faint, similarly feathered dark scrim instead of a plain white box. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
  .navbar-logo-chip::before{
    background: linear-gradient(to right, transparent 0%, rgba(0,0,0,.18) 22%, rgba(0,0,0,.18) 78%, transparent 100%);
  }
}

/* Shorter navbar overall */
.navbar.navbar-expand-lg{
  min-height: auto;
}


.student-app-badge{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 6px;
  padding: 10px 16px;
  color: #fff;
}

/* Keep every bit of footer + copyright text white on the dark background */
.footer .footer-item a,
.footer .footer-item p,
.footer .footer-item h4,
.footer .footer-item span{
  color: #ffffff !important;
}
.footer .footer-item a:hover{
  color: rgba(255,255,255,.7) !important;
}
.copyright,
.copyright *{
  color: #ffffff !important;
}

