/* Basic resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    background-color: #1c2c24;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    padding-top: 200px;
    background-color: transparent; /* Let the video show through */
    font-family: 'Roboto Condensed', sans-serif;
    color: #fff;
    min-height: 100vh;
    min-height: 100dvh; /* Use dynamic viewport height on mobile */
    display: flex;
    flex-direction: column;
}

body img {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

#bg-video, #next-video {
    position: fixed;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    z-index: -2; /* Keep behind overlay/content */
    opacity: 0;
    transition: opacity 1.5s ease;
}

#bg-video.video-hidden,
#next-video.video-hidden {
    visibility: hidden;
}

#bg-video.fade-in {
    opacity: 1;
}

#next-video {
    opacity: 0;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 110vh;
/*  background-color: rgba(0, 0, 0, 0.7); */
/*  backdrop-filter: blur(3px); */
    z-index: -1;
    transform: translateZ(0); /* Trigger GPU acceleration */
    will-change: transform; /* Hint to browsers for better performance */
}

.loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    --overlay-alpha: 1;
    z-index: 2000;
    opacity: 1;
    pointer-events: auto;
    touch-action: none;
}

.loading-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(221, 216, 188, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    position: relative;
    z-index: 1;
    transition: opacity 0.5s ease;
}

.loading-brand {
    font-family: 'Funnel Display', sans-serif;
    font-size: 64px;
    letter-spacing: 0.18em;
    color: #ddd8bc;
    text-transform: uppercase;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 5px solid rgba(221, 216, 188, 0.25);
    border-top-color: #dcbc7f;
    animation: loading-spin 0.9s linear infinite;
}

@keyframes loading-spin {
    to { transform: rotate(360deg); }
}

.loading-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.85), rgba(28, 44, 36, 0.9));
    background-color: rgba(0, 0, 0, 0.9);
    opacity: var(--overlay-alpha);
    transition: opacity 0.6s ease;
    z-index: 0;
}

.loading-bar-fill {
    position: absolute;
    inset: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(133, 187, 101, 0.95), rgba(221, 216, 188, 0.9));
    animation: loading-bar-fill 2.2s ease-in-out infinite;
}

@keyframes loading-bar-fill {
    0% { width: 0; opacity: 0.2; }
    10% { opacity: 1; }
    60% { width: 100%; }
    100% { width: 100%; opacity: 0.45; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer {
    width: 100%;
}

.container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0px auto 50px auto;
    box-sizing: border-box;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% + 50px);
    transform: translateX(-25px);    
    padding: 0 25px;
    z-index: 1;
    background: radial-gradient(ellipse at top, rgba(0,0,0,0.8), transparent),
                radial-gradient(ellipse at bottom, rgba(94,131,71,0.8), transparent);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    z-index: 100;
    transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px;
    gap: 20px;
    flex-wrap: nowrap;
    overflow: visible;
}

.accent-vertical {
    width: 4px;
    height: 100px;
    background-color: #85bb65;
    border-radius: 2px;
    flex-shrink: 0;
    margin-left: 5vw;
}

