:root {
  --btd-blue: #0045ff;
  --btd-purple: #bd29f2;
  --btd-ink: #121426;
  --btd-muted: #656b7b;
  --btd-line: #e3e7f0;
  --btd-soft: #f5f7fb;
}

body.post-type-archive-portfolio .elementor-element-425bd08b {
  min-height: 430px;
}

body.post-type-archive-portfolio .elementor-element-4a16d3a3 .elementor-heading-title {
  color: #fff;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

body.post-type-archive-portfolio .elementor-element-4d2bff82 p {
  max-width: 760px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.75;
}

body.post-type-archive-portfolio .elementor-element-4b4f2982 > .elementor-container {
  max-width: none;
}

body.post-type-archive-portfolio .elementor-element-4b4f2982 {
  margin: 0 !important;
  padding: 0 !important;
}

.btd-portfolio-app,
.btd-portfolio-app * {
  box-sizing: border-box;
}

.btd-portfolio-app {
  width: min(1280px, calc(100vw - 48px));
  margin: 0 0 0 50%;
  padding: 72px 0 104px;
  transform: translateX(-50%);
  color: var(--btd-ink);
  font-family: Poppins, Arial, sans-serif;
}

.btd-portfolio-app__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 60px;
  align-items: end;
  margin-bottom: 38px;
}

.btd-portfolio-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--btd-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.btd-portfolio-eyebrow::before {
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--btd-blue), var(--btd-purple));
  content: "";
}

.btd-portfolio-app__intro h2 {
  max-width: 720px;
  margin: 0 0 14px;
  color: #111;
  font-family: "Barlow Condensed", Poppins, sans-serif;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.btd-portfolio-app__intro p {
  max-width: 730px;
  margin: 0;
  color: var(--btd-muted);
  font-size: 16px;
  line-height: 1.75;
}

.btd-portfolio-stats {
  display: flex;
  gap: 10px;
}

.btd-portfolio-stats > div {
  min-width: 118px;
  padding: 17px 18px;
  border: 1px solid var(--btd-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 38, 82, 0.07);
  text-align: center;
}

.btd-portfolio-stats strong,
.btd-portfolio-stats span {
  display: block;
}

.btd-portfolio-stats strong {
  color: var(--btd-blue);
  font-size: 24px;
  line-height: 1.1;
}

.btd-portfolio-stats span {
  margin-top: 5px;
  color: var(--btd-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.btd-portfolio-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr) minmax(280px, 1.35fr) auto;
  gap: 16px;
  align-items: end;
  padding: 24px;
  border: 1px solid #dce2ef;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff 0%, #f9faff 100%);
  box-shadow: 0 22px 60px rgba(20, 35, 79, 0.1);
}

.btd-filter-field label {
  display: block;
  margin: 0 0 8px;
  color: #30354a;
  font-size: 13px;
  font-weight: 700;
}

.btd-select-wrap,
.btd-search-wrap {
  position: relative;
}

.btd-select-wrap::after {
  position: absolute;
  top: 50%;
  right: 19px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #626a80;
  border-bottom: 2px solid #626a80;
  content: "";
  pointer-events: none;
  transform: translateY(-68%) rotate(45deg);
}

.btd-filter-field select,
.btd-filter-field input {
  width: 100%;
  height: 56px;
  margin: 0;
  border: 1px solid #d7dce8;
  border-radius: 11px;
  outline: 0;
  background: #fff;
  color: #22263a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.btd-filter-field select {
  padding: 0 48px 0 16px;
  display: block !important;
  appearance: none !important;
  cursor: pointer;
}

.btd-select-wrap > .nice-select {
  display: none !important;
}

.btd-filter-field input {
  padding: 0 16px 0 50px !important;
}

.btd-filter-field input::placeholder {
  color: #888fa0;
  opacity: 1;
}

.btd-filter-field select:hover,
.btd-filter-field input:hover {
  border-color: #abb6d0;
}

.btd-filter-field select:focus-visible,
.btd-filter-field input:focus-visible,
.btd-filter-reset:focus-visible,
.btd-portfolio-empty button:focus-visible,
.btd-project-card a:focus-visible {
  outline: 3px solid rgba(0, 69, 255, 0.24);
  outline-offset: 2px;
}

.btd-filter-field select:focus,
.btd-filter-field input:focus {
  border-color: var(--btd-blue);
  box-shadow: 0 0 0 4px rgba(0, 69, 255, 0.09);
}

.btd-search-wrap svg {
  position: absolute;
  top: 50%;
  left: 17px;
  width: 21px;
  fill: none;
  stroke: #667087;
  stroke-linecap: round;
  stroke-width: 1.8;
  transform: translateY(-50%);
}

.btd-filter-reset {
  min-width: 132px;
  height: 56px;
  padding: 0 19px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(90deg, var(--btd-blue), #693df1);
  box-shadow: 0 10px 24px rgba(0, 69, 255, 0.2);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.btd-filter-reset:hover:not(:disabled) {
  box-shadow: 0 14px 30px rgba(0, 69, 255, 0.28);
  transform: translateY(-2px);
}

.btd-filter-reset:disabled {
  background: #e7eaf1;
  box-shadow: none;
  color: #9299a8;
  cursor: default;
}

.btd-portfolio-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 4px 2px 0;
}

.btd-portfolio-toolbar p {
  margin: 0;
  color: #252a3c;
  font-size: 15px;
  font-weight: 700;
}

.btd-portfolio-toolbar span {
  color: #7b8292;
  font-size: 12px;
}

.btd-project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.btd-project-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--btd-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(24, 37, 75, 0.07);
  flex-direction: column;
  animation: btd-card-in 0.3s ease both;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.btd-project-card:hover {
  border-color: #cad2e5;
  box-shadow: 0 22px 48px rgba(22, 36, 77, 0.13);
  transform: translateY(-5px);
}

.btd-project-card[hidden] {
  display: none !important;
}

.btd-project-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #101b5f, #0045ff 55%, #bd29f2);
}

.btd-project-card__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 14, 40, 0.48));
  content: "";
  opacity: 0.45;
  transition: opacity 0.25s ease;
}

