/*
Theme Name: Traffic 4U Online
Theme URI: https://thetrafficexchangescript.com/
Description: LFMTE premium theme for Traffic4UOnline.com
Version: 1.0
Author: IngaOz (OzonicDigital.eu)
*/

@charset "utf-8";

/* ============================================================
   GOOGLE FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Marcellus+SC&family=Poppins:wght@300;400;500;600;700&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --bg:          #1A0F07;
  --surface:     #2C1A0D;
  --raised:      #4A2E16;
  --link:        #8B5E3C;
  --gold:        #C8922A;
  --gold-light:  #E8B84B;
  --text:        #F5ECD8;
  --text-muted:  #A08060;
  --text-on-gold:#1A0F07;
  --border-card: rgba(200,146,42,.22);
  --border-div:  rgba(160,128,96,.18);

  --nav-font:   'Marcellus SC', serif;
  --body-font:  'Poppins', sans-serif;

  --site-width: 90vw;
  --header-h:   500px;
}

/* ============================================================
   BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 400;
  color: var(--text);
  background-color: #0F0704 !important;
  min-height: 100vh;
}

/* ============================================================
   SITE-WIDE CONTAINER — 90% of window
   ============================================================ */
.container,
.container-fluid {
  max-width: var(--site-width) !important;
  width: 90% !important;
  margin-left:  auto;
  margin-right: auto;
  padding-left:  15px;
  padding-right: 15px;
}

/* ============================================================
   SITE HEADER IMAGE — #headerwrapper / #header
   ============================================================ */
#headerwrapper {
  width: 100%;
  background-color: #0F0704;
  text-align: center;
  overflow: hidden;
}

#header {
  background-image: url(images/header.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  width: 1300px;
  height: 500px;
  margin: 0 auto;
}

/* gold glow line under header */
#headerwrapper::after {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .7;
}

@media (max-width: 1300px) {
  #header {
    width: 100%;
    height: auto;
    min-height: 180px;
    background-size: cover;
    background-position: center top;
    aspect-ratio: 1300 / 500;
  }
}

/* ============================================================
   TOP NAV BAR — standard LFMTE approach
   ============================================================ */
.lfm_menu_bar {
  background: linear-gradient(180deg, #5C3A1C 0%, var(--surface) 100%);
  border-bottom: 2px solid var(--border-card);
  box-shadow: 0 6px 32px rgba(0,0,0,.6);
  padding: 0 0 45px;
  margin-bottom: 20px;
}
@media (max-width: 991.98px) {
  .lfm_menu_bar {
    padding-bottom: 0;
    margin-bottom: 20px;
  }
}

/* Logo */
.lfm_menu_logo {
  width: 213px;
  height: 65px;
  object-fit: contain;
  margin-right: 20px;
}

/* ── TOP-LEVEL NAV LINKS ── */
.lfm_menu_bar .navbar-nav > .nav-item > .nav-link {
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
  position: relative;
  transition: color .18s, background-color .18s;
  text-decoration: none;
}

.lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link {
  color: var(--gold);
  background-color: rgba(200,146,42,.12);
}
.lfm_menu_bar .navbar-nav > .nav-item > .nav-link:hover {
  color: var(--gold-light);
  background-color: rgba(200,146,42,.08);
  text-decoration: none;
}
.lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link:hover {
  color: var(--gold);
  background-color: rgba(200,146,42,.15);
}

@media (min-width: 992px) {
  .lfm_menu_bar .navbar-nav > .nav-item > .nav-link {
    margin: 0 3px;
    padding: 6px 15px;
    border: 1px solid rgba(255,255,255,0);
    border-radius: 5px;
    position: relative;
  }
  .lfm_menu_bar .navbar-nav > .nav-item > .nav-link:hover {
    background-color: rgba(200,146,42,.10);
    border-color: rgba(200,146,42,.30);
  }
  .lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link {
    background: rgba(200,146,42,.18);
    border-color: rgba(200,146,42,.50);
    color: var(--gold);
  }
  .lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link:hover {
    background: rgba(200,146,42,.22);
    border-color: var(--gold);
  }
}

/* ── MOBILE ── */
@media (max-width: 991.98px) {
  .lfm_menu_bar {
    padding-bottom: 0;
  }
  .lfm_menu_bar > .navbar {
    width: 100%;
    padding: 0 5%;
    flex-wrap: wrap;
    min-height: 60px;
  }
  .lfm_menu_bar .navbar-collapse {
    width: 100%;
    flex-basis: 100%;
  }
  .lfm_menu_bar .navbar-nav {
    flex-direction: column;
    align-items: stretch;
  }
  .lfm_menu_bar .navbar-nav > .nav-item > .nav-link {
    padding: 12px 15px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--border-div);
    text-decoration: none;
  }
  .lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_closed > .nav-link {
    color: var(--gold-light);
    background-color: transparent;
  }
  .lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_closed > .nav-link:hover {
    color: var(--gold);
    background-color: rgba(200,146,42,.08);
  }
  .lfm_menu_bar .navbar-nav > .nav-item > .nav-link::after {
    content: "";
    border-top: .3em solid;
    border-right: .3em solid transparent;
    border-bottom: 0;
    border-left: .3em solid transparent;
    color: var(--text-muted);
    transform: rotate(-90deg);
    position: absolute;
    right: 1.25rem;
    top: 50%;
    margin-top: -.15em;
    transition: transform .15s ease-out;
  }
  .lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_opened > .nav-link::after {
    color: var(--gold);
    transform: rotate(0deg);
  }
  .lfm_menu_bar .navbar-nav > .nav-item.lfm_tab_closed > .nav-link::after {
    color: var(--text-muted);
    transform: rotate(-90deg);
  }
}

