/* Single Lesson Polished Styles */
body {
    overflow: visible !important;
}

/* Grid Layout for Desktop */
.post-main {
    margin-top: 0 !important;
    margin-bottom: 16px;
    background: var(--color-white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-main);
    padding: 15px;
    max-width: 100%;
    right: 35px;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

.post-grid.with-collapsed-sidebar {
    grid-template-columns: 1fr !important;
}



.post-main.expanded {
    margin-right: 0 !important;
    max-width: 100% !important;
    right: 0 !important;
}

/* استایل‌های مربوط به قابلیت جمع شدن سایدبار */
/* دکمه دسکتاپ */
.sidebar-toggle-desktop {
    position: fixed;
    right: 85px;
    top: 290px;
    left: 0 !important;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #2e51e8;
    border: none;
    border-radius: 0 8px 8px 0;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.sidebar-toggle-desktop:hover {
    background: #1e3bb8;
    width: 35px;
}

/* استایل‌های موبایل - کاملاً مستقل از دسکتاپ */
.sidebar-toggle-mobile {
    display: none;
    width: 100%;
    background: #2e51e8;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px 16px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(46, 81, 232, 0.2);
}

.sidebar-toggle-mobile:hover {
    background: #1e3bb8;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 81, 232, 0.3);
}

/* لیست دروس در موبایل با انیمیشن نرم */
.lessons-list {
    max-height: 480px;
    overflow: auto;
    margin-top: 12px;
    padding-right: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* حالت موبایل */
@media (max-width: 900px) {
    .sidebar-toggle-desktop {
        display: none !important;
    }

    .sidebar-toggle-mobile {
        display: flex;
    }

    /* سایدبار در موبایل */
    .post-sidebar {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        max-height: none !important;
        margin: 15px 0 !important;
        width: 100% !important;
        display: block !important;
    }

    /* بهبود استایل سایدبار در موبایل */
    .post-sidebar .lessons-list-widget {
        background: #fff;
        border-radius: 16px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        padding: 6px;
        border: 1px solid #e2e8f0;
        margin-bottom: 20px;
    }

    .post-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        right: 0px !important;
    }

    .darkmode .post-sidebar {
        top: 0 !important;
    }

    /* لیست دروس در موبایل */
    .lessons-list {
        max-height: 400px;
        border-radius: 12px;
        background: #f8fafc;
        padding: 15px;
        margin-top: 15px;
    }

    .darkmode .lessons-list {
        background: #1e293b;
    }
}

/* Dark mode support */
.darkmode .sidebar-toggle-mobile {
    background: #4f46e5;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.darkmode .sidebar-toggle-mobile:hover {
    background: #4338ca;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

/* Sticky Sidebar */
.post-sidebar,
.darkmode .post-sidebar {
    position: sticky;
    top: 40px;
    right: 65px;
    align-self: start;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    transition: all 0.3s ease-in-out;
}

/* حالت جمع شده سایدبار در دسکتاپ */
.post-sidebar.collapsed {
    display: none !important;
}

.post-sidebar .lessons-list-widget {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 16px;
    border: 1px solid #e2e8f0;
    transition: opacity 0.3s ease;
}

.post-sidebar.collapsed .lessons-list-widget {
    opacity: 0;
}

.post-sidebar .widget-title {
    font-size: 1.1rem;
    font-weight: bolder;
    text-align: center;
    color: #1f2937;
    margin: 10px auto;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.darkmode span.lesson-title {
    color: wheat;
}

/* Dark mode for sticky sidebar */
.darkmode .post-sidebar .lessons-list-widget {
    background: #1f2937;
    border-color: #374151;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.darkmode .post-sidebar .widget-title {
    color: #f9fafb;
    border-bottom-color: #4b5563;
}

/* Dark mode support برای دکمه‌ها */
.darkmode .sidebar-toggle-desktop {
    background: #4f46e5;
}

.darkmode .sidebar-toggle-desktop:hover {
    background: #4338ca;
}

.single-post .breadcrumb {
    background: #052e2b;
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 16px
}

.single-post .breadcrumb a {
    color: #2563eb
}

.single-post .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    margin-bottom: 14px
}

.single-post .post-meta span {
    font-size: .9rem;
    color: #475569;
    background: #f1f5f9;
    padding: 6px 10px;
    border-radius: 999px
}

.single-post .post-meta .post-read-time {
    background: #ecfeff;
    border: 1px solid #99f6e4;
    color: #0f766e
}

.single-post .post-image {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2, 6, 23, .08);
    margin: 10px 0 18px
}

.single-post .post-content {
    font-size: 1.125rem;
    /* slightly larger for readability */
    line-height: 1.95;
    /* relaxed line-height for long text */
    color: #0f172a;
}

.single-post .post-content p {
    margin-bottom: 1.15em;
}

.single-post .post-content h1,
.single-post .post-content h2,
.single-post .post-content h3,
.single-post .post-content h4,
.single-post .post-content h5,
.single-post .post-content h6 {
    color: #071029;
    margin-top: 1.4em;
    margin-bottom: 0.6em;
    line-height: 1.15;
    font-weight: 700;
}

.single-post .post-content h1 {
    font-size: 2.2rem;
}

/* --- Mobile Fixed-Bottom Lessons Drawer (Single Lesson) --- */
@media (max-width: 900px) {

    /* Hide old mobile toggle if any */
    .sidebar-toggle-mobile {
        display: none !important;
    }

    /* Drawer container: repurpose sidebar as a bottom drawer */
    #lessonSidebar {
        position: fixed !important;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9999;
        height: 0;
        overflow: hidden;
        pointer-events: none;
        transition: height 0.28s ease;
        margin: 0 !important;
        width: 100% !important;
        top: auto !important;
        right: auto !important;
        background: transparent;
    }

    #lessonSidebar.drawer-open {
        height: clamp(360px, 60vh, 700px);
        pointer-events: auto;
        bottom: 50px;
    }

    #lessonSidebar .lessons-list-widget {

        overflow-y: auto;
        border-radius: 12px 12px 0 0;
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.18);
        background: #fff;
        border: 1px solid #e2e8f0;
    }

    /* Fixed-bottom toggle bar */
    .mobile-accordion-toggle {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        display: flex;
        background: #2e51e8;
        color: #fff;
        border: none;
        border-radius: 12px 12px 0 0;
        padding: 14px 16px;
        cursor: pointer;
        font-size: 15px;
        font-weight: 600;
        align-items: center;
        justify-content: center;
        gap: 8px;
        z-index: 10000;
        box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
        transition: transform 0.2s ease, background 0.2s ease;
    }

    .mobile-accordion-toggle .toggle-icon {
        display: inline-block;
        transition: transform 0.25s ease;
    }

    .mobile-accordion-toggle.open .toggle-icon {
        transform: rotate(180deg);
    }

    .mobile-accordion-toggle:hover {
        background: #1e3bb8;
    }

    /* Screen overlay when drawer open */
    .mobile-drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.35);
        z-index: 9998;
    }

    /* Prevent content overlap with fixed toggle */
    .post-main {
        padding-bottom: 72px;
    }

    /* Reset sticky behaviors for mobile drawer */
    .post-sidebar {
        top: auto !important;
        right: auto !important;
        max-height: none !important;
        margin: 0 !important;
        width: 100% !important;
    }
}

