/* ===========================================================
   Hub H2 – Layout & color charter
   =========================================================== */

/* ==========================================================
   Variables (CSS custom properties for the brand palette)
   ========================================================== */
:root {
  --hub-dark:     #1F6469;   /* icon nav + header background  */
  --hub-icon:     #1F6469;   /* icon color on white nav       */
  --hub-teal:     #00bc8c;   /* brand accent / active state   */
  --hub-teal-mid: #007265;   /* medium teal                   */
  --hub-green:    #53ca61;   /* positive accent               */
  --hub-white:    #FFF;   /* positive accent               */
  --hub-sidebar-w: 104px;     /* icon nav width                */
}



/* ==========================================================
   1. Global flex wrapper
   ========================================================== */
.container_espace {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-box-align: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
  min-height: 100vh;
  flex-direction: column;
}

/* ==========================================================
   2. Icon navigation (far-left column)
   ========================================================== */
.nav_icon_left {
  background: #fff;
  width: var(--hub-sidebar-w);
  min-width: var(--hub-sidebar-w);
  -ms-flex-negative: 0;
  flex-shrink: 0;
  min-height: 100vh;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 120;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border-right: #E5E6DC 1px solid;
  /* no overflow hidden – flyout must overflow to the right */
}

/* --- Logo area --- */
.nav_icon_left .nav_logo_wrap {
  width: 100%;
  padding: 12px 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 6px;
}
.nav_icon_left .nav_logo_link { display: block; }
.nav_icon_left .nav_logo_img  { max-width: 54px; height: auto; display: block; }

/* --- Menu list --- */
.nav_icon_left .menu_icon_list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

/* Each icon item is the positioned parent for the flyout */
.nav_icon_left .menu_icon_list .icon_item {
  position: relative;
  width: 100%;
}

/* Base link style */
.nav_icon_left .menu_icon_list .icon_item a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  padding: 12px 6px 10px;
  color: rgba(31, 100, 105, 0.65);
  text-decoration: none;
  -webkit-transition: color 0.2s ease;
  -o-transition: color 0.2s ease;
  transition: color 0.2s ease;
  width: 100%;
}
.nav_icon_left .menu_icon_list .icon_item a:hover {
  color: var(--hub-dark);
  text-decoration: none;
}

/* Icon box */
.nav_icon_left .menu_icon_list .icon_item a .icon_nav {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--hub-icon);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 5px;
  -webkit-transition: background 0.2s ease, color 0.2s ease;
  -o-transition: background 0.2s ease, color 0.2s ease;
  transition: background 0.2s ease, color 0.2s ease;
  border: 1px solid rgba(31, 100, 105, 0.12);
  background: rgba(31, 100, 105, 0.07);
}

/* Hover: slightly darker box */
.nav_icon_left .menu_icon_list .icon_item a:hover .icon_nav {
  background: rgba(31, 100, 105, 0.14);
  color: var(--hub-dark);
}

/* Active: solid teal box */
.nav_icon_left .menu_icon_list .icon_item.active a {
  color: var(--hub-dark);
}
.nav_icon_left .menu_icon_list .icon_item.active a .icon_nav {
  background: var(--hub-dark);
  color: #ffffff;
  -webkit-box-shadow: 0 4px 12px rgba(0, 188, 140, 0.35);
          box-shadow: 0 4px 12px rgba(0, 188, 140, 0.35);
}

/* Label below icon */
.nav_icon_left .menu_icon_list .icon_item a .label_nav {
  font-size: 0.59rem;
  text-align: center;
  line-height: 1.25;
  display: block;
  font-family: 'Roboto-Medium', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  word-break: break-word;
  max-width: 70px;
    color: var(--hub-dark);
}

/* ==========================================================
   3. Hover flyout panel
   ========================================================== */
