  /***********/
 /* General */
/***********/
  /* Base page styles */
  html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;                 /* no horizontal scroll */
    font-family: Roboto, sans-serif;
  }

  /* Oversized animated layer centered behind everything */
  body::before {
    content: "";
    position: fixed;
    left: 50%;
    top: 50%;
    width: 120vw;
    height: 120vh;
    transform: translate(-50%, -50%);
    z-index: -1;

    background-image: url('../images/background.jpg');
    background-size: cover;             /* preserve aspect, fill */
    background-position: center;
    background-repeat: no-repeat;

    animation: bgPanZoom 80s ease-in-out infinite;
    will-change: transform;
    pointer-events: none;
  }

  /* Smooth pan (in screen space) + gentle zoom “breathing” */
  @keyframes bgPanZoom {
    0%   { transform: translate(-50%, -50%) translate3d(0, 0, 0)        scale(1.05); }
    25%  { transform: translate(-50%, -50%) translate3d(-4vw, -2vh, 0)  scale(1.08); }
    50%  { transform: translate(-50%, -50%) translate3d( 3vw,  1vh, 0)  scale(1.10); }
    75%  { transform: translate(-50%, -50%) translate3d(-2vw,  3vh, 0)  scale(1.07); }
    100% { transform: translate(-50%, -50%) translate3d(0, 0, 0)        scale(1.05); }
  }

  /* Reduce motion for those who prefer it */
  @media (prefers-reduced-motion: reduce) {
    body::before { animation: none; transform: translate(-50%, -50%) scale(1.06); }
  }



  
  /* Fonts */
  @font-face {
    font-family: 'Orbitron';
    src: url('../font/Orbitron-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
  }
  @font-face {
    font-family: 'Orbitron';
    src: url('../font/Orbitron-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
  }
  @font-face {
    font-family: 'Orbitron';
    src: url('../font/Orbitron-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
  }
  @font-face {
    font-family: 'Orbitron';
    src: url('../font/Orbitron-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
  }
  @font-face {
    font-family: 'Orbitron';
    src: url('../font/Orbitron-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }
  @font-face {
    font-family: 'Orbitron';
    src: url('../font/Orbitron-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
  }
  @font-face {
    font-family: 'Orbitron';
    src: url('../font/Orbitron-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-ExtraBoldItalic.ttf') format('truetype');
    font-weight: 800;
    font-style: italic;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-ExtraLightItalic.ttf') format('truetype');
    font-weight: 200;
    font-style: italic;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
  }
  @font-face {
    font-family: 'Roboto';
    src: url('../font/Roboto-ThinItalic.ttf') format('truetype');
    font-weight: 100;
    font-style: italic;
  }
  
  /* ===========================
     3-COLUMN LAYOUT
     =========================== */
  

    .hex-button {
      width: 25px;
      height: 25px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      left: 0px;
      bottom: -25px;
      z-index: 10;
      border: none;
      overflow: hidden;
      position: absolute;
      transition: left 0.3s ease-in-out;
      border-radius: 0px 0px 5px 0px;
      background-color: #ffffff;
    }

  .hex-arrow {
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #B1C4F5;
    transition: transform 0.7s ease-in-out;
    transition: border 0.15s ease-in-out;
  }

  .hex-button:hover .hex-arrow {
    border-left: 8px solid #EDAB1E;
  }

.hex-arrow.point-left {
  transform: rotate(180deg); /* Points left (expanded) */
}

.hex-arrow.point-right {
  transform: rotate(0deg); /* Points right (collapsed) */
}

  /* Wraps left sidebar, main content, right info */
  .page-container {
    display: flex;
    width: 100%;
    height: 100vh; /* Full viewport height */
    box-sizing: border-box;
  }

  .sidebar,
    .sidebar-logo-bottom,
    .sideBarIcon,
    .sidebarLinkText {
      color: #484848;
      transition: color 0.2s ease-in-out;
  }



  .sidebarLinkText:hover {
    color: #384FBC;
  }

  .sidebar.collapsed .sidebarLinkText {
    display: none;
  }


  
  /* SIDEBAR: default 313px wide, collapsible to 110px */
  .sidebar {
    flex: 0 0 234px;
    height: 100vh;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  
  .sidebar.collapsed {
    flex: 0 0 96px; /* collapsed width */
  }

  .sideBarIcon {
    margin-right: 20px;
  }

  .sidebar.collapsed .sideBarIcon {
    margin-right: 0px;
  }
  
  /* Top logo in sidebar */
  .sidebar-logo-top {
    width: 207px;
    height: 34px;
    background-size: 100% 100%;
    background-position: center;
    margin-top: 20px;
    transition: width 0.3s ease-in-out;
    position: relative;
    left: 0px;
  }

  /* Collapsed state */
.sidebar.collapsed .sidebar-logo-top {
  width: 60px;
  height: 45px;
  left: 0px;

}
  
  /* Bottom logo in sidebar */
  .sidebar-logo-bottom {
    width: 169px;
    height: 44px;
    background-size: 100% 100%;
    background-position: center;
    margin-bottom: 20px;
    position: relative;
    left: -20px;
  }

  


.sidebar.collapsed .sidebar-logo-bottom {
  width: 60px;
  height: 48px;
  left: 0px;
}

  /* Button to collapse sidebar */
  .collapse-button {
    margin: 15px 0;
    padding: 10px;
    border: none;
    background-color: #ee0202;
    color: #fff;
    right: -10px;
    top: 50%;
    transform: translate(0%, -50%);
    font-size: 16px;
    cursor: pointer;
    outline: none;
    position: absolute;
  }
  
  /* Container for the original nav buttons */
  .button-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 15px 0px;
    font-family: Roboto, sans-serif;
    font-weight: 400;
    background-color: transparent;
    transition: width 0.3s ease-in-out;
    background-color: #FFFFFF;
    border-radius: 0px 5px 5px 0px;
  }
  
  /* 
    Tinted background overlay, just like your beveled-box "background-tint".
    We’ll add a second overlay for a subtle highlight or “grain” if desired.
  */
  .button-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--colorPrimary); /* same main color as your cards */
    opacity: 0.3; /* half-transparent */
    z-index: -1;  /* behind the actual .button links */
  }
  .button-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.1); /* subtle “sheen” on top */
    pointer-events: none;
    z-index: -1;  /* sits behind your links but above the .::before tint */
  }
  .button {
    display: block;
    width: 100%;
    text-align: left;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: white;
    padding: 10px 25px;
  }
  
  

  /* MAIN CONTENT: flexible width, vertical scrolling */
  .main-content {
    flex: 1 1 auto;
    height: 100vh;
    overflow-y: scroll; /* Scroll inside main content */
    padding: 20px;
    color: #484848;
    position: relative;
    scrollbar-width: none; /* Firefox */
  }

  .main-content::-webkit-scrollbar {
    display: none;
  }
  
  /* RIGHT INFO PANEL: fixed 108px wide */
  .infoRightCon {
    flex: 0 0 108px;
    height: 100vh;
    position: relative;
    color: rgb(30, 151, 67);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 17px;
    box-sizing: border-box;
  }
  


  .infoRightText {
    width: auto;
    position: absolute;
    background-color: #FFFFFF;
    padding: 10px;
    top: 20px;
    right: 25px;
    text-align: right;
    color: #484848;
    visibility: hidden;
    box-shadow: 2px 5px 12px rgba(33, 45, 101, 0.1);
  }

  .infoRightCon:hover .infoRightText {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(-5px);
    /* The extra translateY(-5px) just animates it upward slightly. 
       You can omit or adjust to taste. */
  }
  

  
  /* Profile pic container */
  .pfpCon {
    width: 91px;
    height: 91px;
    background-size: 140% 100%;
    background-position: center;
    border-radius: 5px;
    border: none;
    float: right;
    background-color: #FFFFFF;
    position: relative;
    border: 1px solid rgba(237, 171, 30, 0.0);
    margin-bottom: 40px;
    box-shadow: 2px 5px 12px rgba(33, 45, 101, 0.1);
    transition: border 150ms;
  }

  .pfpCon:hover {
    border: 1px solid rgba(237, 171, 30, 1.0);

  }

  .notification-icon, .message-icon {
  width: 37px;
  height: 37px;
  background-position: center;
  background-size: cover;
  position: relative;   /* So .hex-badge can absolutely position */
}

/* Notification icon is an image named iconnotification.png */
.notification-icon {
  background-image: url('../images/iconnotification.png');
  margin-bottom: 40px;  /* second icon is 40px below this one */
}

/* Message icon is an image named iconmessages.png */
.message-icon {
  background-image: url('../images/iconmessage.png');
  opacity: 0.3;
}

/* 
  The small hex badge for the count, e.g. "12" or "99".
  This uses the same hex shape as your sidebar button. 
*/
.hex-badge {
  width: 23px;
  height: 21px;
  background-color: var(--colorPrimary); /* your primary color */
  /* The same hex shape from your .hex-button: */
  clip-path: polygon(
    50% 0%, 100% 25%,
    100% 75%, 50% 100%,
    0% 75%, 0% 25%
  );
  box-shadow: 0 0 6px rgba(0,0,0,0.7); /* blackish shadow radius 6px */
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;    /* top-right corner of the icon */
  right: 0;
  /* shift it outward if you want it partly off-corner, e.g.:
     transform: translate(40%, -40%);
  */
  transform: translate(30%, -30%);
}

  .pfpBorder {
    width: 91px !important;
    height: 91px !important;
    border: none !important;
    border-radius: 0px !important;
  }

  .pfpImg {
    width: 78px;
    height: 78px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    aspect-ratio: 2 / 1;
    object-fit: cover;
    border-radius: 3px;
    transition: all 100ms;
  }

  .pfpCon:hover .pfpImg {
    width: 81px;
    height: 81px;
  }
  
  .news-container {
    display: flex;
    width: 100%;
    max-width: 100%;
    font-family: 'Roboto', sans-serif;
    gap: 20px;
    align-items: flex-start;
  }
  
  .news-image {
    width: 300px;
    height: 300px;
    background-image: url('../images/news.png');
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    margin-right: 20px;
  }
  
  .news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* ⬅ centers the text and button vertically */
    height: 300px; /* match image height for alignment */
  }
  
  .news-text-header {
    font-size: 26px;
    font-weight: bold;
  }
  
  .news-text {
    color: white;
    font-size: 18px;
    max-width: 600px;
  }
  
  /* === Beveled News Button === */
  .news-button {
    position: relative;
    width: 120px;
    padding: 10px 25px;
    background-color: var(--colorSecondary, #EDAB1E);
    border: none;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    clip-path: polygon(
      6px 0%, calc(100% - 6px) 0%, 100% 6px,
      100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%,
      0% calc(100% - 6px), 0% 6px
    );
    overflow: hidden;
    font-size: 18px;
    line-height: 1.4;
    z-index: 0;
    margin-top: 20px;
  }
  
  .news-button-text {
    position: relative;
    z-index: 2; /* 👈 this makes it float ABOVE the tint */
    color: white;
    font-weight: bold;
    text-shadow: 0px 2px 17px rgba(0, 0, 0, 0.5);
  }

  /* Tint overlay behind the text */
.news-button::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(2055, 0, 0, 0.0); /* white-ish tint */
  z-index: 1; /* 👈 sits BETWEEN background and text */
  transition: background-color 0.1s ease-in-out;
  pointer-events: none;
}
  
  
.news-button:hover::before {
  background-color: rgba(0, 0, 0, 0.1);
}

.news-button:hover {
  background-color: #c88c14;
}

  .beveled-box-wrapper {
    background-color: #FFFFFF;
    position: relative;
    width: var(--cardWidth);
    height: calc(var(--cardWidth) * 0.7246);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    box-shadow: 2px 5px 12px rgba(33, 45, 101, 0.1);
  }
  
  .background-tint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--colorPrimary);
    opacity: 0.7;
  }
  
  .background-tint::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    pointer-events: none;
  }
  
  .imgtest {
    width: calc(var(--cardWidth) * 0.9428);
    height: calc(var(--cardWidth) * 0.3428);
    position: absolute;
    top: calc(var(--cardWidth) * 0.0259);
    left: 50%;
    transform: translateX(-50%);
    background-size: 100% 100%;
    background-position: 50% 50%;
  }
  
  .beveled-box-content {
    color: #484848;
    font-size: calc(var(--cardWidth) * 0.0519);
    position: absolute;
    font-family: Roboto, sans-serif;
    font-weight: 400;
    top: calc(var(--cardWidth) * 0.3896);
    left: calc(var(--cardWidth) * 0.0259);
    text-align: left;
    max-width: 90%;
    line-height: 120%;
  }
  
  .beveled-box-content-2 {
    width: calc(var(--cardWidth) * 0.5532);
    color: #484848;
    font-size: calc(var(--cardWidth) * 0.0571);
    text-align: center;
    position: absolute;
    font-family: Roboto, sans-serif;
    font-weight: 200;
    top: calc(var(--cardWidth) * 0.5977);
    left: calc(var(--cardWidth) * 0.0259);
  }
  
  .button-beveled {
    bottom: calc(var(--cardWidth) * 0.0259);
    right: calc(var(--cardWidth) * 0.0259);
    width: calc(var(--cardWidth) * 0.361);
    height: calc(var(--cardWidth) * 0.1194);
    font-weight: bold;
    text-align: center;
    line-height: calc(var(--cardWidth) * 0.1194);
    font-family: Orbitron, sans-serif;
    font-size: calc(var(--cardWidth) * 0.037);
    color: #FFFFFF;
    background-color: #EDAB1E;
    position: absolute;
  }
  .dashBreak {
    width: 100%; font-size: 25px; font-family: Orbitron;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .dashBreakHr {
    margin-top: 5px;
    width: 590px;
    height: 2px;
    opacity: 0.5;
    border-radius: 2px;
    background: linear-gradient( to right, rgb(72, 72, 72) 0%, rgba(72, 72, 72, 0.5) 50%, rgba(72, 72, 72, 0.0) 80% );
  }

  
  
  .progress-bar {
    position: absolute;
    top: calc(var(--cardWidth) * 0.5324);
    left: calc(var(--cardWidth) * 0.0259);
    width: calc(var(--cardWidth) * 0.9480);
    height: calc(var(--cardWidth) * 0.0311);
    background: #F2F4FF;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    --progress: 0%;
  }
  
  .progress-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #F2F4FF;
    pointer-events: none;
    z-index: 1;
  }
  
  .progress-bar-fill {
    height: 100%;
    width: var(--progress);
    background-color: var(--colorSecondary);
    z-index: 2;
    position: relative;
    transition: width 0.4s ease-in-out;
  }

  /* Star Animation */
  @keyframes animStar {
    from {
      transform: translateY(0);
    }
    to {
      transform: translateY(-2000px);
    }
  }

  /* ===========================
   CARD & COLOR PICKERS
   =========================== */

