/* =========================
   FOOTER BASE
========================= */
.page-footer {
    background: linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.08));
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Dark Mode */
body.dark .page-footer {
    background: linear-gradient(180deg, #0f0f0f, #000000);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark .page-footer * {
    color: rgba(255,255,255,0.85);
}

/* =========================
   WRAPPER
========================= */
.footer-wrapper {
    display: flex;
    max-width: 1440px;
    width: 85%;
    gap: 50px;
}

/* =========================
   SECTIONS
========================= */
.footer-first,
.footer-second,
.footer-third {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-first { width: 50%; }
.footer-second,
.footer-third { width: 25%; }

/* =========================
   HEADINGS
========================= */
.ff-head,
.footer-second h3,
.footer-third h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111;
}

body.dark .ff-head,
body.dark .footer-second h3,
body.dark .footer-third h3 {
    color: #fff;
}

/* =========================
   TEXT / DESCRIPTION
========================= */
.footer-first p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(0,0,0,0.6);
}

body.dark .footer-first p {
    color: rgba(255,255,255,0.7);
}

/* =========================
   LINKS
========================= */
.footer-wrapper ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-wrapper ul li a {
    text-decoration: none;
    color: rgba(0,0,0,0.7);
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

/* Hover underline animation */
.footer-wrapper ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: #007bff;
    transition: 0.3s;
}

.footer-wrapper ul li a:hover {
    color: #007bff;
}

.footer-wrapper ul li a:hover::after {
    width: 100%;
}

/* Dark Mode Links */
body.dark .footer-wrapper ul li a {
    color: rgba(255,255,255,0.7);
}

body.dark .footer-wrapper ul li a:hover {
    color: #4dabf7;
}

/* =========================
   SOCIAL ICONS (OPTIONAL)
========================= */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.footer-social a {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.footer-social a:hover {
    background: #007bff;
    transform: translateY(-3px);
}

body.dark .footer-social a {
    background: rgba(255,255,255,0.1);
}

/* =========================
   COPYRIGHT
========================= */
.footer-bottom {
    margin-top: 40px;
    text-align: center;
    font-size: 13px;
    color: rgba(0,0,0,0.5);
}

body.dark .footer-bottom {
    color: rgba(255,255,255,0.6);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
    .footer-wrapper {
        flex-direction: column;
        width: 100%;
        gap: 30px;
    }

    .footer-first,
    .footer-second,
    .footer-third {
        width: 100%;
    }
}