body {
    max-width: 40em;
    margin: 1em auto;
    font: 1.2em/1.4 sans-serif;
    padding: 0 .5em;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
}

li {
    font-size: 0.7em;
    margin-bottom: 6px;
}

a {
    color: green;
}

::selection {
    background: yellow;
    color: inherit;
}

/* Timeline wrapper */
#timeline {
  position: relative;
  margin: 0px 20px;
  padding-left: 50px;
  border-left: 3px solid #ddd;
}

/* Each item */
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

/* Dots with logos */
.timeline-dot {
  position: absolute;
  left: -76px;
  top: 0;
  background: #fff;
  width: 50px;
  height: 50px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-dot img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* Content card */
.timeline-content {
    background: #fafafa;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.timeline-date {
  font-size: 0.6em;
  color: #777;
  margin-bottom: 5px;
}

.timeline-title {
  margin: 0;
  font-size: 1em;
  font-weight: bold;
}

.timeline-company {
  margin: 2px 0 10px 0;
  font-size: 0.7em;
  color: #444;
}

.timeline-description {
  margin: 0 0 10px 0;
  font-size: 0.8em;
  color: #333;
}

.timeline-skills {
  margin: 0 0 5px 0;
  font-size: 0.7em;
  color: #555;
}

.timeline-location {
  font-size: 0.6em;
  color: #999;
}


/* General for project cards */

/* Container for all project cards */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

/* Card wrapper */
.block-wrapper-link {
  text-decoration: none;
  color: inherit;
}

/* Card body */
.software-entry {
  position: relative;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.software_thumbnail_image {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

/* Text area */
.software-entry-name {
  padding: 12px 14px;
}

.software-entry-name h5 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
}

.software-entry-name .tagline {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #555;
}

.software-entry figure {
  margin: 0;
  padding: 0;
}


/* Team members (avatars) */
footer .members {
  display: flex;
  gap: 4px;
}

footer .members img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #ddd;
}

/* Counts (likes & comments) */
.counts {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  color: #666;
}

.counts .count {
  display: flex;
  align-items: center;
  gap: 4px;
}

.counts .highlight {
  color: #e74c3c;
}

/* Winner ribbon */
.diagonal-ribbon {
  position: absolute;
  top: 20px;
  left: -40px;
  width: 150px;
  transform: rotate(-45deg);
  background: #f9b233;
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 2;
}

.diagonal-ribbon span {
  display: block;
  letter-spacing: 1px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1000px;
    margin: auto;

}

.video-grid iframe {
    width: 100%;
    height: 160px;
    border-radius: 8px;
}