.sticky .accent-vertical {
    height: 50px;
    transition: height 0.3s ease, margin 0.3s ease;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.logo img {
    display: block;
    width: 800px;
    max-width: 50vw; /* Responsive logo size */
    height: auto;
    transition: max-width 0.3s ease; /* Smooth logo resize */
    pointer-events: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    padding: 0;
    box-sizing: content-box;
}
 
.hamburger span {
    width: 30px;
    height: 3px;
    background: #ddd8bc;
    margin: 5px 0;
    transition: 0.4s ease;
    border-radius: 2px;
}

/* Transform hamburger into X when open */
.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

.navbar {
    flex-grow: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    transition: transform 0.3s ease;
}

.auth-cta {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.nav-auth-btn {
    border: 1px solid rgba(221, 216, 188, 0.35);
    background: linear-gradient(135deg, rgba(133, 187, 101, 0.95), rgba(90, 140, 86, 0.9));
    color: #0f1e12;
    font-family: 'Funnel Display', sans-serif;
    font-size: 0.95em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 18px;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(5, 20, 8, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-auth-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 18px 30px rgba(5, 20, 8, 0.5);
}

.nav-auth-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(159, 211, 123, 0.35);
}

.nav-auth-text {
    white-space: nowrap;
}

.navbar ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px 30px;
    list-style: none;
    width: 100%;
    max-width: 600px;
    margin: 0;
    padding: 0;
}
  
.navbar li {
    margin: 0;
    text-align: center;
    flex: 0 1 calc(50% - 15px);
    min-width: max-content;
    max-width: 200px;
    display: flex; /* Add flex display */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
}

.navbar ul {
    font-size: 1.2em;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0 0 20px 0;
    gap: 15px;
}

.navbar li {
    margin: 0;
    text-align: center;
    flex: 0 1 calc(50% - 15px); /* Set items to prefer 50% width minus gap */
    min-width: max-content; /* Ensure text doesn't get crushed */
    max-width: 200px; /* Prevent items from getting too wide */
}

.navbar a {
    color: #ddd8bc;
    font-family: 'Funnel Display', sans-serif;
    font-variant: small-caps;
    text-decoration: none;
    font-size: 1.2em;
    white-space: normal;
    display: inline-block;
    line-height: 1.2;
    padding: 5px 10px;
    transition: color 0.3s ease;
    text-align: center; /* Ensure text is centered */
    width: 100%; /* Take full width of li */
}

.navbar a:hover {
    color: #85bb65; /* Hover color */
    text-decoration: none;
}

.navbar a.active {
    color: #85bb65; /* Active color */
    font-weight: bold; /* Optional: make the active link bold */
}

.accent-bar {
    width: 80vw;
    height: 6px;
    border-radius: 3px;
    background-color: #85bb65;
    margin: 0 auto 20px auto;
}

.sticky {
    height: 150px;
    transition: height 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.sticky .logo img {
    max-width: 300px;
    transition: max-width 0.3s ease;
    padding: 0;
    margin: 0 auto;
}

.sticky .navbar ul {
    font-size: 1.0em;
    padding: 0;
    margin-top: 0;
    margin-bottom: 10px;
    transition: margin-bottom 0.3s ease;
}

.sticky .accent-bar {
    height: 3px;
    border-radius: 1.5px;
    margin: 0 auto 10px auto;
}

.main-content {
    position: relative;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 1);
    overflow-x: hidden;
    z-index: 2;
    flex: 1 0 auto; /* Grow to fill vertical space so footer stays at bottom */
}

.content-section {
    margin: 60px 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 10px;
}

.content-section h2 {
    font-family: 'Funnel Display', sans-serif;
    font-size: 2.5em;
    color: rgba(221,216,188,1);
    text-shadow: 2px 2px 0 rgba(0,0,0,1);
    margin-bottom: 20px;
}

.section-content h3 {
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.75em;
    color: #85bb65;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.7);
    margin: 35px 0 12px 0;
}

.section-content h4 {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 1.35em;
    font-weight: 600;
    color: rgba(221, 216, 188, 0.9);
    text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
    margin: 28px 0 10px 0;
}

.section-content {
    line-height: 1.6;
}

.section-content p {
    margin-bottom: 20px;
    font-size: 1.2em;
    line-height: 1.8;
}

.companies-note {
    font-size: 0.95em;
    color: rgba(221, 216, 188, 0.85);
    text-align: center;
    margin: 10px auto 0;
    max-width: 720px;
}

#companies-section ul li {
    display: block;
}

.company-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
}

.company-card h3 {
    color: inherit;
}

.company-card p {
    color: #ccc;
    transition: color 0.3s ease;
}

.company-card:hover,
.company-card:focus {
    background-color: rgba(133, 187, 101, 0.12);
    color: #85bb65;
}

.company-card:hover p,
.company-card:focus p {
    color: #e2e2e2;
}


.services-list {
    list-style-type: none;
    padding: 10px 20px 30px 20px;
    margin: 10px 0 30px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)); /* This prevents overflow */
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}

.services-list li {
    margin-bottom: 12px;
    position: relative;
    font-size: 1.15em;
    line-height: 1.5;
    padding-left: 20px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.services-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fff;
    display: block;
}

