/*
Theme Name: BBH Lite
Theme URI: https://jahidshah.com/themes/bbh-lite/
Author: Jahid Shah
Author URI: https://jahidshah.com/legal-licensing/
Description: Lightweight, responsive WordPress theme with multi-level navigation, widget areas, Customizer controls, full Gutenberg support, and accessibility features.
Version: 1.0.3
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bbh-lite
Tags: blog, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, right-sidebar, sticky-post, threaded-comments, translation-ready, block-patterns, block-styles, wide-blocks, rtl-language-support
*/

/* ========================================
   1. Reset & Base
   ======================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

a {
    color: #0073aa;
    text-decoration: underline;
    text-decoration-thickness: 1px;
}

a:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

a:hover,
a:focus {
    color: #005177;
}

ul,
ol {
    margin: 0 0 1.5em;
    padding-left: 1.5em;
}

/* ========================================
   2. Screen Reader & Skip Link
   ======================================== */

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
    word-break: normal;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.skip-link:focus {
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    width: auto;
    padding: 1rem 1.5rem;
    background: #21759b;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    z-index: 100000;
}

/* ========================================
   3. Layout
   ======================================== */

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1 0 auto;
}

/* ========================================
   3. Layout & Content Structure
   ======================================== */

.content-area {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 3rem;
}

.content-area.has-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    max-width: 1280px;
}

.site-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 335px;
    gap: 2.5rem;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.site-content-wrapper .site-main {
    min-width: 0;
}

.post-hero {
    position: relative;
    width: 100%;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    display: flex;
    align-items: flex-end;
}

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.05) 100% );
}

.post-hero-content {
    position: relative;
    z-index: 1;
    padding: 2.5rem 1.5rem;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
}

.post-hero-content .entry-header {
    margin-bottom: 0;
}

.post-hero-content .entry-title, .post-hero-no-image .entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 0.75rem;
    max-width: 800px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    overflow-wrap: break-word;
    word-break: break-word;
}
.post-hero-no-image {
    position: relative;
    z-index: 1;
    padding: 5rem 3rem 2rem 3rem;
    width: 100%;
    margin: 0 auto;
    background: rgb(0 115 170);
}

.post-hero-content .entry-title a {
    color: #fff;
}

.post-hero-content .entry-title a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.post-hero-content .entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    margin: 0;
}

.post-hero-no-image .entry-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    max-width: 1280px;
}

.post-hero-no-image .entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    color: #e5e5e5;
    font-size: 0.9375rem;
    max-width: 1280px;
}

.single .site-content-wrapper .post-thumbnail,
.page .site-content-wrapper .post-thumbnail {
    display: none;
}

.full-width-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ========================================
   4. Header
   ======================================== */

.site-header {
    border-bottom: 1px solid #e5e5e5;
    background: #fff;
}

.site-header .content-area {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-top: 1rem;
    padding-bottom: 1rem;
    gap: 1rem;
}

.site-branding {
    flex: 0 1 auto;
    max-width: 300px;
    display: flex;
    align-content: center;
    flex-direction: column;
}

.site-branding .custom-logo-link {
    display: inline-block;
}

.site-branding .custom-logo {
    max-height: 80px;
    width: auto;
}

.site-title {
    margin: 0 0 0 10px;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
}

.site-title a {
    color: #333;
    text-decoration: none;
}

.site-title a:hover {
    color: #0073aa;
}

span.site-title.instoggle {
    text-align: center;
    padding: 10px 0;
    border-bottom: 0.1px solid #ccc;
}
.site-description {
    margin: 0.25rem 0 0;
    font-size: 0.875rem;
    color: #666;
}

/* ========================================
   5. Navigation & Dropdowns
   ======================================== */

.main-navigation {
    flex: 1 1 auto;
}

.menu-toggle {
    display: none;
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
}

