/* SUB HEADER */
.sub-header-categories {
  background: #ffffff;
  border-bottom: 1px solid #eaeef4;
  position: sticky;
  
  z-index: 998;
}

/* CONTAINER SPACING */
.sub-header-categories .container-xl {
  padding-top: 10px;
  padding-bottom: 10px;
}
/* SCROLL ROW */
.category-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

/* CATEGORY BUTTON */
.category-scroll a {
  white-space: nowrap;
  padding: 8px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  text-decoration: none;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s ease;
}

/* HOVER */
.category-scroll a:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-2px);
}

/* ACTIVE STATE (IMPORTANT) */
.category-scroll a.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}
.category-intro {
  padding: 50px 0;
}
/* PAGE */
.calc-page {
  padding: 12px 0;
  background: #f8fafc;
}

/* Mobile only */
@media (max-width: 767px) {
  .calc-page {
    padding: 0;
  }
}

/* SIDEBAR */
.calc-sidebar {
  top: 100px;
}

/* CALCULATOR BOX */
.calc-box {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* RELATED */
.related-box {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px;
}

.related-box h6 {
  font-weight: 600;
  margin-bottom: 10px;
}

.related-box a {
  display: block;
  padding: 8px 0;
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
}

/* TITLE */
.calc-title {
  font-size: 32px;
  font-weight: 700;
}

/* META */
.meta {
  color: #64748b;
  font-size: 14px;
  margin-bottom: 15px;
}

/* TOC */
.toc {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
}

.toc ul {
  padding-left: 15px;
}

.toc a {
  color: #2563eb;
  font-size: 14px;
}

/* INPUT */
.form-control {
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

/* BUTTON */
.btn-primary {
  background: #2563eb;
  border: none;
  border-radius: 10px;
}

.btn-light {
  border-radius: 10px;
}





.calc-section {
  --calc-primary: #FF6B00;
  --calc-dark: #0F172A;
  --calc-gray: #64748B;
  --calc-border: #E2E8F0;
  --calc-white: #ffffff;
  
  padding:0px;
  font-family: 'Inter', sans-serif;
  background: var(--calc-bg);
  
  
 
}


/* MOBILE FIRST → no sticky */
.calc-container {
  position: relative;
}


.calc-card {
    background: var(--calc-white);
    padding: 35px;
    border-radius: 5px;
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.06);
    border: 1px solid #c1c1c1;
    background: #f5f5f5;
}

.calc-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
}
.calc-heading{
font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2e2d2d;
    margin-left: 4px;
	line-height: 40px;
}

/* FORM */

.calc-group {
  margin-bottom: 22px;
}

.calc-label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.calc-input-group {
  display: flex;
  border: 1px solid var(--calc-border);
  border-radius: 12px;
  overflow: hidden;
}

.calc-prefix {
  background: #F1F5F9;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--calc-gray);
}

.calc-input-group input,
.calc-input-group select {
  flex: 1;
  border: none;
  padding: 14px;
  font-size: 15px;
  outline: none;
}

/* SLIDER */

.calc-slider {
  width: 100%;
  margin-top: 10px;
  accent-color: var(--calc-primary);
}

/* BUTTONS */

.calc-btn-row {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.calc-btn-primary {
  background: var(--calc-primary);
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.calc-btn-secondary {
  background: #E2E8F0;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 600;
}

/* TABS */

.calc-tabs {
  margin-top: 40px;
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--calc-border);
}

.calc-tab {
  padding-bottom: 10px;
  font-weight: 600;
  cursor: pointer;
  color: var(--calc-gray);
}

.calc-tab.active {
  color: var(--calc-primary);
  border-bottom: 2px solid var(--calc-primary);
}

/* TABLE */

.calc-table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 14px;
}

.calc-table th,
.calc-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--calc-border);
  text-align: left;
}

/* RESULT BLOCK AT BOTTOM */

.calc-result {
  margin-top: 40px;
  padding: 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0F172A, #1E293B);
  color: white;
}

.calc-result-header {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 12px;
}

.calc-result-value {
  font-size: 38px;
  font-weight: 700;
  color: var(--calc-primary);
  margin-bottom: 20px;
}

