/* Leaf Green Color Scheme */
:root {
    --leaf-green: #2d8659;
    --leaf-green-dark: #1e5d3f;
    --leaf-green-light: #4da375;
    --white: #ffffff;
    --light-bg: #f8f9fa;
}

html {
    height: 100%;
}

body {
    background-color: var(--light-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Navbar Customization */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    transition: all 0.3s ease;
    margin: 0 5px;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 20px rgba(45, 134, 89, 0.2);
}

.card-header {
    background-color: var(--leaf-green);
    color: white;
    font-weight: 600;
}

/* Buttons */
.btn-success {
    background-color: var(--leaf-green);
    border-color: var(--leaf-green);
}

.btn-success:hover {
    background-color: var(--leaf-green-dark);
    border-color: var(--leaf-green-dark);
}

.btn-outline-success {
    color: var(--leaf-green);
    border-color: var(--leaf-green);
}

.btn-outline-success:hover {
    background-color: var(--leaf-green);
    border-color: var(--leaf-green);
}

/* Tables */
.table {
    background-color: white;
}

.table thead {
    background-color: var(--leaf-green);
    color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(45, 134, 89, 0.05);
}

/* Forms */
.form-control:focus {
    border-color: var(--leaf-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 134, 89, 0.25);
}

.form-select:focus {
    border-color: var(--leaf-green);
    box-shadow: 0 0 0 0.2rem rgba(45, 134, 89, 0.25);
}

/* Badges */
.badge {
    font-size: 0.75rem;
}

/* Pagination */
.pagination .page-link {
    color: var(--leaf-green);
}

.pagination .page-item.active .page-link {
    background-color: var(--leaf-green);
    border-color: var(--leaf-green);
}

.pagination .page-link:hover {
    color: var(--leaf-green-dark);
}

/* Images */
img {
    max-width: 100%;
    border-radius: 8px;
}

/* Section Headers */
h2, h3 {
    color: var(--leaf-green-dark);
    font-weight: 600;
}

/* Alert Messages */
.alert {
    border-radius: 8px;
    border: none;
}

/* List Groups */
.list-group-item {
    border-left: 3px solid var(--leaf-green);
    margin-bottom: 10px;
    border-radius: 5px;
}

.list-group-item:hover {
    background-color: rgba(45, 134, 89, 0.05);
}

/* Debug Info */
div[style*="background:#f0f0f0"] {
    background-color: #fff3cd !important;
    border: 1px solid #ffc107 !important;
    border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }
    
    .card {
        margin-bottom: 15px;
    }
}

/* Messenger */
.messenger-card {
    min-height: 70vh;
}

.conversation-list {
    max-height: 70vh;
    overflow-y: auto;
}

.conversation-item.active {
    background-color: rgba(45, 134, 89, 0.1);
}

.message-thread {
    overflow-y: auto;
    max-height: 60vh;
    padding-right: 0.5rem;
}

.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 16px;
    max-width: 75%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.message-in {
    background-color: #f8f9fa;
}

.message-out {
    background-color: var(--leaf-green);
    color: #ffffff;
}

.message-out small {
    color: rgba(255, 255, 255, 0.85);
}

.message-thread::-webkit-scrollbar,
.conversation-list::-webkit-scrollbar {
    width: 6px;
}

.message-thread::-webkit-scrollbar-thumb,
.conversation-list::-webkit-scrollbar-thumb {
    background-color: rgba(45, 134, 89, 0.4);
    border-radius: 3px;
}

/* Homepage Hero */
.hero-section {
    background: radial-gradient(circle at top left, rgba(77, 163, 117, 0.25), transparent 55%),
                radial-gradient(circle at bottom right, rgba(45, 134, 89, 0.22), transparent 55%),
                linear-gradient(135deg, rgba(45, 134, 89, 0.12), rgba(30, 93, 63, 0.12));
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('data:image/svg+xml,%3Csvg width="220" height="220" viewBox="0 0 220 220" fill="none" xmlns="http://www.w3.org/2000/svg"%3E%3Cpath opacity="0.08" d="M129.471 33.216c21.176 8.322 32.444 32.503 24.122 53.679-8.321 21.176-32.503 32.444-53.679 24.122-21.176-8.321-32.444-32.503-24.122-53.679 8.321-21.176 32.503-32.444 53.679-24.122z" fill="%232d8659"/%3E%3C/svg%3E');
    background-size: 320px;
    background-repeat: no-repeat;
    background-position: top right;
    opacity: 0.35;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.18), rgba(77, 163, 117, 0.22));
    color: var(--leaf-green-dark);
    font-weight: 600;
    padding: 0.55rem 1.2rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
    border: 1px solid rgba(45, 134, 89, 0.25);
    box-shadow: 0 8px 18px rgba(45, 134, 89, 0.18);
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--leaf-green-dark);
    margin-top: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #355749;
    line-height: 1.7;
}

