:root {
  --black: #1b1b1b;
  --red: #e60000;
  --grey: #727472;
  --white: #fff;
}

* {
  box-sizing: border-box;
  margin: 0px;
  padding: 0px;
  font-family: "Work Sans", sans-serif;
}

main {
  display: grid;
  grid-template-columns: 1fr min(100% - 40px, 64rem) 1fr;
  min-height: 100dvh;
}

main > section {
  grid-column: 2;
}

main > .kpo-ads:first-child {
  grid-column: span 3;
}

h1 {
  font-family: "Hind", sans-serif;
  font-size: 1.75rem;
  font-size: clamp(1.75rem, 1.6666666666666667rem + 0.4166666666666667vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

h2 {
  font-family: "Hind", sans-serif;
  font-size: 1.5rem;
  font-size: clamp(
    1.5rem,
    1.4166666666666667rem + 0.4166666666666667vw,
    1.75rem
  );
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

h3 {
  font-family: "Hind", sans-serif;
  font-size: 1.375rem;
  font-size: clamp(
    1.375rem,
    1.3333333333333333rem + 0.20833333333333334vw,
    1.5rem
  );
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

h4 {
  font-family: "Hind", sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

a {
  text-decoration: none;
  color: var(--black);
}

img {
  display: block;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1rem;

  @media screen and (width > 40rem) {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.bento-block {
  border-bottom: 5px solid var(--black);

  .block-excerpt {
    display: none;
    color: var(--white);
    padding-block: 0.75rem;
  }

  .block-btn {
    display: none;
  }
}

.bento-grid .bento-block {
  @media screen and (width > 40rem) {
    &:nth-child(2) {
      grid-column: span 2;
    }
  }

  &:nth-child(3) {
    background: var(--black);
    padding-inline: 10px;

    .block-img {
      display: none;
    }

    .block-title {
      color: var(--white);
    }

    .block-excerpt {
      display: block;
    }

    .block-btn {
      display: block;
      color: var(--grey);
      width: fit-content;
      padding: 0.75rem;
      font-size: 14px;

      &:hover {
        color: var(--white);
      }
    }
  }
}

.bento-container {
  &:has(h1) {
    margin-bottom: 4rem;
  }

  &:nth-child(even) {
    .bento-block:nth-child(3) {
      order: 3;
    }

    @media screen and (width > 40rem) {
      .bento-block:nth-child(1) {
        grid-column: span 2;
      }
      .bento-block:nth-child(2) {
        grid-column: span 1;
      }
    }
  }
}

.block-img {
  width: 100%;
  height: 20rem;

  img {
    height: 100%;
    border-bottom: 5px solid var(--red);
  }
}

.block-sub-info {
  padding: 1rem;
  display: flex;
  gap: 1.5rem;
  font-size: 14px;

  span {
    color: var(--grey);
  }
}

.block-title {
  font-weight: 500;
  font-size: 1.125rem;
  font-size: clamp(
    1.125rem,
    1.0416666666666667rem + 0.4166666666666667vw,
    1.375rem
  );
  line-height: 26px;
  padding-bottom: 0.5rem;
}

.detail-page {
  display: grid;
  gap: 2rem;
  margin-top: 1rem;

  @media screen and (width > 850px) {
    grid-template-columns: 1fr 300px;
  }

  .block-img {
    height: 15rem;
  }
}

.article-info {
  display: grid;
  gap: 0.25rem;
  margin-bottom: 1rem;

  > h1 {
    margin: 0;
  }
}

.social-wrapper {
  display: flex;
  gap: 1rem;
  align-items: center;

  > a {
    width: 25px;
    height: 25px;
  }
}

.social-author {
  display: flex;
  flex-flow: column;
  gap: 0.5rem;

  @media screen and (width > 1024px) {
    flex-flow: row;
  }
}

.post-block {
  line-height: 1.6;
  font-size: 21px;

  a {
    text-decoration: underline;
  }

  p {
    margin-bottom: 1rem;
  }

  ul {
    padding-left: 2rem;
    padding-bottom: 1rem;
  }
}

.video-embed > iframe,
.embed-wrapper > iframe {
  width: 100%;
}

.image-embed {
  width: fit-content;
  margin: 2rem auto;
  color: rgba(33, 37, 41, 0.5);
  font-size: 12px;
}

@media screen and (width > 800px) {
  .imgHeight {
    height: 650px;
  }

  .imgEqual {
    height: 650px;
    width: 650px;
  }

  .imgWidth {
    width: 700px;
  }
}

.related-block {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 2fr));
}

.recent-posts {
  display: grid;
  gap: 1rem;
}

.author-box {
  display: flex;
  gap: 1rem;
  margin-block: 1rem 2rem;
  align-items: center;
  flex-flow: column;

  @media screen and (width > 900px) {
    flex-flow: row;
  }
}

.author-info {
  display: flex;
  gap: 1rem;
  width: 100%;
  align-items: center;
}

.author-name > h2 {
  margin-bottom: 0;
}

.author-social {
  display: flex;
  gap: 0.25rem;

  > a {
    width: 30px;
    height: 30px;
  }
}

.author-img {
  width: 100px;
  height: 100px;

  > img {
    border: 4px solid var(--black);
    border-radius: 50%;
    height: 100%;
  }
}

/* navbar */

#nav-bar {
  height: 70px;
  display: flex;
  border-bottom: 5px var(--red) solid;
  padding: 0px 10vw;
  margin-bottom: 0.5rem;
  background-color: var(--black);
  color: #fff;
  align-items: center;
  grid-column: span 3;
}

.aside-btn {
  background-color: var(--black);
  color: var(--white);
  font-size: 25px;
  border: none;
  cursor: pointer;
}

.logo {
  margin: 0 auto;

  a {
    color: var(--main);
  }

  img {
    height: 50px;
    width: 200px;
  }

  h2 {
    margin: 0px;
  }
}

#nav-aside {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  background-color: var(--black);
  max-width: 360px;
  width: 100%;
  padding: 80px 20px;
  overflow-y: scroll;
  z-index: 99;
  -webkit-transform: translateX(-100%);
  -ms-transform: translateX(-100%);
  transform: translateX(-100%);
  -webkit-transition: 0.4s all cubic-bezier(0.77, 0, 0.18, 1);
  transition: 0.4s all cubic-bezier(0.77, 0, 0.18, 1);
}

#nav-aside.active {
  -webkit-transform: translateX(0%);
  -ms-transform: translateX(0%);
  transform: translateX(0%);
}

.nav-aside-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-aside-menu li a {
  display: block;
  padding: 15px 0px;
  color: var(--white);
  border-bottom: 1px solid #323335;
}

.nav-aside-menu li a:hover,
.nav-aside-menu li a:focus {
  color: var(--red);
}

.nav-aside-menu li.has-dropdown > a {
  cursor: pointer;
}

.nav-aside-menu li.has-dropdown > a:after {
  font-family: "FontAwesome";
  content: "\f0d7";
  float: right;
}

.nav-aside-menu li.has-dropdown > .dropdown {
  display: none;
  margin-left: 30px;
  border-left: 1px solid #323335;
}

.nav-aside-menu li.has-dropdown.active > .dropdown {
  display: block;
}

.nav-aside-menu li.has-dropdown > .dropdown a {
  padding: 15px;
}

.nav-close {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 10px;
  right: 15px;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.nav-close span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
}

.nav-close span:before,
.nav-close span:after {
  content: "";
  display: block;
  width: 30px;
  background-color: var(--red);
  height: 2px;
}

.nav-close span:before {
  -webkit-transform: translateY(0px) rotate(-135deg);
  -ms-transform: translateY(0px) rotate(-135deg);
  transform: translateY(0px) rotate(-135deg);
}

.nav-close span:after {
  -webkit-transform: translateY(-2px) rotate(135deg);
  -ms-transform: translateY(-2px) rotate(135deg);
  transform: translateY(-2px) rotate(135deg);
}

.nav-close button:hover {
  background-color: transparent;
}

#search-bar {
  grid-column: span 3;
  margin-bottom: 2rem;
}

.search-bar-wrapper {
  position: relative;
  top: 10px;
  margin: 0 auto;
  border: 2px solid #6665;
  display: flex;
  gap: 10px;
  place-content: center;
  width: fit-content;
  padding: 12px;
  border-radius: 10px;
}

.search-bar-wrapper input {
  border: none;
  outline: none;
  width: 60vw;
}

.hide-search {
  display: none;
}

/* footer */

footer {
  background-color: var(--black);
  border-top: 5px solid var(--red);
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr min(100% - 40px, 64rem) 1fr;

  > .footer-content {
    grid-column: 2;
  }
}

.footer-content {
  display: block;
  padding-block: 1rem;
  color: var(--white);

  @media screen and (width > 900px) {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr 1fr;
  }

  a,
  a:hover {
    color: var(--white);
  }
}

.footer-link {
  list-style: none;
  display: flex;
  flex-flow: column;
  gap: 0.5rem;
  padding: 0;
  margin-bottom: 2rem;
}

.footer-social-links {
  display: flex;
  flex-flow: column;

  img {
    width: 45px;
    height: 45px;
  }
}

.footer-info {
  margin-bottom: 2rem;

  > img {
    width: 300px;
    margin-bottom: 0.5rem;
  }
}

.footer-label {
  display: block;
  padding-bottom: 5px;
  margin-bottom: 0.75rem;
  position: relative;
  font-size: 20px;
  font-weight: 600;
}

.footer-label::after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 50%;
  height: 3px;
  background-color: var(--white);
  left: 0;
}

.footer-social-item {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

/* MV CSS  */
@media only screen and (max-width: 359px) {
  .instagram-media {
    min-width: unset !important;
  }

  .tiktok-embed {
    width: 320px !important;
    margin-left: -10px !important;
  }
}
/* // @media only screen and (min-width: 770px) { */
/* //     #detail { */
/* //         grid-template-columns: minmax(350px,auto) 300px!important; */
/* //     } */
/**/
/* //     .imgHeight, .imgWidth { */
/* //         max-width: 100% !important; */
/* //         height: auto !important; */
/* //     } */
/* // } */
/* // End MV CSS  */