.menu-toggle:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.menu-toggle .icon-bar {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: #333;
    margin: 4px 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle[aria-expanded="true"] .icon-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .icon-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .icon-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.nav-menu,
.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0;
    justify-content: flex-end;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus {
    color: #0073aa;
}

.nav-menu > li > a[aria-current="page"] {
    color: #0073aa;
}

/* Dropdown submenu */
.nav-menu ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0.5rem 0;
}

.nav-menu ul ul {
    top: -1px;
    left: 100%;
}

.nav-menu ul li {
    position: relative;
}

.nav-menu ul a {
    display: block;
    padding: 0.625rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: 0.875rem;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-menu ul a:hover,
.nav-menu ul a:focus {
    background-color: #f7f7f7;
    color: #0073aa;
}

.nav-menu ul li.menu-item-has-children > a::after {
    content: "\25B6";
    position: absolute;
    right: 1rem;
    font-size: 0.625rem;
    color: #666;
}

.nav-menu > li.menu-item-has-children > a::after {
    content: "\25BC";
    margin-left: 0.375rem;
    font-size: 0.625rem;
    color: #666;
    vertical-align: middle;
}

/* ========================================
   6. Posts & Content
   ======================================== */

.posts-container {
    display: grid;
    gap: 1.1rem;
    grid-template-columns: repeat(3, 1fr);
}

.entry-header {
    margin-bottom: 1.25rem;
}

.entry-title {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
}
.cmnartloop h2.entry-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-title a {
    color: #333;
    text-decoration: none;
}

.entry-title a:hover {
    color: #0073aa;
}

.entry-meta {
    font-size: 0.875rem;
    color: #666;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.entry-meta .byline {
    margin-left: 0.5rem;
}

.cat-links a {
    text-decoration: none;
    color: #fff !important;
}

.cat-links a:hover {
    text-decoration: underline;
}

.post-thumbnail-link {
    display: block;
    margin-bottom: 0;
    overflow: hidden;
    border-radius: 4px;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.post-thumbnail-link:hover .post-thumbnail {
    transform: scale(1.03);
}

.post-thumbnail img {
    border-radius: 5px 5px 0px 0px;
    width: 100%;
    min-height: auto;
    display: block;
}

.entry-content,
.entry-summary {
    margin-bottom: 1.5rem;
}

.entry-content p,
.entry-summary p {
    margin: 0 0 1.25em;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
    margin: 2em 0 1em;
    line-height: 1.3;
}

.entry-content h1 { font-size: 2rem; }
.entry-content h2 { font-size: 1.625rem; }
.entry-content h3 { font-size: 1.375rem; }
.entry-content h4 { font-size: 1.125rem; }

.entry-content ul,
.entry-content ol {
    margin: 0 0 1.5em;
}

.entry-content blockquote {
    margin: 0 0 1.5em;
    padding: 1rem 1.5rem;
    border-left: 4px solid #0073aa;
    background: #f7f7f7;
    font-style: italic;
}

.entry-content code,
.entry-content pre {
    font-family: Menlo, Consolas, monospace;
    background: #f7f7f7;
    border-radius: 3px;
}

.entry-content code {
    padding: 0.2em 0.4em;
    font-size: 0.875em;
}

.entry-content pre {
    padding: 1rem;
    overflow-x: auto;
}

.entry-content table {
    width: 100%;
    margin: 0 0 1.5em;
    border-collapse: collapse;
}

.entry-content table th,
.entry-content table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e5e5;
}

a.more-link {
    text-decoration: none;
    font-weight: 500;
}

a.more-link::after {
    content: ">";

}

a.more-link:hover {
    text-decoration: underline;
}
.entry-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e5e5;
    font-size: 0.875rem;
}

.entry-footer .tags-links a {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #f0f0f0;
    border-radius: 3px;
    text-decoration: none;
    margin: 0.25rem 0.25rem 0.25rem 0;
}

.entry-footer .tags-links a:hover {
    background: #e5e5e5;
}

