/* COMMUNITY PAGE STYLES */

/* HERO SECTION */
.community-hero {
    color: white;
    padding: 3rem 2rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 2rem;
}

.community-hero h1 {
    color: white;
    margin: 0 0 1rem 0;
}

.community-hero p {
    margin: 0;
    font-size: 1.1rem;
}

/* COMMUNITY CONTENT LAYOUT */
.community-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.community-card {
    background: var(--text-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.community-card h2 {
    color: var(--color-secondary);
    margin-top: 0;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.5rem;
}

/* FORM STYLES */
.suggestion-form {
    margin-top: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--color-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(255, 77, 0, 0.1);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

.form-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* FORM MESSAGE */
.form-message {
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 4px;
    font-weight: bold;
}

.form-message.success {
    background-color: #C8E6C9;
    color: #2E7D32;
    border-left: 4px solid #4CAF50;
}

.form-message.error {
    background-color: #FFCDD2;
    color: #C62828;
    border-left: 4px solid #F44336;
}

/* COMMUNITY GUIDELINES */
.community-card ul {
    list-style-type: none;
    padding-left: 0;
}

.community-card li {
    padding: 0.7rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.community-card li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-accent-text);
    font-weight: bold;
    font-size: 1.1rem;
}

/* SUCCESS STORIES */
.success-story {
    background: linear-gradient(135deg, #E3F2FD, #F3E5F5);
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 4px;
    border-left: 4px solid var(--color-accent);
}

.success-story h3 {
    margin: 0 0 0.5rem 0;
    color: var(--color-secondary);
}

.success-story em {
    color: var(--text-dark);
    font-size: 0.9rem;
}

.success-story p:last-child {
    margin: 0;
    line-height: 1.6;
}

/* CONTACT SECTION */
.contact-section {
    background: #F5F5F5;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.contact-section h2 {
    color: var(--color-secondary);
    margin-top: 0;
}

.contact-section ul {
    list-style-type: none;
    padding-left: 0;
}

.contact-section li {
    padding: 0.7rem 0;
    border-bottom: 1px solid #ddd;
}

.contact-section li:last-child {
    border-bottom: none;
}

.contact-section strong {
    color: #000000;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .community-hero h1 {
        font-size: 1.8rem;
    }
}

@media (min-width: 992px) {
    .community-content {
        grid-template-columns: repeat(3, 1fr);
        align-items: start;
        padding-bottom: 2rem;
    }

    .community-card:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .community-card:nth-child(2),
    .community-card:nth-child(3) {
        grid-column: 3;
    }

    .community-card:nth-child(2) {
        margin-bottom: 2rem;
    }
}