/* =========================================
   Power Modding Footer (Fixed Layout + Tebex Branding)
   ========================================= */

.pm-footer {
    background-color: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 0 30px;
    margin-top: auto;
    /* FORCE global text alignment to left */
    text-align: left !important; 
}

/* The Grid System */
.pm-footer-grid {
    display: grid;
    /* 2.5fr for the brand gives it more space, 1fr for the rest distributes them evenly */
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 40px; /* Space between columns */
    width: 100%; /* Ensures it touches the edges of the container */
    margin-bottom: 50px;
    align-items: start; /* Ensures columns start at the top */
}

/* --- Brand Column --- */
.pm-col-brand {
    display: flex;
    flex-direction: column;
    /* This forces the flex items (logo, text, socials) to the LEFT */
    align-items: flex-start; 
    justify-content: flex-start;
}

.pm-footer-logo {
    font-size: 1.5rem; 
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 20px;
    display: inline-block;
    margin-left: 0;
    margin-right: 0;
}

.pm-footer-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 380px; 
    margin-bottom: 24px;
    text-align: left; 
}

/* Social Icons Wrapper */
.pm-socials {
    display: flex;
    gap: 18px;
    justify-content: flex-start; 
}

.pm-social-link {
    color: var(--text-gray);
    font-size: 1.2rem;
    transition: var(--transition);
}

.pm-social-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* --- Link Columns --- */
.pm-col-title {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left; 
}

.pm-col-links ul {
    padding: 0;
    margin: 0;
    text-align: left;
}

.pm-col-links ul li {
    margin-bottom: 12px;
}

.pm-col-links ul li a {
    color: var(--text-gray);
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-block; 
}

.pm-col-links ul li a:hover {
    color: var(--primary);
    transform: translateX(5px); /* Slide right on hover */
}

/* --- Footer Bottom (Copyright, Tebex & Payments) --- */
.pm-footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    width: 100%;
}

.pm-footer-bottom {
    display: flex;
    justify-content: space-between; /* Spreads: Left(Copy) - Center(Tebex) - Right(Payment) */
    align-items: center;
    width: 100%;
    padding-top: 10px;
}

.pm-copyright {
    color: #555;
    font-size: 0.9rem;
    text-align: left;
}

/* --- NEW: Tebex Branding Styles --- */
.pm-tebex-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.pm-tebex-brand:hover {
    opacity: 1;
}

.pm-tebex-brand span {
    color: var(--text-gray);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pm-tebex-brand img {
    height: 18px;
    width: auto;
}

/* Payment Icons */
.pm-payment-list {
    display: flex;
    gap: 14px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pm-payment-list img {
    height: 24px;
    width: auto;
    transition: var(--transition);
}

/* --- Responsive (Mobile) --- */
@media (max-width: 900px) {
    .pm-footer-grid {
        grid-template-columns: 1fr; 
        gap: 40px;
        text-align: center !important; 
    }

    .pm-col-brand {
        align-items: center; 
    }

    .pm-footer-desc {
        text-align: center;
        margin: 0 auto 24px;
    }

    .pm-col-title {
        text-align: center;
    }
    
    .pm-col-links ul {
        text-align: center;
    }

    /* Stack the bottom elements: Payments top, Tebex mid, Copyright bottom */
    .pm-footer-bottom {
        flex-direction: column-reverse;
        gap: 24px;
        text-align: center;
    }

    .mobile-break {
        display: none;
    }
}