/*
Theme Name: BThappy Classic
Theme URI: https://bt11.bthappy.com/
Description: Classic WordPress theme with a live Customizer for branding, colors, menus, footer, and CSS.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: bthappy-classic
*/

:root { --bthappy-accent: #20a53a; --bthappy-header: #fff; }
.site-header { position: sticky; top: 0; z-index: 100; background: var(--bthappy-header); box-shadow: 0 0 15px rgba(0, 0, 0, .1); }
.site-header-inner { width: min(1400px, 100%); height: 90px; display: flex; align-items: center; gap: 20px; padding: 0 20px; }
.site-header .custom-logo-link { display: inline-flex; align-items: center; flex: none; }
.site-header .custom-logo { display: block; max-height: 56px; max-width: 240px; width: auto; height: auto; object-fit: contain; }
.site-primary-nav { flex: 1; min-width: 0; }
.site-primary-nav > ul { display: flex; align-items: center; gap: 18px; margin: 0; padding: 0; list-style: none; }
.site-primary-nav li { position: relative; }
.site-primary-nav > ul > li > a { display: flex; align-items: center; height: 90px; padding: 0 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-header nav a { color: #333; font-size: 15px; font-weight: 400; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible, .site-primary-nav .current-menu-item > a { color: var(--bthappy-accent); }
.site-primary-nav > ul > li > a:hover, .site-primary-nav > ul > li > a:focus-visible, .site-primary-nav .current-menu-item > a { border-bottom-color: var(--bthappy-accent); }
.site-primary-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 170px; padding: 8px 0; background: var(--bthappy-header); box-shadow: 0 0 20px rgba(0, 0, 0, .15); list-style: none; }
.site-primary-nav li:hover > .sub-menu, .site-primary-nav li:focus-within > .sub-menu { display: block; }
.site-primary-nav .sub-menu a { display: block; padding: 10px 20px; white-space: nowrap; }
.site-community-link { display: inline-flex; align-items: center; gap: 6px; flex: none; color: blue; font-size: 16px; text-decoration: none; }
.site-community-icon { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #1ea2e1; color: white; font-size: 12px; }
.site-community-link svg { width: 20px; height: 20px; color: #1ea2e1; }
.site-community-link:hover, .site-community-link:focus-visible { color: var(--bthappy-accent); }
.site-mobile-toggle { display: none; }
.site-content { min-height: 40vh; }
.site-footer { padding: 28px 0; background: #17231b; color: #d8e4da; text-align: center; }
.site-footer a { color: #fff; }
.site-footer ul { display: flex; justify-content: center; gap: 18px; list-style: none; margin: 10px 0 0; padding: 0; }
.home-guide-label, .home-guide-link, .home-guide-steps strong, .btlink, .guide-accent { color: var(--bthappy-accent); }
.home-guide-steps a:hover, .faq-question:focus-visible { border-color: var(--bthappy-accent); }
.install-box .btn { background: var(--bthappy-accent); }
.faq-question:focus-visible { outline-color: var(--bthappy-accent); }
.home-tutorials { margin: 36px 0; padding: 36px; border-radius: 12px; }
.home-tutorials .home-guide-steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.home-tutorials .home-guide-steps strong { font-size: 14px; }
.home-tutorials .home-guide-steps small { line-height: 1.6; }
@media (max-width: 700px) { .home-tutorials { padding: 24px 16px; } }
@media (max-width: 1250px) {
  .site-header-inner { height: 60px; justify-content: space-between; gap: 16px; padding: 0 15px; }
  .site-header .custom-logo { max-width: 150px; max-height: 36px; }
  .site-primary-nav, .site-community-link { display: none; }
  .site-mobile-toggle { display: block; margin-left: auto; }
  .site-mobile-toggle summary { display: flex; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; list-style: none; }
  .site-mobile-toggle summary::-webkit-details-marker { display: none; }
  .site-mobile-toggle summary span { display: block; width: 22px; height: 2px; background: #333; }
  .site-mobile-toggle summary:focus-visible { outline: 2px solid var(--bthappy-accent); }
  .site-mobile-menu { position: absolute; top: 100%; right: 0; width: min(280px, 100vw); max-height: calc(100vh - 60px); overflow-y: auto; background: var(--bthappy-header); box-shadow: 0 12px 18px rgba(0, 0, 0, .15); }
  .site-mobile-menu ul { display: block; margin: 0; padding: 12px 0; list-style: none; }
  .site-mobile-menu a { display: block; padding: 12px 20px; }
  .site-mobile-menu .sub-menu { padding: 0 0 0 16px; }
  .site-mobile-community { border-top: 1px solid #eee; color: #1ea2e1 !important; }
}
