:root {
  /* Colors - Refined Slate & Lime Scale */
  --color-brand-light: #ade738;
  --color-brand: #9acd32;
  --color-brand-dark: #82af2b;
  /*--color-brand-light: #f0f9db;*/
  --color-bg: #f8fafc;
  --color-bg-hover: #f8fafc;
  --color-primary-light: var(--color-bg) !important;
  --color-surface: #ffffff;
  --color-border: #e2e8f0;
  
     /* Scale Factors */
  --font-main: 'Noto Sans', sans-serif;

 
 // DELETE THIS
'user_login_form' => [
  'render element' => 'form',
  'template' => 'user-login-form',
],

  /* Text Colors */
  --text-main: #334155;
  --text-muted: #64748b;
  --text-on-brand: #ffffff;

  /* Elevation (Shadows) */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

  /* Spacing & Radii */
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --space-unit: 8px;
  --sm-space-unit: 4px;
  
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  /* Font Sizes */

--text-base: 1rem;       /* 16px */
  --text-h1: 2rem;         /* Scaled down from 3.052rem */
  --text-h2: 1.75rem;      /* Scaled down */
  --text-h3: 1.5rem;       /* Scaled down */
  --text-h4: 1.25rem;      /* Scaled down */
  --text-sm: 0.875rem;
  
  /* Line Heights */
  --lh-body: 1.6;
  --lh-heading: 1.2;
  --lh-tight: 1.1;         /* Added for H1 consistency */

  /* Letter Spacing */
  --ls-heading: -0.02em;
  --ls-caps: 0.08em;
  
 
 
  /* Font Weights */
  --fw-regular: 400;
  --fw-semibold: 600;
  --fw-bold: 700;
}

.field--type-datetime h4 {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);

}

.mobile-number-field .local-number{
    border: 1px solid var(--color-border) !important;
    border-radius: 10px;
    background: #fdfdfd;
    height: auto !important;
    font-size: var(--text-base);
    box-shadow: none !important;
    padding: 15px !important;
    color: var(--text-main);
    }

/* Targets the entire input area */

input[type="file"].form-file {
  background: #f0f0f0 !important;
  border: 1px solid #ccc;
  max-width:180px;
  margin: 1rem auto;
  padding: 0 !important;
}

/* Targets just the 'Choose File' button */
input[type="file"]::file-selector-button {
  background-color: #d3d3d3;
  color: #888;
  border-radius: 5px;
  padding: 8px 16px;
  cursor: pointer;
}


/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

div.associations-list ul li {
    padding: 0 0 10px 0;
}

.no-bullets {
    list-style-type: none;
    margin-left: -20px;
}

form.profile-member-edit-form .image-widget  {
    display: flex;
    flex-direction: column;
}

form.profile-member-edit-form input#edit-field-photo-0-remove-button {
    width: 200px;
    margin: 0 auto;
}
.member-info a {
    color: var(--text-main) !important;
}


.icon-button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #899499;
    border: none;
    cursor: pointer;
    outline: none;
    font-size: 20px;
    transition: background-color 0.3s ease;
}

/* Hover effect for better UX */
.icon-button:hover, .icon-button:focus, .icon-button:active  {
  background-color: #E5E4E2;
   border: none;
}

.clr-button {
    background-color: transparent !important;
}

ul.pbf-main-menu {
    margin-bottom: 1rem !important;
}

div.associations-list span.assoc-tag {
    vertical-align: middle;
    gap: 10px;
    display: flex;
}

#footer {
    background: none !important;
    display: none !important;
}

h1, h2, h3, h4 {
  font-family: var(--font-main);
  color: #1e293b; /* Slate 900 - soft black */
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

p {
  font-family: var(--font-main);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: #334155; /* Slate 800 - high readability gray */
  margin-bottom: 1.5rem;
}

/* Specific Heading Sizes */
h1 { font-size: 3.05rem; line-height: var(--lh-tight); font-weight: 800; }
h2 { font-size: 2.44rem; line-height: var(--lh-heading); }
h3 { font-size: 1.95rem; line-height: var(--lh-heading); }
h4 { font-size: 1.56rem; }

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--text-main); /* Changed from var(--font-main) to fix color logic */
  font-family: var(--font-main);
  font-weight: 400; /* Regular for body */
  font-size: var(--text-base);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}

input[type=submit]:hover, input[type=button]:hover, input[type=reset]:hover, button:hover, .button:hover, input[type=submit]:focus, input[type=button]:focus, input[type=reset]:focus, button:focus, .button:focus {
    background-color: transparent;
    border: 0px solid #000000 !important;
    color: var(--bold-color);
}

h1 { 
  font-size: var(--text-h1); 
  line-height: var(--lh-tight); 
  font-weight: 800; 
}

h2 { 
  font-size: var(--text-h2); 
  line-height: var(--lh-heading); 
}

h3 { 
  font-size: var(--text-h3); 
  line-height: var(--lh-heading); 
}

h4 { 
  font-size: var(--text-h4); 
}
body.frontpage #block-tara-sub-socialauthlogin {
    display: none;
}

body.frontpage .main-wrapper {
    max-width: 990px;
    min-height: 80vh;
}

/* --- Reusable Grid Utility --- */
.grid-2-col {
  display: grid;
  grid-template-columns: 1fr; /* 1 column on mobile */
 
}

