@charset "utf-8";
/* CSS Document */
:root {
    --primary-color: #5b7c78; /* Logo Dark Green */
    --secondary-color: #cbd4d6; /* Logo Grey */
    --dark-text: #333333;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark-text);
}

.text-primary-custom { color: var(--primary-color); }
.bg-secondary-custom { background-color: var(--secondary-color); }

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #4a6663;
    border-color: #4a6663;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    margin: 15px auto;
}

.theme-card {
    transition: transform 0.3s ease;
    border-bottom: 4px solid transparent !important;
}

.theme-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary-color) !important;
}

footer {
    background-color: #2c3e3c;
    color: white;
}

/* --- Dropdown Hover & Styling --- */

/* Only apply hover effect on screens larger than 992px (Desktop) */
@media (min-width: 992px) {
    .navbar-nav .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0; /* Prevents a gap that causes the menu to close */
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        transition: all 0.3s ease;
    }

    .dropdown-menu {
        display: block;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.3s ease;
        border: none;
        border-top: 3px solid var(--primary-color); /* Slate Green accent */
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
        background-color: #fcfdfe; /* Very light theme-compliant background */
    }
}

/* Dropdown Item Styling */
.dropdown-item {
    padding: 10px 20px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background-color: var(--secondary-color); /* The light grey from your logo */
    color: var(--primary-color);
}

/* Active/Focus state */
.dropdown-item:active {
    background-color: var(--primary-color);
    color: white;
}

/* About Hero Base */
.about-hero {
    background-color: #5b7c78; /* Your Slate Green */
    background-image: url('https://www.transparenttextures.com/patterns/natural-paper.png');
    min-height: 450px;
    display: flex;
    align-items: center;
}

/* Gradient Overlay - ensuring white fonts pop */
.about-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(44, 62, 60, 0.95) 0%, rgba(91, 124, 120, 0.7) 100%);
    z-index: 1;
}

/* Brand Divider Line */
.brand-divider {
    width: 60px;
    height: 4px;
    background: var(--secondary-color); /* The light grey from your logo */
    border-radius: 2px;
}

/* Hover effect for Breadcrumbs */
.hover-secondary:hover {
    color: var(--secondary-color) !important;
}

/* Decorative Background Circles */
.deco-circle-1 {
    position: absolute;
    top: -100px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    z-index: 2;
}

.deco-circle-2 {
    position: absolute;
    bottom: -50px;
    right: 150px;
    width: 200px;
    height: 200px;
    background: rgba(203, 212, 214, 0.05); /* Using secondary grey */
    border-radius: 50%;
    z-index: 2;
}

/* Simple Animation */
.animate-fade-in {
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* SDG Section Enhancement */
.sdg-card {
    background: #ffffff;
    border-radius: 12px;
    border-bottom: 4px solid var(--secondary-color) !important;
    transition: all 0.3s ease;
}

.sdg-card:hover {
    transform: translateY(-8px);
    background-color: var(--primary-color);
    border-bottom: 4px solid #ffffff !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.sdg-card:hover .sdg-icon i, 
.sdg-card:hover p {
    color: #ffffff !important; /* Text turns white on hover */
}

.sdg-icon {
    transition: transform 0.3s ease;
}

.sdg-card:hover .sdg-icon {
    transform: scale(1.1);
}

.ls-1 {
    letter-spacing: 2px;
}

/* Core Values Hero Specifics */
/* Hero Refinement */
.core-values-hero {
    background: url('../images/community-bg.jpg') center/cover no-repeat;
    background-attachment: fixed; /* Parallax effect */
    min-height: 50vh;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 60, 0.92) 0%, rgba(91, 124, 120, 0.85) 100%);
}

.divider-center {
    width: 80px;
    height: 5px;
    background: var(--secondary-color); /* Your Silver/Grey */
    margin: 0 auto;
    border-radius: 10px;
}

/* Modern Card Styling */
.value-card-modern {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #f0f0f0;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.value-card-modern:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.value-icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    background: #f8faf9;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    transition: all 0.4s ease;
    border: 1px dashed var(--primary-color);
}

