* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    background: #f5f5f5;
}

#wrapper {
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

#header {
    padding: 20px;
    position: relative;
}

#logo {
    float: left;
}

#logo img {
    max-width: 280px;
    height: auto;
}

.tel {
    float: right;
    text-align: right;
    max-width: 400px;
}

.tel p {
    margin: 0 0 10px 0;
    color: #999;
    font-size: 11px;
    line-height: 1.4;
}

.tel h1 {
    margin: 15px 0 0 0;
    color: #990000;
    font-size: 15px;
    font-weight: bold;
    text-align: right;
}

#top_nav {
    clear: both;
    margin-top: 20px;
    background: #990000;
    border-radius: 4px;
}

#top_nav ul {
    list-style: none;
    display: flex;
}

#top_nav li {
    flex: 1;
    text-align: center;
}

#top_nav li.nonActive a {
    display: block;
    padding: 12px 8px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-right: 1px solid rgba(255,255,255,0.2);
    transition: background 0.2s;
}

#top_nav li.nonActive:last-child a {
    border-right: none;
}

#top_nav li.nonActive a:hover {
    background: #7a0000;
}

#content {
    padding: 20px;
}

.twoColumnLayout {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.leftColumn {
    width: 200px;
}

.box_mortgage {
    flex: 1;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    position: relative;
    min-height: 180px;
}

.box_mortgage h2 {
    color: #990000;
    font-size: 18px;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.box_mortgage h2 a {
    color: #990000;
    text-decoration: none;
}

.box_mortgage p {
    margin: 0;
    color: #333;
}

.box_mortgage .amount {
    color: #990000;
    font-size: 24px;
    font-weight: bold;
}

.box_mortgage .benefit {
    color: #666;
    font-size: 12px;
}

.box_mortgage img {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

[style*="background-image: url(images/box1.gif)"] {
    clear: both;
    margin-top: 20px;
    padding: 25px 20px;
    background: #f8f8f8 !important;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: auto !important;
}

[style*="background-image: url(images/box1.gif)"] h3 {
    margin: 0 0 15px 0;
    color: #990000;
    font-size: 16px;
}

.quoteInfo {
    float: left;
    width: 45%;
    margin-right: 5%;
}

.quoteInfo p {
    margin: 0;
    padding-right: 15px;
    border-right: 1px solid #ccc;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.quoteInfo + .quoteInfo {
    padding-left: 15px;
}

.quoteInfo ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.quoteInfo li {
    margin-bottom: 8px;
}

.quoteInfo a {
    color: #990000;
    text-decoration: none;
    font-size: 13px;
}

.quoteInfo a:hover {
    text-decoration: underline;
}

[style*="float:right; width:260px"] {
    float: right;
    width: 260px;
    margin: 0 !important;
}

[style*="float:right; width:260px"] h3 {
    margin: 0 0 10px 0;
    font-size: 15px;
}

[style*="float:right; width:260px"] h3 a {
    color: #990000;
    text-decoration: none;
}

[style*="float:right; width:260px"] p {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.box_loan {
    width: 280px;
    float: right;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    min-height: 180px;
    position: relative;
    margin-top: 20px;
}

.box_loan h2 {
    color: #990000;
    font-size: 16px;
    margin: 0 0 10px 0;
}

.box_loan h2 a {
    color: #990000;
    text-decoration: none;
}

.description_loan {
    color: #666;
    font-size: 13px;
    font-weight: normal;
    margin: 60px 0 0 0;
}

.bottom_box {
    clear: both;
    margin-top: 20px;
    display: flex;
    gap: 20px;
    padding-top: 20px;
}

.news1 {
    flex: 1;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.news1 h3 {
    color: #990000;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.news1 h5 {
    color: #333;
    font-size: 13px;
    margin: 15px 0 8px 0;
}

.news1 p {
    color: #555;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.news1 a {
    color: #990000;
    text-decoration: none;
}

.news1 a:hover {
    text-decoration: underline;
}

.news1 font {
    color: #777;
}

.news2 {
    width: 280px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
}

.news2 h2.box_loan {
    color: #990000;
    font-size: 14px;
    margin: 0 0 10px 0;
    width: auto;
    float: none;
    background: transparent;
    border: none;
    padding: 0;
    min-height: auto;
}

.news2 p {
    color: #555;
    font-size: 12px;
    line-height: 1.5;
    margin: 0 0 10px 0;
}

.news2 strong {
    color: #333;
}

#footer {
    background: #333;
    color: #ccc;
    padding: 20px;
    margin-top: 30px;
}

#footerNavigation {
    margin-bottom: 15px;
}

#footerNavigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

#footerNavigation li.first {
    display: none;
}

.credits {
    color: #999;
    font-size: 12px;
    margin: 10px 0 0 0;
}

.copyright {
    color: #999;
    font-size: 11px;
    line-height: 1.5;
    border-top: 1px solid #555;
    padding-top: 15px;
    margin: 0;
}

[style*="margin-top:25px"] {
    clear: both;
    margin: 25px 0 15px 0 !important;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
}

[style*="margin-top:25px"] h3 {
    color: #990000;
    font-size: 16px;
    margin: 20px 0 10px 0;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

[style*="margin-top:25px"] h3:first-of-type,
[style*="margin-top:25px"] a[name] + h3 {
    border-top: none;
    padding-top: 0;
}

[style*="margin-top:25px"] h5 {
    color: #555;
    font-size: 13px;
    font-weight: normal;
    margin: 15px 0;
    line-height: 1.5;
}

[style*="margin-top:25px"] p {
    color: #444;
    font-size: 13px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

[style*="margin-top:25px"] ul {
    margin: 10px 0 15px 20px;
    padding: 0;
}

[style*="margin-top:25px"] li {
    margin-bottom: 8px;
    color: #444;
    font-size: 13px;
}

[style*="margin-top:25px"] a {
    color: #990000;
    text-decoration: none;
}

[style*="margin-top:25px"] a:hover {
    text-decoration: underline;
}

.content_bottom {
    margin-top: 20px;
}

.clear {
    clear: both;
}

.style1 {
    color: #990000;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: #990000;
}

img {
    max-width: 100%;
    height: auto;
}

@media print {
    #top_nav, #footer, [style*="margin-top:25px"] {
        display: none;
    }
    
    #wrapper {
        max-width: 100%;
    }
    
    body {
        background: #fff;
    }
}