@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

/* ==== CSS RESET (Modern + Professional) ==== */

/* 1. Use border-box for everything */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin, padding, and set baseline font and color */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, menu, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
main, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* 3. Set base line-height and background */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: system-ui, sans-serif;
}

/* 4. Make images and media scalable */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 5. Reset form elements */
input, button, textarea, select {
  font: inherit;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  outline: none;
}

/* 6. Anchor tags */
a {
  text-decoration: none;
  color: inherit;
}

/* 7. List style reset */
ul, ol {
  list-style: none;
}

/* 8. Table reset */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 9. Button default reset */
button {
  background: none;
  border: none;
  cursor: pointer;
}

/* 10. Prevent iOS tap highlight */
a, button, input {
  -webkit-tap-highlight-color: transparent;
}
a.inactive {
  pointer-events: none; /* Disables click functionality */
  opacity: 0.5; /* Reduces the opacity to make it appear inactive */
  cursor: not-allowed; /* Changes the cursor to indicate it's not clickable */
}


body {
  color: #1b1349;
  font-size: 16px;
  font-family: "Inter", sans-serif;
  background-color: #1b1349;
}
#contents {
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  background-color: #fff;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
}
.container {
  padding: 0 3% 1px;
}
@media (max-width: 768px) and (min-width: 481px) {
  .container {
    padding: 0 5% 1px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 0 1px;
  }
}
#contents {
  border-top: 5px solid #df244f;
}
/* ----------------------------------------------------------------*/
/* article-stats */
/* ----------------------------------------------------------------*/
.article-stats {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
}
.article-stats .stats-item.white {
  font-size: 14px;
  color: #fff; 
  padding: 8px 10px;
      background-color: rgba(27, 19, 73, 0.7);
}
.stats-wrap .stats-item,
.article-stats .stats-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.view-count i {
  position: relative;
  bottom: -1px;
}
@media (max-width: 1000px) and (min-width: 769px) {
  .article-stats .stats-item.white {
    padding: 6px 8px;
    font-size: 13px;
  }
}
@media (max-width: 768px) and (min-width: 481px) {
  .article-stats .stats-item.white {
    padding: 5px 6px;
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .article-stats .stats-item.white {
    padding: 3px 4px;
    font-size: 11px;
  }
}

/* ----------------------------------------------------------------*/
/* sp-container */
/* ----------------------------------------------------------------*/
@media (max-width: 480px) {
  .sp-container {
    padding-left: 5%;
    padding-right: 5%;
  }
}
/* ----------------------------------------------------------------*/
/* Section */
/* ----------------------------------------------------------------*/
.section {
  margin-bottom: 60px;
} 
@media (max-width: 768px) and (min-width: 481px) {
  .section {
    margin-bottom: 40px;
  } 
}
@media (max-width: 480px) {
  .section {
    margin-bottom: 30px;
  } 
}

/* ----------------------------------------------------------------*/
/* Section Title */
/* ----------------------------------------------------------------*/
.section-title-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px 4px 0;
  background: linear-gradient(to right, white 0%, white 2%, #f0f0f0 100%);
  margin-bottom: 20px;
}
@media (max-width: 768px) {
  .section-title-block {
    padding: 12px 16px 12px 0;
  }
}
@media (max-width: 480px) {
  .section-title-block {
    padding: 8px 12px 8px 0;
  }
}
.section-title-block .section-title {
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  transition: all ease .3s;
}
@media (max-width: 1000px) and (min-width: 769px) {
  .section-title-block .section-title {
    font-size: 34px;
  }
}
@media (max-width: 768px) {
  .section-title-block .section-title {
    font-size: 28px;
  }
}
@media (max-width: 480px) {
  .section-title-block .section-title {
    font-size: 22px;
  }
}
.section-title-block .button_more {
  width: 114px;
  font-weight: 800;
  padding: 5px 10px;
  text-align: center;
  box-sizing: border-box;
  border: 2px solid #1b1349;
  transition: all ease .3s;
}
@media (max-width: 768px) {
  .section-title-block .button_more {
    width: 100px;
  }
}
@media (max-width: 480px) {
  .section-title-block .button_more {
    width: 80px;
    font-size: 13px;
    padding: 3px 6px;
  }
}
.button_more:hover {
  color: #fff;
  background-color: #1b1349;
}
/* ----------------------------------------------------------------*/
/* Flex Wrap */
/* ----------------------------------------------------------------*/
.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 3%;
}
@media (max-width: 480px) {
  .flex-wrap {
    display: block;
  }
}
/* ----------------------------------------------------------------*/
/* Article Item Common */
/* ----------------------------------------------------------------*/
.article-item {
  position: relative;
}
.three-col .article-item {
  flex: 1 1 calc(33.33% - 3%);
  box-sizing: border-box;
}
@media (max-width: 480px) {
  .three-col .article-item:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
  }
}
.article-item:hover .article-title {
  color: #df244f;
}
@media (max-width: 480px) {
  .article-item.vertical {
    display: flex;
    flex-wrap: wrap;
    gap: 3%;
  }
}
.article-item .article-img-wrap {
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.article-item .article-img-wrap,
.article-item .article-title-link {
  display: block;
}
.article-item .article-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background-color: #f0f0f0;
  overflow: hidden;
}
.article-item .article-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}
.article-item:hover .article-img-wrap img {
  transform: scale(1.2) rotate(-5deg);
}
.article-item .article-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}
@media (min-width: 1001px) {
  .article-item .article-title {
    -webkit-line-clamp: 2;
  }
}
@media (max-width: 1000px) and (min-width: 769px) {
  .article-item .article-title {
    font-size: 18px;
  }
}
@media (max-width: 768px) {
  .article-item .article-title {
    font-size: 16px;
  }
}
@media (max-width: 480px) {
  .article-item .article-title {
    font-size: 15px;
    -webkit-line-clamp: 2;
  }
}
.article-item .article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
.article-item .article-info .article-category,
.article-item .article-info .article_date,
.article-item .article-info .stats-item {
  font-size: 14px;
}
@media (max-width: 1000px) and (min-width: 769px) {
  .article-item .article-info .article-category,
  .article-item .article-info .article_date,
  .article-item .article-info .stats-item {
    font-size: 13px;
  }
  .article-item .article-info {
    gap: 11px;
  }
}
@media (max-width: 768px) {
  .article-item .article-info .article-category,
  .article-item .article-info .article_date,
  .article-item .article-info .stats-item {
    font-size: 12px;
  }
  .article-item .article-info {
    gap: 5px;
  }
}
.article-item .article-info .article-category {
  color: #df244f;
  font-weight: 700;
}
.article-item .article-info .stats-item span,
.article-item .article-info .article_date span {
  margin-left: 5px;
  margin-right: 5px;
}
.article-item .article-snippet {
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1000px) and (min-width: 769px) {
  .article-item .article-snippet {
    font-size: 15px;
  }
}
@media (max-width: 768px) {
  .article-item .article-snippet {
    font-size: 14px;
    -webkit-line-clamp: 3;
    margin-top: 4px;
  }
}
@media (max-width: 480px) {
  .article-item .article-snippet {
    font-size: 13px;
    -webkit-line-clamp: 2;
  }
}
/* ----------------------------------------------------------------*/
/* Article Item Vertical */
/* ----------------------------------------------------------------*/
@media (min-width: 769px) {
  .article-item.vertical {
    padding-bottom: 14px;
  }
}
@media (max-width: 768px) {
  .article-item.vertical {
    padding-bottom: 14px;
  }
}
@media (max-width: 480px) {
  .article-item.vertical {
    padding-top: 14px;
    border-top: 1px solid #0f456e;
  }
}
.article-item.vertical .article-title {
  margin-top: 14px;
  font-weight: 900;
}
@media (max-width: 480px) {
  .article-item.vertical .article-title {
    margin-top: 0;
  }
  .article-item.vertical .article-img-wrap {
    width: 32%;
  }
  .article-item.vertical .article-content-wrap {
    width: 65%;
  }
}
/* ----------------------------------------------------------------*/
/* Article Item Small */
/* ----------------------------------------------------------------*/
.article-item.small {
  border-top: 1px solid #0f456e;
  padding-top: 14px;
  padding-bottom: 14px;
}
@media (min-width: 1001px) {
  .article-item.small .article-title{
    font-size: 16px;
  }
}
@media (max-width: 1000px) and (min-width: 769px) {
  .article-item.small .article-title {
    font-size: 15px;
  }
}
@media (max-width: 768px) {
  .article-item.small .article-title {
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  .article-item.small {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}
/* ----------------------------------------------------------------*/
/* List Category */
/* ----------------------------------------------------------------*/
.category-wrap {
  background-color: #fcf7f5;
}
.list-category {
  width: 100%;
  padding: 40px;
  background-color: #fcf7f5;
  box-sizing: border-box;
}
.list-category .list-item {
  border-bottom: 1px solid #b1b4bc;
  transition: all ease .3s;
}
.list-category .list-item:hover {
  border-bottom: 1px solid #df244f;
}
.list-category .list-item:hover span {
  color: #df244f;
  transition: all ease .3s;
  padding-left: 10px;
}
.list-category a {
  display: block;
  padding: 10px 0;
  overflow: hidden;
}
.list-category span {
  font-size: 15px;
  transition: all ease .3s;
}
.list-category .category-name {
  float: left;
}
.list-category .post-count {
  float: right;
}
.list-category .list-category-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

@media (max-width: 1000px) and (min-width: 769px) {
  .list-category {
    padding: 30px;
  }
  .list-category .list-category-title {
    font-size: 18px;
  }
  .list-category a {
    padding: 8px 0;
  }
}
@media (max-width: 768px) and (min-width: 481px) {
  .list-category {
    padding: 20px;
  }
  .list-category .list-category-title {
    font-size: 16px;
  }
  .list-category a {
    padding: 6px 0;
  }
  .list-category span {
    font-size: 14px;
  }
}
@media (max-width: 480px) {
  .list-item:first-child {
    padding-top: 0;
    margin-top: 0;
    border-top: none;
  }
  .list-category {
    padding: 14px 5%;
  }
  .list-category .list-category-title {
    font-size: 15px;
  }
  .list-category a {
    padding: 4px 0;
  }
  .list-category span {
    font-size: 13px;
  }
}
/* ----------------------------------------------------------------*/
/* two-col-wrap */
/* ----------------------------------------------------------------*/
.two-col .two-col-wrap__main,
.two-col .two-col-wrap__sub {
  box-sizing: border-box;
}
.two-col .two-col-wrap__main {
  flex: 1 1 calc(66.66% - 3%);
}
.two-col .two-col-wrap__sub {
  flex: 1 1 calc(33.33% - 3%);
}
.two-col-wrap__main {
  display: flex;
  flex-wrap: wrap;
  gap: 3%;
}
/* ----------------------------------------------------------------*/
/* latest-topic */
/* ----------------------------------------------------------------*/
.latest-topic {
  width: 100%;
  padding: 40px;
  background-color: #f1f4f7;
  box-sizing: border-box;
}
.latest-topic .latest-topic-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}
.list-latest {
  display: flex;
  flex-wrap: wrap;
  gap: 3%;
}
.list-latest .list-latest__main,
.list-latest .list-latest__sub {
  flex: 1 1 calc(50% - 3%);
}
@media (max-width: 900px) and (min-width: 481px) {
  .article-item.small {
    padding-top: 7px;
    padding-bottom: 7px;
  }
}
@media (max-width: 1000px) and (min-width: 769px) {
  .latest-topic .latest-topic-title {
    font-size: 18px;
  }
  .latest-topic {
    padding: 30px;
  }
}
@media (max-width: 768px) and (min-width: 481px) {
  .latest-topic .latest-topic-title {
    font-size: 16px;
  }
  .latest-topic {
    padding: 20px;
  }
}
@media (max-width:600px) {
  .flex-wrap.latest {
    display: block;
  }
  .two-col-wrap__main {
    margin-bottom: 14px;
  }
}
@media (max-width: 600px) and (min-width: 481px) {
  .list-category {
    overflow: hidden
  }
  .list-category .list-item {
    float: left;
    width: 48.5%;
  }
  .list-category .list-item:nth-child(2n+2) {
    margin-right: 3%;
  }
}
@media (max-width: 480px) {
  .list-latest {
    display: block;
  }
  .latest-topic .latest-topic-title {
    font-size: 15px;
  }
  .latest-topic {
    padding: 14px 5%;
  }
  .list-latest__main .article-item.vertical {
    border-top: none;
    padding-top: 0;
  }
}
@media (min-width: 481px) {
  .list-latest__sub .article-item:first-child {
    border-top: none;
    padding-top: 0;
  }
  .list-latest__sub .article-item:last-child {
    padding-bottom: 0;
  }
  .list-latest .list-latest__main .article-item.vertical {
    padding-bottom: 0;
  }
}
/* ----------------------------------------------------------------*/
/* featured */
/* ----------------------------------------------------------------*/
.featured-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding-top: 2px;
  padding-left: 2px;
  padding-right: 2px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
@media (max-width: 480px) {
  .featured-wrap {
    gap: 0;
  }
}
.featured-wrap .featured-item {
  width: calc(27.5% - 1px);
  box-sizing: border-box;
  position: relative;
  height:350px;
  overflow: hidden;
  transition: all ease .3s;
}
.featured-wrap .featured-item.active {
  width: calc(45% - 2px);
  z-index: 10;
}
@media (max-width: 1000px) and (min-width: 769px) {
  .featured-wrap .featured-item {
    height: 300px;
  }
}
@media (max-width: 768px) and (min-width: 481px) {
  .featured-wrap .featured-item {
    height: 250px;
  }
}
@media (max-width: 480px) {
  .featured-wrap .featured-item,
  .featured-wrap .featured-item.active {
    width: 100%;
  }
  .featured-wrap .featured-item .featured-item-content {
    display: none;
  }
  .featured-wrap .featured-item.active .featured-item-content {
    display: block;
  }
  .featured-wrap .featured-item {
    height: 0px;
  }
  .featured-wrap .featured-item.active {
    height: 250px;
  }
}
.featured-wrap .featured-item.active .featured-item-content {
  opacity: 1;
}
.featured-wrap .featured-item:hover img {
  transform: scale(1.2) rotate(-5deg);
}
.featured-wrap .featured-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.featured-wrap .featured-item::before,
.featured-wrap .featured-item.active::before {
  background: linear-gradient(to top, rgba(0, 0, 0, .4), transparent);
}
.featured-item {
  background: #000;
}
.featured-item img {
  opacity: .4;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all ease .3s;
}
.featured-wrap .featured-item.active img {
  opacity: 1;
}
.featured-item-content {
  opacity: .75;
  position: absolute;
  left: 5%;
  right: 20%;
  bottom: 8%;
  z-index: 10;
  transition: transform 0.3s ease, left 0.3s ease, bottom 0.3s ease; /* Smooth transition for move */
}
@media (max-width: 1000x) and (min-width: 481px) {
  .featured-item-content {
    left: 10%;
    right: 10%;
  }
}
@media (max-width: 480px) {
  .featured-item-content {
    left: 3%;
    right: 12%;
  }
}
.featured-item:hover .featured-item-content {
  opacity: 1;
  transform: translate(0, -50%); /* Only move vertically to center */
  bottom: 1%; /* Move vertically to center */
}
@media (max-width: 768px) {
  .featured-item:hover .featured-item-content {
    transform: translate(0, -20%);
  }
}
.featured-wrap a {
  display: block;
}
.featured-title {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}
.featured-item.active .featured-title {
  font-size: 26px;
}
@media (max-width: 1000px) and (min-width: 769px) {
  .featured-title {
    font-size: 16px;
  }
  .featured-item.active .featured-title {
    font-size: 24px;
  }
}
@media (max-width: 768px) and (min-width: 481px) {
  .featured-title {
    font-size: 14px;
  }
  .featured-item.active .featured-title {
    font-size: 20px;
  }
}
@media (max-width: 480px) {
  .featured-title {
    font-size: 14px;
  }
  .featured-item.active .featured-title {
    font-size: 20px;
  }
}
.featured-item .article-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.featured-item .article-category {
  margin-right: 5px;
}
.featured-item .article-date {
  color: #fff;
} 
@media (max-width: 1000px) and (min-width: 769px) {
  .featured-item .article-date {
    font-size: 13px;
  }
}
@media (max-width: 768px) {
  .featured-item .article-date {
    font-size: 12px;
  }
}
.featured-item.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 10px;
  background: #df244f;
  animation: loadingBar 4s linear forwards;
  z-index: 15;
}

@keyframes loadingBar {
  from {
    width: 0%;
  }
  to {
    width: 100%;
  }
}