/* The container that lays out your small course cards in a row, wrapping as needed */
.contentMiddle {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 20px;
  /* Remove any fixed width/height so it uses the .main-content's scroll */
}

  
/* The card container: .vecCardSmallCon */
.vecCardSmallCon {
  position: relative;
  width: var(--cardSmallWidth);
  height: calc(var(--cardSmallWidth) * 0.724);
  flex: 0 0 auto;
  transition: width 1.0s ease-in-out, height 1.0s ease-in-out;
}

/* The main background SVG in each card */
.vecCardSmall {
  width: var(--cardSmallWidth);
  height: calc(var(--cardSmallWidth) * 0.724);
  position: absolute;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: width 1.0s ease-in-out, height 1.0s ease-in-out, transform 0.2s ease;
}

/* The image at the top of the card */
.vecCardSmallImg {
  position: absolute;
  width: calc(var(--cardSmallWidth) * 0.942);
  height: calc(var(--cardSmallWidth) * 0.342);
  left: calc(var(--cardSmallWidth) * 0.0285);
  top: calc(var(--cardSmallWidth) * 0.0285);
  transition: width 1.0s ease-in-out, height 1.0s ease-in-out, top 1.0s ease-in-out, left 1.0s ease-in-out;
}

/* The "Resume/Complete" button at bottom right */
.vecCardSmallButton {
  width: calc(var(--cardSmallWidth) * 0.361);
  height: calc(var(--cardSmallWidth) * 0.119);
  right: calc(var(--cardSmallWidth) * 0.0285);
  bottom: calc(var(--cardSmallWidth) * 0.0285);
  position: absolute;
  cursor: pointer;
  transition: width 1.0s ease-in-out, height 1.0s ease-in-out, right 1.0s ease-in-out, bottom 1.0s ease-in-out;
}
.vecCardSmallButtonPath {
  transition: stroke 150ms ease-in-out;
}
.vecCardSmallButton:hover .vecCardSmallButtonPath {
  stroke: var(--colorSecondary) !important;
}
#vecCardSmallButtonGrad stop {
  transition: stop-color 250ms ease-in-out;
}
.vecCardSmallButton:hover .vecCardSmallButtonGrad01 {
  stop-color: var(--colorSecondary) !important;
}
.vecCardSmallButton:hover .vecCardSmallButtonGrad02 {
  stop-color: var(--colorSecondaryAlt) !important;
}
.vecCardSmallButton:hover .vecCardSmallButtonGrad03 {
  stop-color: var(--colorSecondary) !important;
}
.vecCardSmallButtonText {
  font-family: Orbitron;
  font-size: 120%;
  font-weight: bold;
}

