  /* Reset some default browser styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Color scheme */
:root {
  --primary-color: #0077cc;
  --secondary-color: #f0f4f8;
  --accent-color: #ffcc00;
  --text-color: #333;
  --background-color: #ffffff;
  --footer-bg: #e0e0e0;
}

/* General styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
}


/* Section styling */
section {
  padding: 30px 20px;
  background-color: var(--secondary-color);
  border-radius: 8px;
  margin: 20px 0;
}

section h2 {
  color: var(--text-color);
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 5px;
  margin-bottom: 10px;
}

section ul {
  list-style-type: none;
  padding-left: 0;
}

section ul li {
  margin-bottom: 8px;
}

section ul li a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

section ul li a:hover {
  text-decoration: underline;
}

/* Footer styling */
footer {
  background-color: var(--footer-bg);
  padding: 20px;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: var(--primary-color);
  margin-right: 10px;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Responsive styles */






/* Normalize navbar height across pages */
/* === Force navbar to match the reference (px, not rem) === */




/*--bdc*/
.card-3 {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.btn-2 a {
  display: inline-block;
  margin: 5px 0;
}

.dropdown {
  list-style: none;
}

@media (max-width: 768px) {
  header nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-3 {
    margin-bottom: 20px;
  }

  .btn-2 a, .dropdown a.btn {
    width: 100%;
    text-align: left;
  }

  .dropdown-menu {
    width: 100%;
  }
}

.calculator {
max-width: 400px;
margin: 20px auto;
padding: 20px;
background: #eaf2f8;
border: 2px solid #aed6f1;
border-radius: 12px;
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.calculator input#display {
width: 100%;
padding: 15px;
font-size: 1.4em;
text-align: right;
border: 2px solid #d6eaf8;
border-radius: 8px;
margin-bottom: 15px;
background-color: #fff;
}

.calculator .buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}

.calculator button {
padding: 15px;
font-size: 1.1em;
border: none;
border-radius: 8px;
background-color: #3498db;
color: white;
cursor: pointer;
transition: background 0.3s ease;
}

.calculator button:hover {
background-color: #2e86c1;
}


.title {
text-align: center;
color: #1f618d;
margin-bottom: 20px;
}

@media (max-width: 480px) {
.calculator {
  width: 95%;
  padding: 15px;
}

.calculator button {
  padding: 12px;
  font-size: 1em;
}
}
ul {
  list-style: none;
  padding: 0;
  
}
.dropdown {
  display: inline-block;
  margin: 5px 0;
  background-color: #333;
  color: #2e86c1;
  
}
.card-1{
  background-color: #f8f7f4;
  border-style: solid;
  border-radius: 10px;
  padding: 10px;
  width: 300px;
  border-color: rgb(255, 255, 255);
  height: 55vh;
  margin-left: 10px;

}
.btn-2{
  border-style: solid;
  border-radius: 10px;
  width: 250px;
  border-color: rgb(187, 168, 59);
  margin-left: 10px;
  margin-top: 10px;
  text-align: center;
}
.card-2{
  border-style: solid;
  border-radius: 10px;
  padding: 15px;
}
.card-3{
  border-style: solid;
  border-radius: 10px;
  padding: 15px;
  border-color: gold;
  margin-left: 10px;
}