/**
 * Publications – Single Publication Template Styles
 * Location: /wp-content/plugins/publications/assets/css/public-single.css
 * Version: 1.6.0
 */

.pp-publication-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #222;
}

.pp-left-col {
  flex: 0 0 35%;
  text-align: center;
}

.pp-left-col img {
  width: 100%;
  height: auto;
  max-width: 400px;
  border-radius: 5px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border:2px solid white;
}

.pp-download-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap; /* lubab mitmerealisuse */
  gap: 4px;        /* vahe märksõnade vahel */
  justify-content: center;
  align-items: center;
}

.pp-download-links a {
  display: inline-block;
  margin: 6px 5px;
  padding: 10px 18px;
  border-radius: 4px;
  background-color: #005ea2;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.pp-download-links a:hover {
  background-color: #003e73;
}

.pp-right-col {
  flex: 1;
  text-align: left;
}

.pp-right-col h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 30px;
}

.pp-date {
  font-size: 1rem;
  color: #777;
  margin-bottom: 20px;
  color: gray;
}

.pp-description {
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 24px;
  color: white;
}

.pp-keywords {
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap; /* lubab mitmerealisuse */
  gap: 4px;        /* vahe märksõnade vahel */
  align-items: center;
}

.pp-keywords strong {
  font-weight: 600;
  color: white;
}

.pp-keywords a {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 16px;
  background-color: #f8f8f8;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.pp-keywords a:hover {
  background-color: #e0ecf9;
  border-color: #b8d4f6;
  color: #005ea2;
}

@media (max-width: 900px) {
  .pp-publication-wrapper {
    flex-direction: column;
    padding: 20px 10px;
  }

  .pp-left-col {
    flex: 0 0 auto;
    width: 100%;
	text-align: center;
  }

  .pp-right-col {
    width: 100%;
    text-align: left;
  }

  .pp-left-col img {
    max-width: 100%;
    margin-bottom: 20px;
  }
}
