.layout {
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  gap: 28px;
  padding: 58px 0 70px;
}
.sidebar {
  position: relative;
}
.toc {
  position: sticky;
  top: 100px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  border: 1px solid var(--line);
}
.toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--navy);
}
.toc a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  padding: 9px 0;
  border-bottom: 1px solid #eef3f8;
  font-size: 14px;
}
.toc a:hover {
  color: var(--blue);
  transform: translateX(3px);
}
.content {
  min-width: 0;
}
.quick-card,
.content-section,
.faq-section {
  background: rgba(255, 255, 255, 0.93);
  border-radius: 28px 10px 28px 10px;
  box-shadow: var(--shadow);
  padding: 34px;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.section-heading span {
  width: 38px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  box-shadow: 0 0 0 5px rgba(255, 201, 40, 0.12);
}
h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 2vw, 3rem);
  letter-spacing: -0.03em;
}
h3 {
  color: var(--blue);
  margin: 28px 0 8px;
  font-size: 2rem;
}
p {
  margin: 0 0 16px;
}
.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  padding: 0;
  list-style: none;
}
.feature-list li {
  position: relative;
  padding: 13px 14px 13px 40px;
  background: linear-gradient(135deg, #fff9ed, #faf4ff);
  border: 1px solid #eadff3;
  border-radius: 14px;
  font-size: 14px;
}
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  color: var(--blue);
  font-weight: 800;
}
.table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid var(--line);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
th,
td {
  padding: 15px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  width: 34%;
  background: linear-gradient(135deg, #f2e8ff, #fff1d5);
  color: var(--navy);
}
tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}
.note {
  background: var(--cream);
  border-left: 5px solid var(--gold);
  padding: 20px;
  border-radius: 14px;
}
.resource-link a {
  display: inline-flex;
  padding: 10px 14px;
  background: #f4eaff;
  color: var(--blue);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}
