/* CSS Custom Properties for Dynamic Theming */
:root {
    --primary-bg-color: #000000;
    --secondary-bg-color: #000000;
    --header-bg-start: #000000;
    --header-bg-end: #2C2C2C;
    --footer-bg-start: #000000;
    --footer-bg-end: #2C2C2C;
    --card-bg-color: #252525;
    --text-color: white;
    --accent-color: #F6D02C;
    --border-color: white;
}

/* Base typography */
html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #f4f4f4;
    background: radial-gradient(circle, var(--primary-bg-color, rgb(0, 0, 0)), var(--secondary-bg-color, rgb(0, 0, 0)));
    color: var(--text-color, white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-color, white);
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

p, a {
    color: var(--text-color, white);
    margin: 0 0 1rem 0;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, var(--header-bg-start, #000000), var(--header-bg-end, #2C2C2C));
    padding: 1rem 0;
    text-align: center;
    z-index: 1000;
    box-sizing: border-box;
}

header .logo img {
    width: clamp(120px, 15vw, 180px);
    height: auto;
    max-height: 60px;
}

main {
    margin-top: clamp(100px, 15vh, 140px);
    margin-bottom: clamp(120px, 20vh, 160px);
    padding: clamp(1rem, 3vw, 2rem);
    text-align: center;
}

.content-image {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
}

/* Footer Styling */
footer {
    background: linear-gradient(to top, var(--footer-bg-start, #000000), var(--footer-bg-end, #2C2C2C));
    /*padding: clamp(0.75rem, 2vw, 1rem) clamp(0.25rem, 1vw, 0.5rem);*/
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

/* Footer Container */
footer div {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: clamp(0.5rem, 2vw, 1rem);
    align-items: center;
    justify-items: center;
    max-width: 100vw;
    overflow: hidden;
}

/* Footer with forum enabled (6 items) */
footer.footer-with-forum div {
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(0.25rem, 1.5vw, 0.75rem);
}

/* Footer Items */
footer div>div {
    width: 100%;
    text-align: center;
    padding: 0 clamp(0.25rem, 1vw, 0.5rem);
    display: flex;
    justify-content: center;
    align-items: center;
}

footer div img {
    width: clamp(60px, 8vw, 80px);
    height: clamp(60px, 8vw, 80px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Tablet styles */
@media (max-width: 1024px) and (min-width: 769px) {
    html {
        font-size: 15px;
    }
    
    .main-container {
        max-width: 95%;
        padding: 1.5rem;
    }
    
    .dynamic-section {
        gap: 1rem;
    }
    
    .dynamic-section-card {
        flex: 1 1 250px;
        padding: 1rem;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }
    
    .main-container {
        padding: 1rem;
        margin: clamp(80px, 12vh, 120px) 1rem clamp(80px, 10vh, 100px) 1rem;
        width: calc(100% - 2rem);
        max-width: none;
    }
    
    .dynamic-section {
        gap: 0.75rem;
    }
    
    .dynamic-section-card {
        flex: 1 1 100%;
        padding: 1rem;
    }
    
    .btn-primary {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .main-container {
        margin-bottom: clamp(70px, 8vh, 85px) !important;
    }
    
    .dynamic-section-card {
        padding: 0.75rem;
    }
    
    .hero-image {
        margin-bottom: 1.5rem;
    }
    
    .logo-section {
        margin: 2rem 0 1.5rem;
    }
    
    .middle-section {
        margin: 1.5rem auto;
        padding: 1rem;
    }
}

/* Animation for floating images */
@keyframes moveUpDown {
    0% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-30%);
        /* Moves the image up */
    }

    100% {
        transform: translateY(-50%);
        /* Moves back to original position */
    }
}

/* Animation for Item 3 footer icon */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Enhanced floating button styles */
.floating-btn {
    position: fixed;
    right: clamp(0.5rem, 2vw, 1rem);
    width: clamp(50px, 8vw, 70px);
    height: auto;
    filter: drop-shadow(0 0 5px var(--border-color, white));
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1001;
    border-radius: 0.5rem;
}

.floating-btn:hover {
    transform: translateY(-50%) scale(1.05);
    filter: drop-shadow(0 0 12px var(--accent-color, #F6D02C));
}

.floating-btn img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Card styling with dynamic colors */
.card {
    background: var(--card-bg-color, #252525);
    border: 1px solid var(--border-color, white);
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Dynamic sections (top/bottom columns) */
.dynamic-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 3vw, 2rem);
    justify-content: center;
    margin: clamp(1.5rem, 4vw, 3rem) auto;
    max-width: 1200px;
}

.dynamic-section-card {
    padding: clamp(1rem, 3vw, 1.5rem);
    background: var(--card-bg-color, #252525);
    border-radius: 0.75rem;
    border: 1px solid var(--border-color, white);
    transition: all 0.3s ease;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.dynamic-section-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dynamic-section h2 {
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color, white);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

.dynamic-section p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: var(--text-color, white);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Button styling with dynamic accent color */
.btn-primary {
    background-color: var(--accent-color, #F6D02C);
    color: #000;
    border: none;
    border-radius: 0.5rem;
    padding: clamp(0.75rem, 2vw, 1rem) clamp(2rem, 5vw, 3rem);
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1rem);
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--accent-color, #F6D02C);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #000;
    filter: brightness(1.1);
}

/* Main container styling */
.main-container {
    text-align: center;
    padding: 0 clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem);
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
    margin: clamp(100px, 10vh, 140px) auto clamp(120px, 20vh, 160px) auto;
}

/* Hero image styling */
.hero-image {
    max-width: 100%;
    height: auto;
    margin-bottom: clamp(2rem, 5vw, 3rem);
    border-radius: 0.5rem;
}

/* Logo section styling */
.logo-section {
    margin: clamp(3rem, 8vw, 4rem) 0 clamp(1.5rem, 4vw, 2rem);
}

.logo-section img {
    max-width: clamp(150px, 20vw, 250px);
    height: auto;
    max-height: 100px;
}

/* Middle section styling */
.middle-section {
    margin: clamp(2rem, 5vw, 3rem) auto;
    padding: clamp(1rem, 3vw, 2rem);
    max-width: 800px;
}

.middle-section h2 {
    margin-bottom: 1.5rem;
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.middle-section p {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Forum Styles */
.forum-nav {
    margin-bottom: 2rem;
    text-align: left;
}

.forum-nav .btn-primary {
    margin-right: 1rem;
    display: inline-block;
}

.forum-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.forum-message-success {
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--accent-color, #22c55e);
    color: var(--accent-color, #22c55e);
}

.forum-message-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--text-color, #ef4444);
    color: var(--text-color, #ef4444);
}

.forum-header {
    text-align: center;
    margin-bottom: 3rem;
}

.forum-header h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.forum-header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.8;
}

/* New Forum Header Row Layout */
.forum-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color, #eee);
}

.forum-header-row .forum-title {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--text-color, #333);
    text-align: center;
    flex: 1;
}

.forum-header-row .header-btn {
    flex-shrink: 0;
}

.forum-header-row .header-btn:first-child {
    margin-right: 1rem;
}

.forum-header-row .header-btn:last-child {
    margin-left: 1rem;
}

.forum-form {
    background: var(--card-bg-color, #252525);
    border: 1px solid var(--border-color, white);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 3rem;
}

.forum-form h2, .forum-form h3 {
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color, white);
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color, white);
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color, white);
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color, #F6D02C);
    box-shadow: 0 0 0 2px rgba(246, 208, 44, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.forum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.forum-card {
    background: var(--card-bg-color, #252525);
    border: 1px solid var(--border-color, white);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.forum-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.forum-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.forum-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.forum-card:hover .forum-card-image img {
    transform: scale(1.05);
}

.forum-card-content {
    padding: 1.5rem;
}

.forum-card-content h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    color: var(--text-color, white);
}

.forum-meta {
    font-size: 0.875rem;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.forum-reply-count {
    font-size: 0.875rem;
    color: var(--accent-color, #F6D02C);
    margin-bottom: 1rem;
}

.forum-no-content {
    text-align: center;
    opacity: 0.7;
    font-style: italic;
    margin: 3rem 0;
}

.forum-detail-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color, white);
}

.forum-detail-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.forum-detail h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.5rem;
}

.forum-replies {
    margin-bottom: 3rem;
}

.forum-replies h2 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color, white);
}

.forum-reply {
    background: var(--card-bg-color, #252525);
    border: 1px solid var(--border-color, white);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.forum-reply-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.forum-reply-meta {
    font-size: 0.875rem;
    opacity: 0.7;
    text-align: right;
}

.forum-no-replies {
    text-align: center;
    opacity: 0.7;
    font-style: italic;
    margin: 2rem 0;
}

.forum-reply-form .btn-primary {
    width: 100%;
    text-align: center;
}

/* Forum Mobile Responsive */
@media (max-width: 768px) {
    .forum-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .forum-form {
        padding: 1.5rem;
    }
    
    .forum-nav .btn-primary {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .forum-card-content {
        padding: 1rem;
    }
    
    .forum-detail-image {
        max-width: 250px;
    }
    
    /* Forum Preview Mobile - Keep in same row */
    .forum-preview-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
    }
    
    .forum-preview-header h2 {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
        flex: 1;
    }
    
    .forum-preview-btn {
        flex-shrink: 0;
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
    
    .forum-preview-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer with forum on mobile - keep 6 items in one row */
    footer.footer-with-forum div {
        grid-template-columns: repeat(6, 1fr);
        gap: clamp(0.1rem, 0.8vw, 0.4rem);
    }
    
    /* Adjust footer images on mobile for better fit with 6 items */
    footer.footer-with-forum div img {
        width: clamp(35px, 5.5vw, 55px);
        height: clamp(35px, 5.5vw, 55px);
    }
}

/* Forum Preview Section */
.forum-preview-section {
    margin: clamp(3rem, 6vw, 4rem) auto clamp(2rem, 4vw, 3rem);
    max-width: 1200px;
    padding: 0 clamp(1rem, 3vw, 2rem);
}

.forum-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--text-color, white);
}

.forum-preview-header h2 {
    margin: 0;
    color: var(--text-color, white);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.forum-preview-btn {
    flex-shrink: 0;
    margin-left: 1rem;
}

.forum-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: clamp(1rem, 3vw, 1.5rem);
}

.forum-preview-card {
    background: var(--card-bg-color, #252525);
    border: 1px solid var(--text-color, white);
    border-radius: 0.75rem;
    padding: clamp(1rem, 3vw, 1.5rem);
    transition: all 0.3s ease;
    position: relative;
}

.forum-preview-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.forum-preview-card h3 {
    margin: 0 0 1rem 0;
    color: var(--text-color, white);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.3;
}

.forum-preview-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    opacity: 0.8;
}

.forum-preview-replies {
    color: var(--accent-color, #F6D02C);
    font-weight: 600;
}

.forum-preview-date {
    color: var(--text-color, white);
}

.forum-preview-latest {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.5rem;
    padding: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
    border-left: 3px solid var(--accent-color, #F6D02C);
}

.forum-preview-latest strong {
    color: var(--accent-color, #F6D02C);
}

.forum-preview-link {
    display: inline-block;
    color: var(--accent-color, #F6D02C);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.forum-preview-link:hover {
    color: var(--text-color, white);
    border-bottom-color: var(--accent-color, #F6D02C);
    text-decoration: none;
}

.forum-preview-empty {
    text-align: center;
    padding: 3rem 1rem;
    opacity: 0.8;
}

.forum-preview-empty p {
    font-size: 1.1rem;
    margin: 0;
}

.forum-preview-empty a {
    color: var(--accent-color, #F6D02C);
    text-decoration: none;
    font-weight: 600;
}

.forum-preview-empty a:hover {
    color: var(--text-color, white);
    text-decoration: underline;
}

/* V3 Forum Styles - Modern Clean Design */
.forum-container {
    background-color: var(--card-bg-color, #fff);
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 0 clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 30px;
    color: var(--text-color, #333);
    max-width: 1200px;
    width: 100%;
    box-sizing: border-box;
}

.forum-container .forum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.forum-container .forum-title {
    font-size: 1.8rem;
    color: var(--text-color, #333);
    margin: 0;
}

.header-btn {
    background-color: var(--accent-color, #00b14f);
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.header-btn i {
    margin-right: 5px;
}

.header-btn:hover {
    background-color: var(--accent-color, #009943);
    filter: brightness(0.9);
}

.success-message,
.error-message {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.success-message {
    background-color: rgba(0, 177, 79, 0.1);
    color: var(--accent-color, #00b14f);
    border: 1px solid var(--accent-color, #00b14f);
}

.error-message {
    background-color: rgba(255, 82, 82, 0.1);
    color: var(--text-color, #ff5252);
    border: 1px solid var(--text-color, #ff5252);
}

.success-message i,
.error-message i {
    margin-right: 10px;
    font-size: 1.1rem;
    color: inherit;
}

.search-bar {
    display: flex;
    margin-bottom: 20px;
}

.search-bar input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--accent-color, #ddd);
    border-radius: 5px 0 0 5px;
    font-size: 0.9rem;
    outline: none;
    color: var(--text-color, #333);
    background: var(--card-bg-color, #fff);
}

.search-bar input:focus {
    border-color: var(--accent-color, #00b14f);
}

.search-bar input::placeholder {
    color: var(--text-color, #999);
    opacity: 0.7;
}

.search-bar button {
    background-color: var(--accent-color, #00b14f);
    color: #000;
    border: none;
    border-radius: 0 5px 5px 0;
    padding: 0 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-bar button:hover {
    background-color: var(--accent-color, #009943);
    filter: brightness(0.9);
}

.topic-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topic-card {
    background-color: var(--card-bg-color, #fff);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--text-color, #f0f0f0);
}

.topic-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.topic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.topic-title {
    font-size: 1.3rem;
    color: var(--text-color, #333);
    margin: 0 0 5px 0;
    flex: 1;
    text-align: left;
}

.topic-time {
    color: var(--text-color, #888);
    font-size: 0.8rem;
    margin-left: 15px;
    white-space: nowrap;
}

.topic-image {
    margin: 15px 0;
    text-align: center;
}

.topic-card-image {
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    max-height: 200px;
    object-fit: cover;
}

.topic-card p {
    color: var(--text-color, #555);
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: left;
}

.topic-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.topic-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 10px;
}

.author-name {
    font-size: 0.9rem;
    color: var(--text-color, #666);
}

.topic-stats {
    display: flex;
    gap: 15px;
}

.stat {
    color: var(--text-color, #666);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.stat i {
    margin-right: 5px;
}

.reply-btn {
    cursor: pointer;
    color: var(--accent-color, #00b14f);
    transition: color 0.3s;
}

.reply-btn:hover {
    color: var(--accent-color, #009943);
    filter: brightness(0.8);
}

.replies-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
}

.replies-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.reply-card {
    background-color: var(--card-bg-color, #f8f8f8);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color, #f0f0f0);
}

.reply-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.reply-author {
    display: flex;
    align-items: center;
}

.reply-time {
    font-size: 0.8rem;
    color: var(--text-color, #888);
}

.reply-content {
    color: var(--text-color, #555);
    line-height: 1.5;
    text-align: left;
}

.no-replies {
    padding: 15px;
    background-color: var(--secondary-bg-color, #f8f8f8);
    border-radius: 8px;
    color: var(--text-color, #666);
    text-align: center;
    font-style: italic;
}

.no-topics {
    padding: 30px;
    text-align: center;
    color: var(--text-color, #666);
    background-color: var(--secondary-bg-color, #f8f8f8);
    border-radius: 10px;
    font-style: italic;
}

.reply-form {
    margin-top: 15px;
}

.reply-textarea {
    width: 90%;
    min-height: 100px;
    padding: 12px 15px;
    border: 1px solid var(--text-color, #000);
    border-radius: 5px;
    resize: vertical;
    font-family: inherit;
    font-size: 0.9rem;
    margin-bottom: 15px;
    outline: none;
    color: var(--text-color, #333);
    background: var(--card-bg-color, #fff);
}

.reply-textarea::placeholder {
    color: var(--text-color, #000);
}

.reply-textarea:focus {
    border-color: var(--accent-color, #00b14f);
}

.reply-submit-btn {
    background-color: var(--accent-color, #00b14f);
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.reply-submit-btn:hover {
    background-color: var(--accent-color, #009943);
    filter: brightness(0.9);
}

/* New Topic Modal */
.new-topic-form {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1100;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.new-topic-form.active {
    display: flex;
    opacity: 1;
}

.form-container {
    background-color: var(--card-bg-color, #fff);
    width: 90%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    padding: 30px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.new-topic-form.active .form-container {
    transform: scale(1);
}

.close-form {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color, #666);
    cursor: pointer;
}

.form-title {
    margin-bottom: 20px;
    color: var(--text-color, #333);
    font-size: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-color, #555);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    color: var(--text-color, #333);
    background: var(--card-bg-color, #fff);
}

.form-control:focus {
    border-color: var(--accent-color, #00b14f);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    background-color: var(--accent-color, #00b14f);
    color: #000;
    border: none;
    border-radius: 5px;
    padding: 12px 15px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.submit-btn:hover {
    background-color: var(--accent-color, #009943);
    filter: brightness(0.9);
}

/* Override nav styles for forum container */
.forum-container .forum-nav {
    margin-bottom: 2rem;
    text-align: left;
}

.forum-container .forum-nav .btn-primary {
    margin-right: 1rem;
    display: inline-block;
}

/* Override form styles within forum container */
.forum-container .forum-form {
    background: var(--secondary-bg-color, #f9f9f9);
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 0.75rem;
    padding: 2rem;
    margin-bottom: 3rem;
}

.forum-container .forum-form h2, 
.forum-container .forum-form h3 {
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-color, #333);
}

.forum-container .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color, #333);
    font-weight: 600;
}

.forum-container .form-group input[type="text"],
.forum-container .form-group input[type="file"],
.forum-container .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color, #ddd);
    border-radius: 0.5rem;
    background: var(--card-bg-color, #fff);
    color: var(--text-color, #333);
    font-size: 1rem;
    box-sizing: border-box;
}

.forum-container .form-group input[type="text"]:focus,
.forum-container .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color, #00b14f);
    box-shadow: 0 0 0 2px rgba(0, 177, 79, 0.2);
}

/* Mobile Forum Responsive - V3 Style */
@media (max-width: 768px) {
    
    .forum-container .forum-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .header-btn {
        text-align: center;
        justify-content: center;
    }
    
    .topic-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .topic-time {
        margin-left: 0;
    }
    
    .topic-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
    
    .topic-author {
        flex-shrink: 0;
    }
    
    .topic-stats {
        flex-shrink: 0;
        gap: 8px;
    }
    
    .topic-stats .stat {
        font-size: 0.8rem;
    }
    
    .author-avatar {
        width: 25px;
        height: 25px;
    }
    
    .author-name {
        font-size: 0.8rem;
    }
    
    .search-bar {
        flex-direction: row;
        gap: 0;
    }
    
    .search-bar input {
        border-radius: 5px 0 0 5px;
    }
    
    .search-bar button {
        border-radius: 0 5px 5px 0;
        padding: 12px 15px;
    }
    
    .forum-container .forum-nav .btn-primary {
        display: block;
        margin: 0.5rem 0;
        text-align: center;
    }
    
    /* Mobile Forum Header Row - Keep in same row but more compact */
    .forum-header-row {
        padding: 0.75rem 0;
        gap: 0.5rem;
    }
    
    .forum-header-row .header-btn {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
    
    .forum-header-row .header-btn:first-child {
        margin-right: 0.5rem;
    }
    
    .forum-header-row .header-btn:last-child {
        margin-left: 0.5rem;
    }
    
    .forum-header-row .forum-title {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }
    
    /* Mobile Forum Cards - Match Hero Image Style */
    .topic-card {
        border-radius: 0.5rem;
    }
    
    .forum-card {
        border-radius: 0.5rem;
    }
    
    .forum-container {
        border-radius: 0.5rem;
        padding: 1rem;
    }
    
    .reply-card {
        border-radius: 0.5rem;
    }
    
    .forum-preview-card {
        border-radius: 0.5rem;
    }
    
    .form-container {
        margin: 20px;
        width: calc(100% - 40px);
        padding: 20px;
        border-radius: 20px;
    }
}