/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #222;
  line-height: 1.7;
  padding: 20px;
  max-width: 850px;
  margin: auto;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 20px 0;
}

/* Header & Navigation */
header {
  background-color: #eaf4ff;
  padding: 15px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #d3e0ea;
}

nav {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: #0077cc;
  font-weight: 600;
  transition: color 0.2s ease;
}

nav a:hover {
  color: #005fa3;
}

/* Article Container */
.article-container {
  padding: 20px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.03);
}

/* Headings */
h1 {
  font-size: 2em;
  color: #111;
  margin-bottom: 10px;
}

h2 {
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #333;
}

h3 {
  font-size: 1.2em;
  margin-top: 20px;
  color: #444;
}

/* Paragraphs & Lists */
p, li {
  font-size: 1.05em;
  margin: 10px 0;
}

ul {
  list-style-type: disc;
  padding-left: 20px;
}

/* Highlight Sections */
.common-mistakes,
.faq-section,
.related-articles,
.product-recommendations,
.conclusion {
  background-color: #f9f9f9;
  border-left: 4px solid #51a105;
  padding: 20px;
  margin: 30px 0;
  border-radius: 10px;
}

/* Author */
.author {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 20px;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 0.9em;
  color: #777;
  border-top: 1px solid #eee;
}

footer nav {
  margin-top: 10px;
}

footer a {
  color: #0077cc;
  text-decoration: none;
  margin: 0 10px;
  transition: color 0.2s ease;
}

footer a:hover {
  text-decoration: underline;
  color: #005fa3;
}

/* Responsive Design */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }

  body {
    padding: 15px;
  }
}

/* CTA Buttons */
.cta-button,
.cta-button2 {
  display: inline-block;
  background-color: #51a105;
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  margin-top: 20px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover,
.cta-button2:hover {
  background-color: #3e8c03;
  transform: translateY(-2px);
}

/* FAQ Accordion */
.faq-section {
  margin: 40px 0;
}

.faq-question {
  background-color: #f1f1f1;
  color: #222;
  padding: 15px 20px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  border-radius: 6px;
  margin-bottom: 5px;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: #e6e6e6;
}

.faq-answer {
  display: none;
  padding: 15px 20px;
  background-color: #fff;
  border-left: 4px solid #6d6d6d;
  border-radius: 0 0 6px 6px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question[aria-expanded="true"] + .faq-answer {
  display: block;
}

.arrow {
  transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .arrow {
  transform: rotate(90deg);
}
.table-of-contents ul li a.active {
  color: #51a105;
  font-weight: bold;
  border-left: 4px solid #51a105;
  padding-left: 6px;
  background-color: #f0fdf4;
  border-radius: 4px;
}
h2[id] {
  scroll-margin-top: 100px;
}
html {
  scroll-behavior: smooth;
}
/* Calculator Container */
.calculator-box {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Heading */
.calculator-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #333;
}

/* Form Labels */
.calculator-box label {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #444;
}

/* Inputs and Selects */
.calculator-box input[type="time"],
.calculator-box select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
}

/* Button */
.calculator-box button {
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  background-color: #3b82f6;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.calculator-box button:hover {
  background-color: #2563eb;
}

/* Result */
#result {
  background-color: #e6f4ff;
  border: 1px solid #b6dfff;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  color: #0a3c6e;
  font-size: 1rem;
}