.grid-2-col-fixed {
    grid-template-columns: 1fr 1fr; /* 2 equal columns */
     gap: 24px; /* Matches your typography spacing */
     justify-content: space-between;
  }



/* Tablet and Desktop (768px and up) */
@media (min-width: 768px) {
  .grid-2-col {
    grid-template-columns: 1fr 1fr; /* 2 equal columns */
     gap: 24px; /* Matches your typography spacing */
  }
  .grid-2-col-fixed {
    grid-template-columns: 1fr 1fr; /* 2 equal columns */
     gap: 24px; /* Matches your typography spacing */
  }
}

/* Optional: Variation for a Sidebar (1/3 and 2/3) */
@media (min-width: 768px) {
  .grid-sidebar {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 30px;
  }
}



/* Container for all checkboxes */
#edit-group-roles.form-checkboxes, #edit-status-wrapper, #edit-field-is-sanctioned-wrapper, .field--widget-boolean-checkbox {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 300px;
  margin: 20px 0;
}

/* Individual Checkbox Wrapper */
#edit-group-roles .js-form-item, #edit-status-wrapper .js-form-item, #edit-field-is-sanctioned-wrapper .js-form-item, .field--widget-boolean-checkbox .js-form-iteM {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 2px solid var(--color-border); /* Soft grey border */
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

/* Hide the actual small box but keep it functional */
#edit-group-roles input[type="checkbox"], #edit-status-wrapper input[type="checkbox"],  #edit-field-is-sanctioned-wrapper input[type="checkbox"], .field--widget-boolean-checkbox input[type="checkbox"] {
  width: 25px;
  height: 25px;
  margin-left: 15px;
  cursor: pointer;
  accent-color: #7FB347; /* Sage Green for the check */
}

/* The Label (Make it fill the space) */
#edit-group-roles label.option, #edit-status-wrapper label.option, .field--widget-boolean-checkbox label.option  {
  flex-grow: 1;
  padding: 18px 15px; /* Large hit area for seniors */
  cursor: pointer;
  margin: 0; /* Reset Drupal default margins */
}

div#edit-actions {
    gap: 2rem;
}

/* Hover/Active States */
#edit-group-roles .js-form-item:hover {
  border-color: #7FB347;
  background-color: #F9FAFB;
}

/* When the checkbox is CHECKED - Style the whole tile */
#edit-group-roles .js-form-item:has(input:checked) {
  background-color: #F0F7E9; /* Very light sage tint */
  border-color: #7FB347;
  box-shadow: 0 4px 10px rgba(127, 179, 71, 0.15);
}

/* Specific styling for the Sanctioning Officer to make it stand out */
.form-item-group-roles-bowling-sanctioning-officer label {
  color: #1e272e;
}




/* Hide Drupal administrative layout outlines */
.layout-builder__region,
.layout-display,
[data-layout-builder-target-highlight] {
  outline: none !important;
  border: none !important;
}

/* Hide the specific dashed lines if they are coming from a module */
.js-layout-builder-region {
  outline: none !important;
}



.image-widget.js-form-managed-file.form-managed-file {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.image-widget.js-form-managed-file .btn-primary, .image-widget.js-form-managed-file input[type=submit], .image-widget.js-form-managed-file input[type=button], .image-widget.js-form-managed-file input[type=reset], .image-widget.js-form-managed-file button, .image-widget.js-form-managed-file .button {
    max-width: 200px;
    margin: 1rem auto;
}

/******** Overrides ***********/

.header-top {
    display: none !important;
}

.truncate {
  white-space: nowrap;    /* 2. Required: Keep text on one line */
  overflow: hidden;       /* 3. Required: Hide the text that spills out */
  text-overflow: ellipsis;/* 4. The magic: Adds the "..." */
}


.trunc-50 {
      width: 50px;           /* 1. Required: Need a fixed or relative width */
}
.trunc-150 {
      width: 150px;           /* 1. Required: Need a fixed or relative width */
}
.trunc-180 {
      width: 180px;           /* 1. Required: Need a fixed or relative width */
}
.trunc-250 {
      width: 250px;           /* 1. Required: Need a fixed or relative width */
}

#highlighted {
    background: none !important;
}

table#field-association-1-values td, table.responsive-enabled td {
    border: none;
}
table#field-association-1-values th, table.responsive-enabled th {
    background: none !important;
    color: #000000;
    margin: 0;
    padding: 10px;
    border: none;
    text-align: left;
    text-shadow: none;
}
table#field-association-1-values th h4, table.responsive-enabled th h4 {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
    
}

.main-wrapper {
    position: relative;
    display: block;
    background: var(--color-bg) !important;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    z-index: 2;
    min-height: 80vh;
}

.padding-global {
    mix-blend-mode: normal;
    padding-left: 40px;
    padding-right: 40px;
}
.container-medium {
    width: 100%;
    max-width: 990px;
    margin-left: auto;
    margin-right: auto;
}

#header, .header-top, .header {
    background-color: transparent !important;
}

#footer, .dialog-off-canvas-main-canvas{
    width: 100%;
    max-width: 990px;
    padding: 0;
    margin: 0 auto;
}
#main {
    position: relative;
    background: none !important;
    width: 100%;
    margin: 0;
    padding: 0 0 60px 0;
    order: 2;
    z-index: 2;
}