.calc-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.calc-result-item {
  background: rgba(255,255,255,0.05);
  padding: 12px 14px;
  border-radius: 10px;
}

.calc-result-item span {
  display: block;
  font-size: 12px;
  opacity: 0.7;
}

.calc-result-item strong {
  font-size: 15px;
}

@media(max-width:600px) {
  .calc-result-grid {
    grid-template-columns: 1fr;
  }
}

/* TOOL HEADER */

.calc-tool-header {
  background: #5c5c5c;
  color: white;
  padding: 8px 22px;
  border-radius: 2px 2px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -35px -35px 30px -35px;
}

.calc-tool-icon {
  background: var(--calc-primary);
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.calc-tool-title {
  font-size: 18px;
  font-weight: 600;
}
.calc-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Card */

.calc-info-card {
  background: #ffffff;
  padding: 28px;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
  transition: 0.2s ease;
}

.calc-info-card:hover {
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

/* Title */

.calc-info-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 14px;
  color: #0F172A;
  letter-spacing: 0.2px;
}

/* Text */

.calc-info-text {
  font-size: 17px;
  line-height: 1.7;
  color: #475569;
}

/* List */

.calc-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.calc-info-list li {
  font-size: 14px;
  color: #475569;
  padding: 8px 0;
  border-bottom: 1px solid #F1F5F9;
}

.calc-info-list li:last-child {
  border-bottom: none;
}

/* Formula */

.calc-info-formula {
  background: #F8FAFC;
  padding: 14px 16px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 13px;
  color: #0F172A;
  border: 1px solid #E2E8F0;
}

/* Related Links */

.calc-info-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.calc-info-links li {
  margin-bottom: 8px;
}

.calc-info-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #0F172A;
  text-decoration: none;
  background: #F8FAFC;
  transition: 0.2s ease;
}

.calc-info-links a:hover {
  background: #0F172A;
  color: #ffffff;
}

/* Responsive */

@media(max-width: 992px) {
  .calc-info-wrapper {
    margin-top: 40px;
  }
}
.calc-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #111;
  color: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.calc-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.calc-toast.success {
  background: #16a34a;
}

.calc-toast.error {
  background: #dc2626;
}


.calc-formula-box {
  margin-top: 25px;
  
  background: #f9fafb;
  border-radius: 10px;
 
}

.calc-formula-title {
  font-weight: 600;
  margin-bottom: 15px;
}

#formulaDynamic {
  margin-top: 15px;
}

.calc-howto {
  margin-top: 40px;
  padding: 30px;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.calc-howto h2 {
  margin-bottom: 15px;
}

.calc-howto p {
 color: #444;
    line-height: 1.7;
    font-size: 17px;
    margin-top: 5px;
}

.calc-step {
  margin-top: 20px;
}

.calc-step h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.calc-howto ul {
  margin-top: 8px;
  padding-left: 20px;
}

.calc-tip {
  margin-top: 25px;
  padding: 15px;
  background: #f3f4f6;
  border-left: 4px solid #2563eb;
  border-radius: 8px;
}


.content{
  max-width: 820px;
  margin: 40px auto;
  padding: 0 22px;
  line-height: 1.8;
  font-size: 17px;
  color: #374151;
}

/* Paragraph spacing */
.content p{
  margin-bottom: 18px;
}

/* Headings */
.content h1,
.content h2,
.content h3{
  font-weight: 700;
  color: #111827;
 
  margin-bottom: 14px;
  line-height: 1.4;
}

.content h1{
  font-size: 34px;
}

.content h2{
  font-size: 26px;
}

.content h3{
  font-size: 21px;
}

/* Lists */
.content ul,
.content ol{
  padding-left: 20px;
  margin-bottom: 20px;
}

.content li{
  margin-bottom: 8px;
}

/* Links */
.content a{
  color: #2563eb;
  text-decoration: none;
}

.content a:hover{
  text-decoration: underline;
}

/* Highlight box (like FAQ / notes) */
.content .info-box{
  background: #f9fafb;
  border-left: 4px solid #3b82f6;
  padding: 16px;
  margin: 20px 0;
  border-radius: 6px;
}

/* Images */
.content img{
  max-width: 100%;
  border-radius: 6px;
  margin: 20px 0;
}

/* Better mobile readability */
@media (max-width: 768px) {
  .content {
    font-size: 16px;
    line-height: 1.85;
  }

  .content h1 {
    font-size: 26px;
  }

  .content h2 {
    font-size: 22px;
  }
}
.content{
 padding:0 16px;
}

.faq{
  max-width: 780px;
  margin: 40px auto;

  
  line-height: 1.8;
  color:#374151;
}

/* FAQ section title */
.faq h2{
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 25px;
  color:#111827;
}

/* Question */
.faq h3{
  font-size: 18px;
  
  margin-top: 28px;
  margin-bottom: 8px;
  color:#1f2937;
  position: relative;
  
}

/* small icon before question */


/* Answer */
.faq p{
  margin-bottom:16px;
  color:#4b5563;
}

/* Lists */
.faq ul,
.faq ol{
  padding-left:20px;
  margin-bottom:16px;
}

.faq li{
  margin-bottom:6px;
}

/* Divider between FAQs */
.faq h3:not(:first-child){
  border-top:1px solid #e5e7eb;
  padding-top:18px;
}

.calc_container{
	max-width:1000px;
}
.calc-meta {
  margin-bottom: 30px;
  padding: 10px;
}

/* UPDATED */
.updated {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
}

/* TITLE */
.calc-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 20px;
}