/* Progress bar at bottom left-ish */
.vecCardSmallProgressBar {
  position: absolute;
  width: calc(var(--cardSmallWidth) * 0.942);
  height: calc(var(--cardSmallWidth) * 0.0571);
  left: calc(var(--cardSmallWidth) * 0.0285);
  top: calc(var(--cardSmallWidth) * 0.529);
  transition: width 1.0s ease-in-out, height 1.0s ease-in-out, left 1.0s ease-in-out, top 1.0s ease-in-out;
}

/* The text showing percentage, e.g. "75% Completed" */
.vecCardSmallProgressText {
  width: calc(var(--cardSmallWidth) * 0.553);
  height: calc(var(--cardSmallWidth) * 0.085);
  text-align: center;
  position: absolute;
  color: var(--colorText);
  font-size: calc(var(--cardSmallWidth) * 0.0571);
  left: calc(var(--cardSmallWidth) * 0.0285);
  top: calc(var(--cardSmallWidth) * 0.61);
  text-shadow: 0px 2px 8px var(--colorTextShadow);
  transition: width 1.0s ease-in-out, height 1.0s ease-in-out, top 1.0s ease-in-out,
              left 1.0s ease-in-out, font-size 1.0s ease-in-out, line-height 1.0s ease-in-out;
}

/* Short description (course title) in the middle */
.vecCardSmallDescText {
  width: calc(var(--cardSmallWidth) * 0.9402);
  height: calc(var(--cardSmallWidth) * 0.0961);
  left: calc(var(--cardSmallWidth) * 0.0285);
  top: calc(var(--cardSmallWidth) * 0.4051);
  font-size: calc(var(--cardSmallWidth) * 0.0519);
  line-height: calc(var(--cardSmallWidth) * 0.0480);
  font-family: Roboto;
  color: var(--colorText);
  text-shadow: 0px 2px 8px var(--colorTextShadow);
  position: absolute;
  transition: width 1.0s ease-in-out, height 1.0s ease-in-out, top 1.0s ease-in-out,
              left 1.0s ease-in-out, font-size 1.0s ease-in-out, line-height 1.0s ease-in-out;
}

/* ===========================
   SETTINGS PANEL
   =========================== */
.settingsCon {
  display: none;
  background-color: blue;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translate(0%, -50%);
  padding: 20px;
  z-index: 1;
}
.color-picker {
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background-color: #f8f9f9;
  margin-right: 10px;
  color: black;
}
[type='color'] {
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  padding: 0;
  width: 15px;
  height: 15px;
  border: none;
}
[type='color']::-webkit-color-swatch-wrapper {
  padding: 0;
}
[type='color']::-webkit-color-swatch {
  border: none;
}

.centered-beveled-box {
  position: absolute;
  width: 700px;
  height: 90vh;
  min-height: 657px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 50px 30px;
  box-sizing: border-box;
  z-index: 0;
  background-color: #FFFFFF;
  border-radius: 5px;
  box-shadow: 2px 5px 12px rgba(33, 45, 101, 0.1);
}

