/* Digikala Peyda — sitewide UI font (loaded last to override theme/Bootstrap) */

@font-face {
  font-family: 'Peyda';
  src: url('../fonts/PeydaWebFaNum-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Remap theme iranyekan family name to Peyda (missing IranYekan files) */
@font-face {
  font-family: iranyekan;
  src: url('../fonts/PeydaWebFaNum-Medium.woff2') format('woff2');
  font-display: swap;
}

:root {
  --bs-font-sans-serif: 'Peyda', sans-serif;
  --bs-body-font-family: 'Peyda', sans-serif;
}

html,
body,
* {
  font-family: 'Peyda', sans-serif !important;
}

/* Restore icon fonts (global * would otherwise break them) */
[class^="icofont-"],
[class*=" icofont-"] {
  font-family: IcoFont !important;
}

/* Header: logo right, menu centered, start button left (desktop) */
@media (min-width: 992px) {
  header .navbar {
    position: relative;
    align-items: center;
  }

  header .navbar-collapse {
    position: absolute;
    left: 0;
    right: 0;
    justify-content: center !important;
    pointer-events: none;
  }

  header .navbar-nav {
    align-items: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    pointer-events: auto;
  }

  header .navbar-nav .nav-item:last-child {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
  }

  header .navbar-expand-lg .navbar-nav .nav-link.dark_btn {
    margin-right: 0;
  }
}

/* Parkinox logo is square; original theme logos were ~152x28 at width 150px */
.navbar-brand img {
  width: auto;
  height: 28px;
  filter: brightness(0) saturate(100%) invert(23%) sepia(51%) saturate(1856%) hue-rotate(177deg) brightness(90%) contrast(93%);
}

footer .top_footer .logo img {
  width: auto;
  height: 28px;
}

/* Hero phone frame: map 304x631 screen assets 1:1 onto the 305px slider */
.banner_section .banner_slider #frmae_slider .slider_img img,
.banner_section .banner_slider #frmae_slider .owl-item img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* Keep hero floating icons on their original corners (cancel responsive left+right stretch) */
.banner_section .banner_slider .left_icon {
  left: auto;
  right: 15px;
  top: auto;
  bottom: 70px;
  width: auto;
}

.banner_section .banner_slider .right_icon {
  right: auto;
  left: 15px;
  bottom: auto;
  top: 70px;
  width: auto;
}

.banner_section .banner_slider .left_icon img,
.banner_section .banner_slider .right_icon img {
  width: auto;
  max-width: none;
  height: auto;
  filter: hue-rotate(-45deg) saturate(1.15);
}

/* Hero rain lines: purple artwork → university blue */
.banner_section .anim_line img {
  filter: hue-rotate(-45deg) saturate(1.15);
}

/* Feature / pricing / similar decorative icons */
.icon img {
  filter: hue-rotate(-45deg) saturate(1.15);
}

/* How-it-works step discs (01–03): filter background only, keep numbers */
.how_it_works .step_block ul li .step_number {
  background-image: none;
}

.how_it_works .step_block ul li .step_number::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(../images/icon_bg.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  filter: hue-rotate(-45deg) saturate(1.15);
  z-index: 0;
  pointer-events: none;
}

.how_it_works .step_block ul li .step_number h3 {
  position: relative;
  z-index: 1;
}

/* Back-to-top button */
.go_top img {
  filter: hue-rotate(-45deg) saturate(1.15);
}

/* Video section play icon + rain lines */
.how_it_works .yt_video .play_btn img {
  filter: hue-rotate(-45deg) saturate(1.15);
}

.how_it_works .yt_video .anim_line img {
  filter: hue-rotate(-45deg) saturate(1.15);
}

@media (max-width: 992px) {
  .banner_section .banner_slider .left_icon img,
  .banner_section .banner_slider .right_icon img {
    width: 72px;
    max-width: 72px;
    height: auto;
  }
}

@media (max-width: 767px) {
  .banner_section .banner_slider .left_icon img,
  .banner_section .banner_slider .right_icon img {
    width: 100px;
    max-width: 100px;
  }

  .banner_section .banner_slider .left_icon {
    right: 0;
    bottom: 40px;
  }

  .banner_section .banner_slider .right_icon {
    left: 0;
    top: 40px;
  }
}

/* Header CTA pulse: university blue instead of purple */
@keyframes pulse-blue-small-sm {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 79, 134, 0.7);
  }

  100%,
  30% {
    box-shadow: 0 0 0 12px transparent;
  }
}

@keyframes pulse-blue-medium-sm {
  0% {
    box-shadow: 0 0 0 0 rgba(11, 79, 134, 0.4);
  }

  100%,
  30% {
    box-shadow: 0 0 0 20px transparent;
  }
}

/* Hero enter CTA (replaces store badges) */
.banner_section .hero_enter_btn {
  display: inline-block;
  margin-top: 25px;
}

.banner_section .hero_social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
  width: 100%;
}

