/* ===== Basic Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; line-height: 1.6; color: #333; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* ===== Header: Logo 30% / Menu 70% ===== */
.site-header { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}
.header-logo {
    flex: 0 0 30%; /* Exactly 30% width */
    max-width: 30%;
}
.header-logo .custom-logo { max-width: 100%; height: auto; }
.main-navigation {
    flex: 0 0 70%; /* Exactly 70% width */
    max-width: 70%;
    display: flex;
    justify-content: flex-end;
}
.main-navigation ul { list-style: none; display: flex; gap: 20px; }
.main-navigation li a { text-decoration: none; color: #333; font-weight: 600; padding: 5px 10px; }
.main-navigation li a:hover { color: #0073aa; }

/* Mobile Menu Toggle (Hidden on Desktop) */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; }
.hamburger { display: block; width: 25px; height: 3px; background: #333; position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; width: 25px; height: 3px; background: #333; left: 0; }
.hamburger::before { top: -8px; } .hamburger::after { top: 8px; }

/* ===== Hero Slider Full Width ===== */
.hero-slider-section {
    width: 100vw;
    margin-left: calc(50% - 50vw); /* Forces full viewport width */
    margin-right: calc(50% - 50vw);
    overflow: hidden;
}
.hero-slider-section img { width: 100%; height: auto; display: block; }

/* ===== Content Columns (3/4/5 Auto Layout) ===== */
.site-main { padding: 40px 0; }
.content-columns-wrapper {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}
/* Automatic column count based on CSS :has() if supported, or fallback via PHP classes */
.columns-3 { grid-template-columns: repeat(3, 1fr); }
.columns-4 { grid-template-columns: repeat(4, 1fr); }
.columns-5 { grid-template-columns: repeat(5, 1fr); }
/* For 1 or 2 columns */
.columns-1 { grid-template-columns: 1fr; }
.columns-2 { grid-template-columns: repeat(2, 1fr); }

.content-column .widget { margin-bottom: 20px; }

/* ===== Footer: 4 Columns ===== */
.site-footer { background: #222; color: #ccc; padding: 40px 0 0; margin-top: 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.footer-column .widget-title { color: #fff; margin-bottom: 15px; }
.site-info { border-top: 1px solid #444; padding: 15px 0; text-align: center; margin-top: 30px; }

/* ===== Responsive Design (Mobile) ===== */
@media (max-width: 768px) {
    /* Header: Stack Logo and Menu */
    .header-inner { flex-wrap: wrap; }
    .header-logo { flex: 0 0 100%; max-width: 100%; text-align: center; margin-bottom: 10px; }
    .main-navigation {
        flex: 0 0 100%;
        max-width: 100%;
        display: none; /* Hidden by default on mobile */
        width: 100%;
    }
    .main-navigation.toggled { display: block; }
    .main-navigation ul { flex-direction: column; gap: 0; }
    .main-navigation li { border-bottom: 1px solid #eee; padding: 10px 0; }
    .menu-toggle { display: block; position: absolute; top: 15px; right: 15px; }

    /* Content Columns: Stack Vertically */
    .content-columns-wrapper.columns-3,
    .content-columns-wrapper.columns-4,
    .content-columns-wrapper.columns-5 {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    /* Footer: Stack 4 Columns to 2, then 1 */
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}