.icon_flyout {
  position: absolute;
  left: var(--hub-sidebar-w);
  top: 0;
  width: 215px;
  background: #ffffff;
  border-left: 3px solid #1F6469;
  -webkit-box-shadow: 4px 6px 20px rgba(0, 0, 0, 0.18);
          box-shadow: 4px 6px 20px rgba(0, 0, 0, 0.18);
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transform: translateX(-8px);
      -ms-transform: translateX(-8px);
          transform: translateX(-8px);
  -webkit-transition: opacity 0.18s ease, -webkit-transform 0.18s ease, visibility 0.18s;
          transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav_icon_left .menu_icon_list .icon_item:hover .icon_flyout {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -webkit-transform: translateX(0);
      -ms-transform: translateX(0);
          transform: translateX(0);
}

/* Transparent bridge prevents hover loss between nav edge and flyout */
.icon_flyout::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  width: 10px;
  height: 100%;
}

/* Flyout header */
.icon_flyout .flyout_title {
  background: #1F6469;
  color: #ffffff;
  padding: 13px 16px 11px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3px;
}

/* Flyout list */
.icon_flyout .flyout_list { list-style: none; padding: 0; margin: 0; }

.icon_flyout .flyout_list .flyout_item a {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: #484848;
  font-family: 'Roboto-Medium', sans-serif;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  border-left: 3px solid transparent;
  -webkit-transition: all 0.15s ease;
       -o-transition: all 0.15s ease;
          transition: all 0.15s ease;
  text-decoration: none;
}
.icon_flyout .flyout_list .flyout_item a:hover,
.icon_flyout .flyout_list .flyout_item a.active {
  color: #1F6469;
  background: rgba(31, 100, 105, 0.07);
  border-left-color: #1F6469;
  text-decoration: none;
}
.icon_flyout .flyout_list .flyout_item:last-child a { border-bottom: none; }

/* ==========================================================
   4. Secondary sidebar (fixed_left_col) — white panel
   ========================================================== */
.fixed_left_col {
  float: none !important;
  width: 210px !important;
  min-width: 210px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  background: #fff !important;
  background-image: none !important;
  border-right: 1px solid #e8e3de;
}

/* Section title */
.fixed_left_col .title_fixed_left_col {
  color: #00383C !important;
  font-size: 0.92rem !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  padding: 1.1rem 1rem 0.85rem !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid #e0dbd5;
  opacity: 1 !important;
}

/* Sub-menu items */
.fixed_left_col .menu_left_col {
  margin-top: 0 !important;
  padding: 6px 8px 6px 0;
}
.fixed_left_col .menu_left_col .item a {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
  -webkit-box-align: center !important;
  -ms-flex-align: center !important;
  align-items: center !important;
  gap: 10px;
  color: #3a4a4b !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 9px 14px 9px 12px !important;

  background: transparent ;
  -webkit-transition: all 0.15s ease;
       -o-transition: all 0.15s ease;
          transition: all 0.15s ease;
  word-break: normal;
}
.fixed_left_col .menu_left_col .item a:hover {

border-radius: 0 24px 24px 0;
background: rgba(45, 255, 228, 0.10);
  text-decoration: none;
}
.fixed_left_col .menu_left_col .item a.active {

border-radius: 0 24px 24px 0;
background: rgba(45, 255, 228, 0.10);
  font-weight: 700;
}
/* Kill the old ::before indicator bar */
.fixed_left_col .menu_left_col .item a::before { display: none !important; }
.fixed_left_col .menu_left_col .item:last-child a { border-bottom: none !important; }

/* Small icon box inside sidebar items */
.sidebar_icon_box {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 6px;
  background: rgba(0, 56, 60, 0.06);
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 0.8rem;
  color: #8893a1;
  -webkit-transition: all 0.15s ease;
       -o-transition: all 0.15s ease;
          transition: all 0.15s ease;
  flex-shrink: 0;
}
.fixed_left_col .menu_left_col .item a:hover .sidebar_icon_box,
.fixed_left_col .menu_left_col .item a.active .sidebar_icon_box {
  background: transparent;
  color: #1F6469;
}

/* ==========================================================
   5. Wrap content — flex remainder
   ========================================================== */
.wrap_content {
  float: none !important;
  width: auto !important;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

/* ==========================================================
   6. Header — dark teal background
   ========================================================== */
#header {
  background: var(--hub-dark) !important;
  border-bottom: none !important;
  padding: 0.55rem 1.25rem 0.55rem 1rem !important;
}

