.tema21-embed-post {
  margin: 1em 0;
  border: 1px solid #050d2d1a;
  background: #ffffff;
  border-radius: 4px;
}

/* Horizontal layout */
.tema21-embed-post-horizontal .tema21-embed-post-inner {
  padding: 16px 24px 24px;
}

.tema21-embed-post-horizontal .tema21-embed-post-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.tema21-embed-post-horizontal .tema21-embed-post-category a {
  font-size: 10px;
  line-height: 100%;
  color: #050d2d;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid #050d2d;
  padding: 4px 8px;
  text-decoration: none;
  display: flex;
}

.tema21-embed-post-horizontal .tema21-embed-post-category a:hover {
  background: #050d2d;
  color: #ffffff;
}

.tema21-embed-post-horizontal .tema21-embed-post-main-row {
  display: flex;
  gap: 20px;
}

.tema21-embed-post-horizontal .tema21-embed-post-image {
  flex: 0 0 291px;
  max-width: 291px;
}

.tema21-embed-post-horizontal .tema21-embed-post-image img {
  width: 100%;
  height: auto;
  display: block;
}

@media screen and (max-width: 990px) {
  .tema21-embed-post-horizontal .tema21-embed-post-main-row {
    flex-direction: column;
  }
  .tema21-embed-post-horizontal .tema21-embed-post-image {
    flex: 0 0 auto;
    max-width: 100%;
  }
}

.tema21-embed-post-horizontal .tema21-embed-post-content {
  flex: 1;
  min-width: 0;
}

.tema21-embed-post-horizontal .tema21-embed-post-title {
  margin: 0 0 8px 0;
  display: block;
  color: #050d2d;
  text-decoration: none !important;
  font-size: 20px;
  font-weight: 600;
}

.tema21-embed-post-horizontal .tema21-embed-post-title:hover {
  text-decoration: underline !important;
}

.tema21-embed-post-horizontal .tema21-embed-post-meta-row {
  display: flex;
  gap: 15px;
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.tema21-embed-post-horizontal .tema21-embed-post-author {
  line-height: normal;
}
.tema21-embed-post-horizontal .tema21-embed-post-author a {
  color: #050d2d;
  font-size: 12px;
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;
}

.tema21-embed-post-horizontal .tema21-embed-post-author a:nth-last-of-type(1) {
  margin-right: 16px;
}

.tema21-embed-post-horizontal .tema21-embed-post-author a:hover {
  text-decoration: underline;
}

.tema21-embed-post-horizontal .tema21-embed-post-date {
  color: #a1a0a5;
  font-size: 10px;
  font-weight: 500;
}

.fa-clock-o {
  margin-right: 4px;
}

.fa-clock-o:before {
  content: "\f017";
}

.tema21-embed-post-horizontal .tema21-embed-post-tags {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tema21-embed-post-horizontal .tema21-embed-post-tags a {
  font-size: 10px;
  color: #050d2d;
  font-weight: 700;
  border: 1px solid #050d2d;
  text-decoration: none;
  padding: 0 8px;
}

.tema21-embed-post-horizontal .tema21-embed-post-tags a:hover {
  background: #050d2d;
  color: #ffffff;
}

.tema21-embed-post-horizontal .tema21-embed-post-excerpt {
  font-size: 14px;
  line-height: 20px;
  color: #050D2D;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3em;
}

/* Vertical layout */
.tema21-embed-post-vertical .tema21-embed-post-inner {
  padding: 32px 24px 16px;
  display: flex;
  flex-direction: column;
}

.tema21-embed-post-vertical .tema21-embed-post-image {
  margin-bottom: 24px;
  width: 100%;
}

.tema21-embed-post-vertical .tema21-embed-post-image img {
  width: 100%;
  height: auto;
  display: block;
}

.tema21-embed-post-vertical .tema21-embed-post-title {
  margin: 0 0 24px 0;
  font-size: 20px;
  color: #050D2D;
  text-decoration: none !important;
}

.tema21-embed-post-vertical .tema21-embed-post-title:hover {
  text-decoration: underline !important;
}

.tema21-embed-post-vertical .tema21-embed-post-excerpt {
  font-size: 14px;
  color: #050D2D;
  font-weight: 400;
  margin-bottom: 24px;
}

.tema21-embed-post .tema21-embed-post-button {
    display: flex;
}

.tema21-embed-post .tema21-embed-post-button a:before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE4IDMuNTk5NjFDMTkuMzIzNyAzLjU5OTYxIDIwLjQgNC42NzU4NiAyMC40IDUuOTk5NjFWMTcuOTk5NkMyMC40IDE5LjMyMzQgMTkuMzIzNyAyMC4zOTk2IDE4IDIwLjM5OTZINS45OTk5OEM0LjY3NjIzIDIwLjM5OTYgMy41OTk5OCAxOS4zMjM0IDMuNTk5OTggMTcuOTk5NlY1Ljk5OTYxQzMuNTk5OTggNC42NzU4NiA0LjY3NjIzIDMuNTk5NjEgNS45OTk5OCAzLjU5OTYxSDE4Wk0xMy44IDEzLjQ5OTZDMTMuOCAxMy45OTg0IDE0LjIwMTIgMTQuMzk5NiAxNC43IDE0LjM5OTZDMTUuMTk4NyAxNC4zOTk2IDE1LjYgMTMuOTk4NCAxNS42IDEzLjQ5OTZWOS4yOTk2MUMxNS42IDguODAwODYgMTUuMTk4NyA4LjM5OTYxIDE0LjcgOC4zOTk2MUgxMC41QzEwLjAwMTIgOC4zOTk2MSA5LjU5OTk4IDguODAwODYgOS41OTk5OCA5LjI5OTYxQzkuNTk5OTggOS43OTgzNiAxMC4wMDEyIDEwLjE5OTYgMTAuNSAxMC4xOTk2SDEyLjUyODdMOC42NjYyMyAxNC4wNjIxQzguMzEzNzMgMTQuNDE0NiA4LjMxMzczIDE0Ljk4NDYgOC42NjYyMyAxNS4zMzM0QzkuMDE4NzMgMTUuNjgyMSA5LjU4ODczIDE1LjY4NTkgOS45Mzc0OCAxNS4zMzM0TDEzLjggMTEuNDcwOVYxMy40OTk2WiIgZmlsbD0iYmxhY2siLz4KPC9zdmc+");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Button common */
.tema21-embed-post .button {
  font-size: 14px;
  font-weight: 700;
  color: #050d2d;
  background: transparent !important;
  text-decoration: none !important;
  text-transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.tema21-embed-post .button:hover {
  text-decoration: underline !important;
  box-shadow: none !important;
}

/* Responsive fallback */
@media (max-width: 768px) {
  .tema21-embed-post-horizontal .tema21-embed-post-main-row {
    flex-direction: column;
  }
  .tema21-embed-post-horizontal .tema21-embed-post-image {
    flex: 0 0 auto;
    max-width: 100%;
    margin-bottom: 15px;
  }
}
