/* ==========================================================================
   StudentJob - About Us Page Styles
   Matches Screenshot Design Pixel-for-Pixel
   ========================================================================== */

.about-page-wrapper {
  background: #ffffff;
  color: #0f172a;
  font-family: inherit;
  overflow-x: hidden;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

/* ==========================================================================
   SECTION 1: STORY, VISION & VALUES
   ========================================================================== */

.about-hero-section {
  padding: 4.5rem 0 3.5rem;
  background: #ffffff;
}

/* Top Header Row */
.about-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  margin-bottom: 0;
  position: relative;
  z-index: 5;
}

.about-hero-title {
  font-size: clamp(2rem, 3.2vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin: 0;
  max-width: 580px;
}

.about-hero-title-line-1 {
  white-space: nowrap;
  display: inline-block;
}

.about-hero-title-line-2 {
  white-space: nowrap;
  display: inline-block;
}

.about-hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #475569;
  max-width: 440px;
  margin: 0;
  padding-top: 0.35rem;
}

/* Custom Shaped Architectural Visual Banner */
.about-hero-banner-custom {
  position: relative;
  width: 100%;
  margin-top: -24px;
  margin-bottom: 3.5rem;
  filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.08));
}

.about-hero-svg-frame {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Circular Mint/Teal Button Nestled in the Bottom-Right Pocket */
.about-hero-pocket-btn {
  position: absolute;
  right: 1.8%;
  bottom: 3.8%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #00c98d;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 201, 141, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.about-hero-pocket-btn:hover {
  background: #00b37d;
  transform: translateY(2px) scale(1.06);
  box-shadow: 0 12px 30px rgba(0, 201, 141, 0.55);
  color: #ffffff;
}

/* 2-Column Story Grid */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: stretch;
}

/* Left Column: Quote + Paragraph + Lower Visual */
.about-story-left-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.about-quote-icon {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.about-story-quote-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: #334155;
  font-weight: 500;
  margin: 0 0 2rem 0;
  letter-spacing: -0.01em;
}

.about-lower-banner-wrap {
  width: 100%;
  height: 160px;
  border-radius: 20px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: 0 8px 20px -5px rgba(15, 23, 42, 0.06);
}

.about-lower-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Right Column: Royal Blue Card */
.about-story-card {
  border-radius: 28px;
  padding: 3.25rem 3rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 25px 55px -15px rgba(38, 60, 216, 0.4);
  position: relative;
  overflow: hidden;
}

.about-card-badge-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 2rem;
}

.about-card-badge-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2dd4bf; /* Mint/Cyan */
}

.about-card-badge-icon {
  color: #2dd4bf;
  display: inline-flex;
  align-items: center;
  animation: aboutSpinSlow 20s linear infinite;
}

@keyframes aboutSpinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.about-card-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-card-p1,
.about-card-p2 {
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
  font-weight: 400;
}

/* ==========================================================================
   SECTION 2: BUILDING TRUST WITH GLOBAL CLIENTS (INFINITE MOVING CAROUSEL)
   ========================================================================== */

.about-trust-section {
  padding: 5rem 0 5.5rem;
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  margin: 2.5rem 0;
  overflow: hidden;
  position: relative;
}

.about-trust-heading {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0f172a;
  margin: 0 auto 3.25rem auto;
}

/* Infinite Marquee Track with gradient edge fade masks */
.about-marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  padding: 12px 0;
}

.about-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: aboutMarqueeLoop 32s linear infinite;
  will-change: transform;
}

.about-marquee-container:hover .about-marquee-track {
  animation-play-state: paused;
}

.about-marquee-group {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  padding-right: 4.5rem;
  flex-shrink: 0;
}

.about-client-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.65;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(100%);
  cursor: pointer;
  flex-shrink: 0;
}

.about-client-logo:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: translateY(-3px) scale(1.05);
  color: var(--primary-color, #1c7bff);
}

.about-logo-svg {
  height: 32px;
  width: auto;
  max-width: 160px;
  color: #334155;
  fill: currentColor;
  display: block;
}

.about-logo-img {
  height: 32px;
  max-height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}