/* Dark mode adjustments for drawer */
.darkmode #lessonSidebar .lessons-list-widget {
    background: #1f2937;
    border-color: #374151;
}

.darkmode .mobile-accordion-toggle {
    background: #4f46e5;
}

.darkmode .mobile-accordion-toggle:hover {
    background: #4338ca;
}

.single-post .post-content h2 {
    font-size: 1.75rem;
}

.single-post .post-content h3 {
    font-size: 1.4rem;
}

.single-post .post-content h4 {
    font-size: 1.15rem;
}

.single-post .post-content h5 {
    font-size: 1rem;
}

.single-post .post-content h6 {
    font-size: 0.95rem;
}

.single-post .post-content pre {
    background: #0b1220;
    color: #e2e8f0;
    border-radius: 10px;
    padding: 14px;
    overflow: auto
}

.single-post .article-actions {
    top: 150px !important;
}

.single-post .lesson-navigation {
    margin-top: 24px
}

.single-post .post-tags {
    margin-top: 18px
}

.single-post .post-tags ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 0;
    padding: 0;
    list-style: none
}

.single-post .post-tags li {
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: .88rem
}

.darkmode .single-post .post-content {
    color: #e6eef6
}

.darkmode .single-post .post-content h2,
.darkmode .single-post .post-content h3 {
    color: #c7d2fe
}