/* Layout Structure */
.sub-container {
  width: 640px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.left-box,
.middle-box,
.right-box {
  height: auto;
}
.left-box {
  width: 300px;
  text-align: center;
  position: relative;
  overflow-x: hidden;
}
.middle-box {
  width: 40px;
  height: 340px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  align-self: center;
}
.right-box {
  width: 300px;
  position: relative;
}

.left-box .logo {
  width: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Tab Buttons & Forms */
.tab-buttons {
  width: 300px;
  margin: 25px auto 0 auto;
  display: flex;
  justify-content: space-between;
}
.tab-buttons button {
  width: 150px;
  height: 45px;
  font-size: 18px;
  font-family: Roboto, sans-serif;
  cursor: pointer;
  outline: none;
  border-top: none;
  border-left: none;
  border-right: none;
  background: transparent;
}
.signup-tab {
  color: #384FBC;
  font-weight: 300;
  /* (Assuming the intended border is 1px solid) */
  border-bottom: 1px solid rgba(255,255,255,0.5);
}
.login-tab {
  color: #384FBC;
  font-weight: 500;
  border-bottom: 2px solid var(--colorSecondary);
}
.active-signup,
.active-login {
  color: #384FBC;
  border-bottom: 2px solid var(--colorSecondary);
  font-weight: 500;
}
.inactive-signup,
.inactive-login {
  color: #484848;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  font-weight: 300;
}

.form-container {
  width: 300px;
  margin: 30px auto 0 auto;
  text-align: left;
  font-family: Roboto, sans-serif;
  color: #484848;
}
.form-container label {
  font-size: 18px;
  font-weight: 500;
  display: block;
}
.form-container .input-field {
  width: 300px;
  height: 38px;
  background: #F2F4FF;
  border: none;
  outline: none;
  margin-top: 12px;
  font-size: 16px;
  color: #484848;
  padding: 0 10px;
  box-sizing: border-box;
}
.form-container .input-field::placeholder {
  color: #8B92B6;
}
.margin-top-20 { margin-top: 20px; }
.margin-top-30 { margin-top: 30px; }

/* Buttons */
.button-beveled-login,
.button-beveled-signup {
  display: block;
  text-decoration: none;
  text-align: center;
  line-height: 46px;
  width: 100px;
  height: 46px;
  color: #FFFFFF;
  background-color: #EDAB1E;
  border-radius: 5px;
  font-weight: bold;
  font-family: Orbitron, sans-serif;
  border: none;
  cursor: pointer;
  overflow: hidden;
  font-size: 16px;
  margin-top: 20px;
  position: relative;
}
.button-beveled-login::before,
.button-beveled-signup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%; 
  height: 100%;
  pointer-events: none;
  z-index: -1;
}
.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Divider & Misc */
.divider {
  width: 300px;
  height: 2px;
  background: rgba(255,255,255,0.5);
  margin: 30px auto 0 auto;
}
.trouble-text {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
}
.trouble-text span {
  color: #484848;
  font-weight: 400;
}
.trouble-text a {
  color: #384FBC;
  font-weight: 500;
  text-decoration: none;
}

/* Sections show/hide */
.signup-section,
.login-section {
  display: none;
}
.signup-section.active,
.login-section.active {
  display: block;
  max-height: 50vh;
  overflow-y: auto;
}
.signup-section .input-field,
.login-section .input-field {
  margin-top: 12px;
}

/* Camera & Selfie */
.camera-container {
  width: 300px;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#video,
#canvas {
  width: 100%;
  max-width: 300px;
  height: 200px;
  border: 2px solid #000;
  border-radius: 5px;
  background: #333;
}
#canvas {
  display: none;
}
.confirm-check {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* News Carousel (Index) */
.vertical-gradient-line {
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom,
    rgba(255, 255, 255, 0.0) 0%,
    rgba(255, 255, 255, 0.1) 30%,
    rgba(255, 255, 255, 0.1) 70%,
    rgba(255, 255, 255, 0.0) 100%);
}
.news-section-index {
  color: white;
  font-family: Roboto, sans-serif;
  text-align: left;
}
.news-title-index {
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  line-height: 26px;
}
.news-underline-index {
  width: 300px;
  height: 2px;
  margin-top: 15px;
  background: linear-gradient(to left,
      rgba(255, 255, 255, 0.0) 35%,
      rgba(255, 255, 255, 0.5) 100%);
}
.news-image-index {
  margin-top: 10px;
  width: 300px;
  height: auto;
}
.news-heading-index {
  margin-top: 15px;
  font-size: 26px;
  font-family: 'Roboto', sans-serif;
  line-height: 26px;
}
.news-meta-index {
  margin-top: 4px;
  font-family: 'Roboto', sans-serif;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  line-height: 20px;
}
.meta-by-index { font-size: 20px; }
.meta-author-index {
  font-size: 20px;
  font-weight: 500;
  color: var(--colorSecondary);
}
.meta-posted-index {
  font-size: 16px;
  font-weight: 400;
}
.news-description-index {
  margin-top: 15px;
  font-size: 18px;
  font-family: 'Roboto', sans-serif;
  line-height: 18px;
}
.news-button-index {
  width: 243px;
  height: 45px;
  margin-top: 15px;
  margin-bottom: 20px;
  font-family: Orbitron, sans-serif;
}
.button-beveled-news {
  display: block;
  text-decoration: none;
  text-align: center;
  line-height: 46px;
  width: 243px;
  height: 46px;
  color: white;
  font-weight: bold;
  font-family: Orbitron, sans-serif;
  border: none;
  cursor: pointer;
  overflow: hidden;
  font-size: 16px;
  margin-top: 20px;
  position: relative;
  transition: background-color 100ms ease-in-out;
}
.button-beveled-news::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* Carousel indicators (Index) */
.carousel-slide { display: none; }
.carousel-slide.active { display: block; }
.carousel-indicators-login {
  position: absolute;
  left: 0;
  gap: 2px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  width: auto;
}
.indicator {
  width: 30px;
  height: 7px;
  background-color: rgba(0,0,0,0.5);
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.indicator .bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: rgba(255,255,255,0.5);
  transition: width 0s;
}

/* ---------- From dashboard.html ---------- */



/* Dashboard Carousel */
.dashboard-carousel-wrapper {
  margin: 20px 0;
  max-width: 900px;
  position: relative;
}
.news-dashBreak {
  display: flex;
  flex-direction: column;
  margin: 20px 0;
}
.news-dashBreak .news-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  margin-bottom: 10px;
}
.news-indicators-unit {
  display: flex;
  align-items: center;
  gap: 10px;
}
.news-carousel-indicators {
  display: flex;
  gap: 2px;
}
.dashboard-carousel-header {
  display: flex;
  align-items: center;
  position: relative;
  margin-bottom: 10px;
}
.dashboard-carousel-heading {
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  margin: 0;
  flex-shrink: 0;
}
.dashboard-carousel-indicators {
  display: flex;
  gap: 8px;
  margin-left: 15px;
  flex-shrink: 0;
}
.dashboard-carousel-indicator {
  width: 30px;
  height: 7px;
  background-color: rgba(255,255,255,0.2);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.dashboard-carousel-indicator-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: rgba(255,255,255,0.7);
  transition: width 0s;
}
.dashboard-carousel-hr {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(to left,
      rgba(255,255,255,0.0) 35%,
      rgba(255,255,255,0.5) 100%);
  margin-left: 15px;
}
.dashboard-carousel-container {
  overflow: hidden;
  position: relative;
}
.dashboard-carousel-slide {
  display: none;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
  gap: 20px;
}
.dashboard-carousel-slide.active {
  display: flex;
}
.dashboard-carousel-image-container {
  flex-shrink: 0;
  width: 300px;
}
.dashboard-carousel-image {
  width: 100%;
  border-radius: 5px;
}
.dashboard-carousel-content-container {
  flex-grow: 1;
  color: #fff;
  font-family: 'Roboto', sans-serif;
}
.dashboard-carousel-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 24px;
  margin-bottom: 5px;
}
.dashboard-carousel-meta {
  font-size: 16px;
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
}
.dashboard-carousel-description {
  font-size: 18px;
  line-height: 1.3;
  margin-bottom: 15px;
}
.dashboard-carousel-button {
  width: 180px;
  height: 40px;
  font-family: Orbitron, sans-serif;
  font-size: 16px;
  background-color: var(--colorSecondary);
  border: none;
  cursor: pointer;
  clip-path: polygon(6px 0%, calc(100% - 6px) 0%, 100% 6px,
                     100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%,
                     0% calc(100% - 6px), 0% 6px);
  transition: background-color 100ms ease-in-out;
}
.dashboard-carousel-button:hover {
  background-color: #d9970f;
}
.dashBreakHrNews {
  width: 460px;
  height: 2px;
  background: linear-gradient(to left,
      rgba(255,255,255,0.0) 35%,
      rgba(255,255,255,0.5) 100%);
}

