*,
*::before,
*::after {
  box-sizing: border-box;
}

input, textarea, button, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
  padding: 0;
}

button, input[type=submit] {
  box-shadow: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  flex-grow: 1;
}
#ajax-search {
  position: relative;
}
#ajax-search #ajax-search-input {
  width: 100%;
  padding: 18px 16px;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  border-radius: 4px;
  color: white;
  border: 1px solid rgba(147, 161, 200, 0.42);
  transition: all 0.3s ease;
}
#ajax-search #ajax-search-input::placeholder {
  color: var(--Primary-Black-Meduim, #93A1C8);
}
#ajax-search #ajax-search-input:focus {
  outline: none;
  border-color: #7D2AEB;
  box-shadow: 0 0 5px 1px #7D2AEB;
}
#ajax-search .ajax-search-icon {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
}
#ajax-search #ajax-search-results {
  position: absolute;
  display: none;
  width: 100%;
  max-height: 500px;
  margin-top: 5px;
  color: white;
  background: #1A222C;
  border-radius: 4px;
  border-color: #7D2AEB;
  box-shadow: 0 0 5px 1px #7D2AEB;
  top: 100%;
  z-index: 1000;
  overflow-y: auto;
}
#ajax-search #ajax-search-results .search-result-item {
  display: block;
  padding: 15px;
  color: #93A1C8;
  text-decoration: none;
  border-bottom: 1px solid #93A1C8;
  transition: opacity 0.2s ease;
}
#ajax-search #ajax-search-results .search-result-item:hover {
  opacity: 0.6;
}
#ajax-search #ajax-search-results .search-result-item:last-child {
  border-bottom: none;
}
#ajax-search #ajax-search-results .search-result-item h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: white;
  line-height: 1.3;
}
#ajax-search #ajax-search-results .search-result-item .search-snippet {
  font-size: 14px;
  line-height: 1.5;
}
#ajax-search #ajax-search-results .highlight {
  background-color: #7D2AEB;
  padding: 0 2px;
  border-radius: 2px;
  font-weight: bold;
  color: white;
}
#ajax-search #ajax-search-results .search-loading,
#ajax-search #ajax-search-results .no-results {
  padding: 20px;
  text-align: center;
  color: #7F8C8D;
  font-style: italic;
}
#ajax-search #ajax-search-results .search-loading {
  color: #3498DB;
}