.darkmode .single-post .post-meta span {
    background: #0f172a;
    color: #cbd5e1;
    border-color: #1f2937
}

.darkmode .single-post .post-meta .post-read-time {
    background: #052e2b;
    border-color: #134e4a;
    color: #99f6e4
}

.darkmode .single-post .post-tags li {
    background: #0b1220;
    color: #cbd5e1
}

/* Enhanced lessons list styles (light & dark) */
.enhanced-lessons-widget {
    background: var(--widget-bg, #fff);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.lessons-widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.lessons-guest-cta {
    text-align: center;
    padding: 16px;
    border-radius: 10px;
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.lessons-guest-cta .cta-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.cta-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 8px;
}

.cta-btn {
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
}

.cta-login {
    background: #2e51e8;
    color: #fff;
}

.cta-register {
    border: 1px solid #2e51e8;
    color: #2e51e8;
    background: transparent;
}

.course-lesson-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    transition: transform .22s cubic-bezier(.2, .9, .3, 1), box-shadow .22s ease, background .22s ease;
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 250, 252, 0.98));
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.course-lesson-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(2, 6, 23, 0.08);
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.course-lesson-item.current-lesson {
    border-left: 4px solid transparent;
    background: linear-gradient(90deg, rgba(46, 81, 232, 0.06), #4CAF50) !important;
    box-shadow: 0 8px 28px rgba(46, 81, 232, 0.06);
}

.course-lesson-item.completed {
    background: linear-gradient(90deg, rgba(56, 161, 105, 0.03), rgba(255, 255, 255, 0.98));
}

.lesson-index {
    min-width: 36px;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 50%;
    font-weight: 700;
    color: #0f172a;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.03);
    font-size: 0.95rem;
}

.course-lesson-item.completed .lesson-index {
    background: #eefaf3;
}

.course-lesson-item .lesson-index {
    position: relative;
}

.course-lesson-item.completed .lesson-index::after {
    content: '✔';
    position: absolute;
    right: -6px;
    bottom: -6px;
    background: #fff;
    color: #16a34a;
    border-radius: 50%;
    font-size: 11px;
    padding: 2px 5px;
    box-shadow: 0 1px 6px rgba(2, 6, 23, 0.08);
}

.lesson-title {
    font-weight: 700;
    color: var(--title-color, #0b1220);
    font-size: 1rem;
    line-height: 1.25;
}

.lesson-meta {
    margin-left: auto;
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 0.92rem;
    color: #475569;
}

.lesson-check {
    color: #16a34a;
    font-size: 1.05rem;
}

/* dark mode support */
.darkmode .enhanced-lessons-widget {
    background: #0b1220;
    color: #e6eef8;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
}

.darkmode .lessons-guest-cta {
    background: linear-gradient(180deg, #071126, #08121a);
}

.darkmode .lesson-index {
    background: #0e1724 !important;
    color: #e2e8f0;
}

.darkmode .course-lesson-item.completed {
    background: linear-gradient(90deg, rgba(46, 161, 105, 0.08), transparent);
}

.darkmode .course-lesson-item.current-lesson {
    background: linear-gradient(90deg, rgba(46, 81, 232, 0.08), transparent);
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .post-content {
        padding: 2px !important;
    }

    .single-post .breadcrumb {
        padding: 8px 12px;
        margin-bottom: 12px;
    }

    .single-post .post-meta {
        gap: 6px 8px;
        margin-bottom: 12px;
    }

    .single-post .post-meta span {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .single-post .post-content {
        font-size: 1rem;
        line-height: 1.7;
    }

    .single-post .post-content h2,
    .single-post .post-content h3 {
        font-size: 1.3rem;
        margin-top: 1.2em;
    }

    .post-sidebar .lessons-list-widget {
        padding: 18px;
    }

    .post-sidebar .widget-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .course-lesson-item {
        padding: 10px 12px;
        gap: 10px;
    }

    .course-lesson-item .lesson-index {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .course-lesson-item .lesson-title {
        font-size: 0.9rem;
    }

    .mobile-menu-content .primary-menu li a {
        line-height: 5px;
        font-size: 13px;
    }

    #wplc-float-btn {
        z-index: 100000000;
        bottom: 35px !important;
        left: 5px !important;
    }

    .mobile-menu-content {
        overflow: visible !important;
    }

    .single-post .article-actions {
        position: fixed;
        top: 85.5% !important;
        right: 29px !important;
        flex-direction: row;
        gap: 8px;
        max-height: 50px;
        z-index: 1000;
    }

    /* بهبود استایل موبایل */
    .sidebar-toggle-mobile {
        padding: 16px 20px;
        font-size: 16px;
        margin-bottom: 25px;
    }

    .lessons-list {
        padding: 12px;
    }
}

span.lessons-count:before {
    content: "✅";
}

aside#lessonSidebar {
    font-size: 20px;
    text-align: center;
}

/* Very small screens */
@media (max-width: 480px) {
    .table-container {
        margin: 0 auto !important;
        width: unset;
    }



    .single-post .post-meta {
        flex-direction: row;
        align-items: flex-start;
        gap: 6px;
    }

    .single-post .post-content {
        font-size: 0.95rem;
    }

    .post-sidebar .lessons-list-widget {
        padding: 15px;
    }

    .sidebar-toggle-mobile {
        padding: 14px 18px;
        font-size: 14px;
    }

    .lessons-list {
        max-height: 300px;
        padding: 10px;
    }
}

.post-sidebar {
    background: #fff;
    border-radius: 16px;
    padding: 10px;
    margin: 8px;
    overflow: hidden;
    z-index: 10;
}

.newsletter-form {
    background-color: #052e2b;
}

.post-sidebar::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;

    border-radius: 18px;
    z-index: -1;
    background-size: 400% 400%;
    animation: gradientBorder 6s ease infinite;
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* بهبود اسکرول بار برای سایدبار */
.post-sidebar::-webkit-scrollbar {
    width: 6px;
}

.post-sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.post-sidebar::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.post-sidebar::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.darkmode .post-sidebar::-webkit-scrollbar-track {
    background: #374151;
}

.darkmode .post-sidebar::-webkit-scrollbar-thumb {
    background: #6b7280;
}

.darkmode .post-sidebar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Hero section styles */
.lesson-hero {
    min-height: 260px;
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
}

.lesson-hero__bg {
    transition: opacity .3s ease, transform .3s ease;
    will-change: transform, opacity;
}

.lesson-hero__inner {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Vertical fade-in label for the desktop toggle button */
.sidebar-toggle-desktop {
    position: fixed;
    /* kept to allow absolute label placement */
}

.sidebar-toggle-desktop .toggle-label {
    position: absolute;
    left: 50%;
    top: calc(100% + 40px);
    transform: translateX(-50%) rotate(90deg) translateY(8px);
    transform-origin: center;
    background: rgba(0, 0, 0, 0.78);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.sidebar-toggle-desktop:hover .toggle-label {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) rotate(90deg) translateY(0);
}

/* Hide the vertical label on small screens */
@media (max-width: 900px) {
    .sidebar-toggle-desktop .toggle-label {
        display: none !important;
    }
}

/* Responsive: stack hero columns on mobile */
@media (max-width: 900px) {
    .lesson-hero__inner {
        flex-direction: column-reverse;
        padding: 20px 12px;
    }

    .lesson-hero__left,
    .lesson-hero__right {
        width: 100%;
        text-align: center;
    }

    .lesson-hero__right {
        padding: 12px 6px;
    }

    .hero-featured-image {
        margin: 0 auto 14px auto;
        max-width: 100%;
    }

    .lesson-hero {
        min-height: auto;
        padding-bottom: 8px;
    }

    .lesson-hero__bg {
        filter: blur(6px) saturate(0.9);
    }

    .lesson-hero__overlay {
        background: rgba(0, 0, 0, 0.45);
    }

    .lesson-hero__right h1 {
        font-size: 1.4rem;
    }
}

/* Responsive & Styled Tables */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
    /* border: 1px solid #e2e8f0; */
    /* border-radius: 12px; */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); */
}

.darkmode .table-container {
    border-color: #374151;
}

table.saresu-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Ensure horizontal scroll on smaller screens */
}

.saresu-table th,
.saresu-table td {
    padding: 14px 18px;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.6;
}

.darkmode .saresu-table th,
.darkmode .saresu-table td {
    border-bottom-color: #374151;
}

.saresu-table th {
    background-color: #f8fafc;
    font-weight: 700;
    font-size: 1rem;
    color: #0f172a;
}

.darkmode .saresu-table th {
    background-color: #1e293b;
    color: #f1f5f9;
}

.saresu-table tbody tr:last-child td {
    border-bottom: none;
}

.saresu-table tbody tr:hover {
    background-color: #f1f5f9;
}

.darkmode .saresu-table tbody tr:hover {
    background-color: #334155;
}

/* Mobile-specific table styles */
@media (max-width: 768px) {
    .table-container {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .saresu-table th,
    .saresu-table td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

.saresu-table {
    min-width: 100%;
    /* Allow table to shrink on mobile */
}

.saresu-table thead {
    display: none;
    /* Hide table headers */
}

.saresu-table,
.saresu-table tbody,
.saresu-table tr,
.saresu-table td {
    display: block;
    width: 100%;
}

.saresu-table tr {
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.darkmode .saresu-table tr {
    border-color: #374151;
}

.saresu-table td {
    text-align: right;
    padding-left: 50%;
    /* Create space for the label */
    position: relative;
    border-bottom: 1px solid #e9ecef;
}

.darkmode .saresu-table td {
    border-bottom-color: #374151;
}

.saresu-table td:last-child {
    border-bottom: none;
}

.saresu-table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    width: calc(50% - 20px);
    padding-right: 10px;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
    color: #475569;
}

.darkmode .saresu-table td::before {
    color: #94a3b8;
}


/* Responsive & Styled Tables for Horizontal Scrolling */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.darkmode .table-container {
    border-color: #374151;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* Adjust as needed to force horizontal scroll */
}

.post-content th,
.post-content td {
    padding: 14px 18px;
    text-align: right;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.6;
}

.darkmode .post-content th,
.darkmode .post-content td {
    border-bottom-color: #374151;
}

.post-content th {
    background-color: var(--bg-dark);
    font-weight: 700;
    font-size: 1rem;
    color: var(--swal2-confirm-button-color);
    text-align: center;
    border-right: 1px solid;
}

.darkmode .post-content th {
    background-color: var(--wp--preset--color--vivid-green-cyan);
    color: var(--bg-dark);
    text-align: center;
    border-right: 1px solid;
}

.post-content tbody tr:last-child td {
    border-bottom: none;
}

.post-content tbody tr:hover {
    background-color: #f1f5f9;
}

.darkmode .post-content tbody tr:hover {
    background-color: #334155;
}

@media (max-width: 768px) {
    .table-container {
        margin-left: -15px;
        margin-right: -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .post-content th,
    .post-content td {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}