:root {
    --primary-color: #0f937a;
    --secondary-color: #6abcac;
    --accent-color: #F4A261; /* Keeping orange for contrast */
    --soft-teal: #ddf0ed;
    --neutral-light: #F8F9FA;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-radius: 12px;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
    background-color: var(--neutral-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', sans-serif;
}

/* Custom Utilities */
.text-primary { color: var(--primary-color) !important; }
.text-success { color: var(--secondary-color) !important; }
.text-warning { color: var(--accent-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-success { background-color: var(--secondary-color) !important; }
.bg-warning { background-color: var(--accent-color) !important; }
.btn-primary { 
    background-color: var(--primary-color); 
    border-color: var(--primary-color);
}
.btn-primary:hover { 
    background-color: #084d40; 
    border-color: #084d40;
}
.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Soft Backgrounds */
.bg-soft-primary { background-color: rgba(15, 147, 122, 0.1); }
.bg-soft-success { background-color: rgba(106, 188, 172, 0.2); }
.bg-soft-secondary { background-color: rgba(108, 117, 125, 0.1); }
.bg-soft-warning { background-color: rgba(244, 162, 97, 0.1); }
.bg-soft-info { background-color: rgba(13, 202, 240, 0.1); }
.bg-soft-teal { background-color: var(--soft-teal); }

/* Navbar */
.navbar {
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}
.navbar-brand i {
    font-size: 1.5rem;
    vertical-align: middle;
}
.nav-link {
    font-weight: 500;
    color: var(--text-dark);
}
.nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
#hero {
    min-height: 90vh;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--neutral-light) 0%, var(--soft-teal) 100%);
}
.z-index-1 { z-index: 1; }

/* Blob Shape */
.blob-shape {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(106, 188, 172, 0.2) 0%, rgba(15, 147, 122, 0.05) 70%, transparent 100%);
    filter: blur(60px);
    z-index: 0;
}

/* Glassmorphism */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px 0 rgba(15, 147, 122, 0.1);
}

/* Custom Accordion */
.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: var(--soft-teal);
    box-shadow: none;
}
.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(15, 147, 122, 0.25);
}

/* Cards */
.soft-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}
.icon-box {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

/* Sector Focus */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #084d40 100%);
}
.bg-white-10 { background-color: rgba(255, 255, 255, 0.1); }
.backdrop-blur { backdrop-filter: blur(5px); }
.border-white-20 { border-color: rgba(255, 255, 255, 0.2) !important; }
.sector-card {
    transition: all 0.3s ease;
    cursor: default;
}
.sector-card:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Parallax Effect */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    padding: 120px 0;
    color: white;
}
.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 77, 64, 0.7); /* Deep teal overlay */
    z-index: 1;
}
.parallax-content {
    position: relative;
    z-index: 2;
}

/* Inner Page Hero */
.inner-hero {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 150px 0 80px;
    position: relative;
    color: white;
}
.inner-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 147, 122, 0.8), rgba(8, 77, 64, 0.9));
    z-index: 1;
}
.inner-hero .container {
    position: relative;
    z-index: 2;
}

/* News Cards */
.news-card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(15, 147, 122, 0.15);
}
.news-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}
.news-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.news-title a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}
.news-title a:hover {
    color: var(--primary-color);
}

/* Report Cards */
.report-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    height: 100%;
}
.report-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(15, 147, 122, 0.1);
}
.report-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Pagination */
.pagination {
    --bs-pagination-color: var(--primary-color);
    --bs-pagination-hover-color: var(--primary-color);
    --bs-pagination-hover-bg: var(--soft-teal);
    --bs-pagination-active-bg: var(--primary-color);
    --bs-pagination-active-border-color: var(--primary-color);
    --bs-pagination-focus-box-shadow: 0 0 0 0.25rem rgba(15, 147, 122, 0.25);
}

.page-link {
    color: var(--primary-color) !important;
    border: none;
    margin: 0 5px;
    border-radius: 5px !important;
    transition: all 0.2s ease;
}

.page-link:hover {
    background-color: var(--soft-teal) !important;
}

.page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.page-item.disabled .page-link {
    background-color: transparent;
    color: #adb5bd !important;
}

/* Article Styling */
.article-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #444;
}
.article-img {
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.fade-in-up {
    opacity: 0; 
}
.fade-in-up.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.fade-in-left { opacity: 0; }
.fade-in-left.visible {
    animation: fadeInLeft 0.8s ease-out forwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}
.fade-in-right { opacity: 0; }
.fade-in-right.visible {
    animation: fadeInRight 0.8s ease-out forwards;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}
.floating-animation {
    animation: float 6s ease-in-out infinite;
}
.pulse-anim {
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { r: 4; opacity: 1; }
    50% { r: 6; opacity: 0.5; }
    100% { r: 4; opacity: 1; }
}

/* Impact Page Styles */
.impact-container {
    height: calc(100vh - 80px); /* Adjust based on navbar height */
    overflow: hidden;
    display: flex;
}

.posts-sidebar {
    height: 100%;
    overflow-y: auto;
    padding: 2rem;
    background-color: #fff;
    border-right: 1px solid rgba(0,0,0,0.05);
    scrollbar-width: thin;
    scrollbar-color: var(--secondary-color) transparent;
}

.posts-sidebar::-webkit-scrollbar {
    width: 6px;
}
.posts-sidebar::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.map-container {
    flex-grow: 1;
    height: 100%;
    position: relative;
    background-color: var(--soft-teal);
}

#map {
    height: 100%;
    width: 100%;
    z-index: 1;
}

.impact-post-card {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid transparent;
    margin-bottom: 1.5rem;
    position: relative;
}

.impact-post-card:hover {
    transform: translateX(10px);
    border-color: var(--secondary-color);
}

.impact-post-card.active {
    background-color: var(--soft-teal);
    border-color: var(--primary-color);
    transform: translateX(15px);
    box-shadow: -10px 0 0 var(--primary-color), 0 10px 30px rgba(15, 147, 122, 0.15);
}

/* Leaflet Customization */
.leaflet-container {
    font-family: 'Poppins', sans-serif !important;
}

.leaflet-popup-content-wrapper {
    border-radius: var(--border-radius);
    padding: 5px;
}

.leaflet-popup-tip {
    background: white;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1) !important;
}

.leaflet-control-zoom-in, .leaflet-control-zoom-out {
    background-color: white !important;
    color: var(--primary-color) !important;
    border-bottom: 1px solid #eee !important;
}

/* Animations */
@keyframes highlightPulse {
    0% { background-color: transparent; }
    50% { background-color: var(--soft-teal); }
    100% { background-color: transparent; }
}

.highlight-pulse {
    animation: highlightPulse 2s ease-in-out infinite;
}

@media (max-width: 991.98px) {
    .impact-container {
        height: auto;
        flex-direction: column-reverse;
    }
    .posts-sidebar {
        height: 500px;
        width: 100%;
    }
    .map-container {
        height: 400px;
        width: 100%;
    }
}

/* Footer */
.bg-darker { background-color: #111; }
.border-white-10 { border-color: rgba(255, 255, 255, 0.1) !important; }
.hover-white:hover { color: #fff !important; }
.hover-primary:hover { color: var(--primary-color) !important; }

/* Responsive */
@media (max-width: 991.98px) {
    #hero {
        text-align: center;
        padding-top: 100px;
    }
    .blob-shape {
        width: 300px;
        height: 300px;
    }
}
