@charset "utf-8";

/* ==========================================================================
   Responsive Styles for 1000px and below (WordPress Theme)
   ========================================================================== */

/* Global reset */
* {
    box-sizing: border-box;
}

body {
    -webkit-text-size-adjust: 100%;
}

/* Structure */
#wrapper {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    background-image: none !important;
    /* Pastel blue top 20%, then transitioning to white */
    background: linear-gradient(to bottom, #f0f7ff 0%, #ffffff 100%) !important;
    background-color: #ffffff !important;
}

/* Header */
header {
    width: 100% !important;
    height: auto !important;
    min-height: 80px !important;
    padding: 10px 15px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    /* Simple white header with soft shadow */
    background: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    position: sticky;
    top: 0;
    z-index: 800;
}

/* Catchphrase */
header h2 {
    display: block !important;
    margin: 0 0 5px 0 !important;
    font-size: 11px !important;
    color: #369 !important;
    width: 100% !important;
    text-align: left !important;
    padding-left: 0 !important;
    font-weight: normal !important;
}

header h1 {
    float: none !important;
    margin: 0 !important;
    text-align: left !important;
    width: auto !important;
}

header h1 img {
    max-width: 180px !important;
    height: auto !important;
}

/* Hide original components */
header #sub, header address, header nav {
    display: none !important;
}

/* Apply side padding to content blocks */
article, #sidenav, footer, section, .posttitle, .day_cat, .tag, article p {
    padding-left: 15px !important;
    padding-right: 15px !important;
    float: none !important;
    width: 100% !important;
}

/* Hamburger Menu Toggle */
body .menu-btn {
    display: flex !important;
    position: fixed;
    top: 20px;
    right: 15px;
    z-index: 1000;
    width: 50px;
    height: 50px;
    background: #369;
    border: none;
    border-radius: 5px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

body .menu-btn span {
    display: block;
    width: 30px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: all 0.3s;
}

body .menu-btn.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
body .menu-btn.open span:nth-child(2) {
    opacity: 0;
}
body .menu-btn.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Drawer Navigation */
body .drawer-nav {
    display: block !important;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 999;
    padding: 60px 20px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

body .drawer-nav.open {
    right: 0;
}

body .drawer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

body .drawer-nav li.nav-img {
    margin-bottom: 2px;
}

body .drawer-nav li.nav-img a {
    display: block;
}

body .drawer-nav li.nav-img a img {
    width: 100% !important;
    max-width: 190px !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
}

body .drawer-nav .sub-nav {
    margin: 20px 0;
    border-top: 1px solid #eee;
    padding-top: 10px;
}

body .drawer-nav .sub-nav li {
    margin-bottom: 15px;
    text-align: center;
}

body .drawer-nav .sub-nav a {
    color: #369;
    text-decoration: none;
    font-weight: bold;
}

/* Overlay */
body .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 998;
    display: none;
}

body .overlay.open {
    display: block;
}

/* Floating Footer Contact */
body .floating-contact {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: #fff;
    z-index: 900;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

body .floating-contact a {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-size: 12px;
    font-weight: bold;
    border-right: 1px solid #eee;
}

body .floating-contact a:last-child {
    border-right: none;
}

body .floating-contact a i {
    font-size: 24px;
    margin-bottom: 2px;
    color: #369;
}

/* Ensure content doesn't get hidden */
body {
    padding-bottom: 60px !important;
}

/* Footer */
footer {
    width: 100% !important;
    padding: 30px 15px !important;
}

footer address img {
    max-width: 90% !important;
    height: auto !important;
}

/* Images and Tables */
section img {
    max-width: 100% !important;
    height: auto !important;
}

table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
}

.posttitle {
    background-size: cover !important;
    height: auto !important;
    padding: 10px !important;
    font-size: 1.1em !important;
}
