/* center the converter on the page */
html, body {
    height: 100%;
    margin: 0;
  }
  body {
    display: flex;
    flex-direction: column;    /* stack children top→bottom */
    align-items: center;       /* center horizontally */
    justify-content: flex-start; /* stick them at the top */
    padding-top: 20px;
    margin: 0;
    background: #f9f6f6;
    font-family: Arial, sans-serif;
  }
  
  
  /* the “card” around your tabs + panels */
  .converter-container {
    width: 400px;            /* adjust to taste */
    padding: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(122, 21, 21, 0.15);
    border-radius: 8px;
    transform: scale(1.3);
  transform-origin: top center;
  margin-bottom: 3rem; /* tweak this until your common-panel peeks out */
 margin-top: 40px;
 font-size: 1.5rem;
 text-align: center;  
 
 
  }
  /* Sub-heading under the title */
.converter-container > h2 {
    font-size: 1.3rem;   /* roughly 20px */
    font-weight: 200;
    margin-bottom: 1rem;
   text-align: center; 
   color: #008040;
   font-weight: bold;
  }
  .converter-container > h1 {
    font-size: 1.7rem; /* whatever size you prefer (e.g. 1rem, 24px, etc.) */
    margin-bottom: 0.5rem; /* optional tweak to tighten spacing */
  } 
  .result { font-weight: bold; }
  .converter-grid {
    display: flex;
    gap: 12px;
    font-size: 1rem;
  }
  
  .side {
    flex: 1;
  }
  
  /* make inputs & lists full-width of their column */
  .side input,
  .side select {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 8px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #060505;
    font-size: 1rem;
  }
  
  /* red result line */
  .result-text {
    margin-top: 8px;
    color: #c00;
    font-weight: bold;
    font-size:0.75rem;
  }
  
  /* keep the rest of your existing centering etc. */
  /* Header styling */
.converter-header {
  text-align: center;
  margin-bottom: 20px;
}
.converter-header h1 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 2rem;
  color: #090909;
  margin: 0;
  letter-spacing: 1px;
 
}
.converter-header p {
  font-family: Arial, sans-serif;
  font-size: 2rem;
  color: #555;
  margin: 8px 0 0;
}
.converter-header p {
  font-size: 1rem;
}
/* Separator below header */
.header-separator {
  border: none;
  border-bottom: 1px solid #ccc;
  margin: 12px auto;
  width: 80%;
}

/* Red separator line */
.section-separator {
  border: none;
  height: 2px;
  background: red;
  margin: 24px 0;
}


/* hide the quick‐converter until link is clicked */
/* Quick‐converter card */
.quick-panel {
  display: none;               /* still hidden until link click */
  margin: 1rem 0 2rem;
  padding: 1rem;
  background: #d3d3d3;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  
}

/* Mini‐header inside each quick‐panel */
.quick-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  
}
.quick-header h2 {
  flex: 1;
  margin: 0;
  font-size: 1.5rem;
  color: #090909;
  text-align: center;
}
.back-btn {
  background: none;
  border: none;
  color: #005f2f;
  cursor: pointer;
  font-size: 0.9rem;
  margin-right: 0.5rem;
}
.back-btn:hover {
  text-decoration: underline;
}


/* to make the cm to m panel big*/
/* widen the gap between fields */
.quick-panel .converter-grid {
  gap: 20px;
 
}

/* bump up the label size */
.quick-panel label {
  font-weight: bold;
  font-size: 1rem;
  
}
/* to make the cm to m panel big ends here*/


/* center the arrow between the two fields */
.bidirectional-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  
}

.arrow {
  font-size: 2.5rem;
  color: #008040;
  user-select: none;
  padding: 0 8px;
}



.back-btn,
.clear-btn {
  background: #067522;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 1rem;
  
  color: #ffffff;
  cursor: pointer;
  transition: background 0.2s;
}


.converter-desc {
  font-size: 1rem;
  color: #444;
  margin-top: 4px;
  text-align: center;
}
/* Base font size for the conversion-info section */
.conversion-info {
    font-size: 1rem; /* 16px */
    line-height: 1.5;
  }

  /* Hero */
.info-hero h2 {
  font-size: 1.2rem; /* 32px */
  margin-bottom: 0.3rem;
  text-align: left;
}
.info-hero p {
    font-size: 1rem; /* 16px */
    margin-bottom: 1.0rem;
    text-align: left;
  }
  /* Info Grid Cards */
