/* ==========================================================================
   Content pages (/tools, /student-tools, /admissions, ...) restyled to match
   the Toolistify homepage: logo navbar, soft blue gradient background with
   decorative blobs, branded hero heading, homepage-style tool cards.
   ========================================================================== */

.content-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, #f0faff 0%, #ffffff 40%, #f7fcff 70%, #eaf6ff 100%);
}

/* Decorative background blobs echoing the homepage. */
.content-page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.content-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.content-blob-1 {
  top: -160px;
  right: -140px;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(0, 164, 255, 0.28), rgba(0, 164, 255, 0));
}

.content-blob-2 {
  top: 40%;
  left: -180px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle at 50% 50%, rgba(199, 244, 8, 0.22), rgba(199, 244, 8, 0));
}

.content-blob-3 {
  bottom: -200px;
  right: 10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle at 50% 50%, rgba(0, 164, 255, 0.18), rgba(0, 164, 255, 0));
}

/* -------------------------------------------------------------------------- */
/* Navbar                                                                     */
/* -------------------------------------------------------------------------- */
.content-navbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1292px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 8px;
}

.content-navbar-logo {
  display: inline-flex;
  align-items: center;
}

.content-navbar-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.content-navbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 19px rgba(0, 164, 255, 0.43);
  color: #000;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.content-navbar-btn:hover,
.content-navbar-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 164, 255, 0.5);
  outline: none;
}

.content-navbar-btn-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.content-navbar-btn-arrow {
  width: 16px;
  height: 16px;
  object-fit: contain;
  transform: rotate(90deg);
}

/* -------------------------------------------------------------------------- */
/* Main container / hero                                                      */
/* -------------------------------------------------------------------------- */
.content-page .content-page-main {
  position: relative;
  z-index: 2;
  width: min(1292px, calc(100% - 48px));
  margin: 24px auto 0;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.content-page .toolistify-breadcrumbs {
  margin-bottom: 20px;
}

.content-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 34px;
}

.content-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 19px rgba(0, 164, 255, 0.28);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #172033;
}

.content-hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #c7f408;
}

.content-page .content-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  color: #111827;
}

.content-hero-subtitle {
  margin: 0;
  width: 100%;
  max-width: none;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.4;
  color: #46566e;
  font-weight: 500;
  text-align: justify;
}

/* -------------------------------------------------------------------------- */
/* Tool cards (homepage featured-card style)                                  */
/* -------------------------------------------------------------------------- */
.content-page .content-page-tool-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 10px 0 20px;
}

.content-page .content-page-tool-group-heading {
  min-width: 0;
  margin: 0;
  color: #172033;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.content-page .content-page-tool-group-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(0, 164, 255, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #007bc2;
  box-shadow: 0 5px 14px rgba(0, 164, 255, 0.1);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.content-page .content-page-tool-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  margin: 0 0 44px;
  align-items: stretch;
}

.content-page .content-page-tool-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  color: #111;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(0, 164, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 6px 18px rgba(0, 164, 255, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.content-page .content-page-tool-card:hover,
.content-page .content-page-tool-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 164, 255, 0.2);
  border-color: rgba(0, 164, 255, 0.38);
  outline: none;
}

/* High-specificity rules + resets so the generic global.css
   `.content-page-tool-card span` pill styling never bleeds in. */
.content-page .content-page-tool-card .content-page-tool-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: auto;
  max-width: none;
  padding: 0;
  background: none;
  border-radius: 0;
}

.content-page .content-page-tool-card .content-page-tool-icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  max-width: none;
  padding: 0;
  border-radius: 16px;
  color: #008fdf;
  background: linear-gradient(145deg, #f3fbff 0%, #dff4ff 100%);
  border: 1px solid rgba(0, 164, 255, 0.16);
  box-shadow: 0 7px 16px rgba(0, 164, 255, 0.14), inset 0 1px 0 #fff;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease;
}

.content-page .content-page-tool-card .content-page-tool-icon {
  width: 30px;
  font-size: 25px;
  line-height: 1;
  text-align: center;
}

