body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f6f4fb;
  color: #2d2738;
}

.topbar-message {
  background: #2d2738;
  color: white;
  text-align: center;
  padding: 14px;
  font-size: 14px;
  letter-spacing: 0.5px;
}

.navbar {
  height: 90px;
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-right {
  justify-content: flex-end;
}

.logo {
  font-size: 42px;
  font-weight: 700;
  text-decoration: none;
  color: #2d2738;
}

.navbar a,
.dropbtn {
  text-decoration: none;
  color: #2d2738;
  font-weight: 500;
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

.dropdown {
  position: relative;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 35px;
  left: 0;
  background: white;
  min-width: 180px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 20;
}

.dropdown-content a {
  display: block;
  padding: 14px 18px;
}

.dropdown-content a:hover {
  background: #f5f3fa;
}

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

.container {
  width: 90%;
  max-width: 1100px;
  margin: 40px auto;
}

.search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 15px;
}

button {
  background: #333;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

.filters {
  display: flex;
  gap: 14px;
  margin: 20px 0;
}

.filters select {
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
  background: white;
}

.filters button {
  padding: 10px 16px;
  border-radius: 8px;
  background: #333;
  color: white;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 30px;
}

.card {
  position: relative;
  background: white;
  border-radius: 14px;
  height: 380px;
  padding: 18px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

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

.card h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

.card p,
.card pre {
  font-size: 14px;
  margin: 3px 0;
  color: #444;
}

.card pre {
  white-space: pre-wrap;
  max-height: 120px;
  overflow: auto;
}

.heart-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 26px;
  transition: transform 0.15s ease;
}

.heart-btn:hover {
  transform: scale(1.12);
}

.heart-empty {
  color: #bbb;
}

.heart-filled {
  color: #ff4d6d;
}

.hero {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #e9e6f7;
  text-align: center;
  padding: 40px;
}

.hero h1 {
  font-size: 72px;
  margin-bottom: 10px;
  color: #2d2738;
}

.hero p {
  font-size: 26px;
  color: #5e5871;
  margin-bottom: 50px;
  max-width: 700px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero-buttons button {
  background: #2d2738;
  color: white;
  border: none;
  padding: 18px 34px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s ease;
}

.hero-buttons button:hover {
  transform: translateY(-2px);
}

.card-media {
  height: 180px;
  background: #d8d4e8;
  border-radius: 12px;
  margin-bottom: 16px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: bold;
  color: #5e5871;
  font-size: 20px;
}

.profile-card {
  background: white;
  max-width: 500px;
  margin: 80px auto;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.profile-card h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.profile-card p {
  color: #666;
  margin-bottom: 30px;
}

.profile-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

form input,
form select,
form textarea {
  box-sizing: border-box;
  width: 100%;
}

.card-clickable {
  cursor: pointer;
}

.preview-text {
  margin-top: 10px;
  color: #666;
}

.detail-card {
  background: white;
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-header h1 {
  margin: 0;
}

.detail-meta {
  display: flex;
  gap: 30px;
  margin: 20px 0;
}

.instructions-box {
  margin-top: 30px;
  background: #f5f3fa;
  padding: 20px;
  border-radius: 12px;
}

.instructions-box pre {
  white-space: pre-wrap;
  font-size: 16px;
  line-height: 1.6;
}
