/* style.css - Responsive with narrower header and adjusted positioning */

html {
    height: 100%;
}

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

body {
    font: normal 14px 'Liberation Sans', Arial, sans-serif;
    background: #FFF;
    color: #5D5D5D;
    line-height: 1.6;
}

p {
    padding: 0 0 15px 0;
    line-height: 1.7em;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Liberation Sans', Arial, sans-serif;
    color: #3ED305;
    margin: 0 0 15px 0;
    padding: 15px 0 0 0;
    line-height: 1.3;
}

h1 { font-size: 175%; font-weight: bold; }
h2 { font-size: 165%; font-weight: bold; }
h3 { font-size: 125%; font-weight: bold; padding: 0 0 10px 0; color: #3ED305; }
h4 { font-size: 110%; font-weight: bold; color: #1D1D1D; }
h5 { font-size: 105%; font-style: italic; }
h6 { font-size: 95%; font-style: italic; color: #362C20; }

a, a:hover {
    background: transparent;
    outline: none;
    text-decoration: underline;
    color: #5D5D5D;
    transition: color 0.2s;
}

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

ul {
    margin: 2px 0 22px 17px;
}

ul li {
    margin: 0 0 10px 17px;
    line-height: 1.6;
}

ol {
    margin: 8px 0 22px 20px;
}

ol li {
    margin: 0 0 11px 0;
}

/* Main Container */
#main {
    background: #FFF url(../images/background.jpg) repeat-x;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    position: relative;
}

/* NARROWER HEADER - 30% narrower (105px instead of 150px) */
#header {
    width: 100%;
    max-width: 920px;
    height: 105px; /* 30% narrower: 150px * 0.7 = 105px */
    padding: 15px 0 0 30px; /* Adjusted top padding */
    background: transparent;
    margin: 0 auto;
    position: relative;
    z-index: 20; /* Header text above banner */
}

/* WHITE FRAME CONTAINER - More top margin to compensate for narrower header */
#site_background {
    margin: 25px auto 0 auto; /* Increased top margin to show more white edge */
    padding: 20px; /* White frame padding */
    background: #FFF url(../images/pattern.png) repeat;
    width: 100%;
    max-width: 920px;
    border-radius: 15px 15px 0 0; /* Round top corners */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Subtle shadow for depth */
}

/* BANNER - Adjusted overlap for narrower header */
#banner {
    background: #FFF;
    width: 100%;
    max-width: 880px; /* Shows white edges on sides */
    padding: 0;
    margin: -35px auto 0 auto; /* Reduced overlap for narrower header: 50px * 0.7 = ~35px */
    position: relative;
    z-index: 10; /* Below header text, above header background */
    border-radius: 10px 10px 0 0; /* Round top corners to match frame */
    overflow: hidden; /* Ensure banner image respects rounded corners */
}

#banner_content {
    width: 100%;
    max-width: 860px; /* Ensures white edges visible */
    position: relative;
    height: 250px;
    background: #FFF url(../images/banner.jpg) no-repeat center center;
    background-size: contain; /* Shows full banner without cropping */
    background-position: center center;
    margin: 0 auto;
    border: none;
    background-color: #f8f8f8; /* Light background in case banner doesn't fill space */
}

/* Header Text - Left aligned, adjusted for narrower header */
#header h1 {
    font: normal 190% Arial, Helvetica, sans-serif; /* Slightly smaller */
    color: #FFF;
    margin-bottom: 3px;
    text-align: left;
    padding-top: 8px;
}

#header span {
    color: #3ED305;
}

#header h2 {
    font: italic 150% Arial, Helvetica, sans-serif; /* Slightly smaller */
    color: #FFF;
    margin-top: -8px;
    text-align: left;
}

#menubar {
    width: 100%;
    max-width: 920px;
    height: 50px;
    text-align: center;
    margin: 0 auto;
    background: transparent;
    color: #000;
    position: relative;
    z-index: 30; /* Above everything */
}

#contact {
    width: 160px;
    float: left;
    height: 50px;
    background: transparent;
    padding: 0 0 0 10px;
}

/* CONTENT AREA */
#site_content {
    width: 100%;
    max-width: 880px; /* Matches banner width for consistency */
    overflow: hidden;
    margin: 0 auto;
    padding: 20px 10px 10px 10px; /* Side padding for space from white frame */
    background: #FFF;
    position: relative;
    z-index: 10;
}

/* Two-column layout */
.content-column {
    width: 580px; /* Account for side padding */
    float: left;
    padding-left: 10px;
    padding-right: 10px;
}

.blog-column {
    width: 220px; /* Account for side padding */
    float: right;
    padding-left: 10px;
    padding-right: 10px;
}

