@import "tailwindcss";

@font-face {
  font-family: "iran-yekan";
  src: url("https://cdn.meshkee.com/web-builder/fonts/iran-yekan/iran-yekan-regular.ttf");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "iran-yekan";
  src: url("https://cdn.meshkee.com/web-builder/fonts/iran-yekan/iran-yekan-medium.ttf");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "iran-yekan";
  src: url("https://cdn.meshkee.com/web-builder/fonts/iran-yekan/iran-yekan-bold.ttf");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "iran-yekan";
  src: url("https://cdn.meshkee.com/web-builder/fonts/iran-yekan/iran-yekan-extrabold.ttf");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --background: #ffffff;
  --foreground: #232323;
  --muted: #6f6f6f;
  --light-gray: #f7f7f7;
  --btn-gray: #efefef;
  --line: #e5e5e5;
  --brand: #ee1c25;
  --brand-navy: #002776;
  --accent-green: #009543;
  --container: 1170px;
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-muted: var(--muted);
  --color-light-gray: var(--light-gray);
  --color-btn-gray: var(--btn-gray);
  --color-line: var(--line);
  --color-brand: var(--brand);
  --color-brand-navy: var(--brand-navy);
  --color-accent-green: var(--accent-green);
  --font-sans: "iran-yekan", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--foreground);
  font-family: "iran-yekan", Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.7;
}

/* Force Western digits for mixed Latin+number tokens (F300, IP55, …).
   Iran Yekan maps ASCII 0-9 to Persian glyphs; Tahoma keeps Latin shapes. */
.latin-digits {
  font-family: Tahoma, Arial, "iran-yekan", sans-serif;
  unicode-bidi: isolate;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container-page {
  width: min(var(--container), calc(100% - 30px));
  margin-inline: auto;
}

.section {
  padding: 30px 0;
}

.section-gray {
  background: var(--light-gray);
}

.section-head {
  text-align: center;
  margin-bottom: 35px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #232323;
}

.section-head p {
  margin: 0;
  color: #9a9a9a;
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 22px;
  background: var(--btn-gray);
  color: #222;
  border: none;
  border-left: 3px solid var(--accent-green);
  font-size: 13px;
  font-weight: 500;
  transition: 0.25s ease;
}

.btn-more:hover {
  background: #e4e4e4;
}

.btn-cart {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  background: var(--btn-gray);
  color: #222;
  border: none;
  border-left: 3px solid var(--accent-green);
  font-size: 13px;
  font-weight: 500;
}

.card-shadow {
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.meshkee-credit {
  position: relative;
}

.meshkee-credit__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.meshkee-credit__line {
  position: absolute;
  background: #c8c8c8;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Draw clockwise starting from the left edge */
.meshkee-credit__line--l {
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: top;
  transition-delay: 0s;
}

.meshkee-credit__line--b {
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition-delay: 0.14s;
}

.meshkee-credit__line--r {
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  transform: scaleY(0);
  transform-origin: bottom;
  transition-delay: 0.28s;
}

.meshkee-credit__line--t {
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  transition-delay: 0.42s;
}

.meshkee-credit:hover .meshkee-credit__line--l,
.meshkee-credit:hover .meshkee-credit__line--r {
  transform: scaleY(1);
}

.meshkee-credit:hover .meshkee-credit__line--t,
.meshkee-credit:hover .meshkee-credit__line--b {
  transform: scaleX(1);
}

.meshkee-credit:not(:hover) .meshkee-credit__line--l {
  transition-delay: 0.42s;
}
.meshkee-credit:not(:hover) .meshkee-credit__line--b {
  transition-delay: 0.28s;
}
.meshkee-credit:not(:hover) .meshkee-credit__line--r {
  transition-delay: 0.14s;
}
.meshkee-credit:not(:hover) .meshkee-credit__line--t {
  transition-delay: 0s;
}

.round-box {
  border-radius: 8px;
  overflow: hidden;
}

.nav-link-item {
  color: #232323;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-link-item:hover {
  color: var(--brand);
}

.dropdown-panel {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 210px;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  z-index: 50;
}

.dropdown-panel a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: #444;
}

.dropdown-panel a:hover {
  background: #f7f7f7;
  color: var(--brand);
}

.portfolio-card {
  display: block;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease;
}

.portfolio-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 39, 118, 0.88) 0%,
    rgba(0, 39, 118, 0.35) 42%,
    rgba(0, 0, 0, 0.05) 100%
  );
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 0.95;
}

.portfolio-card-text {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 18px 16px;
  text-align: right;
  color: #fff;
  z-index: 1;
}

.portfolio-card-text h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.portfolio-card-text p {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.82);
}

.article-body {
  color: #555;
  font-size: 15px;
  line-height: 2;
  text-align: justify;
}

.article-body p {
  margin: 0 0 1rem;
}

.article-body strong {
  color: #232323;
  font-weight: 700;
}

.article-body a {
  color: var(--brand-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-body img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.25rem auto;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1rem;
  padding-inline-start: 1.4rem;
}

.article-body li {
  margin-bottom: 0.4rem;
}

.pagination-nav {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  padding-top: 10px;
}

.pagination-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  direction: rtl;
}

.pagination-link {
  display: inline-flex;
  min-width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #555;
  font-size: 14px;
  font-weight: 500;
  transition: 0.2s ease;
}

.pagination-link:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

.pagination-link.is-active {
  border-color: var(--brand-navy);
  background: var(--brand-navy);
  color: #fff;
}

.pagination-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pagination-ellipsis {
  display: inline-flex;
  min-width: 28px;
  justify-content: center;
  color: #999;
}

@media (max-width: 991px) {
  .section-head h2 {
    font-size: 22px;
  }
}
