/* Global styles */
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f9f8fc;
  color: #333;
}

/* Navigation */
header {
  background-color: #6a5acd;
  color: #fff;
  padding: 20px 40px;
}

nav a {
  color: #fff;
  margin-right: 20px;
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  text-decoration: underline;
}

/* Hero section */
.hero {
  position: relative;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  box-sizing: border-box;
}

.hero .overlay h1 {
  font-size: 3em;
  margin: 0;
}

.hero .overlay p {
  font-size: 1.3em;
  margin-top: 10px;
}

/* Sections */
.section {
  padding: 40px 60px;
  box-sizing: border-box;
}

.section h2 {
  margin-bottom: 20px;
  font-size: 2em;
  color: #6a5acd;
}

/* Cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.card {
  flex: 1;
  min-width: 280px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
  box-sizing: border-box;
}

.card h3 {
  color: #6a5acd;
  margin-top: 0;
}

.card a {
  display: inline-block;
  margin-top: 10px;
  color: #ff6f61;
  text-decoration: none;
  font-weight: 600;
}

.card a:hover {
  text-decoration: underline;
}

/* Lists */
.tips-list {
  list-style-type: disc;
  padding-left: 20px;
}

.tips-list li {
  margin-bottom: 10px;
}

.jokes-list {
  list-style-type: none;
  padding-left: 0;
}

.jokes-list li {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.jokes-list li:nth-child(odd) {
  background: #f2f0ff;
}

/* Call to action */
.cta {
  text-align: center;
}

.cta a {
  background: #ff6f61;
  color: #fff;
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta a:hover {
  background: #e85b51;
}

/* Footer */
footer {
  background: #6a5acd;
  color: #fff;
  padding: 20px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

footer p {
  margin: 5px 0;
}

footer a {
  color: #ffeefc;
  text-decoration: underline;
}

.footnotes {
  font-size: 0.8em;
  color: #e6e0f8;
  margin-top: 10px;
  text-align: center;
  max-width: 800px;
}