/* blog listing: category nav, featured post, post grid (theme parts: home.php / archive.php) */
.blog_nav {
  padding: 4.4rem 0 0;
}
.blog_nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.55rem;
}
.blog_nav a {
  display: block;
  min-width: 20rem;
  padding: 0 2.4rem;
  text-align: center;
  color: var(--title);
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 5.4rem;
  white-space: nowrap;
  border-radius: 10rem;
  border: 1px solid #e3e8f2;
  background-color: #fff;
  transition: all 0.3s;
}
.blog_nav a:hover {
  color: var(--primary);
  border-color: var(--primary);
}
.blog_nav li.active a {
  color: #fff;
  border-color: var(--primary);
  background-color: var(--primary);
}

/* post card (shared by featured + grid) */
.post_card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid #ebeef3;
  background-color: #fff;
  transition: all 0.3s;
}
.post_card .img {
  flex-shrink: 0;
  height: 28.3rem;
  border-radius: 1.2rem;
}
.post_card .info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 3.1rem 3rem 2.8rem;
}
.post_card .meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.4rem;
  font-family: 'Archivo', sans-serif;
  font-size: 1.6rem;
  line-height: 2rem;
  text-transform: uppercase;
}
.post_card .meta .cat {
  color: var(--blue);
  font-weight: 600;
}
.post_card .meta .date {
  color: #4f4f4f;
  letter-spacing: 0.03em;
}
.post_card .title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: #0a0a0a;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 2.4rem;
  line-height: 3.2rem;
  margin-top: 1.1rem;
  transition: all 0.3s;
  max-width: 36rem;
}
.post_card .desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  color: var(--text);
  font-size: 1.8rem;
  line-height: 2.8rem;
  margin-top: 2.2rem;
}
.post_card .link {
  margin-top: auto;
  padding-top: 3.8rem;
}
.post_card:hover {
  border-color: #fff;
  box-shadow: 0 2rem 4rem rgba(23, 42, 133, 0.08);
}
.post_card:hover .img img {
  transform: scale(1.04);
}
.post_card:hover .title {
  color: var(--primary);
}
.post_card:hover .btn_i {
  color: var(--secondary);
}
.post_card:hover .btn_i::after {
  transform: translateX(30%);
}

.blog_featured {
  padding: 15.3rem 0 0;
}
.blog_featured .post_card.big {
  margin-top: 6.1rem;
  flex-direction: row;
  height: auto;
  min-height: 47.8rem;
  border-radius: 2rem;
  border-color: #e4e4e7;
  box-shadow: 0 2rem 4rem rgba(208, 211, 221, 0.45);
}
.blog_featured .post_card.big .img {
  width: 51.76%;
  height: auto;
  min-height: 47.6rem;
  border-radius: 2rem;
}
.blog_featured .post_card.big .info {
  padding: 6.4rem 7rem 4.2rem 9.8rem;
}
.blog_featured .post_card.big .title {
  -webkit-line-clamp: 3;
  max-width: none;
  font-size: 3.2rem;
  line-height: 4.4rem;
  margin-top: 1.6rem;
}
.blog_featured .post_card.big .desc {
  -webkit-line-clamp: 4;
  max-width: 49.8rem;
  margin-top: 2.5rem;
}
.blog_featured .post_card.big .link {
  padding-top: 6.8rem;
}
.blog_featured .post_card.big:hover {
  border-color: #e4e4e7;
  box-shadow: 0 2rem 4rem rgba(23, 42, 133, 0.12);
}

.blog_list {
  padding: 15.2rem 0 15.8rem;
}
.blog_list .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.95rem 2.98rem;
  margin-top: 6rem;
}
.blog_list .container li.hide {
  display: none;
}
.blog_list .more {
  text-align: center;
  margin-top: 4.5rem;
}
.blog_list .more .btn {
  padding: 0 3rem 0 4.2rem;
}
.blog_list .more.hide {
  display: none;
}
.blog_list .empty {
  display: none;
  color: var(--text);
  font-size: 1.8rem;
  text-align: center;
  padding: 6rem 0 2rem;
}
.blog_list .empty.show {
  display: block;
}

