/* Nigeria Forums Page Styles */
/* Standardized styling matching Products page template */

/* ============================================
   Full Width Forum Layout - Remove Constraints
   ============================================ */

/* Remove container constraints for forum pages */
#home .page-margin,
#forumdisplay .page-margin,
#showthread .page-margin {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}

/* Remove container constraints from forum content wrapper - dynamic flow - FIXED PADDING */
.forum-content-col .page-margin {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    padding-left: 0 !important; /* No padding - parent column handles it */
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

/* page-margin inner content - wow_content handles its own padding */
.forum-content-col .page-margin > * {
    /* Individual elements handle their own padding (e.g., wow_content has padding: 15px) */
    box-sizing: border-box;
}

/* Remove max-width constraints from wow_content in forum */
.forum-content-col .wow_content {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Remove Bootstrap container padding constraints - allow dynamic flow - FIXED FOR STICKY */
.forum-layout-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    display: flex;
    flex-wrap: nowrap !important; /* Prevent sidebar from wrapping to bottom */
    align-items: flex-start; /* Critical for sticky sidebar positioning */
}

/* Remove Bootstrap gutter padding from forum columns - handled individually */
.forum-layout-row > [class*="col-"] {
    /* Padding handled individually per column class */
}

/* Forum content column (col-md-9 = 75%) - flow dynamically - FIXED PADDING */
.forum-content-col {
    width: 75% !important;
    max-width: 75% !important;
    min-width: 0 !important;
    padding-left: 15px !important; /* Minimal padding for readability */
    padding-right: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    flex: 0 0 75% !important; /* Prevent flex shrinking/growing */
}

/* Forum right sidebar column (col-md-3 = 25%) - FIXED PADDING & STICKY POSITIONING */
.forum-right-sidebar-col {
    width: 25% !important;
    max-width: 25% !important;
    min-width: 0 !important;
    padding-left: 15px !important; /* Minimal padding for spacing */
    padding-right: 0 !important; /* No right padding - edge of page */
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
    position: -webkit-sticky !important; /* Safari support */
    position: sticky !important;
    top: 20px !important;
    align-self: flex-start !important; /* Important for sticky to work */
    height: fit-content !important;
    max-height: calc(100vh - 40px) !important; /* Prevent overflow */
    overflow-y: auto !important; /* Allow scrolling if content is too tall */
    z-index: 2 !important;
    flex: 0 0 25% !important; /* Prevent flex shrinking/growing - keep sidebar in place */
}

/* Ensure parent row allows sticky positioning */
.forum-layout-row {
    display: flex;
    flex-wrap: nowrap !important; /* Prevent sidebar from wrapping to bottom */
    align-items: flex-start; /* Important for sticky sidebar */
    min-height: 100vh; /* Ensure parent has height for sticky to work */
}

/* Add padding only to direct children that need it - avoid double padding */
.forum-content-col > .page-margin {
    /* page-margin already has its own padding - don't double it */
}

/* Elements that need padding but don't have .page-margin wrapper */
.forum-content-col > .forum-hero-banner,
.forum-content-col > .forum-management-section,
.forum-content-col > .forum-section:not(.page-margin) {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
}

/* Override any parent container constraints for forum pages */
body .forum-content-col,
body #home .page-margin,
body #forumdisplay .page-margin,
body #showthread .page-margin {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Ensure forum pages break out of any container constraints - match about-us pattern */
#home,
#forumdisplay,
#showthread {
    width: 100% !important;
    max-width: 100% !important;
}

