/* =========================================================
   GLOBAL STUDY HUB
   Examination Content Acquisition & Management Portal
   ========================================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #071c3d;
  --navy-2: #0b2d59;
  --blue: #0879d9;
  --cyan: #00aee9;
  --teal: #00a88f;
  --green: #13a96b;
  --orange: #f5a000;
  --gold: #ffc342;
  --purple: #7251c9;
  --purple-dark: #4f3198;
  --white: #ffffff;
  --soft: #f4f9fd;
  --text: #18304b;
  --muted: #65788c;
  --border: #dce8f1;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Segoe UI",
    Arial,
    Helvetica,
    sans-serif;

  color: var(--text);
  background:
    radial-gradient(circle at 10% 15%,
      rgba(0, 174, 233, 0.10),
      transparent 26%),
    radial-gradient(circle at 90% 30%,
      rgba(0, 168, 143, 0.10),
      transparent 28%),
    linear-gradient(
      180deg,
      #eef9ff 0%,
      #ffffff 38%,
      #f5fbff 100%
    );

  min-height: 100vh;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   DECORATIVE BACKGROUND
   ========================================================= */

.background-decoration {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  filter: blur(3px);
}

.background-one {
  width: 420px;
  height: 420px;
  left: -220px;
  top: 280px;
  background:
    radial-gradient(
      circle,
      rgba(0, 174, 233, 0.16),
      transparent 68%
    );
}

.background-two {
  width: 520px;
  height: 520px;
  right: -270px;
  top: 580px;
  background:
    radial-gradient(
      circle,
      rgba(114, 81, 201, 0.12),
      transparent 70%
    );
}

.background-three {
  width: 430px;
  height: 430px;
  left: 30%;
  bottom: -260px;
  background:
    radial-gradient(
      circle,
      rgba(245, 160, 0, 0.10),
      transparent 70%
    );
}


/* =========================================================
   HEADER
   ========================================================= */

.gsh-header {
  background:
    linear-gradient(
      115deg,
      #06172f 0%,
      #082c57 46%,
      #064d69 100%
    );

  border-bottom: 3px solid var(--orange);
  box-shadow: 0 8px 30px rgba(5, 29, 59, 0.22);
  position: relative;
  z-index: 20;
}

.header-inner {
  max-width: 1440px;
  margin: auto;
  min-height: 112px;
  padding: 14px 34px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 18px;
}

.gsh-logo {
  width: 94px;
  height: 82px;
  object-fit: contain;
  background: white;
  border-radius: 14px;
  padding: 5px;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.25);
}

.brand-copy {
  color: white;
}

.brand-label {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.brand-copy h1 {
  font-size: 1.7rem;
  line-height: 1.15;
  margin: 4px 0;
}

.brand-copy h1 span {
  color: #5ee2ff;
}

.brand-copy p {
  color: #c9e2f3;
  font-size: 0.88rem;
}

.contact-button {
  border: 1px solid rgba(255, 255, 255, 0.30);
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.17),
      rgba(255, 255, 255, 0.08)
    );

  color: white;
  border-radius: 14px;
  padding: 11px 17px;

  display: flex;
  align-items: center;
  gap: 11px;

  cursor: pointer;
  transition: 0.25s ease;
}

.contact-button:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.20);
}

.contact-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  background: var(--orange);
  border-radius: 50%;
  font-size: 1.1rem;
}

.contact-button span:last-child {
  text-align: left;
  display: flex;
  flex-direction: column;
}

.contact-button strong {
  font-size: 0.92rem;
}

.contact-button small {
  color: #cde3f3;
  margin-top: 2px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 78% 35%,
      rgba(0, 210, 211, 0.27),
      transparent 25%
    ),
    radial-gradient(
      circle at 15% 75%,
      rgba(245, 160, 0, 0.18),
      transparent 25%
    ),
    linear-gradient(
      125deg,
      #062249 0%,
      #075b7d 52%,
      #078a8c 100%
    );

  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background-image:
    radial-gradient(
      rgba(255,255,255,0.20) 1px,
      transparent 1px
    );

  background-size: 28px 28px;
  opacity: 0.20;
}

.hero::after {
  content: "GSH";
  position: absolute;
  right: -30px;
  bottom: -115px;

  font-size: 21rem;
  line-height: 1;
  font-weight: 900;

  color: rgba(255, 255, 255, 0.035);
  letter-spacing: -20px;
}