@media screen and (min-width: 769px) and (max-width: 1220px) {
  .blog_featured .post_card.big .info {
    padding: 4.8rem 5rem 4rem 6rem;
  }
  .post_card .info {
    padding: 2.6rem 2.4rem 2.6rem;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .blog_nav a {
    min-width: 16rem;
  }
  .blog_featured .post_card.big .title {
    font-size: 2.8rem;
    line-height: 1.35;
  }
  .blog_list .container {
    grid-template-columns: repeat(2, 1fr);
  }
  .post_card .img {
    height: auto;
    aspect-ratio: 440 / 283;
  }
}
@media screen and (min-width: 769px) and (max-width: 896px) {
  .blog_featured .post_card.big {
    flex-direction: column;
  }
  .blog_featured .post_card.big .img {
    width: 100%;
    min-height: 0;
    aspect-ratio: 714 / 476;
    border-radius: 2rem 2rem 0 0;
  }
}
@media screen and (max-width: 768px) {
  .blog_nav {
    padding-top: 24px;
  }
  .blog_nav ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    margin: 0 -20px;
    padding: 0 20px 4px;
    scrollbar-width: none;
  }
  .blog_nav ul::-webkit-scrollbar {
    display: none;
  }
  .blog_nav a {
    min-width: 0;
    font-size: 14px;
    line-height: 38px;
    padding: 0 18px;
  }
  .post_card {
    border-radius: 12px;
  }
  .post_card .img {
    height: auto;
    aspect-ratio: 440 / 283;
    border-radius: 12px;
  }
  .post_card .info {
    padding: 18px 18px 20px;
  }
  .post_card .meta {
    font-size: 12px;
    line-height: 18px;
    gap: 4px 10px;
  }
  .post_card .title {
    font-size: 18px;
    max-width: none;
    line-height: 1.4;
    margin-top: 8px;
  }
  .post_card .desc {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
  }
  .post_card .link {
    padding-top: 18px;
  }
  .blog_featured {
    padding-top: 50px;
  }
  .blog_featured .post_card.big {
    flex-direction: column;
    min-height: 0;
    margin-top: 24px;
    border-radius: 12px;
  }
  .blog_featured .post_card.big .img {
    width: 100%;
    min-height: 0;
    aspect-ratio: 714 / 476;
    border-radius: 12px 12px 0 0;
  }
  .blog_featured .post_card.big .info {
    padding: 20px 18px 22px;
  }
  .blog_featured .post_card.big .title {
    font-size: 20px;
    line-height: 1.35;
    margin-top: 8px;
  }
  .blog_featured .post_card.big .desc {
    margin-top: 10px;
  }
  .blog_featured .post_card.big .link {
    padding-top: 20px;
  }
  .blog_list {
    padding: 50px 0 60px;
  }
  .blog_list .container {
    grid-template-columns: repeat(auto-fill,minmax(min(250px,100%),1fr));
    gap: 30px 16px;
    margin-top: 24px;
  }
  .blog_list .more {
    margin-top: 30px;
  }
  .blog_list .more .btn {
    padding: 0 20px;
  }
}
.blog_banner {
  overflow: hidden;
  background-color: var(--dark);
}
.blog_banner > img {
  left: auto;
  right: 0px;
  top: -1.6rem;
  width: 98.3%;
  height: calc(100% + 1.6rem);
  object-position: center top;
}
.blog_banner::before {
  content: "";
  position: absolute;
  left: 0px;
  top: 0px;
  bottom: 0px;
  z-index: -1;
  width: 66.5625%;
  background-image: linear-gradient(90deg, #041222 38%, rgba(4, 18, 34, 0.88) 59%, rgba(4, 18, 34, 0.53) 80%, rgba(4, 18, 34, 0) 100%);
}
.blog_banner::after {
  content: "";
  position: absolute;
  inset: 0px;
  z-index: -1;
  pointer-events: none;
  background-color: rgba(4, 18, 34, 0.3);
}
.blog_banner .content {
  min-height: 91.9rem;
  padding: 28rem 0px 14rem;
}
.blog_banner .tcon {
  max-width: 82rem;
}
.blog_banner .tcon .subtitle {
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
  gap: 1.3rem;
}
.blog_banner .tcon p {
  color: #fff;
  max-width: 51rem;
  margin-top: 3.4rem;
}
.blog_banner .btns {
  gap: 2rem;
  display: flex;
  flex-wrap: wrap;
  margin-top: 3.5rem;
}
.blog_banner .btns .btn {
  padding: 0px 3rem 0px 4rem;
}
.blog_banner .marquee {
  position: absolute;
  left: 0px;
  right: 0px;
  bottom: 0px;
  z-index: 3;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.blog_banner .marquee ul {
  display: flex;
  width: max-content;
  animation: blog_banner_marquee 40s linear infinite;
}
.blog_banner .marquee:hover ul {
  animation-play-state: paused;
}
.blog_banner .marquee li {
  display: flex;
  align-items: center;
  gap: 5.8rem;
  padding-right: 5.8rem;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Archivo', sans-serif;
  font-weight: 500;
  font-size: 1.5rem;
  line-height: 5.6rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.blog_banner .marquee li::after {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--green);
}
@keyframes blog_banner_marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media screen and (min-width: 769px) and (max-width: 1220px) {
  .content {
    padding: 0px 3rem;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .content,
  .swiper_content {
    max-width: 896px;
  }
  .tcon h1 {
    font-size: 6rem;
  }
}

@media screen and (min-width: 769px) and (max-width: 896px) {
  .content,
  .swiper_content {
    max-width: 768px;
  }
  .tcon h1 {
    font-size: 5rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 10px;
  }
  body {
    font-size: 1.4rem;
  }
  .content {
    padding: 0px 20px;
  }
  .tcon .subtitle {
    font-size: 12px;
    gap: 10px;
  }
  .tcon .subtitle::before {
    width: 18px;
  }
  .tcon h1 {
    font-size: 30px;
    line-height: 1.2;
    margin-top: 14px;
  }
  .tcon p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
  }
  .btn {
    font-size: 14px;
    line-height: 42px;
    padding: 0px 20px;
    gap: 8px;
  }
  .btn_line {
    font-size: 14px;
    line-height: 40px;
    padding: 0px 20px;
  }
  .blog_banner > img {
    top: 0px;
    width: 100%;
    height: 100%;
    object-position: 70% center;
  }
  .blog_banner::before {
    width: 100%;
    background-image: linear-gradient(90deg, #041222 10%, rgba(4, 18, 34, 0.55) 100%);
  }
  .blog_banner .content {
    min-height: 0px;
    padding: 130px 20px 100px;
  }
  .blog_banner .tcon p {
    margin-top: 16px;
  }
  .blog_banner .btns {
    gap: 12px;
    margin-top: 24px;
  }
  .blog_banner .btns .btn {
    padding: 0px 20px;
  }
  .blog_banner .marquee li {
    font-size: 12px;
    line-height: 44px;
    gap: 24px;
    padding-right: 24px;
  }
  .blog_banner .marquee li::after {
    width: 5px;
    height: 5px;
  }
}
.blog_newsletter {
  padding: 15.8rem 0px;
  background-color: var(--bg);
}
.blog_newsletter .content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6rem;
}
.blog_newsletter .text {
  flex: 1;
  max-width: 60rem;
}
.blog_newsletter .tcon h2 {
  font-size: 4.8rem;
}
.blog_newsletter .tcon p {
  max-width: 55rem;
}
.blog_newsletter form {
  display: flex;
  gap: 1.2rem;
  margin-top: 4.9rem;
}
.blog_newsletter form input {
  width: 36.6rem;
  min-width: 0px;
  height: 5.6rem;
  font-size: 1.6rem;
  padding: 0px 2rem;
  border-radius: 0.8rem;
  border: 1px solid #ebeef3;
  background-color: #fff;
  transition: 0.3s;
}
.blog_newsletter form input::placeholder {
  color: rgba(90, 97, 120, 0.6);
}
.blog_newsletter form input:focus {
  border-color: var(--primary);
}
.blog_newsletter form button {
  flex-shrink: 0;
  width: 5.6rem;
  height: 5.6rem;
  overflow: hidden;
  text-indent: -999px;
  border-radius: 0.8rem;
  transition: 0.3s;
  background: url("../img/arrow-r-w.svg") center center / 1.8rem no-repeat var(--primary);
}
.blog_newsletter form button:hover,
.blog_newsletter form input[type="submit"]:hover {
  background-color: var(--secondary);
}
.blog_newsletter form input[type="submit"] {
  flex: none;
  width: 5.6rem;
  height: 5.6rem;
  padding: 0;
  overflow: hidden;
  text-indent: -999px;
  border: 0;
  border-radius: 0.8rem;
  background: url("../img/arrow-r-w.svg") center center / 1.8rem no-repeat var(--primary);
}
.blog_newsletter .image {
  flex-shrink: 0;
  width: 66.6rem;
  height: 48rem;
  border-radius: 2.4rem;
}
@media screen and (min-width: 769px) and (max-width: 1220px) {
  .content {
    padding: 0px 3rem;
  }
  .blog_newsletter .image {
    width: 52%;
    height: auto;
    aspect-ratio: 666 / 480;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .content,
  .swiper_content {
    max-width: 896px;
  }
  .tcon h2 {
    font-size: 4.2rem;
  }
  .blog_newsletter .content {
    gap: 4rem;
  }
  .blog_newsletter .tcon h2 {
    font-size: 4.2rem;
  }
}

@media screen and (min-width: 769px) and (max-width: 896px) {
  .content,
  .swiper_content {
    max-width: 768px;
  }
  .tcon h2 {
    font-size: 3.6rem;
  }
  .blog_newsletter .tcon h2 {
    font-size: 3.6rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 10px;
  }
  body {
    font-size: 1.4rem;
  }
  .content {
    padding: 0px 20px;
  }
  .tcon .subtitle {
    font-size: 12px;
    gap: 10px;
  }
  .tcon .subtitle::before {
    width: 18px;
  }
  .tcon h2 {
    font-size: 24px;
    line-height: 1.3;
    margin-top: 10px;
  }
  .tcon p {
    font-size: 14px;
    line-height: 1.6;
    margin-top: 10px;
  }
  .blog_newsletter {
    padding: 50px 0px 60px;
  }
  .blog_newsletter .content {
    flex-direction: column;
    align-items: stretch;
    gap: 30px;
  }
  .blog_newsletter .tcon h2 {
    font-size: 24px;
  }
  .blog_newsletter form {
    gap: 10px;
    margin-top: 24px;
  }
  .blog_newsletter form input {
    flex: 1;
    width: auto;
    height: 46px;
    font-size: 14px;
    padding: 0px 16px;
  }
  .blog_newsletter form button {
    width: 46px;
    height: 46px;
    background-size: 16px;
  }
  .blog_newsletter .image {
    width: 100%;
    height: auto;
    aspect-ratio: 666 / 480;
    border-radius: 12px;
  }
}
