/* Board template styles (no Tailwind) - Light Theme Optimized */
.board-page {
    display: block;
}

.board-title {
    text-align: center;
    margin-bottom: 12px;
}

.board-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.board-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-toolbar-left i {
    width: 14px;
    height: 18px;
    color: #4b5563;
}

.board-ctoolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-ctoolbar-left svg {
    width: 20px;
    height: 20px;
    color: #3b67cf;
}

.board-ctoolbar h3 {
    margin: 0;
    font-size: 16px !important;
    font-weight: 600;
}

.board-toolbar h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.board-alert {
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.board-alert-error {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.board-alert-success {
    border-color: #a7f3d0;
    background: #f0fdf4;
    color: #166534;
}

.board-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 10px;
    margin-bottom: 26px;
    justify-content: center;
}

.board-filter {
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid #999;
    color: #333;
    letter-spacing: -1px;
    font-weight: 500;
    font-size: 16px;
    background: #fff;
}

.board-filter.is-active {
    border-color: #666;
    font-weight: 600;
    color: #111;
    background: #f1f1f1;
}

.board-comment-card {
    border: 1px solid #ddd;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0px 16px 12px 16px;
}

.board-wcard {
    border: #ddd solid 1px;
    border-radius: 10px;
    padding: 0px 20px;
    margin: 8px 0;
}

.board-card-header {
    margin-top: 46px !important;
    padding-bottom: 12px;
}

.board-card-header h3 {
    margin: 0 0 6px;
    font-size: 26px;
    letter-spacing: -1px;
    font-weight: 600;
}

.board-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: #6b7280;
    font-size: 13px;
}

.board-media {
    margin-bottom: 16px;
}

.board-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.board-video.is-shorts {
    padding-top: 177.78%;
    max-width: 420px;
}

.board-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.board-audio-list {
    display: grid;
    gap: 10px;
    margin: 32px auto;
}

.board-audio-item {
    align-items: center;
    gap: 8px;
}

.board-audio-item i {
    width: 16px;
    height: 16px;
    color: #3b67cf;
}

.board-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    font-size: 14px;
}

.board-btn-primary {
    background: #3b67cf;
    border-color: #3b67cf;
    color: #fff;
}

.board-btn-danger {
    border-color: #fca5a5;
    color: #b91c1c;
}

.board-link {
    color: #6b7280;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
}

.board-link-danger {
    color: #f87171;
}

.board-muted {
    color: #6b7280;
    font-size: 13px;
}

.board-form {
    display: grid;
    gap: 12px;
}

.board-field {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.board-label {
    color: #4b5563;
    font-size: 14px;
}

.board-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #4b5563;
}

.board-input {
    width: 100%;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #374151;
    padding: 10px 12px;
    font-size: 14px;
}

.board-input:focus {
    outline: none;
    border-color: #3b67cf;
}

.board-select {
    max-width: 360px;
}

.board-textarea {
    min-height: 180px;
}

.board-stack {
    display: grid;
    gap: 8px;
}

.board-table-wrap {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    min-height: 750px;
    background: #ffffff;
}

.board-table {
    width: 100%;
    border-collapse: collapse;
}

.board-table th,
.board-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.board-table thead {
    background: #f9fafb;
    color: #4b5563;
}

.board-row-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #374151;
}

.board-row-title i {
    width: 16px;
    height: 16px;
    color: #3b67cf;
}

.board-empty {
    padding: 18px;
    color: #6b7280;
    text-align: center;
}

.board-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.board-page-link {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    color: #6b7280;
    background: #fff;
}

.board-page-link.is-active {
    border-color: #3b67cf;
    color: #3b67cf;
    font-weight: 600;
}

.board-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
}

.board-thumb {
    aspect-ratio: 5 / 3;
    background: #f9fafb;
    overflow: hidden;
}

