/* =========================================================
   Page-specific polish for About Us and Careers
   Loaded only by about.html and career.html.
   Existing site colours, assets, header, footer and content
   remain unchanged.
   ========================================================= */

:root {
  --goyal-page-blue: #2f57ef;
  --goyal-page-ink: #20263a;
  --goyal-page-copy: #66718b;
  --goyal-page-border: #e4e9f2;
  --goyal-page-soft: #f7f9fe;
  --goyal-page-shadow: 0 18px 48px rgba(28, 48, 92, 0.10);
}

/* ---------- Shared page alignment ---------- */
.about-page-pro .about-story-container,
.about-page-pro .goyal-group-about-page > .container,
.about-page-pro .about-visual-container,
.about-page-pro .about-footprint-container,
.career-page-pro .career-container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ---------- About: text + video, exactly matched cards ---------- */
.about-page-pro .about-story-section {
  padding: 72px 0;
  background:
    radial-gradient(circle at 4% 0%, rgba(47, 87, 239, 0.055), transparent 29%),
    radial-gradient(circle at 96% 100%, rgba(129, 100, 239, 0.055), transparent 31%),
    #ffffff;
}

.about-page-pro .about-story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.about-page-pro .about-story-card,
.about-page-pro .about-video-card {
  width: 100%;
  height: 590px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--goyal-page-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: var(--goyal-page-shadow);
}

.about-page-pro .about-story-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.about-page-pro .about-story-card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2f57ef, #8164ef);
}

.about-page-pro .about-story-card-head {
  flex: 0 0 auto;
  padding: 34px 36px 18px;
  border-bottom: 1px solid #eef1f6;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.about-page-pro .about-story-card-head h2 {
  position: relative;
  margin: 0;
  padding-bottom: 14px;
  color: var(--goyal-page-ink);
  font-size: clamp(29px, 2.2vw, 38px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.about-page-pro .about-story-card-head h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 54px;
  height: 3px;
  border-radius: 999px;
  background: var(--goyal-page-blue);
}

.about-page-pro .about-story-copy {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 36px 30px;
  scrollbar-width: thin;
  scrollbar-color: #aeb8cd #edf1f7;
}

.about-page-pro .about-story-copy::-webkit-scrollbar {
  width: 8px;
}

.about-page-pro .about-story-copy::-webkit-scrollbar-track {
  border-radius: 999px;
  background: #edf1f7;
}

.about-page-pro .about-story-copy::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #aeb8cd;
}

.about-page-pro .about-story-copy:focus-visible {
  outline: 2px solid rgba(47, 87, 239, 0.35);
  outline-offset: -4px;
}

.about-page-pro .about-story-copy p {
  margin: 0 0 16px;
  color: var(--goyal-page-copy);
  font-size: 15.5px;
  line-height: 1.76;
}

.about-page-pro .about-story-copy p:last-child {
  margin-bottom: 0;
}

.about-page-pro .about-video-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  background:
    radial-gradient(circle at 18% 15%, rgba(85, 67, 218, 0.20), transparent 34%),
    radial-gradient(circle at 82% 86%, rgba(47, 87, 239, 0.18), transparent 35%),
    #0a0d16;
}

.about-page-pro .about-video-card video {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  background: #0a0d16;
}

/* ---------- About: Goyal Group, same content/assets ---------- */
.about-page-pro .goyal-group-about-page.team-area {
  padding: 74px 0 50px;
  background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.about-page-pro .goyal-group-about-page .goyal-group-about-heading {
  max-width: 1040px;
  margin: 0 auto 38px;
}

.about-page-pro .goyal-group-about-page .goyal-group-about-heading p {
  max-width: 980px;
  font-size: 15.5px;
  line-height: 1.75;
}

.about-page-pro .goyal-group-about-page .goyal-company-card.single-instructor-member {
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(28, 48, 92, 0.075);
}

/* ---------- About: existing information image ---------- */
.about-page-pro .about-visual-section {
  padding: 62px 0 32px;
  background: #ffffff;
}

.about-page-pro .about-visual-frame {
  overflow: hidden;
  border: 1px solid var(--goyal-page-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(28, 48, 92, 0.085);
}

.about-page-pro .about-visual-frame img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

/* ---------- About: existing footprint/map image ---------- */
.about-page-pro .about-footprint-section {
  padding: 32px 0 78px;
  background: #ffffff;
}

.about-page-pro .about-footprint-card {
  overflow: hidden;
  border: 1px solid var(--goyal-page-border);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 38px rgba(28, 48, 92, 0.085);
}

.about-page-pro .about-footprint-card h2 {
  position: relative;
  margin: 0;
  padding: 28px 32px 22px;
  color: var(--goyal-page-ink);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  border-bottom: 1px solid #edf0f5;
}

.about-page-pro .about-footprint-card h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--goyal-page-blue);
}