/* Hide logo (it's in the icon nav) */
#header .h1_logo { display: none !important; }

/* Profile section */
#header .container_profile_top {
  margin-right: 0.75rem;
  margin-left: 0.75rem;
}
#header .container_profile_top .elems_profile {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  cursor: pointer;
}
#header .container_profile_top .content_my_profile {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 0;
  margin-left: 0.6rem;
  margin-right: 0.5rem;
  line-height: 1.3;
}
#header .container_profile_top .content_my_profile .user_role_label {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: 'Roboto-Bold', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#header .container_profile_top .content_my_profile .user_name_label {
  font-size: 0.82rem;
  color: #ffffff;
  font-family: 'Roboto-Medium', sans-serif;
  white-space: nowrap;
  overflow: hidden;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  max-width: 160px;
}
#header .container_profile_top .elems_profile .oval_user {
  color: rgba(255, 255, 255, 0.6);
  line-height: 1;
}

/* Avatar border on dark bg */
#header .container_profile_top .elems_profile .avatar_user .img_avatar {
  border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Notification / action icons */
#header .container_search_notif {
  margin-top: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
#header .container_search_notif .picto_notif {
  color: rgba(255, 255, 255, 0.8);
}
#header .container_search_notif .picto_notif:hover {
  color: #ffffff;
}
/* Make chat + bell round teal buttons */
#header .container_search_notif .picto_notif.btn_round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: -webkit-linear-gradient(top, #05b4a0 0%, #029786 100%);
  background:         linear-gradient(to bottom, #05b4a0 0%, #029786 100%);
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 1rem;
  color: #ffffff;
  margin: 0 5px;
  position: relative;
}
#header .container_search_notif .picto_notif.btn_round .nbr_notif {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  font-size: 0.65rem;
}

/* Search field on dark bg */
#header .container_search_notif .form_search_header .input_search_header {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
#header .container_search_notif .form_search_header .input_search_header::-webkit-input-placeholder { color: rgba(255,255,255,0.5); }
#header .container_search_notif .form_search_header .input_search_header::-moz-placeholder          { color: rgba(255,255,255,0.5); }
#header .container_search_notif .form_search_header .input_search_header:-ms-input-placeholder       { color: rgba(255,255,255,0.5); }

/* ==========================================================
   7. Responsive — stack on mobile
   ========================================================== */
@media (max-width: 767.98px) {
  .container_espace { display: block; }
  /* Hide left icon nav — replaced by bottom nav bar */
  .nav_icon_left { display: none !important; }
  .icon_flyout { display: none !important; }
  /* Hide secondary sidebar on mobile */
  .fixed_left_col { display: none !important; }
  /* Content fills full width */
  .wrap_content { width: 100% !important; }
  /* Bottom padding so content clears the bottom nav */
  .body_content_wrapper { padding-bottom: 68px; }
  /* Profile section: no left margin on mobile (icon nav already hidden) */
  #header .container_profile_top { margin-left: 0; }
}

/* ==========================================================
   Mobile bottom navigation bar
   ========================================================== */
.mobile_bottom_nav { display: none; }

@media (max-width: 767.98px) {
  .mobile_bottom_nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #E5E6DC;
    z-index: 1050;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
  }

  .mobile_bottom_nav .mbn_item {
    -webkit-box-flex: 1; -ms-flex: 1; flex: 1;
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-orient: vertical; -webkit-box-direction: normal;
    -ms-flex-direction: column; flex-direction: column;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
    padding: 8px 4px 6px;
    text-decoration: none;
    color: #8893a1;
    gap: 3px;
  }

  .mobile_bottom_nav .mbn_item:hover { text-decoration: none; }

  .mobile_bottom_nav .mbn_item .mbn_icon {
    width: 44px;
    height: 26px;
    display: -webkit-box; display: -ms-flexbox; display: flex;
    -webkit-box-align: center; -ms-flex-align: center; align-items: center;
    -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center;
    font-size: 1.25rem;
    border-radius: 14px;
    transition: background 0.15s ease;
  }

  .mobile_bottom_nav .mbn_item.active .mbn_icon {
    background: #1F6469;
    color: #ffffff;
  }

  .mobile_bottom_nav .mbn_item.active { color: #1F6469; }

  .mobile_bottom_nav .mbn_item .mbn_label {
    font-size: 0.58rem;
    font-family: 'Roboto', sans-serif;
    text-transform: capitalize;
    letter-spacing: 0.2px;
    line-height: 1;
    white-space: nowrap;
  }
}

