*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  color: var(--cip-text);
  background: var(--cip-surface);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  direction: rtl;
}

body,
button,
input,
select,
textarea,
.cip-hero,
.cip-header,
.cip-footer,
.cip-search-bar,
.tbe-public {
  font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cip-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--cip-accent);
}

button,
input,
select,
textarea {
  font: inherit;
  font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 0.6em;
  color: var(--cip-text);
}

p {
  margin: 0 0 1em;
}

ul, ol {
  margin: 0;
  padding: 0;
}

.cip-container {
  width: min(100% - 32px, var(--cip-container));
  margin-inline: auto;
}

.cip-skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--cip-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10000;
  border-radius: 0 0 var(--cip-radius) 0;
}

.cip-skip-link:focus {
  inset-inline-start: 0;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cip-btn:hover {
  transform: translateY(-1px);
}

.cip-btn--primary {
  background: var(--cip-primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 37, 85, 0.22);
}

.cip-btn--primary:hover {
  background: var(--cip-primary-dark);
  color: #fff;
}

.cip-btn--warm {
  background: var(--cip-warm);
  color: #fff;
}

.cip-btn--warm:hover {
  background: #6f5410;
  color: #fff;
}

.cip-btn--outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.cip-section {
  padding: 4.5rem 0;
}

.cip-section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.cip-section__title {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  margin: 0;
}

.cip-section__link {
  color: var(--cip-primary);
  font-weight: 600;
  white-space: nowrap;
}

.cip-section__link:hover {
  color: var(--cip-gold);
}

@media (max-width: 720px) {
  .cip-section {
    padding: 3rem 0;
  }

  .cip-section__head {
    flex-direction: column;
    align-items: flex-start;
  }
}
