/* ==========================================================================
   LVAAS WordPress Theme - Complete Stylesheet (No Framework Dependencies)
   ========================================================================== */

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    background: #666;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

a { color: #0096d7; text-decoration: none; }
a:hover { color: #0077b5; text-decoration: underline; }

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
#header-bar {
    background: #3A3F9E;
    min-height: 60px;
    border-bottom: 1px solid #333;
}

#header-bar .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: none;
}

.header-logo {
    padding: 5px 0;
    margin-right: 10px;
}

.header-logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

#primary-nav {
    flex: 1;
    display: flex;
}

#primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}

#primary-menu > li {
    position: relative;
}

#primary-menu > li > a {
    display: block;
    padding: 0 15px;
    line-height: 60px;
    color: #ccc;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

#primary-menu > li > a:hover,
#primary-menu > li.current-menu-item > a,
#primary-menu > li.current-page-item > a,
#primary-menu > li.current_page_item > a,
#primary-menu > li.current-menu-ancestor > a,
#primary-menu > li.current_page_ancestor > a {
    background: #3667c0;
    color: #fff;
}

#primary-menu > li.menu-item-has-children > a::after {
    content: "";
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #ccc;
    margin-left: 6px;
    vertical-align: middle;
}

/* Dropdown */
#primary-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #151515;
    border: 1px solid #333;
    border-top: none;
    list-style: none;
    margin: 0;
    padding: 5px 0;
    min-width: 200px;
    z-index: 100;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

#primary-menu li:hover > ul,
#primary-menu li.focus > ul {
    display: block;
}

#primary-menu ul li {
    width: 100%;
}

#primary-menu ul a {
    display: block;
    padding: 8px 20px;
    color: #ccc;
    font-size: 13px;
    text-decoration: none;
    border-bottom: 1px solid #222;
}

#primary-menu ul a:hover {
    background: #3667c0;
    color: #fff;
}

#primary-menu ul li:last-child a {
    border-bottom: none;
}

#primary-menu ul ul {
    top: 0;
    left: 100%;
    border: 1px solid #333;
}

/* Menu arrow hover state */
#primary-menu .page_item_has_children > a:hover::after,
#primary-menu .menu-item-has-children > a:hover::after {
    border-top-color: #fff;
}

#primary-menu ul .page_item_has_children > a:hover::after,
#primary-menu ul .menu-item-has-children > a:hover::after {
    border-left-color: #fff;
    border-top-color: transparent;
}

/* Focus styles for keyboard navigation */
#primary-menu a:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -2px;
}

/* Smooth transitions */
#primary-menu > li > a {
    transition: background 0.15s, color 0.15s;
}

#primary-menu ul a {
    transition: background 0.15s, color 0.15s;
}

/* Search */
.header-search {
    margin-left: auto;
    padding: 10px 0;
}

.header-search input[type="search"] {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 6px 12px;
    border-radius: 3px;
    font-size: 13px;
    width: 160px;
    transition: background 0.15s, border-color 0.15s;
}

.header-search input[type="search"]::placeholder {
    color: rgba(255,255,255,0.6);
}

.header-search input[type="search"]:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    outline: none;
}

/* Menu Toggle (mobile) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    margin-left: auto;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: #ccc;
    margin: 4px 0;
    border-radius: 2px;
}

/* ==========================================================================
   Mobile Navigation
   ========================================================================== */
#mobile-nav {
    display: none;
    background: #151515;
    border-top: 1px solid #333;
}

#mobile-nav.open {
    display: block;
}

#mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

#mobile-menu a {
    display: block;
    padding: 12px 20px;
    color: #ccc;
    text-decoration: none;
    border-bottom: 1px solid #222;
}

#mobile-menu a:hover {
    background: #3667c0;
    color: #fff;
}

#mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0 0 0 20px;
    display: none;
}

#mobile-menu .submenu-open > ul {
    display: block;
}

/* ==========================================================================
   Content Layout
   ========================================================================== */
#main-wrapper {
    min-height: 400px;
    padding: 20px 0;
}

.content-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.content-main {
    flex: 1;
    min-width: 0;
    background: #fff;
    padding: 35px;
    border-radius: 3px;
    border: 1px solid #e5e5e5;
}

/* Full-width template */
.template-full-width .container {
    max-width: none;
    padding: 0 40px;
}

.template-full-width .content-main {
    border: none;
    border-radius: 0;
    padding: 40px;
}

.content-sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* ==========================================================================
   Articles & Pages
   ========================================================================== */
.entry-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 15px;
    color: #222;
}

