:root {
  --bg-color: #121212;
  --text-color: #f1f1f1;
  --primary-color: #ff2a8a;
  --card-bg: #1c1c1c;
  --input-bg: #2c2c2c;
  --border-color: #444;
  --text-secondary: #ecf0f1;
}

body {
  font-family: "Vazirmatn", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

.app-container {
  flex-grow: 1;
}

.bg-card {
  background-color: var(--card-bg);
}

.bg-input {
  background-color: var(--input-bg);
}

.border-custom {
  border-color: var(--border-color);
}

.btn-primary {
  background-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #d62274;
}

.text-primary {
  color: var(--primary-color);
}

.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* --- Unified Header and Footer Styles --- */
.site-header,
.site-footer {
  color: white;
  width: 100%;
  box-sizing: border-box;
}

/* Container for Header and Footer content */
.site-header .inner,
.site-footer .footer-inner {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
  padding: 10px 40px;
  box-sizing: border-box;
  min-height: 80px;
}

.logo-container {
  width: 120px;
  height: auto;
  flex-shrink: 0;
}

.logo-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* Unified text styles */
.header-content h1 {
  font-family: "GraphikArabicSuper", "Vazirmatn", sans-serif;
  font-size: 1.8em;
  margin: 0;
  font-weight: 900;
  color: var(--primary-color);
  text-align: right;
}

.footer-about h3 {
  font-family: "GraphikArabicSuper", "Vazirmatn", sans-serif;
  font-size: 1.6em;
  margin: 0;
  font-weight: 900;
  color: white;
  text-align: right;
}

.header-content p {
  font-family: "Vazirmatn", sans-serif;
  font-size: 0.9em;
  margin: 5px 0 0;
  color: var(--text-secondary);
  text-align: right;
  font-weight: 700;
}


/* --- Navigation Menu (Header specific) --- */
.nav-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  white-space: nowrap;
  font-weight: 700;
}

.nav-menu a:hover,
.nav-menu a[aria-current="page"] {
  color: var(--primary-color);
}

/* --- Footer Specific Styles --- */
.footer-inner {
  flex-wrap: wrap;
  gap: 20px;
}

.footer-about {
  flex: 2;
  min-width: 250px;
  text-align: right;
}

.footer-about p {
  font-size: 14px;
  color: #ccc;
  opacity: 0.7;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-icons a svg {
  opacity: 0.7;
  transition: all 0.3s ease;
}

.social-icons a:hover svg {
  opacity: 1;
  transform: scale(1.1);
}

.social-icons a:hover svg path {
  fill: var(--primary-color);
}

/* Copyright section at the very bottom */
.footer-bottom {
  text-align: center;
  color: #aaa;
  font-size: 14px;
  margin-top: 20px;
  border-top: 1px solid #444;
  padding-top: 15px;
  width: 100%;
}

h2,
h3,
button {
  font-family: "Shabnam-Bold", "Vazirmatn", sans-serif;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {

  .site-header .inner,
  .site-footer .footer-inner {
    padding: 10px 20px;
  }

  .header-content h1 {
    font-size: 1.3em;
  }

  .header-content p {
    font-size: 0.8em;
  }

  .logo-container {
    width: 110px;
  }

  .footer-about p {
    font-size: 12px;
  }

  .footer-about h3 {
    font-size: 20px;
  }

  .footer-bottom p {
    font-size: 9px;
  }

  .footer-bottom .copy {
    font-size: 10px;
  }

  .footer-bottom {
    margin-top: 0px;
  }
}