/* =========================================================
   07. Theme Upgrade Rebuild
   ========================================================= */

.theme-rebuild-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(
      circle at top left,
      rgba(13, 110, 253, 0.07),
      transparent 28%
    ),
    radial-gradient(
      circle at bottom right,
      rgba(255, 90, 0, 0.06),
      transparent 30%
    ),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #071333;
}

.theme-rebuild-head {
  max-width: 1120px;
}

.theme-rebuild-kicker {
  color: #ff5a00;
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.theme-rebuild-kicker span {
  width: 54px;
  height: 2px;
  display: block;
  background: currentColor;
}

.theme-rebuild-head h2 {
  color: #071333;
  font-size: 44px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.theme-rebuild-head p {
  max-width: 960px;
  color: #26345d;
  font-size: 18px;
  line-height: 1.45;
}

.theme-rebuild-card {
  border: 1px solid #dbe8fb;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 42px rgba(13, 40, 88, 0.08);
}

.theme-rebuild-before {
  border-color: #ffd5d5;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 61, 48, 0.08),
      transparent 38%
    ),
    rgba(255, 255, 255, 0.92);
}

.theme-rebuild-after {
  border-color: #cfe1fa;
  background:
    radial-gradient(
      circle at top right,
      rgba(13, 110, 253, 0.08),
      transparent 38%
    ),
    rgba(255, 255, 255, 0.94);
}

.theme-rebuild-status {
  min-width: 150px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.theme-rebuild-status-before {
  background: linear-gradient(135deg, #ff4b3e, #ef2e2e);
  box-shadow: 0 10px 24px rgba(255, 61, 48, 0.22);
}

.theme-rebuild-status-after {
  background: linear-gradient(135deg, #14a66a, #008b4a);
  box-shadow: 0 10px 24px rgba(0, 139, 74, 0.2);
}

.theme-rebuild-card-title h3 {
  color: #071333;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.theme-rebuild-before .theme-rebuild-card-title h3,
.theme-rebuild-before h4 {
  color: #7b0909;
}

.theme-rebuild-after .theme-rebuild-card-title h3,
.theme-rebuild-after h4 {
  color: #071b67;
}

.theme-rebuild-preview {
  min-width: 0;
}

.theme-rebuild-preview-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 28px rgba(7, 29, 77, 0.16));
}

.theme-rebuild-item {
  padding: 12px 0;
  border-bottom: 1px solid #dbe8fb;
}

.theme-rebuild-item:last-child {
  border-bottom: 0;
}

.theme-rebuild-issue-icon,
.theme-rebuild-benefit-icon {
  width: 58px;
  min-width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 28px;
}

.theme-rebuild-issue-icon {
  color: #9b1111;
  background: #fff0f0;
  border: 1px solid #ffcaca;
}

.theme-rebuild-benefit-icon {
  color: #008b4a;
  background: #eaf9f1;
  border: 1px solid #bdebd4;
}

.theme-rebuild-item-content {
  min-width: 0;
}

.theme-rebuild-item h4 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.theme-rebuild-item p {
  margin: 0;
  color: #071333;
  font-size: 15px;
  line-height: 1.32;
}

.theme-rebuild-arrow {
  position: relative;
  width: 92px;
  height: 92px;
  border: 1px solid #dbe8fb;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(13, 40, 88, 0.08);
}

.theme-rebuild-arrow::before,
.theme-rebuild-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 44px;
  height: 2px;
  border-top: 2px dashed;
}

.theme-rebuild-arrow::before {
  right: calc(50% + 46px);
  border-color: #ff4b3e;
}

.theme-rebuild-arrow::after {
  left: calc(50% + 46px);
  border-color: #0d6efd;
}

.theme-rebuild-arrow i {
  color: #0d6efd;
  font-size: 46px;
}

.theme-rebuild-cta {
  border: 1px solid #cfe1fa;
  background:
    radial-gradient(circle at left, rgba(13, 110, 253, 0.08), transparent 28%),
    #f4f9ff;
  box-shadow: 0 14px 34px rgba(17, 40, 80, 0.06);
}

.theme-rebuild-code-screen {
  position: relative;
  width: 210px;
  height: 118px;
  padding: 24px;
  background: #071333;
  box-shadow: 0 18px 34px rgba(7, 29, 77, 0.18);
}

.theme-rebuild-code-screen::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: -14px;
  height: 16px;
  border-radius: 0 0 40px 40px;
  background: #cfe1fa;
}

.theme-rebuild-code-screen span {
  display: block;
  width: 80%;
  height: 4px;
  margin-bottom: 9px;
  border-radius: 20px;
  background: rgba(86, 231, 255, 0.45);
}

.theme-rebuild-code-screen span:nth-child(2) {
  width: 62%;
}

.theme-rebuild-code-screen span:nth-child(3) {
  width: 74%;
}

.theme-rebuild-code-screen span:nth-child(4) {
  width: 54%;
}

.theme-rebuild-code-screen i {
  position: absolute;
  left: -34px;
  bottom: -28px;
  color: #3b82f6;
  font-size: 50px;
}

.theme-rebuild-drupal {
  width: 110px;
  min-width: 110px;
  height: 110px;
  color: #0d6efd;
  background: #ffffff;
  border: 1px solid #cfe1fa;
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.12);
  font-size: 62px;
}

.theme-rebuild-cta-content h3 {
  color: #071333;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
}

.theme-rebuild-cta-content p {
  color: #071333;
  font-size: 18px;
  line-height: 1.45;
}