.content-page .content-page-tool-card:hover .content-page-tool-icon-tile,
.content-page .content-page-tool-card:focus-visible .content-page-tool-icon-tile {
  color: #fff;
  background: linear-gradient(145deg, #10b3ff 0%, #008bd8 100%);
  transform: scale(1.06) rotate(-3deg);
}

.content-page .content-page-tool-card .content-page-tool-badge {
  width: max-content;
  max-width: 100%;
  padding: 5px 11px;
  color: #0077c8;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(0, 164, 255, 0.1);
  border-radius: 999px;
}

.content-page .content-page-tool-card .content-page-tool-title {
  margin-top: 4px;
  color: #111827;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.content-page .content-page-tool-card .content-page-tool-desc {
  color: #53627a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.content-page .content-page-tool-card .content-page-tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  width: auto;
  max-width: none;
  padding: 10px 0 0;
  color: #00a4ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: none;
  border-radius: 0;
}

.content-page .content-page-tool-card .content-page-tool-cta-arrow {
  width: 13px;
  height: 13px;
  object-fit: contain;
  transition: transform 180ms ease;
}

.content-page .content-page-tool-card:hover .content-page-tool-cta-arrow,
.content-page .content-page-tool-card:focus-visible .content-page-tool-cta-arrow {
  transform: translateX(3px);
}

/* -------------------------------------------------------------------------- */
/* Article body / SEO content — presented in a white content card to match    */
/* the rest of the site (the standard .toolistify-content-section design).     */
/* -------------------------------------------------------------------------- */
.content-page .content-page-body {
  margin: 8px 0 0;
  padding: clamp(26px, 3.5vw, 48px);
  background:
    linear-gradient(135deg, rgba(240, 250, 255, 0.98), rgba(250, 255, 241, 0.94)),
    #fff;
  border: 1px solid rgba(0, 164, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 164, 255, 0.12);
}

.content-page .content-page-body > :first-child {
  margin-top: 0;
}

.content-page .content-page-body > :last-child {
  margin-bottom: 0;
}

/* Wider measure + tighter leading so long intro copy is easier to scan. */
.content-page .content-page-body :where(p, ul, ol, table, blockquote, h2, h3) {
  max-width: none;
}

.content-page .content-page-body :where(p, li) {
  line-height: 1.48;
  text-align: justify;
}

.content-page .content-page-body .gpa-comparison-formula {
  text-align: left;
}

.content-page .content-page-body .gpa-comparison-formula code {
  padding: 0;
  color: inherit;
  background: transparent;
  font-size: 0.96em;
}

.content-page .gpa-comparison-table-wrap {
  width: 100%;
  margin: 0 0 18px;
  overflow-x: auto;
}

.content-page .content-page-body .gpa-comparison-table {
  width: 100%;
  min-width: 620px;
  margin: 0;
  border-collapse: collapse;
  border-top: 2px solid #374151;
  border-bottom: 2px solid #374151;
  color: #172033;
}

.content-page .gpa-comparison-table thead {
  border-bottom: 1px solid #6b7280;
}

.content-page .gpa-comparison-table th,
.content-page .gpa-comparison-table td {
  width: 34%;
  padding: 4px 12px 4px 0;
  border: 0;
  text-align: left;
  vertical-align: top;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.35;
}

.content-page .gpa-comparison-table th:last-child,
.content-page .gpa-comparison-table td:last-child {
  width: 32%;
  padding-right: 0;
}

.content-page .gpa-worked-example-table-wrap {
  width: 100%;
  margin: 0 0 18px;
  overflow-x: auto;
}

.content-page .content-page-body .gpa-worked-example-table {
  width: min(100%, 680px);
  min-width: 520px;
  margin: 0 auto;
  border-collapse: collapse;
  border-top: 2px solid #374151;
  border-bottom: 2px solid #374151;
  color: #172033;
}

.content-page .gpa-worked-example-table thead {
  border-bottom: 1px solid #6b7280;
}

.content-page .gpa-worked-example-table th,
.content-page .gpa-worked-example-table td {
  padding: 4px 12px 4px 0;
  border: 0;
  text-align: left;
  vertical-align: top;
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 400;
  line-height: 1.35;
}

.content-page .gpa-worked-example-table th:nth-child(n + 2),
.content-page .gpa-worked-example-table td:nth-child(n + 2) {
  text-align: right;
}

.content-page .gpa-worked-example-table th:last-child,
.content-page .gpa-worked-example-table td:last-child {
  padding-right: 0;
}

.content-page .content-page-body .gpa-worked-example-totals {
  text-align: left;
}

.content-page .content-page-body .about-responsible-list {
  list-style: none;
  margin: 0 0 18px;
  padding-left: 0;
}

.content-page .content-page-body .about-responsible-list li {
  margin: 0 0 2px;
  text-align: left;
}

.content-page .data-security-table-wrap {
  width: 100%;
  margin: 0 0 18px;
  overflow-x: auto;
}

.content-page .content-page-body .data-security-table {
  width: 100%;
  min-width: 920px;
  margin: 0;
  border-collapse: collapse;
  border-top: 2px solid #374151;
  border-bottom: 2px solid #374151;
  color: #172033;
}

.content-page .data-security-table thead {
  border-bottom: 1px solid #6b7280;
}

.content-page .data-security-table th,
.content-page .data-security-table td {
  padding: 5px 14px 5px 0;
  border: 0;
  text-align: left;
  vertical-align: top;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 400;
  line-height: 1.3;
}

.content-page .data-security-table th:first-child {
  width: 15%;
}

.content-page .data-security-table th:nth-child(2),
.content-page .data-security-table td:nth-child(2) {
  width: 16%;
}

.content-page .data-security-table th:last-child,
.content-page .data-security-table td:last-child {
  padding-right: 0;
}

.content-page .content-page-main .toolistify-related-links {
  margin: 14px 0 0;
  padding-bottom: 64px;
}

.content-page {
  padding-bottom: 24px;
}

.content-page:has(.toolistify-related-links) {
  padding-bottom: 8px;
}

.content-page ~ .site-footer {
  margin-top: 56px;
}

.content-page .content-page-main .toolistify-related-links-inner {
  background:
    linear-gradient(145deg, #ffffff, rgba(240, 250, 255, 0.98) 60%, rgba(250, 255, 241, 0.95)),
    #fff;
}

.content-page .content-page-main .toolistify-related-links-subtitle,
.content-page .content-page-main .toolistify-related-links a,
.content-page .content-page-main .toolistify-related-links span {
  text-align: left;
}

.content-page .content-page-main .content-hero-subtitle {
  width: 100%;
  max-width: none;
  line-height: 1.4;
}

.content-page .toolistify-page-backend-section {
  position: relative;
  z-index: 2;
  width: min(1292px, calc(100% - 48px));
  margin: 24px auto 0;
  padding: clamp(26px, 3.5vw, 48px);
  background:
    linear-gradient(135deg, rgba(240, 250, 255, 0.98), rgba(250, 255, 241, 0.94)),
    #fff;
  border: 1px solid rgba(0, 164, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 18px 45px rgba(0, 164, 255, 0.12);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                      */
/* -------------------------------------------------------------------------- */
.content-footer {
  position: relative;
  z-index: 2;
  width: min(1292px, calc(100% - 48px));
  margin: 56px auto 0;
  padding: 28px 0 40px;
  border-top: 1px solid rgba(0, 164, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.content-footer-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.content-footer-text {
  color: #53627a;
  font-size: 14px;
  font-weight: 500;
}

/* -------------------------------------------------------------------------- */
/* Responsive                                                                  */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .content-page .content-page-tool-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .content-navbar {
    width: calc(100% - 32px);
    padding: 16px 0 4px;
  }

  .content-navbar-logo img {
    height: 34px;
  }

  .content-navbar-btn {
    padding: 9px 14px;
    font-size: 13px;
  }

  .content-page .content-page-main {
    width: calc(100% - 32px);
    margin-top: 18px;
  }

  .content-page .content-page-tool-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .content-page .content-page-tool-group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .content-page .content-page-tool-group-link {
    width: 100%;
    justify-content: center;
  }

  .content-page .toolistify-page-backend-section {
    width: calc(100% - 32px);
    padding: 22px 18px;
  }

  .content-footer {
    width: calc(100% - 32px);
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .content-page .content-page-main,
  .content-page .toolistify-page-backend-section,
  .content-footer {
    width: calc(100% - 20px);
  }

  .content-page .content-page-tool-card {
    padding: 18px;
    border-radius: 18px;
  }

  .content-page .content-page-tool-card .content-page-tool-card-top {
    align-items: flex-start;
  }

  .content-page .content-page-tool-card .content-page-tool-badge {
    white-space: normal;
    text-align: right;
  }
}