@keyframes aboutMarqueeLoop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================================================
   SECTION 3: MEET THE TEAM
   ========================================================================== */

.about-team-section {
  padding: 5.5rem 0 6.5rem;
  background: #ffffff;
}

.about-team-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.about-team-title {
  font-size: 2.75rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  margin: 0 0 0.85rem 0;
  line-height: 1.15;
}

.about-team-subtitle {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

.about-team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 1.65rem;
  margin: 0 auto;
}

.about-team-card {
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
  width: 100%;
  flex: 0 1 208px;
  max-width: 218px;
}

/* Dynamic proportional centering based on member count */
.about-team-grid.about-team-count-4 .about-team-card {
  flex: 0 1 230px;
  max-width: 240px;
}

.about-team-grid.about-team-count-3 .about-team-card {
  flex: 0 1 250px;
  max-width: 270px;
}

.about-team-grid.about-team-count-2 .about-team-card {
  flex: 0 1 270px;
  max-width: 300px;
}

.about-team-grid.about-team-count-1 .about-team-card {
  flex: 0 1 300px;
  max-width: 320px;
}

.about-team-card:hover {
  transform: translateY(-4px);
}

.about-team-photo-wrap {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  border-radius: 20px;
  overflow: hidden;
  background: #f1f5f9;
  margin-bottom: 1rem;
  box-shadow: 0 8px 22px -6px rgba(15, 23, 42, 0.08);
}

.about-team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}

.about-team-card:hover .about-team-photo {
  transform: scale(1.04);
}

.about-team-name {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

.about-team-role {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .about-team-grid {
    gap: 1.75rem;
  }

  .about-team-card,
  .about-team-grid.about-team-count-4 .about-team-card,
  .about-team-grid.about-team-count-3 .about-team-card {
    flex: 0 1 calc((100% - 2 * 1.75rem) / 3);
    max-width: 250px;
  }

  .about-story-grid {
    gap: 2.5rem;
  }

  .about-hero-title {
    font-size: 2.5rem;
  }

  .about-hero-pocket-btn {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 768px) {
  .about-hero-section {
    padding: 3rem 0 2.5rem;
  }

  .about-hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 0;
  }

  .about-hero-title {
    font-size: 2.25rem;
    max-width: 100%;
  }

  .about-hero-subtitle {
    max-width: 100%;
  }

  .about-hero-banner-custom {
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
  }

  .about-hero-pocket-btn {
    width: 44px;
    height: 44px;
    right: 1.5%;
    bottom: 3%;
  }

  .about-hero-pocket-btn svg {
    width: 18px;
    height: 18px;
  }

  .about-story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-story-card {
    padding: 2.5rem 1.75rem;
    border-radius: 22px;
  }

  .about-trust-logos-row {
    justify-content: center;
    gap: 2rem;
  }

  .about-team-grid {
    gap: 1.5rem;
  }

  .about-team-card,
  .about-team-grid.about-team-count-4 .about-team-card,
  .about-team-grid.about-team-count-3 .about-team-card,
  .about-team-grid.about-team-count-2 .about-team-card {
    flex: 0 1 calc((100% - 1.5rem) / 2);
    max-width: 260px;
  }

  .about-team-title {
    font-size: 2.15rem;
  }
}

@media (max-width: 480px) {
  .about-hero-title {
    font-size: 1.85rem;
  }

  .about-hero-title-line-1 {
    white-space: normal;
  }

  .about-hero-pocket-btn {
    width: 36px;
    height: 36px;
    right: 1.2%;
    bottom: 2.5%;
    box-shadow: 0 4px 14px rgba(0, 201, 141, 0.4);
  }

  .about-hero-pocket-btn svg {
    width: 15px;
    height: 15px;
  }

  .about-team-grid {
    gap: 1.5rem;
  }

  .about-team-card,
  .about-team-grid.about-team-count-4 .about-team-card,
  .about-team-grid.about-team-count-3 .about-team-card,
  .about-team-grid.about-team-count-2 .about-team-card,
  .about-team-grid.about-team-count-1 .about-team-card {
    flex: 0 1 100%;
    max-width: 280px;
  }
}

