/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: system-ui;
  background: #f8fafc;
  color: #0f172a;
}

/* CONTAINER */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}
/* HEADER */
.header-main {
  background: linear-gradient(90deg, #0f172a, #1e293b);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

/* FLEX */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.logo {
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.logo-main {
  color: #ffffff;
}

.logo-sub {
  color: #22c55e;
  margin-left: 4px;
}

/* NAV */
.nav-links {
  display: flex;
  gap: 18px;
}

.nav-links a {
  color: #cbd5f5;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.nav-links a:hover {
  color: #ffffff;
}

/* RIGHT */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* SEARCH */
.search-btn {
  background: none;
  border: none;
  color: #cbd5f5;
  font-size: 16px;
  cursor: pointer;
}

.search-btn:hover {
  color: #fff;
}

/* SIGN IN */
.btn-signin {
  padding: 7px 16px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.btn-signin:hover {
  opacity: 0.9;
}

/* BREADCRUMB */
.breadcrumb {
  background: #f1f5f9;
  padding: 8px 0;
  font-size: 13px;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}
/* HERO */
.hero-section {
  background: linear-gradient(135deg,#2563eb,#1e40af);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}

.hero-center {
  max-width: 700px;
  margin: auto;
}

.hero-section h1 {
  font-size: 44px;
  font-weight: 800;
}

.hero-section p {
  margin-top: 10px;
}

.trust-badge {
  margin-top: 10px;
  background: rgba(255,255,255,0.2);
  padding: 6px 12px;
  border-radius: 20px;
  display: inline-block;
}

/* SEARCH */
/* FULL ROUNDED (ONE BOX FEEL) */
.search-box {
  background: #fff;
  border-radius: 50px;
  padding: 4px;
  display: flex;
  width: 450px;
  max-width: 100%;
  margin: 20px auto;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 12px;
  border-radius: 50px;
}

.search-box button {
  background: #2563eb;
  color: #fff;
  border-radius: 50px;
  padding: 10px 18px;
}

/* BUTTON */
.btn-primary {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 20px;
  background: #fff;
  color: #2563eb;
  border-radius: 6px;
  text-decoration: none;
}

/* TOOLS */
.tools-section {
  padding: 70px 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}

.tool-card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  text-decoration: none;
  color: #000;
  position: relative;
  transition: 0.3s;
}

.tool-card:hover {
  transform: translateY(-5px);
}

.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #2563eb;
  color: #fff;
  padding: 4px 8px;
  font-size: 12px;
}

/* STATS */
.stats-section {
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}

.stat-card {
  background: #fff;
  padding: 20px;
  text-align: center;
  border-radius: 10px;
}

/* CONTENT */
.content-section {
  padding: 60px 0;
}

/* MOBILE */
@media(max-width:768px){
  .tools-grid{
    grid-template-columns:1fr;
  }
  .stats-grid{
    grid-template-columns:1fr 1fr;
  }
}

.quick-tools {
  margin-top: 15px;
}

.quick-tools a {
  display: inline-block;
  margin: 5px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.2);
  border-radius: 20px;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transition: 0.2s;
}

.quick-tools a:hover {
  background: #fff;
  color: #2563eb;
}

/* FOOTER */
.footer-main {
  background: #0f172a;
  color: #cbd5f5;
  padding: 50px 0 30px;
  font-size: 14px;
}

/* ABOUT TEXT */
.footer-about {
  max-width: 800px;
  margin: auto;
  text-align: center;
  line-height: 1.7;
}

.footer-about p {
  margin-bottom: 12px;
}

/* LINKS */
.footer-links {
  text-align: center;
  margin-top: 20px;
}

.footer-links a {
  margin: 0 10px;
  color: #93c5fd;
  text-decoration: none;
  transition: 0.2s;
}

.footer-links a:hover {
  color: #fff;
}

/* COPYRIGHT */
.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #94a3b8;
}

/* WRAPPER */
/* =============================
   CALCULATOR LAYOUT (FIXED)
============================= */

/* GRID */
.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
  align-items: start;
}

/* LEFT PANEL */
.calc-left {
  background: #ffffff;
  padding: 25px;
  border-radius: 12px;
}

/* INPUTS */
.calc-left input,
.calc-left select {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* RIGHT PANEL */
.calc-right {
  background: #ffffff;   /* same background */
  padding: 25px;
  border-radius: 12px;
  text-align: left;      /* ❌ center हटाया */
}

/* RESULT */
.big-result {
  font-size: 38px;
  font-weight: 800;
  color: #2563eb;
  margin: 15px 0;
}

/* CHART FIX (VERY IMPORTANT) */
canvas {
  max-width: 300px !important;
  height: auto !important;
  display: block;
  margin: 20px auto;
}

/* CTA */
.cta-box {
  margin-top: 20px;
}

/* SEO */
.seo-content {
  margin-top: 50px;
}

/* MOBILE */
@media (max-width: 768px) {
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
}

/* =========================
   SALARY CALCULATOR (FINAL)
========================= */

.tool-page{
padding:40px 0;
}

.tool-page h1{
font-size:30px;
margin-bottom:8px;
}

.subtitle{
color:#64748b;
margin-bottom:25px;
}

/* MAIN GRID */
.salary-container{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
align-items:start;
}

/* LEFT PANEL */
.salary-left{
background:#ffffff;
padding:25px;
border-radius:12px;
box-shadow:0 8px 25px rgba(0,0,0,0.05);
}

.salary-left label{
display:block;
font-weight:600;
margin-top:15px;
}

.salary-left input,
.salary-left select{
width:100%;
padding:12px;
margin-top:6px;
border:1px solid #e2e8f0;
border-radius:8px;
font-size:14px;
}

.input-group{
display:flex;
gap:10px;
}

/* BUTTONS */
.calc-btn{
background:#22c55e;
color:#fff;
padding:12px;
margin-top:20px;
border:none;
width:100%;
border-radius:8px;
font-weight:600;
cursor:pointer;
transition:0.3s;
}

.calc-btn:hover{
background:#16a34a;
}

.clear-btn{
background:#e5e7eb;
margin-top:10px;
padding:10px;
width:100%;
border:none;
border-radius:6px;
cursor:pointer;
}

/* RIGHT PANEL */
.salary-right{
background:#ffffff;
padding:25px;
border-radius:12px;
box-shadow:0 8px 25px rgba(0,0,0,0.05);
}

.result-header{
background:#22c55e;
color:#fff;
padding:10px;
border-radius:6px;
font-weight:600;
margin-bottom:15px;
}

/* TABLE */
.calc-table{
width:100%;
border-collapse:collapse;
font-size:14px;
}

.calc-table th{
background:#f1f5f9;
padding:10px;
text-align:left;
font-weight:600;
}

.calc-table td{
padding:10px;
border-bottom:1px solid #e2e8f0;
}

/* =========================
   SEO CONTENT
========================= */

.seo-content{
max-width:800px;
margin:70px auto;
padding:0 20px;
line-height:1.8;
}

.seo-content h2{
font-size:24px;
margin-top:40px;
margin-bottom:15px;
font-weight:700;
}

.seo-content p{
margin-bottom:15px;
color:#374151;
}

/* =========================
   RELATED SECTION
========================= */

.rc-section{
max-width:800px;
margin:40px auto;
padding:20px;
background:#f1f5f9;
border-radius:10px;
}

.rc-links{
display:flex;
gap:10px;
flex-wrap:wrap;
}

.rc-btn{
background:#1e3a8a;
color:#fff;
padding:10px 14px;
border-radius:6px;
text-decoration:none;
font-size:14px;
}

.rc-btn:hover{
background:#2563eb;
}

/* =========================
   MOBILE
========================= */

@media(max-width:768px){

.salary-container{
grid-template-columns:1fr;
gap:25px;
}

.tool-page h1{
font-size:24px;
}

}



.loan-box{
display:grid;
grid-template-columns:1fr 1fr;
gap:25px;
margin:30px 0;
}

.loan-left{
background:#f3f4f6;
padding:20px;
border-radius:8px;
}

.loan-left input{
width:100%;
padding:10px;
margin-top:5px;
border:1px solid #ccc;
border-radius:5px;
}

.loan-left label{
display:block;
margin-top:10px;
font-weight:600;
}

.loan-right{
background:#fff;
padding:20px;
border-radius:8px;
}

.result-header{
background:#4caf50;
color:#fff;
padding:10px;
margin-bottom:10px;
font-weight:bold;
}

.calc-btn{
background:#4caf50;
color:#fff;
padding:10px;
margin-top:15px;
border:none;
width:100%;
cursor:pointer;
}

@media(max-width:768px){
.loan-box{
grid-template-columns:1fr;
}
}


/* BMI MODERN UI */

/* BMI LAYOUT */
.bmi-wrapper{
display:grid;
grid-template-columns:1fr 1fr;
gap:30px;
margin-top:20px;
}

/* LEFT */
.bmi-left{
background:#f3f4f6;
padding:20px;
border-radius:8px;
}

.unit-tabs{
display:flex;
margin-bottom:15px;
}

.unit-tabs button{
padding:8px 15px;
border:none;
background:#ddd;
cursor:pointer;
}

.unit-tabs .active{
background:#3b5d8a;
color:#fff;
}

.bmi-left label{
display:block;
margin-top:10px;
font-weight:600;
}

.bmi-left input{
width:100%;
padding:8px;
margin-top:5px;
border:1px solid #ccc;
}

.input-row{
display:flex;
gap:10px;
align-items:center;
}

.gender-box{
display:flex;
gap:20px;
margin-top:5px;
}

.btn-row{
display:flex;
gap:10px;
margin-top:15px;
}

.btn-calc{
background:#4caf50;
color:#fff;
padding:10px;
border:none;
cursor:pointer;
}

.btn-clear{
background:#ccc;
padding:10px;
border:none;
cursor:pointer;
}

/* RIGHT */
.bmi-right{
background:#fff;
padding:20px;
border-radius:8px;
}

.result-head{
background:#4caf50;
color:#fff;
padding:10px;
font-weight:600;
margin-bottom:10px;
}

.result-body p{
margin-bottom:10px;
}

.note{
font-size:13px;
color:#555;
}

/* MOBILE */
@media(max-width:768px){
.bmi-wrapper{
grid-template-columns:1fr;
}
}