.value-card-modern:hover .value-icon-circle {
    background: var(--primary-color);
    color: #fff;
    border-style: solid;
    transform: rotateY(360deg);
}

/* Decorative Background Circle */
.abstract-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(91, 124, 120, 0.03);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    z-index: 0;
}

.animate-up {
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Dark Overlay to make white text pop */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 60, 0.9) 0%, rgba(91, 124, 120, 0.8) 100%);
    z-index: 1;
}

/* Custom Decorative Divider */
.divider-custom {
    width: 80px;
    height: 4px;
    background-color: var(--secondary-color); /* Your logo's light grey/silver */
    border-radius: 2px;
}

/* Breadcrumb Styling for Dark Background */
.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}

.breadcrumb a {
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--secondary-color) !important;
}

/* Map Styling */
.map-container {
    position: relative;
    overflow: hidden;
}

.province-label {
    position: absolute;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
}

.province-label:hover {
    transform: scale(1.1);
    background: #4a6663;
}

/* Table Customization */
.table thead {
    background-color: var(--primary-color) !important;
}

.badge {
    font-weight: 500;
    padding: 0.5em 0.8em;
}
.rounded-4 { border-radius: 1.5rem !important; }

.bg-success-subtle { background-color: rgba(25, 135, 84, 0.1) !important; }
.bg-info-subtle { background-color: rgba(13, 202, 240, 0.1) !important; }

.table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.table tbody tr {
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    border-radius: 8px;
    transition: transform 0.2s;
}

.table tbody tr:hover {
    transform: scale(1.01);
}

.table td {
    padding: 1.2rem 1rem;
    background: #fff;
    border: none;
}

.table td:first-child { border-radius: 8px 0 0 8px; }
.table td:last-child { border-radius: 0 8px 8px 0; }

/* Team Card Styles */
.member-img-container {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    padding: 10px;
    border: 2px dashed var(--primary-color);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.team-card:hover .member-img-container {
    border-style: solid;
    transform: rotate(10deg);
}

.member-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all 0.4s ease;
}

.team-card:hover img {
    filter: grayscale(0%);
}

/* Management Card Styles */
.management-card {
    border-radius: 15px;
    background: #fdfdfd;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.management-card:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.mgmt-img-wrapper {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    overflow: hidden;
}

.mgmt-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Social Links */
.social-links a {
    color: #ccc;
    font-size: 1.1rem;
    transition: color 0.3s;
}

/* Home Hero Styling */
.hero-home {
    background: url('../images/home-hero.jpg') center/cover no-repeat;
    background-attachment: fixed;
    height: 90vh;
    min-height: 600px;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 60, 0.85) 0%, rgba(91, 124, 120, 0.7) 100%);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 1.5rem;
    color: #fff;
    z-index: 4;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* About Section Layout */
.about-img-frame {
    position: relative;
    border: 8px solid #fff;
    z-index: 1;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    z-index: 2;
    text-align: center;
}

/* Home Theme Cards */
.theme-card-home {
    transition: all 0.3s ease;
    border-radius: 20px;
}

.theme-card-home:hover {
    transform: translateY(-10px);
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1) !important;
}

