/* Technology Page Styles - Developed according to the design drawings, with the content centered. */

.tech-page {
  background: rgba(234, 235, 235, 1);
}

.tech-container {
  box-sizing: border-box !important;
  position: relative !important;
  margin: 0 auto !important;
  text-align: left;
  max-width: 1200px !important;
  margin: 0 auto !important;
  z-index: 5;
}

/* Hero Section */
.tech-hero-section {
  text-align: center;
  position: relative;
}

.tech-hero-title {
  font-size: 44px;
  font-weight: 500;
  padding: 230px 0 20px 0;
  line-height: 1.2;
}

.tech-hero-subtitle {
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 130px 0;
  line-height: 1.4;
}

.tech-hero-description {
  font-size: 16px;
  color: rgba(51, 51, 51, 1);
  line-height: 1.8;
  margin: 0 0 70px;
}

.tech-hero-tags {
  display: flex;
  gap: 20px;
  margin-top: 40px;
}

.tech-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
}

.tech-tag-white {
  background-color: rgba(255, 255, 255, 1);
  color: rgba(51, 51, 51, 1);
}

.tech-tag-green {
  background-color: rgba(12, 192, 143, 0.2);
  color: rgba(51, 51, 51, 1);
}

.tech-tag-icon {
  font-size: 20px;
}

/* Section Styles */
.tech-section {
  padding: 100px 0;
  width: 100%;
}

.tech-section-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

.tech-section-subtitle {
  font-weight: 400;
  font-size: 20px;
  line-height: 1.4;
}

.tech-section-description {
  font-size: 19px;
  line-height: 1.8;
  margin-bottom: 56px;
}

.tech-detail1 {
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 15px;
}

.tech-detail2 {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 50px;
}

/* Feature Grid */
.tech-feature-grid {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 952px;
  margin: 60px auto;
}

.tech-feature-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 328px;
  height: 160px;
  padding: 0 44px;
  text-align: center;
  border-left: 1px solid rgba(90, 90, 90, 1);
  line-height: 1.9;
}

.tech-feature-card:last-child {
  border-right: 1px solid rgba(90, 90, 90, 1);
}

.tech-detail3 {
  font-size: 20px;
  color: rgba(102, 102, 102, 1);
}

.tech-feature-title {
  font-size: 20px;
  font-weight: 600;
  color: rgba(51, 51, 51, 1);
  margin: 0 0 16px 0;
}

.compute-section-title {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.compute-section-subtitle {
  font-size: 20px;
  line-height: 1.8;
  margin-bottom: 50px;
}

.tech-compute-img {
  width: 449px;
  height: 378px;
}

.compute-section-content {
  width: 90%;
  padding: 0 0 20px 42px;
  border-bottom: 1px solid rgba(128, 128, 128, 1);
  margin-bottom: 30px;
}

.compute-section-content-title {
  font-weight: 400;
  font-size: 24px;
  margin-bottom: 20px;
}

.compute-section-content-list {
  font-size: 16px;
  line-height: 30px;
  margin-left: 22px;
}

.compute-section-detail {
  font-size: 20px;
  color: rgba(102, 102, 102, 1);
  padding: 0 20px;
}

.compute-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  margin-top: 60px;
}

.compute-section-content-box {
  width: calc(100% - 489px);
}

/* Role Cards */
.tech-role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin: 50px 0 0;
}

