:root {
    --bg-base: #FFFFFF;
    --bg-base-secondary: #F7FAFC;
    --bg-base-tertiary: #EDF2F7;
    --bg-surface: #F7FAFC;
    --bg-elevated: #FFFFFF;
    --text-base: #2D3748;
    --text-base-secondary: #4A5568;
    --text-base-tertiary: #718096;
    --text-muted: #718096;
    --border-base: #E2E8F0;
    --border-base-light: #F7FAFC;
    --border-base-dark: #CBD5E0;
    --primary: #FACB1F;
    --primary-hover: #E5B200;
    --secondary: #1F4287;
    --secondary-hover: #1A3670;
    --theme-color: #FFCD24;
}

/* Hide old header */
.header-main { display: none !important; }

/* Hide admin toolbar */
#toolbar-item-administration-tray, #toolbar-administration, #toolbar-bar, .toolbar-tray {
    display: none !important;
}

body {
    padding-top: 0 !important;
    background-color: white !important;
    font-family: 'Poppins', sans-serif !important;
}

/* HEADER STYLES FROM HOME PAGE */
.aj-custom-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #FFFFFF !important; /* Force white background */
    border-bottom: 1px solid var(--border-base);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

#assembleia-form-assembleias-proximas > header > div > a > span{
color: #000 !important;
    display: initial;
    font-size: 21px !important;
    font-weight: 700 !important;
    font-family: 'Poppins' !important;
}

.aj-custom-header .container {
    width: 100%;
    max-width: 85% !important;
    margin-top: 10px;
    margin-bottom: 10px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.text-base {
    font-size: 14px !important;
    line-height: 1.0rem;
    color: black;
}

header.aj-custom-header nav {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-right: 10px;
}

.overflow-hidden {
    border-color: #87898921;
    overflow: hidden;
    border-width: 31ox;
    border-style: double;
}

.pb-2 {
    padding-bottom: 0.5rem;
    text-align: -webkit-left;
}

.assembleia-form-assembleias-proximas a {
    float: none !important;
    padding: 6px 14px;
    border: none !important;
    border-radius: 10px;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
}

header.aj-custom-header nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Menu Styles */
.aj-custom-header .home-header-menu { position: relative }

.aj-custom-header .home-header-menu .menu-button { 
    display: inline-flex;
    place-content: center; 
    padding: 6px 10px; 
    border: 1px solid var(--primary); 
    border-radius: 6px; 
    background: var(--primary); 
    color: #000; 
    cursor: pointer; 
    font-size: .875rem;
    min-width: 169px !important;
    height: 43px !important;
}

.aj-custom-header .home-header-menu .menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    min-width: 220px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    padding: 8px 0;
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-5px);
    transition: visibility 0s linear 0.5s, opacity 0.3s ease-out, transform 0.3s ease-out;
    z-index: 1001;
    list-style: none;
    margin: 0;
    text-align: left;
}

.text-primary {
    color: var(--primary);
    font-size: 17px !important;
}

.transition-colors {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-duration: 150ms;
    border-top: outset;
    row-gap: normal;
}

p {
    margin: 0 0 1rem 0;
    font-size: 16px !important;
}

@media (min-width: 768px) {
    .md\:items-center {
        align-items: center;
        gap: 10px;
    }
}

.transition-colors
 {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-duration: 150ms;
    border: solid !important;
    border-color: #67676714 !important;
}



.aj-custom-header .home-header-menu:hover .menu-list, 
.aj-custom-header .home-header-menu:focus-within .menu-list,
.aj-custom-header .home-header-menu .menu-button[aria-expanded="true"] + .menu-list {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.aj-custom-header .home-header-menu .menu-link { 
    display: block !important; 
  padding: 3px 12px; 
  font-family: 'Poppins', sans-serif !important;
  weight: 100 !important;
  border: none !important;
  text-transform: capitalize !important;
  color: var(--text-base); 
  white-space: nowrap;
  text-decoration: none !important;
  font-size: 0.9rem;
  background-color: transparent !important;
  background: transparent !important;
  text-align-last: left !important;
}

#assembleia-form-assembleias-proximas > div > div > div > div.flex.items-center.justify-between.cursor-pointer.py-2.border-b.border-gray-300.hover\:bg-gray-50.transition-colors {
background: #facb1f !important;
}

#month-section-8b910cf1e659c27b821838d7334969d5 > div > div > div.md\:ml-4.flex.flex-wrap.gap-2 {
margin-left: -9rem !important;
}

#assembleia-form-assembleias-proximas > div > div > div > div.flex.items-center.justify-between.cursor-pointer.py-2.border-b.border-gray-300.hover\:bg-gray-50.transition-colors > h2 {
color: #020101 !important;
    text-transform: unset !important;
    font-family: 'Poppins';
    font-weight: 100 !important;
}