/* ==========================================================
   FORUM MODULE
   ========================================================== */

/* --- Variables --- */
:root {
  --forum-primary: #1a7f6e;
  --forum-primary-light: #e8f5f2;
  --forum-accent: #e07535;
  --forum-text: #2d3748;
  --forum-muted: #718096;
  --forum-border: #e2e8f0;
  --forum-card-bg: #ffffff;
  --forum-tag-color: #1a7f6e;
  --forum-radius: 12px;
  --forum-shadow: 0 2px 12px rgba(0,0,0,.07);
}

/* ---- Index: page header ---- */
.forum_page_header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.forum_page_title { font-size: 1.6rem; font-weight: 700; color: var(--forum-text); margin: 0; }

/* ---- Search box ---- */
.forum_search_form { flex: 1; max-width: 380px; }
.forum_search_box {
  display: flex; align-items: center; background: #fff;
  border: 1.5px solid var(--forum-border); border-radius: 30px;
  padding: 8px 16px; gap: 8px;
}
.forum_search_box i { color: var(--forum-muted); }
.forum_search_input { border: none; outline: none; flex: 1; font-size: .95rem; background: transparent; }

/* ---- Category filter pills ---- */
.forum_categories_filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.forum_cat_pill {
  padding: 6px 16px; border-radius: 20px; font-size: .85rem; font-weight: 500;
  border: 1.5px solid var(--forum-border); color: var(--forum-muted);
  background: #fff; cursor: pointer; text-decoration: none; transition: all .2s;
}
.forum_cat_pill:hover, .forum_cat_pill.active {
  background: var(--forum-primary); color: #fff; border-color: var(--forum-primary);
}

/* ---- Forum grid ---- */
.forum_grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 768px) { .forum_grid { grid-template-columns: 1fr; } }

/* ---- Forum card ---- */
.forum_card {
  background: var(--forum-card-bg); border-radius: var(--forum-radius);
  padding: 22px 24px; box-shadow: var(--forum-shadow);
  border: 1px solid var(--forum-border); display: flex; flex-direction: column; gap: 12px;
  transition: box-shadow .2s;
}
.forum_card:hover { box-shadow: 0 6px 24px rgba(0,0,0,.12); }

