/*======================================
Theme Name: Gogmfcu.org Board Site - Custom Child Theme
Theme URI: https://bfmgroupinc.com/web-design/
Description: Divi Child Theme - Made for Gateway Metro Board Website
Version: 1.0.0
Author: BFM Graphics
Author URI: https://bfmgroupinc.com
Template: Divi
=======================================*/

:root {
    /*Menu CSS Variables */
  --sidebar-w-open: 280px;
  --sidebar-w-closed: 68px;
  --brand: #7f1d25;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --ring: rgba(127,29,37,.25);
  --shadow: 0 8px 20px rgba(0,0,0,.08);
  --radius: 14px;
  --speed: .25s;
  --header-h: 64px;
  --wp-admin-bar: 0px;
}
body.admin-bar { --wp-admin-bar: 32px; }
@media (max-width: 782px) {
    body.admin-bar { --wp-admin-bar: 46px; } /* WP mobile admin bar */
}

/*-----Home Page CSS-----*/
.text-module-useful-documents ul{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

/*-----Login Page CSS-----*/
.dsm-inner-content-wrapper, .dsm-inner-content {
    width: 100%;
}
.page-id-17 .et-l.et-l--body .et_builder_inner_content, .et-l.et-l--body .dashboard-content  {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: calc(100vh - (var(--header-h) + var(--wp-admin-bar)));
}
.et_pb_section.et_pb_section_2_tb_body.et_pb_with_background.et_section_regular, .et_pb_module.et_pb_post_content.et_pb_post_content_0_tb_body {
    flex: 1;
}

/*-----User Header-----*/
.user-header-column{
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.user-header{
    position: relative; 
    display: inline-block;
    color: #fff;
    cursor: pointer;
}

.user-info{
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-icon span.et-pb-icon {
    color: #ffffff;
    font-family: FontAwesome !important;
    font-weight: 900 !important;
    font-size: 35px;
    margin-right: 6px;
}

.user-role {
    font-size: 0.9rem;
    opacity: 0.85;
}

.user-name {
    font-weight: 900;
}

.user-dropdown{
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    margin-top: 5px;
    min-width: 150px;
    z-index: 10;
}

.user-dropdown .dropdown-link{
    display: block;
    padding: 10px 10px;
    color: #8b1c2b;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.user-dropdown .dropdown-link:last-child{
    border-bottom: none;
}

.user-dropdown .dropdown-link:hover{
    background-color: rgba(0,0,0,0.2);
}

.user-header:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/*----- Menu CSS -----*/
html, body {
  height: 100%;
  margin: 0;
}

body:not(.et-fb).logged-in  {
  height: 100%; 
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body:not(.et-fb).logged-in div#page-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

body:not(.et-fb).admin-bar.logged-in div#page-container {
  height: calc(100vh - var(--wp-admin-bar));  /* desktop */
}
@media (max-width: 782px) {
   body:not(.et-fb).admin-bar.logged-in div#page-container {
    height: calc(100vh - var(--wp-admin-bar));  /* mobile */
  }
}

body:not(.et-fb).logged-in div#et-boc, body:not(.et-fb).logged-in .et_builder_inner_content.et_pb_gutters2, body:not(.et-fb).logged-in div#et-main-area, body:not(.et-fb).logged-in div#main-content, body:not(.et-fb).logged-in .et-l.et-l--body, body:not(.et-fb).logged-in .et_pb_section.et_pb_section_0_tb_body.et_pb_with_background.et_section_regular, body:not(.et-fb).logged-in .dashboard-layout, body:not(.et-fb).logged-in #dashboard-side-bar {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
}
body:not(.et-fb).logged-in header.et-l.et-l--header {
    display: flex;    
    flex: 0 0 auto;
    flex-direction: column;
    min-height: 0;
}
body:not(.et-fb).logged-in div#et-main-area{
    overflow: hidden;
}
body:not(.et-fb).logged-in .dashboard-layout {
    overflow: hidden;
    flex-direction: row;
}
body:not(.et-fb).logged-in div#dashboard-side-bar {
    flex: 0 0 280px; /* or 68px if collapsed */
    transition: flex-basis 0.25s ease;
}
body:not(.et-fb).logged-in div#dashboard-side-bar.collapsed {
    flex-basis: 140px;
}
body:not(.et-fb).logged-in .et_pb_module.dsm_menu.dsm_menu_0_tb_body.et_pb_text_align_left.et_pb_bg_layout_light {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
body:not(.et-fb).logged-in div#dashboard-main-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

body:not(.et-fb).logged-in div#dashboard-side-bar.collapsed .menu-user-icon, body:not(.et-fb).logged-in div#dashboard-side-bar.collapsed .menu-user-info{
    display: none;
}

/* Menu Icons */
.menu-icon span:first-of-type::before { 
    font-family: FontAwesome !important;
    margin-right: 8px;
    font-weight: 900;
}
.dashboard-home-icon span:first-of-type::before{
    content: "\f015";
}
.contact-book-icon span:first-of-type::before {
    content: "\f2b9";
}
.file-icon span:first-of-type::before {
    content: "\f15b";
}
.link-icon span:first-of-type::before {
    content: "\f0c1";
}
.profile-icon span:first-of-type::before {
    content: "\f007";
}
.search-icon span:first-of-type::before {
    content: "\f002";
}
.open-link-icon span:first-of-type::before{
    content: "\f35d";
}
.logged-out-icon span:first-of-type::before {
    content: "\f2f5";
}
.menu-icon .sub-menu span::before {
  content: none !important;
}

