/* WHAGENT Recursos v1.1 — isolado: seção SEM fundo, só cards possuem cor.
   Sem regras globais para WoodMart/Elementor. */
.wha-resources {
  --wha-card-bg: #fafafa;
  --wha-card-border: #dfe8e3;
  --wha-card-hover: #05bd6a;
  --wha-accent: #008f51;
  --wha-icon-bg: #e5f8ed;
  --wha-title-color: #101820;
  --wha-text-color: #5e6871;
  --wha-arrow-bg: #eef4f0;
  --wha-arrow-color: #16392a;
  box-sizing: border-box;
  width: 100%;
  padding: 48px 18px 54px;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none;
  isolation: isolate;
}
.wha-resources *, .wha-resources *::before, .wha-resources *::after { box-sizing: border-box; }
/* As variações trocam EXCLUSIVAMENTE os cards; o fundo da seção segue transparente. */
.wha-resources.wha-theme-light {
  --wha-card-bg:#fafafa; --wha-card-border:#e0e8e4; --wha-card-hover:#00b867;
  --wha-accent:#008b4d; --wha-icon-bg:#e6f9ed; --wha-title-color:#10151b;
  --wha-text-color:#59636e; --wha-arrow-bg:#eaf4ee; --wha-arrow-color:#164b31;
}
.wha-resources.wha-theme-dark {
  --wha-card-bg:#141b1a; --wha-card-border:#2d4840; --wha-card-hover:#0cca78;
  --wha-accent:#20db90; --wha-icon-bg:#163c2e; --wha-title-color:#f5f8f6;
  --wha-text-color:#b4c2bb; --wha-arrow-bg:#22372e; --wha-arrow-color:#b5fbe0;
}
.wha-resources.wha-theme-mint {
  --wha-card-bg:#eaf7f0; --wha-card-border:#c3e8d4; --wha-card-hover:#00a85c;
  --wha-accent:#007940; --wha-icon-bg:#d4f1df; --wha-title-color:#123121;
  --wha-text-color:#4f6a5b; --wha-arrow-bg:#d4eedf; --wha-arrow-color:#17633d;
}
.wha-resources.wha-theme-ice {
  --wha-card-bg:#f0f3f3; --wha-card-border:#d8e1df; --wha-card-hover:#16a56c;
  --wha-accent:#008b55; --wha-icon-bg:#dceee7; --wha-title-color:#18272c;
  --wha-text-color:#65747a; --wha-arrow-bg:#e2ebe8; --wha-arrow-color:#285644;
}
.wha-resources-inner { max-width:1300px; width:100%; margin-inline:auto; }
.wha-resources-header { margin:0 0 36px; padding:0; text-align:center; background:transparent; }
.wha-resources-eyebrow { display:block; margin:0 0 14px; color:#1bd784; font-family:inherit; font-size:11px; font-weight:700; line-height:1.4; letter-spacing:.17em; text-transform:uppercase; }
.wha-resources-title {
  display:block; margin:0 auto 14px; max-width:1000px;
  color:#fafafa; font-family:inherit; font-size:clamp(28px, 3.3vw, 49px);
  font-weight:750; line-height:1.13; letter-spacing:-.045em;
}
.wha-resources-title-highlight {color:#00d683;}
.wha-resources-subtitle { margin:0 auto; max-width:760px; color:#d4dfda; font-family:inherit; font-size:16px; font-weight:400; line-height:1.65; }
.wha-resources-count { display:inline-block; color:#b8d1c5; margin-top:12px; font-size:12px; }
.wha-resources-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); align-items:stretch; gap:18px; }
.wha-resource-card, a.wha-resource-card {
  position:relative; display:flex; flex-direction:row; align-items:flex-start; gap:14px;
  min-width:0; min-height:154px; margin:0; padding:23px 20px;
  background:var(--wha-card-bg); color:var(--wha-title-color);
  border:1px solid var(--wha-card-border); border-radius:14px;
  text-decoration:none !important; text-align:left;
  box-shadow:0 5px 22px rgb(0 0 0 / 0.065);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.wha-resource-top { display:block; flex:0 0 46px; width:46px; min-width:0; }
.wha-resource-icon {
  display:flex; flex:0 0 46px; align-items:center; justify-content:center;
  width:46px; height:46px; color:var(--wha-accent); background:var(--wha-icon-bg); border-radius:13px;
}
.wha-resource-icon svg { display:block; width:25px; height:25px; }
.wha-resource-icon i {font-size:23px; line-height:1;}
.wha-resource-badge {
  position:absolute; bottom:12px; left:22px; padding:4px 7px;
  border-radius:12px; color:var(--wha-accent); background:var(--wha-icon-bg);
  font-family:inherit; font-size:10px; font-weight:650; line-height:1.1; letter-spacing:.02em; white-space:nowrap;
}
.wha-resource-body { display:flex; flex:1; flex-direction:column; min-width:0; padding-top:2px; padding-right:2px; }
.wha-resource-title {
  display:block; margin:0; color:var(--wha-title-color); font-family:inherit; font-size:16px; font-weight:700; line-height:1.28;
  letter-spacing:-.02em; overflow-wrap:anywhere;
}
.wha-resource-description {
  display:block; margin:10px 0 0; color:var(--wha-text-color);
  font-family:inherit; font-size:13px; font-weight:400; line-height:1.62; overflow-wrap:anywhere; max-width: 98%;
}
.wha-resource-arrow {
  position:absolute; top:18px; right:16px; display:flex; align-items:center; justify-content:center;
  width:31px; height:31px; border-radius:50%;
  background:var(--wha-arrow-bg); color:var(--wha-arrow-color);
}
.wha-resource-arrow svg {display:block; width:17px; height:17px;}
.wha-resource-card--link {cursor:pointer;}
@media (hover:hover) {
  .wha-resource-card--link:hover {
    border-color:var(--wha-card-hover); transform:translateY(-3px);
    box-shadow:0 12px 24px rgb(0 0 0 / .13);
    color:var(--wha-title-color); text-decoration:none;
  }
}
.wha-resource-card--link:focus-visible {outline:3px solid var(--wha-card-hover); outline-offset:3px;}
/* Quando há 14 cards em quatro colunas, os dois últimos ficam centralizados. */
@media (min-width:1025px) {
  .wha-resources-grid--center-last-two > .wha-resource-card:nth-last-child(2) {grid-column:2;}
}
@media (max-width:1024px) {
  .wha-resources-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .wha-resource-card, a.wha-resource-card {min-height:150px;}
}
@media (max-width:767px) {
  .wha-resources {padding:36px 15px 44px;}
  .wha-resources-title {font-size:clamp(27px,7vw,36px);}
  .wha-resources-subtitle {font-size:14px;line-height:1.58;}
  .wha-resources-header {margin-bottom:26px;}
  .wha-resources-grid {grid-template-columns:1fr;gap:12px;}
  .wha-resource-card, a.wha-resource-card {min-height:132px;padding:19px 17px;gap:13px;}
  .wha-resource-top {flex-basis:44px;width:44px;}
  .wha-resource-icon {width:44px;height:44px;}
  .wha-resource-icon svg {width:23px;height:23px;}
  .wha-resource-icon i {font-size:21px;}
  .wha-resource-arrow {top:15px;right:15px;}
  .wha-resource-title {font-size:16px;}
}
@media (prefers-reduced-motion:reduce) {
  .wha-resource-card {transition:none !important;}
  .wha-resource-card--link:hover {transform:none !important;}
}
