@import url("./common.css");
@import url("./nav.css");

main {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
}

.full-width {
  grid-column: 1 / -1;
}
.box {
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.box:hover {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.box .title {
  display: flex;
  height: 60px;
}

.box .title h2 {
  background: #a61907;
  line-height: 60px;
  width: 180px;
  text-align: center;
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
}

.box .title .link {
  background: #e5e5e5;
  display: flex;
  flex-direction: row-reverse;
  flex-grow: 1;
}

.box .title .link a {
  width: 90px;
  padding-right: 5px;
  height: 100%;
  text-align: center;
  line-height: 60px;
  font-size: 1rem;
  color: #8b8b8b;
}

.box .content {
  padding: 15px;
  flex-grow: 1;
}

.box .content li {
  list-style: none;
  cursor: pointer;
}

#tpc-img {
  width: 100%;
  min-height: 300px;
}

#application ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
}

#awards ul,
#support ul,
#example ul {
  display: grid;
  grid-template-columns: repeat(1fr);
  gap: 10px;
}

video {
  width: 100%;
  min-height: 370px;
  height: auto;
}

img {
  width: 100%;
  height: auto;
}

.button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background-color: #e5e5e55b;
  color: #333;
  text-decoration: none;
  transition: all 0.4s ease;
}

.button:visited,
.button:active {
  color: #333;
}

.button:hover {
  color: #a61907;
}

@media (max-width: 768px) {
  main {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
  }
  video {
    min-height: 180px;
  }
  #tpc-img {
    min-height: 110px;
  }
}
