/* ===== Universal Selector ===== */
* {
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', Tahoma, sans-serif;
  color: #2b2b2b;
}

/* ===== Element Selectors ===== */
body {
  background: linear-gradient(135deg, #eef2f3, #dfe9f3);
  margin: 0;
  padding: 0;
}

/* ===== Layout Containers ===== */
header, nav, main, footer {
  margin: 20px auto;
  width: 90%;
  max-width: 1000px;
}

/* ===== Header ===== */
header {
  background: linear-gradient(120deg, #0066cc, #00a3cc);
  color: white;
  text-align: center;
  padding: 50px 20px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

header, header * {
  color: white !important;
}

header h1 {
  font-size: 2.4em;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

header p {
  font-size: 1.1em;
  margin: 4px 0;
}

header a {
  color: #eaf8ff;
  text-decoration: none;
  font-weight: 600;
}

header a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ===== Navigation ===== */
nav {
  background-color: #ffffffcc;
  border-radius: 12px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  padding: 10px 15px;
}

nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin: 10px 0;
}

nav ul li a {
  color: #004c99;
  background-color: #e9f3ff;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}

nav ul li a:hover {
  background-color: #004c99;
  color: white;
}

/* ===== Main Sections ===== */
main section {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 25px;
  margin-top: 25px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

h2 {
  color: #003366;
  border-bottom: 2px solid #00a3cc;
  padding-bottom: 6px;
  margin-bottom: 15px;
}

h3 {
  color: #0066cc;
}

p, li {
  line-height: 1.7;
  font-size: 1.05em;
}

ul {
  list-style-type: disc;
  margin-left: 25px;
}

/* ===== Table Styling ===== */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background-color: #fcfdff;
  border-radius: 10px;
  overflow: hidden;
}

caption {
  font-weight: bold;
  margin-bottom: 8px;
  color: #004c99;
}

th, td {
  border: 1px solid #d3d8e2;
  padding: 12px 24px;  /* nice horizontal spacing */
}

th {
  background-color: #eaf5ff;
  font-weight: 700;
  color: #003366;
}

/* ===== Form Styling ===== */
form {
  background-color: #f7faff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #cfd8e3;
}

label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
  color: #003366;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1em;
}

textarea {
  height: 120px;
  resize: vertical;
}

button {
  margin-top: 15px;
  background-color: #00a3cc;
  color: white;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease-in-out;
}

button:hover {
  background-color: #007fa3;
}

/* ===== Date ===== */
#currentDate {
  text-align: center;
  font-size: 0.95em;
  color: #555;
  margin: 10px 0;
  font-style: italic;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px;
  color: #555;
  background-color: #ffffffcc;
  border-top: 1px solid #ddd;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
}

/* ===== Pseudo-class Example ===== */
a:hover, button:hover {
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  header, main, nav, footer {
    width: 95%;
  }
}