.aj-custom-header .home-header-menu .menu-button:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.aj-custom-header .home-header-menu .menu-link:hover { background: var(--bg-base-secondary); }

/* Nested menu support */
.aj-custom-header .home-header-menu .menu-list .has-submenu { position: relative; }
.aj-custom-header .home-header-menu .menu-list .submenu {
    display: none;
    position: absolute;
    right: 100%;
    top: 0;
    min-width: 220px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-base);
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,.08);
    padding: 8px 0;
    list-style: none;
    margin: 0;
}
.aj-custom-header .home-header-menu .menu-list .has-submenu:hover > .submenu,
.aj-custom-header .home-header-menu .menu-list .has-submenu:focus-within > .submenu {
    display: block;
}

.assembleia-search {
    font-size: 14px !important;
    line-height: 1.0rem;
    color: black !important;
}

/* Global Button Styles (matched from home-page.css but scoped to avoid breaking list buttons) */
.aj-custom-header .btn-primary {
    background-color: var(--theme-color);
    color: #363638;
    border-radius: 6px !important;
    padding: 6px 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease-in-out;
}
.aj-custom-header .btn-primary:hover {
    background-color: var(--primary-hover);
}

mb6 flex justify-end {
    color: black !important;
}


.assembleia-form-assembleias-proximas .mb-8 a.btn {
    padding: 6px 14px;
    border: none !important;
    border-radius: 10px;
    transition: all 0.4s ease-in-out;
}

.assembleia-external-badge {
    display: inline-block;
    background-color: #eceff4;
    color: #111827;
    font-size: 11px;
    font-weight: 500;
    border-radius: 999px;
    padding: 4px 10px;
    margin-bottom: 4px;
    margin-inline-start: auto;
    text-decoration: none;
}

.node-content input[type="text"], .node-content input[type="email"], .node-content input[type="url"], .node-content input[type="password"], .node-content input[type="search"], textarea {
    --footer-color: black;
    margin-bottom: 20px;
}