.hero-overlay {
  max-width: 1370px;
  min-height: 390px;
  margin: auto;
  padding: 44px 38px;

  position: relative;
  z-index: 2;

  display: grid;
  grid-template-columns: 390px 1fr;
  align-items: center;
  gap: 52px;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  max-width: 360px;
  max-height: 300px;
  object-fit: contain;

  background: rgba(255, 255, 255, 0.97);
  padding: 15px;
  border-radius: 28px;

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.28),
    0 0 0 6px rgba(255, 255, 255, 0.08);
}

.hero-kicker {
  display: inline-block;

  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 2.2px;

  border-left: 4px solid var(--orange);
  padding-left: 11px;
  margin-bottom: 13px;
}

.hero-text h2 {
  max-width: 800px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.hero-text h2 span {
  color: #72e9ff;
}

.hero-description {
  max-width: 790px;
  margin-top: 19px;
  color: #dbf1fa;
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-values {
  margin-top: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-values span {
  padding: 8px 13px;
  border-radius: 30px;

  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.17);

  color: #f4fcff;
  font-size: 0.78rem;
  font-weight: 600;
}


/* =========================================================
   PORTAL SECTION
   ========================================================= */

.portal-section {
  max-width: 1440px;
  margin: auto;
  padding: 66px 35px 76px;
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 43px;
  text-align: center;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 2.8px;
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: 7px 0 12px;
  letter-spacing: -1.7px;
}

.section-heading p {
  color: var(--muted);
  line-height: 1.7;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.portal-card {
  position: relative;
  min-height: 490px;
  overflow: hidden;

  text-decoration: none;
  color: white;

  border-radius: 25px;
  padding: 31px;

  display: flex;
  flex-direction: column;

  box-shadow:
    0 18px 42px rgba(8, 36, 69, 0.16);

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.portal-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 28px 58px rgba(8, 36, 69, 0.24);
}

.external-card {
  background:
    linear-gradient(
      145deg,
      #057b79 0%,
      #00a88f 55%,
      #18b96f 100%
    );
}

.examiner-card {
  background:
    linear-gradient(
      145deg,
      #0753a3 0%,
      #0879d9 52%,
      #00aee9 100%
    );
}

.admin-card {
  background:
    linear-gradient(
      145deg,
      #48278b 0%,
      #7251c9 55%,
      #9c5fd0 100%
    );
}

.card-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  right: -85px;
  top: -90px;

  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.portal-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  left: -80px;
  bottom: -80px;

  border: 26px solid rgba(255,255,255,0.05);
  border-radius: 50%;
}

.portal-icon {
  width: 70px;
  height: 70px;

  display: grid;
  place-items: center;

  border-radius: 19px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.22);

  font-size: 2rem;
  margin-bottom: 22px;

  position: relative;
  z-index: 2;
}

.portal-type {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.80);
}

.portal-card h3 {
  font-size: 1.55rem;
  line-height: 1.2;
  margin: 8px 0 13px;
  position: relative;
  z-index: 2;
}

.portal-card > p {
  color: rgba(255,255,255,0.86);
  line-height: 1.6;
  font-size: 0.91rem;
  margin-bottom: 18px;
}

.portal-card ul {
  list-style: none;
  margin-bottom: 25px;
  position: relative;
  z-index: 2;
}

.portal-card li {
  padding: 6px 0;
  color: rgba(255,255,255,0.94);
  font-size: 0.86rem;
}

.portal-card li::before {
  content: "✓";
  font-weight: 900;
  margin-right: 8px;
  color: #fff4a8;
}

.portal-action {
  margin-top: auto;

  background: rgba(255,255,255,0.96);
  color: var(--navy);

  min-height: 51px;
  padding: 12px 16px;
  border-radius: 13px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  font-size: 0.84rem;
  font-weight: 800;

  position: relative;
  z-index: 3;
}

.portal-action span {
  font-size: 1.35rem;
}


/* =========================================================
   ECOSYSTEM / WORKFLOW
   ========================================================= */

.ecosystem {
  background:
    linear-gradient(
      135deg,
      #071d3d 0%,
      #0a345d 55%,
      #07566b 100%
    );

  color: white;
  padding: 66px 35px 74px;
  position: relative;
  overflow: hidden;
}

.ecosystem::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -260px;
  top: -260px;

  border: 70px solid rgba(255,255,255,0.025);
  border-radius: 50%;
}

