@charset "utf-8";

/* Modern Reset */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    color: #333;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 100%;
    line-height: 1.4;
    background-color: #EF0000;
    background-image: url(../images/bg.gif);
    background-repeat: repeat-x;
}

/* Element/tag selectors */
ul, ol, dl {
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4, h5, h6, p {
    margin-top: 0;
    padding-right: 15px;
    padding-left: 15px;
}

a img {
    border: none;
}

/* Link Styling */
a:link {
    color: #42413C;
    text-decoration: underline;
}

a:visited {
    color: #6E6C64;
    text-decoration: underline;
}

a:hover, a:active, a:focus {
    text-decoration: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    background-color: #EF0000;
    background-image: url(../images/bgContaine1r.gif);
    background-repeat: no-repeat;
    color: #000;
}

/* Header */
.header {
    background-color: #333;
    background-image: url(../images/header.gif);
    background-repeat: no-repeat;
    background-position: left top;
    background-size: contain; /* Changed from cover */
    height: 72px; /* Fixed height to match image */
    width: 100%;
    color: #FFF;
    position: relative;
    overflow: visible;
}

.header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 5px 15px;
    height: 100%;
}

.page-title {
    width: 534px; /* Original width */
    color: #FFF;
    padding-top: 10px;
}

.header a {
    font-size: 12px;
    font-weight: normal; /* Changed from bold */
    color: #FFF !important;
    text-decoration: none;
    padding: 2px 5px;
}

.header a:hover {
    text-decoration: underline;
    background-color: transparent;
}

.header a:visited {
    color: #FFF !important;
}

/* Navigation */
.nav {
    display: flex;
    flex-wrap: nowrap; /* Changed from wrap to nowrap */
    gap: 3px; /* Reduced from 5px */
    align-items: center;
    padding-top: 15px;
    text-align: right;
    justify-content: flex-end;
    flex-shrink: 0; /* Prevent shrinking */
}

.nav a {
    white-space: nowrap;
    font-size: 11px; /* Slightly smaller to fit */
}

/* Separator between links */
.nav a:not(:last-child)::after {
    content: " |";
    color: #FFF;
    padding-left: 3px; /* Reduced from 5px */
}

/* Layout Columns */
.sidebar1 {
    float: left;
    width: 470px;
    background: #ffffff;
    padding: 10px;
    margin-right: 20px;
    margin-bottom: 20px;
    border: 1px solid #EFF2B3;
    border-radius: 8px;
}

.sidebar1 img {
    max-width: 100%;
    height: auto;
}

.content {
    width: 260px;
    float: left;
    padding: 10px 0;
    background-color: #FFF;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sidebar2 {
    float: left;
    width: 180px;
    background: transparent;
    padding: 10px 0;
    margin-bottom: 20px;
}

/* Content Lists */
.content ul, .content ol {
    padding: 0 15px 15px 40px;
    font-size: 12px;
}

.content li {
    font-size: 12px;
}

/* Footer */
.footer {
    padding: 10px 15px;
    background: transparent;
    clear: both;
    color: #FFF;
    text-align: center;
}

.footer p {
    margin: 0;
    padding: 0;
}

.footer a {
    color: #FFF;
}

/* Utility Classes */
.fltrt {
    float: right;
    margin-left: 8px;
}

.fltlft {
    float: left;
    margin-right: 8px;
}

.clearfloat {
    clear: both;
    height: 0;
    font-size: 1px;
    line-height: 0;
}

/* Responsive Design */
@media (max-width: 1120px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
}

@media (max-width: 800px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sidebar1, .content, .sidebar2 {
        float: none;
        width: 100%;
        margin-right: 0;
    }
    
    .sidebar1 {
        order: 1;
    }
    
    .content {
        order: 2;
        padding: 10px;
    }
    
    .sidebar2 {
        order: 3;
    }
}

@media (max-width: 480px) {
    .header {
        background-size: cover;
    }
    
    h1, h2, h3, h4, h5, h6, p {
        padding-right: 10px;
        padding-left: 10px;
    }
    
    .nav a {
        display: block;
        padding: 8px 0;
    }
}