/* Remove any wrapper constraints */
body > .container,
body > #content,
body > .main {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Forum page-specific wrapper - minimize white space */
#home .page-margin,
#forumdisplay .page-margin,
#showthread .page-margin {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Reduce padding on nested page-margin divs inside forum content - NO DOUBLE PADDING */
.forum-content-col .page-margin {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    padding-left: 0 !important; /* No padding - parent column handles it */
    padding-right: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* First page-margin in content should have top margin */
.forum-content-col .page-margin:first-child {
    margin-top: 15px !important;
}

/* wow_content - NO EXCESSIVE PADDING */
.forum-content-col .wow_content {
    padding: 15px !important;
    margin-bottom: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Remove double padding from nested wow_content inside page-margin */
.forum-content-col .page-margin .wow_content {
    padding: 15px !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Remove any container padding from parent elements */
body > .container,
body > #content > .container,
body .main > .container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Ensure forum sections use full width - dynamic flow */
.forum-section,
.forum-table-wrapper,
.forums-section-table,
.threads-table,
.popular-forums-table {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important; /* Remove minimum width constraints */
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
}

/* Forum Page - Standard layout with sidebar (uses Bootstrap grid) */

/* Hero Banner - Nigeria Green/White Theme */
.forum-hero-banner {
    background: linear-gradient(135deg, #0f5132 0%, #198754 50%, #0f5132 100%);
    border-radius: 18px;
    padding: 48px 38px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.forum-hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 55%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 55%);
    pointer-events: none;
}

.forum-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
    max-width: 640px;
    margin: 0 auto;
}

.forum-hero-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.forum-hero-content .hero-tagline {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.forum-hero-content .hero-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.92);
}

.forum-hero-content .hero-ctas {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.forum-hero-content .hero-ctas .btn {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.forum-hero-content .hero-ctas .btn-primary {
    background-color: #ffffff;
    color: #0f5132;
    border: 2px solid #ffffff;
}

.forum-hero-content .hero-ctas .btn-primary:hover {
    background-color: #f7faf9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.forum-hero-content .hero-ctas .btn-outline-primary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.forum-hero-content .hero-ctas .btn-outline-primary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Management Links Section */
.forum-management-section {
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.forum-management-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 20px;
    background-color: #f7faf9;
    border-radius: 8px;
    border: 1px solid rgba(16, 50, 29, 0.1);
}

.forum-management-links .btn {
    padding: 10px 25px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.forum-management-links .btn-primary {
    background-color: #198754;
    color: #ffffff;
    border: 2px solid #198754;
}

.forum-management-links .btn-primary:hover {
    background-color: #0f5132;
    border-color: #0f5132;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(15, 81, 50, 0.2);
}

.forum-management-links .btn-outline-primary {
    background-color: #ffffff;
    color: #198754;
    border: 2px solid #198754;
}

.forum-management-links .btn-outline-primary:hover {
    background-color: #198754;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Section Styling */
.forum-section {
    margin-bottom: 40px;
}

.forum-section-header {
    margin-bottom: 30px;
    text-align: center;
}

.forum-section-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #10321d;
    margin-bottom: 10px;
}

.forum-section-header p {
    font-size: 16px;
    color: #516371;
    line-height: 1.5;
}

/* Benefits Grid */
.forum-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.forum-benefit-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    border: 1px solid rgba(16, 50, 29, 0.1);
    box-shadow: 0 2px 8px rgba(16, 50, 29, 0.05);
    transition: all 0.3s ease;
}

.forum-benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(16, 50, 29, 0.15);
    border-color: rgba(25, 135, 84, 0.3);
}

.forum-benefit-card-body {
    text-align: center;
}

.forum-benefit-card .benefit-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.forum-benefit-card h3 {
    font-size: 20px;
    font-weight: 650;
    color: #10321d;
    margin-bottom: 10px;
}

.forum-benefit-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #46555f;
    margin: 0;
}

/* Statistics Grid */
.forum-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.forum-stat-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid rgba(16, 50, 29, 0.1);
    box-shadow: 0 2px 8px rgba(16, 50, 29, 0.05);
    transition: all 0.3s ease;
}

.forum-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(16, 50, 29, 0.15);
    border-color: rgba(25, 135, 84, 0.3);
}

.forum-stat-card .stat-value {
    font-size: 28px;
    font-weight: 700;
    color: #198754;
    margin-bottom: 8px;
    display: block;
}

.forum-stat-card .stat-label {
    font-size: 13px;
    color: #516371;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Featured Discussions Grid */
.forum-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.forum-featured-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(16, 50, 29, 0.1);
    box-shadow: 0 2px 8px rgba(16, 50, 29, 0.05);
    transition: all 0.3s ease;
}

.forum-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(16, 50, 29, 0.15);
    border-color: rgba(25, 135, 84, 0.3);
}

