/*
==========================================
Number Box Addon for Elementor
Version: 1.0.0
==========================================
*/

.nba-box {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;

  width: 100%;

  overflow: hidden;

  transition:
    background-color 0.35s ease,
    color 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s ease;

  box-sizing: border-box;
}

.nba-box *,
.nba-box *:before,
.nba-box *:after {
  box-sizing: border-box;
}

/*------------------------------------
Link
------------------------------------*/

.nba-box > a {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
}

.nba-box a {
  color: inherit;
  text-decoration: none;
}

/*------------------------------------
Number
------------------------------------*/

.nba-number {
  display: inline-flex;

  align-items: center;

  justify-content: center;

  font-size: 60px;

  font-weight: 700;

  line-height: 1;

  margin-bottom: 20px;

  transition: all 0.35s ease;
}

/*------------------------------------
Title
------------------------------------*/

.nba-title {
  margin: 0 0 12px;

  line-height: 1.3;

  font-weight: 600;

  transition: all 0.35s ease;
}

/*------------------------------------
Description
------------------------------------*/

.nba-description {
  line-height: 1.8;

  transition: all 0.35s ease;
}

.nba-description p {
  margin: 0;
}

.nba-description p + p {
  margin-top: 12px;
}

/*------------------------------------
Hover
------------------------------------*/

.nba-box:hover {
  transform: translateY(-6px);
}

.nba-box:hover .nba-number {
  transform: scale(1.05);
}

/*------------------------------------
Focus
------------------------------------*/

.nba-box a:focus {
  outline: none;
}

