/* =========================================================
   PROJECTS & EVENTS (mockup Atonika)
   Paleta: --atk-cream / --atk-navy / --atk-gold
   ========================================================= */

.atk-page {
  background: var(--atk-cream, #fbfaf8);
}

body.page-template-page-templatespage-projects-php .alert-bar { display: none; }

/* ---------- HERO SPLIT ---------- */
.atk-projects-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 40px;
}
.atk-projects-hero__breadcrumbs {
  font-size: 13px;
  color: var(--atk-ink-soft, #6b7280);
  margin-bottom: 18px;
}
.atk-projects-hero__breadcrumbs a { color: var(--atk-ink-soft, #6b7280); }
.atk-projects-hero__breadcrumbs a:hover { color: var(--atk-gold, #c9a57b); }
.atk-projects-hero__breadcrumbs .atk-sep { margin: 0 8px; color: var(--atk-line, #eae8e4); }

.atk-projects-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  color: var(--atk-navy, #1b2a5e);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}
.atk-projects-hero h1 em { color: var(--atk-gold, #c9a57b); font-style: normal; }

.atk-projects-hero__sub {
  color: var(--atk-ink, #1a1a1a);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 600;
  line-height: 1.5;
  margin: 0 0 14px;
}
.atk-projects-hero__sub em { color: var(--atk-gold, #c9a57b); font-style: normal; }

.atk-projects-hero__text {
  color: var(--atk-ink-soft, #6b7280);
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0;
}

.atk-projects-hero__media {
  position: relative;
}
.atk-projects-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(18, 34, 76, .18);
  display: block;
}
.atk-stamp {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 10px 26px rgba(18, 34, 76, .22);
}
.atk-stamp__letter {
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
  color: var(--atk-navy, #1b2a5e);
}
.atk-stamp__text {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--atk-ink-soft, #6b7280);
  text-transform: uppercase;
  max-width: 108px;
  line-height: 1.45;
  margin-top: 4px;
}

/* ---------- CATEGORY PILLS ---------- */
.atk-projects-cats {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  padding: 8px 0 8px;
}
.atk-projects-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 18px 10px 16px;
  border: 1.5px solid transparent;
  border-radius: 16px;
  background: #fff;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.atk-projects-cat:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 34, 76, .08);
}
.atk-projects-cat.is-active {
  border-color: var(--atk-gold, #c9a57b);
}
.atk-projects-cat__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--atk-cream, #fbfaf8);
  color: var(--atk-navy, #1b2a5e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.atk-projects-cat__icon svg { width: 26px; height: 26px; }
.atk-projects-cat__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--atk-navy, #1b2a5e);
  line-height: 1.3;
}
.atk-projects-cat__micro {
  font-size: 11px;
  color: var(--atk-ink-soft, #6b7280);
  line-height: 1.35;
}

/* ---------- FILTERS ---------- */
.atk-projects-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px 0 8px;
}
.atk-projects-filter__search {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.atk-projects-filter__search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--atk-ink-soft, #6b7280);
  pointer-events: none;
}
.atk-projects-filter__search input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--atk-line, #eae8e4);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--atk-ink, #1a1a1a);
  outline: none;
}
.atk-projects-filter__search input:focus { border-color: var(--atk-gold, #c9a57b); }
.atk-select {
  height: 40px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--atk-line, #eae8e4);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--atk-ink, #1a1a1a);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b7280' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

/* ---------- PROJECT GRID ---------- */
.atk-projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  padding-top: 18px;
}
.atk-rel-grid {
  grid-template-columns: repeat(3, 1fr);
}
.atk-pcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(23, 23, 23, .08);
  transition: transform .15s ease, box-shadow .15s ease;
}
.atk-pcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(23, 23, 23, .12);
}
.atk-pcard__media {
  position: relative;
}
.atk-pcard__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}
.atk-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.atk-pill svg { width: 12px; height: 12px; }
.atk-pill--open    { background: #2f6fed; }
.atk-pill--ongoing { background: #1a9e5c; }
.atk-pill--closed  { background: #8b90a0; }
.atk-pill--featured{ background: var(--atk-gold, #c9a57b); }
.atk-pill--colab   { background: #2f6fed; }
.atk-pill--conv    { background: #7c3aed; }
.atk-pill--challenge{ background: var(--atk-navy, #1b2a5e); }
.atk-pill--project { background: var(--atk-gold-dark, #c9a57b); }
.atk-pill--event   { background: var(--atk-navy, #1b2a5e); }
.atk-pill--level   { background: var(--atk-ink-soft, #6b7280); }

.atk-pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 16px 16px 18px;
}
.atk-pcard__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--atk-navy, #1b2a5e);
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.atk-pcard__by {
  font-size: 13px;
  color: var(--atk-ink-soft, #6b7280);
  margin: 0 0 12px;
}
.atk-pcard__by a { color: var(--atk-navy, #1b2a5e); font-weight: 600; }
.atk-pcard__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.atk-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--atk-card, #f4f2ef);
  font-size: 12px;
  font-weight: 600;
  color: var(--atk-ink, #1a1a1a);
}
.atk-chip svg { width: 14px; height: 14px; color: var(--atk-navy, #1b2a5e); }
.atk-pcard__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--atk-ink-soft, #6b7280);
  margin-bottom: 14px;
  line-height: 1.4;
}
.atk-pcard__stats strong { color: var(--atk-ink, #1a1a1a); font-weight: 700; }
.atk-pcard__actions { margin-top: auto; }

/* ---------- BUTTONS ---------- */
.atk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.atk-btn svg { width: 16px; height: 16px; }
.atk-btn--navy { background: var(--atk-navy, #1b2a5e); color: #fff; }
.atk-btn--navy:hover { background: var(--atk-navy-2, #12224c); color: #fff; }
.atk-btn--outline {
  background: transparent;
  color: var(--atk-navy, #1b2a5e);
  border: 1.5px solid var(--atk-navy, #1b2a5e);
}
.atk-btn--outline:hover { background: var(--atk-navy, #1b2a5e); color: #fff; }
.atk-btn--block { width: 100%; }
.atk-btn--gold {
  background: linear-gradient(135deg, var(--atk-gold, #dcb681), var(--atk-gold-dark, #c9a57b));
  color: var(--atk-navy, #1b2a5e);
}
.atk-btn--gold:hover { filter: brightness(1.04); color: var(--atk-navy, #1b2a5e); }

/* ---------- SECTION HEAD ---------- */
.atk-projects-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 40px 0 8px;
}
.atk-projects-head h2 {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 800;
  color: var(--atk-navy, #1b2a5e);
  margin: 0;
}
.atk-projects-head__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--atk-navy, #1b2a5e);
  text-decoration: none;
  white-space: nowrap;
}
.atk-projects-head__link:hover { color: var(--atk-gold, #c9a57b); }
.atk-projects-head__link svg { width: 16px; height: 16px; vertical-align: -2px; margin-left: 4px; }

/* ---------- HOW TO PARTICIPATE ---------- */
.atk-howto {
  background: #fff;
  border-radius: 20px;
  padding: 44px 36px;
  margin-top: 10px;
}
.atk-howto h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  color: var(--atk-navy, #1b2a5e);
  text-align: center;
  margin: 0 0 34px;
}
.atk-howto__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
}
.atk-howto__step {
  flex: 1;
  max-width: 220px;
  text-align: center;
}
.atk-howto__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--atk-card, #f4f2ef);
  color: var(--atk-navy, #1b2a5e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.atk-howto__icon svg { width: 34px; height: 34px; }
.atk-howto__step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--atk-navy, #1b2a5e);
}
.atk-howto__step-title small { display: block; color: var(--atk-ink-soft, #6b7280); font-weight: 600; }
.atk-howto__arrow { align-self: center; color: var(--atk-gold, #c9a57b); margin-top: 34px; }
.atk-howto__arrow svg { width: 28px; height: 28px; }

/* ---------- CTA FOOTER ---------- */
.atk-cta {
  position: relative;
  margin-top: 56px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--atk-navy, #1b2a5e);
  color: #fff;
  display: flex;
}
.atk-cta__body {
  position: relative;
  z-index: 2;
  padding: 54px 48px;
  flex: 1;
}
.atk-cta__brand {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: .06em;
  color: #fff;
  margin: 0 0 10px;
}
.atk-cta__title {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #fff;
  max-width: 460px;
}
.atk-cta__title em { color: var(--atk-gold, #dcb681); font-style: normal; }
.atk-cta__copy {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  max-width: 460px;
  margin: 0 0 26px;
}
.atk-cta__media {
  position: relative;
  width: 40%;
  min-width: 300px;
}
.atk-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.atk-cta__wave {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(220px 80px at 78% 30%, rgba(220,182,129,.28), transparent 70%),
    radial-gradient(260px 100px at 88% 72%, rgba(220,182,129,.22), transparent 70%);
  pointer-events: none;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .atk-projects-cats { grid-template-columns: repeat(4, 1fr); }
  .atk-projects-grid { grid-template-columns: repeat(3, 1fr); }
  .atk-projects-hero { grid-template-columns: 1fr; gap: 28px; }
  .atk-cta__media { display: none; }
  .atk-howto__steps { flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .atk-projects-cats { grid-template-columns: repeat(2, 1fr); }
  .atk-projects-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .atk-stamp { width: 112px; height: 112px; }
  .atk-stamp__letter { font-size: 42px; }
  .atk-cta__body { padding: 38px 24px; }
  .atk-howto { padding: 32px 20px; }
  .atk-projects-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 460px) {
  .atk-projects-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   SINGLE PROJECT & EVENT
   ========================================================= */
.atk-single {
  padding-bottom: 64px;
}
.atk-single-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
  padding: 36px 0 40px;
}
.atk-single-hero__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.atk-pill--sm { font-size: 10px; padding: 4px 10px; }
.atk-single-hero__title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--atk-navy, #1b2a5e);
  margin: 0 0 14px;
}
.atk-single-hero__by {
  font-size: 15px;
  color: var(--atk-ink-soft, #6b7280);
  margin: 0 0 16px;
}
.atk-single-hero__by a { color: var(--atk-navy, #1b2a5e); font-weight: 600; }
.atk-single-hero__course { color: #8f6d3f; font-weight: 600; }
.atk-single-hero__excerpt {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--atk-ink, #1a1a1a);
  max-width: 520px;
  margin: 0 0 24px;
}
.atk-single-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.atk-single-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(18, 34, 76, .16);
  display: block;
}

/* META GRID */
.atk-single-meta {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  padding: 0 0 44px;
}
.atk-single-meta__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 3px 14px rgba(23, 23, 23, .06);
}
.atk-single-meta__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--atk-cream, #fbfaf8);
  color: var(--atk-navy, #1b2a5e);
  display: flex;
  align-items: center;
  justify-content: center;
}
.atk-single-meta__icon svg { width: 20px; height: 20px; }
.atk-single-meta__item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--atk-navy, #1b2a5e);
  line-height: 1.3;
}
.atk-single-meta__item small {
  display: block;
  font-size: 11.5px;
  color: var(--atk-ink-soft, #6b7280);
}

/* BODY LAYOUT */
.atk-single-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}
.atk-single-h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: var(--atk-navy, #1b2a5e);
  margin: 0 0 18px;
}
.atk-single-h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--atk-navy, #1b2a5e);
  margin: 28px 0 12px;
}
.atk-single-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--atk-ink, #1a1a1a);
}
.atk-single-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.atk-single-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--atk-ink, #1a1a1a);
}
.atk-single-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--atk-gold, #c9a57b);
}

/* SIDEBAR */
.atk-single-side {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}
.atk-side-card {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 3px 14px rgba(23, 23, 23, .06);
}
.atk-side-card__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--atk-navy, #1b2a5e);
  margin: 0 0 12px;
}
.atk-side-card__title svg { width: 16px; height: 16px; color: var(--atk-gold-dark, #c9a57b); }
.atk-single-share {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.atk-share-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--atk-cream, #fbfaf8);
  color: var(--atk-navy, #1b2a5e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.atk-share-btn:hover { background: var(--atk-navy, #1b2a5e); color: #fff; }
.atk-share-btn svg { width: 18px; height: 18px; }
.atk-side-cta {
  background: var(--atk-navy, #1b2a5e);
  color: #fff;
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
}
.atk-side-cta .atk-stamp__letter { color: var(--atk-gold, #dcb681); }
.atk-side-cta__title {
  font-size: 17px;
  font-weight: 800;
  margin: 10px 0 6px;
  color: #fff;
}
.atk-side-cta__copy {
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .82);
  margin: 0 0 16px;
}

/* RESPONSIVE SINGLE */
@media (max-width: 1100px) {
  .atk-single-hero { grid-template-columns: 1fr; gap: 26px; }
  .atk-single-meta { grid-template-columns: repeat(3, 1fr); }
  .atk-single-body { grid-template-columns: 1fr; }
  .atk-single-side { position: static; grid-template-columns: 1fr 1fr; }
  .atk-side-cta { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .atk-single-meta { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .atk-single-meta__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .atk-single-side { grid-template-columns: 1fr; }
  .atk-single-hero__actions { flex-direction: column; }
  .atk-single-hero__actions .atk-btn { width: 100%; }
}
@media (min-width: 681px) and (max-width: 900px) {
  .atk-single-meta { grid-template-columns: repeat(2, 1fr); }
  .atk-single-meta__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}