/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background-color: #f6f7fb;
  color: #333;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

header {
  background-color: #2f2e41;
  color: #ffffff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

header .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  margin: 0;
  font-size: 28px;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

nav li {
  margin: 0;
}

nav a {
  color: #ffffff;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #5a5a8a;
}

.hero {
  background-image: url('images/header.png');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 120px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero h2 {
  font-size: 42px;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
}

.section {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.section h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: #2f2e41;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.grid-item {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.grid-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.grid-item h3 {
  margin: 10px;
  font-size: 20px;
  color: #2f2e41;
}

.grid-item p {
  margin: 0 10px 10px;
  font-size: 16px;
  color: #555;
}

.class-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.class-item {
  flex: 1 1 320px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.class-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.class-item h3 {
  margin-top: 0;
  color: #2f2e41;
}

.class-item ul {
  list-style: disc inside;
  padding-left: 20px;
  margin: 10px 0;
}

.class-item ul li {
  margin-bottom: 6px;
}

.instrument-page {
  width: 90%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 0;
}

.instrument-page img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.instrument-page h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #2f2e41;
}

.instrument-page .content {
  font-size: 18px;
  color: #444;
}

.instrument-page .content p {
  margin-bottom: 16px;
}

.instrument-page .info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 16px;
}

.instrument-page .info-table th,
.instrument-page .info-table td {
  padding: 8px 12px;
  border: 1px solid #ddd;
}

.instrument-page .info-table th {
  background-color: #f0f0f5;
  color: #2f2e41;
  text-align: left;
}

.references {
  font-size: 14px;
  margin-top: 30px;
  border-top: 1px solid #e0e0e0;
  padding-top: 10px;
}

.references p {
  margin: 4px 0;
}

.footer {
  background-color: #2f2e41;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 14px;
}