/* ============================================================
   DROPDOWN PANEL (2ND LEVEL / ROW 2) — full viewport width
   ============================================================ */
.lfm_menu_tab {
  background: linear-gradient(180deg, #FDE99A 0%, #E8B84B 28%, #C8922A 62%, #8A6020 100%);
  border-top: 2px solid #FDE99A;
  border-bottom: 2px solid #5A3A0A;
  position: absolute;
  display: none;
  /* Full-width breakout: anchor left to viewport edge */
  left: 50%;
  transform: translateX(-50%);
  top: 100%;
  z-index: 999;
  width: 100vw;
  box-shadow: 0 16px 40px rgba(0,0,0,.6);
  padding: 0 0 0 calc(5vw + 50px);
  flex-wrap: wrap;
  align-items: center;
}

li.lfm_tab_opened .lfm_menu_tab {
  display: flex;
}

@media (max-width: 991.98px) {
  .lfm_menu_tab {
    background-color: rgba(74,46,22,.4);
    position: relative;
    left: auto;
    width: 100%;
    transform: none;
    flex-direction: column;
    top: 0;
    padding: 5px 0;
    border: none;
    border-top: 1px solid var(--border-div);
    box-shadow: none;
  }
  li.lfm_tab_closed .lfm_menu_tab {
    display: none;
  }
}

/* 2nd level links — gold gradient bar, dark brown bold text */
.lfm_menu_tab > li > a {
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 0 22px;
  line-height: 52px;
  color: #2A1400;
  text-decoration: none;
  display: block;
  white-space: nowrap;
  border-right: 1px solid rgba(0,0,0,.18);
  transition: filter .15s, background-color .15s;
}
.lfm_menu_tab > li > a:hover {
  color: #180800;
  filter: brightness(1.12);
  text-decoration: none;
}
.lfm_menu_tab > li.active > a,
.lfm_menu_tab > li > a.active {
  color: #180800;
  filter: brightness(1.15);
}

/* 3rd level dropdown */
.lfm_menu_tab .dropdown-menu {
  background-color: var(--raised);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  padding: 4px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.lfm_menu_tab .dropdown-menu a {
  font-size: 14px;
  padding: 0 20px;
  line-height: 34px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  display: block;
  transition: color .15s, background-color .15s;
}
.lfm_menu_tab .dropdown-menu li:hover {
  background-color: rgba(200,146,42,.08);
}
.lfm_menu_tab .dropdown-menu a:hover {
  color: var(--gold-light);
  text-decoration: none;
}
.lfm_menu_tab .dropdown-toggle {
  font-family: var(--nav-font);
}

@media (max-width: 991.98px) {
  .lfm_menu_tab > li > a {
    padding-left: 40px;
    line-height: 38px;
  }
  .lfm_menu_tab .dropdown-menu a {
    padding-left: 56px;
  }
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
.container.pt-4.pb-5 {
  padding-top: 20px !important;
}

/* Cards / panels */
.card,
.panel,
.lfm_module {
  background-color: var(--surface);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  color: var(--text);
}

/* Tables */
table {
  color: var(--text);
}
.table {
  color: var(--text);
}
.table th {
  background-color: var(--raised);
  color: var(--gold-light);
  border-color: var(--border-div);
}
.table td {
  border-color: var(--border-div);
}
.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(74,46,22,.3);
}
.table-hover tbody tr:hover {
  background-color: rgba(200,146,42,.06);
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  font-family: var(--body-font);
  font-weight: 600;
}

/* Links */
a {
  color: var(--gold-light);
  transition: color .15s;
}
a:hover {
  color: var(--gold);
  text-decoration: none;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary,
.buttonlink {
  font-family: var(--body-font);
  font-weight: 600;
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--text-on-gold);
  border-radius: 6px;
  padding: 7px 18px;
  transition: background-color .18s, box-shadow .18s;
  text-decoration: none;
  display: inline-block;
  cursor: pointer;
}
.btn-primary:hover,
.buttonlink:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--text-on-gold);
  box-shadow: 0 0 16px rgba(200,146,42,.4);
}

