/**
 * ERP Brand Styles
 * Specific styles for the ERP (Process Point Corporation) brand
 */

/* ===== ERP COLOR PALETTE ===== */
:root {
  --erp-blue: #64a2f2;
  --erp-dark-blue: #0052ae;
  --erp-darkgray: #000000;
  --erp-lightgray: #E5E5E5;
  --erp-offwhite: #F5F5F5;
  --erp-white: #FFFFFF;
  --erp-black: #000000;
  --erp-text-color: #000000;
}

/* Override WordPress preset colors for ERP brand */
.brand-erp {
  --wp--preset--color--accent-current: #64a2f2;
}

/* ===== TYPOGRAPHY ===== */
/* Brand ERP now uses theme.json typography - no overrides needed */
.brand-erp {
  font-family: var(--wp--preset--font-family--primary);
  color: var(--erp-text-color);
}

.brand-erp h1,
.brand-erp h2,
.brand-erp h3,
.brand-erp h4,
.brand-erp h5,
.brand-erp h6,
.brand-erp .wp-block-heading {
  font-family: var(--wp--preset--font-family--primary);
  font-weight: 400;
  color: var(--erp-text-color);
}

/* Specific bold styling for hero titles */
.oracle-hero .oracle-hero-title,
.oracle-services-section .oracle-services-title,
.sap-hero .sap-hero-title,
.sap-services-section .sap-services-title,
.d365-hero .d365-hero-title,
.d365-services-section .d365-services-title {
  font-weight: 700 !important;
}

/* Hero descriptions use natural word spacing */
.hero-description,
.oracle-hero-definition p,
.oracle-services-description,
.sap-hero-definition p,
.sap-services-description,
.d365-hero-definition p,
.d365-services-description {
  text-align: start !important;
}

.brand-erp p,
.brand-erp span,
.brand-erp div,
.brand-erp a,
.brand-erp li {
  color: var(--erp-text-color);
}

/* Section text colors */
.stats-section--erp,
.methodology-section--erp,
.accelerators-section--erp,
.platforms-section--erp,
.results-section--erp {
  color: var(--erp-text-color);
}

.stats-section--erp *:not(a):not(button),
.methodology-section--erp *:not(a):not(button),
.accelerators-section--erp *:not(a):not(button),
.platforms-section--erp *:not(a):not(button),
.results-section--erp *:not(a):not(button) {
  color: inherit;
}

/* ===== ERP HERO BANNER ===== */
.hero-banner--erp {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

.hero-banner--erp .swiper-slide {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Background images for each slide */
.hero-banner--erp .swiper-slide.slide-1 {
  background-image: url('../images/homepage/Hero1.webp');
}

.hero-banner--erp .swiper-slide.slide-2 {
  background-image: url('../images/homepage/Hero2.webp');
}

.hero-banner--erp .swiper-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  /* 50% dark overlay */
  z-index: 1;
}

.hero-banner--erp .slide-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-banner--erp .slide-title {
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  /* 32px to 64px */
  font-weight: 400;
  font-style: normal;
  color: var(--erp-white);
  line-height: 1.2;
  margin-bottom: 2rem;
  text-shadow: none;
  letter-spacing: 0.02em;
}

.hero-banner--erp .slide-subtitle {
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  text-shadow: none;
}

/* Two-part CTA button */
.hero-banner--erp .btn-modulex-wrapper {
  display: inline-flex;
  align-items: stretch;
}

.hero-banner--erp .btn-modulex {
  display: inline-flex;
  align-items: center;
  background: var(--erp-blue) !important;
  color: var(--erp-white) !important;
  padding: 1rem 1.5rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  border: none;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.hero-banner--erp .btn-modulex-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--erp-blue);
  color: var(--erp-white);
  padding: 1rem;
  border: none;
  border-radius: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.hero-banner--erp .btn-modulex-arrow svg {
  width: 16px;
  height: 16px;
  transform: rotate(-45deg);
}

.hero-banner--erp .btn-modulex-wrapper:hover .btn-modulex,
.hero-banner--erp .btn-modulex-wrapper:hover .btn-modulex-arrow {
  background: var(--erp-dark-blue) !important;
}

/* Bottom-left description text */
.hero-banner--erp .hero-description {
  position: absolute;
  bottom: 4rem;
  left: 2rem;
  max-width: 400px;
  z-index: 2;
}

.hero-banner--erp .hero-description p {
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .hero-banner--erp .hero-description {
    display: none;
  }
}

/* Hero Navigation Arrows */
.hero-banner--erp .swiper-button-prev,
.hero-banner--erp .swiper-button-next {
  width: 50px !important;
  height: 50px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 0 !important;
  color: var(--erp-white) !important;
}

.hero-banner--erp .swiper-button-prev:hover,
.hero-banner--erp .swiper-button-next:hover {
  background: var(--erp-blue) !important;
  border-color: var(--erp-blue) !important;
}

.hero-banner--erp .swiper-button-prev::after,
.hero-banner--erp .swiper-button-next::after {
  font-size: 1rem !important;
  font-weight: 400;
}

/* Hero Pagination */
.hero-banner--erp .swiper-pagination {
  bottom: 3rem !important;
}

.hero-banner--erp .swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  background: rgba(255, 255, 255, 0.4) !important;
  border-radius: 0 !important;
  opacity: 1 !important;
}