/* Additional Dashboard elements (if not already in main.css) */
/* For example, your beveled container and header styles used within dashboard content */
.beveled-header {
  display: block;
  margin-bottom: 5px;
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  color: white;
  padding-left: 20px;
}
.beveled-container {
  display: block;
  width: fit-content;
  margin-bottom: 20px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  background-color: transparent;
}
.beveled-container .background-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--colorPrimary);
  opacity: 0.7;
  z-index: 1;
}
.beveled-content {
  position: relative;
  z-index: 2;
  color: white;
}

/* =========================
   Single-column (no news)
   ========================= */
.sub-container.single-column {
  width: 100%;
  justify-content: center;
  gap: 0;
}

.sub-container.single-column .middle-box,
.sub-container.single-column .right-box {
  display: none; /* hide the vertical rule + the (missing) news column */
}

/* Let the left column take the available width, but keep a tasteful max */
.sub-container.single-column .left-box {
  width: 100%;
  max-width: 560px;        /* adjust to taste: 520–640 works well */
  margin: 0 auto;
  text-align: center;      /* keeps logo centered */
  overflow: visible;       /* allow content to breathe */
}

/* Make the form scale to the new width */
.sub-container.single-column .form-container,
.sub-container.single-column .tab-buttons {
  width: 100%;
  max-width: 560px;
}

/* Inputs/buttons should follow the container width rather than 300px */
.sub-container.single-column .form-container .input-field,
.sub-container.single-column .button-beveled-login,
.sub-container.single-column .button-beveled-signup,
.sub-container.single-column .divider {
  width: 100%;
}

/* Camera block should also stretch nicely */
.sub-container.single-column .camera-container {
  width: 100%;
  max-width: 560px;
}
.sub-container.single-column #video,
.sub-container.single-column #canvas {
  width: 100%;
  max-width: 560px;
  height: auto;           /* maintain aspect ratio */
  aspect-ratio: 3 / 2;    /* optional, keeps it tidy */
  border: 2px solid #000;
}

/* Optional: slightly widen the outer card since we’re single-column */
.centered-beveled-box {
  width: 820px;           /* was 700px; bump if you want a roomier feel */
  max-width: calc(100% - 40px);
}

/* =========================
   Auth Tabs: true 50/50 with underline
   ========================= */
.sub-container.single-column .tab-buttons {
  display: flex;
  width: 100%;
  max-width: 520px;         /* keep in sync with left-box width below */
  margin: 8px auto 16px;
  gap: 0;                   /* no gaps so each half is flush */
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.sub-container.single-column .tab-buttons button {
  flex: 1 1 0;              /* 50/50 split */
  text-align: center;
  padding: 12px 10px;
  background: transparent;
  border: 0;
  font-weight: 600;
  letter-spacing: 0.2px;
  opacity: 0.7;
  position: relative;
}

/* Active states get a bold underline + full opacity */
.sub-container.single-column .tab-buttons .login-tab,
.sub-container.single-column .tab-buttons .active-signup {
  opacity: 1;
}

.sub-container.single-column .tab-buttons .login-tab::after,
.sub-container.single-column .tab-buttons .active-signup::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 3px;
  background: var(--colorSecondary);
  border-radius: 2px 2px 0 0;
}

/* Inactive look (optional, subtle) */
.sub-container.single-column .tab-buttons .inactive-login,
.sub-container.single-column .tab-buttons .inactive-signup {
  cursor: pointer;
}

/* =========================
   Slimmer Card, Taller Presence

/* Scope to the form containers so only those areas get styled */
.signup-section.form-container,
.login-section.form-container {
  scrollbar-width: thin;                 /* Firefox */
  scrollbar-color: #EDAB1E #F2F4FF;      /* thumb color | track color */
  padding-right: 10px;        /* pushes content away from scrollbar */
  box-sizing: border-box;     /* ensures padding doesn’t break width */
  overflow-y: auto;           /* make sure vertical scrollbar shows when needed */
}

/* WebKit (Chrome, Edge, Safari) */
.signup-section.form-container::-webkit-scrollbar,
.login-section.form-container::-webkit-scrollbar {
  width: 10px;
}

.signup-section.form-container::-webkit-scrollbar-track,
.login-section.form-container::-webkit-scrollbar-track {
  background: #F2F4FF;
  border-radius: 5px;
}

.signup-section.form-container::-webkit-scrollbar-thumb,
.login-section.form-container::-webkit-scrollbar-thumb {
  background-color: #EDAB1E;
  border-radius: 5px;
  border: 2px solid #F2F4FF; /* creates padding around thumb */
}

/* Optional: hover effect for better UX */
.signup-section.form-container::-webkit-scrollbar-thumb:hover,
.login-section.form-container::-webkit-scrollbar-thumb:hover {
  background-color: #d89600; /* slightly darker gold */
}

/* =========================
   Sidebar Active State
   ========================= */
.sidebar .button .sideBarIcon {
  filter: opacity(0.75) brightness(0) saturate(100%) invert(69%) sepia(77%) saturate(563%) hue-rotate(187deg) brightness(95%) contrast(100%);
  transition: filter 160ms ease, transform 120ms ease;
}

/* Hover hint */
.sidebar .button:hover .sideBarIcon {
  filter: opacity(1.0) brightness(0) saturate(100%) invert(69%) sepia(77%) saturate(563%) hue-rotate(187deg) brightness(95%) contrast(100%);
}

/* Make the active icon pop with a gold-ish tint */
.sidebar .button.active .sideBarIcon {
  /* Gold tint that matches #EDAB1E reasonably well */
  filter: brightness(0) saturate(100%) invert(69%) sepia(77%) saturate(563%) hue-rotate(355deg) brightness(95%) contrast(95%);
}

/* Active text emphasis (when expanded) */
.sidebar .button.active .sidebarLinkText {
  color: #EDAB1E;
  font-weight: 700;
}

/* Optional: subtle scale on active icon so it feels “selected” */
.sidebar .button.active .sideBarIcon {
  transform: translateZ(0) scale(1.04);
}


/* =========================================================
   Course Grid — Clean, static cards (5px radius, white bg)
   ========================================================= */

/* Grid layout */
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 6px 0 4px;
}
@media (max-width: 1100px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .course-grid { grid-template-columns: 1fr; } }

/* Card */
.course-card {
  display: grid;
  grid-template-rows: auto 1fr auto; /* media, body, actions */
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 2px 5px 12px rgba(33, 45, 101, 0.1);
  color: #484848;
  border: 1px solid rgba(33, 45, 101, 0.06); /* subtle edge to avoid “floating” */
  overflow: hidden;
}

/* Media (show full image, no crop, no weird lines) */
.course-media {
  position: relative;
  height: 160px;              /* adjust to taste (140–200) */
  background: #ffffff;
}
.course-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;        /* show the whole image */
  object-position: center;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
}