/* Utilities needed for header */
.w-full { width: 100%; }
.bg-base { background-color: #FFFFFF; }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.border-b { border-bottom-width: 1px; }
.border-base { border-color: var(--border-base); }
.flex { display: flex; }
.items-center { align-items: center; }
.ml-auto { margin-left: auto; }
.gap-3 { gap: 0.75rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.ml-3 { margin-left: 0.75rem; }
.h-12 { height: 3rem; }

/* Assemblex Logo */
img { max-width: 100%; height: auto; }

/* Utilities for Content Cards */
.bg-white { background-color: #FFFFFF; }
.rounded-lg { border-radius: 0.5rem; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.border { border-width: 1px; }
.border-gray-200 { border-color: #E2E8F0; }
.overflow-hidden { overflow: hidden; width: 110% !important; justify-self: center !important;  }
.divide-y > * + * { border-top-width: 1px; border-top-color: #F7FAFC; }
.p-4 { padding: 1rem; }
.hover\:bg-blue-50:hover { background-color: #EBF8FF; }
.transition-colors { transition-property: background-color, border-color, color, fill, stroke; transition-duration: 150ms; }
.flex-col { flex-direction: column; gap: 10px;}
.md\:flex-row { flex-direction: row; }
.md\:items-center { align-items: center; }
.md\:w-64 { width: 16rem; }
.mb-3 { margin-bottom: 0.75rem; }
.md\:mb-0 { margin-bottom: 0; }
.items-start { align-items: flex-start; color: black !important; }
.mr-2 { margin-right: 0.5rem; }
.flex-shrink-0 { flex-shrink: 0; }
.h-5 { height: 1.25rem; }
.w-5 { width: 1.25rem; }
.text-primary { color: var(--primary); }
.font-medium { font-weight: 500; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-gray-500 { color: #718096; }
.flex-grow { flex-grow: 1; }
.mb-1 { margin-bottom: 0.25rem; }
.font-semibold { font-weight: 600; }
.ml-2 { margin-left: 0.5rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); color: black !important; }
.gap-3 { gap: 0.75rem; }
.ml-1 { margin-left: 0.25rem; }
.md\:ml-4 { margin-left: -9rem !important; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-primary {
    background-color: var(--primary);
    color: #000;
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}
.mb-8 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.border-primary { border-color: var(--primary); }
.pb-2 { padding-bottom: 0.5rem; }

@media (min-width: 768px) {
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:w-64 { width: 16rem; }
    .md\:mb-0 { margin-bottom: 0; }
    .md\:ml-4 { margin-left: 0rem; }
}

.bg-red-100 { background-color: #FED7D7; }
.text-red-800 { color: #9B2C2C; }

.container {
    position: relative;
    width: 95% !important;
    max-width: 1292px !important;
    margin: 0 auto;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .text-base { 
        font-size: 1rem; 
        line-height: 1.5rem; 
        display: none !important; 
    } 
    
    .header-notification-bell-container { 
        display: none !important; 
    } 
    
    img, picture, figure, svg { 
        display: unset; 
        max-width: 100% !important; 
        height: auto; 
    } 
    
    .md\:flex-row { 
        flex-direction: column !important; 
        align-items: center !important;
    } 
    
    .flex { 
        row-gap: 10px; 
        display: flex; 
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    } 
    
    .gap-3 { 
        gap: 0.75rem; 
        place-items: center; 
        justify-content: center !important;
        margin-left: 0 !important;
    } 
    
    .pb-2 { 
        padding-bottom: 0.5rem; 
        text-align: center !important;
        justify-content: center !important;
    }

    /* Header adjustments */
    .aj-custom-header .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .aj-custom-header .container > a {
        justify-content: flex-start;
        width: auto;
        margin-bottom: 0;
    }
    
    /* Hide unwanted header items on mobile */
    header.aj-custom-header nav > span.text-base, /* Username */
    header.aj-custom-header nav > span.ml-2,      /* Profile Icon */
    .header-notification-bell-wrapper,            /* Notification Bell */
    header.aj-custom-header nav > a[title="Limpar Cache do Drupal"] /* Trash Icon */
    {
        display: none !important;
    }

    /* Content adjustments */
    .assembleia-form-assembleias-proximas h1 {
        text-align: center !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
    }

    .assembleia-form-assembleias-proximas .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    header.aj-custom-header nav {
        margin-right: 0 !important;
        width: auto !important;
        justify-content: flex-end !important;
        flex-wrap: nowrap !important; /* Keep on one line */
        flex-direction: row !important;
        gap: 0.5rem !important;
    }

    /* Fix Menu Button width on mobile */
    .aj-custom-header .home-header-menu .menu-button {
        min-width: auto !important;
        width: auto !important;
        padding: 6px 10px !important;
    }
    
    /* Adjust Sair button if needed */
    .aj-custom-header nav .btn {
        padding: 6px 10px !important;
    }

    /* Search Input in Content */
    #assembleia-search {
        width: 100% !important;
        max-width: 100% !important;
        text-align: center;
        border-radius: 6px !important;
        margin-bottom: 10px;
    }
    
    /* Ensure the container of the search input is centered */
    .assembleias-page-wrapper .flex.justify-end {
        justify-content: center !important;
        width: 100% !important;
    }

    /* List Item Adjustments */
    .md\:ml-4 {
        margin-left: 0 !important;
        margin-top: 0.5rem;
        justify-content: center;
        width: 100% !important;
    }
    
    .assembleia-item .flex-wrap {
        justify-content: center !important;
    }
    
    .assembleia-item .btn {
        width: 100% !important; /* Full width buttons on mobile */
        justify-content: center;
        margin-bottom: 0.5rem;
    }
    
    .assembleia-item .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .flex {
        row-gap: 0px !important;
        display: flex;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        border: none !important;
    }
}

body > header > div {
    gap: 35% !important
}

body.path-assembleias_proximas .font-semibold {
    font-weight: 600;
    text-align: left;
    width: 58%;
}


#assembleia-form-assembleias-proximas > div > div > div:nth-child(2) > div > div > div:nth-child(4) > div > div.flex-grow.mb-3.md\:mb-0 > div.flex.items-start.mb-1 > h3 {
 font-weight: 600;
    text-align: left;
    width: 58%;
}

#assembleia-form-assembleias-proximas h3 {
 font-weight: 600;
    text-align: left;
    width: 58%;
}

#assembleia-form-assembleias-proximas > div > div > div:nth-child(2) > div > div > div:nth-child(4) > div > div.md\:ml-4.flex.flex-wrap.gap-2 {
flex-wrap: none !important;
flex-flow: nowrap;
}

#assembleia-form-assembleias-proximas .flex-wrap {
    flex-wrap: none !important;
}

.flex-wrap {
    flex-wrap: nowrap !important;
}

#assembleia-form-assembleias-proximas > div > div > div > div.flex.items-center.justify-between.cursor-pointer.py-2.border-b.border-gray-300.hover\:bg-gray-50.transition-colors {
    align-items: center;
    background: #facb1f61;
    place-content: center !important;
}

#assembleia-form-assembleias-proximas > div > div > div > div.flex.items-center.justify-between.cursor-pointer.py-2.border-b.border-gray-300.hover\:bg-gray-50.transition-colors > h2  {
color: black !important;
    text-transform: uppercase;
    font-weight: bold;
}

#assembleia-form-assembleias-proximas h3 {
    color: black !important;
    text-transform: uppercase;
    font-weight: bold;
        max-width: 50%;
}

#assembleia-form-assembleias-proximas p.font-medium {
    max-width: 75%;
}
  
