/*
Theme Name: Lightweight Theme
Description: A very simple, responsive, and lightweight WordPress theme.
Author: You
Version: 1.4
*/

/* Basic Reset & Responsive Defaults */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; line-height: 1.6; color: #333; background: #f9f9f9; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: #0073aa; }

/* Layout & Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.site-header { background: #fff; border-bottom: 1px solid #ddd; padding: 15px 0; position: relative; z-index: 1000; transition: box-shadow 0.3s; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.site-footer { background: #333; color: #fff; padding: 20px 0; text-align: center; margin-top: 40px;}

/* --- NEW: Sticky Header --- */
.site-header.is-sticky { position: sticky; top: 0; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1); }

/* --- NEW: Header Alignment & Branding --- */
.site-branding { display: flex; align-items: center; gap: 15px; }
.site-logo img { max-height: 50px; display: block; }
.site-title { font-size: 1.5rem; margin: 0; font-weight: bold; }
.site-title a { color: #333; }

/* Right Align */
.header-align-right .header-inner { flex-direction: row-reverse; }

/* Center Align */
.header-align-center .header-inner { flex-direction: column; gap: 15px; justify-content: center; text-align: center; }
.header-align-center .site-branding { flex-direction: column; gap: 5px; }
.header-align-center .main-nav { justify-content: center; }
.header-align-center .main-nav.is-standard .menu-container ul { justify-content: center; }

/* Main Content Area */
.site-content { display: flex; flex-wrap: wrap; gap: 30px; margin-top: 30px; }
.content-area { flex: 1 1 70%; background: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);}
.sidebar-area { flex: 1 1 25%; background: #fff; padding: 20px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);}

/* Standard Navigation */
.main-nav { display: flex; align-items: center; width: 100%; }
.main-nav.is-standard { width: auto; }
.main-nav.is-standard .hamburger-toggle { display: none; }
.main-nav.is-standard .menu-container ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.main-nav.is-standard .menu-container ul li a { color: #333; font-weight: bold; }

/* Hamburger Navigation */
.hamburger-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 5px; flex-direction: column; gap: 5px; }
.hamburger-toggle .bar { width: 28px; height: 3px; background-color: #333; transition: 0.3s; border-radius: 2px; }

.main-nav.is-hamburger { width: 100%; display: block; }
.main-nav.is-hamburger .hamburger-toggle { display: flex; margin: 0 auto; }
.header-align-left .main-nav.is-hamburger .hamburger-toggle { margin-right: 0; }
.header-align-right .main-nav.is-hamburger .hamburger-toggle { margin-left: 0; }

.main-nav.is-hamburger .menu-container { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 0; 
    width: 100%; 
    background: #fff; 
    border-bottom: 1px solid #ddd; 
    padding: 10px 20px; 
    box-shadow: 0 5px 10px rgba(0,0,0,0.05); 
}
.main-nav.is-hamburger .menu-container.is-active { display: block; }
.main-nav.is-hamburger .menu-container ul { list-style: none; display: flex; flex-direction: column; margin: 0; padding: 0; }
.main-nav.is-hamburger .menu-container ul li { border-bottom: 1px solid #f1f1f1; text-align: left; }
.main-nav.is-hamburger .menu-container ul li:last-child { border-bottom: none; }
.main-nav.is-hamburger .menu-container ul li a { display: block; padding: 12px 0; color: #333; font-weight: bold; }

/* Responsive Mobile Fallback */
@media (max-width: 768px) {
    .site-content { flex-direction: column; }
    .content-area, .sidebar-area { flex: 1 1 100%; }
    .header-inner { flex-direction: column; gap: 15px; }
    .main-nav.is-standard .menu-container ul { flex-wrap: wrap; justify-content: center; }
}