/* ===== GLOBAL ===== */
/* مقدارهای اولیه */
body {
  background: radial-gradient(
      circle at var(--bg-x, 12%) var(--bg-y, 4%),
      rgba(255, 200, 0, 0.18) 0%,
      rgba(255, 200, 0, 0.10) 0%,
      #1c2c42 55%
    )
    no-repeat fixed;
}


.page-wrapper {
  width: 90%;
  max-width: 1400px;
  margin: auto;
  padding-top: 40px;
}

/* ===== HEADER ===== */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header h1 {
  font-size: 42px;
  color: #00eaff;
  text-shadow: 0 0 20px rgba(0, 234, 255, 0.7);
}

.page-header p {
  opacity: 0.75;
  color: rgba(255, 255, 255, 0.75);
  margin-top: -10px;
}

/* ===== GRID ===== */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* ===== COLUMN TITLES ===== */
.column h2 {
  font-size: 28px;
  color: #00eaff;
  margin-bottom: 5px;
}

.column-subtitle {
  opacity: 0.7;
  margin-bottom: 20px;
}

/* ===== CARD STACK ===== */
.card-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ===== CARD ===== */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 234, 255, 0.25);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  gap: 20px;
  cursor: pointer;
  transition: 0.3s;
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(0, 234, 255, 0.4);
}

/* ===== CARD LOGO ===== */
.card-logo img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}

/* ===== CARD BODY ===== */
.card-body h3 {
  margin: 0;
  font-size: 20px;
}

.card-body p {
  margin: 5px 0 0;
  opacity: 0.8;
}

/* ===== MODAL ===== */
.modal {
  overflow-y: auto;  
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
}

/* ===== MODAL CONTENT ===== */
.modal-content {
  max-height: 90vh;      /* مودال از صفحه بلندتر نمی‌شود */
  overflow-y: auto;      /* اسکرول داخلی فعال می‌شود */
  width: 70%;
  max-width: 900px;
  margin: 60px auto;
  background: rgba(10, 15, 20, 0.45);
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(0, 234, 255, 0.25);
  box-shadow: 0 0 40px rgba(0, 234, 255, 0.35);
  backdrop-filter: blur(20px);
}

/* ===== CLOSE BUTTON ===== */
.close-modal {
  float: right;
  font-size: 32px;
  cursor: pointer;
  color: #00eaff;
}

/* ===== THUMBNAILS ===== */
.modal-thumbs {
  display: flex;
  flex-wrap: wrap;   /* مهم‌ترین خط */
  gap: 12px;
  margin-top: 20px;
}

.modal-thumbs img {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;   /* جلوگیری از له شدن عکس‌ها */
}

.modal-thumbs img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(0, 234, 255, 0.55);
}

/* ===== FULL IMAGE ===== */
.modal-full img {
  width: 90%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 16px;
  margin-top: 20px;
}

/* ===== VIDEO ===== */
.modal-video video {
  width: 90%;
  max-height: 70vh;
  border-radius: 16px;
  margin-top: 25px;
}

a {
  color: #00eaff;
  margin-bottom: 5px;
}

.header-a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
}