/* General Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

section {
    padding: 60px 0;
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
}

/* Home Section */
.hero-banner {
    height: 500px;
    background-image: url('../images/kakum-hero.png');
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* SDG Icons */
.sdg-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.sdg-item {
    text-align: center;
    width: 120px;
}

.sdg-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
    background-image: url('../images/sdg-icons.jpeg');
    background-size: 400%;
    border-radius: 8px;
}

.sdg-icon.sdg4 {
    background-position: 0 0;
}

.sdg-icon.sdg8 {
    background-position: 33.33% 0;
}

.sdg-icon.sdg13 {
    background-position: 66.66% 0;
}

.sdg-icon.sdg15 {
    background-position: 100% 0;
}

/* Map Section */
.map-container {
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-image: url('../images/forest-view.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.map-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.map-marker:hover {
    transform: scale(1.2);
}

.map-marker.entrance {
    top: 70%;
    left: 20%;
    background-color: #FF5722;
}

.map-marker.canopy {
    top: 30%;
    left: 50%;
    background-color: #4CAF50;
}

.map-marker.wildlife {
    top: 40%;
    left: 70%;
    background-color: #FFC107;
}

.map-marker.campsite {
    top: 60%;
    left: 60%;
    background-color: #2196F3;
}

.map-popup {
    position: absolute;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 250px;
    z-index: 10;
    display: none;
}

.map-popup.active {
    display: block;
}

.map-popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-weight: bold;
}

.map-legend {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.legend-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border-radius: 50%;
    vertical-align: middle;
}

.legend-icon.entrance {
    background-color: #FF5722;
}

.legend-icon.canopy {
    background-color: #4CAF50;
}

.legend-icon.wildlife {
    background-color: #FFC107;
}

.legend-icon.campsite {
    background-color: #2196F3;
}

.legend-icon.trail {
    background-color: #9C27B0;
}

.map-info {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Biodiversity Section */
.nav-tabs {
    border-bottom: 2px solid #4CAF50;
}

.nav-tabs .nav-link {
    color: #4CAF50;
    border: none;
    font-weight: 600;
    padding: 10px 20px;
}

.nav-tabs .nav-link.active {
    color: white;
    background-color: #4CAF50;
    border-radius: 4px 4px 0 0;
}

.species-card {
    height: 100%;
}

.species-img-container {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 8px 8px 0 0;
}

#mammals .species-card:nth-child(1) .species-img-container {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mammals .species-card:nth-child(1) .species-img-container::after {
    content: "Forest Elephant";
    font-weight: bold;
    color: #333;
}

#mammals .species-card:nth-child(2) .species-img-container {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mammals .species-card:nth-child(2) .species-img-container::after {
    content: "Bongo Antelope";
    font-weight: bold;
    color: #333;
}

#mammals .species-card:nth-child(3) .species-img-container {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

#mammals .species-card:nth-child(3) .species-img-container::after {
    content: "Diana Monkey";
    font-weight: bold;
    color: #333;
}

#birds .species-card:nth-child(1) .species-img-container {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

#birds .species-card:nth-child(1) .species-img-container::after {
    content: "African Grey Parrot";
    font-weight: bold;
    color: #333;
}

#birds .species-card:nth-child(2) .species-img-container {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

#birds .species-card:nth-child(2) .species-img-container::after {
    content: "Yellow-casqued Hornbill";
    font-weight: bold;
    color: #333;
}

#birds .species-card:nth-child(3) .species-img-container {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

#birds .species-card:nth-child(3) .species-img-container::after {
    content: "Fraser's Eagle-owl";
    font-weight: bold;
    color: #333;
}

#plants .species-card:nth-child(1) .species-img-container {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

#plants .species-card:nth-child(1) .species-img-container::after {
    content: "African Mahogany";
    font-weight: bold;
    color: #333;
}

#plants .species-card:nth-child(2) .species-img-container {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

#plants .species-card:nth-child(2) .species-img-container::after {
    content: "Silk Cotton Tree";
    font-weight: bold;
    color: #333;
}

#plants .species-card:nth-child(3) .species-img-container {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
}

#plants .species-card:nth-child(3) .species-img-container::after {
    content: "African Oil Palm";
    font-weight: bold;
    color: #333;
}

.conservation-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.conservation-status.endangered {
    background-color: #F44336;
}

.conservation-status.vulnerable {
    background-color: #FF9800;
}

.conservation-status.near-threatened {
    background-color: #FFC107;
}

.conservation-status.least-concern {
    background-color: #4CAF50;
}

/* Climate Threats Section */
.threat-card {
    height: 100%;
    background-color: white;
}

.threat-impact {
    margin-top: 20px;
}

.impact-slider {
    height: 30px;
    background: linear-gradient(to right, #4CAF50, #FFEB3B, #F44336);
    border-radius: 15px;
    position: relative;
}

.slider-handle {
    position: absolute;
    width: 20px;
    height: 30px;
    background-color: white;
    border-radius: 10px;
    top: 0;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.conservation-initiatives {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.initiative-item {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.sdg-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4CAF50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.take-action-box {
    background-color: #4CAF50;
    color: white;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
}

.take-action-box ul li {
    margin-bottom: 10px;
}

/* Virtual Tour Section */
.panorama-container {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-image: url('../images/canopy-walkway.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.panorama-hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.panorama-hotspot:hover {
    transform: scale(1.2);
}

.panorama-hotspot:nth-child(1) {
    top: 40%;
    left: 30%;
}

.panorama-hotspot:nth-child(2) {
    top: 60%;
    left: 50%;
}

.panorama-hotspot:nth-child(3) {
    top: 30%;
    left: 70%;
}

.panorama-popup {
    position: absolute;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 250px;
    z-index: 10;
    display: none;
}

.panorama-popup.active {
    display: block;
}

.panorama-popup-close {
    position: absolute;
    top: 5px;
    right: 10px;
    cursor: pointer;
    font-weight: bold;
}

.gallery-container {
    margin-top: 30px;
}

.gallery-thumbnail {
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-thumbnail:hover {
    transform: scale(1.05);
}

.gallery-thumbnail[data-panorama="canopy"] {
    background-image: url('../images/canopy-walkway.jpeg');
}

.gallery-thumbnail[data-panorama="trail"] {
    background-image: url('../images/forest-view.jpeg');
}

.gallery-thumbnail[data-panorama="viewpoint"] {
    background-image: url('../images/canopy-walkway-2.jpeg');
}

.gallery-thumbnail[data-panorama="entrance"] {
    background-image: url('../images/kakum-hero.png');
}

.gallery-thumbnail[data-panorama="river"] {
    background-image: url('../images/forest-view.jpeg');
}

.gallery-thumbnail[data-panorama="campsite"] {
    background-image: url('../images/canopy-walkway-person.jpeg');
}

/* Footer */
footer a {
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-banner {
        height: 300px;
    }
    
    .map-container, .panorama-container {
        height: 350px;
    }
    
    .sdg-item {
        width: 80px;
    }
    
    .sdg-icon {
        width: 60px;
        height: 60px;
    }
}