.btn-secondary {
  background-color: var(--raised);
  border-color: var(--border-card);
  color: var(--text);
  border-radius: 6px;
}
.btn-secondary:hover {
  background-color: var(--link);
  border-color: var(--link);
  color: var(--text);
}

.btn-sm {
  font-size: 13px;
  padding: 4px 12px;
}

/* ============================================================
   INFOBAR
   ============================================================ */
.infobar {
  width: 100%;
  padding: 16px 0;
  color: var(--text);
  background-color: var(--raised);
  border-top:    1px solid var(--border-div);
  border-bottom: 1px solid var(--border-div);
}
.infobar h2 {
  color: var(--gold-light);
}

/* ============================================================
   FORM CONTROLS
   ============================================================ */
.form-control,
input[type=text], input[type=email], input[type=password],
input[type=number], input[type=url], textarea, select {
  background-color: var(--raised);
  border: 1px solid var(--border-div);
  color: var(--text);
  border-radius: 6px;
}
.form-control:focus {
  background-color: var(--raised);
  border-color: var(--gold);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(200,146,42,.18);
}

/* ============================================================
   ALERTS / BADGES
   ============================================================ */
.alert-info    { background-color: rgba(60,40,20,.35);  border-color: var(--link); color: var(--text); }
.alert-success { background-color: rgba(39,120,79,.35); border-color: #2A7A4F;    color: var(--text); }
.alert-warning { background-color: rgba(200,146,42,.2); border-color: var(--gold); color: var(--gold-light); }
.alert-danger  { background-color: rgba(160,40,40,.35); border-color: #9B2020;    color: var(--text); }

.badge-primary { background-color: var(--gold); color: var(--text-on-gold); }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.lfm_title {
  font-family: var(--body-font);
  font-weight: 700;
  color: var(--gold-light);
  font-size: 32px;
}
.lfm_descr {
  font-family: var(--body-font);
  color: var(--text);
  font-size: 16px;
}
.lfm_descr_bold {
  font-family: var(--body-font);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

/* ============================================================
   PROFILE PICTURES
   ============================================================ */
.profilepic_small  { width:40px;  height:40px;  border-radius: 50%; border: 2px solid var(--border-card); }
.profilepic_med    { width:75px;  height:75px;  border-radius: 50%; border: 2px solid var(--border-card); }
.profilepic_large  { width:200px; height:200px; border-radius: 50%; border: 3px solid var(--gold); }

/* ============================================================
   ICONS
   ============================================================ */
.far, .fas { margin-right: 4px; }
.feedicon  { color: var(--gold); font-size: 20px; margin-right: 5px; }

/* ============================================================
   VCENTER HELPER
   ============================================================ */
.vcenter {
  display: flex;
  align-items: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.lfm_footer {
  background-color: #0F0704;
  border-top: 1px solid var(--border-card);
  box-shadow: 0 -4px 32px rgba(0,0,0,.3);
  padding-top: 28px;
  padding-bottom: 20px;
}

/* Footer nav links */
.t4u-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.t4u-footer-links a {
  font-family: var(--nav-font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--gold-light);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.t4u-footer-links a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold-light);
  text-decoration: none;
}
.t4u-footer-links .sep {
  color: var(--text-muted);
  font-size: 16px;
  user-select: none;
}

/* Footer centred image — actual size, capped on small screens */
.t4u-footer-img {
  text-align: center;
  margin-bottom: 18px;
  overflow: hidden;
}
.t4u-footer-img img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* Footer bottom text */
.t4u-footer-bottom {
  text-align: center;
}
.t4u-footer-bottom p {
  color: var(--text-muted);
  font-size: 12px;
  margin: 0;
  line-height: 1.8;
}
.t4u-footer-bottom a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color .15s;
}
.t4u-footer-bottom a:hover {
  color: var(--gold);
  text-decoration: none;
}

/* Footer divider */
.lfm_footer hr {
  border-color: var(--border-div);
}

/* ============================================================
   SCROLLBAR STYLING
   ============================================================ */
::-webkit-scrollbar { width: 8px; background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--raised); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--link); }

/* ============================================================
   RESPONSIVE TWEAKS
   ============================================================ */
@media (max-width: 767.98px) {
  :root { --header-h: auto; }
  .t4u-footer-links { gap: 16px; }
}