.sidebar_container {
    width: 100%; /* Full width of blog column */
    margin: 20px 0 20px 0;
    background: #1D1D1D;
    padding: 15px;
    border-radius: 8px; /* Rounded corners for sidebar */
}

.sidebar {
    width: 100%;
    padding: 0;
    margin-bottom: 10px;
}

.sidebar_item {
    font: normal 100% Arial, Helvetica, sans-serif;
    padding: 0 15px 0 0;
    width: 100%;
}

.sidebar h2 {
    color: #3ED305;
}

.sidebar h4 {
    font-size: 125%;
    color: #FFF;
}

.sidebar p {
    color: #FFF;
}

.sidebar a {
    color: #FFF;
}

.sidebar a:hover {
    text-decoration: none;
}

.sidebar ul li, .sidebar ul li.selected {
    list-style: none;
    margin: 15px 0;
    padding: 0;
}

.sidebar li.selected, .sidebar li:hover {
    color: #5D5D5D;
    text-decoration: none;
}

#content {
    text-align: left;
    width: 100%;
    padding: 0;
    margin: 0;
    background: #FFF;
    overflow: hidden;
}

.content_item {
    width: 100%;
    max-width: 580px; /* Matches content-column width */
    margin: 0 0 20px 0;
    padding: 0;
}

.content_image {
    width: 250px;
    padding: 0 15px 15px 0;
    float: left;
}

.container_header {
    display: none; /* Hide empty container */
}

/* Consistent image styling */
.content-image {
    max-width: 100%;
    border: 1px solid #ccc;
    margin-bottom: 20px;
    border-radius: 5px;
}

.reduced-image {
    width: 60%;
    max-width: 343px;
    border: 1px solid #ccc;
    margin-bottom: 30px;
    border-radius: 5px;
}

#footer {
    padding: 0;
    background: #1D1D1D;
    clear: both;
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    border-radius: 0 0 15px 15px; /* Round bottom corners */
    overflow: hidden;
}

#footer_content {
    width: 100%;
    max-width: 920px;
    font: normal 115% "liberation sans", arial, sans-serif;
    min-height: 45px;
    padding: 30px 20px;
    text-align: center;
    background: #1D1D1D;
    color: #FFF;
    margin: 0 auto;
}

#footer a, #footer a:hover {
    color: #FFF;
    background: #1D1D1D;
    text-decoration: underline;
}

#footer a:hover {
    text-decoration: none;
}

/* Lists */
ul.links {
    margin: 0;
}

ul.links li {
    list-style: none;
    padding: 8px 0;
}

ul.links li a, ul.links li a:hover {
    padding: 0 0 0 28px;
    background: transparent url(../images/page.png) no-repeat left center;
    color: #06C4E6;
    text-decoration: underline;
}

ul.links li a:hover {
    color: #5D5D5D;
    text-decoration: none;
}

/* LavaLamp Menu */
.lavaLampWithImage {
    position: relative;
    height: 30px;
    padding: 5px 35px 5px 0px;
    overflow: hidden;
    float: left;
    margin: 0 40px 0 0px;
    width: 650px;
}

.lavaLampWithImage li {
    float: left;
    list-style: none;
}

.lavaLampWithImage li.back {
    background: #E1E1E1;
    height: 28px;
    z-index: 8;
    position: absolute;
}

.lavaLampWithImage li a {
    font: normal 120% arial, sans-serif;
    text-decoration: none;
    color: #1D1D1D;
    text-align: center;
    letter-spacing: 0;
    z-index: 10;
    display: block;
    float: left;
    height: 60px;
    padding: 5px 0px 0px 35px;
    position: relative;
    overflow: hidden;
}

.lavaLampWithImage li a:hover,
.lavaLampWithImage li a:active,
.lavaLampWithImage li a:visited {
    border: none;
}

/* Clearfix */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Text styling */
big {
    font-size: 110%;
    line-height: 1.6;
}

/* Consistent spacing */
.text-section {
    margin-bottom: 20px;
}

.list-section {
    margin: 15px 0 20px 15px;
}

