/* Home Page */
.faq,
.home-project,
.rinote {
  height: auto !important;
  min-height: 0 !important;
}

/*Hero section*/
.hero-section {
  padding: 20px 0;
  display: flex;
  align-items: center;
  padding-bottom: 10%;
  padding-top: 5%;
}

.hero-profile-border {
  position: relative;
  display: inline-block;
  border-radius: 40%;
  padding: 10px;
  animation: borderPulse 2s infinite;
}

.hero-profile-img {
  width: 100%;
  max-width: 300px;
  border-radius: 0%;
  border: 5px solid;
  border-image: linear-gradient(45deg, #230240, #e2cfeb, #230240) 1;
}

.hero-divider {
  height: 200px;
  width: 2px;
  background: linear-gradient(to bottom, #230240, #e2cfeb);
  margin: auto;
}

.hero-description-bg {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 50px;
  border-radius: 12px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.hero-buttons .btn-cta {
  justify-content: center;
}

.hero-btn {
  background-color: #9056b2;
  color: white;
}

.lead {
  font-size: 1.6rem;
  margin-bottom: 30px;
}
.description-text {
  font-weight: 400;
  letter-spacing: var(--paragraph-letter-spacing);
  margin-top: 20px;
  margin-bottom: 60px;
  padding-right: 15px;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  font-family: var(--paragraph-font-family);
}

.home-project {
  height: 100vh;
}

.rinote {
  height: 50vh;
}

.faq {
  height: 100vh;
}

@media (max-width: 1180px) {
  .hero-section {
    padding-top: 25%;
  }

  .hero-section .row {
    flex-direction: column !important;
  }

  .hero-section .row > [class^="col-"],
  .hero-section .row > [class*=" col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  .hero-divider {
    display: none !important;
  }

  .hero-profile-img {
    width: 300%;
    height: 100%;
    margin: 0 auto;
    display: block;
  }
  .hero-profile-border {
    display: flex;
    justify-content: center;
  }

  .hero-description-bg {
    width: 90%;
    max-width: 720px;
    padding: 24px;
    padding-bottom: 5%;
    margin: 12px auto 0;
    text-align: center;
  }

  .description-text {
    margin-bottom: 24px;
    padding-right: 0;
    text-align: left;
    padding-bottom: 5%;
  }
  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 20px;
    margin-bottom: 10%;
  }
  .lead {
    font-size: 1.1rem;
    margin: 10px 0 20px 0;
    padding: 0;
  }
  .hero-profile-img {
    width: 300%;
    height: 100%;
    margin: 0 auto;
    display: block;
  }
  .hero-description-bg {
    padding: 24px 24px 40px 24px;
    margin: 0% 2% 0% 2.3%;
  }
  .description-text {
    margin-bottom: 30px;
    text-align: left;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 100px 0 16px;
  }
  .hero-profile-img {
    max-width: 180px;
  }
  .hero-description-bg {
    padding: 20px;
    width: 95%;
    padding-bottom: 10%;
  }
  .description-text {
    margin-bottom: 20px;
  }
  .home-project,
  .rinote,
  .faq {
    height: auto;
    min-height: 0;
    padding: 30px 0;
  }
  .hero-buttons {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }
  .hero-buttons .btn-cta {
    flex: 0 1 auto;
    min-width: 0;
    padding: 0.6rem 0.95rem;
    font-size: 0.8rem;
  }

  .lead{
    text-align: left;
    font-size: 18px;
  }
  .display-4 {
    font-size: 2rem;
    text-align: left;
  }
}

/*Projects section*/
.projects-section {
  position: relative;
  padding: 24px 14px 68px;
  text-align: center;
  background: linear-gradient(135deg, #0a0216 0%, #20043d 48%, #09031b 100%);
  overflow: hidden;
  isolation: isolate;
}

.projects-section::before,
.projects-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.projects-section::before {
  background:
    radial-gradient(120% 80% at 12% 18%, rgba(255, 255, 255, 0.18) 0%, transparent 70%),
    radial-gradient(90% 65% at 85% 10%, rgba(137, 86, 215, 0.45) 0%, transparent 75%);
  transform: translate3d(0, 0, 0);
}

.projects-section::after {
  background:
    radial-gradient(120% 85% at 50% 110%, rgba(35, 2, 64, 0.65) 0%, transparent 70%),
    radial-gradient(80% 60% at 10% 90%, rgba(140, 101, 223, 0.35) 0%, transparent 70%);
  mix-blend-mode: screen;
  opacity: 0.8;
}

.projects-section .container {
  position: relative;
  z-index: 1;
}

.projects-swiper {
  padding-bottom: 36px;
  overflow: visible;
}

.swiper-wrapper {
  padding: 0;
  margin: 0;
  align-items: stretch;
}

.swiper-slide {
  display: flex;
  background: transparent;
  margin: 0 !important;
  padding: 0 !important;
}

.project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  padding: 24px 22px 30px;
  text-align: left;
  color: var(--main-bg);
  --paragraph-color: var(--main-bg);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 232, 255, 0.9) 52%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 20px 54px -34px rgba(12, 0, 44, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  overflow: hidden;
  isolation: isolate;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: -55% 40% 68% -28%;
  background: radial-gradient(70% 70% at 50% 50%, rgba(137, 86, 215, 0.42) 0%, rgba(241, 230, 255, 0) 72%);
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
}

.project-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.project-title {
  margin: 6px 0 8px;
  font-weight: 700;
  font-size: 20px;
  color: var(--main-bg);
  text-align: center;
}

.project-desc {
  margin: 0;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  padding: 3px 5px;
}

.github-btn {
  background: var(--main-bg);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  border: none;
  margin-top: 16px;
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: rgba(35, 2, 64, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 16px;
  opacity: 0;
  transition: opacity .3s ease;
  text-decoration: none !important;
}

.github-round {
  background: #fff;
  color: var(--main-bg);
  font-size: 2rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .project-card:hover .overlay {
    opacity: 1;
  }
}

@media (max-width: 576px) {
  .projects-section {
    padding: 18px 16px 68px;
  }

  .projects-swiper {
    padding: 0 20px 40px;
  }

  .swiper-slide {
    width: 100% !important;
  }

  .project-card {
    padding: 18px 16px 22px;
    border-radius: 14px;
    border: 1px solid rgba(137, 86, 215, 0.18);
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 238, 255, 0.94) 56%, rgba(241, 232, 255, 0.98) 100%);
    box-shadow: 0 14px 26px -24px rgba(11, 6, 32, 0.8);
    row-gap: 10px;
    align-items: flex-start;
  }

  .project-card::before {
    content: none;
  }

  .project-title {
    font-size: 1.05rem;
    text-align: left;
    margin-bottom: 6px;
  }
  .project-desc {
    padding: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(35, 2, 64, 0.82);
    text-align: left;
  }

  .github-btn.mobile-only {
    margin-top: 6px;
    align-self: flex-start;
  }
}

@media (min-width: 577px) and (max-width: 991.98px) {
  .projects-section {
    padding: 24px 5% 56px;
  }

  .swiper-slide {
    width: 48% !important;
  }

  .project-card {
    padding: 22px 20px 28px;
  }
  .project-title {
    font-size: 20px;
  }
  .project-desc {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    padding: 3px 5px;
  }
}

@media (min-width: 992px) {
  .projects-section {
    padding: 32px 6% 64px;
  }

  .swiper {
    margin: 0 auto;
  }
  .swiper-wrapper {
    padding: 0;
  }

  .swiper-slide {
    width: 31.5% !important;
  }

  .project-card {
    padding: 26px 24px 34px;
  }

  .project-title {
    font-size: 22px;
  }

  .project-desc {
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    padding: 3px 5px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .projects-section .swiper-slide {
    width: 48% !important;
  }
}

@media (min-width: 1200px) {
  .projects-section {
    padding: 40px 6% 72px;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .projects-section .row > .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (width: 744px), (width: 1133px) {
  .projects-section .row > .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-desc {
  flex: 1 1 auto;
  margin-bottom: 0;
  
}

.project-card .overlay {
  opacity: 0;
  pointer-events: none;
}

.github-btn.mobile-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  margin: 12px auto 8px;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background:
    linear-gradient(135deg, rgba(137, 86, 215, 0.9) 0%, rgba(62, 19, 130, 0.9) 65%, rgba(18, 5, 52, 0.92) 100%);
  box-shadow: 0 12px 20px -18px rgba(28, 5, 70, 0.6);
  color: #fff;
  text-decoration: none;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
  position: relative;
  overflow: hidden;
  align-self: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.25s ease;
}

.github-btn.mobile-only::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 120% at 15% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 62%);
  opacity: 0.85;
  pointer-events: none;
}

.github-btn.mobile-only:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.github-btn.mobile-only:active {
  transform: translateY(1px);
  box-shadow: 0 10px 14px -16px rgba(28, 5, 70, 0.58);
}

.github-btn.mobile-only i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 8px;
  font-size: 0.95rem;
  flex: 0 0 auto;
  transition: background 0.3s ease, transform 0.3s ease;
}

.github-btn.mobile-only span {
  flex: 0 1 auto;
  text-align: center;
  letter-spacing: 0.025em;
}

@media (hover: hover) and (pointer: fine) {
  .github-btn.mobile-only {
    display: none !important;
  }
  .project-card:hover .overlay {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (hover: none), (max-width: 1024px) {
  .project-card .overlay {
    display: none !important;
  }
  .github-btn.mobile-only {
    display: flex !important;
  }
}

/*Research interest section*/
.research-section {
  position: relative;
  background: linear-gradient(135deg, rgba(102, 76, 255, 0.08), rgba(22, 217, 227, 0.08));
  overflow: hidden;
}

.research-section::before,
.research-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.research-section::before {
  width: 420px;
  height: 420px;
  top: -160px;
  left: -100px;
  background: radial-gradient(circle at 30% 30%, rgba(102, 76, 255, 0.25), rgba(102, 76, 255, 0));
}

.research-section::after {
  width: 520px;
  height: 520px;
  right: -160px;
  bottom: -220px;
  background: radial-gradient(circle at 70% 70%, rgba(0, 175, 196, 0.2), rgba(0, 175, 196, 0));
}

.research-section .container {
  position: relative;
  z-index: 1;
}

.research-section-title {
  font-size: clamp(1.8rem, 1.2rem + 1.2vw, 2.5rem);
  font-weight: 500;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(32, 5, 76, 0.2);
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
}

.research-section-title::before,
.research-section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  height: 3px;
  background-color: #fff;
}

.research-section-title::before {
  width: 250px;
  bottom: 8px;
}

.research-section-title::after {
  width: 200px;
  bottom: 0;
}

.research-item {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8)) padding-box,
              linear-gradient(135deg, rgba(102, 76, 255, 0.25), rgba(22, 217, 227, 0.25)) border-box;
  border: 1px solid transparent;
  border-radius: 20px;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.09);
  color: var(--main-bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: clamp(1rem, 1rem + 0.4vw, 1.5rem);
  height: 100%;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  z-index: 0;
}