.info-grid {
    
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
    gap: 1rem;
  }
  .info-card h3 {
    font-size: 1.2rem; /* 20px */
    margin-bottom: 0.5rem;
    text-align: left;
    

  }
  .info-card p {
    font-size: 1rem; /* 14.4px */
    text-align: left;
  }
  
  /* Use Cases */
  .use-cases h3 {
    font-size: 1.2rem; /* 19.2px */
    margin-bottom: 0.5rem;
    text-align: left;
  }
  .use-cases ul {
    padding-left: 1.25rem;
    font-size: 0.8rem;
  }
  .use-cases li {
    font-size: 1rem; /* 14.4px */
    margin-bottom: 0.3rem;
    text-align: left;
  }
  
 
  
  /* How to Convert */
  .conversion-howto h3 {
    font-size: 1.2rem; /* 17.6px */
    margin-bottom: 0.5rem;
    text-align: left;
  }
  .conversion-howto p {
    font-size: 1rem; /* 14.4px */
    text-align: left;
  }
  .conversion-howto h4 {
    font-size: 0.9rem; /* 16px */
    
    text-align: left;
  }
  /*── GENERAL PAGE LAYOUT ─────────────────────────────────────────────────────*/
  .page-wrapper {
    display: flex;
    grid-template-columns: 2fr 1fr;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    align-items: flex-start;
  }
  
  
  /* left column grows to fill available space */
  .main-content {
    flex: 1;
    max-width: 600px;
  }
  
  /* right column is a fixed sidebar */
  .sidebar {
    flex: 0 0 250px;
  }
  
  /* stack vertically on small screens */
  @media (max-width: 768px) {
    .page-wrapper {
      flex-direction: column;
    }
    
  }
  
  /*── OVERRIDES FOR THIS PAGE ─────────────────────────────────────────────────*/
  
  /* Make sure your converter container sits full-width of its column, remove the old scale */
  .converter-container {
    width: 100%;
    max-width: 600px;  /* or whatever feels right */
    transform: none;   /* kill the old scale transform */
  }
  
  /* Optional: shrink sidebar links font so it doesn’t steal focus */
  .sidebar a {
    font-size: 0.9rem;
  }
  /* style the box around your sidebar */
.sidebar{
     /* only as wide as the content, not 100% height */
  display: inline-block;
  width: auto;
  /* prevent this column from stretching vertically */
  align-self: flex-start;   
    background: #ffffff;          /* white background */
    border: 1px solid #ccc;       /* light grey border */
    border-radius: 6px;           /* rounded corners */
    padding: 1rem;                /* inner spacing */
    box-shadow: 0 2px 6px rgba(0,0,0,0.1); /* subtle shadow */
    max-width: 280px;             /* optional fixed width */
    margin-left: auto; 
    margin-top: 2.3rem; 
          /* align if using flex/grid */
  }
  
  /* optional: tighten up headings & list inside */
  .sidebar h3 {
    margin-top: 0;
    font-size: 1.1rem;
  }
  .sidebar.sidebar-section {
    margin-top: 1rem;
  }
  .sidebar .sidebar-section h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }
  .sidebar ul {
    list-style: disc inside;
    margin: 0;
    padding-left: 1rem;
  }
  .sidebar ul li {
    margin-bottom: 0.4rem;
  }
  /* Ad slot styling */
.ad-slot {
    width: 100%;               /* fill sidebar width */
    text-align: center;        /* center the ad */
    /*margin-bottom: 1.5rem;  */
    margin-bottom: 0;
    padding-bottom: 0;   /* space before your links */
  }
  
  /* if you know your ad dimensions, lock them down */
  .ad-slot ins.adsbygoogle {
    display: block !important;
    width: 300px !important;
    height: 250px !important;
  }
  /* make the ad slot only as tall as the ad and tuck it right above your links */
.sidebar .ad-slot {
    width: 100%;
    margin-bottom: 1rem;           /* small gap to the “More Converters” heading */
    background: #f9f9f9;            /* optional placeholder color */
    text-align: center;             /* center the ad unit */
    display: block;
  }
  /* Comparison Table */
  .comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
    border: 1px solid #555;
  }
  
  .comparison-table thead th {
    background-color: #111;
    color: #fff;
    text-align: left;
  }
  
  .comparison-table tbody tr:nth-child(even) td {
    background-color: #2a2a2a;
  }
  
  .comparison-table tbody tr:nth-child(odd) td {
    background-color: #1b1b1b;
  }
  
  .comparison-table td {
    color: #eee;
  }
  