/* General Page Styling */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f6f8;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Container for Product Details and Chart - Horizontal Alignment */
.detail-container {
    display: grid;
    grid-template-columns: 3fr 1fr; /* Expand details section and keep chart on the right */
    gap: 20px;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    align-items: flex-start;
}

/* Expanded Product Details Section */
.product-details {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-details .info-section p {
    margin: 8px 0;
    color: #333;
}

.product-details strong {
    color: #2b3a42;
}
/* Ensure the chart-container and buttons are stacked */
.chart-container {
    background-color: #f4f4f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px; /* Space below the chart container */
}

/* Contact Button Container to Center and Stack Buttons */
.contact-btn-container {
    display: flex;
    justify-content: center;
    margin-bottom: 10px; /* Space between stacked buttons */
    text-align: center;
}

.contact-btn-container button {
    background-color: #4b5d67;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%; /* Make buttons full width */
    max-width: 200px; /* Limit button width for readability */
}

.contact-btn-container button:hover {
    background-color: #2b3a42;
}


.chart-container h3 {
    margin-bottom: 15px;
    font-size: 18px;
    color: #2b3a42;
    text-align: center;
}

#fundingChart {
    width: 100%;
    max-width: 250px;
    height: auto;
}



/* Modal Styling */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5em;
    color: #aaa;
    cursor: pointer;
}