.ecosystem-heading {
  max-width: 800px;
  margin: 0 auto 45px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.ecosystem-heading span {
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 2.5px;
}

.ecosystem-heading h2 {
  margin-top: 8px;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
}

.workflow {
  max-width: 1320px;
  margin: auto;

  display: grid;
  grid-template-columns:
    1fr 55px
    1fr 55px
    1fr 55px
    1fr;

  align-items: center;
  position: relative;
  z-index: 2;
}

.workflow-item {
  min-height: 245px;

  padding: 25px 20px;
  text-align: center;

  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.10),
      rgba(255,255,255,0.04)
    );
}

.workflow-number {
  color: rgba(255,255,255,0.24);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.workflow-icon {
  width: 58px;
  height: 58px;
  margin: 14px auto;

  display: grid;
  place-items: center;

  background: linear-gradient(
    135deg,
    var(--cyan),
    var(--teal)
  );

  border-radius: 17px;
  font-size: 1.5rem;
}

.workflow-item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.workflow-item p {
  color: #c6deec;
  font-size: 0.84rem;
  line-height: 1.55;
}

.workflow-arrow {
  text-align: center;
  color: #56d7ec;
  font-size: 2rem;
}


/* =========================================================
   CONTACT STRIP
   ========================================================= */

.contact-strip {
  max-width: 1250px;
  margin: 60px auto;
  padding: 27px 30px;

  color: white;

  border-radius: 24px;

  background:
    linear-gradient(
      110deg,
      #0787a4 0%,
      #00a88f 55%,
      #12a968 100%
    );

  box-shadow:
    0 20px 50px rgba(0, 103, 125, 0.22);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.contact-strip > div {
  display: flex;
  align-items: center;
  gap: 19px;
}

.contact-strip-icon {
  width: 61px;
  height: 61px;

  display: grid;
  place-items: center;

  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 17px;

  font-size: 1.55rem;
}

.contact-strip small {
  font-weight: 800;
  letter-spacing: 1.7px;
  color: #d9fff6;
}

.contact-strip h3 {
  font-size: 1.45rem;
  margin: 3px 0;
}

.contact-strip p {
  color: #d9fff6;
  font-size: 0.87rem;
}

.contact-strip button {
  flex-shrink: 0;
  cursor: pointer;

  border: 0;
  border-radius: 13px;

  background: white;
  color: #08766f;

  padding: 14px 25px;

  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,0,0,0.13);

  transition: 0.2s ease;
}

.contact-strip button:hover {
  transform: translateY(-2px);
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  background: #05162f;
  color: white;
  padding: 38px max(35px, calc((100vw - 1370px) / 2));
}

.footer-top,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-brand img {
  width: 74px;
  height: 65px;
  object-fit: contain;
  background: white;
  padding: 4px;
  border-radius: 10px;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.footer-brand span {
  color: #9fc1d9;
  font-size: 0.75rem;
  margin-top: 4px;
}

.footer-values {
  display: flex;
  align-items: center;
  gap: 12px;

  color: #d8edf8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.8px;
}

.footer-values i {
  color: var(--orange);
  font-style: normal;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.11);
  margin: 26px 0;
}

.footer-bottom p {
  color: #8eacc3;
  font-size: 0.77rem;
  line-height: 1.55;
}

.footer-bottom strong {
  color: #d9f2ff;
}

.footer-tagline {
  color: var(--gold) !important;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}

.footer-email {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: #dff5ff;

  border-radius: 12px;
  padding: 11px 15px;

  cursor: pointer;
  font-size: 0.78rem;
}


/* =========================================================
   CONTACT MODAL
   ========================================================= */

.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 22px;

  opacity: 0;
  visibility: hidden;
  transition: 0.22s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(2, 16, 37, 0.74);
  backdrop-filter: blur(5px);
}

.modal-panel {
  width: min(590px, 100%);
  max-height: 92vh;
  overflow-y: auto;

  position: relative;
  z-index: 2;

  background: white;
  border-radius: 25px;

  padding: 29px;

  box-shadow:
    0 30px 90px rgba(0,0,0,0.35);

  transform: translateY(15px) scale(0.98);
  transition: 0.22s ease;
}

.modal.show .modal-panel {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 17px;

  width: 37px;
  height: 37px;

  border: 0;
  border-radius: 50%;

  background: #edf4f8;
  color: var(--navy);

  font-size: 1.5rem;
  cursor: pointer;
}