.nba-box:focus-within {
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/*------------------------------------
Transition Helper
------------------------------------*/

.nba-box,
.nba-number,
.nba-title,
.nba-description {
  transition: all 0.35s ease;
}
/*=========================================
=            Layout System                =
=========================================*/

/*
|--------------------------------------------------------------------------
| Default Vertical Layout
|--------------------------------------------------------------------------
*/

.nba-box.layout-vertical {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.nba-box.layout-vertical .nba-number {
  margin-bottom: 18px;
}

.nba-box.layout-vertical .nba-content {
  width: 100%;
}

/*
|--------------------------------------------------------------------------
| Horizontal Layout
|--------------------------------------------------------------------------
*/

.nba-box.layout-horizontal {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}

.nba-box.layout-horizontal .nba-number {
  flex-shrink: 0;
  margin: 0;
}

.nba-box.layout-horizontal .nba-content {
  flex: 1;
  min-width: 0;
}

/*
|--------------------------------------------------------------------------
| Number Left
|--------------------------------------------------------------------------
*/

.nba-box.layout-left {
  flex-direction: row;
}

.nba-box.layout-left .nba-number {
  order: 1;
}

.nba-box.layout-left .nba-content {
  order: 2;
}

/*
|--------------------------------------------------------------------------
| Number Right
|--------------------------------------------------------------------------
*/

.nba-box.layout-right {
  flex-direction: row;
}

.nba-box.layout-right .nba-number {
  order: 2;
}

.nba-box.layout-right .nba-content {
  order: 1;
}

/*
|--------------------------------------------------------------------------
| Number Top
|--------------------------------------------------------------------------
*/

.nba-box.layout-top {
  flex-direction: column;
}

.nba-box.layout-top .nba-number {
  margin-bottom: 20px;
}

/*
|--------------------------------------------------------------------------
| Alignment
|--------------------------------------------------------------------------
*/

.nba-box.align-left {
  text-align: left;
  align-items: flex-start;
}

.nba-box.align-center {
  text-align: center;
  align-items: center;
}

.nba-box.align-right {
  text-align: right;
  align-items: flex-end;
}

/*
|--------------------------------------------------------------------------
| Vertical Alignment
|--------------------------------------------------------------------------
*/

.nba-box.valign-top {
  justify-content: flex-start;
}

.nba-box.valign-middle {
  justify-content: center;
}

.nba-box.valign-bottom {
  justify-content: flex-end;
}

/*
|--------------------------------------------------------------------------
| Equal Height
|--------------------------------------------------------------------------
*/

.nba-box.equal-height {
  height: 100%;
}

.nba-box.equal-height .nba-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/*
|--------------------------------------------------------------------------
| Stretch Mode
|--------------------------------------------------------------------------
*/

.nba-box.stretch {
  width: 100%;
}

.nba-box.stretch .nba-content {
  width: 100%;
}

/*
|--------------------------------------------------------------------------
| Gap Utilities
|--------------------------------------------------------------------------
*/

.nba-box.gap-small {
  gap: 10px;
}

.nba-box.gap-medium {
  gap: 20px;
}

.nba-box.gap-large {
  gap: 35px;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1024px) {
  .nba-box.layout-horizontal,
  .nba-box.layout-left,
  .nba-box.layout-right {
    gap: 16px;
  }
}

@media (max-width: 767px) {
  .nba-box.layout-horizontal,
  .nba-box.layout-left,
  .nba-box.layout-right {
    flex-direction: column;
  }

  .nba-box.layout-horizontal .nba-number,
  .nba-box.layout-left .nba-number,
  .nba-box.layout-right .nba-number {
    margin-bottom: 18px;
  }

  .nba-box.align-center {
    align-items: center;
  }

  .nba-box.align-right {
    align-items: flex-end;
  }
}
/*====================================================
=                Number Styles                        =
====================================================*/

/*
|--------------------------------------------------------------------------
| Base Shape
|--------------------------------------------------------------------------
*/

.nba-number {
  position: relative;
  z-index: 1;
}

/*
|--------------------------------------------------------------------------
| Circle
|--------------------------------------------------------------------------
*/

.nba-number.shape-circle {
  width: 90px;
  height: 90px;

  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/*
|--------------------------------------------------------------------------
| Square
|--------------------------------------------------------------------------
*/

.nba-number.shape-square {
  width: 90px;
  height: 90px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/*
|--------------------------------------------------------------------------
| Rounded
|--------------------------------------------------------------------------
*/

.nba-number.shape-rounded {
  width: 90px;
  height: 90px;

  border-radius: 18px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/*
|--------------------------------------------------------------------------
| Pill
|--------------------------------------------------------------------------
*/

.nba-number.shape-pill {
  min-width: 90px;
  height: 54px;

  padding: 0 26px;

  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/*
|--------------------------------------------------------------------------
| Filled
|--------------------------------------------------------------------------
*/

.nba-number.style-filled {
  color: #ffffff;
  background: #222222;
}

/*
|--------------------------------------------------------------------------
| Outline
|--------------------------------------------------------------------------
*/

.nba-number.style-outline {
  background: transparent;

  border: 2px solid currentColor;
}

/*
|--------------------------------------------------------------------------
| Soft
|--------------------------------------------------------------------------
*/

.nba-number.style-soft {
  background: rgba(0, 0, 0, 0.06);
}

/*
|--------------------------------------------------------------------------
| Glass
|--------------------------------------------------------------------------
*/

.nba-number.style-glass {
  background: rgba(255, 255, 255, 0.15);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.25);
}

/*
|--------------------------------------------------------------------------
| Gradient
|--------------------------------------------------------------------------
*/

.nba-number.style-gradient {
  color: #ffffff;

  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

/*
|--------------------------------------------------------------------------
| Shadow
|--------------------------------------------------------------------------
*/

.nba-number.has-shadow {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/*
|--------------------------------------------------------------------------
| Border Animation
|--------------------------------------------------------------------------
*/

.nba-number.animated-border {
  overflow: hidden;
}

.nba-number.animated-border::before {
  content: "";

  position: absolute;

  inset: -2px;

  border-radius: inherit;

  border: 2px solid currentColor;

  opacity: 0.25;

  transition: all 0.35s ease;
}

.nba-box:hover .nba-number.animated-border::before {
  inset: 3px;

  opacity: 1;
}

/*
|--------------------------------------------------------------------------
| Hover Scale
|--------------------------------------------------------------------------
*/

.nba-box:hover .nba-number {
  transform: scale(1.08);
}

/*
|--------------------------------------------------------------------------
| Hover Rotate
|--------------------------------------------------------------------------
*/

.nba-number.rotate-hover {
  transition: transform 0.35s ease;
}

.nba-box:hover .nba-number.rotate-hover {
  transform: rotate(8deg);
}

/*
|--------------------------------------------------------------------------
| Floating
|--------------------------------------------------------------------------
*/

.nba-number.float {
  animation: nbaFloat 4s ease-in-out infinite;
}

@keyframes nbaFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }

  100% {
    transform: translateY(0);
  }
}

/*
|--------------------------------------------------------------------------
| Badge
|--------------------------------------------------------------------------
*/

.nba-number.is-badge {
  position: relative;
}

.nba-number.is-badge::after {
  content: "";

  position: absolute;

  top: -6px;
  right: -6px;

  width: 14px;
  height: 14px;

  border-radius: 50%;

  background: #ff4d4f;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 767px) {
  .nba-number.shape-circle,
  .nba-number.shape-square,
  .nba-number.shape-rounded {
    width: 70px;
    height: 70px;

    font-size: 42px;
  }

  .nba-number.shape-pill {
    min-width: 70px;
    height: 46px;
  }
}