.entry-title a { color: #222; }
.entry-title a:hover { color: #0096d7; }

.entry-meta {
    color: #999;
    font-size: 13px;
    margin: 0 0 15px;
}

.entry-content {
    line-height: 1.7;
}

.entry-content p { margin: 0 0 15px; }
.entry-content ul,
.entry-content ol { margin: 0 0 15px; padding-left: 25px; }
.entry-content li { margin-bottom: 5px; }
.entry-content h2 { font-size: 20px; margin: 25px 0 10px; }
.entry-content h3 { font-size: 18px; margin: 20px 0 10px; }
.entry-content h4 { font-size: 16px; margin: 15px 0 8px; }
.entry-content blockquote {
    border-left: 4px solid #3667c0;
    padding: 10px 20px;
    margin: 0 0 20px;
    background: #f9f9f9;
    color: #666;
}

/* Tables */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
}

.entry-content th,
.entry-content td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.entry-content th {
    background: #f5f5f5;
    font-weight: 700;
}

.entry-content tr:nth-child(even) td {
    background: #fafafa;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 3px;
}

.alert-success {
    background: #eef7dd;
    border-color: #9acc2e;
    color: #2d6f2d;
}

.alert-danger {
    background: #fce4e4;
    border-color: #f7a9a9;
    color: #a94442;
}

/* Buttons */
.button, .entry-content .button {
    display: inline-block;
    padding: 8px 20px;
    background: #3667c0;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
}

.button:hover, .entry-content .button:hover {
    background: #2a5299;
    color: #fff;
    text-decoration: none;
}

.button-primary {
    background: #009dd8;
}

.button-primary:hover {
    background: #0088bb;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.sidebar-panel {
    background: #fff;
    border: 1px solid #e5e5e5;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.sidebar-panel .widget-title {
    color: #444;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #3667c0;
}

.sidebar-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-panel ul li {
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-panel ul li:last-child {
    border-bottom: none;
}

.sidebar-panel ul li a {
    color: #0096d7;
    text-decoration: none;
}

.sidebar-panel ul li a:hover {
    color: #0077b5;
    text-decoration: underline;
}

/* Login Widget */
.widget_login label {
    font-size: 13px;
    color: #666;
    display: block;
    margin-bottom: 3px;
}

.widget_login input[type="text"],
.widget_login input[type="password"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 13px;
}

.widget_login input[type="submit"] {
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
#footer-widgets {
    background: #2D2E2F;
    color: #888;
    padding: 30px 0;
    border-top: 1px solid #000;
    border-bottom: 1px solid #323334;
}

#footer-widgets a { color: #888; }
#footer-widgets a:hover { color: #ccc; }
#footer-widgets .widget-title { color: #ccc; font-size: 15px; font-weight: 700; margin: 0 0 10px; }
#footer-widgets p { font-size: 13px; line-height: 1.5; }

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-widget {
    flex: 1;
    min-width: 200px;
}

#footer-bottom {
    background: #252525;
    color: #777;
    padding: 15px 0;
    font-size: 13px;
    border-top: 1px solid #232425;
}

#footer-bottom a { color: #888; }
#footer-bottom a:hover { color: #ccc; }

.footer-nav {
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
    text-align: center;
}

.footer-nav li {
    display: inline;
    padding: 0 10px;
    border-right: 1px solid #555;
}

.footer-nav li:last-child {
    border-right: none;
}

.footer-nav a {
    text-decoration: none;
}

.footer-copyright {
    text-align: center;
    margin-top: 10px;
}

/* ==========================================================================
   Homepage Specific
   ========================================================================== */
.home-featured {
    background: #eef7dd;
    border: 1px solid #9acc2e;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 3px;
}

.home-featured h2 { margin-top: 0; color: #2d6f2d; }



/* ==========================================================================
   404
   ========================================================================== */
.error-404 { text-align: center; padding: 50px 0; }
.error-404 h1 { font-size: 48px; }
.error-404 ul { list-style: none; padding: 0; }
.error-404 ul li { padding: 5px 0; }

/* ==========================================================================
   WordPress Core
   ========================================================================== */
.sticky { }
.bypostauthor { }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 20px 20px 0; }
.alignright { float: right; margin: 0 0 20px 20px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: #888; text-align: center; }
.screen-reader-text { display: none; }

/* Comments */
.comment-list { list-style: none; padding: 0; }
.comment { padding: 15px 0; border-bottom: 1px solid #f0f0f0; }
.comment-meta { font-size: 13px; color: #999; }
.comment-author .avatar { border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.comment-content { margin-top: 8px; }
.reply { margin-top: 5px; }
.comment-respond { margin-top: 25px; }

/* ==========================================================================
   Scroll to Top
   ========================================================================== */
#scroll-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    text-align: center;
    background: #009dd8;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 3px;
    z-index: 999;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

#scroll-to-top:hover {
    background: #00aff2;
    color: #fff;
}

/* ==========================================================================
   Touch Device Support — tap-driven submenus instead of hover
   ========================================================================== */
@media (hover: none) and (pointer: coarse) {
    #primary-menu > li > a {
        white-space: normal;
        padding: 0 10px;
        font-size: 12px;
    }
    #primary-menu li:hover > ul {
        display: none;
    }
    #primary-menu li.focus > ul {
        display: block;
    }
}

/* ==========================================================================
   Tablet portrait / small landscape adjustments (835px–1024px)
   ========================================================================== */
@media (min-width: 835px) and (max-width: 1024px) {
    #primary-menu > li > a {
        padding: 0 10px;
        font-size: 12px;
        white-space: normal;
    }
    .header-search input[type="search"] {
        width: 120px;
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
    .content-sidebar {
        width: 240px;
    }
}

@media (max-width: 834px) {
    .content-grid {
        flex-direction: column;
    }

    .content-sidebar {
        width: 100%;
    }

    .header-search {
        display: none;
    }

    #primary-nav {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    #mobile-nav.open {
        display: block;
    }

    #primary-nav.open {
        display: block;
        width: 100%;
        order: 3;
    }

    #header-bar .container {
        gap: 0;
    }

    #primary-menu {
        flex-direction: column;
    }

    #primary-menu > li > a {
        line-height: 44px;
        white-space: normal;
    }

    #primary-menu ul {
        position: static;
        display: none;
        border: none;
        padding-left: 20px;
    }

    #primary-menu li:hover > ul,
    #primary-menu li.focus > ul {
        display: block;
    }

    #primary-menu ul ul {
        left: 0;
    }

    .footer-grid {
        flex-direction: column;
        gap: 20px;
    }

    .footer-nav li {
        display: inline-block;
        padding: 5px 8px;
        border-right: none;
    }
}

@media (max-width: 834px) {
    .template-full-width .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .content-main {
        padding: 20px;
    }

    .template-full-width .content-main {
        padding: 25px;
    }

    .entry-content table {
        font-size: 13px;
    }

    .entry-content th,
    .entry-content td {
        padding: 5px 8px;
    }
}
