/* ==========================================================================
   NEXTGEN ABOUT / MEET EJAZ SECTION (FINAL POLISHED STYLES)
   ========================================================================== */

.ng-about-wrapper {
  width: min(100% - 2rem, 1170px);
  margin: 4rem auto;
  position: relative;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

/* Section Header */
.ng-about-header {
  position: relative;
  z-index: 2;
  margin-bottom: 2rem;
}

.ng-about-title {
 font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 400;
  letter-spacing: -0.03em;
  text-transform: capitalize !important;
  line-height: 1.2;
  color: #000000;
  margin: 0;
}

.ng-about-subtitle {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
font-size: 0.8rem;
font-weight: 700;
color: var(--ng-coral, #FEAC97);
text-transform: uppercase;
letter-spacing: 0.05em;
white-space: nowrap;
}

/* Flex Container for Main Card + Side Cards */
.ng-about-container {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  align-items: stretch;
  position: relative;
  height: 420px;
}

/* ==========================================================================
   DESKTOP VERSION
   ========================================================================== */
.ng-desktop-only {
  display: flex;
}

.ng-about-main-card {
  flex: 0 0 340px;
  background: var(--ng-coral, #FEAC97);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  padding: 0;
  transition: flex 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: none;
  border: none;
  height: 100%;
}

.ng-about-main-card.expanded {
  flex: 0 0 700px;
}

.ng-about-img-side {
  flex: 0 0 340px;
  min-width: 340px;
  height: 100%;
  position: relative;
  background: var(--ng-coral, #FEAC97);
  overflow: hidden;
}

.ng-about-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
}

.ng-about-details-side {
  width: 360px;
  min-width: 360px;
  height: 100%;
  background: var(--ng-coral, #FEAC97);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  overflow-y: auto;
}

.ng-about-main-card.expanded .ng-about-details-side {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.ng-about-details-side h3 {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #000000;
  margin: 0 0 1rem 0;
  letter-spacing: -0.02em;
}

.ng-about-details-side p {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.88rem;
  line-height: 1.65;
  color: #000000;
  margin: 0 0 0.85rem 0;
  font-weight: 600;
}

/* ==========================================================================
   MOBILE VERSION (3D Flip)
   ========================================================================== */
.ng-mobile-only {
  display: none;
}

/* Side Cards Container */
.ng-about-side-cards {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  flex: 1;
  height: 100%;
}

.ng-about-info-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 1.75rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
  height: calc(50% - 0.625rem);
}

.ng-about-info-card h3 {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: #000000;
  margin: 0 0 0.8rem 0;
  letter-spacing: -0.02em;
}

.ng-counter-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.ng-counter-item {
  display: flex;
  flex-direction: column;
}

.ng-counter-number {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ng-coral, #FEAC97);
  line-height: 1.1;
}

.ng-counter-label {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  font-weight: 700;
  color: #444444;
  margin-top: 0.2rem;
}

.ng-about-info-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ng-about-info-card li {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ng-about-info-card li::before {
  content: "•";
  color: var(--ng-coral, #FEAC97);
  font-size: 1.2rem;
}

/* Shared Toggle Button */
.ng-about-toggle-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: #000000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.ng-about-toggle-btn:hover {
  background: #0085FF;
  color: #ffffff;
  transform: scale(1.08);
}

/* Mobile Name Tag Overlay on Front Image */
.ng-mobile-name-tag {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.ng-mobile-name-tag span {
  display: block;
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--ng-coral, #FEAC97);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ng-mobile-name-tag h4 {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 1rem;
  font-weight: 800;
  color: #000000;
  margin: 0;
}

/* Media Queries */
@media (max-width: 768px) {
  .ng-desktop-only {
    display: none !important;
  }
  .ng-mobile-only {
    display: block !important;
    width: 100%;
  }

  .ng-about-container {
    height: auto;
    flex-direction: column;
  }

  .ng-mobile-flip-card {
    width: 100%;
    height: 380px;
    background: transparent;
    perspective: 1000px;
    position: relative;
    margin-bottom: 1.5rem;
  }

  .ng-mobile-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    cursor: pointer;
    border-radius: 24px;
  }

  .ng-mobile-flip-card.flipped .ng-mobile-flip-inner {
    transform: rotateY(180deg);
  }

  .ng-mobile-front,
  .ng-mobile-back {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 24px;
    overflow: hidden;
    background: var(--ng-coral, #FEAC97);
  }

  .ng-mobile-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    display: block;
  }

  .ng-mobile-back {
    transform: rotateY(180deg);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .ng-mobile-back p {
    font-family: var(--ng-font-body, 'Inter', sans-serif);
    font-size: 0.88rem;
    line-height: 1.65;
    color: #000000;
    margin: 0 0 0.85rem 0;
    font-weight: 600;
  }

  .ng-about-side-cards {
    width: 100%;
    height: auto;
  }

  .ng-about-info-card {
    height: auto;
  }
}