/* Body */
.course-body {
  padding: 14px 16px 8px 16px;
}
.course-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  line-height: 1.25;
  color: #2b2b2b;             /* slightly darker for headings */
}
.course-meta {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 8px;
}
.course-instructor::before { content: "👤 "; opacity: 0.8; }
.course-desc {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Actions — always visible */
.course-actions {
  padding: 12px 16px 16px 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

/* Primary action button */
.course-btn {
  --btnBg: var(--colorSecondary, #EDAB1E);
  background: var(--btnBg);
  color: #ffffff;
  border: none;
  border-radius: 5px;         /* as requested */
  padding: 10px 14px;
  min-width: 132px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-weight: 600;
  line-height: 1;
  transition: filter 120ms ease, transform 80ms ease, box-shadow 140ms ease;
  cursor: pointer;
}

/* Hover/focus states for better UX without card animation */
.course-btn:hover { filter: brightness(1.05); }
.course-btn:active { transform: translateY(0); filter: brightness(0.98); }
.course-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px var(--btnBg);
}

/* Disabled “Already Enrolled” */
.course-btn.enrolled,
.course-btn:disabled {
  background: #c9c9c9;        /* neutral disabled look */
  color: #ffffff;
  cursor: default;
  filter: none;
  box-shadow: none;
  opacity: 1;                 /* keep readable */
}

/* Empty state */
.no-courses {
  color: #484848;
  text-align: center;
  opacity: 0.9;
  padding: 18px 0;
}

/* Safety overrides in case older styles tried to hide buttons or add borders */
.course-card .course-actions,
.course-card .course-btn {
  opacity: 1 !important;
  visibility: visible !important;
}
.course-media,
.course-media img {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/* =========================================================
   Make course buttons ALWAYS visible + reset legacy styles
   ========================================================= */

/* Ensure the actions row is visible and has layout */
.course-card .course-actions {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 12px 16px 16px 16px !important;

  /* Kill any reveal-on-hover patterns */
  opacity: 1 !important;
  visibility: visible !important;
  height: auto !important;
  transform: none !important;
  pointer-events: auto !important;
}

/* Some themes set buttons to transparent/hidden by default.
   Reset ONLY inside course cards. Works for <a> and <button>. */
.course-card .button-beveled.course-btn,
.course-card a.course-btn,
.course-card button.course-btn {
  /* Hard reset common offenders */
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
  transform: none !important;
  box-shadow: none;            /* we'll add our own if needed */
  text-decoration: none !important;

  /* Make sure they actually render as buttons */
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;

  /* Your requested look */
  background: var(--colorSecondary, #EDAB1E) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 5px !important;
  padding: 10px 14px !important;
  min-width: 132px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
}

/* Hover/focus—kept subtle, no card animation */
.course-card .course-btn:hover { filter: brightness(1.05) !important; }
.course-card .course-btn:active { filter: brightness(0.98) !important; }
.course-card .course-btn:focus-visible {
  outline: none !important;
  box-shadow:
    0 0 0 2px #ffffff,
    0 0 0 4px var(--colorSecondary, #EDAB1E) !important;
}

/* Disabled / Already Enrolled */
.course-card .course-btn.enrolled,
.course-card .course-btn:disabled {
  background: #c9c9c9 !important;
  color: #ffffff !important;
  cursor: default !important;
  filter: none !important;
  box-shadow: none !important;
}

/* In case something up the chain is hiding the entire footer on hover */
.course-card:hover .course-actions {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

/* Just in case a very specific rule set display:none inline */
.course-card .course-actions[style*="display:none"] {
  display: flex !important;
}

/* =========================================================
   Remove stray 1–2px lines around images (from global styles)
   ========================================================= */
.course-media {
  border: none !important;
  background: #ffffff;    /* white behind contain-fit images */
}
.course-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;    /* show whole image */
  object-position: center;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Secondary text line under the title (instructor) */
.beveled-box-subtext {
  position: absolute;
  left: calc(var(--cardWidth) * 0.0259);
  top:  calc(var(--cardWidth) * 0.455);        /* just below the title */
  width: calc(var(--cardWidth) * 0.94);
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: calc(var(--cardWidth) * 0.040);   /* slightly smaller than title */
  color: #484848;
  line-height: 1.2;
  opacity: 0.9;
}

/* Short description block (stays clear of bottom button) */
.beveled-box-desc {
  position: absolute;
  left: calc(var(--cardWidth) * 0.0259);
  top:  calc(var(--cardWidth) * 0.515);
  width: calc(var(--cardWidth) * 0.94);
  font-family: Roboto, sans-serif;
  font-weight: 300;
  font-size: calc(var(--cardWidth) * 0.040);
  color: #484848;
  line-height: 1.25;

  /* Prevent overlap with button */
  bottom: calc(var(--cardWidth) * 0.18);   /* reserve space at bottom */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;   /* keep to max 3 lines */
  -webkit-box-orient: vertical;
}


/* Optional: a gentle hover on the gold button (keeps continuity) */
.beveled-box-wrapper .button-beveled:hover:not([disabled]) {
  filter: brightness(1.05);
}

.button-disabled {
  opacity: 0.5;
  cursor: pointer;

}

/* Place actions neatly at the bottom inside beveled cards */
.beveled-box-actions {
  position: absolute;
  left: calc(var(--cardWidth) * 0.026);
  right: calc(var(--cardWidth) * 0.026);
  bottom: calc(var(--cardWidth) * 0.04);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

/* Subtext (instructor) — sits under the title */
.beveled-box-subtext {
  position: absolute;
  left: calc(var(--cardWidth) * 0.026);
  top: calc(var(--cardWidth) * 0.455);   /* tuned to follow your title slot */
  width: calc(var(--cardWidth) * 0.94);
  font-family: Roboto, sans-serif;
  font-weight: 400;
  font-size: calc(var(--cardWidth) * 0.040);
  color: #484848;
  line-height: 1.2;
  opacity: 0.9;
}

/* “Ghost” secondary button to pair with gold primary */
.button-beveled.beveled-ghost {
  background: transparent;
  color: #484848;
  border: 1px solid rgba(33,45,101,0.15);
  border-radius: 5px;
  padding: 10px 14px;
}
.button-beveled.beveled-ghost:hover {
  filter: none;
  background: rgba(33,45,101,0.06);
}

/* Modal styling to keep brand feel */
.beveled-modal {
  border-radius: 10px;
  box-shadow: 2px 5px 18px rgba(33,45,101,0.18);
}
.course-modal-media {
  width: 100%;
  height: 180px;
  background-size: contain;   /* show full image in modal */
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 6px;
  margin-bottom: 12px;
  background-color: #fff;
}
.course-modal-meta {
  font-size: 14px;
  color: #484848;
  margin-bottom: 8px;
}
.course-modal-desc {
  color: #484848;
  margin: 0;
}

/* Keep primary beveled button consistent */
.beveled-box-actions .button-beveled:not(.beveled-ghost) {
  background: var(--colorSecondary, #EDAB1E);
  color: #fff;
  border-radius: 5px;
  padding: 10px 14px;
  border: none;
}
.beveled-box-actions .button-beveled[disabled] {
  background: #c9c9c9;
  color: #fff;
  cursor: default;
}

/* Actions container spans full bottom of card */
.beveled-box-actions {
  position: absolute;
  left: calc(var(--cardWidth) * 0.026);
  right: calc(var(--cardWidth) * 0.026);
  bottom: calc(var(--cardWidth) * 0.04);
  display: flex;
  justify-content: space-between; /* left + right split */
  align-items: center;
  gap: 10px;
}

/* Ghost details button (bottom-left) */
.beveled-box-actions-left .button-beveled.beveled-ghost {
  background: transparent;
  color: #484848;
  border: 1px solid rgba(33,45,101,0.15);
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 14px;
}
.beveled-box-actions-left .button-beveled.beveled-ghost:hover {
  background: rgba(33,45,101,0.06);
}

/* Enroll button (bottom-right) */
.beveled-box-actions-right .button-beveled {
  background: var(--colorSecondary, #EDAB1E);
  color: #fff;
  border-radius: 5px;
  padding: 10px 14px;
  min-width: 128px;
  text-align: center;
}
.beveled-box-actions-right .button-beveled[disabled] {
  background: #c9c9c9;
  cursor: default;
}

/* =========================================================
   Fix overlap: reset legacy absolute button + set stacking
   ========================================================= */

/* 1) Make sure the card is a stacking context we can control */
.beveled-box-wrapper { position: relative; }

/* 2) Our actions bar spans the bottom and sits on top */
.beveled-box-actions {
  position: absolute;
  left: calc(var(--cardWidth) * 0.026);
  right: calc(var(--cardWidth) * 0.026);
  bottom: calc(var(--cardWidth) * 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 20; /* <-- above any legacy button */
}

/* 3) Nuke the old absolute positioning JUST in this block */
.beveled-box-actions .button-beveled,
.beveled-box-actions a,
.beveled-box-actions a .button-beveled {
  position: static !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  top: auto !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  z-index: 21; /* above the container just in case */
}

/* 4) Keep the ghost “Details” button on the left looking right */
.beveled-box-actions-left .button-beveled.beveled-ghost {
  background: transparent;
  color: #484848;
  border: 1px solid rgba(33,45,101,0.15);
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 14px;
}
.beveled-box-actions-left .button-beveled.beveled-ghost:hover {
  background: rgba(33,45,101,0.06);
}

/* 5) Primary Enroll on the right */
.beveled-box-actions-right .button-beveled {
  background: var(--colorSecondary, #EDAB1E);
  color: #fff;
  border-radius: 5px;
  padding: 10px 14px;
  min-width: 128px;
  text-align: center;
  border: none;
}
.beveled-box-actions-right .button-beveled[disabled] {
  background: #c9c9c9;
  cursor: default;
}

/* 6) If your legacy CSS positions *any* .button-beveled in these cards,
      this catch-all ensures they won't cover the left side */
.beveled-box-wrapper > .button-beveled {
  position: static !important;
}
.beveled-box-wrapper > a.button-beveled,
.beveled-box-wrapper > a > .button-beveled {
  position: static !important;
}

/* 7) Make sure the image layer isn't sitting above actions */
.imgtest { z-index: 1; }

/* Actions container spans full bottom of card */
.beveled-box-actions {
  position: absolute;
  left: calc(var(--cardWidth) * 0.026);
  right: calc(var(--cardWidth) * 0.026);
  bottom: calc(var(--cardWidth) * 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 20;
}

/* Reset any legacy absolute-positioned buttons inside actions */
.beveled-box-actions .button-beveled,
.beveled-box-actions a,
.beveled-box-actions a .button-beveled {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: none;
}

/* Right-side “Details” primary button (gold) */
.beveled-box-actions-right .button-beveled {
  background: var(--colorSecondary, #EDAB1E);
  color: #fff;
  border-radius: 5px;
  padding: 10px 14px;
  min-width: 128px;
  text-align: center;
  font-weight: 600;
}
.beveled-box-actions-right .button-beveled:hover {
  filter: brightness(1.05);
}

/* Left-side enrolled check indicator */
.enrolled-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 5px;
  color: #1f7a1f;               /* green-ish */
  font-size: 18px;
  line-height: 1;
}
.enrolled-check:hover {
  cursor: default;
}

/* Ensure image and layers don’t cover actions */
.beveled-box-wrapper { position: relative; }
.imgtest { z-index: 1; }

/* Default Details button (gold for not enrolled) */
.details-default {
  background: var(--colorSecondary, #EDAB1E);
  color: #fff;
}
.details-default:hover {
  filter: brightness(1.05);
}

/* Enrolled Details button (blue for enrolled) */
.details-enrolled {
  background: #d7dcfd !important;
  color: #484848 !important;
}
.details-enrolled:hover {
  filter: brightness(1.08);
}

/* =========================================================
   Scope fixes so ONLY the Available Courses cards are reset
   ========================================================= */

/* Courses page (Available Courses) — keep our split actions bar */
#section-courses .beveled-box-wrapper { position: relative; }

#section-courses .beveled-box-actions {
  position: absolute;
  left: calc(var(--cardWidth) * 0.026);
  right: calc(var(--cardWidth) * 0.026);
  bottom: calc(var(--cardWidth) * 0.04);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 20;
}

#section-courses .beveled-box-actions .button-beveled,
#section-courses .beveled-box-actions a,
#section-courses .beveled-box-actions a .button-beveled {
  position: static !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  z-index: 21;
}

/* Right-side Details button colors */
#section-courses .details-default { background: var(--colorSecondary, #EDAB1E); color: #fff; }
#section-courses .details-default:hover { filter: brightness(1.05); }
#section-courses .details-enrolled { background: var(--colorPrimary, #212D65); color: #fff; }
#section-courses .details-enrolled:hover { filter: brightness(1.08); }

/* Left enrolled check */
#section-courses .enrolled-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 5px;
  color: #1f7a1f;
  font-size: 18px; line-height: 1;
}

/* =========================================================
   Restore original behavior for Continue Learning (Dashboard)
   ========================================================= */

/* If the global “position: static !important;” leaked,
   force the dashboard buttons back to absolute in their cards. */
#section-dashboard .beveled-box-wrapper { position: relative; }

#section-dashboard .beveled-box-wrapper > .button-beveled,
#section-dashboard .beveled-box-wrapper > a.button-beveled,
#section-dashboard .beveled-box-wrapper > a > .button-beveled {
  position: absolute !important;
  right: calc(var(--cardWidth) * 0.026) !important;
  bottom: calc(var(--cardWidth) * 0.025) !important;
  z-index: 15;
  border-radius: 5px;
}

.unknown-progress {
  position: absolute !important;
  right: calc(var(--cardWidth) * 0.026) !important;
  bottom: calc(var(--cardWidth) * 0.025) !important;
  z-index: 15;
  border-radius: 5px;
}



/* Available Courses — Compact Search Bar */
#section-courses .course-searchbar {
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 2px 5px 12px rgba(33, 45, 101, 0.08);
  padding: 5px;
  margin: 18px 0px 0px 0px;
  max-width: 260px;
  height: 50px;
  font-family: Roboto, sans-serif;
}

#section-courses #courseSearchInput {
  background: #F2F4FF;
  color: #484848;
  border: 1px solid rgba(33,45,101,0.15);
  border-radius: 3px;
  padding: 6px 8px;         /* slimmer padding */
  height: 40px;
  outline: none;
  min-width: 250px;
  font-size: 14px;
  font-family: Roboto, sans-serif; /* simpler, cleaner font */
  position: absolute;
}

#section-courses #courseSearchInput::placeholder {
  color: #8B92B6;
}

#section-courses #courseSearchInput:focus {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px rgba(33,45,101,0.18);
  border-color: rgba(33,45,101,0.35);
}

#section-courses .course-search-empty {
  color: #484848;
  background: #fff;
  border: 1px dashed rgba(33,45,101,0.2);
  border-radius: 5px;
  padding: 8px 10px;
  margin: 6px auto 10px;
  max-width: 340px;
  font-family: Roboto, sans-serif;
  font-size: 14px;
  text-align: center;
}

/* =========================
   Support Centre (beveled style)
   ========================= */
#section-support .support-card {
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 2px 5px 12px rgba(33, 45, 101, 0.1);
  border: 1px solid rgba(33,45,101,0.06);
  color: #484848;
  font-family: Roboto, sans-serif;
  overflow: hidden;
}

/* Header strip */
#section-support .support-card-head {
  padding: 14px 16px 12px 16px;
  border-bottom: 1px solid rgba(33,45,101,0.08);
  background: linear-gradient(0deg, rgba(33,45,101,0.03), rgba(33,45,101,0.03));
}
#section-support .support-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #2b2b2b;
  margin: 0 0 2px 0;
}
#section-support .support-card-sub {
  font-size: 13px;
  opacity: 0.85;
}