.research-item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(102, 76, 255, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
  pointer-events: none;
}

.research-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 50px rgba(15, 23, 42, 0.16);
}

.research-item:hover::after {
  opacity: 1;
}

.research-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, #6a5bff, #48c6ef);
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 16px 30px rgba(84, 95, 244, 0.3);
}

.research-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--main-bg);
  background: rgba(102, 76, 255, 0.12);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
}

.research-item h4 {
  font-size: clamp(.8rem, 1.02rem + 0.3vw, 1rem);
  font-weight: 600;
  margin: 0;
  text-align: left;
}

.research-item p {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  color: rgba(26, 30, 46, 0.78);
  text-align: left;
  font-family: 'inter', sans-serif;
}

.research-section .col:nth-child(2) .research-icon {
  background: linear-gradient(135deg, #ff7eb3, #ff758c);
  box-shadow: 0 16px 30px rgba(255, 120, 164, 0.35);
}

.research-section .col:nth-child(3) .research-icon {
  background: linear-gradient(135deg, #5efce8, #736efe);
  box-shadow: 0 16px 30px rgba(115, 110, 254, 0.3);
}

.research-section .col:nth-child(4) .research-icon {
  background: linear-gradient(135deg, #fddb92, #d1fdff);
  color: #3b2d7d;
  box-shadow: 0 16px 30px rgba(253, 219, 146, 0.4);
}

@media (min-width: 768px) and (max-width: 1024px) {
  .research-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .research-grid .research-item {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 20px 45px;
  }

  .research-item {
    align-items: center;
    text-align: center;
  }

  .research-item h4 {
    font-size: 1.05rem;
  }

  .research-item p {
    font-size: 0.95rem;
    text-align: center;
    padding: 0 8px;
  }

  .research-badge {
    justify-content: center;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .research-section .col-12.col-md-6.col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (width: 744px), (width: 1133px) {
  .research-section .col-12.col-md-6.col-lg-3 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/*Instagram Section*/
.instagram-section {
  background: rgba(255, 255, 255, 0.05);
  text-align: center;
}

.instagram-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.instagram-row {
  display: flex;
  justify-content: center;
}

.instagram-embed {
  display: block;
  width: 100%;
  max-width: 960px;
  border: 0;
  border-radius: 18px;
  box-shadow: 0 18px 32px rgba(12, 4, 28, 0.28);
  overflow: hidden;
  min-height: 0;
  height: auto;
}

@media (max-width: 575.98px) {
  .instagram-header {
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  .instagram-embed {
    min-height: 320px;
    border-radius: 14px;
  }
}

/*rinote.co section*/
.rinote {
  position: relative;
  color: #fff;
  background-image: url("/images/rinote/rinote-bg.jpg");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  padding: 32px 16px;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (min-width: 576px) {
  .rinote {
    padding: 40px 24px;
  }
}

@media (min-width: 768px) {
  .rinote {
    padding: 56px 6%;
  }
}

@media (min-width: 992px) {
  .rinote {
    padding: 72px 12%;
    background-attachment: fixed;
  }
}

.rinote::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(33, 1, 72, 0.7);
  z-index: 0;
}

.rinote .container {
  position: relative;
  z-index: 1;
  max-width: 980px;
}

.rinote-copy {
  max-width: 960px;
  margin: 0 auto 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.rinote-kicker {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
  margin-top: 20px;
}

.rinote-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem;
  width: 100%;
  display: grid;
  gap: 1.5rem;
}

.rinote-highlight {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 1.75rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.rinote-highlight:hover,
.rinote-highlight:focus-within {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.rinote-highlight-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

.rinote-highlight-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
  line-height: 1.65;
}

.rinote .btn-cta--rinote-alt {
  margin: 36px auto 0;
  padding: 0.95rem 2.4rem;
}

@media (min-width: 576px) {
  .rinote-highlights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .rinote-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .rinote-copy {
    gap: 1.25rem;
  }

  .rinote-kicker {
    letter-spacing: 0.2em;
    font-size: 0.75rem;
  }

  .rinote-highlights {
    margin-bottom: 2.5rem;
  }

  .rinote-highlight {
    padding: 1.5rem;
  }

  .rinote .btn-cta--rinote-alt {
    width: 100%;
    max-width: 320px;
    margin: 28px auto 0;
    padding: 0.85rem 1.3rem;
  }
}

/*FAQ Section*/
.faq {
  margin: 0;
  padding: 32px 0 56px;
}

.faq-header {
  width: min(760px, 100% - 32px);
  margin: 0 auto 28px;
  text-align: center;
}

.faq-subtitle {
  margin: 0;
  color: rgba(35, 2, 64, 0.65);
  font-size: 0.95rem;
}

.faq-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
  width: min(760px, 100% - 32px);
  margin: 0 auto;
  text-align: left;
}

.faq-card {
  border-radius: 16px;
  border: 1px solid rgba(35, 2, 64, 0.12);
  background: #fff;
  box-shadow: 0 12px 32px -24px rgba(35, 2, 64, 0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  padding: 0;
}

.faq-card:hover {
  border-color: rgba(35, 2, 64, 0.32);
  box-shadow: 0 18px 40px -24px rgba(35, 2, 64, 0.5);
  transform: translateY(-2px);
}

.faq-card[open] {
  border-color: rgba(137, 86, 215, 0.65);
  box-shadow: 0 22px 40px -22px rgba(137, 86, 215, 0.55);
}

.faq-card summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  row-gap: 0.4rem;
  column-gap: 0.75rem;
  padding: 1.35rem 1.4rem 1.1rem;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(35, 2, 64, 0.08);
  color: rgba(35, 2, 64, 0.9);
  font-weight: 600;
  font-size: 1.15rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.faq-card[open] summary::after {
  content: "\2212";
  background: rgba(137, 86, 215, 0.15);
  color: rgba(35, 2, 64, 0.92);
}

.faq-card summary:focus-visible {
  outline: 3px solid rgba(137, 86, 215, 0.35);
  outline-offset: 4px;
  border-radius: 14px;
}

.faq-meta {
  grid-column: 1 / 2;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(35, 2, 64, 0.48);
}

.faq-question {
  grid-column: 1 / 2;
  font-size: 1.05rem;
  font-weight: 600;
  color: rgba(35, 2, 64, 0.95);
}

.faq-answer {
  margin: 0;
  padding: 1rem 1.4rem 1.4rem;
  border-top: 1px solid rgba(35, 2, 64, 0.08);
  color: rgba(35, 2, 64, 0.78);
  font-size: 0.98rem;
  line-height: 1.6;
}

.faq-answer a {
  color: #8956d7;
  font-weight: 600;
}

.faq-answer a:hover,
.faq-answer a:focus {
  color: #6c39ba;
}

@media (min-width: 576px) {
  .faq {
    padding: 40px 0 64px;
  }

  .faq-header {
    margin-bottom: 32px;
  }

  .faq-grid {
    width: min(820px, 100% - 48px);
    gap: 1.25rem;
  }
}

@media (min-width: 768px) {
  .faq {
    padding: 48px 0 72px;
  }

  .faq-grid {
    width: min(880px, 100% - 64px);
  }
}

@media (min-width: 992px) {
  .faq {
    padding: 56px 0 80px;
  }

  .faq-grid {
    width: min(900px, 100% - 96px);
  }
}