.forum-featured-card-body h3 a:hover {
    color: #198754 !important;
}

/* Forum Categories Grid */
.forum-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.forum-category-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(16, 50, 29, 0.1);
    box-shadow: 0 2px 8px rgba(16, 50, 29, 0.05);
    transition: all 0.3s ease;
}

.forum-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(16, 50, 29, 0.15);
    border-color: rgba(25, 135, 84, 0.3);
}

.forum-category-card-body h3 {
    font-size: 20px;
    font-weight: 650;
    color: #10321d;
    margin-bottom: 10px;
}

.forum-category-card-body p {
    font-size: 15px;
    line-height: 1.5;
    color: #46555f;
    margin-bottom: 15px;
}

/* Recent Activity List */
.forum-recent-list {
    margin-top: 30px;
}

.forum-recent-item {
    display: flex;
    gap: 15px;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(16, 50, 29, 0.1);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.forum-recent-item:hover {
    box-shadow: 0 4px 12px rgba(16, 50, 29, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
    transform: translateX(5px);
}

.forum-recent-avatar {
    flex-shrink: 0;
}

.forum-recent-content {
    flex: 1;
}

.forum-recent-content h4 a:hover {
    color: #198754 !important;
}

/* How It Works */
.forum-how-it-works {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.forum-step-card {
    text-align: center;
    padding: 25px;
    background-color: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(16, 50, 29, 0.1);
    box-shadow: 0 2px 8px rgba(16, 50, 29, 0.05);
    transition: all 0.3s ease;
}

.forum-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(16, 50, 29, 0.15);
    border-color: rgba(25, 135, 84, 0.3);
}

.forum-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #198754;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 15px;
}

.forum-step-card h3 {
    font-size: 20px;
    font-weight: 650;
    color: #10321d;
    margin-bottom: 10px;
}

.forum-step-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #46555f;
    margin: 0;
}

/* FAQ Section */
.forum-faq {
    margin-top: 30px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    clear: both !important;
    overflow: visible !important;
    float: none !important;
    display: block !important;
    position: relative !important;
}

.forum-faq-item {
    background-color: #ffffff !important;
    border-radius: 12px;
    padding: 25px !important;
    margin-bottom: 20px !important;
    border: 1px solid rgba(16, 50, 29, 0.1);
    box-shadow: 0 2px 8px rgba(16, 50, 29, 0.05);
    transition: all 0.3s ease;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
    clear: both !important;
    overflow: visible !important;
    display: block !important;
    position: relative !important;
}

.forum-faq-item:hover {
    box-shadow: 0 4px 12px rgba(16, 50, 29, 0.1);
    border-color: rgba(25, 135, 84, 0.2);
}

.forum-faq-item h3 {
    font-size: 20px;
    font-weight: 650;
    color: #10321d;
    margin-bottom: 10px;
}

.forum-faq-item p {
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #46555f !important;
    margin: 0 0 15px 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 0 !important;
    clear: both !important;
    width: 100% !important;
    float: none !important;
    position: relative !important;
}

/* Location Filters */
.forum-location-filters {
    margin-top: 20px;
}

.location-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.location-filter-item {
    width: 100%;
}

.location-filter-item label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #10321d;
}

.location-filter-item select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(16, 50, 29, 0.2);
    border-radius: 8px;
    font-size: 15px;
    color: #10321d;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2310321d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.location-filter-item select:hover {
    border-color: rgba(16, 50, 29, 0.4);
    box-shadow: 0 2px 4px rgba(16, 50, 29, 0.1);
}