.legal-list {
    list-style-type: none;
    padding: 20px;
    margin: 0 10px 0 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 90%;
    box-sizing: border-box;
}

.legal-list li {
    margin-bottom: 15px;
    position: relative;
    font-size: 1em;
    line-height: 1;
    padding-left: 20px;
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

/* Links styling */
ul {
    list-style-type: none;
    flex: 1 1 auto; /* Allow the ul to grow and shrink */
    margin: 0 auto; /* Adjust margins for better spacing */
    max-width: 100%; /* Ensure ul doesn't exceed the container width */
    padding: 0; /* Remove any default padding */
}

ul li {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.commitment-list {
    list-style: disc;
    flex: none;
    padding-left: 25px;
    margin: 0 0 20px 20px;
    /* Match paragraph sizing in section content */
    font-size: 1.2em;
    line-height: 1.8;
}

.commitment-list li {
    display: list-item;
    align-items: initial;
    margin-bottom: 10px;
}

.contact-section {
    background: transparent;
    padding: 0;
    margin-top: 60px;
}

.contact-section h2 {
    margin-bottom: 24px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    align-items: start;
}

.contact-panel {
    position: relative;
    padding: 36px 34px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(6, 18, 8, 0.92), rgba(18, 46, 24, 0.72));
    border: 1px solid rgba(133, 187, 101, 0.35);
    backdrop-filter: blur(14px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.contact-panel::before {
    content: '';
    position: absolute;
    inset: -20% 55% 60% -30%;
    background: radial-gradient(circle at center, rgba(133, 187, 101, 0.35), transparent 60%);
    opacity: 0.75;
    pointer-events: none;
}

.contact-panel::after {
    content: '';
    position: absolute;
    inset: 55% -25% -30% 50%;
    background: radial-gradient(circle at center, rgba(133, 187, 101, 0.18), transparent 70%);
    opacity: 0.8;
    pointer-events: none;
}

.contact-panel > * {
    position: relative;
    z-index: 1;
}

.contact-intro {
    font-size: 1.1em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 26px;
}

.contact-wrapper a {
    color: #9fd37b;
    text-decoration: none;
}

.contact-wrapper a:hover .contact-meta-text {
    text-decoration: underline;
}

.contact-meta-text {
    text-decoration: none;
}

.contact-meta {
    display: grid;
    place-items: center;
    gap: 12px;
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

.contact-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(133, 187, 101, 0.25);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, border-color 0.2s ease;
    user-select: text;
}

.contact-meta-item * {
    user-select: text;
}

.contact-meta-item:hover {
    transform: translateY(-2px);
    border-color: rgba(133, 187, 101, 0.55);
}

.contact-meta-item i {
    color: #9fd37b;
    font-size: 1.3em;
}

.contact-meta-primary {
    justify-self: center;
}

.contact-meta-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
}

.contact-meta-note i {
    color: #9fd37b;
}

.contact-address {
    margin-top: 30px;
    font-size: 0.9em;
    line-height: 1.6;
    color: rgba(221, 216, 188, 0.9);
    text-align: left;
}

.contact-address-label {
    font-family: 'Funnel Display', sans-serif;
    font-size: 0.8em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(221, 216, 188, 0.9);
    margin-bottom: 4px;
}

.contact-form form {
    display: grid;
    gap: 20px;
}

.form-title {
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.7em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(221, 216, 188, 0.95);
}

.form-subtitle {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-family: 'Funnel Display', sans-serif;
    font-size: 0.95em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(221, 216, 188, 0.9);
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid rgba(133, 187, 101, 0.3);
    background: rgba(5, 12, 6, 0.75);
    color: #fff;
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: rgba(159, 211, 123, 0.85);
    background: rgba(5, 18, 8, 0.9);
    outline: none;
    box-shadow: 0 0 0 3px rgba(133, 187, 101, 0.25);
}

.form-field textarea {
    resize: vertical;
    min-height: 170px;
}

.required-note {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.6);
}

/* Hide Google reCAPTCHA badge; disclosure text sits under the form */
.grecaptcha-badge {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
}

.recaptcha-note {
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.6;
}

.recaptcha-note a {
    color: #9fd37b;
}

.form-status {
    min-height: 1.5em;
    font-size: 0.95em;
    font-weight: 500;
}

.form-status.success {
    color: #9fd37b;
}

.form-status.error {
    color: #f5a2a2;
}

.contact-form button {
    justify-self: center;
    padding: 16px 38px;
    background: linear-gradient(135deg, #9fd37b, #85bb65);
    color: #0f200f;
    font-family: 'Funnel Display', sans-serif;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 18px 28px rgba(133, 187, 101, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.contact-submit-text {
    line-height: 1.2;
}

.contact-submit-secure {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 0.75em;
    letter-spacing: 0.02em;
    text-transform: none;
    color: rgba(15, 32, 15, 0.7);
}

.contact-submit-secure i {
    font-size: 0.9em;
    color: rgba(15, 32, 15, 0.65);
}

.contact-submit-secure-copy {
    text-transform: none;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 36px rgba(133, 187, 101, 0.4);
}

.contact-form button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(133, 187, 101, 0.35);
}

.contact-form button:active {
    transform: translateY(0);
    box-shadow: 0 12px 22px rgba(133, 187, 101, 0.3);
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 992px) {
    .contact-wrapper {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        padding: 32px 28px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .contact-panel {
        padding: 26px 22px;
        border-radius: 18px;
    }

    .contact-meta-item {
        font-size: 0.95em;
        padding: 10px 12px;
    }

    .contact-meta-note {
        font-size: 0.9em;
    }
}

ul li h3 {
    font-size: 2em;
    margin-bottom: 5px;
/*  font-family: 'Modum", sans-serif;' */
    font-family: 'Libre Baskerville', serif;
}

ul li p {
    font-size: 0.9em;
    margin-bottom: 10px;
    color: #ccc;
    font-family: 'Roboto', sans-serif;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    color: #85bb65;
}

/* Circle/Icon styling */
.company-icon {
    width: 60px;
    height: 60px;
    margin-right: 0;
    flex-shrink: 0;
}

.company-blank {
    width: 60px;
    height: 60px;
    background-color: #fff;
    border-radius: 50%;
    margin-right: 15px;
    flex-shrink: 0;
    opacity: 0.5;
}

#companies-section {
    margin-bottom: 0;
    display: block;
}

#companies-section .companies-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: none;
}

#companies-section .companies-grid li {
    margin: 0;
}

@media (min-width: 768px) {
    #companies-section .companies-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


.board-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.board-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
    transform: translateX(-100%); /* Initial position showing first real slide */
}

.board-member {
    min-width: 100%;
    padding: 20px;
}

.member-content {
    display: flex;
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.member-avatar {
    flex: 0 0 300px;
    text-align: center;
}

.member-avatar img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.member-social {
    margin-top: 15px;
}

.member-social a {
    margin: 0 10px;
    font-size: 1.5em;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.member-social a:hover {
    opacity: 1;
}

.member-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.member-info h3 {
    font-family: 'Funnel Display', sans-serif;
    font-size: 2em;
    margin-bottom: 5px;
    color: #85bb65;
}

.member-info h4 {
    font-size: 1.2em;
    color: #ccc;
    margin-bottom: 20px;
}

.bio-scroll {
    flex: 1;
    overflow-y: auto;
    max-height: 250px;
    /* Add a creative border to just the left and bottom sides */
    border-left: 4px solid #85bb65;
    border-bottom: 4px solid #5e8347;
    border-radius: 10px 0 10px 0;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    margin-top: 20px;
}

.bio-scroll p {
    line-height: 1.6;
    font-size: 1.1em;
    margin-bottom: 10px;
    justify-content: space-between;
    text-align: left;
}

.bio-scroll::-webkit-scrollbar {
    width: 8px;
}

.bio-scroll::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
}

.bio-scroll::-webkit-scrollbar-thumb {
    background: rgba(133,187,101,0.5);
    border-radius: 4px;
}

.bio-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(133,187,101,0.7);
}

.slider-nav {
    position: absolute;
    bottom: 0;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.slider-nav:hover {
    background: rgba(133,187,101,0.8);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background: #85bb65;
}

footer {
    width: 100vw;
    padding: 20px;
    background: radial-gradient(ellipse at top, rgba(94,131,71,0.8), transparent),
                radial-gradient(ellipse at bottom, rgba(0,0,0,0.8), transparent);
    backdrop-filter: blur(10px);
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.5);
    font-size: 0.9em;
    font-family: 'Funnel Display', sans-serif;
    text-align: center;
    flex-shrink: 0; /* Prevent footer from collapsing in flex column */
}

footer span {
    margin: 0 8px;
}

footer address {
    font-style: normal !important;
}

footer .accent-bar {
    height: 3px;
    border-radius: 1.5px;
    margin: 16px auto 20px auto;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 24px;
}

.footer-top {
    margin-bottom: 4px;
}

.footer-bottom {
    margin-top: 8px;
}

.footer-address {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #ffffff;
    text-align: left;
    margin-bottom: 6px;
    font-size: 1.1em;
}

.footer-address-line {
    display: block;
    margin: 0;
}

.footer-address-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(221, 216, 188, 0.95);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.footer-address-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.footer-links {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 12px;
}

.footer-links a {
    position: relative;
    padding: 4px 0;
}

.sep {
    color: rgba(255, 255, 255, 0.25);
    user-select: none;
    pointer-events: none; /* avoid hover/click targeting */
}

.footer-copy {
    display: inline-block;
}

footer a {
    color: rgba(255, 255, 255, 0.65);
    transition: color 0.3s ease;
}

footer a:hover,
footer a:focus-visible {
    color: #85bb65;
}

.half-opacity {
    opacity: 0.5;
}

@media (min-width: 1025px) {
    .footer-content {
        flex-wrap: nowrap;
        gap: 12px 12px;
    }

    .footer-address {
        font-size: 1.45em;
    }

    .footer-address-icon {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
}

@media (max-width: 1024px) {
    .footer-content {
        flex-direction: column;
        gap: 16px;
    }

    .footer-copy {
        margin-left: 0;
        padding-left: 0;
    }

    .copy-sep { display: none; }
}

@media (max-width: 600px) {
    .footer-address {
        font-size: 1.2em;
        justify-content: flex-start;
    }

    .footer-links {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 320px;
        gap: 0;
    }

    .footer-links a {
        display: block;
        padding: 12px 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }

    .footer-links a:first-child {
        border-top: none;
    }

    .sep { display: none; }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
    backdrop-filter: blur(5px); /* Subtle blur effect */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999; /* Ensure it appears above other content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: #111; /* Modal box background */
    color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
}

.modal-content h2 {
    font-family: 'Funnel Display', sans-serif;
    font-size: 2em;
    margin-bottom: 15px;
    color: #85bb65; /* Accent color for headings */
    text-align: center;
}

.modal-content p {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

.modal-content button {
    background-color: #85bb65;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: block;
    margin: 15px auto 0;
}

.modal-content button:hover {
    background-color: #6fa54f;
}

.modal-content .center-text {
    text-align: center;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 25px;
    background: none;
    border: none;
    border-radius: 50% !important;
    font-size: 1.5em;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.auth-modal-content {
    max-width: 720px;
    width: min(92vw, 720px);
    padding: 28px 32px 32px;
    border-radius: 18px;
    background: radial-gradient(circle at top, rgba(38, 60, 40, 0.85), rgba(10, 12, 8, 0.9));
    border: 1px solid rgba(133, 187, 101, 0.25);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.6);
}

.auth-modal-header {
    text-align: center;
    margin-bottom: 22px;
}

.auth-eyebrow {
    font-family: 'Funnel Display', sans-serif;
    font-size: 0.85em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(221, 216, 188, 0.7);
    margin-bottom: 6px;
}

.auth-subtitle {
    font-size: 0.9em !important;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 8px;
    line-height: 1.5;
    text-align: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.auth-subtitle a {
    color: #9fd37b;
    text-decoration: none;
    border-bottom: 1px solid rgba(159, 211, 123, 0.5);
    padding-bottom: 2px;
}

.auth-subtitle a:hover {
    color: #c5e7a5;
    border-bottom-color: rgba(197, 231, 165, 0.7);
}

.auth-tabs {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    border-bottom: 1px solid rgba(221, 216, 188, 0.2);
    margin-bottom: 24px;
    padding-bottom: 4px;
}

.auth-tab {
    background: transparent;
    border: none;
    color: rgba(221, 216, 188, 0.78);
    font-family: 'Funnel Display', sans-serif;
    font-size: 0.95em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 14px 12px;
    cursor: pointer;
    position: relative;
    border-radius: 12px 12px 0 0 !important;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.auth-tab.active {
    background: rgba(159, 211, 123, 0.9);
    color: #0f1e12;
    pointer-events: none;
}

.auth-tab.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: rgba(159, 211, 123, 0.9);
}

.auth-tab:not(.active) {
    background: rgba(159, 211, 123, 0.1);
    opacity: 1;
}

.auth-tab:not(.active):hover {
    color: rgba(221, 216, 188, 0.85);
    opacity: 1;
}

.auth-tab-panel {
    display: none;
    gap: 14px;
}

.auth-tab-panel.active {
    display: grid;
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    color: rgba(221, 216, 188, 0.8);
}

.auth-check input {
    accent-color: #85bb65;
}

.auth-link {
    background: none;
    border: none;
    color: #9fd37b;
    font-size: 0.9em;
    cursor: pointer;
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s ease, opacity 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.auth-link:hover {
    color: #ffffff;
    opacity: 1;
}

.auth-link-right {
    margin-left: auto;
}

.auth-primary {
    background: linear-gradient(135deg, #9fd37b, #85bb65);
    color: #0f1e12;
    font-family: 'Funnel Display', sans-serif;
    font-size: 1em;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 16px 24px rgba(5, 20, 8, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(320px, 100%);
    align-self: center;
}

.auth-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 30px rgba(5, 20, 8, 0.5);
    filter: brightness(0.98);
    color: #ffffff;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(221, 216, 188, 0.6);
    font-size: 0.85em;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 22px 0 6px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(221, 216, 188, 0.2);
}

.auth-provider-row {
    display: grid;
    gap: 12px;
    width: 100%;
    justify-items: center;
    margin-top: 0;
}

.auth-provider-row-signup {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-provider-row-signup .auth-provider {
    width: 100%;
}

.auth-divider-signup span {
    letter-spacing: 0.1em;
}

.auth-provider {
    border: 1px solid rgba(221, 216, 188, 0.25);
    background: rgba(11, 16, 10, 0.85);
    color: rgba(221, 216, 188, 0.9);
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    width: min(320px, 100%);
    box-shadow: 0 16px 24px rgba(5, 20, 8, 0.35);
}

.auth-provider:hover {
    border-color: rgba(159, 211, 123, 0.55);
    transform: translateY(-1px);
    color: #ffffff;
    background: rgba(16, 22, 14, 0.95);
    box-shadow: 0 20px 30px rgba(5, 20, 8, 0.45);
}

.auth-disclaimer {
    font-size: 0.85em;
    color: rgba(221, 216, 188, 0.7);
    text-align: center;
    line-height: 1.5;
}

.auth-consent {
    margin-top: 4px;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    padding-right: 46px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: rgba(221, 216, 188, 0.75);
    cursor: pointer;
    font-size: 1em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 28px;
    height: 28px;
    line-height: 1;
}

.password-toggle:hover {
    color: #9fd37b;
}

.auth-switch-line {
    text-align: center;
    font-size: 0.9em;
    color: rgba(221, 216, 188, 0.75);
    margin: 14px auto 0;
    width: 100%;
}

.auth-switch {
    color: #9fd37b;
    text-decoration: none;
    border-bottom: 1px solid rgba(159, 211, 123, 0.5);
    padding-bottom: 2px;
}

.auth-switch:hover {
    color: #ffffff;
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
    .auth-cta {
        margin-left: 0;
        margin-right: 70px;
    }

    .nav-auth-btn {
        padding: 8px 14px;
        font-size: 0.8em;
    }

    .auth-modal-content {
        padding: 24px;
    }
}

/* For WebKit browsers (Chrome, Safari) */
::-webkit-scrollbar {
    width: 20px !important; /* Width of the scrollbar */
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.8); /* Background of the scrollbar track */
    border-radius: 10px; /* Rounded corners for the track */
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5); /* Color of the scrollbar thumb */
    border-radius: 10px; /* Rounded corners for the thumb */
    border: 3px solid rgba(0, 0, 0, 0.8); /* Adds a border around the thumb */
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7); /* Color of the thumb on hover */
}

/* For Firefox */
* {
    scrollbar-width: thin; /* Makes the scrollbar thinner */
    scrollbar-color: rgba(255, 255, 255, 0.5) rgba(0, 0, 0, 0.8); /* thumb color track color */
}

@media (max-width: 1200px) {
    .services-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header {
        height: auto; /* Allow header to adjust to content */
        min-height: 150px; /* Minimum height when sticky */
    }

    .logo img {
        width: 65vw;
        max-width: 300px;
    }

    .navbar ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px 20px;
        width: 100%;
        padding: 10px;
        font-size: 1em;
        margin-bottom: 10px;
    }

    .navbar a {
        font-size: 1em;
    }

    .accent-bar {
        margin: 10px auto;
    }

    .services-list {
        grid-template-columns: 1fr;
    }
    
    .section-content p {
        font-size: 1.2em;
    }

    .section-content h3 {
        font-size: 1.45em;
        margin: 30px 0 10px 0;
    }

    .section-content h4 {
        font-size: 1.15em;
        margin: 24px 0 8px 0;
    }
    
    .services-list li {
        font-size: 1.1em;
    }

    ul li h3 {
        font-size: 1.5em;
    }

    ul li p {
        font-size: 0.8em;
    }

    .member-content {
        flex-direction: column;
        align-items: center;
    }

    .member-avatar {
        flex: 0 0 auto;
        width: 250px;
        margin-bottom: 20px;
    }

    .member-avatar img {
        height: 250px;
    }

    .member-info {
        text-align: center;
    }

    .bio-scroll {
        max-height: 200px;
    }

    .slider-nav {
        padding: 10px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}

/* Update sticky header adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 20px !important;
    }

    header {
        height: auto; /* Allow header to adjust to content */
        min-height: 80px; /* Minimum height when sticky */
    }

    .header-inner {
        justify-content: space-between;
        position: relative;
    }

    .accent-vertical {
        display: none;
    }

    .sticky {
        height: auto;
    }

    .hamburger {
        display: flex;
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: 50px;
        height: 50px;
        justify-content: center;
        align-items: center;
        z-index: 1000;
    }
      
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 300px;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px 0;
        flex-direction: column;
        align-items: center;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease;
        overflow-y: auto;          
        overflow: hidden;
    }
    
    .navbar.open {
        transform: scaleY(1);
    }
 
    .navbar li {
        flex: none;
        max-width: none;
    }
    
    .navbar a {
        font-size: 1.2em !important;
    }

    .accent-bar {
        margin: 10px auto;
    }
}

/* Additional breakpoint for very narrow screens */
@media (max-width: 480px) {
    body {
        padding-top: 180px; /* Adjust if needed */
    }

    .navbar ul {
        gap: 10px;
    }

    .navbar a {
        font-size: 0.9em;
        padding: 3px 8px;
    }
}

/* Media queries for responsive behavior */
@media (min-width: 769px) {
    .navbar li {
        flex: 0 1 auto; /* Reset flex behavior for larger screens */
        max-width: none;
    }
}

@media (max-width: 480px) {
    .navbar li {
        flex: 1 1 calc(50% - 10px); /* Adjust for smaller gap on mobile */
    }
}

@media (max-width: 768px) {
    .sticky {
        all: unset;
    }

    .sticky .logo img {
        all: unset;
    }

    .sticky .navbar ul {
        all: unset;
    }

    .sticky .accent-bar,
    .sticky .accent-vertical {
        all: unset;
    }
}