.hero-illustration {
    position: relative;
    min-height: 380px;
    display: flex;
    justify-content: center;
}

.hero-figure {
    max-width: 440px;
    width: 100%;
    filter: drop-shadow(0 25px 55px rgba(45, 134, 89, 0.25));
}

.floating-card {
    position: absolute;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.92));
    border-radius: 18px;
    padding: 1rem 1.3rem;
    border: 1px solid rgba(45, 134, 89, 0.15);
    box-shadow: 0 18px 38px rgba(45, 134, 89, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--leaf-green-dark);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--leaf-green);
}

.floating-card.fc-1 {
    top: 12%;
    left: 5%;
}

.floating-card.fc-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: 1.5s;
}

.floating-card.fc-3 {
    top: 45%;
    right: 35%;
    animation-delay: 3s;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0); }
}

/* Stats */
.stats-section {
    background: #eef6f1;
    border-top: 1px solid rgba(45, 134, 89, 0.1);
    border-bottom: 1px solid rgba(45, 134, 89, 0.1);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 1.9rem 1.5rem 1.7rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(241, 251, 245, 0.92));
    border: 1px solid rgba(45, 134, 89, 0.14);
    box-shadow: 0 20px 40px rgba(45, 134, 89, 0.16);
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -30px;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(45, 134, 89, 0.18), transparent 70%);
    border-radius: 50%;
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.18), rgba(77, 163, 117, 0.22));
    color: var(--leaf-green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    border: 1px solid rgba(45, 134, 89, 0.18);
}

.stat-value {
    display: block;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--leaf-green);
    margin-bottom: 0.15rem;
}

.stat-label {
    color: #4d625c;
    font-size: 0.95rem;
}

/* About */
.about-section {
    background: #fff;
}

.about-bubble {
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.12), rgba(77, 163, 117, 0.16));
    border-radius: 28px;
    padding: 2.7rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(45, 134, 89, 0.12);
    box-shadow: 0 25px 45px rgba(45, 134, 89, 0.15);
}

.about-bubble::after {
    content: '';
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 210px;
    height: 210px;
    background: radial-gradient(circle, rgba(30, 93, 63, 0.14), transparent 70%);
    border-radius: 50%;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #29473f;
    font-weight: 500;
}

.about-list i {
    color: var(--leaf-green);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.7rem;
}

.about-tile {
    background: linear-gradient(135deg, #ffffff, rgba(245, 252, 248, 0.98));
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 20px 40px rgba(45, 134, 89, 0.18);
    border: 1px solid rgba(45, 134, 89, 0.1);
}

.about-tile i {
    font-size: 2.2rem;
    color: var(--leaf-green);
    margin-bottom: 1rem;
}

/* How it works */
.how-it-works-section {
    position: relative;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.06), rgba(77, 163, 117, 0.08));
}

.step-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 2.1rem 1.6rem;
    box-shadow: 0 22px 45px rgba(45, 134, 89, 0.18);
    border: 1px solid rgba(45, 134, 89, 0.08);
}

.step-number {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--leaf-green), var(--leaf-green-dark));
    color: #fff;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
    border: none;
}

/* Opportunities */
# opportunities section and cards updates
.opportunity-card {
    background: linear-gradient(160deg, #ffffff 0%, rgba(238, 246, 241, 0.95) 100%);
    border-radius: 24px;
    padding: 2.4rem 1.9rem;
    box-shadow: 0 32px 58px rgba(45, 134, 89, 0.18);
    border: 1px solid rgba(45, 134, 89, 0.14);
    position: relative;
    overflow: hidden;
}

.opportunity-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(45, 134, 89, 0.12), transparent 70%);
    border-radius: 50%;
}

.opportunity-header {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.18), rgba(77, 163, 117, 0.22));
    border-radius: 18px;
    padding: 1rem 1.3rem;
    border: 1px solid rgba(45, 134, 89, 0.18);
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.opportunity-header i {
    font-size: 1.5rem;
    color: var(--leaf-green-dark);
}

.opportunity-header .title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--leaf-green-dark);
}

.opportunity-header .subtitle {
    font-size: 0.9rem;
    color: #3f5a53;
}

.opportunity-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.opportunity-pill {
    position: relative;
    z-index: 1;
    background: rgba(45, 134, 89, 0.08);
    border: 1px solid rgba(45, 134, 89, 0.12);
    border-radius: 18px;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 18px 30px rgba(45, 134, 89, 0.12);
}

.opportunity-pill strong {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.02rem;
    color: var(--leaf-green-dark);
}

.opportunity-pill span {
    display: block;
    color: #4d625c;
    font-size: 0.9rem;
    margin: 0.35rem 0;
}

.opportunity-pill p {
    margin-bottom: 0;
    color: #3f5650;
    font-size: 0.92rem;
}