/* Toggle button styles */
.toggle-btn {
  z-index: 9999;
  background: #fff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
}
.toggle-btn .icon-hamburger, 
.toggle-btn .icon-close {
  font-size: 18px;
  display: none;
}
.toggle-btn.is-open .icon-close {
  display: inline-block;
}
.toggle-btn:not(.is-open) .icon-hamburger {
  display: inline-block;
}

/*Other Menu Edits*/
.dsm_menu_0_tb_body .dsm-menu .menu-item-has-children .sub-menu {
    margin-left: .7rem;
    padding-left: .7rem;
    border-left: .5px solid #0075AF;
}
li.menu-icon.profile-icon, li.menu-item.logged-out-icon {
    display: none;
}



/*----- Mobile Menu: Full-width dropdown under header -----*/
@media only screen and (max-width: 980px) {
    body:not(.et-fb).logged-in div#et-boc, body:not(.et-fb).logged-in .et_builder_inner_content.et_pb_gutters2, body:not(.et-fb).logged-in div#et-main-area, body:not(.et-fb).logged-in div#main-content, body:not(.et-fb).logged-in .et-l.et-l--body, body:not(.et-fb).logged-in .et_pb_section.et_pb_section_0_tb_body.et_pb_with_background.et_section_regular, body:not(.et-fb).logged-in .dashboard-layout, body:not(.et-fb).logged-in #dashboard-side-bar {
        display: block;
        flex: none;
        flex-direction: unset;
        min-height: 0;
    }
    body:not(.et-fb).logged-in{
        overflow: auto;
        max-height: initial;
    } 

     body:not(.et-fb).admin-bar.logged-in div#page-container {
        height: initial;
    }

    body:not(.et-fb).logged-in header.et-l.et-l--header{
        position: relative!important;
        z-index: 1000;
    }

    body:not(.et-fb).logged-in #page-container #dashboard-side-bar {
        position: fixed!important;
        top: 0;          
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - (var(--header-h) + var(--wp-admin-bar)))!important;       
        overflow: auto!important;
        -webkit-overflow-scrolling: touch;
        background: #fff;    
        z-index: 999!important;
        transform: translateY(calc(-100% - (var(--header-h) + var(--wp-admin-bar))));
        opacity: 0;
        pointer-events: none;
        transition: transform .28s ease, opacity .2s ease;
        will-change: transform, opacity;
    }
    
   body:not(.et-fb).logged-in #page-container #dashboard-side-bar.open {
        transform: translateY(calc(var(--header-h) + var(--wp-admin-bar)));
        opacity: 1;
        pointer-events: auto;
    }

    body.menu-open {
        height: 100vh!important;
        overflow: hidden!important;
    }

    .dashboard-layout {
        flex-direction: column !important;
    }

    #dashboard-main-content {
        overflow: visible;
    }

    #dashboard-side-bar.collapsed {
        flex-basis: auto;    
    }

    body:not(.et-fb).logged-in div#dashboard-main-content {
        overflow-y: visible;
    }

    body:not(.et-fb).logged-in .dashboard-layout, body:not(.et-fb).logged-in div#et-main-area {
        overflow: initial;
    }

    div#dashboard-side-bar {
        border-radius: 0;
    }
    .logged-in-dashboard-header .et_pb_column {
        margin-bottom: 0;
    }
    .et_pb_icon_0_tb_body .et_pb_icon_wrap .et-pb-icon {
        font-size: 45px;
    }
    li.menu-icon.profile-icon, li.menu-item.logged-out-icon{
        display: block;
    }
    .logged-in-dashboard-header .et_pb_column:nth-child(2) {
        order: 1;
    }
   .logged-in-dashboard-header .et_pb_column .et_pb_module.et_pb_image.et_pb_image_0_tb_header {
        margin-left: 0;
        margin-right: 0;
    }
    .logged-in-dashboard-header .et_pb_column:nth-child(1) {
        order: 2;
        justify-content: flex-end;
        display: flex;
        max-width: 40px;
    }
    .logged-in-dashboard-header .et_pb_column:last-child {
        display: none;
    }
    .et_pb_module.dsm_breadcrumbs.dsm_breadcrumbs_0_tb_body {
        padding-bottom: 0 !important;
    }
}

.toggle-btn {
  position: relative;
  z-index: 1001;
}

/*----- Responsive Styles -----*/
@media only screen and (min-width: 1400px) {
    #dashboard-main-content .dipl_team_grid_0 .dipl_team_grid_item:not(:nth-child(4n+4)) {
        margin-right: 20px;
    }
    #dashboard-main-content .dipl_team_grid_0 .dipl_team_grid_item {
        border-radius: 6px 6px 6px 6px;
        overflow: hidden;
        box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.16) !important;
        width: calc(24% - 15px) !important;
        margin-bottom: 20px !important;
        background-color: #FFFFFF !important;
    }
}
@media only screen and (min-width: 981px) {
    .et_pb_scroll_top{
        display: none;
    }
}
@media only screen and (max-width: 480px) {
    #dashboard-main-content .dipl_team_grid_0 .dipl_team_grid_item {
        width: 100% !important;
        margin-bottom: 20px !important;
    }
    #dashboard-main-content .dipl_team_grid_0 .dipl_team_grid_item:not(:nth-child(2n+2)) {
        margin-right: 0px;
    }
}