body {
    background: linear-gradient(135deg, #f0f4f8 0%, #ffffff 100%); /* Subtle gradient */
    color: #333333;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    text-align: center;
    min-height: 100vh;
}

header {
    background: #d32f2f; /* Canadian red */
    padding: 20px;
    border-bottom: 5px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 15px; /* Rounded header */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header-logo {
    width: 100px;
    height: auto;
    transition: transform 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.1);
}

h1 {
    margin: 0;
    font-size: 40px;
    color: #ffffff;
    text-transform: uppercase;
    font-weight: 700;
}

.branding-tagline {
    margin: 10px 0 0;
    font-size: 18px;
    color: #ffffff;
    font-weight: 300;
    background: rgba(0, 0, 0, 0.1);
    padding: 5px 15px;
    border-radius: 5px;
    display: inline-block;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Wider minimum width for larger data */
    gap: 15px;
    margin-top: 30px;
    max-width: 1200px; /* Increased max-width for better fit */
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

.counter-box {
    background: #f9f9f9; /* Light gray background */
    color: #333333;
    padding: 12px;
    border-radius: 10px; /* Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #d32f2f;
    overflow: hidden; /* Prevent overflow issues */
}

.counter-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.3);
}

.counter-box h2 {
    font-size: 14px;
    margin: 0 0 6px;
    color: #444444;
    font-weight: 600;
    text-align: left;
    word-break: break-word; /* Allow text to wrap if needed */
}

.counter {
    font-size: 20px; /* Base size */
    font-weight: 700;
    text-align: right;
    background: #d32f2f; /* Red background for debt counters */
    color: #ffffff; /* White text */
    padding: 5px 10px;
    border-radius: 5px;
    display: block;
    word-break: break-all; /* Ensure long numbers wrap */
    white-space: normal; /* Allow wrapping */
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .counter {
        font-size: 18px; /* Smaller on mobile */
    }
    .counter-box {
        padding: 10px;
    }
    .container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Adjust for smaller screens */
    }
}

@media (max-width: 480px) {
    .counter {
        font-size: 16px; /* Even smaller on very small screens */
    }
    .counter-box h2 {
        font-size: 12px;
    }
    .header-logo {
        width: 80px;
    }
    h1 {
        font-size: 32px;
    }
}

.maple-leaf {
    font-size: 24px;
    color: #ffffff;
}

footer {
    margin-top: 30px;
    font-size: 14px;
    color: #ffffff;
    padding: 10px;
    background: #d32f2f;
    border-radius: 15px; /* Rounded footer */
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}