* {
    margin: 0;
}
body {
    font-family: Arial, sans-serif;
    background: #ffffff;
}
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #3b82f6;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.navbar .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #f0f4f7;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #f0f4f7;
  font-weight: 400;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #f0f4f7;
  transition: var(--transition);
}

.nav-menu a:hover {
  color: #f0f4f7;
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background:var(--accent-blue) ;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #f0f4f7;
  margin: 3px 0;
  transition: var(--transition);
}

.main-section{
    margin-top: 5rem;
    display: flex;
    justify-content:center;
    align-items:start;
    flex-direction: column;
    gap: 5vh;
}

.blog-area {
    width: 90%;
    padding: 30px;
    margin: 0 1rem 1rem 1rem;
    background: #f9f9f9;
    border-right: 1px solid #ddd;
}

.calculator-section {
    width: 60%;
    padding: 30px;
}

h1 {
    color: #003366;
}
.container {
    background: white;
    padding: 25px;
    border-radius: 10px;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}


label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}


.output-section {
    margin-top: 20px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
}


.desc {
    margin-bottom: 15px;
}

.result-box {
    width: 100%;
    background: #5a8f2b;
    color: white;
    padding: 15px;
    margin:10px 0 20px 0;
}

.result-box h2 {
    margin: 0 0 10px;
}

pre {
    background: white;
    color: black;
    padding: 10px;
}

.calculator {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f1f1f1;
    padding: 20px;
    margin-top: 20px;
}

.fraction {
    text-align: center;
}

.fraction input {
    width: 100px;
    padding: 6px;
    font-size: 16px;
    text-align: center;
}

hr {
    border: none;
    border-top: 2px solid black;
    margin: 4px 0;
}

select {
    font-size: 18px;
    padding: 5px;
}

.equals {
    font-size: 20px;
    font-weight: bold;
}

.buttons {
    margin-top: 15px;
}

button {
    margin-top: 15px;
    padding: 10px 18px;
    font-size: 16px;
    background: #5a8f2b;
    color: white;
    border: none;
    cursor: pointer;
}

button.clear {
    background: #999;
    margin-left: 10px;
}
@media (max-width: 768px) {
    .blog-area {
    width: 70%;
    padding: 1rem;
    background: #f9f9f9;
    border-right: 1px solid #ddd;
}
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -120%;
    width: 95%;
    text-align: center;
    background: #2a75ff;
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
}
.footer-bottom {
  background-color: #3b82f6;
  border-top: 1px solid rgba(245, 241, 235, 0.2);
  padding: 1rem 0 1rem 0;
  text-align: center;
}
.footer-bottom a {
  text-decoration: none;
  color: #f0f4f7;
  margin: 5px;
}
.footer-bottom a:hover {
  text-decoration: underline;
}

.footer-bottom p {
  color: #f0f4f7;
  margin:2px 0 2px 0;
  font-size: 0.9rem;
}

