/* AJJ polish pack — Type B, CTA C, Menu C, FAQ, Blog B. Staging only. */
:root {
  --ajj-ink: #111111;
  --ajj-red: #e8160f;
  --ajj-paper: #f4f3f1;
  --ajj-line: #d8d6d2;
  --ajj-mute: #5c5c5c;
}

body,
p,
.elementor-widget-text-editor,
.entry-content,
.ast-comment-content {
  font-family: "Source Sans 3", "Open Sans", sans-serif !important;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.entry-title,
.site-title,
.menu-link {
  font-family: "Oswald", "Nanum Gothic", sans-serif !important;
  letter-spacing: 0.02em;
}

/* —— CTA C: section 983bd84 — instructors + logo-red button —— */
.elementor-element-983bd84 .elementor-background-overlay {
  background-color: rgba(0, 0, 0, 0.38) !important;
  opacity: 1 !important;
}

.elementor-element-983bd84 .elementor-heading-title {
  color: #fff !important;
}

.elementor-element-983bd84 .elementor-widget-text-editor,
.elementor-element-983bd84 .elementor-widget-text-editor p {
  color: rgba(255, 255, 255, 0.88) !important;
}

.elementor-element-983bd84 .elementor-button,
.elementor-element-3700ac4 .elementor-button {
  background-color: var(--ajj-red) !important;
  color: #fff !important;
  border: 0 !important;
  letter-spacing: 0.03em;
}

.elementor-element-983bd84 .elementor-button:hover,
.elementor-element-3700ac4 .elementor-button:hover {
  background-color: #111 !important;
  color: #fff !important;
}

/* —— Menu C: gradient overlay + trial in the menu —— */
@media (max-width: 921px) {
  .ast-mobile-popup-drawer .ast-mobile-popup-inner,
  #ast-mobile-popup .ast-mobile-popup-inner,
  .ast-mobile-menu-overlay .main-header-bar-navigation {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.78) 0%,
      rgba(0, 0, 0, 0.42) 38%,
      rgba(0, 0, 0, 0.88) 100%
    ) !important;
  }

  .ast-mobile-popup-drawer .main-header-menu .menu-link,
  #ast-mobile-popup .menu-link,
  .ast-builder-menu-mobile .menu-link {
    color: #fff !important;
    font-family: "Oswald", sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
  }

  .ajj-menu-trial {
    display: block;
    margin: 1.1rem 1.15rem 1.5rem;
    background: var(--ajj-red);
    color: #fff !important;
    text-align: center;
    padding: 0.75rem 1rem;
    text-decoration: none !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    font-family: "Oswald", sans-serif !important;
    font-weight: 600;
  }

  .ajj-menu-trial:hover {
    background: #fff;
    color: #111 !important;
  }
}

/* —— Homepage FAQ accordion —— */
.ajj-faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3.25rem;
}

.ajj-faq h2 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.ajj-faq-item {
  margin: 0 0 0.85rem;
}

.ajj-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #f7f6f4;
  border: 0;
  cursor: pointer;
  text-align: left;
  padding: 1.05rem 1.15rem;
  font-family: "Oswald", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #111;
}

.ajj-faq-q:hover {
  background: #efece7;
}

.ajj-faq-ico {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  border: 1px solid #111;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  transition: transform 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.ajj-faq-item.is-open .ajj-faq-ico {
  transform: rotate(45deg);
  background: #111;
  color: #fff;
}

.ajj-faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s ease;
}

.ajj-faq-item.is-open .ajj-faq-a {
  grid-template-rows: 1fr;
}

.ajj-faq-a-inner {
  overflow: hidden;
}

.ajj-faq-a-inner p {
  margin: 0;
  padding: 0 1.15rem 1.15rem;
  color: #333;
  font-size: 15px;
  line-height: 1.55;
  max-width: 62ch;
}

/* —— Blog B: featured + Academy / Technique cards —— */
body.blog .site-content,
body.archive .site-content,
body.category .site-content {
  background: var(--ajj-paper);
}

body.blog .ast-row,
body.archive .ast-row {
  display: grid;
  gap: 1rem;
}

body.blog .ast-article-post,
body.archive .ast-article-post {
  border: 1px solid var(--ajj-line);
  background: #fff;
  overflow: hidden;
  padding: 0 !important;
  margin: 0 0 0.85rem !important;
}

body.blog .ast-article-post:first-child,
body.archive .ast-article-post:first-child {
  grid-column: 1 / -1;
  min-height: 280px;
  position: relative;
  background: #111;
  border: 0;
}

body.blog .ast-article-post:first-child .post-thumb-img-content img,
body.archive .ast-article-post:first-child .post-thumb-img-content img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

body.blog .ast-article-post:first-child .entry-header,
body.blog .ast-article-post:first-child .entry-content,
body.archive .ast-article-post:first-child .entry-header,
body.archive .ast-article-post:first-child .entry-content {
  padding: 0 1.5rem 1.35rem;
}

body.blog .ast-article-post:first-child .entry-title a,
body.archive .ast-article-post:first-child .entry-title a,
body.blog .ast-article-post:first-child .entry-title,
body.archive .ast-article-post:first-child .entry-title {
  color: #fff !important;
}

body.blog .ast-article-post:first-child .entry-content,
body.blog .ast-article-post:first-child .entry-content p,
body.archive .ast-article-post:first-child .entry-content,
body.archive .ast-article-post:first-child .entry-content p,
body.blog .ast-article-post:first-child .posted-on,
body.archive .ast-article-post:first-child .posted-on {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.blog .ast-article-post .posted-on,
body.archive .ast-article-post .posted-on {
  font-size: 12px;
  color: var(--ajj-mute);
}

body.blog .ast-article-post .cat-links a,
body.archive .ast-article-post .cat-links a,
body.blog .ast-article-post .ast-terms-link,
body.archive .ast-article-post .ast-terms-link {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ajj-red) !important;
}

@media (min-width: 700px) {
  body.blog .ast-row,
  body.archive .ast-row {
    grid-template-columns: 1fr 1fr;
  }
}