.about-page-pro .about-footprint-image {
  padding: 18px;
  background: #fbfcff;
}

.about-page-pro .about-footprint-image img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ---------- Careers ---------- */
.career-page-pro .career-application-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 76px 0 86px;
  background:
    radial-gradient(circle at 6% 2%, rgba(47, 87, 239, 0.07), transparent 32%),
    linear-gradient(180deg, #f8faff 0%, #ffffff 52%, #ffffff 100%);
}

.career-page-pro .career-container {
  position: relative;
  z-index: 2;
}

.career-page-pro .career-heading.section-title {
  max-width: 870px;
  margin: 0 auto 34px;
  text-align: center;
}

.career-page-pro .career-heading.section-title h2 {
  margin-bottom: 14px;
  color: var(--goyal-page-ink);
  font-size: 38px;
  line-height: 1.2;
  font-weight: 700;
}

.career-page-pro .career-heading.section-title p {
  margin: 0 auto;
  color: var(--goyal-page-copy);
  font-size: 16px;
  line-height: 1.75;
}

.career-page-pro .career-form-card.contact-form {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--goyal-page-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--goyal-page-shadow);
}

.career-page-pro .career-form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2f57ef, #8164ef);
}

.career-page-pro .career-form-intro {
  padding: 28px 34px 22px;
  border-bottom: 1px solid #edf0f5;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
}

.career-page-pro .career-form-intro .email_content {
  margin: 0;
  color: #2d3447;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 600;
  text-align: center;
}

.career-page-pro #careerApplicationForm {
  padding: 28px 34px 34px;
}

.career-page-pro .career-form-card .form-group {
  margin-bottom: 14px;
}

.career-page-pro .career-form-card .form-group > label:first-child {
  display: inline-block;
  margin-bottom: 8px !important;
  color: #30384d;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.career-page-pro .career-form-card .form-control {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 1px solid #dce2ec;
  border-radius: 10px;
  background: #ffffff;
  color: #2a3142;
  box-shadow: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.career-page-pro .career-form-card textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.career-page-pro .career-form-card .form-control:focus {
  border-color: rgba(47, 87, 239, 0.68);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(47, 87, 239, 0.09);
}

.career-page-pro .career-form-card input[type="file"].form-control {
  min-height: 54px;
  padding: 8px 10px;
  cursor: pointer;
}

.career-page-pro .career-file-note {
  display: block;
  margin: 8px 0 0 !important;
  font-size: 12px !important;
  line-height: 1.45;
  font-weight: 500 !important;
}

.career-page-pro .career-field-error {
  min-height: 18px;
  margin-top: 5px;
  color: #d93d4b;
  font-size: 12px;
  line-height: 1.4;
}

.career-page-pro .career-submit-btn.default-btn {
  min-width: 170px;
  border: 0;
  border-radius: 9px;
  box-shadow: 0 10px 24px rgba(47, 87, 239, 0.22);
}

.career-page-pro .career-submit-btn[disabled] {
  cursor: wait;
  opacity: 0.68;
}

.career-page-pro .career-status {
  max-width: 1040px;
  margin: 0 auto 20px;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.career-page-pro .career-status.is-success {
  border-color: #bfe7cf;
  background: #f1fbf5;
  color: #246a42;
}

.career-page-pro .career-status.is-error {
  border-color: #f0c9cf;
  background: #fff5f6;
  color: #a63542;
}

.career-page-pro .career-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  clip-path: inset(50%) !important;
}

.career-page-pro .career-map-decoration {
  position: absolute;
  z-index: 0;
  right: -110px;
  bottom: -80px;
  width: min(620px, 48vw);
  opacity: 0.12;
  pointer-events: none;
}

.career-page-pro .career-map-decoration img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .about-page-pro .about-story-container,
  .about-page-pro .goyal-group-about-page > .container,
  .about-page-pro .about-visual-container,
  .about-page-pro .about-footprint-container,
  .career-page-pro .career-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-page-pro .about-story-card,
  .about-page-pro .about-video-card {
    height: 560px;
  }

  .about-page-pro .about-story-card-head {
    padding: 30px 30px 17px;
  }

  .about-page-pro .about-story-copy {
    padding: 22px 30px 28px;
  }
}