#footer {
    background: none !important;
}
.sidebar-left .main-container, .sidebar-right .main-container  {
    grid-template-columns: 100% !important;
}


.page-tabs .active-page-tab {
    background-color:  var(--color-brand) !important;
    text-shadow: none;
}

a {
    color: var(--color-brand-dark);
}
.menu-btn {
    background: transparent !important;
    border: none !important;
    color: var(--text-main) !important;
    width: 40px;
    height: 40px;
    padding: 10px 5px 12px 6px !important;
    /* border-radius: 10px; */
    font-size: 48px;
    cursor: pointer;
    box-shadow: none !important;
}

.menu-btn:hover {
    background: #ffffff;
    border: 0 solid var(--color-border) !important;
    color: var(--text-main) !important;
}


#block-tara-sub-primary-admin-actions nav {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.form-group, .form-item {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label, .form-item label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-item  input,
.form-item textarea,
.form-group  input,
.form-group textarea,
#edit-timezone select {
            width: 100%;
            border: 1px solid var(--color-border) !important;
            border-radius: 10px;
            background: #fdfdfd;
            font-size: var(--text-base);
            box-shadow: none !important;
            padding: 15px !important;
            color: var(--text-main);
        }

.form-item input:focus, .form-group input:focus {
            outline: 2px solid var(--color-brand) !important;
            outline-offset: -1px;
            box-shadow: none !important;
        }
        
#edit-field-birthday-0-value {
    max-width:200px;
}

/***** Sidebar User *******/
/*.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-smooth);
    z-index: 1000;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
}*/
.sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: var(--color-surface);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-smooth);
    z-index: 1000;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
}

/* The main container */
.pbf-user-dropdown {
  background: #ffffff;
  border: 1px solid #e4e6eb; /* Soft, light gray */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Optional: adds depth */
}

.user-role {
    color: var(--text-muted);
    font-size: 14px;
}

/* The top section with Name/Avatar */
.sidebar-user {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  /* No border here, we use the container border instead */
}


/* The divider line before the links */
.user-submenu {
  border-top: 1px solid #eef0f2; /* Even lighter line for the separator */
  list-style: none;
  padding: 8px 0;
  margin: 0;
}

.user-submenu li a {
    padding: 10px 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    
    /* Change to flex for better layout control */
    display: flex; 
    align-items: center; /* Vertically centers the icon and text */
    gap: 12px;           /* Modern way to create space between icon and text */
    
    width: 100%;
    text-decoration: none;
    transition: 0.2s;
}

/* Ensure the icon doesn't shrink and stays consistent */
.user-submenu li a .material-symbols-outlined {
    flex-shrink: 0;
    font-size: 20px; /* Standard size for menu icons */
}

/* Hover effect to make it feel interactive */
.user-submenu li a:hover {
  background-color: #f8f9fa;
  color: #000000 !important;
}

/* Material Symbol alignment */
.user-submenu .material-symbols-outlined {
  font-size: 20px;
  color: #6b7280;
}
.sidebar li {
    padding: 0 !important;
    border-bottom: 2px solid var(--color-border);
}

.sidebar.active {
  transform: translateX(-280px); /* Hardware accelerated move */
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-flow: row-reverse;
}
/*
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
*
/* User Identity Module */
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 5px;
  background: var(--color-bg);
  border-radius: var(--radius-md);
  margin-bottom: 0;
  border: 1px solid var(--color-border);
}


.sidebar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.app-logo {
    height: 32px;
    width: auto;
}
.sidebar-nav {
  list-style: none;
  padding: 0;
}

.sidebar-nav li { margin-bottom: 4px; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: var(--color-bg-hover);
    color: var(--text-main);
}

/* 1. Hide the submenu by default */
.user-submenu {
  max-height: 0;
  overflow: hidden;
  list-style: none;
  padding: 0;
  margin: 0;
  transition: max-height 0.3s ease-out, opacity 0.2s ease;
  opacity: 0;
  background: var(--color-bg); /* Use the variable from your root */
  border-radius: var(--radius-sm);
}

/* 2. Style when active (Toggled via JS) */
.pbf-user-dropdown.is-open .user-submenu {
  max-height: 300px; /* High enough to fit all links */
  opacity: 1;
  margin-top: 0;
  padding: 0;
}

/* 3. Dropdown Item Styling */
/*.user-submenu li a {
  /\*  padding: 10px 16px 10px 56px; Align with the text beside the avatar *\/
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  display: block;
  text-decoration: none;
  transition: 0.2s;
}

.user-submenu li a:hover {
  color: var(--color-brand-dark);
  background: var(--color-brand-light);
}
*/


/* 4. Add an indicator arrow to the sidebar-user box */
.sidebar-user {
  cursor: pointer;
  position: relative;
  transition: background 0.2s;
}

.sidebar-user::after {
  content: '▾';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  transition: transform 0.3s;
}

.official-tools-header {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 0 5px 0;
  border-top: 1px solid #e2e8f0;
  margin-top: 10px;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  display: none;
  z-index: 999;
  backdrop-filter: blur(2px);
}

.overlay.active {
  display: block;
}


.pbf-user-dropdown.is-open .sidebar-user::after {
  content: '▾';
  transform: translateY(-50%) rotate(180deg);
}


