/* v842: one compact resource card on each of the IELTS and Student Visa pages.
   All selectors are scoped to the two approved source pages. */
.th-ielts377 .th-v842-resource-card,
.th-v795-page--student .th-v842-resource-card{
  position:relative;isolation:isolate;overflow:hidden;display:grid;
  grid-template-columns:minmax(0,1fr) auto;align-items:center;
  column-gap:clamp(18px,3.4vw,54px);row-gap:18px;
  margin-top:25px;padding:28px clamp(22px,3vw,36px);
  border:1px solid rgba(255,255,255,.20);border-radius:22px;
  box-shadow:0 18px 42px rgba(5,22,42,.12);color:#fff;
}
.th-ielts377 .th-v842-resource-card--navy{background:linear-gradient(115deg,#081d38 0%,#113254 75%,#174365 100%)}
.th-v795-page--student .th-v842-resource-card--red{background:linear-gradient(115deg,#ba1420 0%,#e31e24 70%,#ea4147 100%)}
.th-ielts377 .th-v842-resource-card:after,
.th-v795-page--student .th-v842-resource-card:after{
  content:"";position:absolute;z-index:-1;right:-84px;bottom:-155px;
  width:290px;height:290px;border:42px solid rgba(255,255,255,.055);border-radius:50%;pointer-events:none;
}
.th-ielts377 .th-v842-resource-card__copy,
.th-v795-page--student .th-v842-resource-card__copy{min-width:0}
.th-ielts377 .th-v842-resource-card__eyebrow,
.th-v795-page--student .th-v842-resource-card__eyebrow{
  display:inline-block;margin:0 0 9px;color:#ffd0d5;font-size:11px;
  font-weight:750;line-height:1.4;letter-spacing:.09em;text-transform:uppercase;
}
.th-ielts377 .th-v842-resource-card--navy .th-v842-resource-card__eyebrow{color:#ff9da6}
.th-ielts377 .th-v842-resource-card h3,
.th-v795-page--student .th-v842-resource-card h3{
  margin:0 0 8px;color:#fff!important;font-size:clamp(20px,2vw,25px);
  line-height:1.27;letter-spacing:-.025em;font-weight:800;
}
.th-ielts377 .th-v842-resource-card p,
.th-v795-page--student .th-v842-resource-card p{
  margin:0;max-width:690px;color:rgba(255,255,255,.92)!important;
  font-size:14px;line-height:1.62;
}
.th-ielts377 .th-v842-resource-card__link,
.th-v795-page--student .th-v842-resource-card__link{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  max-width:320px;min-height:47px;padding:12px 16px;border:1px solid #fff;
  border-radius:11px;background:#fff;color:#a91825!important;
  font-size:13.5px;font-weight:500!important;line-height:1.35;
  text-align:center;text-decoration:none!important;
  transition:transform .2s ease,background .2s ease,border-color .2s ease;
}
.th-ielts377 .th-v842-resource-card--navy .th-v842-resource-card__link{color:#09213f!important}
.th-ielts377 .th-v842-resource-card__link:hover,
.th-v795-page--student .th-v842-resource-card__link:hover{
  transform:translateY(-2px);background:#f6f8fb;border-color:#f6f8fb;
}
.th-ielts377 .th-v842-resource-card__link:focus-visible,
.th-v795-page--student .th-v842-resource-card__link:focus-visible{
  outline:3px solid #ffd2d7;outline-offset:4px;
}
.th-ielts377 .th-v842-resource-card__link span,
.th-v795-page--student .th-v842-resource-card__link span{font-size:18px;line-height:1;flex:0 0 auto}
@media(max-width:850px){
  .th-ielts377 .th-v842-resource-card,
  .th-v795-page--student .th-v842-resource-card{grid-template-columns:1fr;padding:25px}
  .th-ielts377 .th-v842-resource-card__link,
  .th-v795-page--student .th-v842-resource-card__link{max-width:100%;justify-self:start}
}
@media(max-width:480px){
  .th-ielts377 .th-v842-resource-card,
  .th-v795-page--student .th-v842-resource-card{margin-top:20px;padding:22px;border-radius:18px}
  .th-ielts377 .th-v842-resource-card__link,
  .th-v795-page--student .th-v842-resource-card__link{width:100%;justify-self:stretch}
}
@media(prefers-reduced-motion:reduce){
  .th-ielts377 .th-v842-resource-card__link,
  .th-v795-page--student .th-v842-resource-card__link{transition:none}
}
