:root {
    --brand-dark-blue: #013b52;
    --brand-dark-blue-rgb: 1 59 82;
    --brand-sprout: #e3e37a;
    --brand-sprout-rgb: 227 227 122;
    --brand-orange: #eb662e;
    --brand-orange-rgb: 235 102 46;
    --brand-turquoise: #0f828a;
    --brand-turquoise-rgb: 15 130 138;
    --brand-blue: #005c96;
    --brand-blue-rgb: 0 92 150;
    --brand-light-green: #abd096;
    --brand-light-green-rgb: 171 208 150;
    --brand-forest-green: #11713b;
    --brand-forest-green-rgb: 17 113 59;
    --brand-solid-orange: #ed832d;
    --brand-solid-orange-rgb: 237 131 45;
    --brand-solid-turquoise: #128383;
    --brand-solid-turquoise-rgb: 18 131 131;
    --brand-solid-light-blue: #7ea7b2;
    --brand-solid-light-blue-rgb: 126 167 178;
    --brand-solid-green: #6cbb5d;
    --brand-solid-green-rgb: 108 187 93;
    --primary-color: var(--brand-dark-blue);
    --secondary-color: var(--brand-orange);
    --accent-color: var(--brand-turquoise);
    --font-sans: "Plus Jakarta Sans", sans-serif;
    --font-display: "Plus Jakarta Sans", serif;
    --alamtri-bg: #fff;
    --alamtri-bg-2: #dce9ea;
    --alamtri-navy: var(--primary-color);
    --alamtri-navy-2: var(--brand-blue);
    --alamtri-earth: var(--secondary-color);
    --alamtri-green: var(--brand-forest-green);
    --alamtri-turquoise: var(--accent-color);
    --alamtri-sprout: var(--brand-sprout);
    --alamtri-light-green: var(--brand-light-green);
    --alamtri-ink: var(--primary-color);
    --alamtri-muted: #4b6268;
}

body {
    margin: 0;
    font-family:
        var(--font-sans),
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--alamtri-bg);
    color: var(--alamtri-ink);
}

html {
    scroll-behavior: smooth;
}

.font-display {
    font-family: var(--font-display), serif;
}

.font-body {
    font-family: var(--font-sans), sans-serif;
}

::selection {
    background: var(--alamtri-navy);
    color: #fff;
}

.alamtri-container {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 768px) {
    .alamtri-container {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

.grain {
    position: relative;
}

.grain::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.6;
    mix-blend-mode: overlay;
}

.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    height: 1px;
    width: 0;
    background: currentColor;
    transition: width 260ms ease;
}