.hero-banner--erp .swiper-pagination-bullet-active {
  background: var(--erp-blue) !important;
}

/* ===== SECTION SPACING ===== */
/* Add consistent spacing between all sections */

.stats-section--erp {
  padding: 6rem 0;
  background: var(--erp-offwhite);
}

.methodology-section--erp {
  padding: 6rem 0;
  background: var(--erp-white);
}

.accelerators-section--erp {
  padding: 6rem 0;
  background: var(--erp-offwhite);
}

.platforms-section--erp {
  padding: 6rem 0;
  background: var(--erp-white);
}

/* Platforms section - reduce image size for better balance */
.platforms-section--erp .usecases-layout {
  grid-template-columns: 35% 65%;
}

.platforms-section--erp .usecases-image img {
  max-width: 80%;
  height: auto;
}

/* Reduce gap between platforms and results sections */
.platforms-section--erp {
  padding-bottom: 3rem !important;
}

.results-section--erp {
  padding-top: 2rem !important;
}

.results-section--erp {
  padding: 6rem 0 !important;
  background: var(--erp-white);
}

.cta-section--erp {
  padding: 6rem 2rem;
  margin-top: 0;
}

/* Responsive spacing adjustments */
@media (max-width: 1024px) {

  .stats-section--erp,
  .methodology-section--erp,
  .accelerators-section--erp,
  .platforms-section--erp,
  .results-section--erp {
    padding: 5rem 0 !important;
  }

  .cta-section--erp {
    padding: 5rem 2rem;
    margin-top: 0;
  }
}

@media (max-width: 768px) {

  .stats-section--erp,
  .methodology-section--erp,
  .accelerators-section--erp,
  .platforms-section--erp,
  .results-section--erp {
    padding: 4rem 0 !important;
  }

  .cta-section--erp {
    padding: 4rem 1.5rem;
    margin-top: 0;
  }
}

/* ===== CTA SECTION STYLING ===== */
.cta-section--erp {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('../images/homepage/Background.webp') center/cover no-repeat;
  text-align: center;
}

.cta-section--erp .cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 0 2rem;
}

.cta-section--erp .cta-content h2 {
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--erp-white);
  margin-bottom: 1rem;
  text-transform: none;
}

.cta-section--erp .cta-content p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Ultra-specific selector to ensure center alignment */
.wp-block-group.cta-section--erp .cta-content p,
div.cta-section--erp .cta-content p,
.cta-section.cta-section--erp .cta-content p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.cta-section--erp .btn-modulex {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--erp-blue);
  color: var(--erp-white);
  padding: 1rem 2rem;
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cta-section--erp .btn-modulex::after {
  content: '→';
  font-size: 1.1rem;
}