.theme-icon-circle {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.theme-card-home:hover .theme-icon-circle {
    transform: scale(1.1);
}

.border-end-white {
    border-right: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 767px) {
    .border-end-white { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
}

.team-card:hover .social-links a {
    color: var(--primary-color);
}

/* The organogram image wrapper */
.organogram-wrapper {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.organogram-wrapper:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 15px 45px rgba(0,0,0,0.1) !important;
}

/* Ensure the image fills its frame */
.organogram-img {
    transition: all 0.4s ease;
}

.organogram-wrapper:hover .organogram-img {
    border-radius: 1.2rem; /* Slights changes for hover depth */
}

/* A decorative border watermark around the organogram */
.organogram-deco {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px dashed var(--primary-color);
    border-radius: 50%;
    bottom: -25px;
    right: -25px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.1;
}

/* Partner Card Aesthetics */
.partner-card {
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(91, 124, 120, 0.1) !important;
    border-color: var(--primary-color);
}

.partner-logo-wrapper {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.partner-img {
    max-height: 80px;
    width: auto;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.partner-card:hover .partner-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Custom badge for Partner Type */
.bg-secondary-custom {
    background-color: #f1f3f5 !important;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Cross-Cutting Theme Wrapper */
.cross-cutting-wrapper {
    background: #fdfdfd;
    border: 1px solid #f0f0f0;
}

.border-end-md {
    border-right: 1px solid #eee;
}

@media (max-width: 991px) {
    .border-end-md {
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
}

/* Icons for Cross-Cutting */
.cross-cutting-wrapper i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.cross-cutting-wrapper .col-md-4:hover i {
    transform: scale(1.2);
}

/* Refined Theme Card (Removing extra padding for more items) */
.theme-card {
    border-radius: 15px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.theme-card:hover {
    border-bottom: 3px solid var(--primary-color);
    background: #fff;
}

/* Report Row Hover */
.report-row {
    transition: all 0.3s ease;
    border: 1px solid #eee;
}
.report-row:hover {
    transform: translateX(10px);
    background-color: #f8faf9 !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05) !important;
}

/* IEC Card Styling */
.iec-card {
    transition: all 0.3s ease;
    background: #fff;
}
.iec-thumb {
    height: 200px;
    background: #eee;
    overflow: hidden;
}
.iec-thumb img {
    width: 100%; height: 100%; object-fit: cover;
}
.iec-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(91, 124, 120, 0.8);
    opacity: 0;
    transition: opacity 0.3s;
}
.iec-card:hover .iec-overlay {
    opacity: 1;
}
.iec-card:hover {
    transform: translateY(-5px);
}

/* Pagination Styling */
.pagination {
    gap: 8px;
}

.page-item-link {
    padding: 10px 18px;
    border-radius: 50px !important;
    border: 1px solid #dee2e6;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    background: #fff;
    font-weight: 600;
}

.page-item.active .page-item-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.page-item-link:hover:not(.disabled) {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

/* Report Row Refinement */
.report-row {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-row:hover {
    transform: scale(1.005);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08) !important;
}

.report-icon-box {
    width: 50px;
    opacity: 0.6;
}

.download-btn {
    transition: all 0.3s ease;
    background-color: var(--primary-color);
    border: none;
}

.download-btn:hover {
    background-color: #4a6663; /* Slightly darker shade */
    box-shadow: 0 4px 12px rgba(91, 124, 120, 0.3);
}

/* Contact Icon Circles */
.icon-circle {
    width: 50px;
    height: 50px;
    background: #fff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

/* Social Buttons */
.social-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Form Styling */
.form-control:focus, .form-select:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(91, 124, 120, 0.1);
    border: 1px solid var(--primary-color) !important;
}

/* Grayscale Map Filter */
.map-section iframe {
    transition: filter 0.5s ease;
}

.map-section:hover iframe {
    filter: none !important;
}

/* Contact Icon Circles */
.icon-circle {
    width: 50px;
    height: 50px;
    background: #fff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

/* Social Buttons */
.social-btn {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Form Styling */
.form-control:focus, .form-select:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(91, 124, 120, 0.1);
    border: 1px solid var(--primary-color) !important;
}

/* Grayscale Map Filter */
.map-section iframe {
    transition: filter 0.5s ease;
}

.map-section:hover iframe {
    filter: none !important;
}

/* Gallery Card Effects */
.gallery-card {
    cursor: pointer;
    background-color: #eee;
}

.gallery-card img {
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-hover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(91, 124, 120, 0.85); /* Brand Primary Color with Transparency */
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(3px);
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-card:hover .gallery-hover-overlay {
    opacity: 1;
}

/* Filter Button Styling */
.filter-group .btn-outline-primary-custom {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
}

.filter-group .btn-outline-primary-custom.active, 
.filter-group .btn-outline-primary-custom:hover {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 10px rgba(91, 124, 120, 0.2);
}