﻿
.forum {
    padding: 24px 0;
}

.forum-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

/* Left navigation */
.forum-left {
    position: sticky;
    top: 90px;
}

.forum-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .forum-nav .nav-item {
        display: block;
        padding: 10px 12px;
        border-radius: 8px;
        background: #f5f7fb;
        color: #0a2540;
        text-decoration: none;
        transition: background .2s ease, color .2s ease;
    }

        .forum-nav .nav-item:hover {
            background: #eaf1fb;
        }

        .forum-nav .nav-item.active {
            background: #e1efff;
            color: #0a1f33;
            font-weight: 600;
        }

/* Center column */
.forum-center {
    min-width: 0;
}

.forum-left {
    grid-column: 1;
}

.forum-center {
    grid-column: 2;
}

.forum-right {
    grid-column: 3;
}

.center-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.center-title {
    margin: 0;
    font-size: 22px;
}

.btn-new-post {
    background: #1a73e8;
    border: none;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    cursor: pointer;
}

    .btn-new-post:hover {
        background: #155fc3;
    }

.forum-filters {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid #e6e8eb;
    margin-bottom: 16px;
}

.filter-tab {
    background: transparent;
    border: none;
    padding: 10px 12px;
    cursor: pointer;
    color: #0a2540;
    border-bottom: 2px solid transparent;
}

    .filter-tab.active {
        border-color: #1a73e8;
        color: #1a73e8;
        font-weight: 600;
    }

.post-list {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
}
/* Two-column card: content on the left, stats on the right */
.post-card {
    display: grid;
    grid-template-columns: 1fr 230px;
    gap: 16px;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    padding: 10px 14px 14px;
    align-items: start;
}

.post-content {
    grid-column: 1;
    min-width: 0;
}

.post-stats {
    grid-column: 2;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: stretch;
}

    .post-stats div {
        background: #f8fafc;
        border-radius: 10px;
        padding: 10px 8px;
        width: 82px;
        text-align: center;
        box-sizing: border-box;
    }

    .post-stats strong {
        display: block;
        font-size: 16px;
    }

    .post-stats span {
        color: #6b7280;
        font-size: 12px;
    }

.post-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ede9fe;
    display: inline-block;
}

.cat-pill {
    background: #e8f1ff;
    color: #1a73e8;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
}

.time {
    color: #6b7280;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-link {
    color: #0a2540;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 6px;
    font-size: 18px;
}

    .post-link:hover {
        text-decoration: underline;
    }

.post-excerpt {
    margin: 0 0 6px;
    color: #475467;
}

.post-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475467;
    font-size: 13px;
}

    .post-footer .author {
        color: #0a2540;
        font-weight: 600;
    }

    .post-footer .likes::before {
        content: "\2665";
        color: #ef4444;
        margin-right: 4px;
    }

    .post-footer .comments::before {
        content: "\2709";
        color: #64748b;
        margin-right: 4px;
    }

.forum-post {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}

.post-header {
    margin-bottom: 12px;
}

.post-title {
    font-size: 24px;
    line-height: 1.3;
    margin: 0 0 6px;
}

.post-meta {
    color: #6b7280;
    font-size: 14px;
}

.post-body p {
    margin: 0 0 12px;
}

.forum-section {
    margin-top: 24px;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    padding: 16px;
}

.section-title {
    margin: 0 0 12px;
    font-size: 18px;
}

.topic-list {
    margin: 0;
    padding-left: 18px;
}

    .topic-list li {
        margin: 6px 0;
    }

    .topic-list a {
        color: #0a2540;
        text-decoration: none;
    }

        .topic-list a:hover {
            text-decoration: underline;
        }

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #f2f4f7;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 13px;
    color: #0a2540;
    text-decoration: none;
}

    .tag:hover {
        background: #e8eef6;
    }

