/* =========================================
   Power Modding FAQ Section
   ========================================= */

.pm-section {
    padding: 80px 0;
    position: relative;
}

/* Header Styling */
.pm-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.pm-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.pm-subtitle {
    color: var(--text-gray);
    font-size: 1.1rem;
}

/* The Grid Layout */
.pm-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columns */
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

/* FAQ Item Container */
.pm-faq-item {
    background-color: #0f0f0f; /* Slightly lighter than pure black */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pm-faq-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Active State Styling */
.pm-faq-item.active {
    border-color: var(--primary); /* Red border when open */
    background-color: #141414;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

/* The Trigger Button */
.pm-faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    outline: none;
}

.pm-faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
    padding-right: 20px;
    transition: color 0.3s ease;
}

.pm-faq-item.active .pm-faq-question {
    color: var(--primary); /* Red text when open */
}

/* The Icon (+ / -) */
.pm-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: var(--text-gray);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pm-faq-item.active .pm-faq-icon {
    transform: rotate(45deg); /* Turns plus to X */
    color: var(--primary);
}

/* The Smooth Expansion Animation */
.pm-faq-content-wrapper {
    display: grid;
    grid-template-rows: 0fr; /* Start collapsed */
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pm-faq-item.active .pm-faq-content-wrapper {
    grid-template-rows: 1fr; /* Expand to fit content */
}

.pm-faq-content {
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.pm-faq-item.active .pm-faq-content {
    opacity: 1;
    transform: translateY(0);
}

.pm-faq-content p {
    padding: 0 24px 24px 24px;
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.pm-faq-content a {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
    .pm-faq-grid {
        grid-template-columns: 1fr; /* 1 Column on mobile */
    }
    
    .pm-title {
        font-size: 2rem;
    }
}