/* Responsive styles */
@media (max-width: 768px) {
  #ajax-search #ajax-search-results {
    position: fixed;
    left: 10px;
    right: 10px;
    max-height: 60vh;
  }
}
.load-more {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 48px;
  border-radius: 4px;
  background: var(--Dark-light, #273342);
  transition: all 0.3s ease;
}
.load-more:hover {
  background-color: #2C5282;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.load-more .button-text {
  transition: opacity 0.3s ease;
}
.load-more_spinner {
  position: absolute;
  display: none;
  align-items: center;
  gap: 8px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.load-more_spinner::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #2C5282;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--Medium, #93A1C8);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px; /* 150% */
  letter-spacing: -0.32px;
  opacity: 0.8;
}
.breadcrumbs a {
  transition: all 0.3s ease;
}
.breadcrumbs a:hover {
  color: white;
  text-decoration: underline;
}

.category_container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.category_hero {
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.category_hero-title {
  margin: 0;
  color: var(--White, var(--White, #FFFFFF));
  font-size: 45px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}
.category_categories {
  display: flex;
  align-items: flex-start;
  align-content: flex-start;
  gap: 16px 28px;
  flex-wrap: wrap;
  color: var(--Medium, #93A1C8);
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%; /* 28.8px */
}
.category_categories-item {
  transition: all 0.3s ease;
}
.category_categories-item:hover:not(.active) {
  color: var(--White, var(--White, rgba(255, 255, 255, 0.8)));
  text-decoration: underline;
}
.category_categories-item.active {
  color: var(--White, var(--White, #FFFFFF));
}

.study-action {
  position: sticky;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 24px;
  color: var(--White, var(--White, #FFFFFF));
  text-align: center;
  font-size: 22px;
  font-style: normal;
  font-weight: 500;
  line-height: 120%;
  border-radius: 24px;
  border: 2px solid var(--Gradient, #7D2AEB);
  background: var(--Dark-deeper, #101720);
  top: 40px;
}
@media (max-width: 767px) {
  .study-action {
    padding: 12px;
  }
}
.study-action_content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.study-action_content svg {
  display: inline-block;
  margin-left: 5px;
  margin-top: -7px;
}
.study-action_btn {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 19px 32px;
  color: var(--White, var(--White, #FFFFFF));
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.6;
  border-radius: 4px;
  background: var(--Gradient, linear-gradient(56deg, #7D2AEB 28.33%, #BD5CF8 84.19%));
  transition: opacity 0.3s ease;
  opacity: 1;
}
@media (max-width: 767px) {
  .study-action_btn {
    width: 100%;
    padding: 0;
  }
}
.study-action_btn:hover {
  opacity: 0.8;
}

.content {
  display: grid;
  grid-template-columns: 815px 375px;
  justify-content: space-between;
}
@media (max-width: 1439px) {
  .content {
    grid-template-columns: 1fr;
  }
}
.content_container {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
@media (max-width: 1439px) {
  .content_container:last-child {
    display: none;
  }
}

.posts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  row-gap: 36px;
}
@media (max-width: 1023px) {
  .posts {
    grid-template-columns: 1fr;
  }
}
.posts .post:first-child {
  grid-column: 1/-1;
}
.posts .study-action {
  display: none;
  grid-column: 1/-1;
}
@media (max-width: 1439px) {
  .posts .study-action {
    display: flex;
  }
}
@media (max-width: 1439px) and (min-width: 768px) {
  .posts .study-action {
    flex-direction: row;
    justify-content: space-between;
  }
}

.post_thumbnail {
  aspect-ratio: 16/9;
  margin-bottom: 16px;
  border-radius: 20px;
  overflow: hidden;
}
.post_thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post_title {
  margin: 0 0 8px;
  color: var(--White, var(--White, #FFFFFF));
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}
.post_info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article_container {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.article_back-link {
  display: flex;
  align-items: center;
  gap: 4px;
}
.article_hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.article_hero-title {
  margin: 0;
  color: var(--White, var(--White, #FFFFFF));
  font-size: 45px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}
.article_hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.article_hero-author span {
  color: var(--White, var(--White, #FFFFFF));
}
.article_content {
  color: var(--White, var(--White, #FFFFFF));
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 145%;
}
.article_content .wp-post-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 52px;
}
.article_content .wp-block-image {
  width: 100%;
  margin: 52px 0;
  border-radius: 20px;
  overflow: hidden;
}
.article_content .wp-block-image img {
  display: block;
  width: 100%;
  height: auto;
}
.article_content h2,
.article_content h3,
.article_content h4 {
  margin: 1.5em 0 0.75em;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}
.article_content h2 {
  font-size: 34px;
  letter-spacing: -0.68px;
}
.article_content h3 {
  font-size: 28px;
  letter-spacing: -0.56px;
}
.article_content h4 {
  font-size: 22px;
  letter-spacing: -0.48px;
}
.article_content ul, .article_content ol {
  padding-left: 1em;
}
.article_content ul li::marker, .article_content ol li::marker {
  color: #7D2AEB;
}

.related-posts {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.related-posts_title {
  margin: 0;
  color: #FFFFFF;
  font-size: 34px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.68px;
}
.related-posts_container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 1023px) {
  .related-posts_container {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .related-posts_container {
    grid-template-columns: auto;
  }
}
.related-posts_container .post:nth-child(4) {
  display: none;
}
@media (max-width: 1023px) {
  .related-posts_container .post:nth-child(4) {
    display: block;
  }
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  color: var(--White, var(--White, #FFFFFF));
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 26px;
  cursor: pointer;
}
.action-btn_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--Primary-Violet-Normal, #7D2AEB);
}
.gpt-request-form-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 814px;
}
@media (max-width: 1439px) {
    .gpt-request-form-container {
      max-width: unset;
    }
}
.gpt-request-form-title {
  margin: 0;
  color: #FFFFFF;
  font-size: 34px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: -0.68px;
}