/******** Cards & Inputs *********/
.node-view-mode-teaser, .card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.card-title {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}


/*
.btn-primary, input[type=submit], input[type=button], input[type=reset], button, .button  {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: auto;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark));
  color: var(--text-on-brand);
  border: none !important;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: var(--text-base);
  cursor: pointer;
 /* box-shadow: 0 4px 12px rgba(154, 205, 50, 0.3);*\/
  transition: transform 0.1s, opacity 0.2s;
  margin-bottom: 0.75rem;
}*/
/*
input[type=submit], input[type=button], input[type=reset], button, .button {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-brand), var(--color-brand-dark)) !important;
    color: #ffffff;
    padding: 8px 1rem;
     border: none !important;
    border-radius: var(--radius-md) !important;
    transition: all 0.4s ease-in-out;
    line-height: 1.6;
}*/
.btn-primary, input[type=submit], input[type=button], input[type=reset], button, .button {
    display: inline-flex;
    background-color: var(--color-brand-light) !important;
    background: var(--color-brand-light) !important;
    color: #1e293b !important;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 700;
    width: auto;
    text-decoration: none;
    border: none;
    line-height: 15px;
    text-align: center;
    font-size: 0.9rem;
    transition: transform 0.1s ease;
}


.btn-primary:hover, input[type=submit]:hover, input[type=button]:hover, input[type=reset]:hover, button:hover, .button:hover{
    color: #1e293b !important;
    background-color: var(--color-brand) !important;
    background: var(--color-brand) !important;
    border: none !important;
    
}
.btn-primary:active, input[type=submit]:active, input[type=button]:active, input[type=reset]:active, button:active, .button:active {
  color: #1e293b !important;
  background-color: var(--color-brand) !important;
  background: var(--color-brand) !important;
  border: none !important;
}


input, textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  font-size: var(--text-base);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px var(--color-brand-light);
}



/********** The Feed / Post Section *********/

.post-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}

.post-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-user-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.post-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.post-actions {
  display: flex;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  gap: 16px;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.action-btn:hover { background: var(--color-bg); }
.action-btn.liked { color: #ef4444; }

.text-muted {
    color: var(--text-muted);
}
/********** Login *************/
/* Force hide Tara's default elements on login only */
.path-user.page-node-type-not-applicable #header,
.path-user.page-node-type-not-applicable .sidebar,
.path-user.page-node-type-not-applicable #footer {
    display: none !important;
}

.path-user .main-content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}


/* Container to center everything */
.maplego-login-wrapper {
    max-width: 400px;
    margin: 80px auto;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.maplego-login-wrapper .user-login-form {
    margin: 0 auto;
}
.app-logo-medium {
    width: 100px;
}

.maplego-login-wrapper #block-tara-sub-socialauthlogin {
    display: none;
}
/* Figma-style Google Button */
.social-auth-google-button, .social-auth-google-button:hover, .social-auth-google-button:focus {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    border: 1px solid #000;
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 20px;
    text-decoration: none;
    color: #000;
}

.brand_buttons--googleButtonInner--B-z2c {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The "or" divider */
.login-divider {
    margin: 20px 0;
    color: #666;
    font-size: 0.9rem;
}

/* Input boxes from your screenshot */
.user-login-form input[type="text"],
.user-login-form input[type="password"] {
    background: none;
    border: 1px solid #000000 !important;
    border-radius: 8px;
    padding: 10px 15px 10px;
    margin-bottom: 10px;
    width: 100%;
}

/* Black Login Button */
.user-login-form #edit-submit {
    background: #000 !important;
    color: #fff !important;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    margin-top: 10px;
    cursor: pointer;
}

/* Links at bottom */
.login-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.login-links a {
    color: #106ebe;
    text-decoration: none;
    font-size: 0.9rem;
}







/* Portal Wrapper */
.official-portal-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* Formal Header */
.pbf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 3px solid #0038a8; /* PBF Blue */
  padding-bottom: 20px;
  margin-bottom: 30px;
}

.pbf-logo-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pbf-seal {
  width: 80px;
  height: 80px;
}

.pbf-title h1 {
  font-size: 1.8rem;
  margin: 0;
  color: #0038a8;
  text-transform: uppercase;
  font-weight: 900;
}



.pbf-title span {
  font-size: 0.9rem;
  color: #64748b;
  letter-spacing: 1px;
}

/* Live Status Indicator */
.status-live {
  color: #16a34a;
  font-weight: 800;
  font-size: 0.8rem;
}

/* Data Table Styling */
.pbf-table-container table {
  width: 100%;
  border-collapse: collapse;
}

.pbf-table-container th {
  background: #f8fafc;
  color: #1e293b;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 15px;
  border-bottom: 2px solid #e2e8f0;
}

.pbf-table-container td {
  padding: 15px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.95rem;
}



/********* Pricing *****/
.pricing-container {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
}

.pricing-card {
  background: var(--color-surface);
  border: 2px solid var(--color-brand); /* Highlighting the offer */
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 400px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  transition: transform 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.card-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-brand-dark);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.plan-name {
  font-size: var(--text-base);
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-main);
}

.plan-price {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 16px;
}

.plan-price span {
  font-size: var(--text-base);
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  text-align: left;
}

.plan-features li {
  padding: 8px 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-border);
}

.plan-features li:last-child {
  border-bottom: none;
}

