/* ================= ABOUT PAGE STYLES ================= */
.about-page {
  padding-bottom: 4rem;
  background-color: #fafafa;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Hero Section */
.about-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 4rem;
}

@media (min-width: 992px) {
  .about-hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }
}

.about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #eef2ff;
  color: #4f46e5;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1f2937;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.about-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 2rem;
}

.about-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Pills Navigation */
.about-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 1rem;
}

.about-pill {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.about-pill:hover,
.about-pill.is-active {
  background-color: #fff;
  color: #2563eb;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* Hero Image/Fallback */
.hero-frame {
  background: white;
  border-radius: 24px;
  padding: 1rem;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.1);
  transform: rotate(-2deg);
  transition: transform 0.3s;
}

.hero-frame:hover {
  transform: rotate(0deg);
}

.hero-fallback {
  background: #f3f4f6;
  border-radius: 16px;
  height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #9ca3af;
}

.hero-fallback__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #d1d5db;
}

/* Section Common */
.about-section {
  margin-bottom: 5rem;
  scroll-margin-top: 100px; /* For sticky header offset */
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.5rem;
}

/* Cards (Mission) */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: white;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  text-align: center;
  transition: transform 0.2s;
}

.info-card:hover {
  transform: translateY(-5px);
  border-color: #bfdbfe;
}

.info-card__icon {
  width: 56px;
  height: 56px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 1.5rem;
}

.info-card__title {
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.value-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.value-row i {
  color: #10b981; /* Green */
  font-size: 1.4rem;
  margin-top: 0.2rem;
}

.value-title {
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.25rem;
}

/* Steps Grid (How it works) */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: white;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  position: relative;
}

.step-badge {
  width: 32px;
  height: 32px;
  background: #2563eb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 1rem;
}

.step-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
}

.team-card {
  text-align: center;
}

.avatar-lg {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background-color: #e5e7eb;
}

.team-name {
  font-weight: 700;
  color: #1f2937;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  text-align: center;
  background: #1f2937;
  color: white;
  padding: 3rem;
  border-radius: 24px;
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: #60a5fa; /* Blue-400 */
  margin-bottom: 0.5rem;
}

.stat-card .muted {
  color: #9ca3af;
}

.muted {
  color: #6b7280;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ================= MODAL STYLES (AUTH) ================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.auth-box {
    background: #fff;
    width: 90%;
    max-width: 400px;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .auth-box {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-modal:hover { color: #333; }

.auth-header { margin-bottom: 2rem; text-align: center; }
.auth-header h2 { font-size: 1.6rem; color: #111; margin-bottom: 0.5rem; }
.auth-header p { color: #666; font-size: 0.9rem; }

.input-group { margin-bottom: 1.5rem; text-align: right; }
.input-group label { display: block; margin-bottom: 0.5rem; color: #333; font-weight: 500; font-size: 0.9rem; }
.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
}
.input-group input:focus { border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

.btn-submit {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.btn-submit:hover { background: #1d4ed8; }

/* OTP Styles */
.otp-container { display: flex; gap: 10px; justify-content: center; direction: ltr; margin: 20px 0; }
.otp-input {
    width: 55px; height: 55px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
}
.otp-input:focus { border-color: #2563eb; outline: none; }

/* Helpers */
.hidden-step { display: none !important; }
.error-msg { color: #dc2626; font-size: 0.8rem; margin-top: 5px; display: block; display: none; }
.edit-number { color: #2563eb; cursor: pointer; font-size: 0.9rem; text-decoration: underline; }

/* Face Scan Animation */
.face-scan-box {
    width: 160px; height: 160px;
    background: #f3f4f6;
    border: 3px dashed #cbd5e1;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 4rem; color: #9ca3af;
    position: relative; overflow: hidden;
}
.face-scan-box.scanning { border-color: #2563eb; color: #2563eb; }
.face-scan-box.scanning::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(37, 99, 235, 0.4), transparent);
    animation: scan 1.5s infinite;
}
@keyframes scan { 0% { top: -100%; } 100% { top: 100%; } }

/* ================= FOOTER SOCIAL ICONS FIX ================= */
/* تنظیم رنگ آیکون‌های فوتر به رنگ‌های رسمی برند */

.footer-social a i.bi-linkedin {
    color: #0a66c2 !important; /* آبی لینکدین */
}

.footer-social a i.bi-instagram {
    color: #E1306C !important; /* سرخابی اینستاگرام */
}

/* افکت هاور (اختیاری برای کمی روشن‌تر شدن هنگام موس‌آوور) */
.footer-social a:hover i.bi-linkedin {
    color: #0077b5 !important;
}

.footer-social a:hover i.bi-instagram {
    color: #c13584 !important;
}