.board-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.board-thumb-play {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-thumb-play svg {
    width: 48px;
    height: 38px;
    color: #fff;
    background: rgba(220, 38, 38, 0.85);
    border-radius: 10px;
}

.board-card-body {
    padding: 16px 0px;
}

.board-card-body .board-card-title {
    display: flex;
    gap: 8px;
    font-size: 18px !important;
    line-height: 24px !important;
    letter-spacing: -1px;
    font-weight: 600;
    height: 47px;
    overflow: hidden;
    margin-bottom: 8px;
    color: #111;
}

.board-card-body .board-card-title svg  {
    display: none;
}

.board-card-desc {
    color: #6b7280;
    font-size: 15px;
    line-height: 22px;
    margin: 8px 0 8px 0;
    height: 66px;
    overflow: hidden;
}

.board-card-body img {
    max-width: 95%;
    height:auto;
    border-radius: 10px;
    margin:20px auto;
}

.board-card-meta {
    color: #6b7280;
    font-size: 13px;
    margin-top: 8px;
}

.board-webzine {
    display: grid;
    gap: 16px;
}

.board-webzine-item {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.board-webzine-body {
    padding: 14px;
}

.board-faqs {
    display: grid;
    gap: 10px;
}

.board-faq {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 14px;
    background: #ffffff;
}

.board-faq summary {
    cursor: pointer;
    font-weight: 600;
}

.board-faq-body {
    margin-top: 10px;
    color: #4b5563;
}

.board-comment {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.board-comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #6b7280;
}

.board-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.board-comment-body {
    flex: 1;
}

.board-comment-head {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 6px;
}

.board-comment-name {
    color: #374151;
    font-size: 14px;
}

.board-comment-text {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.board-comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    font-size: 13px;
}

.board-replies {
    margin-left: 52px;
    border-left: 2px solid #e5e7eb;
    padding-left: 12px;
}

.hidden {
    display: none;
}

.inline {
    display: inline;
}

@media (max-width: 900px) {
    .board-grid {
        grid-template-columns: 1fr;
    }

    .board-title h2 {
        font-size: 30px !important;
        padding: 12px 0;
        color: #333;
    }

    .board-title h2::before {
        left: 48%;
        width: 30px;
        background-color: #999;
    }

    .board-thumb {
        height: 200px;
    }
}

/* Custom Additions for UI Refinement */
.board-thumb {
    position: relative;
    overflow: hidden;
}

.board-thumb img {
    height: 192px;
    width: 100%;
    object-fit: cover;
    object-position: top;
}

.board-thumb img.is-youtube {
    object-position: center;
    transform: scale(1.35);
}

.board-icon-youtube {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* Ensure clicks pass through to the link */
}

.board-icon-youtube svg {
    width: 56px;
    height: 44px;
    color: #fff;
    /* text-red-600 */
    /* Override existing default */
}

.board-thumb-play {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-thumb-play svg {
    width: 56px;
    height: 44px;
    color: #fff;
    background: rgba(220, 38, 38, 0.85);
    border-radius: 10px;
}
.board-icon-audio svg,
.board-icon-audio i {
    margin-right: 4px;
    width: 16px;
    height: 16px;
    color: #3b82f6;
}

.board-icon-audio {
    display: inline-flex;
    align-items: center;
}

.board-footer-actions .board-pagination {
    margin-top: 0;
}

.board-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

/* Board Modern Gray Template Styles */
.board-page {
    display: block;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
}

.board-title h2 {
    font-size: 32px !important;
    font-weight: 800;
    color: #000;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.board-title h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: #999;
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Modern Tables */
.board-table-wrap {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #fff;
}

.board-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.board-table th {
    background: #f1f3f5;
    padding: 18px 20px;
    font-weight: 700;
    font-size: 15px;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.board-table td {
    padding: 20px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.board-table tr:hover td {
    background: #f8f9fa;
}

/* Modern Buttons in Board */
.board-btn {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-primary);
}

.board-btn-primary {
    background: var(--text-primary);
    color: #fff;
    border: none;
}

.board-btn-primary:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Pagination */
.board-pagination {
    margin-top: 50px;
    gap: 12px;
}

.board-page-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid #eee;
    font-weight: 600;
    transition: var(--transition);
}

.board-page-link.is-active {
    background: #212529;
    color: #fff;
    border-color: #212529;
}

.board-page-link:hover:not(.is-active) {
    background: #f1f3f5;
}

/* Post View Refinement */
.board-card-header {
    border-bottom: 1px solid #999;
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.board-card-header h3 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 16px;
}

.board-meta {
    font-size: 14px;
    color: #888;
}

.board-content h2 {
    position: relative;
    font-size: 22px !important;
    font-weight: 600;
    letter-spacing: -1px;
    padding: 10px 14px;
    margin-bottom: 16px;
    color: #333;
}

.board-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    width: 4px;
    height: 36%;
    background-color: #999;
}

.board-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin: 26px 0 32px 0;
}

.board-actions.center {
    justify-content: center;
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    .board-page {
        display: block;
        background: #fff;
        padding: 15px;
        margin-top: 20px;
    }    

    .board-table th:nth-child(3),
    .board-table td:nth-child(3) {
        display: none; /* Hide date on small mobile lists */
    }

    .board-card-header h3 {
        font-size: 25px;
        font-weight: 600;
        line-height: 30px;
        letter-spacing: -1px;
        margin-bottom: 16px;
    }

    .board-content h2 {
        position: relative;
        font-size: 22px !important;
        font-weight: 600;
        letter-spacing: -1px;
        padding: 10px 14px;
        line-height: 26px !important;
        margin-bottom: 16px;
        color: #333;
    }

    .board-content h2::before {
        content: '';
        position: absolute;
        left: 0;
        top: 14px;
        width: 4px;
        height: 28%;
        background-color: #999;
    }    
}