.pricing-footer {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
}



/********* Register  Subscriber ********/
/* Target the Social Auth Google Button */


.subscriber-registration-form .social-auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #dadce0;
  color: #3c4043;
  padding: 12px;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 25px;
  transition: background-color .2s, box-shadow .2s;
}

.subscriber-registration-form .social-auth-google:hover {
  background-color: var(--color-bg-hover);
  box-shadow: 0 1px 2px 0 rgba(60,64,67,0.30), 0 1px 3px 1px rgba(60,64,67,0.15);
}

/* Adding the Google "G" Icon via CSS if it's missing */
.subscriber-registration-form .social-auth-google::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 10px;
  background: url('https://upload.wikimedia.org/wikipedia/commons/5/53/Google_%22G%22_Logo.svg') no-repeat center;
  background-size: contain;
}


.subscriber-registration-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Flexbox Row for Name Fields */
.form-row-flex {
  display: flex;
  gap: 15px;
}

.form-row-flex .form-item {
  flex: 1;
}

/* Style the Inputs */
.subscriber-registration-form input[type="text"],
.subscriber-registration-form input[type="email"],
.subscriber-registration-form input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background-color: #f8fafc;
}

/* Style the Submit Button */
.subscriber-registration-form .form-submit {
  width: 100%;
  background-color: var(--color-brand);
  color: white;
  padding: 14px;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 20px;
}




/********* GROUP's/ ORGANIZATION"S page  ********/

.group-profile-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.org-header-card {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  border-left: 6px solid var(--color-brand);
}

.org-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}

.org-card {
  background: #fff;
  /*padding: 25px; */
  padding: 0;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.org-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.button-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/******** CARD ORG LOGO ******/
.org-logo-card-wrapper {
  max-width: 320px;
}



.info-item.affiliation .stat-value {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 5px; /* Adjust as needed */
}

/* Ensure the divider inside it behaves */
.info-item.affiliation .stat-value .divider {
    display: inline-block;
    margin: 0 4px;
}


.org-logo-container {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-content {
    display: flex;
    padding: 12px 16px;
    gap: 16px;
}

.post-content h3 {
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-muted);
    font-size:1.2rem;
}

.org-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Keeps logo proportions */
}

.logo-placeholder {
  font-size: 2.5rem;
}

.org-name {
  margin: 0 0 5px 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: #1e293b;
}

.pbf-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  color: #065f46;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #a7f3d0;
}


.about-section {
     padding: 30px;
}

.about-section .field__label {
    font-weight: bold;
    margin-bottom: 20px;
}

.about-section .card-content {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-main);
   
}

/* Ensures images or long words inside the text don't overflow */
.about-section .card-content p {
    margin-bottom: 1em;
    overflow-wrap: break-word;
}
/***** PROFILE WRAPPER ******/
.profile-wrapper {
  max-width: 100%;
}

/* Header Card */
.profile-header-card {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

.profile-large-avatar {
  width: 140px; /* Slightly larger for the full profile */
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px #e2e8f0;
}

/* 2-Column Grid for Stats and Contact */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.profile-card {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-bottom: 24px;
}

/* Styling for automatic Drupal fields inside our card */
.dynamic-fields .field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f8fafc;
}

.dynamic-fields .field__label {
  font-weight: 600;
  color: #94a3b8;
  min-width: 120px;
  font-size: 0.9rem;
}

.dynamic-fields .field__item {
  color: #334155;
  font-weight: 500;
}

/* Remove border from last item */
.dynamic-fields .field:last-child {
  border-bottom: none;
}

/* Stats Styling */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.stat-box {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
}

.stat-value {
  display: block;
  font-size: var(--text-base);
  font-weight: 800;
  color: #1e293b;
}

.stat-label {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Contact / Info List */
.info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-line {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #475569;
}

.info-line .material-symbols-outlined {
  color: #94a3b8;
}

/* Edit Button Styling */
.profile-actions-footer {
  margin-top: 10px;
}

.btn-edit-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f1f5f9;
  border-radius: 8px;
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-edit-profile:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-edit-profile .material-symbols-outlined {
  color: #22c55e; /* Matching your green edit icon */
}


.averages-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 15px;
}

.average-entry {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 15px;
}

.average-entry:last-child {
  border-bottom: none;
}

.average-score {
  font-size: 1.5rem;
  font-weight: 800;
  color: #000;
  line-height: 1;
  margin-bottom: 5px;
}

.average-association {
  font-size: var(--text-base);
  font-weight: 600;
  color: #1e293b;
}

.average-center {
  font-size: 0.9rem;
  color: #94a3b8;
  margin-top: 2px;
}



/* Ensure the Member Details labels match your screenshot */
.dynamic-fields .field__label {
  color: #94a3b8;
  font-weight: 500;
  width: 250px; /* Adjusted for longer labels like Association/Club */
}


/* Card Header Layout */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Add Button */
.btn-add-stat, .btn-edit-global {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #22c55e;
  text-decoration: none;
  background: #f0fdf4;
  padding: 4px 10px;
  border-radius: 6px;
  transition: 0.2s;
}

