/* ===== Pre-Footer ===== */
:root {
    --color-blue: #38bdf8;
    --color-green: #22c55e;
    --color-yellow: #facc15;
    --color-bg: #0f172a;
    --color-text: #e5e7eb;
}

.pre-footer {
    background: var(--color-bg);
    color: var(--color-text);
    padding: 60px 20px;
    font-family: "Vazir", sans-serif;
    direction: rtl;
}

.pre-footer-container {
    max-width: 1300px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

/* ستون‌ها */
.pf-col h4 {
    margin-bottom: 15px;
    font-size: 16px;
    color: var(--color-blue);
}

.pf-col ul {
    list-style: none;
    padding: 0;
}

.pf-col ul li {
    margin-bottom: 10px;
}

.pf-col ul li a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 14px;
    position: relative;
}

.pf-col ul li a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-blue);
    transition: width .3s ease;
}

.pf-col ul li a:hover::after {
    width: 100%;
}

/* برند و لوگو */
.footer-logo {
    width: 140px;
    margin-bottom: 15px;
}

.brand-text {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
}/* آیکن‌های شبکه اجتماعی */
.social-icons a img {
    width: 24px;
    margin-left: 10px;
    transition: transform .3s ease, filter .3s ease;
}

.social-icons a img:hover {
    transform: rotate(-8deg) scale(1.15);
    filter: brightness(1.2);
}

/* ستون 4: پیام انگیزشی */
.motivation {
    background: linear-gradient(135deg, rgba(34,197,94,0.15), rgba(250,204,21,0.1));
    padding: 18px;
    border-radius: 14px;
    animation: glow 3s infinite alternate;
}

.motivation p {
    font-size: 14px;
    line-height: 1.9;
    color: var(--color-green);
}

/* ستون 5: مجوزها */
.license-box img {
    width: 90px;
    margin: 10px 5px;
    background: #fff;
    padding: 5px;
    border-radius: 8px;
    transition: transform .3s ease, box-shadow .3s ease;
}

.license-box img:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* انیمیشن ورود ستون‌ها */
.pf-col {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.pf-col:nth-child(1) { animation-delay: .1s; }
.pf-col:nth-child(2) { animation-delay: .2s; }
.pf-col:nth-child(3) { animation-delay: .3s; }
.pf-col:nth-child(4) { animation-delay: .4s; }
.pf-col:nth-child(5) { animation-delay: .5s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pf-col:hover {
    transform: translateY(-6px) scale(1.02);
    transition: all 0.35s ease;
}

/* ===== فوتر ===== */
footer {
    text-align: center;
    padding: 15px;
    background: #e02121ff;
    color: #fff;
    font-size: 14px;
    bottom: 0;
    width: 100%;
}

@media (min-width:769px) and (max-width:1024px){


/* ================= FOOTER ================= */
.pre-footer-container{
    grid-template-columns:repeat(3,1fr);
    gap:20px;
    text-align:center;
}

.social-icons{
    justify-content:flex-start;
}

footer{
    font-size:14px;
    text-align:center;
}

}

@media (min-width:487px) and (max-width:768px){


/* ================= FOOTER ================= */
.pre-footer-container{
    grid-template-columns:1fr 1fr;
    gap:15px;
    text-align:center;
}

.social-icons{
    justify-content:center;
}

footer{
    font-size:14px;
    text-align:center;
}

}

/* ===== ریسپانسیو ===== */
@media(max-width:486px){
  

  .pre-footer-container {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      /* دو ستون برای وسط */
      gap: 20px;
      padding: 0 15px;
      justify-items: center;
      text-align: center;
  }

  /* ستون 1: یک ستون کامل */
  .pf-col:nth-child(1) {
      grid-column: span 2;
  }

  /* ستون 2 و 3: کنار هم، دو ستون */
  .pf-col:nth-child(2),
  .pf-col:nth-child(3) {
      grid-column: auto;
  }

  /* ستون 4: یک ستون کامل */
  .pf-col:nth-child(4) {
      grid-column: span 2;
  }

  /* ستون 5: یک ستون کامل */
  .pf-col:nth-child(5) {
      grid-column: span 2;
  }
    .social-icons { justify-content: center; }
    .license-box img { margin: 10px auto; }
    footer { font-size:13px; padding:10px; }

        
}

@media(max-width:360px) {

/* ================= FOOTER ================= */
.pre-footer-container{
    grid-template-columns:1fr;
    text-align:center;
}

.social-icons{
    justify-content:center;
    gap:8px;
}

footer{
    font-size:12px;
    text-align:center;
    padding:10px;
}

}