.empty-pill {
    background: rgba(45, 134, 89, 0.05);
    color: #4d625c;
    text-align: center;
    padding: 1.2rem;
}

/* Resources */
.resources-section {
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.1), rgba(30, 93, 63, 0.05));
}

.resource-card {
    background: linear-gradient(135deg, #ffffff, rgba(241, 251, 245, 0.98));
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 25px 45px rgba(45, 134, 89, 0.18);
    border: 1px solid rgba(45, 134, 89, 0.1);
}

.resource-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.18), rgba(77, 163, 117, 0.2));
    color: var(--leaf-green-dark);
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(45, 134, 89, 0.22);
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--leaf-green-dark), var(--leaf-green));
    border-radius: 36px;
    margin: 0 1.5rem;
    padding: 3rem 3rem;
    box-shadow: 0 35px 55px rgba(30, 93, 63, 0.35);
}

.cta-section .btn-light {
    color: var(--leaf-green-dark);
    font-weight: 600;
}

@media (max-width: 992px) {
    .cta-section {
        margin: 0 0.75rem;
        padding: 2.7rem 2rem;
    }
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animate-fade-left {
    transform: translateX(35px);
}

.animate-on-scroll.animate-fade-right {
    transform: translateX(-35px);
}

.animate-on-scroll.animate-zoom-in {
    transform: scale(0.92);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Article page */
.article-hero {
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.12), rgba(77, 163, 117, 0.2));
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.article-hero.has-image {
    color: #ffffff;
    background-size: cover;
    background-position: center;
    box-shadow: 0 30px 50px rgba(18, 56, 40, 0.35);
}

.article-hero.has-image h1,
.article-hero.has-image p,
.article-hero.has-image .article-meta span {
    color: rgba(255, 255, 255, 0.92);
}

.article-hero h1 {
    color: var(--leaf-green-dark);
    margin-bottom: 1rem;
}

.article-meta {
    color: #5d6c6e;
    font-size: 0.95rem;
}

.article-content {
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem;
    box-shadow: 0 12px 32px rgba(45, 134, 89, 0.12);
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--leaf-green-dark);
    margin-top: 2rem;
}

.article-content p,
.article-content li {
    color: #435454;
    line-height: 1.8;
}

.section-title {
    font-weight: 700;
    color: var(--leaf-green-dark);
}

.hero-section .section-title,
.resources-section .section-title,
.opportunities-section .section-title {
    color: var(--leaf-green-dark);
}

.opportunity-feature,
.resource-image,
.listing-cover {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    margin-bottom: 1.3rem;
    background: linear-gradient(135deg, rgba(45, 134, 89, 0.15), rgba(77, 163, 117, 0.12));
    border: 1px solid rgba(45, 134, 89, 0.14);
    height: 190px;
}

.resource-image img,
.listing-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.opportunity-feature.is-placeholder.job {
    background: radial-gradient(circle, rgba(45, 134, 89, 0.22), rgba(45, 134, 89, 0.08));
}

.opportunity-feature.is-placeholder.project {
    background: radial-gradient(circle, rgba(77, 163, 117, 0.22), rgba(77, 163, 117, 0.08));
}

.opportunity-feature.is-placeholder.product {
    background: radial-gradient(circle, rgba(46, 114, 90, 0.22), rgba(46, 114, 90, 0.08));
}

.placeholder-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.7);
}

.resource-card {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.resource-image {
    height: 180px;
}

.resource-image.placeholder {
    background: radial-gradient(circle, rgba(45, 134, 89, 0.18), rgba(245, 252, 248, 0.9));
}

.listing-cover.placeholder.job {
    background: radial-gradient(circle, rgba(45, 134, 89, 0.2), rgba(241, 251, 245, 0.9));
}

.listing-cover.placeholder.project {
    background: radial-gradient(circle, rgba(77, 163, 117, 0.22), rgba(245, 252, 248, 0.92));
}

.listing-cover.placeholder.product {
    background: radial-gradient(circle, rgba(46, 114, 90, 0.2), rgba(241, 251, 245, 0.9));
}

.thumb-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.thumb-strip img {
    width: 100%;
    height: 100%;
    min-height: 90px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(45, 134, 89, 0.18);
    box-shadow: 0 10px 22px rgba(45, 134, 89, 0.18);
    cursor: zoom-in;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 32, 24, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 1050;
}

.lightbox-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: min(90vw, 960px);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 18px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next,
.lightbox-toolbar button {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.lightbox-close { top: -22px; right: -22px; }
.lightbox-prev { left: -60px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: -60px; top: 50%; transform: translateY(-50%); }

.lightbox-toolbar {
    position: absolute;
    right: -60px;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.lightbox-toolbar button {
    position: static;
}

@media (max-width: 768px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-toolbar { right: 10px; bottom: -60px; flex-direction: row; }
    .lightbox-close { top: 10px; right: 10px; }
}

body.lightbox-open { overflow: hidden; }


