/* ========== GLOBAL RESET ========== */
*{margin:0;padding:0;box-sizing:border-box}

/* ========== BODY ========== */
body{
  font-family: Arial, Helvetica, sans-serif;
  line-height:1.7;
  background:#f9fafb;
  color:#1f2937;
}

/* ========== LAYOUT WRAPS ========== */
/* Use .container for page content (keeps nice spacing) */
.container{
  width:90%;
  max-width:1100px;
  margin:0 auto;
  padding:40px 0;
}

/* Use .site-wrap for header/footer (NO big vertical padding) */
.site-wrap{
  width:90%;
  max-width:1100px;
  margin:0 auto;
  padding:0;
}

/* ========== BASIC CONTENT ========== */
.page-title{margin-bottom:20px}
.page-title h1{font-size:30px;margin-bottom:10px}
.page-title p{color:#6b7280}

.content h2{margin-top:25px;margin-bottom:10px;font-size:20px}
.content p{margin-bottom:15px}
.content ul{margin-left:20px;margin-bottom:15px}
.content li{margin-bottom:8px}

/* ========== FOOTER ========== */
footer{
  background:#ffffff;
  border-top:1px solid #e5e7eb;
  padding:20px 0;
  margin-top:40px;
  text-align:center;
  font-size:14px;
  color:#6b7280;
}

/* ===================================================================== */
/* ===================== PREMIUM ONE-LINE HEADER ======================== */
/* ===================================================================== */

.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom:1px solid #e5e7eb;
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 0;
  flex-wrap:nowrap;         /* FORCE one line */
}

/* Brand left */
.brand-left{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;            /* don't stretch */
  min-width: 260px;
}

.brand-icon{
  width:44px;
  height:44px;
  border-radius:10px;
  background:#2563eb;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 22px rgba(37,99,235,.18);
  flex:0 0 auto;
}
.brand-icon svg{width:24px;height:24px;fill:#fff}

.brand-text a{
  text-decoration:none;
  color:#111827;
  font-weight:800;
  font-size:20px;
  letter-spacing:-.2px;
}
.brand-text small{
  display:block;
  margin-top:-2px;
  color:#6b7280;
  font-size:12px;
  font-weight:600;
}

/* Menu tabs (NEVER wrap; scroll if needed) */
.nav-tabs{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:nowrap;          /* no wrapping */
  white-space:nowrap;
  overflow-x:auto;           /* scroll on small screens */
  overflow-y:hidden;
  -webkit-overflow-scrolling: touch;
  justify-content:flex-end;
  flex:1 1 auto;
}

.nav-tabs a{
  text-decoration:none;
  color:#111827;
  font-weight:600;
  font-size:14px;
  padding:9px 12px;
  border-radius:12px;
  position:relative;
  flex:0 0 auto;             /* stop shrinking */
  transition:background .15s ease, color .15s ease;
}

.nav-tabs a:hover{background:#f3f4f6}

.nav-tabs a.active{
  background:#eef2ff;
  color:#1d4ed8;
}

/* underline for active */
.nav-tabs a.active::after{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  bottom:-10px;
  height:3px;
  border-radius:999px;
  background:#2563eb;
}

/* Scrollbar small (optional) */
.nav-tabs::-webkit-scrollbar{height:8px}
.nav-tabs::-webkit-scrollbar-thumb{background:#e5e7eb;border-radius:999px}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px){
  .page-title h1{font-size:24px}
  /* keep one line header; menu will scroll */
  .brand-left{min-width:unset}
  .brand-text a{font-size:18px}
}
/* ================= SIMPLE ROW FOOTER ================= */

.simple-footer{
  border-top:1px solid #e5e7eb;
  background:#ffffff;
  margin-top:60px;
}

.footer-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 0;
  flex-wrap:wrap;
  gap:10px;
  font-size:14px;
  color:#6b7280;
}

.footer-right{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.footer-right a{
  text-decoration:none;
  color:#374151;
}

.footer-right a:hover{
  color:#2563eb;
}

.footer-right span{
  color:#d1d5db;
}

/* Mobile */
@media (max-width:768px){
  .footer-row{
    flex-direction:column;
    text-align:center;
  }
}
