
body{font-family:Arial,sans-serif;margin:0;padding:0;background:#f8f9fa;} 
a{text-decoration:none;color:inherit;}
header{background:#0078d7;color:white;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:1000;flex-wrap:wrap;}
header h1{font-size:1.5rem;} 
nav a{color:white;margin-left:15px;font-weight:bold;}
.search-bar input{padding:5px 10px;border-radius:4px;border:none;}
main{max-width:1400px;margin:20px auto;padding:0 20px;}

/* ✅ Responsive grid */
.categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default: 3 columns */
    gap: 20px;
}
@media (max-width: 1024px) {
    .categories { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .categories { grid-template-columns: 1fr; }
}

.category-card{background:white;padding:20px;border-radius:10px;box-shadow:0 2px 6px rgba(0,0,0,0.1);}
.category-card h3{color:#0078d7;margin-bottom:10px;text-align:center;}
.tools{display:grid;grid-template-columns:1fr 1fr;gap:10px;max-height:700px;overflow-y:auto;padding-right:5px;}
.tool{background:#f1f1f1;padding:10px;border-radius:6px;display:flex;align-items:center;justify-content:flex-start;font-size:0.9rem;cursor:pointer;gap:8px;height:40px;}
.tool i{color:#0078d7;}
footer{background:#333;color:white;text-align:center;padding:15px;margin-top:40px;}



.back-button-container {
    margin: 15px 0;
    text-align: left;
}



.back-button:hover {
    background: #005a9e; /* darker blue */
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateX(-3px); /* subtle arrow slide */
}

.breadcrumb {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #555;
}
.breadcrumb a {
    color: #0078d7;
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb a:hover {
    text-decoration: underline;
}
.breadcrumb span {
    color: #333;
    font-weight: bold;
}


/* FAQ Accordion */
.accordion {
  background-color: #eee;
  color: #333;
  cursor: pointer;
  padding: 12px;
  width: 100%;
  border: none;
  text-align: left;
  font-size: 16px;
  transition: 0.3s;
}
.accordion:hover, .accordion.active {
  background-color: #ccc;
}
.panel {
  padding: 10px;
  display: none;
  background-color: white;
  border: 1px solid #ddd;
  border-top: none;
}
/* Back to Top Button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  font-size: 20px;
  background: #333;
  color: white;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 50%;
  transition: background 0.3s;
}
#backToTop:hover {
  background: #555;
}

/* Fix Back to Top Button so it doesn't block header/footer links */
#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999; /* Ensure button is clickable but doesn't block header/footer */
}



/* Calculator Container */
.calculator {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Input fields */
.calculator input, .calculator select {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

/* Buttons */
.calculator button {
  background-color: #007BFF;
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

.calculator button:hover {
  background-color: #0056b3;
}

/* Result display */
.calculator .result {
  margin-top: 15px;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
}


/* === Appended calculator & nav styles === */

/* ---- Global typography and layout ---- */
body { font-family: Arial, Helvetica, sans-serif; color: #222; background: #f7f8fb; margin:0; padding:0; }
header { background: linear-gradient(90deg,#0366d6,#005bb5); color:#fff; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; position:relative; z-index:1000; }
header h1 { margin:0; font-size:1.25rem; }
header nav { font-weight:600; }
header nav a { color: rgba(255,255,255,0.95); margin:0 8px; text-decoration:none; font-size:0.95rem; }
header nav a:hover { text-decoration:underline; }

/* Search bar in header */
.search-bar { display:flex; gap:8px; align-items:center; }
.search-bar input { padding:8px 10px; border-radius:6px; border:1px solid rgba(0,0,0,0.12); width:220px; }
.search-bar button { padding:8px 10px; border-radius:6px; border:none; background:#fff; color:#0366d6; font-weight:700; cursor:pointer; }
.search-bar button:hover { opacity:0.95; }

/* ---- Card / calculator layout ---- */
.category-card, .calculator-card { background:#fff; border-radius:10px; box-shadow:0 6px 18px rgba(20,23,28,0.06); padding:20px; margin:20px auto; max-width:900px; }
.category-card h3, .calculator-card h3 { margin:0 0 12px 0; color:#063970; font-size:1.1rem; }

.calculator-grid { display:flex; flex-wrap:wrap; gap:16px; }
.calc-item { flex:1 1 280px; background:#fff; border-radius:8px; padding:12px; box-shadow:0 4px 12px rgba(20,23,28,0.04); }

/* Input, select, textarea styles */
input[type="text"], input[type="number"], input[type="email"], select, textarea {
  width:100%; padding:10px 12px; border:1px solid #d8dde6; border-radius:8px; box-sizing:border-box; font-size:1rem; margin-top:6px;
}
input:focus, select:focus, textarea:focus { outline:none; border-color:#0366d6; box-shadow:0 0 0 3px rgba(3,102,214,0.08); }

/* Buttons - blue theme */
.btn, button, .primary-btn { background:#0366d6; color:#fff; border:none; padding:10px 14px; border-radius:8px; cursor:pointer; font-weight:700; }
.btn:hover, .primary-btn:hover, button:hover { background:#0256b3; }

/* Small utility */

.breadcrumb { font-size:0.9rem; color:#666; padding:12px 20px; background:transparent; }
main { padding:20px; min-height:60vh; }

/* Footer */
footer { background:#0f1724; color:#cbd5e1; text-align:center; padding:18px 14px; margin-top:20px; }
footer nav a { color:#94a3b8; margin:0 6px; text-decoration:none; }
footer nav a:hover { color:#fff; }

/* FAQ accordion + panel already present; ensure visibility */
.accordion { cursor:pointer; background:#f1f5f9; border-radius:8px; padding:12px; border:1px solid #e2e8f0; }
.panel { display:none; padding:12px; background:#fff; border-radius:0 0 8px 8px; border:1px solid #e2e8f0; border-top:none; }

/* Back to top */
#backToTop { display:none; position:fixed; bottom:30px; right:30px; z-index:9999; font-size:18px; background:#0366d6; color:#fff; border:none; padding:10px 12px; border-radius:50%; cursor:pointer; }

/* Responsive */
@media (max-width:720px){
  header { flex-direction:column; gap:10px; align-items:stretch; }
  .search-bar input { width:100%; }
  .calculator-grid { flex-direction:column; }
}


.site-logo { height:32px; width:auto; }
.footer-logo { height:20px; width:auto; }


.hero {
  text-align: center;
  padding: 50px 20px;
  background: #f8fafc;
}
.hero h1 {
  font-size: 2rem;
  color: #063970;
  margin-bottom: 10px;
}
.hero p {
  font-size: 1.1rem;
  color: #444;
  max-width: 800px;
  margin: 0 auto;
}


.footer-tagline {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #94a3b8;
}


.footer-tagline a {
  color: #94a3b8;
  text-decoration: none;
}
.footer-tagline a:hover {
  color: #fff;
  text-decoration: underline;
}