.btd-project-card:hover .btd-project-card__media::after {
  opacity: 0.7;
}

.btd-project-card__image {
  width: 100%;
  height: 100% !important;
  margin: 0;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.btd-project-card:hover .btd-project-card__image {
  transform: scale(1.035);
}

.btd-project-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(255, 255, 255, 0.94);
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.btd-project-card__view {
  position: absolute;
  z-index: 2;
  right: 17px;
  bottom: 16px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
  background: rgba(13, 20, 55, 0.66);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btd-project-card__body {
  display: flex;
  min-height: 292px;
  padding: 23px 23px 22px;
  flex: 1;
  flex-direction: column;
}

.btd-project-card__meta {
  display: flex;
  min-height: 29px;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.btd-project-card__meta span {
  display: inline-flex;
  min-height: 25px;
  padding: 5px 9px;
  border-radius: 999px;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.btd-project-card__service {
  background: #edf2ff;
  color: #0649df;
}

.btd-project-card__industry {
  background: #f3efff;
  color: #6b33b5;
}

.btd-project-card h2 {
  margin: 15px 0 10px;
  font-family: "Barlow Condensed", Poppins, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.btd-project-card h2 a {
  color: #151724;
  text-decoration: none;
}

.btd-project-card h2 a:hover {
  color: var(--btd-blue);
}

.btd-project-card__body > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 18px;
  color: var(--btd-muted);
  font-size: 13px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.btd-project-card__link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin-top: auto;
  gap: 8px;
  align-items: center;
  color: #174bd8;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.btd-project-card__link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btd-project-card__link svg {
  width: 18px;
  min-width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 0.2s ease;
}

.btd-project-card__link:hover svg {
  transform: translateX(4px);
}

.btd-portfolio-empty {
  padding: 64px 24px;
  border: 1px dashed #cbd3e5;
  border-radius: 18px;
  background: #fafbff;
  text-align: center;
}

.btd-portfolio-empty[hidden] {
  display: none !important;
}

.btd-portfolio-empty > span {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #eef2ff;
  place-items: center;
  color: var(--btd-blue);
  font-size: 30px;
}

.btd-portfolio-empty h2 {
  margin: 0 0 9px;
  color: #161928;
  font-size: 27px;
}

.btd-portfolio-empty p {
  margin: 0 auto 20px;
  color: var(--btd-muted);
  font-size: 14px;
}

.btd-portfolio-empty button {
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--btd-blue);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

@keyframes btd-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .btd-portfolio-app__intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .btd-portfolio-stats {
    width: 100%;
  }

  .btd-portfolio-stats > div {
    flex: 1;
  }

  .btd-portfolio-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btd-filter-field--search {
    grid-column: 1 / 2;
  }

  .btd-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 767px) {
  body.post-type-archive-portfolio .elementor-element-425bd08b {
    min-height: 420px;
    padding-top: 96px !important;
    padding-bottom: 70px !important;
  }

  body.post-type-archive-portfolio .elementor-element-4a16d3a3 .elementor-heading-title {
    font-size: clamp(40px, 12vw, 56px);
  }

  body.post-type-archive-portfolio .elementor-element-4d2bff82 p {
    font-size: 15px;
    line-height: 1.65;
  }

  .btd-portfolio-app {
    width: min(100% - 32px, 1280px);
    padding: 56px 0 82px;
  }

  .btd-portfolio-app__intro {
    margin-bottom: 28px;
  }

  .btd-portfolio-app__intro h2 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .btd-portfolio-app__intro p {
    font-size: 14px;
  }

  .btd-portfolio-stats {
    gap: 7px;
  }

  .btd-portfolio-stats > div {
    min-width: 0;
    padding: 14px 8px;
  }

  .btd-portfolio-stats strong {
    font-size: 21px;
  }

  .btd-portfolio-stats span {
    font-size: 9px;
  }

  .btd-portfolio-filters {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
    border-radius: 16px;
  }

  .btd-filter-field--search {
    grid-column: auto;
  }

  .btd-filter-field select,
  .btd-filter-field input,
  .btd-filter-reset {
    height: 52px;
  }

  .btd-filter-reset {
    width: 100%;
  }

  .btd-portfolio-toolbar {
    min-height: 62px;
  }

  .btd-portfolio-toolbar span {
    display: none;
  }

  .btd-project-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .btd-project-card__body {
    min-height: 270px;
    padding: 21px 20px 20px;
  }

  .btd-project-card h2 {
    font-size: 27px;
  }
}

@media (max-width: 360px) {
  .btd-portfolio-app {
    width: calc(100% - 24px);
  }

  .btd-portfolio-stats span {
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btd-project-card,
  .btd-project-card__image,
  .btd-project-card__link svg,
  .btd-filter-reset {
    animation: none !important;
    transition: none !important;
  }
}

/* BTD portfolio inner-page hero v1.0.8 */
body.post-type-archive-portfolio .elementor-element-425bd08b {
  position: relative;
  min-height: 400px !important;
  overflow: hidden;
  padding: 100px 0 0 !important;
  background-color: #121b69 !important;
  background-image: url("https://wp.mehedidb.com/utech/wp-content/uploads/2021/06/abs_bg_3.jpg") !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

body.post-type-archive-portfolio .elementor-element-425bd08b > .elementor-background-overlay {
  display: none !important;
}

body.post-type-archive-portfolio .elementor-element-425bd08b > .elementor-shape {
  display: none !important;
}

body.post-type-archive-portfolio .elementor-element-425bd08b > .elementor-container {
  z-index: 2;
  width: min(1140px, calc(100% - 30px));
  max-width: 1140px !important;
  min-height: 300px !important;
}

body.post-type-archive-portfolio .elementor-element-5fdadfeb,
body.post-type-archive-portfolio .elementor-element-5fdadfeb > .elementor-widget-wrap {
  width: 100% !important;
}

body.post-type-archive-portfolio .elementor-element-5fdadfeb > .elementor-widget-wrap {
  display: flex !important;
  padding: 0 !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.post-type-archive-portfolio .elementor-element-4a16d3a3,
body.post-type-archive-portfolio .elementor-element-4d2bff82 {
  width: 100% !important;
  margin: 0 !important;
}

.btd-portfolio-hero__heading,
.btd-portfolio-hero__breadcrumb {
  position: relative;
  z-index: 2;
  text-align: center;
}

body.post-type-archive-portfolio .elementor-element-4a16d3a3 .elementor-heading-title {
  max-width: none;
  margin: 0 0 15px;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: -0.025em;
  text-align: center;
}

.btd-portfolio-hero__breadcrumb {
  display: flex;
  min-height: 29px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.8;
}

.btd-portfolio-hero__breadcrumb a,
.btd-portfolio-hero__breadcrumb a:hover,
.btd-portfolio-hero__breadcrumb a:focus {
  color: #fff;
  text-decoration: none;
}

.btd-portfolio-hero__separator {
  font-size: 17px;
  font-weight: 700;
}

.btd-portfolio-app__intro {
  display: block;
  max-width: 820px;
  margin-bottom: 38px;
}

@media (max-width: 767px) {
  body.post-type-archive-portfolio .elementor-element-425bd08b {
    min-height: 400px !important;
    padding: 112px 0 38px !important;
  }

  body.post-type-archive-portfolio .elementor-element-425bd08b > .elementor-container {
    width: calc(100% - 32px);
    min-height: 250px !important;
  }

  body.post-type-archive-portfolio .elementor-element-4a16d3a3 .elementor-heading-title {
    margin-bottom: 16px;
    font-size: clamp(36px, 11vw, 44px);
    line-height: 1.18;
  }

  .btd-portfolio-hero__breadcrumb {
    font-size: 15px;
  }
}