/* ---- Avatars ---- */
.forum_card_avatars { display: flex; }
.forum_avatar_sm {
  width: 36px !important; height: 36px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; margin-left: -10px; box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.forum_avatar_sm:first-child { margin-left: 0; }
.forum_avatar_placeholder {
  background: var(--forum-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
.forum_avatar_md {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.15); flex-shrink: 0;
}


.forum_card_title a:hover { text-decoration: underline; }
.forum_card_desc { font-size: .9rem; color: var(--forum-muted); margin: 0; line-height: 1.5;

color: #1F6469;
font-family: 'Roboto', sans-serif;
font-size: 15px;
font-style: normal;
font-weight: 400;
line-height: normal;}

/* ---- Tags ---- */
.forum_card_tags { display: flex; flex-wrap: wrap; gap: 6px; }
.forum_show_tag {
  display: inline-block; color: #1F6469;
  padding: 5px 14px; border-radius: 20px; font-size: .83rem; font-weight: 500;
  border: 0px solid #d0d0d0;
  border-radius: 4px;
  padding: 8px 12px;
justify-content: center;
align-items: center;
gap: 8px;
background: rgba(55, 179, 163, 0.20);
}

/* ---- Card footer stats ---- */
.forum_card_footer { display: flex; gap: 16px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--forum-border);
color:  #3B5756;
font-family: 'Roboto', sans-serif;
font-size: 14px;
font-style: normal;
font-weight: 500;
line-height: normal;

}



.forum_stat { font-size: .82rem; color: var(--forum-muted); display: flex; align-items: center; gap: 5px; }

/* ---- Empty state ---- */
.forum_empty { text-align: center; color: var(--forum-muted); padding: 40px 0; font-size: 1rem; }

/* ---- Modal overrides ---- */
.modal .forum_select2_mentors { width: 100% !important; }
.select2-container--open { z-index: 9999 !important; }

/* ===== SHOW PAGE ===== */

/* ---- Hero banner (light beige) ---- */
.forum_show_hero {
  display: flex; align-items: flex-start; justify-content: space-between;
  background: #f8f4ef;
   padding: 40px 44px; margin-bottom: 28px;
  overflow: hidden; position: relative; min-height: 220px; gap: 24px;
  background-color: #E5E6DC;
}
.forum_show_hero_content { flex: 1; }
.forum_show_category {
  display: block; color: var(--forum-accent);
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  margin-bottom: 10px; letter-spacing: .05em;
}

.forum_show_desc ul, .forum_show_desc ol { padding-left: 18px; margin: 8px 0 0; }
.forum_show_desc li { margin-bottom: 4px; }
.forum_show_tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.forum_show_hero_illustration { flex-shrink: 0; display: flex; align-items: center; }
.forum_show_hero_illustration img { max-height: 200px; width: auto; }

/* ---- Edit button in hero ---- */
.forum_edit_btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.8); border: 1px solid #d0c8bc;
  color: #4a4a4a; font-size: .82rem; font-weight: 600;
  padding: 6px 14px; border-radius: 20px; cursor: pointer;
  transition: background .15s, color .15s;
}
.forum_edit_btn:hover { background: #fff; color: var(--forum-primary); border-color: var(--forum-primary); }


@media (max-width: 900px) {
  .forum_show_layout { flex-direction: column; }
  .forum_show_sidebar { width: 100%; }
  .forum_show_hero { flex-direction: column; gap: 16px; }
}

/* ---- TinyMCE comment editor ---- */
.forum_tinymce_wrap { margin-bottom: 24px; }
.forum_tinymce_wrap .mce-container,
.forum_tinymce_wrap .mce-container-body { border-radius: var(--forum-radius) !important; }
.forum_tinymce_submit_row { display: flex; justify-content: flex-end; margin-top: 10px; gap: 10px; align-items: center; }
.forum_tinymce_hint { font-size: .8rem; color: var(--forum-muted); }

/* ---- Comments list ---- */
.forum_comments_list { display: flex; flex-direction: column; gap: 0; }
.forum_comment_thread { margin-bottom: 8px; }

/* ---- Comment card ---- */
.forum_comment_card {
  background: #fff; border: 1px solid var(--forum-border);
  border-radius: var(--forum-radius); padding: 16px 18px 12px;
  position: relative;
}
.forum_reply_card { background: #fafbfc; border-left: 3px solid var(--forum-primary-light); }
.forum_comment_card_header {
  display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px;
}


/* ---- Comment stats/action bar ---- */
.forum_comment_stats {
  display: flex; align-items: center; gap: 2px;
  border-top: 1px solid var(--forum-border); padding-top: 8px;
}
.forum_stat_action_btn {
  background: none; border: none; cursor: pointer;
  font-size: .82rem; color: var(--forum-muted); padding: 5px 9px;
  border-radius: 6px; display: inline-flex; align-items: center; gap: 5px;
  transition: color .15s, background .15s;
}
.forum_stat_action_btn:hover { color: var(--forum-primary); background: var(--forum-primary-light); }
.forum_like_comment_btn.active { color: var(--forum-primary); font-weight: 600; }
.forum_favorite_comment_btn { transition: color .15s, transform .15s; }
.forum_favorite_comment_btn.active { color: #e53e3e; }
.forum_favorite_comment_btn.active i { animation: forum_heart_pop .25s ease; }
.forum_favorite_comment_btn:hover { color: #e53e3e !important; background: #fff5f5 !important; }
@keyframes forum_heart_pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}
.forum_stat_action_btn.ml-auto { margin-left: auto; }

/* ---- 3-dot context menu ---- */
.forum_comment_menu_wrap { position: relative; }
.forum_comment_menu_btn {
  background: none; border: none; cursor: pointer;
  font-size: .95rem; color: var(--forum-muted); padding: 4px 10px;
  border-radius: 6px; line-height: 1; transition: background .15s;
}
.forum_comment_menu_btn:hover { background: var(--forum-primary-light); color: var(--forum-primary); }
.forum_comment_menu_dropdown {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 200;
  background: #fff; border: 1px solid var(--forum-border);
  border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.13);
  min-width: 150px; overflow: hidden;
}
.forum_menu_item {
  display: flex; width: 100%; text-align: left; align-items: center; gap: 8px;
  background: none; border: none; padding: 9px 14px;
  font-size: .85rem; color: var(--forum-text); cursor: pointer;
  transition: background .15s; white-space: nowrap;
}
.forum_menu_item:hover { background: var(--forum-primary-light); color: var(--forum-primary); }
.forum_menu_item.danger { color: #e53e3e; }
.forum_menu_item.danger:hover { background: #fff5f5; color: #c53030; }

/* ---- Replies ---- */
.forum_replies_list { padding-left: 36px; margin-top: 4px; display: flex; flex-direction: column; gap: 6px; }
.forum_replies_container { padding-left: 36px; display: flex; flex-direction: column; gap: 6px; }
.forum_show_replies_btn {
  background: none; border: none; color: var(--forum-primary); font-size: .85rem;
  cursor: pointer; padding: 4px 0; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}

/* ---- Reply form ---- */
.forum_reply_form { margin-top: 10px; padding-left: 56px; }
.forum_reply_input_wrap { background: #f7fafc; border-radius: 8px; overflow: hidden; border: 1px solid var(--forum-border); }
.forum_reply_textarea {
  width: 100%; border: none; outline: none; padding: 10px 14px;
  font-size: .9rem; background: transparent; resize: none; min-height: 52px;
  color: var(--forum-text);
}




/* ---- Mentors list ---- */
.forum_mentors_list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.forum_mentor_item { display: flex; align-items: center; gap: 12px; }
.forum_mentor_info { display: flex; flex-direction: column; }
.forum_mentor_name { font-size: .9rem; font-weight: 700; color: var(--forum-text); }
.forum_mentor_role { font-size: .8rem; color: var(--forum-muted); }


.forum_add_resource_btn:hover { background: var(--forum-primary-light); }
.forum_resource_form { padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }

/* ---- Related discussions ---- */
.forum_related_list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.forum_related_list li { border-bottom: 1px solid var(--forum-border); padding-bottom: 8px; }
.forum_related_list li:last-child { border-bottom: none; }
.forum_related_link { font-size: .88rem; font-weight: 600; color: var(--forum-primary); text-decoration: none; display: block; }
.forum_related_link:hover { text-decoration: underline; }
.forum_related_meta { font-size: .78rem; color: var(--forum-muted); }

/* ---- Related discussions bottom grid ---- */
.forum_related_bottom { margin-top: 40px; padding-top: 32px; border-top: 2px solid var(--forum-border); }
.forum_related_bottom_header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}

/* ---- Associated events block ---- */
.forum_events_list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.forum_event_item {
  display: flex; flex-direction: column; gap: 3px;
  padding: 12px 0; border-bottom: 1px solid var(--forum-border);
}
.forum_event_item:last-child { border-bottom: none; padding-bottom: 0; }
.forum_event_item:first-child { padding-top: 0; }
.forum_event_format {
  font-size: .75rem; font-weight: 700; color: var(--forum-primary);
  text-transform: uppercase; letter-spacing: .04em;
}
.forum_event_name {
  font-size: .95rem; font-weight: 700; color: var(--forum-text);
  text-decoration: none; line-height: 1.35;
}
.forum_event_name:hover { color: var(--forum-primary); text-decoration: none; }
.forum_event_meta { font-size: .78rem; color: var(--forum-muted); }

/* ---- No comments ---- */
.forum_no_comments { text-align: center; color: var(--forum-muted); padding: 30px 0; font-size: .95rem; }

/* ==========================================================
   END FORUM MODULE
   ========================================================== */

/* ==========================================================
   TRAININGS MODULE
   ========================================================== */

/* ---- Index – cards grid ---- */
.container_trainings {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
}




/* ==========================================================
   END TRAININGS MODULE
   ========================================================== */

/* ==========================================================
   EMPTY STATE – composant réutilisable
   ========================================================== */

/* Nouveau bloc structuré .empty_state */
.empty_state {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  text-align: center;
  padding: 72px 24px;
  min-height: 320px;
  width: 100%;
}

.empty_state_icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(31, 100, 105, 0.07);
  border: 1px solid rgba(31, 100, 105, 0.14);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  font-size: 2.25rem;
  color: var(--hub-dark);
  margin-bottom: 20px;
}

.empty_state_msg {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.93rem;
  color: #8a9aaa;
  margin: 0;
  max-width: 360px;
  line-height: 1.65;
}

/* Amélioration du p.event_empty legacy (autres pages) */
p.event_empty {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  width: 100%;
  min-height: 260px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.93rem;
  color: #8a9aaa;
  text-align: center;
  padding: 48px 24px;
  margin: 0;
}

/* ==========================================================
   END EMPTY STATE
   ========================================================== */

/* ==========================================================
   NEWS MODULE — Like/Favorite (heart) button
   ========================================================== */
.newsfeed_like_btn {
  background: none; border: none; cursor: pointer;
  font-size: .82rem; color: var(--forum-muted); padding: 5px 9px;
  border-radius: 6px; display: inline-flex; align-items: center; gap: 5px;
  transition: color .15s, background .15s, transform .15s;
  line-height: 1;
}
.newsfeed_like_btn:hover { color: #e53e3e; background: #fff5f5; }
.newsfeed_like_btn.active { color: #e53e3e; }
.newsfeed_like_btn.active i { animation: forum_heart_pop .25s ease; }
/* ==========================================================
   END NEWS MODULE
   ========================================================== */

/* ==========================================================
   LANGUAGE SWITCHER (header espace)
   ========================================================== */
#header .header_lang_wrap {
  display: inline-flex;
  align-items: center;
}
#header .header_lang_toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.25rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
#header .header_lang_toggle:hover,
#header .header_lang_toggle:focus {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  outline: none;
}
#header .header_lang_toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
}
#header .header_lang_toggle::after {
  display: none;
}
#header .header_lang_toggle .header_lang_icon {
  font-size: 1.05rem;
  line-height: 1;
}
#header .header_lang_toggle .header_lang_code {
  letter-spacing: 0.08em;
}
#header .header_lang_toggle .header_lang_caret {
  font-size: 0.7rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
}
#header .header_lang_toggle[aria-expanded="true"] .header_lang_caret {
  transform: rotate(180deg);
}