.banner_section .hero_social li a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid #dbe4e9;
  color: #0b4f86;
  background: #ffffff;
  font-size: 20px;
  transition: 0.3s all;
}

.banner_section .hero_social li a:hover {
  background: #0b4f86;
  border-color: #0b4f86;
  color: #ffffff;
}

/* How-it-works step 1: logo is the enter-app button */
.how_it_works .step_block ul li .step_text .step_logo_btn {
  display: inline-block;
  margin-top: 14px;
  line-height: 0;
}

.how_it_works .step_block ul li .step_text .step_logo_btn img {
  height: 36px;
  width: auto;
  filter: brightness(0) saturate(100%) invert(23%) sepia(51%) saturate(1856%) hue-rotate(177deg) brightness(90%) contrast(93%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.how_it_works .step_block ul li .step_text .step_logo_btn:hover img {
  opacity: 0.75;
  transform: translateY(-1px);
}

/* Video slot removed — match bottom padding to the top */
.how_it_works .how_it_inner {
  padding-bottom: 70px;
}

/* Parkinox team section */
.team_section .team_inner {
  background-color: var(--bg-white);
  border-radius: 30px;
  padding: 70px 40px;
  box-shadow: 0px 4px 30px #dcecf7;
}

.team_section .section_title {
  margin-bottom: 40px;
}

.team_section .section_title h2 {
  color: #073553;
}

.team_section .section_title p {
  color: #5f7180;
  margin-top: 10px;
}

.team_section .team_grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.team_section .team_card {
  text-align: center;
  background: #f5f8fa;
  border: 1px solid #dbe4e9;
  border-radius: 20px;
  padding: 36px 28px 32px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.team_section .team_card:hover {
  box-shadow: 0 8px 24px rgba(11, 79, 134, 0.12);
  transform: translateY(-3px);
}

.team_section .team_avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #0b4f86;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(11, 79, 134, 0.28);
}

.team_section .team_card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #0b4f86;
  margin-bottom: 8px;
}

.team_section .team_title {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  color: #16a6ba;
  margin-bottom: 12px;
}

.team_section .team_roles {
  color: #5f7180;
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 767px) {
  .team_section .team_inner {
    padding: 50px 20px;
  }

  .team_section .team_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Contact section */
.contact_section .contact_inner {
  background-color: var(--bg-white);
  border-radius: 30px;
  padding: 70px 40px;
  box-shadow: 0px 4px 30px #dcecf7;
}

.contact_section .section_title {
  margin-bottom: 36px;
}

.contact_section .section_title h2 {
  color: #073553;
}

.contact_section .section_title p {
  color: #5f7180;
  margin-top: 10px;
}

.contact_section .contact_ways {
  display: grid;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}

.contact_section .contact_row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #f5f8fa;
  border: 1px solid #dbe4e9;
  border-radius: 18px;
  padding: 22px 24px;
}

.contact_section .contact_icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0b4f86;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.contact_section .contact_body {
  flex: 1;
  min-width: 0;
}

.contact_section .contact_body h4 {
  font-size: 18px;
  font-weight: 600;
  color: #0b4f86;
  margin-bottom: 8px;
}

.contact_section .contact_links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.contact_section .contact_links a {
  color: #5f7180;
  font-size: 15px;
  transition: color 0.2s ease;
}

.contact_section .contact_links a:hover {
  color: #0b4f86;
}

.contact_section .contact_sep {
  color: #dbe4e9;
}

@media (max-width: 767px) {
  .contact_section .contact_inner {
    padding: 50px 20px;
  }

  .contact_section .contact_row {
    padding: 18px 16px;
  }
}

/* Newsletter feedback on the blue panel */
.newsletter_box {
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.newsletter_box .section_title {
  width: 100%;
  margin-bottom: 20px;
}

.newsletter_box .section_title h2,
.newsletter_box .section_title p {
  text-align: center;
}

.newsletter_box .newsletter_messages {
  flex: 0 0 100%;
  width: 100%;
  margin-bottom: 16px;
}

.newsletter_box form {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 0 auto;
}

.newsletter_box form input[type="hidden"] {
  display: none;
}

.newsletter_box form .form-group .btn {
  margin-right: 0;
}

.newsletter_box .newsletter_msg {
  margin: 0 auto;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  max-width: 560px;
}

.newsletter_box .newsletter_msg--success {
  background: rgba(22, 132, 92, 0.35);
  border-color: rgba(255, 255, 255, 0.45);
}

.newsletter_box .newsletter_msg--error {
  background: rgba(180, 60, 69, 0.4);
  border-color: rgba(255, 255, 255, 0.45);
}

.newsletter_box .newsletter_msg--info {
  background: rgba(11, 79, 134, 0.35);
  border-color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 767px) {
  .newsletter_box form {
    flex-direction: column;
    justify-content: center;
  }
}

/* Footer company blurb (replaces store badges) */
footer .top_footer .try_out p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.7;
  margin: 8px 0 0;
}