/* Form layout */
#section-support .support-form {
  padding: 16px;
}
#section-support .support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
@media (max-width: 900px) {
  #section-support .support-grid { grid-template-columns: 1fr; }
}

#section-support .support-col {
  display: grid;
  gap: 10px;
}

/* Inputs */
#section-support .support-label {
  font-size: 13px;
  color: #2b2b2b;
  font-weight: 600;
}
#section-support .support-input {
  background: #F2F4FF;
  color: #484848;
  border: 1px solid rgba(33,45,101,0.15);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  width: 100%;
}
#section-support .support-input::placeholder { color: #8B92B6; }

/* Disabled fields keep the same look but dimmed */
#section-support .support-input:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Textarea */
#section-support .support-textarea {
  min-height: 150px;
  resize: vertical;
}

.alert-box {
  margin: 16px;
}

/* Actions */
#section-support .support-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.submit-normal {
  border-radius: 5px;
  border: none;
  font-weight: 700;
  position: relative;
  width: calc(var(--cardWidth) * 0.361);
  height: calc(var(--cardWidth) * 0.1194);
  font-weight: bold;
  text-align: center;
  line-height: calc(var(--cardWidth) * 0.1194);
  font-family: Orbitron, sans-serif;
  font-size: calc(var(--cardWidth) * 0.037);
  color: #FFFFFF;
  background-color: #EDAB1E;
}