#header .header_lang_dropdown {
  min-width: 10rem;
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 28px rgba(15, 40, 45, 0.18);
  padding: 0.4rem;
  margin-top: 0.5rem;
  top: calc(100% + 6px);
  background: #fff;
}
#header .header_lang_dropdown .header_lang_item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #2d494b;
  transition: background 0.15s ease, color 0.15s ease;
}
#header .header_lang_dropdown .header_lang_item + .header_lang_item {
  margin-top: 2px;
}
#header .header_lang_dropdown .header_lang_item_code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 6px;
  background: #eef5f5;
  color: #1f6469;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
#header .header_lang_dropdown .header_lang_item_name {
  flex: 1;
  text-transform: capitalize;
}
#header .header_lang_dropdown .header_lang_item_check {
  font-size: 0.85rem;
  color: #1f6469;
}
#header .header_lang_dropdown .header_lang_item:hover {
  background: #eef7f7;
  color: #1f6469;
}
#header .header_lang_dropdown .header_lang_item.active {
  background: #1f6469;
  color: #fff;
}
#header .header_lang_dropdown .header_lang_item.active .header_lang_item_code {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
#header .header_lang_dropdown .header_lang_item.active .header_lang_item_check {
  color: #fff;
}
/* RTL support for Arabic */
html[dir="rtl"] #header .header_lang_toggle .header_lang_caret {
  margin-left: 0;
  margin-right: auto;
}
html[dir="rtl"] #header .header_lang_dropdown .header_lang_item {
  flex-direction: row-reverse;
  text-align: right;
}
/* ========================================================== */