/* AUTHOR */
.author-box {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 15px;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

/* AUTHOR TEXT */
.author-info p {
  margin: 0;
  font-size: 14px;
}

.author-info a {
  color: #2563eb;
  text-decoration: none;
}

.author-info a:hover {
  text-decoration: underline;
}

/* HELPFUL */
.helpful {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #475569;
  margin: 15px 0;
}

/* ACTION BUTTONS */
.meta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.meta-actions button {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

/* HOVER */
.meta-actions button:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.related-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 15px;
}

/* TOP BOX */
.related-highlight {
  background: #fef3c7;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 10px;
}

.related-highlight a {
  color: #2563eb;
  font-weight: 500;
  text-decoration: none;
}

.related-highlight a:hover {
  text-decoration: underline;
}

/* LIST */
.related-list {
  display: flex;
  flex-direction: column;
}

/* ITEM */
.related-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 5px;
  text-decoration: none;
  color: #0f172a;
  font-size: 15px;
  border-bottom: 1px solid #f1f5f9;
  transition: 0.2s ease;
}

.related-item:last-child {
  border-bottom: none;
}

/* HOVER */
.related-item:hover {
  color: #2563eb;
  transform: translateX(4px);
}

/* ICON */
.related-item i {
  font-size: 14px;
}

.related-item:hover {
  background: #f8fafc;
  border-radius: 8px;
}
/* BUTTON */
.calc-formula-box h5 {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 14px;
  border-radius: 10px;

  background: #ffffff;
  border: 1px solid #e2e8f0;

  font-size: 14px;
  font-weight: 500;
  color: #0f172a;

  cursor: pointer;
  transition: all 0.2s ease;
}

/* LEFT ICON (clean circle like screenshot) */
.calc-formula-box h5::before {
  content: "";
  width: 28px;
  height: 28px;
  background: #2563eb;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
}

/* RIGHT ARROW */
.calc-formula-box h5::after {
  content: "→";
  font-size: 16px;
  color: #2563eb;
  transition: transform 0.25s ease;
}

/* HOVER */
.calc-formula-box h5:hover {
  background: #f8fafc;
}

/* ACTIVE (OPEN STATE) */
.calc-formula-box.active h5 {
  border-color: #c7d2fe;
}

/* ARROW ROTATES DOWN */
.calc-formula-box.active h5::after {
  transform: rotate(90deg);
}

/* CONTENT */
#formulaStatic,
#formulaDynamic {
  max-height: 0;
  overflow: hidden;
  transition: all 0.25s ease;
}

/* OPEN */
.calc-formula-box.active #formulaStatic,
.calc-formula-box.active #formulaDynamic {
  max-height: 500px;
  margin-top: 10px;
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}
.toc {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px;
  margin: 20px 0;
}

.toc h6 {
  font-weight: 600;
  margin-bottom: 10px;
}