.btn-add-stat:hover { background: #dcfce7; }

/* Inline Edit Button */
.average-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.btn-mini-edit {
  color: #94a3b8;
  text-decoration: none;
  transition: 0.2s;
}

.btn-mini-edit:hover { color: #64748b; }

.btn-mini-edit .material-symbols-outlined {
  font-size: 18px;
}


/* Styling the injected Cancel link */
.btn-cancel {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: #f1f5f9;
  color: #64748b;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  margin-left: 15px;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.btn-cancel:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-add-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #22c55e;
  background: #f0fdf4;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #dcfce7;
}

.btn-add-stat:hover {
  background: #dcfce7;
}

/* Ensure form actions are flexed so buttons sit side-by-side */
.form-actions {
  display: flex;
  align-items: center;
}

.btn-clear {
    background: none;
    background-color: transparent;
}

/******** My Organizations *********/

#block-tara-sub-addorganizationblock {
    display: none;
}
/* Header */
.org-header {
  margin-bottom: 30px;
}

.btn-add-org {
  display: inline-block;
  background-color: var(--color-brand-light) !important; /* Lime Green */
  background: var(--color-brand-light) !important; /* Lime Green */
  color: #1e293b !important;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.1s ease;
}
.btn-add-org:hover {
    color: #1e293b !important;
    
}
 .btn-add-org:active, .btn-add-org:focus {
  color: #1e293b !important;
  background-color: var(--color-brand) !important;
  background: var(--color-brand) !important;
}

/* Grid Logic */
.org-grid {
  display: grid;
  gap: 20px;
 /* Desktop: 3 Columns */
  grid-template-columns: repeat(3, 1fr);
}

@media (min-width: 992px) {
  .org-grid {
    /* Desktop: 3 Columns */
    grid-template-columns: repeat(3, 1fr);
  }
  .org-item {
    max-width: 300px;
  }
}

@media (max-width: 991px) {
  .org-grid {
    /* Desktop: 3 Columns */
    grid-template-columns: repeat(2, 1fr);
  }
  .org-item {
    max-width: 300px;
  }
}

/* Mobile Grid Adjustment */
@media (max-width: 768px) {
  .org-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px; /* Tighter gap for smaller screens */
    /* padding: 0 10px; */
  }
  .org-item {
    width: 163.333px;
  }
}

/* Force Logo to hit the edges of the card */
.org-logo-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #fff; 
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  /* Stripping all possible paddings */
  padding: 0 !important; 
  display: block !important;
}

/* Ensure the image fills the entire 1x1 space */
.org-logo-wrapper img {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain; /* Use 'cover' if you want it to bleed to the edges, 'contain' if the logo must not be cropped */
  display: block;
}

/* Ensure the views field wrapper doesn't add space */
.org-logo-wrapper .views-field,
.org-logo-wrapper .field-content {
  display: block;
  height: 100%;
  width: 100%;
}




.org-logo-wrapper .item-title {
    display: none;
}
.placeholder-logo {
  color: rgba(255,255,255,0.4);
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: 2px;
}

/* Single Line Truncation */
.org-name {
  font-weight: 600;
  font-size: var(--text-base);
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0 auto;
  padding: 0 4px;
  
}


/******** Organization Info *****/
/* Container Layout */
.org-info-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
}

.org-info-container .logo-box img{
    width: 200px;
    height: 200px;
    object-fit: cover;
    box-shadow: rgb(226, 232, 240) 0px 0px 0px 2px;
    border-radius: 50%;
    border-width: 4px;
    border-style: solid;
    border-color: rgb(255, 255, 255);
    border-image: initial;
}

@media (min-width: 992px) {
  .org-info-container {
    flex-direction: row;
    align-items: flex-start;
  }
  .org-column-main { flex: 0 0 320px; }
  .org-column-side { flex: 1; }
}

@media (max-width: 991px) {
  .org-info-container {
    gap: 0;
  }
}


.absolute-wrapper {
    position: absolute;
    right: 10px;
    top: 10px;
}

.org-card {
  width: 100%;
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 20px;
}

.image-field {
    margin: 0 auto !important;
}


