/* ==============================
   UnitrendBlogs – FIXED & STABLE THEME
   Clean • Readable • AdSense-safe
   ============================== */

:root {
  --primary:#1e293b;   /* Dark blue (header & footer) */
  --bg:#f8fafc;        /* Light background */
  --card:#ffffff;
  --text:#0f172a;      /* Main text */
  --muted:#475569;     /* Secondary text */
  --border:#e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--primary);
  text-decoration: none;
}

/* ==============================
   HEADER + HERO
   ============================== */
.site-header {
  background: var(--primary);
  color: #ffffff;
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  background: transparent; /* IMPORTANT: no white box */
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 42px;
  margin-right: 10px;
}

.brand span {
  font-size: 22px;
  font-weight: 700;
  color: red;
}

nav a {
  margin-left: 20px;
  font-weight: 500;
  color: #ffffff;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  max-width: 900px;
  margin: auto;
  padding: 80px 20px 90px;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 14px;
  color: black;
}

.hero p {
  font-size: 18px;
  color: black;
}

/* ==============================
   MAIN CONTENT
   ============================== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 50px 20px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 25px;
  color: var(--text);
}

/* ==============================
   TOOLS GRID
   ============================== */
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.tool-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: var(--text);
}

.tool-card p {
  color: var(--muted);
  font-size: 15px;
}

.tool-card a {
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
}

.coming {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}

/* ==============================
   WHY SECTION
   ============================== */
.why {
  margin-top: 70px;
}

.why h2 {
  color: var(--text);
}

.why ul {
  padding-left: 18px;
}

/* ==============================
   DISCLAIMER
   ============================== */
.disclaimer {
  margin-top: 40px;
  font-size: 14px;
  color: var(--muted);
}

/* ==============================
   FOOTER
   ============================== */
footer {
  background: var(--primary);
  padding: 40px 20px;
  text-align: center;
  color: #e5e7eb;
}

.footer-links a {
  margin: 0 12px;
  color: #e5e7eb;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ==============================
   BMI FORM – INPUT ALIGNMENT FIX
   ============================== */

.bmi-card {
  max-width: 520px;
  margin: 0 auto;
}

.bmi-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
  align-items: end;
}

.bmi-form label {
  grid-column: span 2;
  font-size: 14px;
  font-weight: 600;
}

.bmi-field {
  display: flex;
  flex-direction: column;
}

.bmi-field label {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.bmi-field input {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  width: 100%;
}

.bmi-btn {
  grid-column: span 2;
  margin-top: 10px;
  padding: 14px;
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.bmi-result {
  grid-column: span 2;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
}

/* BMI SCALE */
.bmi-scale {
  grid-column: span 2;
  margin-top: 18px;
  position: relative;
}

.bmi-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 14px;
  border-radius: 10px;
  overflow: hidden;
}

.bmi-indicator {
  position: absolute;
  top: -6px;
  left: 0;
  width: 4px;
  height: 26px;
  background: #111827;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.8s ease-in-out;
}

/* MOBILE BMI */
@media (max-width: 600px) {
  .bmi-form {
    grid-template-columns: 1fr;
  }
  
  .bmi-btn,
  .bmi-result,
  .bmi-scale {
    grid-column: span 1;
  }
}

/* ==============================
   MOBILE
   ============================== */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 28px;
  }

  nav {
    margin-top: 10px;
  }
}
/* ==============================
   BMI VISUAL SCALE
   ============================== */

.bmi-scale {
  margin-top: 30px;
  position: relative;
}

.bmi-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  height: 14px;
  border-radius: 10px;
  overflow: hidden;
}

.zone {
  font-size: 0; /* hide text visually */
}

.zone.under { background: #facc15; }   /* yellow */
.zone.normal { background: #22c55e; }  /* green */
.zone.over { background: #f97316; }    /* orange */
.zone.obese { background: #ef4444; }   /* red */

.bmi-indicator {
  position: absolute;
  top: -6px;
  left: 0;
  width: 4px;
  height: 26px;
  background: #111827;
  border-radius: 2px;
  transition: left 0.8s ease-in-out;
}
/* BMI LABELS */

.bmi-labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
  color: var(--muted);
}
/* ==============================
   FORCE VERTICAL FORMS ON MOBILE
   ============================== */
@media (max-width: 600px) {

  /* All calculator forms stack vertically */
  .bmi-form {
    display: flex !important;
    flex-direction: column !important;
  }

  .bmi-field {
    width: 100%;
  }

  .bmi-field input {
    width: 100%;
  }

  .bmi-btn,
  .bmi-result,
  .bmi-scale {
    width: 100%;
  }

}
/*unit-converter*/
:root{
--bg:#ffffff;
--text:#222;
--card:#f5f5f5;
--accent:#3b82f6;
}

body.dark{
--bg:#121212;
--text:#f0f0f0;
--card:#1e1e1e;
--accent:#60a5fa;
}

body{
font-family:Arial, sans-serif;
background:var(--bg);
color:var(--text);

transition:.3s;
}

.container{
max-width:900px;
margin:auto;
}

.card{
background:var(--card);
padding:20px;
border-radius:10px;
box-shadow:0 5px 20px rgba(0,0,0,0.1);
}

h1{
text-align:center;
margin-bottom:20px;
}

.controls{
display:grid;
grid-template-columns:1fr 1fr;
gap:10px;
margin-bottom:15px;
}

input,select,button{
padding:10px;
font-size:16px;
border-radius:6px;
border:1px solid #ccc;
}

button{
cursor:pointer;
background:var(--accent);
color:white;
border:none;
}

.result{
font-size:22px;
font-weight:bold;
margin-top:10px;
}

.history{
margin-top:20px;
font-size:14px;
}

.swap{
background:#888;
}

.topbar{
display:flex;
justify-content:space-between;
align-items:center;
margin-bottom:10px;
}

@media(max-width:600px){
.controls{
grid-template-columns:1fr;
}
}

/*hamburger menu*/
.menu-toggle {
  font-size: 28px;
  cursor: pointer;
  display: none;
}

#nav-menu {
  display: flex;
  gap: 5px;
  
}

/* Desktop (default) */
#nav-menu {
  display: flex;
  gap: 20px;
}

/* Mobile */
@media (max-width: 768px) {

  #nav-menu {
    display: none;
    flex-direction: column;
    background: #1e293b;
    position: absolute;
    top: 60px;
    right: 0;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  #nav-menu.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

}

/* Extra small devices */
@media (max-width: 290px) {

  #nav-menu {
    top: 75px;
  }

}