.tech-role-card {
  min-height: 200px;
  padding: 40px 20px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tech-role-card-white {
  background-color: rgba(255, 255, 255, 1);
}

.tech-role-card-dark {
  background-color: rgba(51, 51, 51, 1);
  color: rgba(255, 255, 255, 1);
}

.tech-role-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.tech-role-text {
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.tech-role-card-dark .tech-role-title,
.tech-role-card-dark .tech-role-text {
  color: rgba(255, 255, 255, 1);
}

/* Placeholder Boxes */
.tech-placeholder-box {
  width: 330px;
  height: 316px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  box-sizing: border-box;
  background-color: transparent;
}

.tech-placeholder-left {
  margin: 0;
}

.tech-placeholder-small {
  min-height: 300px;
  height: auto;
  max-width: 100%;
  box-sizing: border-box;
}

.tech-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Subsection */
.tech-subsection {
  margin: 40px auto;
  text-align: left;
}

.tech-subsection-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 16px 0;
}

.tech-subsection-text {
  font-size: 20px;
  line-height: 1.8;
  margin: 0 0 24px 0;
}

/* Bullet List */
.tech-bullet-list {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.tech-bullet-list ul {
  width: 40%;
  padding: 32px 0 32px 100px;
  font-size: 16px;
  border-top: 1px solid rgba(128, 128, 128, 1);
  border-bottom: 1px solid rgba(128, 128, 128, 1);
}

.tech-bullet-list li {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 10px;
}

.tech-subsection-text1 {
  font-size: 20px;
  color: #666;
}

.tech-bullet-list-models {
  margin-left: 20px;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;

}

/* Content Row */
.tech-content-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 60px 0 80px;
  height: 316px;
  background: rgba(179, 179, 179, 0.5);
  padding: 40px;
}

.tech-content-item {
  margin-bottom: 60px;
  font-size: 16px;
  z-index: 4 !important;
}

.tech-content-item-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.tech-content-item:nth-child(2) {
  margin-left: 80px;
}

.tech-content-wrapper {
  position: relative;
  padding: 40px 0 0 40px;
}

.tech-content-wrapper:first-child {
  background-color: #f8f8f8;
}

.tech-content-wrapper:first-child::before {
  content: "";
  position: absolute;
  top: 0px;
  left: 447px;
  width: 100%;
  height: 100%;
  background-color: #f8f8f8;
  z-index: 2;
}

/* English version adjustment - using custom body class */
.lang-en-version .tech-content-wrapper:first-child::before {
  left: 417px !important;
}

/* Left column: Triangle from top left to bottom right */
.tech-content-wrapper:first-child::before {
  clip-path: polygon(0 0, 0 0, 50% 50%, 0 100%);
}

.tech-content-wrapper>* {
  position: relative;
  z-index: 1;
}

.tech-content-wrapper:last-child {
  margin-left: 50px;
}

.tech-content-wrapper:last-child::before {
  content: "";
  position: absolute;
  top: 0px;
  left: -180px;
  width: 100%;
  height: 100%;
  background-color: #fff;
  z-index: 0;
}

.tech-content-wrapper:last-child .tech-content-item {
  margin-bottom: 80px;
}

.tech-content-Platform {
  display: flex;
  flex-direction: row;
  margin: 50px auto 80px;
  width: 100%;
  background-color: #fff;
}

.tech-section-Platform {
  padding-bottom: 0;
}

/* Ensure images and media elements do not overflow */
.tech-content-row img:not(.tech-placeholder-img) {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Placeholder image style - Ensure the image completely fills the container, without overflow or blank space */
.tech-placeholder-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.tech-content-text {
  width: calc(100% - 422px);
  height: 100%;
  padding: 0 32px 0 60px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Engagement Section */
.tech-section-engagement {
  padding: 20px 0;
}

.tech-section-engagement .tech-section-header {
  width: 478px;
  height: 478px;
  background: url("./img/technology/bg6.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
}

.tech-section-engagement .tech-section-title {
  font-size: 20px;
  margin: 50px 0 24px 0;
}

.tech-section-engagement .tech-section-subtitle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.8;
  margin: 0 0 24px 0;
  text-align: center;
}

.tech-section-engagement .tech-section-description {
  width: 284px;
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
}

.engagement-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;

}

.tech-engagement-grid {
  margin: 60px 0;
}

.tech-engagement-card {
  padding: 40px 50px;
  border-top: 1px solid rgba(128, 128, 128, 1);
}

.tech-engagement-card:last-child {
  border-bottom: 1px solid rgba(128, 128, 128, 1);
}

.tech-engagement-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 24px 0;
}

.tech-engagement-cta {
  text-align: center;
  margin-top: 60px;
}

.tech-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 38px;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.tech-btn-primary {
  background-color: rgba(255, 255, 255, 1);
  color: rgba(51, 51, 51, 1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.tech-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tech-btn-arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.tech-btn-primary:hover .tech-btn-arrow {
  transform: translateX(4px);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
  .tech-hero-title {
    padding-top: 150px;
    font-size: 36px;
  }

  .tech-hero-subtitle {
    margin-bottom: 80px;
  }

  .tech-feature-grid {
    width: 100%;
    flex-wrap: wrap;
  }

  .tech-feature-card {
    width: 50%;
    border-bottom: 1px solid rgba(90, 90, 90, 1);
  }

  .tech-feature-card:nth-child(2) {
    border-right: none;
  }

  .tech-feature-card:last-child {
    border-bottom: none;
    width: 100%;
    border-left: none;
    border-right: none;
  }

  .compute-section-content-box {
    width: 100%;
  }

  .tech-compute-img {
    display: none;
    /* Hide image on tablet/mobile if it breaks layout, or adjust */
  }
}

@media screen and (max-width: 768px) {

  /* Hero Section */
  .tech-hero-title {
    padding-top: 100px;
    font-size: 28px;
  }

  .tech-hero-subtitle {
    font-size: 20px;
    margin-bottom: 50px;
  }

  .tech-hero-tags {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Feature Grid */
  .tech-feature-grid {
    flex-direction: column;
    margin: 40px 0;
    border: 1px solid rgba(90, 90, 90, 1);
  }

  .tech-feature-card {
    width: 100%;
    height: auto;
    padding: 30px 20px;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(90, 90, 90, 1);
  }

  .tech-feature-card:last-child {
    border-bottom: none;
  }

  /* Compute Section */
  .compute-row {
    flex-direction: column;
    margin-top: 40px;
  }

  .compute-section-content {
    width: 100%;
    padding: 0 0 20px 0;
  }

  .tech-compute-img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 30px;
  }

  /* Content Row (Alternating Layout) */
  .tech-content-row {
    flex-direction: column;
    height: auto;
    padding: 40px 20px;
    margin: 40px 0;
  }

  .tech-content-text {
    width: 100%;
    padding: 20px 0;
  }

  .tech-placeholder-box {
    width: 100%;
    height: auto;
    position: relative;
    margin-bottom: 20px;
  }

  .tech-placeholder-img {
    position: relative;
    width: 100%;
    height: auto;
    top: auto;
    left: auto;
  }

  .tech-content-item {
    margin-left: 0 !important;
    margin-bottom: 30px;
  }

  .tech-content-wrapper:first-child::before,
  .tech-content-wrapper:last-child::before {
    display: none;
    /* Remove complex background shapes on mobile */
  }

  .tech-content-wrapper {
    padding: 20px;
    margin-left: 0 !important;
  }

  .tech-content-Platform {
    flex-direction: column;
    margin: 40px 0;
  }

  /* Engagement Section */
  .engagement-wrapper {
    flex-direction: column;
  }

  .tech-section-engagement .tech-section-header {
    width: 100%;
    height: 300px;
    margin-right: 0;
    margin-bottom: 30px;
  }

  .tech-engagement-grid {
    width: 100%;
  }

  .tech-engagement-card {
    padding: 30px 20px;
  }

  .tech-section-engagement .tech-section-description {
    width: 100%;
    padding: 0 20px;
  }

  /* Technology Feature Cards - Mobile Optimization */
  .tech-feature-grid {
    width: 100% !important;
    flex-direction: column !important;
    margin: 40px 0 !important;
    gap: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }

  .tech-feature-card {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding: 25px 20px !important;
    border: none !important;
    border-bottom: 1px solid rgba(100, 100, 100, 0.3) !important;
    background: transparent !important;
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transform: none !important;
  }

  .tech-feature-card:first-child {
    border-top: none !important;
    border-radius: 0 !important;
  }

  .tech-feature-card:last-child {
    border-radius: 0 !important;
  }

  .tech-feature-card:hover {
    background: transparent !important;
    transform: none !important;
  }
}

@media screen and (max-width: 480px) {
  .tech-hero-title {
    font-size: 24px;
  }

  .tech-section-title {
    font-size: 24px;
  }

  .tech-tag {
    padding: 10px 16px;
    font-size: 14px;
  }

  /* Technology Feature Cards - Extra Small Screens */
  .tech-feature-card {
    padding: 20px 15px !important;
    font-size: 15px !important;
    min-height: 100px !important;
  }
}