/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  line-height: 1.6;
  background: #f5f7fa;
  color: #333;
}

/* Header */
header {
  background: linear-gradient(90deg,#b71c1c, #0d47a1);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

header .logo {
  display: flex;
  align-items: center;
}

header .logo img {
  width: 50px;
  margin-right: 10px;
}

header nav a {
  color: white;
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}

header nav a:hover {
  text-decoration: underline;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 40px 20px;
  background: #e3f2fd;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.hero input {
  margin-top: 15px;
  padding: 10px;
  width: 80%;
  max-width: 500px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Materials Section */
.materials {
  padding: 30px 20px;
}

.materials h3 {
  text-align: center;
  margin-bottom: 20px;
}

.materials-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.material-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0px 2px 5px rgba(0,0,0,0.1);
  text-align: center;
}

.material-item h4 {
  color: #0d47a1;
  margin-bottom: 8px;
}

.material-item a {
  display: inline-block;
  margin-top: 10px;
  background: #b71c1c;
  color: white;
  padding: 8px 12px;
  border-radius: 5px;
  text-decoration: none;
}

.material-item a:hover {
  background: #0d47a1;
}

/* Footer */
footer {
  background: #0d47a1;
  color: white;
  text-align: center;
  padding: 15px 0;
  margin-top: 30px;
}

footer a {
  color: #ffeb3b;
}
