
/* Main container wrapper */
main {
  color: white;
  margin: 0 auto;
  width: 90%;

  display: grid;
  grid-auto-rows: auto;

  gap: 16px;
  margin-bottom: 20px;
}

@media screen and (min-width: 1024px) {
  main {
    display: grid;
    grid-template-columns: 20fr 80fr;
  }
}

.main-container-title {
  color: white;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: underline;
  margin-bottom: 22px;
}

@media screen and (min-width: 640px) {
  .main-container-title {
    font-size: 24px;
  }
}

@media screen and (min-width: 1440px) {
  .main-container-title {
    font-size: 36px;
  }
}

/* Sidebar Details */
.sidebar {
  height: fit-content;
  padding: 22px;
  position: static;
  order: 2;
  top: 92px;
  margin-bottom: 50px;
}

@media screen and (min-width: 1024px) {
  .sidebar {
    position: sticky;
    order: 0;
  }
}

.sidebar hr {
  margin: 12px 0 12px 0;
}

.info-title {
  font-size: 20px;
  font-weight: 500;
  text-decoration: underline;
  margin-bottom: 12px;
}

@media screen and (min-width: 640px) {
  .info-title {
    font-size: 24px;
  }
}

@media screen and (min-width: 1440px) {
  .info-title {
    font-size: 36px;
  }
}

.info-desc {
  font-size: 11px;
}

@media screen and (min-width: 1440px) {
  .info-desc {
    font-size: 16px;
  }
}

.contact-title {
  font-size: 18px;
  font-weight: 500;
  text-decoration: underline;
  margin-bottom: 16px;
}

@media screen and (min-width: 768px) {
  .contact-title {
    font-size: 22px;
  }
}

@media screen and (min-width: 1440px) {
  .contact-title {
    font-size: 32px;
  }
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  flex-direction: row;
  gap: 12px;
}

.contact-list a img {
  transition: transform 0.2s;
  transform: scale(1);
  width: 30px;
  height: 30px;
}

.contact-list a img:hover {
  transform: scale(1.05);
}

/* Carousel */
#highlight-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  box-sizing: border-box;
  border: 4px solid #ffffff40;
}

#highlight {
  display: flex;
  height: 60vh;
  background-color: gray;

  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

#highlight .slide {
  min-width: 100%;
  min-height: auto;
  overflow: clip;
  scroll-snap-align: start;
}

/*Recent blog posts section */
.recent-blogs {
  padding: 26px;
  height: fit-content;
}

@media screen and (min-width: 1024px) {
  .recent-blogs {
    margin-bottom: 50px;
  }
}

/* Recent blog posts */
.recent-blogs-entry-container {
  display: grid;
  grid-template-rows: auto;
  grid-template-columns: none;
  gap: 8px;
  align-content: stretch;
  margin-bottom: 20px;
  min-height: 240px;
}

@media screen and (min-width: 640px) {
  .recent-blogs-entry-container {
    grid-template-rows: none;
    grid-template-columns: 30fr 30fr 30fr 10fr;
    gap: 12px;
    min-height: auto;
  }
}

@media screen and (min-width: 1440px) {
  .recent-blogs-entry-container {
    gap: 20px;
  }
}

.recent-blogs-entry {
  background-color: black;
  padding: 8px 14px 12px 14px;
  position: relative;

  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: start;
  align-content: stretch;
  gap: 4px;

  aspect-ratio: none;
  text-decoration: none;
  color: white;

  transition: transform 0.2s;
  &:hover {
    cursor: pointer;
    transform: scale(1.02);
  }
}

@media screen and (min-width: 640px) {
  .recent-blogs-entry {
    aspect-ratio: 1 / 1;
  }
}

.recent-blogs-entry img {
  background-color: black;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recent-blogs-entry .gradient-overlay {
  box-sizing: border-box;
  border: 2px solid #ffffffff;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 1) 100%
  );
  object-fit: cover;
}

.recent-blogs-entry .recent-blogs-details {
  z-index: 1;
}

.recent-blogs-details .title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

@media screen and (min-width: 1440px) {
  .recent-blogs-details .title {
    font-size: 32px;
  }
}

.recent-blogs-details .date {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
}

@media screen and (min-width: 1440px) {
  .recent-blogs-details .date {
    font-size: 14px;
  }
}

.recent-blogs-details .desc {
  font-size: 8px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  overflow: hidden;
}

@media screen and (min-width: 1440px) {
  .recent-blogs-details .desc {
    font-size: 14px;
  }
}