.submit-normal:hover { filter: brightness(1.05); }

.close-normal {
  border-radius: 5px;
  border: none;
  font-weight: 700;
  position: relative;
  width: calc(var(--cardWidth) * 0.311);
  height: calc(var(--cardWidth) * 0.1144);
  font-weight: bold;
  text-align: center;
  line-height: calc(var(--cardWidth) * 0.1144);
  font-family: Orbitron, sans-serif;
  font-size: calc(var(--cardWidth) * 0.037);
  color: #6c757d;
  background-color: #ffffff;
  transition: all 100ms ease-out;
  border: calc(var(--cardWidth) * 0.0050) solid #6c757d;

}

.close-normal:hover {
  background-color: #6c757d;
  color: #ffffff;
}


/* Make sure Bootstrap .form-control styles don’t override ours */
#section-support .support-input,
#section-support .support-textarea {
  box-shadow: none !important;
}
#section-support select.support-input {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8B92B6 50%),
    linear-gradient(135deg, #8B92B6 50%, transparent 50%);
  background-position:
    calc(100% - 18px) center,
    calc(100% - 12px) center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 30px; /* room for the caret */
}
#section-support select.support-input:focus {
  border-color: rgba(33,45,101,0.35);
  box-shadow: 0 0 0 3px rgba(33,45,101,0.18);
}
#section-support .support-input:focus {
  border-color: rgba(33,45,101,0.35);
  box-shadow: 0 0 0 3px rgba(33,45,101,0.18);
}

/* =========================
   Profile Settings (beveled style)
   ========================= */
#section-profile .profile-card {
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 2px 5px 12px rgba(33, 45, 101, 0.1);
  border: 1px solid rgba(33, 45, 101, 0.06);
  color: #484848;
  font-family: Roboto, sans-serif;
  overflow: hidden;
  margin-bottom: 16px;
}

/* Header */
#section-profile .profile-card-head {
  padding: 14px 16px 12px 16px;
  border-bottom: 1px solid rgba(33, 45, 101, 0.08);
  background: linear-gradient(0deg, rgba(33, 45, 101, 0.03), rgba(33, 45, 101, 0.03));
}
#section-profile .profile-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #2b2b2b;
  margin: 0 0 2px 0;
}
#section-profile .profile-card-sub {
  font-size: 13px;
  opacity: 0.85;
}

/* Form layout */
#section-profile .profile-form {
  padding: 16px;
}
#section-profile .profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
}
@media (max-width: 900px) {
  #section-profile .profile-grid {
    grid-template-columns: 1fr;
  }
}

#section-profile .profile-col {
  display: grid;
  gap: 10px;
}

#section-profile .profile-label {
  font-size: 13px;
  color: #2b2b2b;
  font-weight: 600;
}

/* Inputs */
#section-profile .profile-input {
  background: #F2F4FF;
  color: #484848;
  border: 1px solid rgba(33, 45, 101, 0.15);
  border-radius: 5px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  width: 100%;
  box-shadow: none;
}
#section-profile .profile-input::placeholder {
  color: #8B92B6;
}
#section-profile .profile-input:focus {
  border-color: rgba(33, 45, 101, 0.35);
  box-shadow: 0 0 0 3px rgba(33, 45, 101, 0.18);
}

/* Color pickers */
#section-profile .profile-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-top: 6px;
}
@media (max-width: 900px) {
  #section-profile .profile-colors {
    grid-template-columns: 1fr;
  }
}
#section-profile .profile-color {
  display: grid;
  gap: 8px;
}
#section-profile .profile-color-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}
#section-profile .profile-color-input {
  width: 44px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(33, 45, 101, 0.15);
  border-radius: 5px;
  background: #fff;
}
#section-profile .profile-color-code {
  background: #F2F4FF;
  color: #484848;
  border: 1px solid rgba(33, 45, 101, 0.15);
  border-radius: 5px;
  padding: 8px 10px;
  font-family: Roboto, monospace;
  font-size: 14px;
}

/* Actions */
#section-profile .profile-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}
#section-profile .profile-submit {
  background: var(--colorSecondary, #EDAB1E);
  color: #fff;
  border-radius: 5px;
  padding: 10px 16px;
  border: none;
  font-weight: 700;
}
#section-profile .profile-submit:hover {
  filter: brightness(1.05);
}

/* ID Upload */
#section-profile .profile-upload {
  display: grid;
  gap: 12px;
}
#section-profile .profile-file {
  background: #fff;
  border-radius: 5px;
}

/* Make sure Bootstrap defaults don't fight our styles */
#section-profile .profile-input,
#section-profile .profile-file {
  box-shadow: none !important;
}

/* Stop the old hover panel from popping; the modal handles details now */
.infoRightCon .infoRightText { display: none !important; }

/* Beveled modal look to match your UI */
.beveled-modal {
  border-radius: 8px;
  box-shadow: 2px 5px 18px rgba(33,45,101,0.18);
  overflow: hidden;
}
.beveled-modal .modal-header {
  border-bottom: 1px solid rgba(33,45,101,0.08);
  background: linear-gradient(0deg, rgba(33,45,101,0.03), rgba(33,45,101,0.03));
}

/* Modal body layout */
.profile-modal-body {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 720px) {
  .profile-modal-body { grid-template-columns: 1fr; }
}

/* Big photo */
.profile-modal-photo {
  display: grid;
  place-items: center;
}
.profile-modal-photo img {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 2px 5px 12px rgba(33,45,101,0.12);
}

/* Info stack */
.profile-modal-info {
  display: grid;
  gap: 10px;
  color: #484848;
  font-family: Roboto, sans-serif;
}
.profile-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
}
.profile-row .label {
  font-weight: 700;
  color: #2b2b2b;
}
.profile-row .value {
  word-break: break-word;
}

.pfpIconView {
  width: 78px;
  height: 78px;
  background-color: red;
  z-index: 200000000000000000000000000000000000000;
}
