/* Basic Reset & Body Styling */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    border-radius: 8px;
}

/* Header & Navigation */
header {
    background-color: #2c3e50; /* Dark blue-gray */
    color: #ecf0f1; /* Light gray */
    padding: 1em 0;
    text-align: center;
    border-bottom: 4px solid #e67e22; /* Orange accent */
}

header h1 {
    margin: 0;
    font-size: 2.2em;
    letter-spacing: 1px;
}

header h1 a {
    color: #ecf0f1;
    text-decoration: none;
}

nav ul {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

a {
    color: #ecf0f1;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #e67e22; /* Orange accent for hover/active */
    color: #fff;
}

/* Main Content */
main {
    padding: 20px 0;
}

.metal-intro {
    text-align: center;
    margin-bottom: 30px;
}

.metal-intro h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.metal-intro p {
    font-size: 1.1em;
    color: #555;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.widgets-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-around;
    align-items: flex-start; /* Align items to the top */
}

.widget-container {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    text-align: center; /* Center the widget placeholder */
}

.price-widget-container {
    flex: 1 1 300px; /* Allows it to grow, basis 300px */
    min-width: 250px; /* Ensure it's at least widget size */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
}

.chart-widget-container {
    flex: 2 1 600px; /* Allows it to grow, basis 600px, takes more space */
    min-width: 300px; /* Ensure some minimum width */
}

.widget-container h2 {
    color: #e67e22; /* Orange accent for widget titles */
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.5em;
}

/* BullionVault Widget specific styling */
#priceBannerContainer, #chartEmbedContainer {
    margin: 0 auto; /* Center the actual widget if it's smaller than container */
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    background-color: #333;
    color: #aaa;
    font-size: 0.9em;
}

/* Responsive */
@media (max-width: 768px) {
    .widgets-section {
        flex-direction: column;
        align-items: center;
    }

    .price-widget-container,
    .chart-widget-container {
        width: 100%;
        max-width: 500px; /* Prevent excessive width on small screens */
        flex-basis: auto; /* Reset flex-basis */
    }

    nav ul {
        flex-direction: column;
        gap: 5px;
    }
    nav ul li a {
        display: block;
    }
}