/*
Theme Name: ProIT Minimal
Theme URI: https://proit.website
Author: ProIT
Description: قالب مینیمال فارسی برای آموزش و عیبیابی MikroTik RouterOS
Version: 1.0.0
Text Domain: proit-minimal
*/

:root {
  --navy: #12243a;
  --blue: #087f8c;
  --light-blue: #e9f7f8;
  --text: #263648;
  --muted: #64748b;
  --border: #e5eaf0;
  --background: #f8fafc;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  direction: rtl;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 2;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--navy);
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.container {
  width: min(1100px, calc(100% - 40px));
  margin: auto;
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: bold;
  font-size: 20px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--blue);
  font-weight: bold;
}

.main-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.hero {
  padding: 90px 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(8,127,140,.12) 0 2px, transparent 3px),
    radial-gradient(circle at 85% 70%, rgba(8,127,140,.10) 0 2px, transparent 3px),
    var(--light-blue);
  background-size: 32px 32px;
}

.hero-content {
  max-width: 700px;
}

.eyebrow {
  color: var(--blue);
  font-size: 14px;
  font-weight: bold;
}

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.6;
}

h1 {
  margin: 10px 0 18px;
  font-size: clamp(30px, 5vw, 52px);
}

h2 {
  font-size: 28px;
  margin-top: 0;
}

.hero p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.button {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 22px;
  border-radius: 9px;
  color: var(--white);
  background: var(--blue);
  font-weight: bold;
}

.button:hover {
  color: var(--white);
  background: var(--navy);
}

.section {
  padding: 70px 0;
}

.section-heading {
  margin-bottom: 30px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.card h3 {
  margin-top: 0;
  font-size: 19px;
}

.card p {
  color: var(--muted);
  font-size: 14px;
}

.post-list {
  display: grid;
  gap: 18px;
}

.post-item {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.post-item h2 {
  margin: 0;
  font-size: 21px;
}

.entry {
  width: min(800px, 100%);
  margin: 55px auto;
  padding: 35px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.entry img {
  max-width: 100%;
  height: auto;
}

.site-footer {
  padding: 35px 0;
  color: var(--muted);
  background: var(--navy);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .hero {
    padding: 60px 0;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .entry {
    padding: 22px;
  }
}
