/* ThreeDots Automation - Overview Pages Redesign CSS (Service, Trading, Training) */

:root {
  --page-red: #fe4040;
  --page-orange: #fb8404;
  --page-navy: #0b121e;
  --page-dark: #111c2a;
  --page-ink: #192738;
  --page-muted: #5c6878;
  --page-light: #f8fafc;
  --page-border: #e2e8f0;
  --page-gradient: linear-gradient(135deg, #fe4040 0%, #fb8404 100%);
  --page-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  --page-shadow-hover: 0 20px 40px rgba(254, 64, 64, 0.16);
}

.pages-redesign-body {
  font-family: "Rubik", sans-serif;
  color: var(--page-ink);
  background-color: #ffffff;
  overflow-x: hidden;
}

.pages-redesign-body h1,
.pages-redesign-body h2,
.pages-redesign-body h3,
.pages-redesign-body h4,
.pages-redesign-body h5,
.pages-redesign-body h6 {
  font-family: "Raleway", sans-serif;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.pages-hero {
  position: relative;
  background-color: var(--page-navy);
  background-image: 
    radial-gradient(circle at 85% 20%, rgba(254, 64, 64, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 15% 80%, rgba(251, 132, 4, 0.12) 0%, transparent 40%),
    linear-gradient(180deg, rgba(11, 18, 30, 0.95) 0%, rgba(17, 28, 42, 0.98) 100%);
  padding: 85px 0 75px;
  color: #ffffff;
  overflow: hidden;
}

.pages-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.pages-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: rgba(254, 64, 64, 0.12);
  border: 1px solid rgba(254, 64, 64, 0.3);
  color: #fe5555;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.pages-hero__title {
  font-size: clamp(34px, 4.5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.pages-hero__title span {
  background: var(--page-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pages-hero__lead {
  font-size: 18px;
  line-height: 1.7;
  color: #cbd5e1;
  max-width: 780px;
  margin: 0 auto 30px;
}

.pages-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.pages-breadcrumb li {
  font-size: 14px;
  color: #94a3b8;
}

.pages-breadcrumb li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.pages-breadcrumb li a:hover {
  color: var(--page-orange);
}

.pages-breadcrumb li.active {
  color: var(--page-red);
  font-weight: 600;
}

/* ==========================================================================
   Section Headings
   ========================================================================== */
.pages-section-header {
  margin-bottom: 45px;
}

.pages-section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--page-red);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.pages-section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 800;
  color: var(--page-dark);
  line-height: 1.2;
  margin-bottom: 15px;
}

.pages-section-subtitle {
  font-size: 16px;
  color: var(--page-muted);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ==========================================================================
   Service / Capability Cards
   ========================================================================== */
.service-card-redesign {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid var(--page-border);
  box-shadow: var(--page-shadow);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card-redesign:hover {
  transform: translateY(-8px);
  box-shadow: var(--page-shadow-hover);
  border-color: rgba(254, 64, 64, 0.3);
}

.service-card-redesign__thumb {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0f172a;
}

.service-card-redesign__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card-redesign:hover .service-card-redesign__thumb img {
  transform: scale(1.08);
}

.service-card-redesign__badge {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(17, 28, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  z-index: 2;
}

.service-card-redesign__body {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-redesign__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(254, 64, 64, 0.1) 0%, rgba(251, 132, 4, 0.1) 100%);
  color: var(--page-red);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.service-card-redesign:hover .service-card-redesign__icon {
  background: var(--page-gradient);
  color: #ffffff;
  transform: scale(1.05);
}

.service-card-redesign__title {
  font-size: 20px;
  font-weight: 800;
  color: var(--page-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-card-redesign__desc {
  font-size: 14px;
  color: var(--page-muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card-redesign__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 20px;
  border-radius: 10px;
  background: #f1f5f9;
  color: var(--page-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.service-card-redesign__btn i {
  transition: transform 0.25s ease;
}

.service-card-redesign:hover .service-card-redesign__btn {
  background: var(--page-gradient);
  color: #ffffff;
}

.service-card-redesign:hover .service-card-redesign__btn i {
  transform: translateX(4px);
}

/* ==========================================================================
   Trading Brand Cards
   ========================================================================== */
.trading-tile {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--page-border);
  box-shadow: var(--page-shadow);
  padding: 32px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.trading-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--page-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.trading-tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--page-shadow-hover);
  border-color: rgba(254, 64, 64, 0.25);
}

.trading-tile:hover::before {
  opacity: 1;
}

.trading-tile__header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 15px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.trading-tile__header img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(10%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.trading-tile:hover .trading-tile__header img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

.trading-tile__name {
  font-size: 22px;
  font-weight: 800;
  color: var(--page-dark);
  margin-bottom: 8px;
}

.trading-tile__tagline {
  font-size: 13px;
  font-weight: 700;
  color: var(--page-red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.trading-tile__desc {
  font-size: 14px;
  color: var(--page-muted);
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

.trading-tile__features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.trading-tile__features li {
  font-size: 13px;
  color: #475569;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.trading-tile__features li i {
  color: #10b981;
  font-size: 14px;
}

.trading-tile__action {
  margin-top: auto;
}

/* ==========================================================================
   Training Module Cards
   ========================================================================== */
.training-card {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--page-border);
  box-shadow: var(--page-shadow);
  padding: 38px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.35s ease;
  position: relative;
}

.training-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--page-shadow-hover);
  border-color: rgba(254, 64, 64, 0.3);
}

.training-card__head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.training-card__num {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--page-gradient);
  color: #ffffff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(254, 64, 64, 0.25);
  flex-shrink: 0;
}

.training-card__title-box h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--page-dark);
  margin: 0 0 4px;
}

.training-card__title-box span {
  font-size: 13px;
  font-weight: 700;
  color: var(--page-red);
  text-transform: uppercase;
}

.training-card__intro {
  font-size: 15px;
  color: var(--page-muted);
  line-height: 1.7;
  margin-bottom: 25px;
}

.training-card__curriculum {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.training-card__curriculum-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--page-dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.training-card__curriculum-item i {
  color: var(--page-orange);
}

.training-card__software-box {
  background: #f8fafc;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 28px;
  border: 1px dashed var(--page-border);
}

.training-card__software-label {
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.training-card__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.training-card__logos img {
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
  transition: transform 0.25s ease;
}

.training-card__logos img:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   Workflow Steps
   ========================================================================== */
.workflow-step-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 24px 20px;
  border: 1px solid var(--page-border);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
}

.workflow-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--page-orange);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

.workflow-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--page-gradient);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 6px 15px rgba(254, 64, 64, 0.2);
}

.workflow-step-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--page-dark);
  margin-bottom: 8px;
}

.workflow-step-desc {
  font-size: 13px;
  color: var(--page-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   CTA Redesign
   ========================================================================== */
.pages-cta-section {
  position: relative;
  background: var(--page-navy);
  background-image: radial-gradient(circle at 50% 50%, rgba(254, 64, 64, 0.15) 0%, transparent 60%);
  padding: 80px 0;
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.pages-cta-title {
  font-size: clamp(30px, 3.8vw, 44px);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 18px;
}

.pages-cta-text {
  font-size: 18px;
  color: #cbd5e1;
  max-width: 680px;
  margin: 0 auto 35px;
  line-height: 1.65;
}

.pages-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 50px;
  background: var(--page-gradient);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(254, 64, 64, 0.35);
  transition: all 0.3s ease;
  border: none;
}

.pages-btn-primary:hover {
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(254, 64, 64, 0.45);
}

.pages-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 32px;
  border-radius: 50px;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.pages-btn-outline:hover {
  color: var(--page-dark);
  background: #ffffff;
  border-color: #ffffff;
  transform: translateY(-3px);
}