.cta-section--erp .btn-modulex:hover {
  background: var(--erp-dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 162, 242, 0.3);
}

/* ===== ZOOM IMAGE SECTION ===== */
.zoom-image-wrapper {
  margin-top: -5rem;
  margin-bottom: 0;
  position: relative;
  z-index: 10;
  width: 100%;
}

.zoom-image-container {
  width: 100%;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
}

.zoom-image {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 0.15s ease-out;
}

/* Responsive zoom image */
@media (max-width: 1024px) {
  .zoom-image-wrapper {
    margin-top: -4rem;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .zoom-image-wrapper {
    margin-top: -3rem;
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .zoom-image-wrapper {
    margin-top: -2rem;
    margin-bottom: 0;
  }
}

/* ===== ERP SERVICE PAGE ===== */

/* Wide content containers for all ERP sections */
.erp-benefits-grid,
.erp-methodology-grid,
.erp-industry-showcase,
.erp-implementation-stats {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.erp-overview-section .wp-block-columns,
.erp-methodology-section>.wp-block-group__inner-container {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Center headings and content within wide sections */
.erp-overview-section>.wp-block-heading,
.erp-overview-section>.wp-block-paragraph,
.erp-methodology-section>.wp-block-heading,
.erp-methodology-section>.wp-block-paragraph,
.erp-methodology-section>.wp-block-image,
.erp-benefits-grid+.wp-block-heading,
.erp-benefits-grid+.wp-block-paragraph {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* ERP Service Hero */
.erp-service-hero {
  position: relative;
  background: linear-gradient(135deg, var(--erp-darkgray) 0%, var(--erp-blue) 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.erp-service-hero__content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.erp-service-hero__title {
  color: var(--erp-white) !important;
  margin-bottom: 1.5rem;
}

.erp-service-hero__subtitle {
  color: rgba(255, 255, 255, 0.9) !important;
  margin-bottom: 2.5rem;
  text-align: center !important;
}

.erp-service-hero .btn-modulex .wp-block-button__link {
  background: linear-gradient(135deg, #0052a3 0%, #0052cc 100%) !important;
  color: var(--erp-white) !important;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid var(--erp-white);
  transition: all 0.3s ease;
}

.erp-service-hero .btn-modulex .wp-block-button__link:hover {
  background: linear-gradient(135deg, #0052a3 0%, #0052cc 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 162, 242, 0.3);
}

@media (max-width: 768px) {
  .erp-service-hero {
    min-height: 500px;
    padding: 6rem 1.5rem;
  }
}

/* ERP Overview Section */
.erp-overview-section .wp-block-columns {
  align-items: center;
}

.erp-overview__text p {
  line-height: 1.7;
}

.erp-overview__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.erp-overview__visual img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

@media (max-width: 768px) {
  .erp-overview-section .wp-block-columns {
    flex-direction: column;
  }

  .erp-overview__text,
  .erp-overview__visual {
    flex-basis: 100% !important;
  }
}

/* ERP Benefits Grid */
.erp-benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.erp-benefits__card {
  position: relative;
  padding: 2rem;
  background: var(--erp-white);
  border: 1px solid var(--erp-lightgray);
  transition: all 0.3s ease;
  overflow: hidden;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.erp-benefits__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
  transition: all 0.3s ease;
}

.erp-benefits__card:hover::before {
  background: linear-gradient(135deg, rgba(100, 162, 242, 0.85) 0%, rgba(0, 0, 0, 0.75) 100%);
}

.erp-benefits__card:hover {
  box-shadow: 0 12px 32px rgba(100, 162, 242, 0.3);
  transform: translateY(-8px);
  border-color: var(--erp-blue);
}

/* Individual card backgrounds */
.erp-benefits__card:nth-child(1) {
  background-image: url('../images/erp/benefit-speed.webp');
}

.erp-benefits__card:nth-child(2) {
  background-image: url('../images/erp/benefit-efficiency.webp');
}

.erp-benefits__card:nth-child(3) {
  background-image: url('../images/erp/benefit-integration.webp');
}

.erp-benefits__card:nth-child(4) {
  background-image: url('../images/erp/benefit-automation.webp');
}

.erp-benefits__card:nth-child(5) {
  background-image: url('../images/erp/benefit-scalability.webp');
}

.erp-benefits__card:nth-child(6) {
  background-image: url('../images/erp/benefit-analytics.webp');
}

.erp-benefits__icon {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  color: var(--erp-blue);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.erp-benefits__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.erp-benefits__title {
  position: relative;
  z-index: 2;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--erp-white);
  margin-bottom: 0.75rem;
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.erp-benefits__description {
  position: relative;
  z-index: 2;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
  .erp-benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .erp-benefits-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ERP Methodology Section */
.erp-methodology-section .wp-block-image img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  object-fit: cover;
}

.erp-methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.erp-methodology__phase {
  padding: 2rem;
  background: var(--erp-white);
  border: 1px solid var(--erp-lightgray);
  border-top: 4px solid var(--erp-blue);
  transition: all 0.3s ease;
}

.erp-methodology__phase:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.erp-methodology__number {
  width: 48px;
  height: 48px;
  background: var(--erp-blue);
  color: var(--erp-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
}

.erp-methodology__title {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--erp-text-color);
  margin-bottom: 0.75rem;
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
}

.erp-methodology__description {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.erp-methodology__activities {
  list-style: none;
  padding: 0;
  margin: 0;
}

.erp-methodology__activities li {
  font-size: 0.875rem;
  color: #64748b;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.erp-methodology__activities li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--erp-blue);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .erp-methodology-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .erp-methodology-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ERP Industry Showcase */
.erp-industry-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.erp-industry__card {
  padding: 2rem;
  background: var(--erp-white);
  border: 1px solid var(--erp-lightgray);
  text-align: center;
  transition: all 0.3s ease;
}

.erp-industry__card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  border-color: var(--erp-blue);
}

.erp-industry__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  color: var(--erp-blue);
}

.erp-industry__icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.erp-industry__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--erp-text-color);
  margin-bottom: 0.75rem;
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
}

.erp-industry__usecase {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 1024px) {
  .erp-industry-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .erp-industry-showcase {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ERP Implementation Stats */
.erp-implementation-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.erp-implementation-stats__item {
  text-align: center;
}

.erp-implementation-stats__value {
  font-size: 3.5rem;
  font-weight: 400;
  color: var(--erp-blue);
  line-height: 1.2;
  margin-bottom: 0.5rem;
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
}

.erp-implementation-stats__label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--erp-text-color);
  margin-bottom: 0.5rem;
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
}

.erp-implementation-stats__description {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
}

@media (max-width: 1024px) {
  .erp-implementation-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .erp-implementation-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .erp-implementation-stats__value {
    font-size: 3rem;
  }
}

/* ===== ACCELERATOR TABS BLUE OVERRIDE ===== */
.brand-erp .accelerator-tabs__tab.is-active {
  background: #64a2f2 !important;
  color: #FFFFFF !important;
}

.brand-erp .accelerator-tabs__info li::before {
  background: #64a2f2 !important;
}

/* ===== ERP TESTING AUTOMATION GRID ===== */
.erp-testing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 4rem auto 0;
}

.erp-testing-column {
  background: #4a5568;
  padding: 2rem;
  border-radius: 8px;
}

.erp-testing-column__title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--erp-white);
  text-align: center;
  margin-bottom: 1.5rem;
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
}

.erp-testing-column__items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.erp-testing-item {
  background: #c4b5fd;
  color: #4a5568;
  padding: 0.875rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-align: center;
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
}

@media (max-width: 1024px) {
  .erp-testing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .erp-testing-column {
    padding: 1.5rem;
  }

  .erp-testing-column__title {
    font-size: 1.25rem;
  }
}

/* ===== ORACLE BUSINESS FUNCTIONS V2 - FLIP CARDS ===== */
.oracle-business-functions-v2 {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

.oracle-business-functions-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 300px;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.03) 0%, rgba(0, 82, 204, 0.05) 100%);
  z-index: 0;
}

.oracle-business-functions-v2-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.business-functions-v2-header {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem;
}

.business-functions-v2-header .section-title-playfair {
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* SAP and D365 section title styling */
.sap-benefits-header .section-title-playfair,
.d365-benefits-header .section-title-playfair {
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.sap-migrations-header .section-title-playfair,
.d365-migrations-header .section-title-playfair {
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  font-size: clamp(2.25rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.d365-tactical-section .section-title-playfair {
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: #0a1628;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.business-functions-v2-header .section-description {
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.7;
  color: #475569;
  font-weight: 400;
}

.business-functions-v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.function-card-v2 {
  perspective: 1000px;
  height: 380px;
  position: relative;
}

.function-card-v2-front,
.function-card-v2-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.function-card-v2-front {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotateY(0deg);
  cursor: pointer;
  z-index: 2;
}

.function-card-v2-back {
  background: linear-gradient(135deg, #0052a3 0%, #0052cc 100%);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 1;
}

.function-card-v2:hover .function-card-v2-front {
  transform: rotateY(-180deg);
}

.function-card-v2:hover .function-card-v2-back {
  transform: rotateY(0deg);
  z-index: 2;
}

.function-icon-wrapper-v2 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0052a3 0%, #0052cc 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 24px rgba(0, 102, 255, 0.25);
  transition: all 0.3s ease;
}

.function-card-v2:hover .function-icon-wrapper-v2 {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 32px rgba(0, 102, 255, 0.35);
}

.function-icon-v2 {
  width: 40px;
  height: 40px;
  color: #ffffff;
  stroke-width: 2;
}

.function-card-title-v2 {
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  font-size: 1.375rem;
  font-weight: 600;
  color: #0a1628;
  margin: 0 0 1rem 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.function-card-description-v2 {
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0 0 1.5rem 0;
  flex-grow: 1;
}

div.function-card-v2 > div.function-card-v2-front > p.function-card-description-v2 {
  text-align: center !important;
}

.function-card-count-v2 {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(0, 82, 204, 0.15) 100%);
  color: #0052a3;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.function-card-arrow-v2 {
  width: 24px;
  height: 24px;
  color: #0052a3;
  opacity: 0.6;
  transition: all 0.3s ease;
}

.function-card-v2:hover .function-card-arrow-v2 {
  opacity: 1;
  transform: translateX(4px);
}

.function-card-arrow-v2 svg {
  width: 100%;
  height: 100%;
}

/* Back side styles */
.function-card-back-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.function-icon-v2-small {
  width: 28px;
  height: 28px;
  color: #ffffff;
  stroke-width: 2;
  flex-shrink: 0;
}

.function-card-back-header h4 {
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.function-list-v2 {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.function-list-v2 li {
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
}

.function-list-v2 li:hover {
  background: rgba(255, 255, 255, 0.2);
  border-left-color: #ffffff;
  transform: translateX(4px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .oracle-business-functions-v2 {
    padding: 5rem 1.5rem;
  }

  .business-functions-v2-grid {
    gap: 1.5rem;
  }

  .function-card-v2 {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .oracle-business-functions-v2 {
    padding: 4rem 1.25rem;
  }

  .business-functions-v2-header {
    margin-bottom: 3rem;
  }

  .business-functions-v2-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .function-card-v2 {
    height: 340px;
  }

  .function-card-v2-front,
  .function-card-v2-back {
    padding: 2rem 1.5rem;
  }

  .function-icon-wrapper-v2 {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
  }

  .function-icon-v2 {
    width: 36px;
    height: 36px;
  }

  .function-card-title-v2 {
    font-size: 1.25rem;
  }

  .function-card-description-v2 {
    font-size: 0.875rem;
  }

  .function-list-v2 li {
    font-size: 0.875rem;
    padding: 0.625rem 0.875rem;
  }
}