@import url('https://fonts.googleapis.com/css2?family=Open+Sans&display=swap');

body,
html {
    font-size: 15px;
    font-family: "Open Sans", "Segoe UI", sans-serif, Verdana, Helvetica;
    /* Apply Roboto Condensed font */
    /* overflow: hidden; */
}

.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}


/* Navbar custom styling */
.navbar-custom {
    padding-left: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    height: 7vh;
    background-color: #039E66;
    /* background-color: rgb(40, 117, 43); */
}

/* Navbar links styling */
.nav-link {
    font-size: 1.3rem;
    color: #ffffff;
    /* transition: color 0.3s, background-color 0.3s; */
}

/* Navbar item padding */
.nav-item {
    padding-left: 15px;
    padding-right: 15px;
}

/* Navbar text padding */
#navbarText {
    padding-right: 8px;
}

/* Hover effect for navbar links */
.nav-link:hover {
    color: white;
    background-color: #337a40;
    border-radius: 4px;
    padding: 5px 10px;
    text-decoration: none;
}

/* Active state for navbar links */
.nav-link.active {
    color: rgb(225, 225, 225) !important;
    background-color: #337a40;
    /* background-color: rgb(0, 171, 78);; */
    border-radius: 4px;
    padding: 5px 10px;
    text-decoration: none;
}

/* Toolbar area styling */
.toolbar-area {
    background-color: #206e22;
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 10px; */
}
.about-icon {
    margin-right: 10px; /* Adjust as needed */
    color: white;
}

/* Custom button styling */
.btn-custom {
    height: 3vh;
    font-size: 14px;
    font-style: "Open Sans", sans-serif;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 0;
    border-color: #36a176;;
    /* padding: 8px 16px; */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, color 0.3s;
}

/* Hover effect */
.btn-custom:hover {
    background-color: #3cb769;
    /* background-color: rgb(0, 171, 78); */; /* Darker green on hover */
    color: white;
    text-decoration: none;
    
}

/* Active button styling */
.btn-custom.active,
.btn-custom:active {
    background-color: #2f5d2d; /* Even darker green when active */
    color: white;
    border-color: #2f5d2d;
    text-decoration: none;
}

/* Focus styling */
.btn-custom:focus {
    box-shadow: none; /* Removes the default Bootstrap focus shadow */
    outline: none;
    border-color: #2f5d2d;
}

/* Active button with outline */
.btn-outline-success.active {
    background-color: #3cb769;
    /* background-color: rgb(0, 171, 78); */
    color: white;
    border-color: rgb(0, 171, 78);;
}

/* Focus styling for accessibility */
/* .nav-link:focus {
    box-shadow: none;
    outline: none;
    color: white;
    background-color: #5cbb49;
    border-radius: 4px;
} */

/* Carousel Items Styling */

.carousel-item {
    height: 97vh;
    /* 100vh - 6vh (navbar height) */
}

.carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.carousel-indicators li {
    list-style: none;
    /* Hide list numbers */
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
}

.carousel-indicators .active {
    background-color: #5b960d;
}

/* SDG Spinner */
.sdg-spinners {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 3vh;
    /* The height of the spinner section */
}

/* 17 Goals Bar */
.sdg-image-bar {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    /* Center the image if it’s smaller than the screen width */
    overflow-x: hidden;
}


/* Card STyling CSS */

.btn {
    margin: 0px 40px;
}


.card {
    /* height: calc(100vh - 25vh); */
    margin-left: 20px !important;
    margin-right: 20px !important;
}

/* Card Header Styles */
.card-header {
    background-color: #353f49;
    /* Blue shade */
    border-bottom: none;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    /* Adjust padding to make it responsive */
    flex-wrap: wrap;
    /* Allows items to wrap on smaller screens */
}

/* Button Group Styles */
/* .card-header .btn-group {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

} */

/* Button Styles */
/* .card-header .btn-group .btn {
    color: white;
    border: none;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

    flex: 1 1 auto;

    min-width: 100px;

    margin: 0 10px;

} */

/* Hover Effect */
/* .card-header .btn-group .btn:hover {
    background-color: #43a047;

} */

.card-body {
    /* overflow-y: auto; */
    padding: 20px;
    background-color: #fdfdfd;
}

