/* =========================================================
   SIDEBAR + CONTENT POSITIONING
   ========================================================= */

@media screen and (min-width: 980px) and (max-width: 1200px) {
  #allrecords {
    margin-left: 308px !important;
    box-sizing: border-box !important;
  }
  
}

@media screen and (min-width: 1201px) {
  #allrecords {
    margin-left: 414px !important;
    box-sizing: border-box !important;
  }
  
}


/* =========================================================
   2. MOBILE RESET: No margin on phones/tablets
   ========================================================= */
@media screen and (max-width: 979px) {
  #allrecords {
    margin-left: 0 !important;
    width: 100% !important;
    overflow-x: hidden !important;
  }
}

/* =========================================================
   3. POPUP RESET: Remove margin when popup is open
   ========================================================= */
body.t-body_popupshown #allrecords {
  margin-left: 0 !important;
}

/* =========================================================
   EXPERIENCE – MAIN BUTTON ACTIVE
   ========================================================= */

.sidebar-main--experience.active,
.sidebar-main--experience.active .tn-atom,
.sidebar-main--experience.active * {
  color: #FF6E13 !important;
}

/* =========================================================
   EXPERIENCE – SUBMENU 
   ========================================================= */

/* 1. Base Link Style */
.gradient-link {
  position: relative;
  text-decoration: none;
  color: #1E1C1C !important;
  opacity: 0.6;
  transition: opacity 0.25s ease;
  /*padding */
  padding-bottom: 2px; 
}


.gradient-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; 
  width: 100%;
  height: 0;
  border-bottom: 1px solid #1E1C1C;
  transition: opacity 0.25s ease;
}

.gradient-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; 
  width: 100%;
  height: 1px; 
  background: linear-gradient(
    to right,
    rgba(241,148,98,1),
    rgba(200,51,29,1),
    rgba(154,36,116,1)
  );
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.6s ease;
  z-index: 2; 
}

/* 4. Hover + Active States */
.gradient-link:hover,
.gradient-link.active {
  opacity: 1 !important;
}

.gradient-link:hover::after,
.gradient-link.active::after {
  background-size: 100% 100%;
}


/* =========================================================
  MAIN MENU BUTTON TEXT (EDUCATION → FAQ +AI)
   ========================================================= */
/* =========================================================
   FORCE ACTIVE COLOR FOR MAIN MENU BUTTON TEXT
   (Overrides Tilda block-level button styles)
   ========================================================= */

/* active */
.sidebar-main--education.active .tn-atom__button-text,
.sidebar-main--skills.active .tn-atom__button-text,
.sidebar-main--tools.active .tn-atom__button-text,
.sidebar-main--languages.active .tn-atom__button-text,
.sidebar-main--passions.active .tn-atom__button-text,
.sidebar-main--faq.active .tn-atom__button-text {
  color: #FF6E13 !important;
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* inactive */
.sidebar-main--education .tn-atom__button-text,
.sidebar-main--skills .tn-atom__button-text,
.sidebar-main--tools .tn-atom__button-text,
.sidebar-main--languages .tn-atom__button-text,
.sidebar-main--passions .tn-atom__button-text,
.sidebar-main--faq .tn-atom__button-text,
.sidebar-main--ai .tn-atom__button-text{
  color: #1E1C1C !important;
  opacity: 0.6;
  ;
}

/* hover */
.sidebar-main--education:hover .tn-atom__button-text,
.sidebar-main--skills:hover .tn-atom__button-text,
.sidebar-main--tools:hover .tn-atom__button-text,
.sidebar-main--languages:hover .tn-atom__button-text,
.sidebar-main--passions:hover .tn-atom__button-text,
.sidebar-main--faq:hover .tn-atom__button-text,
.sidebar-main--ai:hover .tn-atom__button-text{
  color: #1E1C1C !important;
  opacity: 1;
  transition: opacity 0.25s ease;
}

/* icon on AI USAGE button moves on hover */
  .sidebar-arrow {
    transition: transform 0.3s ease !important; 
  }

  .sidebar-main--ai:hover .sidebar-arrow {
    transform: translateX(4px) !important;
  }

/* =========================================================
   AI USAGE GROUP - SYNCHRONIZED HOVER
   ========================================================= */

/* 1. Target the children THROUGH the parent group class */
.sidebar-main--ai .tn-atom__button-text,
.sidebar-main--ai .tn-atom__img {
  opacity: 0.6 !important;
  transition: opacity 0.25s ease-in-out !important;
}

/* 2. TRIGGER: When the GROUP is hovered, change BOTH children */
.sidebar-main--ai:hover .tn-atom__button-text,
.sidebar-main--ai:hover .tn-atom__img {
  opacity: 1 !important;
}