.modal-header {
  display: flex;
  gap: 15px;
  align-items: center;
  padding-right: 40px;
}

.modal-mail-icon {
  width: 58px;
  height: 58px;

  flex-shrink: 0;

  display: grid;
  place-items: center;

  border-radius: 16px;

  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--teal)
    );

  color: white;
  font-size: 1.4rem;
}

.modal-header span {
  color: var(--teal);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.modal-header h2 {
  color: var(--navy);
  margin: 2px 0 3px;
}

.modal-header p {
  color: var(--muted);
  font-size: 0.82rem;
}

.email-address-box {
  margin: 23px 0;

  padding: 14px 15px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;

  background: #f0f8fc;
  border: 1px solid #d6e8f1;
  border-radius: 14px;
}

.email-address-box div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.email-address-box small {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.email-address-box strong {
  margin-top: 3px;
  color: var(--navy);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.email-address-box button {
  border: 0;
  background: var(--navy);
  color: white;

  border-radius: 9px;
  padding: 8px 13px;

  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
}

#emailForm {
  display: flex;
  flex-direction: column;
}

#emailForm label {
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  margin: 11px 0 6px;
}

#emailForm input,
#emailForm textarea {
  width: 100%;

  border: 1px solid #ccdce6;
  outline: none;

  border-radius: 11px;
  padding: 12px 13px;

  color: var(--text);
  background: #fbfdff;

  transition: 0.2s ease;
}

#emailForm textarea {
  resize: vertical;
  min-height: 125px;
}

#emailForm input:focus,
#emailForm textarea:focus {
  border-color: var(--cyan);
  box-shadow:
    0 0 0 3px rgba(0, 174, 233, 0.11);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 11px;
  margin-top: 21px;
}

.secondary-button,
.send-button {
  border: 0;
  border-radius: 11px;

  padding: 12px 17px;

  cursor: pointer;
  font-weight: 800;
}

.secondary-button {
  background: #edf3f7;
  color: var(--text);
}

.send-button {
  background:
    linear-gradient(
      135deg,
      var(--blue),
      var(--teal)
    );

  color: white;
}

.send-button span {
  margin-right: 5px;
}

.email-note {
  margin-top: 17px;
  padding-top: 15px;

  border-top: 1px solid #e5edf2;

  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

  .hero-overlay {
    grid-template-columns: 280px 1fr;
    gap: 35px;
  }

  .portal-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: auto;
  }

  .portal-card {
    min-height: 430px;
  }

  .workflow {
    grid-template-columns: 1fr 35px 1fr;
    gap: 15px;
  }

  .workflow-item:nth-of-type(5),
  .workflow-item:nth-of-type(7) {
    margin-top: 0;
  }

  .workflow-arrow:nth-of-type(4) {
    display: none;
  }

}


@media (max-width: 800px) {

  .header-inner {
    padding: 12px 18px;
  }

  .brand-copy p,
  .brand-label {
    display: none;
  }

  .brand-copy h1 {
    font-size: 1.25rem;
  }

  .gsh-logo {
    width: 70px;
    height: 64px;
  }

  .contact-button small {
    display: none;
  }

  .hero-overlay {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 35px 22px 45px;
  }

  .hero-logo {
    max-width: 290px;
  }

  .hero-kicker {
    border-left: 0;
    padding-left: 0;
  }

  .hero-values {
    justify-content: center;
  }

  .portal-section {
    padding: 52px 20px 60px;
  }

  .workflow {
    grid-template-columns: 1fr;
    max-width: 620px;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    height: 40px;
  }

  .contact-strip {
    margin: 40px 20px;
    flex-direction: column;
    align-items: stretch;
  }

  .contact-strip button {
    width: 100%;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

}


@media (max-width: 520px) {

  .header-inner {
    gap: 10px;
  }

  .brand-copy h1 {
    font-size: 1rem;
  }

  .contact-button {
    padding: 9px;
  }

  .contact-button span:last-child {
    display: none;
  }

  .hero-logo {
    max-width: 245px;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .portal-card {
    padding: 25px;
  }

  .contact-strip > div {
    align-items: flex-start;
  }

  .modal {
    padding: 10px;
  }

  .modal-panel {
    padding: 22px 17px;
    border-radius: 18px;
  }

  .modal-header {
    align-items: flex-start;
  }

  .email-address-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions button {
    width: 100%;
  }

}