.list-item {
    margin-bottom: 10px;
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
    #main {
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }
    
    #header {
        width: 100%;
        height: 85px; /* 30% narrower on mobile: 130px * 0.7 = ~91px, rounded to 85px */
        padding: 10px 0 0 20px;
    }
    
    #header h1 {
        font-size: 160%;
        padding-top: 5px;
    }
    
    #header h2 {
        font-size: 130%;
        margin-top: -5px;
    }
    
    #site_background {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        border-radius: 12px 12px 0 0;
        margin: 20px auto 0 auto; /* Increased top margin */
    }
    
    #banner {
        width: 100%;
        max-width: 100%;
        margin: -25px auto 0 auto; /* Reduced overlap for mobile */
        border-radius: 8px 8px 0 0;
    }
    
    #banner_content {
        width: 100%;
        height: 180px;
        background-size: contain;
        background-position: center center;
        background-color: #f8f8f8;
        border-radius: 8px 8px 0 0;
    }
    
    #menubar {
        width: 100%;
        height: auto;
        padding: 10px 0;
    }
    
    .lavaLampWithImage {
        width: 100%;
        float: none;
        margin: 0;
        padding: 0;
        height: auto;
    }
    
    .lavaLampWithImage li {
        float: none;
        display: block;
        margin: 5px 0;
    }
    
    .lavaLampWithImage li a {
        height: auto;
        padding: 10px 15px;
        float: none;
        display: block;
        background: #E1E1E1;
        border-radius: 5px;
    }
    
    .lavaLampWithImage li.back {
        display: none;
    }
    
    #contact {
        width: 100%;
        float: none;
        text-align: center;
        padding: 10px 0;
    }
    
    #site_content {
        width: 100%;
        max-width: 100%;
        padding: 15px 5px;
    }
    
    .content-column {
        width: 100%;
        float: none;
        padding: 0 10px;
    }
    
    .blog-column {
        width: 100%;
        float: none;
        padding: 0 10px;
    }
    
    .sidebar_container {
        width: 100%;
        margin: 20px 0;
    }
    
    #content {
        width: 100%;
        margin: 0;
    }
    
    .content_item {
        width: 100%;
        max-width: 100%;
        margin: 0 0 20px 0;
        padding: 0;
    }
    
    .content_image {
        width: 100%;
        max-width: 250px;
        float: none;
        margin: 0 auto 20px auto;
        padding: 0;
        text-align: center;
    }
    
    .reduced-image {
        width: 100%;
        max-width: 343px;
        margin: 0 auto 30px auto;
    }
    
    #footer {
        width: 100%;
        max-width: 100%;
        border-radius: 0 0 12px 12px;
    }
    
    #footer_content {
        width: 100%;
        padding: 20px 15px;
        height: auto;
    }
}

/* TABLET RESPONSIVE STYLES */
@media (min-width: 769px) and (max-width: 1024px) {
    #main {
        width: 95%;
        max-width: 95%;
    }
    
    #header {
        width: 100%;
        height: 95px; /* 30% narrower: 140px * 0.7 = 98px, rounded to 95px */
        padding: 15px 0 0 25px;
    }
    
    #site_background {
        width: 100%;
        max-width: 100%;
        padding: 18px;
        margin: 20px auto 0 auto; /* Increased top margin */
    }
    
    #banner {
        width: 100%;
        max-width: 100%;
        margin: -30px auto 0 auto; /* Reduced overlap */
    }
    
    #banner_content {
        width: 100%;
        height: 220px;
        background-size: contain;
        background-position: center center;
        background-color: #f8f8f8;
    }
    
    #site_content {
        width: 100%;
        max-width: 100%;
        padding: 20px 5px;
    }
    
    .content-column {
        width: 65%;
        padding: 0 15px;
    }
    
    .blog-column {
        width: 32%;
        padding: 0 15px;
    }
    
    .content_item {
        max-width: 100%;
    }
    
    .lavaLampWithImage {
        width: 500px;
    }
    
    #footer {
        width: 100%;
        max-width: 100%;
    }
}

/* DESKTOP STYLES */
@media (min-width: 1025px) {
    #main {
        width: 920px;
        max-width: 920px;
    }
    
    #header {
        width: 920px;
        height: 105px; /* 30% narrower */
        padding: 15px 0 0 30px;
    }
    
    #site_background {
        width: 920px;
        max-width: 920px;
        padding: 20px;
        margin: 25px auto 0 auto; /* Increased top margin */
    }
    
    #banner {
        width: 880px;
        margin: -35px auto 0 auto; /* Reduced overlap */
    }
    
    #banner_content {
        width: 860px;
        height: 250px;
        background-size: contain;
        background-position: center center;
        background-color: #f8f8f8;
    }
    
    #site_content {
        width: 880px;
        padding: 20px 10px 10px 10px;
    }
    
    .content-column {
        width: 580px;
        padding: 0 10px;
    }
    
    .blog-column {
        width: 220px;
        padding: 0 10px;
    }
    
    .content_item {
        width: 580px;
    }
    
    .lavaLampWithImage {
        width: 650px;
    }
    
    #footer {
        width: 920px;
        max-width: 920px;
    }
}

/* Ensure inline styles from HTML don't break mobile layout */
@media (max-width: 768px) {
    div[style*="width: 600px; float: left;"],
    div[style*="width: 230px; float: right;"],
    div[style*="width:200px; float:left;"] {
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        margin: 0 auto 20px auto !important;
    }
    
    div[style*="overflow: hidden;"] {
        overflow: visible !important;
    }
}