/* Image/Logo Header */
.card-image-section {
  background-color: #ffffff;
  padding: 40px 20px 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.logo-circle span {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 900;
  font-size: 2rem;
  letter-spacing: 2px;
}

/* Body and Truncation */
.card-body {
  padding: 20px 30px;
  text-align: center;
}

.org-name-multi {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  /* 2-line Truncation Logic */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1;
  height: 2.8em; /* Ensures consistent height even with 1 line */
}

/* Footer Stats */
.card-footer {
  display: flex;
  border-top: 1px solid #f1f5f9;
}

.footer-stat-block {
  flex: 1;
  padding: 20px 10px;
  text-align: center;
  text-decoration: none; /* Make links look like text */
  transition: background 0.2s ease;
}

.footer-stat-block:first-child {
  border-right: 1px solid #f1f5f9;
}

.footer-stat-block:hover {
  background-color: #f8fafc;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.stat-value {
  display: block; /* Change from flex if flex is causing weird stacking */
  text-align: center;
  width: 100%;
}

.aff-item {
  display: inline; /* Keep text together */
  font-weight: 700;
  color: #1e293b;
}

.stat-value .divider {
  display: inline-block;
  color: #cbd5e1;
  margin: 0 8px;
  font-weight: 300;
}


/* Ensure the value wraps nicely if there are many affiliations 
.stat-value {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
}*/

/* Common Card Styling 
.org-card.logo-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  overflow: hidden;
}
*/

/* Logo Card */
.logo-box {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-card-footer { padding: 15px; }
.logo-card-footer h3 { margin: 0 auto; font-size: 1.1rem; font-weight: 600; text-align: center }
.footer-meta { display: flex; justify-content: space-between; color: #94a3b8; font-size: 0.85rem; }

/* Sanctioned Card */
.sanctioned-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px;
}
.pbf-logo-brand img { height: 88px; }
.sanctioned-status {
    text-align: center;
    display: flex;
    flex-direction: column;
}

.badge-icon {
    color: var(--color-brand-dark);
    /* font-size: 40px; */
    line-height: 0.5rem;
    display: block;
}


.md-18 { font-size: 18px !important; }
.md-36 { font-size: 36px !important; }
.md-48 { font-size: 48px !important; }

.status-text { font-weight: 600; font-size: var(--text-sm); }

/* Info Card */
.info-card { padding: 30px; }
.info-card h2 { margin-top: 0; font-size: var(--text-base); }
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}
.info-item label { display: block; font-size: 0.75rem; color: #94a3b8; text-transform: uppercase; }
.info-item .value { font-weight: 600; color: #1e293b; }

/* Lime Button */
.btn-members-lime {
  display: inline-block;
  background: #bef264;
  text-align: center;
  color: #1e293b;
  padding: 12px 40px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 0 #a3d94b;
}

.btn-members-lime:active { transform: translateY(2px); box-shadow: none; }



.tabs-wrapper ul.tabs.primary {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  border-bottom: 2px solid #e2e8f0;
  gap: 10px;
}

.tabs-wrapper ul.tabs.primary li a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #64748b;
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
}

.tabs-wrapper ul.tabs.primary li a.is-active {
  background-color: #bef264; /* Your Lime Green */
  color: #1e293b;
  border-bottom: 2px solid #1e293b;
}

.tabs-wrapper ul.tabs.primary li a:hover:not(.is-active) {
  background-color: #f1f5f9;
  color: #1e293b;
}


/*********** USER SITEWIDE PROFILE ***********/
.photo-container {
    border-radius: 50%;
    overflow: hidden;
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem auto;

}
.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-header {
    margin-bottom: 1rem;
}

.profile-wrapper .form-item.form-type-item.js-form-type-item.form-item-.js-form-item-.form-no-label {
    text-align: center;
    line-height: 0.3rem;
}

.mg-detail-row {
  display: flex;
  align-items: center;
  /* Increased gap for senior readability */
  gap: 24px; 
  padding: 16px 0;
  border-bottom: 1px solid #EDEDED;
}

.mg-detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  /* Ensuring the icon container has a fixed width keeps text aligned across rows */
  min-width: 40px; 
}
.region-breadcrumb {
  display: none !important;
}

.mg-detail-icon .material-symbols-outlined {
  /* Larger, bolder icon */
  font-size: var(--text-h4);
  font-variation-settings: 'wght' 500; 
}

.mg-detail-text {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.app-logo {
    height: 35px;
    width: auto;
    padding-top: 5px;
}

/*********** Average Tab ************/
/* Container for the Grid */
.avg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Individual Card */
.avg-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border: 1px solid #f1f5f9;
}

/* Field Spacing */
.avg-card .views-field {
  margin-bottom: 5px;
}

/* Pencil Icon Positioning */
.avg-actions {
  position: absolute;
  top: 15px;
  right: 15px;
}

.btn-edit-icon {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}

.btn-edit-icon:hover {
  color: #1e293b;
}

/* Add Button Styling */
.btn-add-record {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bef264;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
}


/********* Member List ************/
.member-list-container {
  background: #fff;
  border-radius: 8px;
}

.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}

.member-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.member-info .field-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

/* Make User Photo Circular */
.member-info img {
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 50%;
    object-fit: cover;
    margin: 0;
}

.member-actions {
  position: relative;
}

.kebab-menu-btn {
  background: none !important;
  border: none  !important;
  color: #899499 !important;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
}

.kebab-menu-btn:hover,.kebab-menu-btn:focus, .kebab-menu-btn:active {
  color: #999;
  background: none !important;
  border: none  !important;
}
/* Dropdown Menu Styling */
.member-dropdown {
  display: none; /* Hidden by default */
  position: absolute;
  right: 100%;
  top: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 100;
  min-width: 120px;
  overflow: hidden;
}

.member-dropdown.show {
  display: block;
}

.member-dropdown a {
  display: block;
  padding: 12px 20px;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
}

.member-dropdown a:hover {
  background-color: var(--color-bg) !important;
}

