/* Hero Section - How It Works */
.how-hero {
    background: linear-gradient(rgba(46, 125, 50, 0.9), rgba(46, 125, 50, 0.85)), 
                url('https://lycan52.github.io/AgriNexusGL-Home/assets/images/process-hero.webp');
    background-size: cover;
    background-position: center 60%;
    padding: 140px 0 80px;
    text-align: center;
}

/* Process Steps */
.process-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    position: relative;
    margin-top: 30px;
}

.process-step {
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    padding: 30px;
    flex: 1;
    min-width: 250px;
    max-width: 280px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.step-number {
    background-color: var(--primary-green);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.step-icon {
    background-color: var(--primary-orange);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.process-step h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

/* Connector lines - Desktop */
@media (min-width: 992px) {
    .process-container::before {
        content: "";
        position: absolute;
        top: 40px;
        left: 50px;
        right: 50px;
        height: 4px;
        background-color: var(--primary-green);
        z-index: 1;
    }
    
    .process-step:nth-child(2)::before,
    .process-step:nth-child(3)::before,
    .process-step:nth-child(4)::before {
        content: "";
        position: absolute;
        top: 40px;
        left: -35px;
        width: 30px;
        height: 4px;
        background-color: var(--primary-green);
        z-index: 1;
    }
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--box-shadow-hover);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 25px;
    background-color: var(--background-light);
    border: none;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.faq-question:hover, 
.faq-question:focus {
    background-color: rgba(76, 175, 80, 0.1);
    outline: none;
}

.faq-question[aria-expanded="true"] {
    background-color: var(--primary-green);
    color: var(--white);
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-question i {
    transition: transform 0.3s ease;
    font-size: 16px;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--background-light);
}

.faq-answer[aria-hidden="false"] {
    padding: 20px 25px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Dark Mode Styles */
body.dark-mode .process-step,
body.dark-mode .faq-item {
    background-color: var(--dark-card);
}

body.dark-mode .faq-question {
    background-color: #2a2a2a;
}

body.dark-mode .faq-answer {
    background-color: #2a2a2a;
}

body.dark-mode .faq-question[aria-expanded="true"] {
    background-color: var(--primary-green);
}

/* Responsive Design */
@media (max-width: 768px) {
    .process-container::before {
        display: none;
    }
    
    .process-step:nth-child(2)::before,
    .process-step:nth-child(3)::before,
    .process-step:nth-child(4)::before {
        display: none;
    }
    
    .process-step {
        max-width: 100%;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }
}
