/* ===== Community Forum Unified Layout ===== */

/* General Body Styling */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
}

/* Main Section Wrapper — applies uniform width to all */
main > section {
    width: 95%;
    margin: 10px auto;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.03);
    background: #ffffff;
    overflow: visible;
}

#forum-container {
    background-color: rgba(255, 255, 255, 0); /* Fully transparent */
    padding: 0; /* Remove any inner spacing */
    margin: 0 auto;
    width: 100%;
}


/* Forum Header */
.forum-header {
    width: 95%;
    margin: 10px auto;
    background: linear-gradient(to right, #800080, #fbc2eb);
    color: white;
    text-align: center;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
}

    .forum-header h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .forum-header input {
        width: 60%;
        padding: 10px;
        font-size: 1em;
        border: none;
        border-radius: 5px;
    }

/* Forum Statistics */
.forum-stats {
    display: flex;
    justify-content: space-around;
    background: #0a9396;
    color: #1d1d1d;
    font-size: 1.1em;
    border-radius: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    width: 95%;
    margin: 10px auto;
    text-align: center;
    padding: 15px;
}

/* Navigation */
.forum-nav {
    width: 95%;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background: #94d2bd;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

    .forum-nav a {
        text-decoration: none;
        color: #003b45;
        font-weight: bold;
        padding: 8px 12px;
        border-radius: 5px;
        transition: 0.3s ease;
    }

        .forum-nav a:hover {
            background-color: #005f73;
            color: white;
        }

/* Sticky Top Utilities */
.forum-sticky {
    display: flex;
    flex-direction: column; /* 🔁 Stack vertically */
    gap: 1.5rem; /* Adds spacing between each block */
    background: #e0f2e9;
    padding: 20px;
    border-radius: 20px;
    width: 95%;
    margin: 10px auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.forum-section {
    flex: 1 1 260px;
    max-height: 50px; /* or adjust to taste */
    background: #c1e3d0;
    color: #1d1d1d;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

    .forum-section h2 {
        margin-bottom: 0.5rem;
    }

/* Forum Topics */
.forum-topics {
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
}

    .forum-topics h2 {
        margin-bottom: 10px;
    }

    .forum-topics a {
        text-decoration: none;
        color: #0a9396;
        font-weight: bold;
        margin: 0 6px;
    }

/* Recent Threads - Stacked Vertical */
.forum-threads {
    background: #ffffff;
    padding: 0;
    border-radius: 20px;
}

.thread {
    display: block;
    background: #e6fff1;
    color: #1d1d1d;
    padding: 15px;
    margin: 15px 0;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

    .thread h3 a {
        text-decoration: none;
        color: #005f73;
        font-size: 1.2em;
        transition: 0.3s ease;
    }

        .thread h3 a:hover {
            color: #0a9396;
        }

/* Breadcrumb */
.breadcrumb {
    font-size: 0.85rem;
    color: #555;
    margin-top: 6px;
}

/* Call to Action Button */
.cta-button {
    background: #ee9b00;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

    .cta-button:hover {
        background: #ca6702;
    }