/* Home Page Article Loop */
.cmnartloop {
    background-color: hsl(0deg 0% 97.65%);
    border-radius: 5px;
}
.cmnartloop-header, .cmnartloop-content{
    padding: 0 10px;
}

/* ========================================
   7. Sidebar & Widgets
   ======================================== */

.sidebar {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.sidebar .widget {
    margin-bottom: 2rem;
}

.sidebar .widget:last-child {
    margin-bottom: 0;
}

.sidebar .widget-title,
.sidebar .widgettitle {
    font-size: 1.125rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
}

.sidebar .widget ul {
    list-style: none;
    padding-left: 0;
}

.sidebar .widget ul li {
    padding: 0.375rem 0;
    border-bottom: 1px solid #eee;
}

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

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

.sidebar .widget a:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.sidebar .widget a:hover {
    text-decoration: underline;
}

.sidebar .widget select {
    max-width: 100%;
}
form.search-form {
    display: flex;
    gap: 1px;
}
/* ========================================
   8. Footer & Footer Builder
   ======================================== */

.site-footer {
    border-top: 1px solid #e5e5e5;
    background: rgb(33 37 41);
    color: #f1f1f1;
    padding-top: 40px;
}

.site-footer a, .site-footer li a {
    color: #f1f1f1;
    text-decoration: none;
}
.site-footer a:hover, .site-footer li a:hover {
    text-decoration: underline;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.footer-widgets .widget {
    margin-bottom: 0;
}

.footer-widgets .widget-title,
.footer-widgets .widgettitle {
    font-size: 1rem;
    margin: 0 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #0073aa;
}

.footer-widget-area h2 {
    border-left: 5px solid #fff;
    padding-left: 5px;
}

.site-info {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    border-top: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-content: center;
}

.site-info a {
    color: #0073aa;
    text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}

.footer-menu {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin: 0.75rem 0 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer-menu a {
    color: #666;
    text-decoration: none;
}

.footer-menu a:hover {
    color: #0073aa;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-top: 0.75rem;
    list-style: none;
    padding: 0;
}

.social-links li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e5e5;
    color: #333;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-links li a:hover,
.social-links li a:focus {
    background: #0073aa;
    color: #fff;
    transform: scale(1.1);
}

.social-links li a:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 3px;
}

.social-links svg {
    width: 20px;
    height: 20px;
}
.footer-copyright {
    color: #f1f1f1;
    font-size: 15px;
}
/* ========================================
   9. Search Results Page
   ======================================== */
header.search-header {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    padding-bottom: 45px;
}

.search-header {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.search-results-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

.search-title {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.search-query {
    margin: 0 0 0.25rem;
    color: #666;
    font-size: 1.0625rem;
}

.search-query strong {
    color: #333;
}

.search-count {
    margin: 0;
    font-size: 0.875rem;
    color: #999;
}

.search-refine {
    margin-top: 1.5rem;
}

.search-refine .search-form {
    position: relative;
}

.search-refine .search-form .search-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.search-refine .search-form .search-field:focus {
    border-color: #0073aa;
    outline: none;
}

.search-refine .search-form .search-submit {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 1rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.2s ease;
}

.search-refine .search-form .search-submit:hover {
    background: #005177;
}

/* Search result items */
.search-results-list {
    gap: 1.5rem;
}

.search-results-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-result-item:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.result-header {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    flex-direction: column;
}

.result-thumbnail {
    flex-shrink: 0;
    width: 120px;
    border-radius: 6px;
    overflow: hidden;
}

.result-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.result-thumbnail {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
}

.result-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-content {
    flex: 1;
    min-width: 0;
    padding: 0 5px;
}

.result-title {
    margin: 0 0 0.375rem;
    font-size: 1.25rem;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-break: break-word;
}

.result-title a {
    color: #333;
    text-decoration: none;
}

.result-title a:hover {
    color: #0073aa;
}

.result-meta {
    font-size: 0.8125rem;
    color: #999;
    margin-bottom: 0.625rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.result-separator {
    color: #ccc;
}

.result-type {
    background: #f0f0f0;
    padding: 0.125rem 0.5rem;
    border-radius: 3px;
    text-transform: capitalize;
}

.result-excerpt {
    font-size: 0.9375rem;
    color: #555;
    line-height: 1.5;
}

/* No results state */
.search-no-results {
    text-align: center;
    padding: 3rem 1.5rem;
}

.search-no-results svg {
    color: #ccc;
    margin-bottom: 1.5rem;
}

.no-results-title {
    font-size: 1.375rem;
    margin: 0 0 0.75rem;
    color: #333;
}

.no-results-text {
    color: #666;
    margin: 0 0 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-results-suggestions {
    text-align: left;
    max-width: 360px;
    margin: 0 auto;
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
}

.no-results-suggestions h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.no-results-suggestions ul {
    margin: 0;
    padding-left: 1.25rem;
}

.no-results-suggestions li {
    color: #555;
    padding: 0.25rem 0;
}

/* ========================================
   10. Archive & Search
   ======================================== */

.page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e5;
}

.page-title {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
}

.archive-description {
    color: #666;
}

/*==========================================
    11. 404 Page
============================================*/
.not-found-page {
    padding: 50px 0;
}

.not-found-page .page-content {
    display: flex;
    flex-direction: column;
    align-content: center;
    align-items: center;
    padding: 0 15px;
}
.not-found-page h1.page-title {
    text-align: center;
    font-size: 2rem;
    margin: 0 0 1rem;
}
/* ========================================
   12. Pagination
   ======================================== */

.pagination,
.posts-navigation,
.post-navigation {
    margin: 2.5rem 0;
    padding: 1rem 0;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.nav-links a,
.nav-links span {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: 1px solid #e5e5e5;
    border-radius: 3px;
}

.nav-links a:hover {
    background: #f0f0f0;
}

.nav-links a:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.nav-links .current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ========================================
   13. Comments
   ======================================== */

.comments-area {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e5e5;
}

.comments-title {
    margin: 0 0 1.5rem;
    font-size: 1.375rem;
}

.comment-list {
    list-style: none;
    padding-left: 0;
}

.comment-list .comment {
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: #f9f9f9;
    border-radius: 4px;
}

.comment-author {
    font-weight: 600;
}

.comment-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.comment-respond {
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.625rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-bottom: 1rem;
}

.comment-form input[type="submit"] {
    padding: 0.625rem 1.5rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 1rem;
}

.comment-form input[type="submit"]:hover {
    background: #005177;
}

/* ========================================
   14. Forms & Buttons
   ======================================== */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
textarea,
select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: #0073aa;
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

button,
input[type="submit"],
input[type="button"],
.wp-block-button__link {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.wp-block-button__link:hover {
    background: #005177;
}

button:focus,
.wp-block-button__link:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* ========================================
   15. Gutenberg / Block Styles
   ======================================== */

/* Full width template overrides */
.bbh-full-width .entry-content {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.bbh-full-width .entry-content > .alignwide {
    max-width: 100%;
}

.bbh-full-width .entry-content > .alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}

.bbh-hide-title .entry-title,
.bbh-hide-title .page-header {
    display: none;
}

.wp-block-image img {
    max-width: 100%;
    height: auto;
}

.wp-block-button__link {
    padding: 0.625rem 1.25rem;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 3px;
    display: inline-block;
}

.wp-block-quote {
    border-left: 4px solid #0073aa;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f7f7f7;
}

.wp-block-cover {
    margin-bottom: 1.5rem;
}

.wp-block-separator {
    border: none;
    border-top: 1px solid #e5e5e5;
    margin: 2rem 0;
}

.wp-block-columns {
    gap: 1.5rem;
}

.alignwide {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
}
/* ========================================
   16. Utility Classes
   ======================================== */

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 300ms ease, visibility 0s linear 300ms, transform 300ms ease, background-color 200ms ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity 300ms ease, visibility 0s linear 0s, transform 300ms ease, background-color 200ms ease;
}

.scroll-top:hover,
.scroll-top:focus {
    background: #005177;
    outline: none;
}

.scroll-top:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.clearfix::before,
.clearfix::after {
    content: "";
    display: table;
    table-layout: fixed;
}

.clearfix::after {
    clear: both;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* ================================================
    17. WordPress Core Alignment & Caption Classes
    ============================================== */

.alignleft {
    display: inline;
    float: left;
    margin-right: 1.5em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    margin-bottom: 1.5em;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: #666;
    margin: 0.5em 0;
}

.gallery-caption {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5em;
}

.bypostauthor {
    /* Styling hook for comments by post author */
}

.sticky {
    /* Styling hook for sticky posts */
}

/* ========================================
    18. Print Styles
    ======================================== */

@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    .site-header,
    .main-navigation,
    .sidebar,
    .footer-widgets,
    .site-info,
    .menu-toggle,
    .social-links,
    .comments-area,
    .entry-footer,
    .posts-navigation {
        display: none !important;
    }

    .site-content {
        padding: 0 !important;
    }

    .entry-content {
        max-width: 100%;
    }

    @page {
        margin: 1.5cm;
    }
}

/* ========================================
   19. Mobile Navigation & Overlay
   ======================================== */

/* Search toggle */
.search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    color: #333;
    transition: color 0.2s ease;
    margin-left: 0.5rem;
}

.search-toggle:hover{
    color:#dadcdd;
}
.search-toggle:focus {
    color: #0073aa;
}

.search-toggle:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.search-toggle .search-close {
    display: none;
}

.search-toggle[aria-expanded="true"] .search-icon {
    display: none;
}

.search-toggle[aria-expanded="true"] .search-close {
    display: block;
}

/* Search overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;

    opacity: 0;
    visibility: hidden;
    transition: opacity 300ms ease, visibility 0s linear 300ms;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 300ms ease, visibility 0s linear 0s;
}

.search-overlay-inner {
    width: 100%;
    max-width: 600px;
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 300ms ease 100ms, transform 300ms ease 100ms;
}

.search-overlay.active .search-overlay-inner {
    opacity: 1;
    transform: translateY(0);
}

.search-overlay .search-form {
    position: relative;
}

.search-overlay .search-form label {
    display: block;
    width: 100%;
}

.search-overlay .search-form .search-field {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.25rem;
    border: none;
    border-radius: 8px;
    outline: none;
}

.search-overlay .search-form .search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.75rem 1.25rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9375rem;
    transition: background-color 0.2s ease;
}

.search-overlay .search-form .search-submit:hover,
.search-overlay .search-form .search-submit:focus {
    background: #005177;
}

/* Body scroll lock for search */
body.search-open {
    overflow: hidden;
}

/* Responsive Styles CSS */
@media (max-width: 960px) {
    .post-hero {
        min-height: 320px;
    }

    .post-hero-content .entry-title,
    .post-hero-no-image .entry-title {
        font-size: 1.75rem;
    }

    .content-area.has-sidebar {
        grid-template-columns: 1fr;
    }

    .site-content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }
}

/* Dropdown hover & focus states (desktop only) */
@media (min-width: 769px) {
    .nav-menu li:hover > ul,
    .nav-menu li.sfhover > ul,
    .nav-menu li.focus > ul {
        display: block;
    }

    /* Desktop: overlay is invisible passthrough so nav-menu renders normally */
    .menu-toggle {
        display: none;
    }

    .mobile-nav-overlay {
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        padding: 0 !important;
        overflow: visible !important;
        display: block !important;
    }

    .mobile-nav-close {
        display: none;
    }

    .instoggle {
        display: none;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .search-toggle {
        margin-left: 0;
    }

    .site-header .content-area {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .site-branding {
        max-width: none;
        flex: 1;
    }

    .site-description {
        display: none;
    }

    .main-navigation {
        flex: 0 0 auto;
    }

    /* Full-screen overlay (hidden by default) */
    .mobile-nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        z-index: 9999;
        flex-direction: column;
        padding: 4rem 2rem 2rem;
        overflow-y: auto;

        /* Animation */
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: opacity 300ms ease, visibility 0s linear 300ms, transform 300ms ease;
    }

    .mobile-nav-overlay.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        transition: opacity 300ms ease, visibility 0s linear 0s, transform 300ms ease;
    }

    .mobile-nav-overlay.active {
        display: flex;
        transition: 300ms;
    }

    .mobile-nav-close {
        position: absolute;
        top: 1.25rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
        padding: 0;
        border: none;
        background: transparent;
        cursor: pointer;
        z-index: 10;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-nav-close:focus-visible {
        outline: 2px solid #0073aa;
        outline-offset: 2px;
    }

    .mobile-nav-close .icon-bar {
        display: block;
        width: 1.75rem;
        height: 3px;
        background: #333;
        position: absolute;
        left: 50%;
        top: 50%;
        margin: 0;
        transform-origin: center center;
        border-radius: 2px;
    }

    .mobile-nav-close .icon-bar:first-child {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .mobile-nav-close .icon-bar:last-child {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        padding-top: 1rem;
    }

    .instoggle {
        display: block;
        text-align: center;
        font-size: 1.125rem;
        font-weight: 700;
        color: #333;
        margin-bottom: 1.5rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #e5e5e5;
        opacity: 0;
        transform: translateY(-10px);
        transition: opacity 300ms ease 100ms, transform 300ms ease 100ms;
    }

    .mobile-nav-overlay.active .instoggle {
        opacity: 1;
        transform: translateY(0);
    }

    .instoggle a {
        color: #333;
        text-decoration: none;
    }

    .nav-menu > li > a {
        padding: 1rem 0;
        font-size: 1.25rem;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu ul {
        position: static;
        display: none;
        box-shadow: none;
        border: none;
        border-left: 3px solid #0073aa;
        border-radius: 0;
        min-width: 0;
        background: #fafafa;
        padding-left: 1rem;
    }

    .nav-menu ul a {
        padding: 0.75rem 0.75rem;
        font-size: 1rem;
    }

    .nav-menu ul ul {
        left: 0;
        top: 0;
        border-left-width: 6px;
    }

    .nav-menu ul li.menu-item-has-children > a::after {
        content: "\25BC";
        right: 0;
    }

    .nav-menu > li.menu-item-has-children > a::after {
        float: right;
        margin-left: 0;
    }

    /* Body scroll lock */
    body.nav-open {
        overflow: hidden;
    }
    
    .alignfull {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
    }
    .posts-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-results-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    .scroll-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 40px;
        height: 40px;
    }

    .bbh-full-width .entry-content > .alignfull {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
    }
    
    .search-results-page {
        padding: 0.5rem 0rem;
    }

    .result-header {
        flex-direction: column;
    }

    .result-thumbnail {
        width: 100%;
        height: 160px;
    }

    .result-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 600px) {
    .post-hero {
        min-height: 260px;
    }

    .post-hero-content .entry-title,
    .post-hero-no-image .entry-title {
        font-size: 1.5rem;
    }

    .post-hero-content .entry-meta,
    .post-hero-no-image .entry-meta {
        font-size: 0.8125rem;
        gap: 0.5rem;
    }

    .posts-container, .search-results-list {
        grid-template-columns: 1fr;
    }
    .search-results-list{
        border: none;
    }
    .search-result-item {
        margin-bottom: 10px;
        box-shadow: 0px 2px 3px #ccc;
        padding: 10px 5px;
        border-radius: 5px;
    }
    .site-content-wrapper {
        padding: 2rem 0.5rem;
    }
}