.toc ul {
  padding-left: 16px;
  margin: 0;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  color: #2563eb;
  text-decoration: none;
  font-size: 14px;
  transition: 0.2s;
}

.toc a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

/* Wrapper */
.info-wrapper {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: all 0.2s ease;
}

/* Button */
.info-toggle {
  width: 100%;
  padding: 16px 18px;
  background: #ffffff;
  border: none;
  font-weight: 600;
  font-size: 15px;
  color: #111827;

  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;

  transition: background 0.2s ease;
}

/* Hover like Google */
.info-toggle:hover {
  background: #f9fafb;
}

/* Arrow */
.info-toggle .arrow {
  font-size: 16px;
  color: #6b7280;
  transition: transform 0.25s ease;
}

/* Rotate arrow when open */
.info-toggle[aria-expanded="true"] .arrow {
  transform: rotate(180deg);
}

/* Content */
.info-content {
  padding: 16px 18px;
  border-top: 1px solid #f1f5f9;
  color: #374151;
  line-height: 1.65;
  background: #fcfcfd;
}

/* List spacing */
.info-content ol {
  padding-left: 18px;
  margin-top: 10px;
}

.info-content li {
  margin-bottom: 6px;
}

.breadcrumb-compact {
  padding: 6px 0;
}

.breadcrumb {
  background: none;
  font-size: 13px;
  margin-bottom: 0;
}

.breadcrumb-item a {
  color: #6c757d;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: #000;
}

.breadcrumb-item.active {
  color: #000;
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  padding: 0 6px;
  color: #adb5bd;
}


.calc_h1{
	font-size: 24px;
    color: white;
    margin-bottom: 0;
}


/* Wrapper to control width */
.calc-top-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

/* Main box */
.calc-top-box {
  background: #fff;
  border-radius: 14px;
  padding: 20px 22px;
  border: 1px solid #eaeaea;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);

  /* IMPORTANT FIXES */
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Title */
.calc-top-title {
  font-size: 28px;
  font-weight: 700;
  margin: 6px 0 8px;
}

/* Description */
.calc-top-desc {
  font-size: 15px;
  color: #6c757d;
  max-width: 650px;
  line-height: 1.6;
  margin-bottom: 12px;
}

/* CTA */
.calc-top-actions {
  margin-top: 6px;
}

/* Breadcrumb tweaks */
.breadcrumb {
  font-size: 13px;
}

@media (max-width: 767px) {
  .calc-top-box {
    padding: 16px;
  }

  .calc-top-title {
    font-size: 22px;
  }

  .calc-top-desc {
    font-size: 14px;
  }
}

.bread-crumb-wrapper{
	max-width:1000px;
}

.author-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 260px;
  background: #111;
  color: #fff;
  border-radius: 14px;
  padding: 14px;
  display: none;
  z-index: 99999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.author-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.author-header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.author-name {
  font-weight: 600;
}

.author-role {
  font-size: 12px;
  opacity: 0.7;
}

.author-desc {
  font-size: 13px;
  margin: 8px 0;
}

.author-link {
  color: #4dabf7;
  text-decoration: none;
  font-weight: 600;
}
.author-card::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 12px;
  height: 12px;
  background: #111;
  transform: rotate(45deg);
}
.author-card {
  padding: 16px;
}
.author-link {
  color: #4dabf7;
  font-weight: 600;
  font-size: 14px;
}
.author-card {
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.2s ease;
}

.author-card.show {
  opacity: 1;
  transform: translateY(0);
}

.faq-wrapper {
  margin-top: 30px;
}

.faq-heading {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  padding: 10px;
}

.faq-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.04);
  padding: 10px 0;
}

.faq-row {
  border-bottom: 1px solid #f1f1f1;
}

.faq-row:last-child {
  border-bottom: none;
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-q:hover {
  background: #fafafa;
}

.faq-arrow {
  width: 8px;
  height: 8px;
  border-right: 2px solid #888;
  border-bottom: 2px solid #888;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: all 0.25s ease;
  padding: 0 18px;
}

.faq-a p {
  margin: 10px 0 16px;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.faq-row.active .faq-a {
  max-height: 300px;
}

.faq-row.active .faq-arrow {
  transform: rotate(-135deg);
}