.location-filter-item select:focus {
    outline: none;
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

/* Popular Locations */
.popular-locations {
    margin-top: 25px;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.location-tag {
    display: inline-block;
    padding: 10px 18px;
    background-color: #f7faf9;
    color: #10321d;
    border: 1px solid rgba(16, 50, 29, 0.2);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.location-tag:hover {
    background-color: #198754;
    color: #ffffff;
    border-color: #198754;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
}

/* ============================================
   Collapsible Sidebar (Nigeria Green/White Theme)
   ============================================ */

/* Forum Layout - Left Sidebar + Right Content */
.forum-layout-row {
    margin: 0;
    width: 100%;
    position: relative;
}

/* Right Sidebar Styles (Babia.to Style) */
.forum-right-sidebar {
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
}

.forum-sidebar-widget {
    background: #ffffff;
    border: 1px solid rgba(16, 50, 29, 0.1);
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.forum-widget-header {
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
    padding: 12px 15px;
    border-bottom: 2px solid #0f5132;
}

.forum-widget-header h4 {
    margin: 0;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.forum-widget-content {
    padding: 0;
}

.forum-widget-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(16, 50, 29, 0.05);
    transition: background-color 0.2s ease;
}

.forum-widget-item:last-child {
    border-bottom: none;
}

.forum-widget-item:hover {
    background-color: #f7faf9;
}

.forum-widget-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.forum-widget-title {
    font-size: 13px;
    font-weight: 600;
    color: #10321d;
    line-height: 1.4;
    margin-bottom: 6px;
}

.forum-widget-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #516371;
}

.forum-widget-author,
.forum-widget-time,
.forum-widget-stats,
.forum-widget-views {
    font-size: 11px;
    color: #516371;
}

.forum-widget-empty {
    padding: 20px 15px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

.forum-widget-actions {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.forum-widget-actions .btn {
    width: 100%;
    text-align: center;
}

/* Forum Statistics Widget Styles */
.forum-stat-item {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(16, 50, 29, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forum-stat-item:last-child {
    border-bottom: none;
}

.forum-stat-label {
    font-size: 13px;
    color: #516371;
    font-weight: 500;
}

.forum-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #198754;
}

.forum-stat-latest {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.forum-stat-member {
    display: flex;
    align-items: center;
    width: 100%;
}

.forum-stat-member-link {
    color: #198754;
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
}

.forum-stat-member-link:hover {
    text-decoration: underline;
}

/* Donation Widget Styles */
.forum-donation-widget .forum-widget-content {
    padding: 15px;
}

.forum-donation-month {
    font-size: 14px;
    font-weight: 700;
    color: #10321d;
    margin-bottom: 12px;
}

.forum-donation-progress {
    margin-bottom: 12px;
}

.forum-donation-progress-bar {
    width: 100%;
    height: 8px;
    background-color: #e0efe4;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.forum-donation-progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.forum-donation-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #516371;
}

.forum-donation-percent {
    font-weight: 700;
    color: #198754;
}

.forum-donation-amount {
    font-size: 11px;
}

.forum-donation-timer {
    font-size: 11px;
    color: #999;
    margin-top: 8px;
    text-align: center;
}

/* Members Online Grid */
.forum-members-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.forum-member-avatar {
    display: inline-block;
    transition: transform 0.2s ease;
}

.forum-member-avatar:hover {
    transform: scale(1.1);
}

.forum-member-avatar img {
    border: 2px solid #e0efe4;
    transition: border-color 0.2s ease;
}

.forum-member-avatar:hover img {
    border-color: #198754;
}

.forum-members-more {
    text-align: center;
    color: #516371;
    font-size: 12px;
    padding: 8px 0;
}

.forum-online-stats {
    padding: 10px 15px;
    background: #f7faf9;
    border-top: 1px solid rgba(16, 50, 29, 0.1);
    font-size: 12px;
    color: #516371;
    text-align: center;
}

.forum-widget-description {
    padding: 15px;
    color: #516371;
    font-size: 13px;
    line-height: 1.5;
}

/* Ensure sidebar content fills the width and removes constraints */
.forum-sidebar-col .post_prnt,
.forum-sidebar-col > div,
.forum-sidebar-col .left-sidebar,
.forum-sidebar-col .wo_new_left_side {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border: none !important;
}

/* Remove any borders, padding, or constraints on sidebar inner elements */
.forum-sidebar-col .left-sidebar ul,
.forum-sidebar-col .wo_new_left_side ul {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.forum-sidebar-col .left-sidebar li,
.forum-sidebar-col .wo_new_left_side li {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.forum-sidebar-col .left-sidebar li a,
.forum-sidebar-col .wo_new_left_side li a {
    width: 100% !important;
    max-width: 100% !important;
    padding: 8px 10px !important;
    box-sizing: border-box !important;
    display: block !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* Remove any borders or constraints on sidebar elements */
.forum-sidebar-col * {
    max-width: 100% !important;
    box-sizing: border-box;
}

/* Ensure content column uses full Bootstrap width */
.forum-content-col.singlecol {
    padding-left: 15px;
    box-sizing: border-box;
    width: 83.33333333% !important; /* Force col-md-10 width */
    min-width: 83.33333333%;
}

/* Ensure forum sections don't break layout */
.forum-page {
    width: 100%;
    max-width: 100%;
    clear: both;
}

/* Clear floats */
.forum-layout-row::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive Design - Match about-us page breakpoints */
/* Tablet and smaller (991px = Bootstrap md breakpoint) */
@media (max-width: 991px) {
    /* Stack content and sidebar on tablets and smaller - FIXED PADDING */
    .forum-layout-row {
        flex-wrap: wrap !important; /* Allow wrapping on mobile/tablet */
    }
    
    .forum-content-col {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex: 0 0 100% !important; /* Full width on mobile */
    }

    .forum-right-sidebar-col {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        position: relative !important; /* Free-fall on mobile - not sticky */
        top: auto !important;
        margin-top: 20px;
        max-height: none !important; /* Remove height constraint on mobile */
        overflow-y: visible !important; /* Remove scroll on mobile */
        flex: 0 0 100% !important; /* Full width on mobile */
    }
    
    /* Members grid responsive */
    .forum-members-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Remove page-margin constraints - FIXED */
    #home .page-margin,
    #forumdisplay .page-margin,
    #showthread .page-margin {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .forum-content-col .page-margin {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Members grid on mobile */
    .forum-members-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Hero banner adjustments - match about-us */
    .forum-hero-banner {
        padding: 30px 18px;
        margin-left: 0;
        margin-right: 0;
        border-radius: 12px;
    }

    .forum-hero-content h1 {
        font-size: 26px;
    }

    .forum-hero-content .hero-tagline {
        font-size: 18px;
    }

    .forum-hero-content .hero-description {
        font-size: 15px;
    }

    /* Management links stack */
    .forum-management-links {
        flex-direction: column;
        gap: 10px;
    }

    .forum-management-links .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .forum-hero-banner {
        padding: 24px 15px;
    }

    .forum-hero-content h1 {
        font-size: 22px;
    }

    .forum-hero-content .hero-tagline {
        font-size: 16px;
    }

    .forum-hero-content .hero-description {
        font-size: 14px;
    }

    .forum-benefits-grid {
        grid-template-columns: 1fr;
    }

    .forum-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .forum-featured-grid {
        grid-template-columns: 1fr;
    }

    .forum-categories-grid {
        grid-template-columns: 1fr;
    }

    /* Ensure tables are responsive with horizontal scroll */
    .forum-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-left: 0;
        margin-right: 0;
    }

    .forums-section-table,
    .threads-table,
    .popular-forums-table {
        min-width: 600px; /* Allow horizontal scroll on small screens */
    }

    .forum-how-it-works {
        grid-template-columns: 1fr;
    }

    .forum-management-links {
        flex-direction: column;
    }

    .forum-management-links .btn {
        width: 100%;
    }

    /* Hide sidebar on mobile */
    .forum-sidebar-col {
        display: none;
    }

    .forum-content-col {
        width: 100% !important;
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .forum-sidebar-toggle-btn {
        top: 70px;
        left: 10px;
        width: 40px;
        height: 40px;
    }

    .forum-content-col.forum-content-full {
        padding-left: 60px !important;
    }
}

@media (max-width: 480px) {
    .forum-stats-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Phase 1: Babia.to Design Integration Styles
   ============================================ */

/* Thread Status Badges (Phase 1.1) - Nigeria Green/White Theme */
.thread-status-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    line-height: 1.2;
    white-space: nowrap;
}

.thread-badge-new {
    background-color: #198754;
    color: #ffffff;
    border: 1px solid #0f5132;
}

.thread-badge-hot {
    background-color: #dc3545;
    color: #ffffff;
}

.thread-badge-solved {
    background-color: #198754;
    color: #ffffff;
    border: 1px solid #0f5132;
}

.thread-badge-closed {
    background-color: #6c757d;
    color: #ffffff;
}

.thread-badge-pinned {
    background-color: #ffffff;
    color: #198754;
    border: 2px solid #198754;
}

.topic_icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    min-height: 24px;
}

.topic_icon .thread-status-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Enhanced User Display (Phase 1.3) */
.thread-author-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    vertical-align: middle;
}

.thread-author-avatar {
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(16, 50, 29, 0.1);
    flex-shrink: 0;
}

.verified-badge {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #198754;
    color: #ffffff;
    border-radius: 50%;
    font-size: 11px;
    line-height: 16px;
    text-align: center;
    margin-left: 4px;
    vertical-align: middle;
    font-weight: 700;
}

/* Collapsible Forum Sections (Phase 1.2) */
.forum-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(135deg, #f7faf9 0%, #ffffff 100%);
    border: 2px solid #198754;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    user-select: none;
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.1);
}

.forum-section-header:hover {
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
    border-color: #0f5132;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.forum-section-header:hover .section-title,
.forum-section-header:hover .section-stats,
.forum-section-header:hover .section-toggle-icon {
    color: #ffffff;
}

.forum-section-header.collapsed {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}

.forum-section-header .section-toggle-icon {
    font-size: 14px;
    color: #198754;
    transition: transform 0.3s ease, color 0.3s ease;
    margin-right: 12px;
    flex-shrink: 0;
    font-weight: 700;
}

.forum-section-header.collapsed .section-toggle-icon {
    transform: rotate(-90deg);
}

.forum-section-header .section-title {
    flex: 1;
    font-size: 18px;
    font-weight: 650;
    color: #10321d;
}

.forum-section-header .section-stats {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
}

.forum-section-header .section-stats .stat-item {
    font-size: 13px;
    color: #516371;
}

.forum-section-header .section-stats .stat-item strong {
    color: #198754;
    font-weight: 700;
    margin-right: 4px;
}

.forum-section-content {
    border: 1px solid rgba(16, 50, 29, 0.1);
    border-top: none;
    border-radius: 0 0 8px 8px;
    background-color: #ffffff;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    max-height: 5000px;
    opacity: 1;
}

.forum-section-content.collapsed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    border: none;
    padding: 0;
    margin: 0;
}

/* Responsive adjustments for collapsible sections */
@media (max-width: 768px) {
    .forum-section-header {
        flex-wrap: wrap;
        padding: 12px 15px;
    }

    .forum-section-header .section-title {
        font-size: 16px;
        width: 100%;
        margin-bottom: 8px;
    }

    .forum-section-header .section-stats {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .forum-section-header .section-stats .stat-item {
        font-size: 12px;
    }
}

/* ============================================
   Phase 2: Table Layout (Babia.to Design Integration)
   ============================================ */

/* Thread Table Wrapper */
.forum-table-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(16, 50, 29, 0.1);
    overflow-x: auto;
    margin-bottom: 20px;
}

.threads-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.threads-table thead {
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
    border-bottom: 3px solid #0f5132;
}

.threads-table thead th {
    color: #ffffff !important;
}

.threads-table thead th {
    padding: 15px 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #10321d;
    text-align: left;
    border: none;
}

.threads-table thead th.text-center {
    text-align: center;
}

.threads-table tbody tr {
    border-bottom: 1px solid rgba(16, 50, 29, 0.05);
    transition: background-color 0.2s ease;
}

.threads-table tbody tr:hover {
    background-color: #f7faf9;
}

.threads-table tbody tr:last-child {
    border-bottom: none;
}

.threads-table tbody td {
    padding: 15px 12px;
    vertical-align: middle;
    border: none;
}

.threads-table .thread-status-col {
    text-align: center;
}

.threads-table .thread-title-col {
    min-width: 300px;
}

/* Remove title truncation - Show full titles */
.threads-table .thread-title-col .ftitle,
.forums-section-table .forum-name-col .ftitle,
.forum-section-content .reply_title {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    text-overflow: unset !important;
    max-width: none !important;
}

.threads-table .thread-author-col {
    min-width: 150px;
}

.threads-table .thread-author-cell {
    display: flex;
    align-items: center;
}

.threads-table .thread-replies-col,
.threads-table .thread-views-col {
    text-align: center;
    font-size: 14px;
}

.threads-table .thread-lastpost-col {
    font-size: 12px;
}

/* Responsive Table Layout */
@media (max-width: 992px) {
    .threads-table thead th.thread-author-col,
    .threads-table tbody td.thread-author-col {
        display: none;
    }
}

@media (max-width: 768px) {
    .forum-table-wrapper {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .threads-table {
        font-size: 13px;
    }

    .threads-table thead th {
        padding: 12px 8px;
        font-size: 11px;
    }

    .threads-table tbody td {
        padding: 12px 8px;
    }

    .threads-table thead th.thread-lastpost-col,
    .threads-table tbody td.thread-lastpost-col {
        display: none;
    }

    .threads-table .thread-title-col {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .threads-table thead th.thread-views-col,
    .threads-table tbody td.thread-views-col {
        display: none;
    }

    .threads-table .thread-title-col {
        min-width: 150px;
    }
}

/* ============================================
   Phase 3: Popular Forums & Tabbed Interface
   ============================================ */

/* Popular Forums Table */
.popular-forums-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.popular-forums-table thead {
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
    border-bottom: 3px solid #0f5132;
}

.popular-forums-table thead th {
    color: #ffffff !important;
}

.popular-forums-table thead th {
    padding: 15px 12px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #10321d;
    text-align: left;
    border: none;
}

.popular-forums-table tbody tr {
    border-bottom: 1px solid rgba(16, 50, 29, 0.05);
    transition: background-color 0.2s ease;
}

.popular-forums-table tbody tr:hover {
    background-color: #f7faf9;
}

.popular-forums-table tbody td {
    padding: 15px 12px;
    vertical-align: middle;
    border: none;
}

/* Forum Activity Tabs - Nigeria Green/White Theme */
.forum-activity-tabs {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    border-bottom: 2px solid #198754;
    background: linear-gradient(to bottom, #f7faf9 0%, #ffffff 100%);
}

.forum-activity-tabs .nav-item {
    margin-right: 0;
}

.forum-activity-tabs .nav-link {
    display: block;
    padding: 12px 20px;
    color: #516371;
    text-decoration: none;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.forum-activity-tabs .nav-link:hover {
    color: #198754;
    background-color: rgba(25, 135, 84, 0.05);
    border-bottom-color: rgba(25, 135, 84, 0.3);
}

.forum-activity-tabs .nav-link.active {
    color: #198754;
    border-bottom-color: #198754;
    background-color: transparent;
}

.forum-activity-content {
    margin-top: 0;
}

.forum-activity-content .tab-pane {
    display: none;
}

.forum-activity-content .tab-pane.active {
    display: block;
}

.forum-activity-content .tab-pane.fade {
    opacity: 0;
    transition: opacity 0.15s linear;
}

.forum-activity-content .tab-pane.fade.show {
    opacity: 1;
}

/* Responsive Tabs */
@media (max-width: 768px) {
    .forum-activity-tabs {
        flex-direction: column;
        border-bottom: none;
    }

    .forum-activity-tabs .nav-link {
        border-bottom: 1px solid rgba(16, 50, 29, 0.1);
        border-left: 3px solid transparent;
        border-right: none;
    }

    .forum-activity-tabs .nav-link.active {
        border-left-color: #198754;
        border-bottom-color: rgba(16, 50, 29, 0.1);
    }

    .popular-forums-table {
        font-size: 13px;
    }

    .popular-forums-table thead th,
    .popular-forums-table tbody td {
        padding: 10px 8px;
        font-size: 12px;
    }
}

/* ============================================
   Babia.to Style: Forum Sections Table
   ============================================ */

/* Forum Sections Table (within collapsible sections) */
.forums-section-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    background-color: #ffffff;
}

.forums-section-table thead {
    background: linear-gradient(135deg, #198754 0%, #0f5132 100%);
    border-bottom: 3px solid #0f5132;
}

.forums-section-table thead th {
    color: #ffffff !important;
}

.forums-section-table thead th {
    padding: 12px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #10321d;
    text-align: left;
    border: none;
}

.forums-section-table thead th.text-center {
    text-align: center;
}

.forums-section-table tbody tr.forum-row {
    border-bottom: 1px solid rgba(16, 50, 29, 0.05);
    transition: background-color 0.2s ease;
}

.forums-section-table tbody tr.forum-row:hover {
    background-color: #f7faf9;
}

.forums-section-table tbody td {
    padding: 15px;
    vertical-align: middle;
    border: none;
}

.forums-section-table .forum-icon-col {
    text-align: center;
}

.forums-section-table .forum-new-badge {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #198754;
    border-radius: 50%;
    font-size: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.forums-section-table .forum-name-col {
    min-width: 300px;
}

.forums-section-table .forum-name-col .ftitle {
    text-decoration: none;
    transition: color 0.2s ease;
}

.forums-section-table .forum-name-col .ftitle:hover {
    color: #198754 !important;
}

.forums-section-table .forum-topics-col,
.forums-section-table .forum-posts-col {
    text-align: center;
    font-size: 14px;
}

.forums-section-table .forum-lastpost-col {
    font-size: 12px;
}

.forums-section-table .forum-lastpost-col .reply_title {
    text-decoration: none;
    transition: color 0.2s ease;
}

.forums-section-table .forum-lastpost-col .reply_title:hover {
    color: #198754 !important;
}

.forums-section-table .forum-lastpost-col .reply_user {
    text-decoration: none;
    transition: color 0.2s ease;
}

.forums-section-table .forum-lastpost-col .reply_user:hover {
    color: #0f5132 !important;
    text-decoration: underline;
}

/* Remove old section-list div styling that conflicts */
.wow_forum_sections .section-list {
    display: none; /* Hide old div-based layout */
}

.wow_forum_sections .f_topics {
    padding: 0;
    margin: 0;
}

/* Responsive Forum Sections Table */
@media (max-width: 992px) {
    .forums-section-table thead th.forum-lastpost-col,
    .forums-section-table tbody td.forum-lastpost-col {
        display: none;
    }
}

@media (max-width: 768px) {
    .forums-section-table {
        font-size: 13px;
    }

    .forums-section-table thead th {
        padding: 10px 8px;
        font-size: 11px;
    }

    .forums-section-table tbody td {
        padding: 12px 8px;
    }

    .forums-section-table thead th.forum-posts-col,
    .forums-section-table tbody td.forum-posts-col {
        display: none;
    }

    .forums-section-table .forum-name-col {
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .forums-section-table thead th.forum-topics-col,
    .forums-section-table tbody td.forum-topics-col {
        display: none;
    }

    .forums-section-table .forum-name-col {
        min-width: 150px;
    }
}