/*********** Affilations ******/
 .stat-value {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.divider {
  color: #cbd5e1;
  font-size: 0.9em;
  font-weight: 300;
  user-select: none; /* Prevents selecting the pipe when copying text */
}


.messenger-btn {
  background-color: #0084FF; /* Official Messenger Blue */
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 50px;
  font-family: sans-serif;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.3s ease;
}

.messenger-btn:hover {
  background-color: #0073e6;
}


/******** Official Members pagee ****/
/* Styling for the Official Bowler Data View */
.view-official-bowler-data .member-photo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.view-official-bowler-data .member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.view-official-bowler-data .member-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.view-official-bowler-data .member-name {
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.05rem;
}

/***** My Profile ********/
/* General Badges */
.badge {
  padding: 5px 15px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Subscriber Colors */
.role-subscriber .badge-primary { background-color: #28a745; color: white; }

/* Sanctioning Official Colors */
.role-sanctioning-official .badge-primary { background-color: #ffc107; color: #333; }

/* Member Colors */
.role-member .badge-primary { background-color: #007bff; color: white; }

/* Sanctioned Status */
.badge-sanctioned {
  border: 1px solid #007bff;
  color: #007bff;
  margin-left: 10px;
}



/******** My Organizations Officer's PBF view  ********/
/* Container styling */
.mg-official-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e0e6ed;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease;
}

.mg-official-card:hover {
  transform: translateY(-4px);
}

.mg-official-card__logo img {
  max-width: 100px;
  height: auto;
  margin-bottom: 15px;
}

.mg-official-card__title {
  color: #7FB347; /* MapleGO Sage Green */
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 15px 0;
  text-align: center;
}

/* Metadata Row Layout */
.mg-official-card__meta {
  display: flex;
  width: 100%;
  justify-content: space-around;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 12px 0;
  margin-bottom: 15px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.meta-label {
  font-size: 0.75rem;
  color: #95a5a6;
  letter-spacing: 1px;
}

.meta-value {
  font-weight: 700;
  color: #2c3e50;
}

/* Badge Styling */
.status-badge.sanctioned {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #5F8635;
  font-weight: 600;
  font-size: 0.9rem;
  background: #f0f7e9;
  padding: 6px 12px;
  border-radius: 20px;
}




/**** JOIN *******/
/* Action Button Container */
.info-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

/* Join Button Styling */
.btn-join {
  background-color: #7FB347 !important; /* Sage Green */
  color: #ffffff !important;
  font-weight: 700;
  border-radius: 8px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 10px rgba(127, 179, 71, 0.2);
  transition: all 0.2s ease-in-out;
}

.btn-join:hover {
  background-color: #6a963b !important;
  transform: translateY(-2px);
}

/* Secondary Button Styling */
.btn-secondary {
  background-color: #ffffff !important;
  color: #2D3436 !important;
  border: 2px solid #e0e0e0 !important;
}

.btn-secondary:hover {
  border-color: #7FB347 !important;
}



/******* Organizations *******^^^/

.view-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  border-left: 5px solid #7FB347; /* Sage Green Accent */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.sage-title {
  color: #2d3436;
  font-size: 2rem;
  margin: 0;
}

.subtitle {
  color: #636e72;
  font-size: 1rem;
}

.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.role-hint {
  font-size: 0.75rem;
  color: #b2bec3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-join {
  background-color: #7FB347 !important;
  transition: transform 0.2s ease;
}

.btn-join:hover {
  transform: scale(1.03);
}


/********** Organizations Join *****/
.org-card {
  width: 200px; /* Adjust based on your grid */
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
}

.org-card-logo img, 
.org-card-logo .logo-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 15px;
  object-fit: cover;
  background-color: #7d8aff; /* The blue from your screenshot */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: bold;
  font-size: 1.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-join-card {
  display: block;
  width: 100%;
  background-color: #b2eb50; /* The lime green from your screenshot */
  color: #333;
  text-align: center;
  padding: 12px 0;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  transition: transform 0.2s;
}

.btn-join-card:hover {
  transform: translateY(-2px);
  background-color: #a3d944;
}

.org-card-title {
  margin: 5px 0 0 0;
  font-size: 1rem;
  color: #333;
  line-height: 1.2;
}

/********* Sitewide-Member registrat ****/
/* Sitewide Member Registration Styling */
.member-signup {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.member-signup h2 {
  color: #2D3436;
  border-bottom: 2px solid #7FB347; /* Sage Green */
  display: inline-block;
  margin-bottom: 20px;
}

.member-icon {
  font-size: 3rem;
  color: #7FB347;
  display: block;
  margin-bottom: 10px;
}
/* Responsive */
@media (max-width: 768px) {
  .profile-header-card { flex-direction: column; text-align: center; }
  .profile-grid { grid-template-columns: 1fr; }
      
      .dynamic-fields .field {
        display: block;
    }
    
    .averages-list {
            display: flex;
            flex-direction: column;
           
    }
    .member-list-container {
        margin-left: -1.2rem;
        margin-right: -1.2rem;
    }
}

@media (min-width: 768px) {
    .menu-wrap {
        position: relative;
        width: 100%;
        max-width: 100%;
        padding: 0;
        transform: none;
        z-index: 10;
    }
    .padding-global {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media only screen and (min-width: 501px) and (max-width: 767px) {
    .sidebar, #sidebar-left, #sidebar-right, .two-sidebar #sidebar-right, .two-sidebar #sidebar-left {
        float: none;
        width: 280px;
        margin: 0;
        padding: calc(var(--sm-space-unit) * 3);
    }
    .menu-wrap {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        transform: none !important;
        z-index: 10;
    }
    .padding-global {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

@media (max-width: 500px) {
    .sidebar, #sidebar-left, #sidebar-right, .two-sidebar #sidebar-left, .two-sidebar #sidebar-right {
        float: none;
        width: 280px;
        margin: 0;
        padding: calc(var(--sm-space-unit) * 3);
    }
    .menu-wrap {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        transform: none !important;
        z-index: 10;
    }
    .padding-global {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
