/* General Body and Font Styles */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background-color: #fff;
  color: #212121;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Header */
header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 24px 0;
  /* border-bottom: 1px solid #eaeaea; */
  margin-bottom: 48px;
}
.heading {
  font-size: larger;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
    "Lucida Sans", Arial, sans-serif;
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 1rem;
}
.logo-link {
  display: inline-block;
}

.logo-placeholder {
  width: 40px;
  height: 40px;
  background-color: #ebebeb;
  position: relative;
  /* transform: rotate(30deg) skewX(-25deg) scale(0.85); */
  transition: transform 0.2s ease-in-out;
}

/* Main Content */
main h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 32px;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Card Styles */
.card-link {
  display: block;
}

.card {
  background-color: #f8f9fa;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-link:hover .card {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.card-image-placeholder {
  height: 180px;
  background-color: #e0e0e0; /* Fallback color */
  background-size: cover;
  background-position: center;
}
.card-content {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 16px 0;
  line-height: 1.4;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto; /* Pushes tags to the bottom */
}

.tags span {
  background-color: #e9ecef;
  padding: 6px 14px;
  border-radius: 99px; /* Pill shape */
  font-size: 0.8rem;
  font-weight: 500;
  color: #495057;
}

/* Info Card Styles */
.info-card {
  background-color: #fff;
  border: 2px dotted #eaeaea;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  box-shadow: none;
}

.card-link:hover .info-card {
  transform: none;
  box-shadow: none;
  border-color: #cfcfcf;
}

.info-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.6;
  margin: 0;
}

/* Footer */
footer {
  padding: 64px 0;
  margin-top: 64px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-info p {
  margin: 0 0 12px 0;
  font-size: 0.9rem;
  color: #495057;
}

.buy-coffee-btn {
  display: inline-block;
  background-color: #f8f9fa;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  color: #343a40;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

.buy-coffee-btn:hover {
  background-color: #e9ecef;
}

.footer-right {
  display: flex;
  gap: 64px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links,
.nav-links a {
  text-decoration: none;
  color: #6c757d;
  font-size: 0.9rem;
  font-weight: 500;
}

.footer-links a:hover,
.nav-links a:hover {
  text-decoration: underline;
  color: #212121;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
  .grid-container {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    gap: 40px;
  }

  .footer-right {
    width: 100%;
    justify-content: space-between;
    gap: 20px;
  }
}
