:root {
  --bg-color: #ecebe4;
  --primary-color: #2d3a61;
  --secondary-color: #5f4fa1;
  --accent-color: #8c7fb8;
  --text-color: #333333;
  --light-text: #ffffff;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

/*
 * Header layout
 *
 * The header contains the company logo and the main navigation.  On larger screens
 * the elements are stacked vertically to prevent horizontal overflow of the
 * navigation menu.  This helps ensure that all navigation items remain
 * visible without being cut off on the right edge.  The nav is given
 * full width so its contents can wrap as needed.
 */
header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--light-text);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  min-height: 60px;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  height: 40px;
  margin-right: 10px;
}

header .logo h1 {
  font-size: 1.3rem;
  margin: 0;
}

/*
 * Navigation styles
 *
 * Make the nav occupy the full width of the header and allow its list items to
 * wrap on multiple lines.  Use flex‑start justification so items line up
 * naturally rather than spacing out across the width (which can force them
 * off the screen).  A small top margin separates the navigation from the logo.
 */
header nav {
  width: 100%;
  margin-top: 10px;
}

header nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
  padding: 0;
  position: relative;
}

/* Dropdown menu styles for quick tools */
.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: var(--primary-color);
  border-radius: 4px;
  padding: 10px;
  min-width: 200px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.dropdown-content a {
  display: block;
  padding: 8px 12px;
  color: var(--light-text);
  text-decoration: none;
  white-space: nowrap;
}

.dropdown-content a i {
  margin-right: 8px;
}

.dropdown-content a:hover {
  background-color: var(--secondary-color);
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Remove duplicate min-height rule for header.  The header's height is now
 * controlled in the main header declaration above to prevent redundant
 * definitions. */

header nav ul li a {
  color: var(--light-text);
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem; /* reduce font size further to fit menu items */
  /* allow wrapping within nav items when necessary */
  white-space: normal;
}

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

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 80px 20px;
  background-image: url('../assets/hero.png');
  background-size: cover;
  background-position: center;
  color: var(--light-text);
  text-align: center;
  min-height: 300px;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(45, 58, 97, 0.65);
  z-index: 0;
}

.hero * {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
}

.hero .cta {
  margin-top: 30px;
}

.hero .cta a {
  display: inline-block;
  margin: 10px;
  padding: 12px 24px;
  background-color: var(--secondary-color);
  color: var(--light-text);
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.hero .cta a:hover {
  background-color: var(--accent-color);
}

.section {
  padding: 60px 20px;
}

.section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.announcements {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.announcement-card {
  background-color: var(--light-text);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
  width: 300px;
}

.announcement-card h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.quick-link {
  background-color: var(--primary-color);
  color: var(--light-text);
  width: 200px;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s;
}

.quick-link:hover {
  background-color: var(--secondary-color);
}

.quick-link i {
  font-size: 2rem;
  margin-bottom: 10px;
}

.directory {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.employee-card {
  background-color: var(--light-text);
  width: 250px;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.employee-card i {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.employee-card h3 {
  margin-top: 0;
  color: var(--primary-color);
}

.policies-list {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
}

.policies-list li {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.policies-list li i {
  margin-right: 10px;
  color: var(--secondary-color);
}

.policies-list li a {
  color: var(--primary-color);
  text-decoration: none;
}

.policies-list li a:hover {
  text-decoration: underline;
}

.form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form label {
  font-weight: bold;
}

.form input,
.form select,
.form textarea {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form button {
  background-color: var(--secondary-color);
  color: var(--light-text);
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.form button:hover {
  background-color: var(--accent-color);
}

.schedule-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

.schedule-table th {
  background-color: var(--primary-color);
  color: var(--light-text);
}

.schedule-table tr:nth-child(even) {
  background-color: #f8f8f8;
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.benefit-card {
  background-color: var(--light-text);
  width: 280px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.benefit-card h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.support-info {
  list-style: none;
  padding: 0;
  max-width: 600px;
  margin: 0 auto;
  margin-bottom: 30px;
}

.support-info li {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.support-info li i {
  margin-right: 10px;
  color: var(--secondary-color);
}

footer {
  background-color: var(--primary-color);
  color: var(--light-text);
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

footer a {
  color: var(--light-text);
  text-decoration: underline;
}

/* Calendar embed styling */
.calendar-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.calendar-container iframe {
  width: 100%;
  max-width: 800px;
  height: 600px;
  border: 0;
}

/* Essential tools section */
.tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.tool-card {
  background-color: var(--primary-color);
  color: var(--light-text);
  width: 220px;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s;
}

.tool-card:hover {
  background-color: var(--secondary-color);
}

.tool-card i {
  font-size: 2rem;
  margin-bottom: 10px;
}