.hover-underline:hover::after {
    width: 100%;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeLeft {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeRight {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-up,
.fade-down,
.fade-left,
.fade-right {
    opacity: 0;
}

.fade-up.visible {
    animation: fadeUp 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-down.visible {
    animation: fadeDown 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-left.visible {
    animation: fadeLeft 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-right.visible {
    animation: fadeRight 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.glass {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.glass-dark {
    background: rgba(1, 59, 82, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--alamtri-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--alamtri-navy);
    border-radius: 6px;
}

.note-modal {
    z-index: 999999 !important;
}

.note-popover {
    z-index: 999999 !important;
}

.note-toolbar {
    z-index: 1 !important;
}

.note-modal-backdrop {
    display: none !important;
}

.note-editable ul {
    list-style: disc !important;
    padding-left: 30px !important;
}

.note-editable ol {
    list-style: decimal !important;
    padding-left: 30px !important;
}

.note-editable h1 {
    font-size: 2rem;
}

.note-editable h2 {
    font-size: 1.5rem;
}

.note-editable h3 {
    font-size: 1.25rem;
}

.summernote-content img {
    max-width: 100%;
    height: auto;
}

.summernote-content img[style*="float: left"] {
    margin-right: 20px !important;
    margin-bottom: 10px !important;
}

.summernote-content img[style*="float: right"] {
    margin-left: 20px !important;
    margin-bottom: 10px !important;
}

.summernote-content ul {
    list-style-type: disc;
    margin-left: 1.5rem;
    padding-left: 1rem;
}

.summernote-content ol {
    list-style-type: decimal;
    margin-left: 1.5rem;
    padding-left: 1rem;
}

.summernote-content li {
    /* margin-bottom: 0.5rem; */
}

.summernote-content ul ul {
    list-style-type: circle;
}

.summernote-content ol ol {
    list-style-type: lower-alpha;
}

/* Custom Styling to match Board of Commissioners.html */

.te-section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.te-section-title .te-section-content {
    display: flex;
    gap: 8px;
    flex-direction: column;
    z-index: 2;
    position: relative;
    width: 100%;
}

.te-section-title .short-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 4px;
    line-height: 28px;
    color: #0f828a;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 20px;
    text-transform: uppercase;
}

.te-section-title .title {
    font-size: 48px;
    font-weight: 600;
    line-height: 58px;
    letter-spacing: -0.5px;
    font-family: "Jost", sans-serif;
    color: #182b54;
    margin-bottom: 0;
}

@media only screen and (max-width: 767px) {
    .te-section-title .title {
        font-size: 28px;
        line-height: 40px;
        letter-spacing: -0.5px;
    }
}

/* Sibling Navigation - Portfolio Filter */
.te-portfolio-filter {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px !important;
    width: 100%;
    list-style: none;
}

.te-portfolio-filter li {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -0.4px;
    text-transform: none !important;
    display: inline-block;
    cursor: pointer;
    font-family: "Jost", sans-serif;
    color: #182b54;
    border: 1px solid #0f828a;
    padding: 8px 20px;
    -webkit-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
    margin: 0 4px;
}

.te-portfolio-filter li.active {
    border-color: #0f828a;
    background-color: #0f828a;
    color: #ffffff;
}

.te-portfolio-filter li:hover {
    background-color: #0f828a;
    border-color: #0f828a;
    color: #ffffff;
}

/* Mobile Dropdown Menu */
.dropdown-mobile.navigation-mobile-wrapper {
    position: relative;
    display: none;
}

.dropdown-mobile-toggle {
    white-space: nowrap;
    padding: 10px 22px;
    background-color: #fff;
    color: #182b54;
    cursor: pointer;
    border: 1px solid #0f828a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Jost", sans-serif;
    font-weight: 500;
}

.dropdown-mobile-menu {
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    padding: 0;
    font-size: 1rem;
    color: #212529;
    background-color: #fff;
    list-style: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e3e3e3;
    border-top: none;
}

.dropdown-mobile-item {
    display: block;
    width: 100%;
    text-decoration: none;
    background-color: transparent;
    color: #182b54;
    font-size: 16px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: -0.4px;
    margin-bottom: 0;
    padding: 10px 22px;
    border-bottom: 1px solid #e3e3e3;
    text-align: left;
    font-family: "Jost", sans-serif;
}

.dropdown-mobile-item:last-child {
    border-bottom: none;
}

.dropdown-mobile-item a {
    color: #182b54;
}

.dropdown-mobile-item:hover,
.dropdown-mobile-item.active {
    background-color: #0f828a;
    color: #ffffff;
}

.rounded-15 {
    border-radius: 15px !important;
}

@media screen and (max-width: 768px) {
    .dropdown-mobile.navigation-mobile-wrapper {
        display: inline-block !important;
        width: 100%;
    }

    .navigation-wrapper {
        display: none !important;
    }
}

/* Summernote content typography and styling from database */
.summernote-content {
    font-family: var(--font-sans), sans-serif;
    color: #182b54;
    font-size: 16px;
    line-height: 1.8;
}

.summernote-content p {
    /* margin-bottom: 1.25rem; */
    color: #182b54;
    text-align: justify;
    line-height: 1.8;
}

.summernote-content h1,
.summernote-content h2,
.summernote-content h3,
.summernote-content h4,
.summernote-content h5,
.summernote-content h6 {
    font-family: "Jost", var(--font-sans), sans-serif;
    color: #043952 !important;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.summernote-content h1 {
    font-size: 2.25rem;
}

.summernote-content h2 {
    font-size: 1.875rem;
}

.summernote-content h3 {
    font-size: 1.5rem;
}

.summernote-content h4 {
    font-size: 1.25rem;
}

.summernote-content h5 {
    font-size: 1.125rem;
}

.summernote-content h6 {
    font-size: 1rem;
}

.summernote-content a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.summernote-content a:hover {
    text-decoration: underline;
}

.summernote-content ul,
.summernote-content ol {
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}

.summernote-content ul {
    list-style-type: disc !important;
}

.summernote-content ol {
    list-style-type: decimal !important;
}

.summernote-content li {
    margin-bottom: 0.5rem;
    text-align: justify;
}

/* Table styles matching bootstrap .table */
.summernote-content table {
    width: auto !important;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border-collapse: collapse;
    vertical-align: top;
    border-style: solid;
}

.summernote-content th,
.summernote-content td {
    padding: 0.75rem 1.5rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.summernote-content thead th {
    vertical-align: bottom;
    border-bottom: 2px solid #dee2e6;
}

.summernote-content td span,
.summernote-content td a {
    font-family: "Jost", sans-serif;
}

/* Table responsive container */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

/* Board Member Cards (.te-team-card) */
.te-team-card {
    position: relative;
    background-color: #ffffff;
    -webkit-box-shadow: 0px 10px 60px 0px rgba(0, 0, 0, 0.07);
    box-shadow: 0px 10px 60px 0px rgba(0, 0, 0, 0.07);
    border: 1px solid #f4f5fa;
    overflow: hidden;
    transition: all 0.3s ease;
}

.te-team-card:hover {
    -webkit-box-shadow: 0px 15px 70px 0px rgba(0, 0, 0, 0.12);
    box-shadow: 0px 15px 70px 0px rgba(0, 0, 0, 0.12);
}

.te-team-card:hover .image:before {
    height: 250%;
    -webkit-transition: all 900ms linear;
    transition: all 900ms linear;
    background-color: transparent;
}

.te-team-card:hover .image img {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
}

.te-team-card .image {
    overflow: hidden;
    position: relative;
    aspect-ratio: 3/4;
}

.te-team-card .image:before {
    position: absolute;
    width: 200%;
    height: 0%;
    left: 50%;
    top: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);
    transform: translate(-50%, -50%) rotate(-45deg);
    content: "";
    z-index: 1;
}

.te-team-card .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-transform: scale(1);
    transform: scale(1);
    -webkit-transition: all 0.5s ease-out;
    transition: all 0.5s ease-out;
}

.te-team-card .te-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    z-index: 2;
    position: relative;
    padding: 25px 15px;
    text-align: center;
    border-top: 1px solid #f4f5fa;
}

.te-team-card .te-content-wrapper .content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    gap: 6px;
    position: relative;
}

.te-team-card .te-content-wrapper .content .title {
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.5px;
    color: #182B54 !important;
    font-family: "Jost", sans-serif;
    margin: 0 !important;
}

.te-team-card .te-content-wrapper .content .desc {
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    color: #67687A;
    font-family: "Kumbh Sans", sans-serif;
    margin: 0 !important;
}

/* Modal Content Styling (for rich text) */
.modal-content-styled {
    font-family: "Kumbh Sans", var(--font-sans), sans-serif;
    color: #67687a;
}

.modal-content-styled p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.modal-content-styled ul {
    list-style-type: disc !important;
    padding-left: 1.5rem !important;
    margin-bottom: 0.75rem !important;
}

.modal-content-styled ol {
    list-style-type: decimal !important;
    padding-left: 1.5rem !important;
    margin-bottom: 0.75rem !important;
}

.modal-content-styled li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
    list-style-position: outside;
}

/* Spacing for sections without a banner image to prevent fixed navbar overlap */
.section-no-banner {
    padding-top: 130px !important;
}

@media (min-width: 768px) {
    .section-no-banner {
        padding-top: 160px !important;
    }
}
