/* =========================================================
   WLCM EVENTS — RESOURCES PAGE STYLES
   Page-specific styles for the Resources section.
   ========================================================= */

:root {
  --muted: #888379;
}


/* --- Pill Badges & Section Labels --- */
.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  background: var(--tint);
  border: 1px solid var(--accent);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  color: #211F1A;
  max-width: 100%;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.pill-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-deep);
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-badge.section-label {
  font-size: 12px;
  letter-spacing: 0.6px;
  gap: 8px;
}

/* --- Dark Outline Button --- */
.btn-outline-dark {
  background: var(--ink);
  color: #EBEBEB;
  border: 1px solid #52504D;
  border-radius: 14px;
  padding: 19px 29px;
}

.btn-outline-dark:hover {
  border-color: #888379;
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.res-hero {
  padding: 48px 0 80px;
  text-align: center;
}

.res-hero .pill-badge {
  margin-bottom: 24px;
}

.res-hero h1 {
  font-size: clamp(42px, 5.5vw, 80px);
  font-weight: 700;
  line-height: 1.02;
  color: var(--ink);
  margin: 0 auto 28px;
  max-width: 900px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.res-hero h1 .highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.res-hero h1 .highlight::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: 12%;
  bottom: 8%;
  background: var(--accent);
  border-radius: 7px;
  transform: rotate(-1deg);
  z-index: -1;
}

.res-hero .lead {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 623px;
  margin: 0 auto 48px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* --- Featured Guide --- */
.featured-guide {
  max-width: 1238px;
  margin: 0 auto;
  padding: 24px 44px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 26px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 26px;
  transform: rotate(-1deg);
  text-align: left;
}

.featured-guide .icon-wrap {
  flex-shrink: 0;
  width: 89px;
  height: 89px;
  background: var(--tint);
  border: 1px solid var(--accent);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-3deg);
  box-shadow: 0 0 0 0.5px rgba(255, 204, 0, 0.35);
}

.featured-guide .icon-wrap svg {
  width: 34px;
  height: 34px;
  display: block;
}

.featured-guide .body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 16px;
}

.featured-guide .eyebrow {
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0;
  /* Reset global badge styles */
  display: block;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

.featured-guide h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.featured-guide .body > p {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 23.1px;
  color: var(--muted);
  margin: 0;
  max-width: 541px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.featured-guide .btn-primary {
  flex-shrink: 0;
  align-self: center;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  gap: 12px;
  border-radius: 12px;
  color: #FDFDFD;
  box-shadow: none;
}

.featured-guide .btn-primary:hover {
  box-shadow: 0 14px 30px -12px rgba(24, 22, 18, 0.35);
}

.featured-guide .btn-primary .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: #FDFDFD;
  transition: transform .25s ease;
}

.featured-guide .btn-primary .arrow svg {
  display: block;
  width: 14px;
  height: 14px;
}

.featured-guide .btn-primary:hover .arrow {
  transform: translate(2px, -2px) rotate(0deg);
}

/* --- Section Layout --- */
.res-section {
  padding: 64px 0 80px;
  border-top: 1px solid var(--rule);
}

.res-section.tint {
  background: var(--tint-soft);
}

.res-section .section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: end;
  margin-bottom: 48px;
}

.res-section .section-head .intro {
  max-width: 829px;
  min-width: 0;
}

.res-section .post-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  text-align: right;
  white-space: nowrap;
}

.res-section .section-title {
  font-size: clamp(36px, 4.2vw, 54px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 16px 0 20px;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.res-section .section-title em {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 600;
  color: var(--ink-2);
}

.res-section .section-desc {
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* --- Cards Grid & Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.card-grid > * {
  min-width: 0;
}

.article-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 22px;
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.article-card:nth-child(3n + 1) {
  transform: rotate(-1deg);
}

.article-card:nth-child(3n + 2) {
  transform: rotate(1deg);
}

.article-card:nth-child(3n) {
  transform: rotate(-1deg);
}

.article-card:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.article-card .thumb {
  position: relative;
  aspect-ratio: 401 / 277;
  overflow: hidden;
  background: linear-gradient(135deg, #e8d4c4, #c4a882);
}

.article-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-card .cat-badge {
  position: absolute;
  z-index: 2;
  top: 17px;
  left: 14px;
  max-width: calc(100% - 28px);
  box-sizing: border-box;
  padding: 8px 12px;
  background: var(--tint);
  border: 1px solid var(--accent);
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.article-card .content {
  padding: 18px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-sizing: border-box;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.article-card .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13px;
  color: var(--ink-3);
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.article-card .meta span {
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.article-card .meta .sep {
  width: 2px;
  height: 2px;
  background: var(--ink-4);
  border-radius: 50%;
  flex-shrink: 0;
}

.article-card h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 12px;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.article-card .excerpt {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.54;
  letter-spacing: 0.28px;
  color: var(--ink-3);
  margin: 0 0 16px;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.article-card .read-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 0;
  margin-top: auto;
}

.article-card .read-link::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.article-card .read-link .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  color: var(--ink);
  transition: transform .25s ease;
}

.article-card .read-link .arrow svg {
  display: block;
  width: 14px;
  height: 14px;
}

.article-card .read-link:hover .arrow {
  transform: translate(2px, -2px);
}

.section-cta {
  text-align: center;
}

/* --- Closer Call-to-Action --- */
.res-closer {
  position: relative;
  background: var(--ink);
  padding: 99px 0 86px;
  overflow: hidden;
  text-align: center;
}

.res-closer::before {
  content: "";
  position: absolute;
  width: 542px;
  height: 542px;
  top: -271px;
  right: -120px;
  background: var(--accent);
  border-radius: 50%;
  filter: blur(200px);
  opacity: 0.5;
  pointer-events: none;
}

.res-closer .wrap {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.res-closer .ready-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-deep);
}

.res-closer .ready-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-deep);
  border-radius: 50%;
}

.res-closer h2 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 0.96;
  color: #fff;
  margin: 0 0 24px;
}

.res-closer h2 em {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 500;
  color: #A8A79F;
}

.res-closer .lead {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.54;
  color: #fff;
  max-width: 577px;
  margin: 0 auto 40px;
}

.res-closer .ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.res-closer .btn-yellow {
  padding: 20px 29px;
  letter-spacing: 0.3px;
}

/* --- Media Queries --- */
@media (max-width: 1100px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 480px;
    justify-self: center;
    width: 100%;
  }

  .res-section .section-head {
    grid-template-columns: 1fr;
  }

  .res-section .post-count {
    text-align: left;
  }
}

@media (max-width: 900px) {
  .featured-guide {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 30px 32px;
    transform: none;
  }

  .featured-guide .icon-wrap {
    transform: none;
    align-self: flex-start;
  }

  .featured-guide .body {
    padding-right: 0;
  }

  .featured-guide .btn-primary {
    align-self: flex-start;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .article-card,
  .article-card:nth-child(n) {
    transform: none;
    max-width: none;
  }

  .res-closer .ctas {
    flex-direction: column;
    max-width: 320px;
    margin: 0 auto;
  }

  .res-closer .ctas .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
   FAQ SECTION ACCORDION STYLES
   ========================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.faq-item {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

/* Hide default marker in different browsers */
.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 24px 24px;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
}

.faq-answer p {
  margin: 0;
}

/* =========================================================
   View All Soft Button Arrow Styles
   ========================================================= */
.btn-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.btn-soft .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.btn-soft .arrow svg {
  width: 12px;
  height: 12px;
  display: block;
}

.btn-soft:hover .arrow {
  transform: translate(3px, -3px) rotate(-12deg);
}
