/* BeloHorizonte.com Stylesheet */

/* General styling */
body {
    font-family: 'Times New Roman', Times, serif;
    background-color: #FFFFFF;
    color: #000000;
    margin: 0;
    padding: 20px;
}

/* Links */
a {
    color: #000000;
    text-decoration: none;
}

a:visited {
    color: #333333;
}

a:hover {
    color: #000080;
    text-decoration: underline;
}

a:active {
    color: #000080;
}

/* Responsive table width rules - applies to all tables site-wide */
table {
    width: 90% !important;
    min-width: 600px;
    max-width: 100%;
    box-sizing: border-box;
}

/* Tables that should remain auto-width (nested tables, small tables) */
table table {
    width: 100% !important;
    min-width: 0;
}

/* Navigation menu */
.nav-menu {
    text-align: center;
    margin-bottom: 20px;
}

.nav-menu table {
    margin: 0 auto;
}

.nav-menu a {
    font-family: 'Arial Narrow', Arial, Helvetica, sans-serif;
    font-size: 14px;
}

/* Top menu table - always maintain minimum width */
#topmenu {
    min-width: 480px !important;
}

/* Header */
.header {
    text-align: center;
    margin: 20px 0;
}

.header h1 {
    font-family: 'Arial Narrow', Arial, Helvetica, sans-serif;
    color: #000080;
    font-size: 36px;
    margin: 10px 0;
}

/* Content sections */
.content-grid {
    display: table;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    border-collapse: collapse;
}

.content-section {
    padding: 15px;
    vertical-align: top;
}

.content-section h2 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #000000;
}

/* List styling */
.content-section ul {
    list-style-type: none;
    margin: 0 0 20px 0;
    padding: 0;
}

.content-section li {
    margin: 4px 0;
    line-height: 1.4;
}

.content-section li a {
    display: inline;
}

/* Background colors for sections */
.bg-green {
    background-color: #D0F0D0;
}

.bg-light-gray {
    background-color: #F0F0F0;
}

.bg-light-blue {
    background-color: #D0D0F0;
}

.bg-light-red {
    background-color: #F0D0D0;
}

.bg-light-yellow {
    background-color: #F0F0D0;
}

.bg-pale-yellow {
    background-color: #F0F0B0;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    font-family: 'Arial Narrow', Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.footer-links {
    font-family: 'Arial Narrow', Arial, Helvetica, sans-serif;
    color: #000080;
    font-size: 16px;
    margin-bottom: 10px;
}

/* Banner/Ad section */
.banner {
    text-align: center;
    margin: 20px 0;
}

/* Image responsiveness */
img {
    max-width: 100%;
    height: auto;
}

/* Horizontal rules */
hr {
    border: 0;
    height: 1px;
    background-color: #CCCCCC;
    margin: 20px 0;
}

/* Responsive adjustments for tablets and smaller screens */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .content-section {
        padding: 10px;
    }

    .header h1 {
        font-size: 28px;
    }

    /* On smaller screens, allow tables to shrink below minimum */
    table:not(#topmenu) {
        min-width: 0 !important;
        width: 100% !important;
    }

    /* Make table cells stack on very small screens */
    table:not(#topmenu) td {
        display: block;
        width: 100%;
    }

    /* Keep navigation table cells in a row */
    .nav-menu table td,
    table[cellpadding="4"][cellspacing="4"] td {
        display: table-cell;
    }
}

/* Responsive adjustments for mobile phones */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .header h1 {
        font-size: 24px;
    }

    /* Further optimize for very small screens */
    font {
        font-size: inherit !important;
    }
}