.resource-link a:hover {
  background: linear-gradient(135deg, var(--blue), #9b42aa);
  color: white;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 12px;
}
.faq-question {
  width: 100%;
  background: white;
  border: 0;
  padding: 19px 20px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font: inherit;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}
.faq-question:hover {
  background: #fbf7ff;
}
.faq-icon {
  font-size: 1.4rem;
  color: var(--blue);
  transition: 0.25s;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #fffaf1;
}
.faq-answer p {
  padding: 0 20px 20px;
  margin: 0;
  color: var(--muted);
}
.faq-item.active .faq-answer {
  max-height: 300px;
}
.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.site-footer {
  background: var(--navy);
  color: #dce8fb;
  padding: 52px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}
.footer-title {
  color: white;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.footer-grid h4 {
  color: var(--gold);
  margin: 0 0 12px;
}
.footer-grid a {
  display: block;
  text-decoration: none;
  margin: 7px 0;
  color: #dce8fb;
  font-size: 0.9rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.82rem;
  color: #9fb1ca;
}

.content-section:nth-of-type(3n + 1) {
  border-left: 6px solid var(--gold);
}
.content-section:nth-of-type(3n + 2) {
  border-top: 6px solid var(--cyan);
}
.content-section:nth-of-type(3n) {
  border-right: 6px solid var(--blue);
}
.content-section::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  right: -55px;
  top: -55px;
  background: radial-gradient(
    circle,
    rgba(255, 201, 40, 0.18),
    transparent 68%
  );
  pointer-events: none;
}
.resource-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.resource-card {
  display: block;
  text-decoration: none;
  padding: 20px;
  border-radius: 20px 7px 20px 7px;
  background: linear-gradient(135deg, #2b174b, #6b2fb8);
  color: #fff;
  box-shadow: var(--shadow);
  transition: 0.25s transform;
}
.resource-card:hover {
  transform: translateY(-4px);
}
.resource-card strong {
  display: block;
  color: var(--gold);
  margin-bottom: 6px;
}
.resource-card small {
  color: #eee3ff;
  line-height: 1.5;
  display: block;
}
@media (max-width: 640px) {
  .resource-hub {
    grid-template-columns: 1fr;
  }
  .hero-card h1 {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }
  .hero-card {
    padding: 24px 18px;
  }
  .hero-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
  }
  .content-section,
  .quick-card,
  .faq-section {
    padding: 20px 16px;
  }
  .table-wrap {
    margin-inline: -4px;
  }
  .nav.open .header-actions {
    flex-direction: column;
  }
  .nav.open .header-actions .btn {
    width: 100%;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }
  .nav-links,
  .header-actions {
    display: none;
  }
  .nav.open {
    flex-wrap: wrap;
    padding-bottom: 18px;
  }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 0;
  }
  .nav.open .nav-links a {
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav.open .header-actions {
    display: flex;
    width: 100%;
  }
  .nav.open .header-actions .btn {
    flex: 1;
  }
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .hero {
    padding: 0 20px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1180px);
  }
  .nav {
    min-height: 68px;
  }
  .hero-wrap {
    padding-top: 10px;
  }
  .hero-image {
    border-radius: 18px;
    max-height: 250px;
  }
  .hero {
    margin-top: 16px;
    padding: 0;
  }
  .hero-card {
    padding: 26px 20px;
    border-radius: 22px 7px 22px 7px;
  }
  .layout {
    padding-top: 34px;
  }
  .quick-card,
  .content-section,
  .faq-section {
    padding: 21px 17px;
    border-radius: 18px;
  }
  .feature-list {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
}

.brand span,
.nav-links a:hover,
.footer-grid h4 {
  color: #ff8a00;
}
.nav-links a,
.site-footer,
.footer-grid a {
  color: #ededed;
}
.btn-primary {
  color: #111;
  background: linear-gradient(135deg, #ff7800, #ffad33);
}
.btn-outline:hover {
  border-color: #ff8a00;
  color: #ff8a00;
}
.hero-side-image {
  width: 100%;
  height: 100%;
  min-height: 330px;
  max-height: 470px;
  object-fit: cover;
  object-position: center;
}
.toc,
.quick-card,
.content-section,
.faq-section {
  background: #fff;
  border-color: #dedede;
}
.toc strong,
h2,
.faq-question {
  color: #151515;
}
.toc a:hover,
h3,
.faq-icon {
  color: #e95f00;
}
.section-heading span {
  background: linear-gradient(90deg, #ff6a00, #ffad33);
  box-shadow: 0 0 0 5px rgba(255, 106, 0, 0.1);
}
.feature-list li {
  background: linear-gradient(135deg, #fff7ef, #f3f3f3);
  border-color: #dedede;
}
.feature-list li::before {
  color: #f06400;
}
th {
  background: linear-gradient(135deg, #171717, #383838);
  color: #fff;
}
.resource-link a {
  background: #fff0e5;
  color: #d95600;
  border: 1px solid #ffc08d;
}
.resource-link a:hover {
  background: linear-gradient(135deg, #df5700, #ff8a00);
  color: #fff;
}
.faq-question:hover,
.faq-answer {
  background: #f5f5f5;
}
.site-footer {
  background: #0c0c0c;
}
.content-section:nth-of-type(3n + 1) {
  border-left-color: #ff7600;
}
.content-section:nth-of-type(3n + 2) {
  border-top-color: #bdbdbd;
}
.content-section:nth-of-type(3n) {
  border-right-color: #252525;
}
.content-section::after {
  background: radial-gradient(
    circle,
    rgba(255, 117, 0, 0.14),
    transparent 68%
  );
}
.resource-card {
  background: linear-gradient(135deg, #101010, #363636);
  border: 1px solid #4b4b4b;
}
.resource-card strong {
  color: #ff8a00;
}
.resource-card small {
  color: #d6d6d6;
}
.gcash-feature-image {
  margin: 36px 0 24px;
  padding: 22px;
  background: linear-gradient(135deg, #f3f3f3, #fff);
  border: 1px solid #d7d7d7;
  border-left: 6px solid #ff7600;
  border-radius: 8px 24px 8px 24px;
}
.gcash-feature-image img {
  display: block;
  width: 100%;
  max-width: 1050px;
  height: auto;
  max-height: none;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.step-card {
  position: relative;
  min-width: 0;
  padding: 22px 18px 18px;
  background: #f7f7f7;
  border: 1px solid #d8d8d8;
  border-top: 4px solid #f06400;
  border-radius: 16px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.step-card h4,
.device-step h4 {
  margin: 0 0 7px;
  color: #111;
  font-size: 1.6rem;
  line-height: 1.35;
}
.step-card p,
.device-step p {
  margin: 0;
  color: #5c5c5c;
  font-size: 1.4rem;
  line-height: 1.65;
}
.steps-note {
  padding: 16px 18px;
  background: #fff4e8;
  border-left: 4px solid #f06400;
  border-radius: 10px;
}
.device-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 26px;
}
.device-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}
.device-step b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #f06400;
  color: #fff;
  font-size: 1.3rem;
}
@media (max-width: 980px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-image {
    height: auto;
    max-height: none;
    object-fit: contain;
  }
}
@media (max-width: 680px) {
  .steps-grid,
  .device-steps {
    grid-template-columns: 1fr;
  }
  .step-card,
  .device-step {
    padding: 17px 15px;
  }
  .hero-image {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 14px;
  }
}

@media (max-width: 980px) {
  .gcash-feature-image {
    padding: 16px;
    margin: 30px 0 22px;
  }
  .gcash-feature-image img {
    max-width: 100%;
  }
}
@media (max-width: 640px) {
  .gcash-feature-image {
    margin: 24px 0 20px;
    padding: 8px;
    border-left-width: 4px;
    border-radius: 6px 16px 6px 16px;
  }
  .gcash-feature-image img {
    width: 100%;
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  }
}

.responsible-image {
  margin: 28px 0;
  text-align: center;
}
.responsible-image img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.app-feature-image {
  margin: 30px 0 24px;
  text-align: center;
}
.app-feature-image img {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
  .content-section,
  .faq-section,
  .quick-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 700px;
  }
}
.footer {
  color: #fff;
  padding-block: 30px;
  background-color: #11236b;
}
.footer__wrap {
  gap: 20px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 20px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-left: -75px;
}
@media screen and (max-width: 767px) {
  .footer__wrap {
    gap: 10px;
    margin-left: 0;
    margin-bottom: 30px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
}
.footer__card {
  padding: 30px;
  border-radius: 20px;
  background-color: #25387c;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  -webkit-box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.1);
          box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.1);
}
.footer__image {
  height: 40px;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
}
.footer__image--mr {
  margin-right: 10px;
}
.footer__image:hover {
  -webkit-transform: translateY(-4px);
          transform: translateY(-4px);
}
.footer__logo {
  width: 160px;
  margin-block: -20px;
}
@media screen and (max-width: 767px) {
  .footer__logo {
    width: 130px;
  }
}
.footer__head-text {
  text-align: center;
  font-size: 1.4rem;
}
.footer__socials {
  gap: 30px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-top: 30px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.footer__social-link {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 1.4rem;
  border-radius: 50%;
  position: relative;
}
.footer__social-link:nth-child(1) {
  background: #1877f2;
}
.footer__social-link:nth-child(2) {
  background: #4267b2;
}
.footer__social-link:nth-child(3) {
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf);
}
.footer__social-link:nth-child(4) {
  background: #000;
}
.footer__social-link:nth-child(5) {
  background: #08c;
}
.footer__social-link::before {
  content: "";
  width: 45px;
  height: 45px;
  z-index: -1;
  border-radius: 50%;
  position: absolute;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
  background-color: #3b4f97;
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  -webkit-box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1);
          box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.1);
}
.footer__social-link:hover::before {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}
.footer__cards {
  gap: 20px;
  display: grid;
  margin-top: 30px;
  grid-template-columns: repeat(4, 1fr);
}
@media screen and (max-width: 1290px) {
  .footer__cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 960px) {
  .footer__cards {
    grid-template-columns: repeat(1, 1fr);
  }
}
.footer__label {
  font-size: 1.8rem;
  font-weight: 700;
}
.footer__links {
  gap: 10px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-top: 10px;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.footer__links--col {
  gap: 10px 2%;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-flow: row wrap;
          flex-flow: row wrap;
}
.footer__links--col .footer__link {
  width: 49%;
}
.footer__link {
  font-size: 1.4rem;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
}
.footer__link:hover {
  color: #edc800;
}
.footer .link {
  font-weight: 700;
  color: #edc800;
}

.scroll {
  bottom: 30px;
  width: 70px;
  height: 70px;
  z-index: 10;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-transform: translateY(200%);
          transform: translateY(200%);
  position: sticky;
  margin-block: -70px 20px;
  margin-inline: auto 40px;
}
@media screen and (max-width: 767px) {
  .scroll {
    width: 40px;
    height: 40px;
    margin-inline: auto 4%;
  }
}
.scroll__wrap {
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  color: #fff;
  font-size: 2.5rem;
  border-radius: 50%;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
  cursor: pointer;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
  -webkit-box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
          box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.1);
  background: -webkit-gradient(linear, left top, right top, from(#5f7ff0), color-stop(55%, #3f5fe0), to(#2a45b8));
  background: linear-gradient(90deg, #5f7ff0 0%, #3f5fe0 55%, #2a45b8 100%);
}
@media screen and (max-width: 767px) {
  .scroll__wrap {
    font-size: 20px;
  }
}
.scroll__wrap:hover {
  -webkit-box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.4);
          box-shadow: 0 0 10px 5px rgba(0, 0, 0, 0.4);
}
.scroll.show {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}
@media screen and (max-width: 767px) {
  .pc {
    display: none;
  }
}
.sp {
  display: none;
}
@media screen and (max-width: 767px) {
  .sp {
    display: flex;
  }
}