/* ==== FONTS ==== */
@font-face {
  font-family: Sahel;
  src: url(/static/Font/Sahel.ttf);
}

@font-face {
  font-family: Koodak;
  src: url(/static/Font/B_Koodak.ttf);
}

/* ==== Welcome / Solutions Combined Section ==== */
.welcome-section {
  padding: 60px 0 32px 0;
  position: relative;
  background-color: #070e1b;
  overflow: hidden;
  direction: rtl;
  color: #ffffff;
}

.welcome-main-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.welcome-block {
  width: 100%;
}

.welcome-block.solutions-block {
  margin-top: 65px;
}

/* Headings */
.welcome-heading {
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin: 0 0 40px 0;
  letter-spacing: -0.3px;
}

.solutions-cyan-heading {
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #00a2ff;
  text-align: center;
  margin: 0 0 40px 0;
  letter-spacing: -0.3px;
}

/* Grids */
.problems-grid,
.solutions-new-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  width: 100%;
  direction: rtl;
}

/* Base Card */
.problem-card,
.solution-new-card {
  background-color: #081424;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.problem-card:hover,
.solution-new-card:hover {
  border-color: rgba(0, 162, 255, 0.45);
}

/* Image Wrappers */
.card-img-wrap,
.solution-img-wrap {
  position: relative;
  width: 100%;
  height: 165px;
  background-color: #0b1a2e;
}

.card-img-wrap {
  overflow: hidden;
}

.solution-img-wrap {
  overflow: visible;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 20, 36, 0.2) 0%, rgba(8, 20, 36, 0.65) 65%, rgba(8, 20, 36, 0.95) 100%);
  pointer-events: none;
}

/* Golden Icons (Top Row) */
.card-golden-icon {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.icon-pos-left {
  left: 20px;
  bottom: 12px;
}

.problem-icon-img {
  height: 44px;
  width: auto;
  max-width: 52px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.65));
}

.icon-lightning-img {
  height: 54px;
}

.icon-wave-img {
  height: 40px;
  max-width: 90px;
}

/* Circular Badges (Bottom Row) */
.card-circle-badge {
  position: absolute;
  left: 18px;
  bottom: -24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-circle-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

/* Card Bodies */
.problem-card-body {
  padding: 16px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

.solution-card-body {
  padding: 34px 20px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
}

/* Titles */
.problem-title {
  font-family: 'Sahel', 'Vazirmatn', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.55;
  margin: 0 0 14px 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-new-title {
  font-family: 'Sahel', 'Vazirmatn', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 16px 0;
}

/* Problem Card Description */
.problem-desc {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 24px 0;
}

/* Problem Action Link */
.problem-action-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 600;
  margin-top: auto;
  transition: all 0.25s ease;
}

.problem-action-link:hover {
  color: #00a2ff;
}

.action-arrow {
  display: inline-block;
  font-size: 16px;
  transition: transform 0.25s ease;
}

.problem-action-link:hover .action-arrow {
  transform: translateX(-4px);
}

/* Solution Features List */
.solution-feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  align-items: center;
}

.solution-feature-list li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
}

.feature-check {
  color: #f7b731;
  font-weight: 700;
  font-size: 15px;
}

.feature-text {
  color: #ffffff;
}

/* Solution Details Button */
.solution-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 22px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  background-color: transparent;
  color: #ffffff;
  text-decoration: none;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: auto;
  transition: all 0.25s ease;
}

.solution-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #00a2ff;
  color: #00a2ff;
}

.btn-arrow-left {
  display: inline-block;
  font-size: 15px;
  transition: transform 0.25s ease;
}

.solution-btn-outline:hover .btn-arrow-left {
  transform: translateX(-4px);
}

/* ==== Responsive Design ==== */
@media (max-width: 1200px) {

  .problems-grid,
  .solutions-new-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .welcome-heading,
  .solutions-cyan-heading {
    font-size: 26px;
    margin-bottom: 30px;
  }
}

@media (max-width: 640px) {
  .welcome-section {
    padding: 45px 0 60px 0;
  }

  .problems-grid,
  .solutions-new-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .welcome-heading,
  .solutions-cyan-heading {
    font-size: 22px;
    margin-bottom: 24px;
  }

  .welcome-block.solutions-block {
    margin-top: 45px;
  }
}