/* Community Section */
.community-section {
  position: relative;
  z-index: 1; /* content above background */
}

.community-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* semi-transparent dark overlay */
  z-index: -1; /* place behind the content */
}

.community-section .container {
  position: relative;
  z-index: 2; /* ensure text stays above overlay */
}

.community-section {
    position: relative; /* For overlay positioning */
    background: linear-gradient(to top, rgba(255, 165, 0, 0.5), rgba(255, 255, 255, 0.1)),
                url('../images/community-bg.png') center/cover no-repeat;
    padding-top: 40px;
    color: white;
    text-shadow: 2px 2px 0 black;
    overflow: hidden; /* Hide overflow of moving storm */
    border-bottom: 4px solid black;
}


.community-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.community-content {
    flex: 1;
    min-width: 280px;
}

.community-title {
    font-size: 2rem;
    color: #ffdd00;
    margin-bottom: 10px;
}

.community-desc {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 20px;
    max-width: 400px;
}

.twitter-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1rem;
    transition: background 0.3s ease, transform 0.3s ease;
    background-color: #c08552;
    color: #fff3d6;
    font-weight: bold;
    border: 3px solid #5c3a21;
    border-radius: 6px;
    padding: 0.4rem 1rem;
    box-shadow: 3px 3px 0 #5c3a21;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.twitter-btn i {
    font-size: 1.2rem;
}

.twitter-btn:hover {
    background-color: #a76d3c;
    color: #fff8e1;
    transform: translateY(-2px);
}

.community-image {
    flex: 1;
    text-align: center;
    min-width: 280px;
    margin-bottom: 2rem;
}

.community-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .community-row {
        flex-direction: column-reverse;
        text-align: center;
    }
    .community-desc {
        margin: auto;
    }

    .twitter-btn{
        margin-bottom: 20px;
    }

    .community-section {
    position: relative; /* For overlay positioning */
    background: linear-gradient(to top, rgba(255, 165, 0, 0.5), rgba(255, 255, 255, 0.1)),
                url('../images/community-mb-bg.png') center/cover no-repeat;
    padding-top: 40px;
    color: white;
    text-shadow: 2px 2px 0 black;
    overflow: hidden; /* Hide overflow of moving storm */
}

}

@media screen and (min-width: 1024px) {
    .community-content {
        flex: 1 !important;
        min-width: 280px !important;
        padding-left: 7rem !important;
    }
}