.theme-rebuild-cta-points span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #071333;
  font-size: 15px;
  font-weight: 800;
}

.theme-rebuild-cta-points i {
  color: #0d6efd;
  font-size: 22px;
}

.theme-rebuild-cta-divider {
  width: 1px;
  height: 80px;
  margin: 0 auto;
  background: #b9d4fb;
}

.theme-rebuild-btn {
  min-height: 58px;
  gap: 14px;
  padding: 0 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff7a00, #ff4d00);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(255, 90, 0, 0.25);
}

.theme-rebuild-btn i {
  font-size: 22px;
  flex-shrink: 0;
}

/* =========================================================
   07.Theme Upgrade Rebuild Responsive
   ========================================================= */

/* Large Desktop Image Scale */
@media (min-width: 1400px) {
  .optimization-engine-wrap  img {
    transform: scale(1.59);
  }
}

/* Laptop Image Scale */
@media (min-width: 1200px) and (max-width: 1399px) {
  .optimization-engine-wrap  img {
    transform: scale(1.5);
  }
}

/* Tablet Image Scale */
@media (max-width: 1199px) {
  .optimization-engine-wrap  img {
    transform: scale(1);
  }
}

@media (max-width: 1600px) {
  .theme-rebuild-kicker {
    font-size: 14px;
  }

  .theme-rebuild-head h2 {
    font-size: 32px;
  }

  .theme-rebuild-head p {
    font-size: 15px;
  }

  .theme-rebuild-card-title h3,
  .theme-rebuild-cta-content h3 {
    font-size: 22px;
  }

  .theme-rebuild-status,
  .theme-rebuild-item p,
  .theme-rebuild-cta-points span,
  .theme-rebuild-btn {
    font-size: 14px;
  }

  .theme-rebuild-item h4 {
    font-size: 17px;
  }

  .theme-rebuild-cta-content p {
    font-size: 14px;
  }

  .theme-rebuild-issue-icon,
  .theme-rebuild-benefit-icon {
    width: 52px;
    min-width: 52px;
    height: 52px;
    font-size: 24px;
  }

  .theme-rebuild-status {
    min-height: 38px;
  }

  .theme-rebuild-btn {
    min-height: 58px;
  }
}

@media (max-width: 991px) {
  .theme-rebuild-card {
    padding: 22px !important;
  }

  .theme-rebuild-cta,
  .theme-rebuild-cta-content {
    text-align: center;
  }

  .theme-rebuild-cta-points {
    justify-content: center;
  }

  .theme-rebuild-cta-visual {
    margin: 0 auto;
  }
  .theme-rebuild-cta-visual img,
  .wl-faq-help-img img {
    object-fit: cover !important;
    height: 225px !important;
  }
}

@media (max-width: 767px) {
  .theme-rebuild-kicker {
    font-size: 13px;
  }

  .theme-rebuild-kicker span {
    width: 34px;
  }

  .theme-rebuild-head h2 {
    font-size: 22px;
  }
  .theme-rebuild-description {
    font-size: 15px;
  }
  .theme-rebuild-card-title {
    align-items: center !important;
  }

  .theme-rebuild-head p {
    font-size: 16px;
  }

  .theme-rebuild-card-title {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  .theme-rebuild-card-title h3,
  .theme-rebuild-item h4,
  .theme-rebuild-cta-content h3 {
    font-size: 18px;
  }

  .theme-rebuild-item p,
  .theme-rebuild-cta-content p,
  .theme-rebuild-cta-points span,
  .theme-rebuild-btn {
    font-size: 14px;
  }

  .theme-rebuild-item {
    align-items: flex-start;
  }

  .theme-rebuild-btn {
    width: 100%;
    min-height: 58px;
    padding: 0 18px;
    white-space: normal;
  }
  .theme-rebuild-item h4 {
    font-size: 16px;
  }
  .theme-rebuild-item-description,
  .theme-rebuild-cta-description,
  .theme-rebuild-cta-points span {
    font-size: 13px !important;
  }
  .theme-rebuild-cta-description {
    font-size: 14px;
  }
}

@media (max-width: 575.98px) {
  .theme-rebuild-card,
  .theme-rebuild-cta {
    padding: 18px !important;
  }

  .theme-rebuild-status {
    min-width: 132px;
    min-height: 36px;
  }

  .theme-rebuild-issue-icon,
  .theme-rebuild-benefit-icon {
    width: 48px;
    min-width: 48px;
    height: 48px;
    font-size: 22px;
  }

  .theme-rebuild-code-screen {
    width: 170px;
  }

  .theme-rebuild-drupal {
    width: 88px;
    min-width: 88px;
    height: 88px;
    font-size: 50px;
  }

  .theme-rebuild-cta-visual {
    flex-direction: column;
  }
}

/* base styles */
h2 {
  font-size: 44px !important;
}

@media (max-width: 1599.98px) {
  h2 {
    font-size: 32px !important;
  }
}

@media (max-width: 1399.98px) {
  h2 {
    font-size: 30px !important;
  }
}

@media (max-width: 1199.98px) {
  h2 {
    font-size: 28px !important;
  }
}

@media (max-width: 991.98px) {
  h2 {
    font-size: 26px !important;
  }
}

@media (max-width: 767.98px) {
  h2 {
    font-size: 22px !important;
  }
}

@media (max-width: 575.98px) {
  h2 {
    font-size: 21px !important;
  }
}

@media (max-width: 374.98px) {
  h2 {
    font-size: 20px !important;
  }
}

