/* Instagram Follow Banner */
.instagram-follow-banner {
  padding: 40px 0;
  position: relative;
}

.instagram-main-image {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 2;
  pointer-events: none;
}

.instagram-banner-card {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.instagram-banner-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  padding-right: 150px;
}

.instagram-banner-img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-right: 100%;
  margin-bottom: 3.5rem;
  opacity: 0.8;
  transition: transform 0.3s ease;
}

@media (hover: hover) {
  .instagram-banner-card:hover .instagram-banner-img {
    opacity: 0.9;
    transform: scale(1.02);
  }
}

.instagram-button {
  flex: 0 0 auto;
  margin-right: 20%;
}

.instagram-follow-btn {
  background: #ff8c42;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.instagram-follow-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.instagram-follow-btn:hover::before {
  left: 100%;
}

.instagram-text {
  text-align: right;
  color: white;
  flex: 1;
  min-width: 200px;
}

.instagram-text h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.instagram-text p {
  font-size: 13px;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Footer Content Area */
.footer-content-area {
  background: #eeeeee;
  padding: 60px 0;
  position: relative;
}

.footer-cards-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-card {
  border-radius: 24px;
  padding: 30px;
  background: #ffffff;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer-card-primary {
  background: #ffffff;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-8px);
  z-index: 2;
}

.footer-card-primary:hover {
  transform: translateY(-12px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

.footer-card-secondary {
  background: #ffffff;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
  z-index: 1;
}

.footer-card-secondary:hover {
  transform: translateY(-6px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Newsletter Card Content - Primary */

.footer-site-logo {
  margin-bottom: 25px;
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  justify-self: center; /* Center the logo in the grid */
  grid-column: 1 / -1; /* Span across all grid columns */
}

.footer-site-logo img {
  max-width: 110px;
  height: auto;
  filter: brightness(0.95) contrast(1.05);
  transition: all 0.3s ease;
}

.footer-site-logo img:hover {
  transform: scale(1.02);
  filter: brightness(1) contrast(1.1);
}

.newsletter-form-container {
  margin-bottom: 25px;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  flex-direction: column;
}

.newsletter-form input {
  flex: 1;
  padding: 16px 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  font-size: 15px;
  font-weight: 400;
  transition: all 0.3s ease;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.newsletter-form input:focus {
  border-color: #1d322d;
  box-shadow: 0 0 0 4px rgba(29, 50, 45, 0.12), 0 4px 12px rgba(29, 50, 45, 0.08);
  background: #ffffff;
  transform: translateY(-1px);
}

.newsletter-submit-btn {
  background: linear-gradient(135deg, #1d322d, #1d322d);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(29, 50, 45, 0.25);
  position: relative;
  overflow: hidden;
}

.newsletter-submit-btn:hover {
  background: linear-gradient(135deg, #1d322d, #146534);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(29, 50, 45, 0.35);
}

.newsletter-submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.newsletter-submit-btn:hover::before {
  left: 100%;
}

.footer-trust-logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 15px;
}

.footer-copyright {
  text-align: center;
  margin-top: 10px;
}

.copyright-text {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 5px 0;
  font-weight: 400;
}

.site-credit {
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  font-weight: 400;
  transition: all 0.3s ease;
}

.site-credit:hover {
  color: #4b5563;
  text-decoration: underline;
}

.certificate-logo img,
.payment-logo img {
  max-height: 50px;
  width: auto;
  object-fit: contain;
  border-radius: 8px;
  transition: all 0.3s ease;
  filter: brightness(0.95);
}

.certificate-logo img:hover,
.payment-logo img:hover {
  transform: scale(1.02);
  filter: brightness(1);
}

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.payment-logo {
  flex: 0 0 auto;
}

/* Quick Links Card Content - Secondary */

.footer-card-secondary h4 {
  color: #111827;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.footer-card-secondary h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 30px;
  height: 3px;
  background: #1d322d;
  border-radius: 2px;
}

.footer-quick-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-quick-links li {
  margin-bottom: 12px;
}

.footer-quick-links a {
  color: #6b7280;
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  padding: 4px 0;
}

.footer-quick-links a:hover {
  color: #1d322d;
  transform: translateX(-5px);
}

.footer-quick-links a i {
  color: #1d322d;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.footer-quick-links a:hover i {
  transform: translateX(-3px);
}

/* Contact Info Card Content - Secondary */

.footer-card h4 {
  color: #111827;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
}

.footer-card h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 0;
  width: 30px;
  height: 3px;
  background: #1d322d;
  border-radius: 2px;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  color: #6b7280;
}

.contact-item i {
  color: #1d322d;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.contact-item strong {
  color: #111827;
  display: block;
  margin-bottom: 4px;
}

.contact-item a {
  color: #1d322d;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: #1d322d;
}

/* استایل شماره تلفن‌ها */
.phone-link {
  color: #1d322d !important;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.phone-link:hover {
  color: #1d322d !important;
  text-decoration: underline;
}

/* استایل اطلاعات شعب */
.branch-phone,
.branch-email {
  margin: 4px 0;
  font-size: 14px;
  color: #6b7280;
}

.branch-phone i,
.branch-email i {
  margin-left: 6px;
  font-size: 12px;
}

.branch-email a {
  color: #1d322d;
  text-decoration: none;
}

.branch-email a:hover {
  color: #1d322d;
  text-decoration: underline;
}

/* استایل آیکون‌های مختلف تلفن */
.contact-item .bi-telephone-fill {
  color: #1d322d !important;
}

.contact-item .bi-phone-fill {
  color: #1d322d !important;
}

.contact-item .bi-whatsapp {
  color: #25d366 !important;
}

.contact-item .bi-headset {
  color: #06b6d4 !important;
}

/* ریسپانسیو برای فوتر */
@media (max-width: 768px) {
  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .contact-item i {
    align-self: flex-start;
  }

  .branch-phone,
  .branch-email {
    margin: 2px 0;
    font-size: 13px;
  }
}

.social-links {
  border-top: 1px solid #e5e7eb;
  padding-top: 20px;
}

.social-links h5 {
  color: #111827;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
}

.social-icons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social-icon {
  color: #1d322d;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.social-icon:hover {
  color: #1d322d;
}

/* Responsive Design */
@media (max-width: 768px) {
  .instagram-banner-content {
    flex-direction: column;
    gap: 25px;
    padding-right: 0;
    padding-left: 0;
  }

  .instagram-main-image {
    display: none;
  }

  .instagram-button {
    order: 2;
    align-self: center;
    margin: 0 auto;
  }

  .instagram-text {
    order: 1;
    text-align: center;
    margin: 0;
  }

  .instagram-text h3 {
    font-size: 18px;
  }

  .instagram-text p {
    font-size: 12px;
  }

  .footer-cards-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .footer-card {
    padding: 25px;
  }

  .footer-card-primary {
    transform: translateY(-4px);
  }

  .footer-card-secondary {
    transform: translateY(-1px);
  }

  .footer-trust-logos {
    justify-content: center;
    gap: 8px;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-submit-btn {
    align-self: stretch;
  }

  .payment-logos {
    justify-content: center;
  }

  .footer-site-logo {
    text-align: center;
  }

  .footer-site-logo img {
    max-width: 100px;
  }

  .footer-card h4 {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .instagram-follow-banner {
    padding: 30px 0;
  }

  .instagram-banner-card {
    padding: 25px;
    border-radius: 25px;
  }

  .instagram-banner-content {
    padding: 0 5px;
    padding-right: 0;
  }

  .instagram-main-image {
    display: none;
  }

  .instagram-button {
    order: 2;
    align-self: center;
  }

  .instagram-text {
    order: 1;
    text-align: center;
  }

  .instagram-follow-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .instagram-text h3 {
    font-size: 16px;
  }

  .instagram-text p {
    font-size: 11px;
  }

  .footer-content-area {
    padding: 40px 0;
  }

  .footer-cards-grid {
    padding: 0 15px;
    gap: 20px;
  }

  .footer-card {
    padding: 20px;
    border-radius: 20px;
  }

  .newsletter-form-container {
    padding: 20px;
    margin-bottom: 20px;
  }

  .newsletter-form {
    gap: 10px;
  }

  .newsletter-submit-btn {
    align-self: stretch;
    padding: 14px;
  }

  .footer-trust-logos {
    gap: 6px;
  }

  .certificate-logo img,
  .payment-logo img {
    max-height: 40px;
  }

  .footer-site-logo {
    padding: 15px;
  }

  .footer-site-logo img {
    max-width: 90px;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-card-primary,
  .footer-card-secondary {
    transform: none;
  }

  .footer-card-primary:hover,
  .footer-card-secondary:hover {
    transform: translateY(-2px);
  }

  .copyright-text {
    font-size: 11px;
  }

  .site-credit {
    font-size: 12px;
  }
}




/* General Footer Styles */
footer {
  margin-top: auto;
}

footer a {
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #1d322d !important;
}