@media (max-width: 991px) {
  .about-page-pro .about-story-section,
  .career-page-pro .career-application-section {
    padding-top: 56px;
    padding-bottom: 62px;
  }

  .about-page-pro .about-story-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .about-page-pro .about-story-card,
  .about-page-pro .about-video-card {
    height: 520px;
  }

  .about-page-pro .goyal-group-about-page.team-area {
    padding-top: 58px;
  }

  .about-page-pro .about-visual-section {
    padding-top: 48px;
  }

  .career-page-pro .career-map-decoration {
    width: 66vw;
    opacity: 0.08;
  }
}

@media (max-width: 767px) {
  .about-page-pro .about-story-container,
  .about-page-pro .goyal-group-about-page > .container,
  .about-page-pro .about-visual-container,
  .about-page-pro .about-footprint-container,
  .career-page-pro .career-container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .about-page-pro .about-story-card,
  .about-page-pro .about-video-card {
    height: 480px;
    border-radius: 15px;
  }

  .about-page-pro .about-story-card-head {
    padding: 26px 24px 16px;
  }

  .about-page-pro .about-story-copy {
    padding: 20px 24px 24px;
  }

  .about-page-pro .about-story-copy p {
    font-size: 14.5px;
    line-height: 1.7;
  }

  .about-page-pro .goyal-group-about-page .goyal-group-about-heading {
    text-align: left;
  }

  .about-page-pro .about-visual-frame,
  .about-page-pro .about-footprint-card,
  .career-page-pro .career-form-card.contact-form {
    border-radius: 15px;
  }

  .career-page-pro .career-heading.section-title h2 {
    font-size: 32px;
  }

  .career-page-pro .career-form-intro {
    padding: 24px 22px 20px;
  }

  .career-page-pro #careerApplicationForm {
    padding: 24px 22px 28px;
  }
}

@media (max-width: 575px) {
  .about-page-pro .about-story-section {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .about-page-pro .about-story-card,
  .about-page-pro .about-video-card {
    height: 445px;
  }

  .about-page-pro .about-story-card-head h2 {
    font-size: 27px;
  }

  .about-page-pro .about-story-copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-page-pro .about-footprint-card h2 {
    padding: 24px 22px 20px;
    font-size: 27px;
  }

  .about-page-pro .about-footprint-image {
    padding: 10px;
  }

  .career-page-pro .career-application-section {
    padding-top: 46px;
    padding-bottom: 54px;
  }

  .career-page-pro .career-heading.section-title {
    margin-bottom: 26px;
  }

  .career-page-pro .career-heading.section-title p {
    font-size: 14.5px;
    line-height: 1.7;
  }

  .career-page-pro .career-form-intro .email_content {
    font-size: 15px;
  }

  .career-page-pro .career-form-intro,
  .career-page-pro #careerApplicationForm {
    padding-left: 18px;
    padding-right: 18px;
  }

  .career-page-pro .career-map-decoration {
    width: 92vw;
  }
}

/* =========================================================
   About page: requested screenshot-style text + video cards.
   This override only affects the first About section.
   ========================================================= */
.about-page-pro .about-story-container {
  max-width: 1500px;
}

.about-page-pro .about-story-section {
  padding: 54px 0 62px;
  background: #ffffff;
}

.about-page-pro .about-story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.about-page-pro .about-story-card,
.about-page-pro .about-group-video-card {
  width: 100%;
  height: 650px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e6f0;
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(30, 48, 84, 0.07);
}

.about-page-pro .about-story-card {
  background: #ffffff;
}