/* Facts and Figures */
/* Container for each section */
.content-section {
    background: linear-gradient(to right, #fff9c4, #ffe0b2);
    border-radius: 10px;
    padding: 20px;
}

/* Circle value styling */
.circle-value {
    width: 100px;
    height: 100px;
    background-color: #43a047;
    /* Green background for the circle */
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 24px;
    margin: 0 auto;
}

/* Text styling */
.content-text {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Targets Timeline css */

.timeline {
    position: relative;
    margin: 0 auto;
    padding: 40px 0;
    list-style: none;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #ddd;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 30px -50px;
}

.timeline-item-left,
.timeline-item-right {
    display: flex;
    align-items: center;
}

.timeline-item-left {
    justify-content: flex-end;
    padding-right: 40px;
}

.timeline-item-right {
    justify-content: flex-start;
    padding-left: 40px;
}

.timeline-icon {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #56c02a;
    color: #fff;
    border-radius: 50%;
    width: 140px;
    /* Updated width */
    height: 140px;
    /* Updated height */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* Center text horizontally */
    padding: 10px;
    /* Add padding if needed */
}

.timeline-icon>div {
    display: flex;
    flex-direction: column;
    /* Align items vertically */
    justify-content: center;
    align-items: center;
    gap: 5px;
    /* Add some spacing between the elements */
}


.timeline-content {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    width: 40%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
    margin: 0 0 10px;
    color: #28a745;
}

/* Styling for the scroll-to-top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: #12d33f;
    /* Green color */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s;
}

.scroll-top:hover {
    background-color: #218838;
}

/* DASHBOARD VIZ css */
.boxed-column {
    background-color: #f0f0f0;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



/* Modified Layout */
/* Overview content */
.centered-content {
    display: block;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.centered-row {
    justify-content: center;
}

.content-img {
    max-width: 100%;
    height: auto;
    justify-content: flex-start;
}

hr {
    border: 0.75px solid #bd9f9f;
    /* Customize thickness and color */
    margin: 20px 0;
}

.overview-img {
    height: 100%;
    /* Ensures the column height is fully utilized */
    display: flex;
    justify-content: center;
    align-items: center;
}

.overview-img img {
    object-fit: cover;
    /* Scales the image to cover the entire column without stretching */
    height: 100%;
    /* Fits the image to the column height */
    width: 100%;
    /* Ensures the image also covers the column width */
    border-radius: 0;
    /* Remove any default border-radius if present */
}


/* Publications Section */
.publication-img {
    height: 100%;
    /* Ensures the column height is fully utilized */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 5px;
    padding-bottom: 5px;
    background-color: #f0f0f0;
}


/* Buttons in Home Page Styling */
.btn-home-custom{
    background-color: #206e22;
    color: rgb(255, 255, 255);
}
/* Hover effect */
.btn-home-custom:hover {
    background-color: #3cb769;
    /* background-color: rgb(0, 171, 78); */; /* Darker green on hover */
    color: white;
    text-decoration: none;
    
}
/* Active button styling */
.btn-home-custom.active,
.btn-home-custom:active {
    background-color: #2f5d2d; /* Even darker green when active */
    color: white;
    border-color: #2f5d2d;
    text-decoration: none;
}


/* Footer */
footer {
    background-color: #f0f0f0;
    padding: 20px 0;
    text-align: center;
}

.social-icons {
    margin-bottom: 10px;
}

.social-icons a {
    text-decoration: none;
    color: #ffffff;
    background-color: #206e22;
    width: 45px;
    height: 45px;
    border-radius: 100%;
    padding: 10px;
    margin: 0 5px; 
    display: inline-block;
    font-size: 18px;
}

.footer-text {
    font-size: 10px;
    color: #000000;
    line-height: 1.5; /* Ensures proper spacing between lines */
}

.footer-text a {
    text-decoration: none;
    color: #021930;
}

.footer-text a:hover {
    text-decoration: underline;
}


/* Media Query for smaller screens */
@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-item-left,
    .timeline-item-right {
        order: 2;
        /* Content appears after the icon */
        width: 100%;
        padding: 10px 0;
        justify-content: center;
        text-align: center;
    }

    .timeline-icon {
        order: 1;
        /* Icon appears first */
        margin: 10px 0;
        left: auto;
        /* Remove absolute positioning for small screens */
        transform: none;
        /* Reset transform property */
        position: static;
    }

    .timeline::before {
        left: 10%;
        /* Position the line to the left on small screens */
    }

    /* CARD Header */
    .card-header {
        padding: 10px 5px;
        /* Adjust padding on smaller screens */
        flex-direction: column;
        /* Stack items vertically on smaller screens */
    }

    /* .card-header .btn-group {
        gap: 5px;

        justify-content: center;

    } */

    /* .card-header .btn-group .btn {
        flex: 1 1 100%;

        margin: 5px 0;

    } */

    .publication-img {
        flex-basis: 50%; /* make each publication image take up 50% of the row */
        margin-bottom: 20px; /* add some margin between images */
    }
}

@media (max-width: 767.98px) {
    .navbar-custom {
        height: auto;
    }

    .col-md-3,
    .col-md-6 {
        height: auto;
    }

    .card-body {
        height: auto;
        overflow: auto;
    }

    .main-container {
        height: auto;
    }

    .map-wrapper {
        height: 600px;
    }

    .card-body {
        max-height: none;
    }

}