/* Right sidebar */
.forum-right {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.forum-card {
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

    .forum-card .card-title {
        margin: 0;
        padding: 12px 14px;
        font-size: 16px;
        font-weight: 600;
        cursor: pointer;
        background: #f8fafc;
    }

    .forum-card .card-body {
        padding: 12px 14px;
    }

    .forum-card.collapsed .card-body {
        display: none;
    }

.rules-list, .group-list, .trending-list {
    margin: 0;
    padding-left: 18px;
}

    .rules-list li, .group-list li, .trending-list li {
        margin: 6px 0;
    }

    .group-list a, .trending-list a {
        color: #0a2540;
        text-decoration: none;
    }

        .group-list a:hover, .trending-list a:hover {
            text-decoration: underline;
        }

/* Responsive */
@media (max-width: 900px) {
    .forum-layout {
        grid-template-columns: 220px 1fr;
    }

    .forum-right {
        display: none;
    }
}

@media (max-width: 767px) {
    .forum {
        padding: 16px 12px;
    }

    .forum-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .forum-left {
        position: static;
    }

    .forum-right {
        position: static;
        display: block;
    }

    .post-card {
        grid-template-columns: 1fr;
    }

    .post-stats {
        justify-content: flex-start;
    }
}


/* Forum Information panel */
.forum-info {
    margin-top: 20px;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    padding: 14px;
}

.forum-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #ff6b00;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

    .forum-info-header h3 {
        margin: 0;
        font-size: 18px;
    }

.forum-info-actions {
    display: flex;
    gap: 12px;
}

    .forum-info-actions .fi-action {
        color: #b45309;
        text-decoration: none;
        font-size: 13px;
    }

.forum-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.fi-stat {
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
}

.fi-num {
    display: block;
    font-weight: 700;
    font-size: 18px;
}

.fi-label {
    color: #6b7280;
    font-size: 12px;
}

.forum-meta {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

    .forum-meta a {
        color: #0a2540;
        text-decoration: none;
    }

        .forum-meta a:hover {
            text-decoration: underline;
        }

.forum-activity {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
    color: #475467;
    font-size: 13px;
}

.forum-legends {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #475467;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.dot-green {
    background: #16a34a;
}

.dot-orange {
    background: #f97316;
}

.dot-gray {
    background: #9ca3af;
}


</style >
<style >



body.home .hero-content {
    z-index: 999;
}

.carousel-caption {
    position: absolute;
    padding-bottom: 0;
    text-shadow: none;
    width: 1200px;
    right: 0;
    left: 0;
    bottom: 20px;
    transition: all 0.3s ease;
    margin: 0 auto;
}

.ap_bnr_title {
    font-size: 46px;
    color: #fff;
    text-align: left;
    padding: 5px 15px;
    text-shadow: 0 0 2px #000;
}

.ap_bnr_news {
    padding: 0 20px;
}

@media (min-width: 767px) {
    .ap_bnr_news {
        position: absolute;
        bottom: 30px;
        right: 40px;
    }
}

#consent_blackbar {
    position: fixed;
    z-index: 999999;
    width: 100%;
    left: 0;
    bottom: 0;
}

.truste-button1,
.truste-button2,
.truste-button3 {
    line-height: normal;
}

.ap_vid_img {
    width: 40px;
    display: inline-block;
    margin-right: 10px;
    position: absolute;
    top: 20px;
    left: 10px;
}

.popup-youtube,
.popup-youtube:hover {
    color: #fff;
}

/* Breadcrumb Styles */
.breadcrumb-container {
    background: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #6c757d;
}

    .breadcrumb-item a {
        color: #d2691e;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .breadcrumb-item a:hover {
            color: #b8860b;
            text-decoration: underline;
        }

    .breadcrumb-item.active {
        color: #212529;
        font-weight: 500;
    }

.breadcrumb-separator {
    margin: 0 10px;
    color: #adb5bd;
}

/* Group List Styling */
.group-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .group-list li {
        margin-bottom: 8px;
    }

    .group-list a {
        display: block;
        padding: 8px 12px;
        color: #495057;
        text-decoration: none;
        border-radius: 6px;
        transition: all 0.2s ease;
        font-size: 14px;
    }

        .group-list a:hover {
            background: #e9ecef;
            color: #d2691e;
            transform: translateX(4px);
        }

/* Forum card styling */
.forum-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

    .forum-card .card-title {
        font-size: 16px;
        font-weight: 600;
        padding: 15px;
        margin: 0;
        background: #f8f9fa;
        border-bottom: 1px solid #e9ecef;
        cursor: pointer;
    }

    .forum-card .card-body {
        padding: 15px;
    }

.rules-list,
.trending-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .rules-list li,
    .trending-list li {
        margin-bottom: 8px;
        font-size: 14px;
        color: #495057;
    }

    .trending-list a {
        color: #d2691e;
        text-decoration: none;
        transition: color 0.2s ease;
    }

        .trending-list a:hover {
            color: #b8860b;
            text-decoration: underline;
        }

/* Breadcrumb Responsive */
@media (max-width: 768px) {
    .breadcrumb-container {
        padding: 10px 0;
    }

    .breadcrumb {
        padding: 0 15px;
    }

    .breadcrumb-item {
        font-size: 12px;
    }

    .breadcrumb-separator {
        margin: 0 6px;
    }
}

</style >
<style >
.carousel-control {
    top: 51%;
    width: 30px;
    height: 35px;
}

.carousel-control .glyphicon-chevron-left,
.carousel-control .glyphicon-chevron-right,
.carousel-control .icon-next,
.carousel-control .icon-prev {
    font-size: 18px;
}

@media (max-width: 767px) {
    .carousel-control {
        top: 20%;
    }

        .carousel-control .glyphicon-chevron-left,
        .carousel-control .glyphicon-chevron-right,
        .carousel-control .icon-next,
        .carousel-control .icon-prev {
            font-size: 15px;
        }
}

.ap_swiper {
    width: 140px !important;
    list-style-type: none;
}



.topic-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.topic-modal.show {
    display: block;
}

.topic-modal-content {
    background-color: #fff;
    margin: 3% auto;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.topic-modal-header {
    padding: 20px 25px;
    background: linear-gradient(135deg, #d2691e 0%, #b8860b 100%);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
}

    .topic-modal-header h2 {
        margin: 0;
        font-size: 22px;
        font-weight: 600;
    }

.topic-modal-close {
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .topic-modal-close:hover {
        background: rgba(255,255,255,0.2);
    }

.topic-modal-body {
    padding: 25px;
    overflow-y: auto;
    max-height: calc(90vh - 80px);
}

.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #212529;
        font-size: 14px;
    }

.required {
    color: #dc3545;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    font-family: inherit;
}

    .form-control:focus {
        outline: none;
        border-color: #d2691e;
        box-shadow: 0 0 0 3px rgba(210,105,30,0.1);
    }

.form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #6c757d;
}

.editor-toolbar {
    display: flex;
    gap: 5px;
    padding: 10px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
}

.editor-btn {
    padding: 8px 12px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #495057;
}

    .editor-btn:hover {
        background: #e9ecef;
        border-color: #d2691e;
        color: #d2691e;
    }

.text-editor {
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 0 0 8px 8px;
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
}

    .text-editor:focus {
        outline: none;
        border-color: #d2691e;
        box-shadow: 0 0 0 3px rgba(210,105,30,0.1);
    }

    .text-editor:empty:before {
        content: attr(placeholder);
        color: #adb5bd;
    }

.file-upload-wrapper {
    position: relative;
}

.file-input {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed #d2691e;
    border-radius: 8px;
    background: #fff5f0;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #d2691e;
    font-weight: 500;
}

    .file-upload-label:hover {
        background: #ffe8d9;
        border-color: #b8860b;
    }

    .file-upload-label i {
        font-size: 28px;
        margin-bottom: 8px;
    }

.file-list {
    margin-top: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-item-name {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.file-remove {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.btn-cancel, .btn-save {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel {
    background: #6c757d;
    color: #fff;
}

    .btn-cancel:hover {
        background: #5a6268;
    }

.btn-save {
    background: #28a745;
    color: #fff;
}

    .btn-save:hover {
        background: #218838;
    }

@media (max-width: 768px) {
    .topic-modal-content {
        width: 95%;
        margin: 5% auto;
    }
}