.about-page-pro .about-story-card::before {
  top: 0;
  left: 34px;
  right: 12px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, #365cff, #875bff);
}

.about-page-pro .about-story-card-head {
  padding: 37px 38px 20px;
  border-bottom: 1px solid #e8ecf3;
  background: #ffffff;
}

.about-page-pro .about-story-card-head h2 {
  margin: 0;
  padding: 0;
  color: #17213a;
  font-size: clamp(30px, 2.25vw, 38px);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.about-page-pro .about-story-card-head h2::after {
  display: none;
}

.about-page-pro .about-story-copy {
  padding: 40px 38px 34px;
  scrollbar-color: #9eb0d0 #edf1f7;
}

.about-page-pro .about-story-copy p {
  margin-bottom: 17px;
  color: #66779b;
  font-size: 16px;
  line-height: 1.63;
}

.about-page-pro .about-group-video-card {
  display: flex;
  flex-direction: column;
  background: #f8f9ff;
}

.about-page-pro .about-group-card-head {
  flex: 0 0 auto;
  padding: 31px 36px 17px;
  border-bottom: 1px solid #e5e9f1;
  background: #f8f9ff;
}

.about-page-pro .about-group-card-head h2 {
  margin: 0 0 14px;
  color: #17213a;
  font-size: clamp(32px, 2.35vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.about-page-pro .about-group-card-head p {
  margin: 0 0 8px;
  color: #66779b;
  font-size: 15.5px;
  line-height: 1.66;
}

.about-page-pro .about-group-card-head p:last-of-type {
  margin-bottom: 17px;
}

.about-page-pro .about-group-card-head::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 999px;
  background: #f5b522;
}

.about-page-pro .about-group-video-card .about-video-card {
  flex: 1 1 auto;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 18px;
  overflow: hidden;
  border: 0;
  border-radius: 15px;
  background: #090d16;
  box-shadow: none;
}

.about-page-pro .about-group-video-card .about-video-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #090d16;
}

@media (max-width: 1199px) {
  .about-page-pro .about-story-card,
  .about-page-pro .about-group-video-card {
    height: 610px;
  }

  .about-page-pro .about-story-card-head {
    padding: 32px 30px 18px;
  }

  .about-page-pro .about-story-copy {
    padding: 30px 30px 28px;
  }

  .about-page-pro .about-group-card-head {
    padding: 28px 30px 16px;
  }
}

@media (max-width: 991px) {
  .about-page-pro .about-story-section {
    padding: 46px 0 54px;
  }

  .about-page-pro .about-story-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about-page-pro .about-story-card,
  .about-page-pro .about-group-video-card {
    height: 560px;
  }

  .about-page-pro .about-group-video-card .about-video-card {
    margin: 16px;
  }
}

@media (max-width: 767px) {
  .about-page-pro .about-story-card,
  .about-page-pro .about-group-video-card {
    height: 520px;
    border-radius: 15px;
  }

  .about-page-pro .about-story-card-head {
    padding: 27px 24px 17px;
  }

  .about-page-pro .about-story-copy {
    padding: 24px 24px 25px;
  }

  .about-page-pro .about-story-copy p,
  .about-page-pro .about-group-card-head p {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .about-page-pro .about-group-card-head {
    padding: 25px 24px 15px;
  }

  .about-page-pro .about-group-card-head h2 {
    font-size: 31px;
  }

  .about-page-pro .about-group-video-card .about-video-card {
    margin: 14px;
    border-radius: 12px;
  }
}

@media (max-width: 575px) {
  .about-page-pro .about-story-section {
    padding: 38px 0 46px;
  }

  .about-page-pro .about-story-card {
    height: 500px;
  }

  .about-page-pro .about-group-video-card {
    height: auto;
    min-height: 560px;
  }

  .about-page-pro .about-story-card-head h2,
  .about-page-pro .about-group-card-head h2 {
    font-size: 27px;
  }

  .about-page-pro .about-story-card::before {
    left: 20px;
    right: 10px;
  }

  .about-page-pro .about-story-copy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-page-pro .about-group-card-head {
    padding-left: 20px;
    padding-right: 20px;
  }

  .about-page-pro .about-group-video-card .about-video-card {
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
  }
}
