/* General Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #f5f7fa; /* Lighter background for better contrast */
  color: #333;
  line-height: 1.6;
}

/* Container - added padding to prevent content from hugging the edges */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Header */
header {
  background-color: #2c3e50; /* Deep blue-gray for a professional look */
  padding: 20px 0;
  color: #fff;
}

header h1 {
  font-size: 2rem;
  text-align: center;
}

nav {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

nav a {
  text-decoration: none;
  color: #ecf0f1;
  font-size: 1rem;
  padding: 10px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #e74c3c; /* Red color for hover for emphasis */
}

ul {
  padding: 15px;
}

/* Hero Section */
.hero {
  background: linear-gradient(45deg, #3498db, #9b59b6); /* Gradient with blue and purple */
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.2rem;
  margin-top: 10px;
}

/* Tool Cards */
.tools {
  margin-top: 40px;
  padding-bottom: 40px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.tool-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.tool-card h3 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.tool-card p {
  color: #7f8c8d;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow on hover */
}

/* Form and Input Styling */
section {
  background-color: #fff;
  padding: 20px;
  margin-bottom: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

label {
  display: block;
  font-size: 1rem;
  margin: 10px 0 5px;
  color: #7f8c8d;
}

input[type="number"], input[type="text"], input[type="date"] {
  width: 100%;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  color: #333;
  transition: all 0.3s ease;
  outline: none;
  box-sizing: border-box;
}

/* Input Focus Styles */
input:focus {
  border-color: #3498db;
  background-color: #fff;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

/* Button Styles */
button {
  background-color: #3498db; /* Bright blue */
  color: #fff;
  padding: 12px 20px;
  font-size: 1.1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2980b9; /* Darker blue on hover */
}

/* FAQs and Explanation Sections */
dl {
  margin-top: 20px;
}

dt {
  font-weight: bold;
  margin-top: 10px;
}

dd {
  margin-left: 20px;
  color: #7f8c8d;
}

/* Footer */
footer {
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 20px 0;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
}

footer nav {
  margin-top: 10px;
}

footer nav a {
  color: #ecf0f1;
  margin: 0 10px;
  text-decoration: none;
}

footer nav a:hover {
  color: #e74c3c; /* Red color for hover in the footer */
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
  header h1 {
    font-size: 1.5rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
  }

  nav {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    margin: 10px 0;
  }

  section {
    padding: 15px;
  }
}

@media screen and (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }

  nav a {
    font-size: 0.9rem;
  }

  .container {
    padding: 10px;
  }
}

/* Styling the Date Picker */
input[type="date"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 width=%2216%22 height=%2216%22%3E%3Cpath d=%22M5 8h14V6H5v2zm0 4h14v-2H5v2zm0 4h14v-2H5v2z%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
}

input[type="date"]:focus {
  border-color: #3498db;
  box-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
}

/* Hover Effects for Inputs */
input:hover {
  border-color: #3498db;
}

input[type="date"]:hover {
  background-color: #fff;
  border-color: #3498db;
}


