/* 
 * Single Post Fakhama Styling - V3 (Global Sync)
 * Premium, luxurious design synchronized with theme colors.
 */

:root {
    --fakhama-glass: rgba(255, 255, 255, 0.85);
    --fakhama-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    --fakhama-border: rgba(226, 232, 240, 0.8);
    --fakhama-primary: var(--color-primary);
    --fakhama-secondary: var(--color-secondary);
    --fakhama-accent: var(--color-accent);
}

.goha-single-post {
    background: var(--color-gray-50, #f8fafc);
    padding-bottom: 80px;
}

/* --- Post Hero Section --- */
.post-hero {
    position: relative;
    height: 45vh;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    text-align: center;
    margin-bottom: -80px;
}

.post-hero .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 1;
}

.post-hero:hover .hero-bg {
    transform: scale(1.05);
}

.post-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(2px);
    z-index: 2;
}

.post-hero .hero-content {
    position: relative;
    z-index: 3;
    max-width: 1100px;
    padding: 20px;
}

.post-meta-top {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.post-meta-top span {
    backdrop-filter: blur(12px);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.post-meta-top span i {
    color: rgba(255, 255, 255, 1);
}

.post-hero .entry-title {
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    color: #ffffff;
}

/* Hero Stats Bar */
.post-hero-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.post-hero-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.post-hero-stats .stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.post-hero-stats .stat-item i {
    color: var(--fakhama-accent);
    font-size: 16px;
}

.post-hero-stats .stat-item span {
    font-size: 14px;
    font-weight: 700;
}

.post-author-info {
    display: none;
}

/* --- Content Styling --- */
.fakhama-content {
    font-size: 20px;
    line-height: 1.9;
    color: var(--color-text-dark, #1e293b);
    word-wrap: break-word;
    font-weight: 400;
    /* Normal weight as requested */
}

.post-author-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.author-details {
    text-align: right;
}

.author-label {
    display: block;
    font-size: 13px;
    opacity: 0.9;
    font-weight: 600;
}

.author-name {
    font-weight: 800;
    font-size: 18px;
}

/* --- Layout --- */
.post-container {
    max-width: 85%;
    width: 85%;
    margin: 0 auto;
    position: relative;
    z-index: 4;
}

.post-main-content {
    background: #fff;
    border-radius: 30px;
    padding: 60px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--fakhama-border);
}

/* --- Breadcrumbs --- */
.goha-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-dark, #1e293b);
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-gray-100);
}

.goha-breadcrumbs a {
    color: var(--fakhama-primary);
    /* Primary Color */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.goha-breadcrumbs a:hover {
    opacity: 0.8;
}

.goha-breadcrumbs .separator {
    font-size: 12px;
    color: var(--fakhama-secondary);
    /* Secondary Color */
    opacity: 0.6;
}

.goha-breadcrumbs .current {
    color: var(--color-soft-gray);
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- Table of Contents --- */
/* Rating Section Success State */
.rating-success-message {
    color: #10b981;
    /* Premium Emerald Green */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    animation: fakhama-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.rating-success-message i {
    font-size: 24px;
    color: #10b981;
    filter: drop-shadow(0 4px 10px rgba(16, 185, 129, 0.2));
}

@keyframes fakhama-pop {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.goha-post-rating.rated .rating-stars i {
    cursor: default;
    opacity: 0.8;
}

.goha-post-rating.rated .rating-header p {
    color: #10b981;
}

.goha-toc-card {
    background: var(--color-gray-50);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 50px;
    border: 1px solid var(--color-gray-200);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.toc-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
}

.toc-header h3 i {
    color: var(--fakhama-primary);
}

.toc-toggle {
    background: var(--fakhama-primary);
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    transition: all 0.3s ease;
}

.goha-toc-card.collapsed .toc-toggle {
    transform: rotate(-90deg);
}

.goha-toc-card.collapsed .toc-body {
    display: none;
}

.toc-body {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1.5px solid #edf2f7;
}

.toc-body ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-body li {
    margin-bottom: 10px;
}

.toc-body a {
    color: #475569;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s;
    display: block;
    padding: 8px 15px;
    border-radius: 10px;
}

.toc-body a:hover {
    color: var(--fakhama-primary);
    background: rgba(var(--color-primary-rgb), 0.06);
    padding-right: 20px;
}

.toc-depth-3 {
    padding-right: 30px !important;
    font-size: 15px !important;
    font-weight: 500 !important;
}

/* --- Content Styling --- */
.fakhama-content {
    font-size: 20px;
    line-height: 1.9;
    color: var(--color-text-dark, #1e293b);
}

.fakhama-content h2,
.fakhama-content h3,
.fakhama-content h4,
.fakhama-content h5,
.fakhama-content h6 {
    color: var(--color-primary);
    margin: 40px 0 20px;
}

.fakhama-content h2 {
    font-size: 26px;
    /* Reduced from 32px */
    font-weight: 700;
    /* Reduced from 900 */
    padding-right: 20px;
    border-right: 4px solid var(--fakhama-primary);
    background: linear-gradient(to left, rgba(var(--color-primary-rgb), 0.05), transparent);
}

.fakhama-content h3 {
    font-size: 22px;
    /* Reduced from 24px */
    font-weight: 600;
    /* Distinct but not heavy */
    display: flex;
    align-items: center;
    gap: 12px;
}

.fakhama-content h3::before {
    content: "\f0a9";
    font-family: "Font Awesome 7 Duotone";
    color: var(--fakhama-secondary);
    font-size: 18px;
}

.fakhama-content p {
    margin-bottom: 30px;
}

/* --- Table Styling (Correction) --- */
.fakhama-content table,
.fakhama-content .wp-block-table table {
    /* Allow table to be wider than screen for scrolling */
    min-width: 600px;
    max-width: 100%;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    font-size: 15px;
    background: #fff;
}

.fakhama-content thead th,
.fakhama-content th {
    background: var(--fakhama-primary);
    color: #fff;
    padding: 15px;
    font-weight: 800;
    text-align: right;
    border-bottom: 3px solid rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    /* Prevent headers from wrapping weirdly */
}

.fakhama-content tbody td,
.fakhama-content td {
    padding: 15px;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    vertical-align: middle;
}

/* ... Rows styles unchanged ... */
.fakhama-content tbody tr:last-child td {
    border-bottom: none;
}

.fakhama-content tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

.fakhama-content tbody tr:hover {
    background-color: #f1f5f9;
}

/* Wrap the block table to ensures scroll */
.wp-block-table {
    margin: 40px 0;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: block;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    /* Prevent border from adding to width */
}

/* Make sure table inside block doesn't double borders */
.wp-block-table table {
    border: none;
    box-shadow: none;
    margin: 0;
}

/* Table Responsive Wrapper (JS injected) */
.table-responsive {
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    margin: 40px 0;
    -webkit-overflow-scrolling: touch;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: block;
    box-sizing: border-box;
    /* Prevent border from adding to width */
    /* Custom Scrollbar for better UX */
    scrollbar-width: thin;
    scrollbar-color: var(--fakhama-primary) #f1f5f9;
    padding-bottom: 5px;
    /* Space for scrollbar */
}

/* Webkit Scrollbar Styling */
.table-responsive::-webkit-scrollbar {
    height: 6px;
    /* Horizontal scrollbar height */
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background-color: var(--fakhama-primary);
    border-radius: 4px;
}

.table-responsive table {
    border: none;
    box-shadow: none;
    margin: 0;
}

/* Mobile specific adjustments */
@media (max-width: 768px) {

    /* Fix Global Overflow */
    html,
    body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }

    .fakhama-content table {
        font-size: 13px;
        /* Slightly smaller font for mobile */
        min-width: 600px;
        /* Ensure table is wide enough to trigger scroll */
    }

    .fakhama-content thead th,
    .fakhama-content td {
        padding: 10px 12px;
    }
}

.fakhama-content img {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    margin: 40px 0;
}

/* --- Tags --- */
.fakhama-tags {
    margin-top: 50px;
    margin-bottom: 35px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 15px;
}

.fakhama-tags a {
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #475569;
    padding: 8px 22px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.fakhama-tags a::before {
    content: "#";
    color: var(--fakhama-primary);
}

.fakhama-tags a:hover {
    border-color: var(--fakhama-primary);
    color: var(--fakhama-primary);
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(var(--color-primary-rgb), 0.15);
}

/* --- Social Share --- */
.goha-social-share {
    margin-top: 50px;
    padding: 40px;
    background: #ffffff;
    border-radius: 30px;
    border: 1.5px solid #edf2f7;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
}

.share-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 35px;
    text-align: center;
}

.share-header i {
    font-size: 30px;
    color: var(--fakhama-primary);
}

.share-header h4 {
    font-size: 22px;
    font-weight: 900;
    color: var(--color-primary);
    margin: 0;
}

.share-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 10px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #fff;
    border: none;
    cursor: pointer;
    text-align: center;
}

.share-btn i {
    font-size: 18px;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #0f1419;
}

.share-btn.whatsapp {
    background: #25d366;
}

.share-btn.telegram {
    background: #0088cc;
}

.share-btn.linkedin {
    background: #0077b5;
}

.share-btn.pinterest {
    background: #bd081c;
}

.share-btn.email {
    background: #64748b;
}

.share-btn.copy-link {
    background: var(--fakhama-primary);
    box-shadow: 0 10px 20px rgba(var(--color-primary-rgb), 0.15);
}

.share-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    filter: brightness(1.05);
}

.share-btn:active {
    transform: translateY(-2px);
}

.share-btn.copied {
    background: #10b981 !important;
}

@media (max-width: 768px) {
    .share-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .goha-social-share {
        padding: 30px 20px;
    }
}

/* --- Navigation --- */
.fakhama-nav {
    margin-top: 50px;
}

.fakhama-nav .nav-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.fakhama-nav a {
    display: flex;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.4s;
}

.fakhama-nav a:hover {
    border-color: var(--fakhama-primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.nav-thumb {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}

.nav-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--fakhama-primary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text-dark);
    line-height: 1.4;
}

/* --- Rating Section Redesign --- */
.goha-post-rating {
    margin-top: 50px;
    padding: 60px 40px;
    background: linear-gradient(145deg, #0f172a, #1a2436);
    border-radius: 35px;
    color: #ffffff;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
}

.goha-post-rating::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g fill="%23ffffff" fill-opacity="0.02" fill-rule="evenodd"><circle cx="3" cy="3" r="1"/></g></svg>');
    opacity: 0.5;
    pointer-events: none;
}

.rating-header h3 {
    margin-bottom: 12px;
    font-size: 28px;
    font-weight: 800;
    color: #ffffff !important;
    /* Force white for visibility */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.rating-header h3 i {
    color: var(--fakhama-accent);
}

.rating-header p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 0;
}

/* Success Message State */
.rating-success-message {
    color: #10b981 !important;
    font-size: 26px;
    font-weight: 800;
}

.rating-success-message i {
    font-size: 32px;
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
}

@keyframes fakhama-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.goha-post-rating.rated .rating-header p {
    color: #10b981;
    opacity: 1;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 18px;
    margin: 35px 0;
}

.rating-stars i {
    font-size: 44px;
    color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
}

.rating-stars i:hover,
.rating-stars i:hover~i,
.rating-stars i.active,
.rating-stars i.active~i {
    color: var(--fakhama-accent);
    filter: drop-shadow(0 0 15px rgba(245, 158, 11, 0.5));
    transform: scale(1.1);
}

.rating-result {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background: rgba(var(--color-primary-rgb), 0.1);
    padding: 15px 30px;
    border-radius: 20px;
    width: fit-content;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.rating-average {
    font-size: 36px;
    font-weight: 900;
    color: var(--fakhama-accent);
    line-height: 1;
}

.rating-count {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    padding-right: 20px;
}

/* --- Related & Trending Posts --- */
.goha-related-posts,
.goha-trending-posts {
    margin-top: 50px;
    padding: 50px;
    background: #fff;
    border-radius: 30px;
    border: 1.5px solid #edf2f7;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.03);
}

/* --- Related Posts Grid --- */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* --- Archive Grid --- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 992px) {
    .posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .posts-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Fakhama Card Redesign --- */
.fakhama-card {
    background: #fff;
    border-radius: 25px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fakhama-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: var(--fakhama-primary);
}

.card-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.fakhama-card:hover .card-thumb img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
    flex-grow: 1;
}

.card-content h2 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    margin-bottom: 15px;
}

.card-content h2 a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.fakhama-card:hover .card-content h2 a {
    color: var(--fakhama-primary);
}

.card-content .post-meta {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

/* --- Scored-Style Fluid Comments --- */
.comments-area {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #f1f5f9;
}

.comments-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-title i {
    color: var(--fakhama-primary);
    font-size: 22px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list>li {
    margin-bottom: 40px;
}

.comment-body {
    position: relative;
    padding-right: 65px;
    /* Space for avatar */
}

/* Avatar: Circular & Professional */
.comment-author .avatar {
    position: absolute;
    right: 0;
    top: 5px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.comment-author .fn {
    font-size: 16px;
    font-weight: 700;
    color: #1a202c;
    font-style: normal;
}

.comment-author .fn a {
    color: inherit;
    text-decoration: none;
}

/* Author Badge: Integrated Medal */
.bypostauthor>.comment-body .fn::after {
    content: "\f5a2 \0020 \0627\0644\0645\0624\0644\0641";
    /* Medal + Author */
    font-family: "Font Awesome 7 Pro";
    font-weight: 900;
    margin-right: 10px;
    background: rgba(var(--color-primary-rgb), 0.15);
    color: var(--fakhama-primary);
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 6px;
    vertical-align: middle;
}

.comment-metadata {
    font-size: 11px;
    color: #a0aec0;
    margin-bottom: 10px;
}

.comment-metadata a {
    color: inherit;
    text-decoration: none;
}

/* Content: Clean & Fluid (No boxes for text) */
.comment-content {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 12px;
}

.comment-content p {
    margin-bottom: 10px;
}

.reply {
    margin-top: 5px;
}

.comment-reply-link {
    font-size: 12px;
    font-weight: 800;
    color: #718096;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.comment-reply-link:hover {
    color: var(--fakhama-primary);
    transform: translateX(-5px);
}

.comment-reply-link::before {
    content: "\f3e5";
    /* Reply icon */
    font-family: "Font Awesome 7 Pro";
    font-weight: 900;
    font-size: 14px;
}

/* Threading Connection Line */
.comment-list .children {
    list-style: none;
    padding: 0;
    padding-right: 50px;
    margin-top: 30px;
    border-right: 2px solid #edf2f7;
    margin-right: 24px;
    /* Align with avatar center */
}

.comment-list .children li {
    margin-bottom: 35px;
}

.comment-list .children .comment-author .avatar {
    width: 38px;
    height: 38px;
}

.comment-list .children .comment-body {
    padding-right: 50px;
}

/* --- Comment Form Premium --- */
.comment-respond {
    background: #fcfdfe;
    padding: 40px;
    border-radius: 25px;
    border: 1px solid #f1f5f9;
    margin-top: 50px;
}

.fakhama-post-title {
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 950;
    color: var(--color-primary);
    line-height: 1.2;
    margin-bottom: 25px;
    letter-spacing: -0.5px;
}

.fakhama-about-author h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.fakhama-reply-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fakhama-reply-title i {
    color: var(--fakhama-primary);
}

.comment-form {
    display: grid;
    gap: 20px;
}

.comment-form label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #475569;
    margin-bottom: 8px;
}

.comment-form input[type="text"],
.comment-form textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #fff;
    font-size: 15px;
    transition: all 0.3s;
    outline: none;
}

.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
    border-color: var(--fakhama-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb, 37, 99, 235), 0.05);
}

.fakhama-submit-btn {
    background: var(--fakhama-primary);
    color: #fff;
    padding: 14px 40px;
    border-radius: 50px;
    border: none;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    transition: all 0.3s;
}

.fakhama-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--color-primary-rgb, 37, 99, 235), 0.2);
    filter: brightness(1.1);
}

/* --- Responsive --- */
@media (max-width: 1024px) {

    .related-grid,
    .trending-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .post-meta-top {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 20px;
    }

    .post-meta-top span {
        font-size: 11px;
        padding: 4px 12px;
        height: 28px;
        /* Fixed height for consistency */
        display: inline-flex;
        align-items: center;
        border-radius: 50px;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .post-meta-top {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 20px;
    }

    .post-meta-top span {
        font-size: 11px;
        padding: 4px 12px;
        height: 28px;
        /* Fixed height for consistency */
        display: inline-flex;
        align-items: center;
        border-radius: 50px;
        /* Full pill shape */
    }

    .post-meta-top i {
        font-size: 11px;
        margin-left: 5px;
    }

    .fakhama-nav .nav-links {
        grid-template-columns: 1fr;
    }

    .post-main-content {
        padding: 30px 20px;
    }

    .related-grid,
    .trending-grid {
        grid-template-columns: 1fr;
    }

    .post-container {
        max-width: 95%;
        width: 95%;
    }
}

/* Premium Tags, Share, Related Posts */
.entry-footer {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #f1f5f9;
}

.tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-item {
    padding: 8px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.tag-item:hover {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.3);
}

.post-share {
    background: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.share-buttons {
    display: flex;
    gap: 12px;
}

.share-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: white;
    transition: all 0.3s;
}

.share-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.share-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d5dbf 100%);
}

.share-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0c85d0 100%);
}

.share-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
}

.share-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #005f8f 100%);
}

.share-btn.copy-link {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

.author-bio-card {
    margin-top: 48px;
    padding: 32px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 24px;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--color-primary);
}

.related-posts-section {
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: 20px;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.related-post-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.related-post-thumb {
    height: 180px;
    overflow: hidden;
}

.related-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.related-post-card:hover .related-post-thumb img {
    transform: scale(1.1);
}



/* ============================================================
   Additional Social Share Buttons & Rating Card
   ============================================================ */

/* Social Share - Additional Platforms */
.share-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
}

.share-btn.pinterest {
    background: linear-gradient(135deg, #e60023 0%, #bd001c 100%);
}

.share-btn.email {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
}

/* Post Rating & Stats Card - Premium */
.post-rating-card {
    margin-top: 32px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
}

.rating-section {
    text-align: center;
}

.rating-header h4 {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.rating-header .fa-duotone {
    --fa-primary-color: #f59e0b;
    --fa-secondary-color: #f97316;
    --fa-secondary-opacity: 0.6;
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.rating-score {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.rating-stars {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.rating-stars i {
    color: var(--color-primary);
    font-size: 20px;
    margin-left: 2px;
}

.rating-stars i.fa-regular {
    color: #cbd5e1;
}

.rating-count {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
}

.stats-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 24px 0;
}

.engagement-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stat-box .fa-duotone {
    font-size: 24px;
    --fa-primary-color: var(--color-primary);
    --fa-secondary-color: var(--color-secondary);
    --fa-secondary-opacity: 0.6;
}

.stat-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-top: 4px;
}

/* Responsive for Rating Card */
@media (max-width: 768px) {
    .engagement-stats {
        grid-template-columns: 1fr;
    }

    .rating-display {
        flex-direction: column;
        gap: 12px;
    }

    .post-rating-card {
        padding: 24px;
    }
}

/* New Social Share Buttons Colors */
.share-btn.reddit {
    background: linear-gradient(135deg, #FF4500 0%, #cc3700 100%);
}

.share-btn.vk {
    background: linear-gradient(135deg, #4680C2 0%, #3a6ba5 100%);
}

.share-btn.tumblr {
    background: linear-gradient(135deg, #35465c 0%, #2a3749 100%);
}

.share-btn.viber {
    background: linear-gradient(135deg, #665CAC 0%, #53498a 100%);
}

.share-btn.line {
    background: linear-gradient(135deg, #00B900 0%, #009400 100%);
}

/* ============================================
   MOBILE RESPONSIVE FIXES - COMPREHENSIVE
   ============================================ */

/* Mobile Base Reset */
@media (max-width: 768px) {

    /* --- Fix Content Overflow --- */
    .post-container,
    .post-main-content,
    .fakhama-content {
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .post-container {
        padding: 0 15px;
    }

    .post-main-content {
        padding: 25px 20px;
        border-radius: 20px;
    }

    /* --- Fix Font Sizes - Much Smaller --- */
    .fakhama-content {
        font-size: 16px !important;
        line-height: 1.8;
    }

    .fakhama-content h2 {
        font-size: 18px !important;
        padding-right: 12px;
        margin: 25px 0 15px;
    }

    .fakhama-content h3 {
        font-size: 16px !important;
        margin: 20px 0 12px;
    }

    .fakhama-content h4 {
        font-size: 15px !important;
    }

    .fakhama-content p {
        margin-bottom: 18px;
        font-size: 16px !important;
    }

    /* --- Fix Images Overflow --- */
    .fakhama-content img,
    .fakhama-content .wp-block-image img,
    .fakhama-content figure img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        border-radius: 12px;
        margin: 20px 0;
    }

    .fakhama-content figure,
    .fakhama-content .wp-block-image {
        max-width: 100% !important;
        margin: 20px 0 !important;
    }

    /* --- Fix Videos Overflow --- */
    .fakhama-content iframe,
    .fakhama-content video,
    .fakhama-content embed,
    .fakhama-content object,
    .fakhama-content .wp-block-video,
    .fakhama-content .wp-block-embed {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9;
    }

    .wp-block-embed__wrapper {
        max-width: 100% !important;
        overflow: hidden;
    }

    /* --- Fix Post Hero --- */
    .post-hero {
        height: 35vh;
        min-height: 280px;
        margin-bottom: -50px;
    }

    .post-hero .entry-title {
        font-size: 20px !important;
        line-height: 1.4;
        padding: 0 10px;
    }

    .post-meta-top {
        gap: 8px;
        margin-top: 15px;
    }

    .post-meta-top span {
        font-size: 11px;
        padding: 6px 12px;
    }

    .post-hero-stats {
        gap: 10px;
        margin-bottom: 20px;
    }

    .post-hero-stats .stat-item {
        padding: 6px 12px;
        font-size: 12px;
    }

    /* --- Fix Breadcrumbs --- */
    .goha-breadcrumbs {
        font-size: 13px;
        padding-bottom: 15px;
        margin-bottom: 20px;
    }

    /* --- Fix TOC --- */
    .goha-toc-card {
        padding: 18px;
        margin-bottom: 25px;
    }

    .toc-header h3 {
        font-size: 16px;
    }

    .toc-body a {
        font-size: 14px;
        padding: 6px 12px;
    }

    /* --- Fix Share Buttons - PREMIUM VISIBLE DESIGN --- */
    .post-share {
        margin-top: 30px !important;
        padding: 20px !important;
        background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
        border-radius: 16px !important;
        border: 1px solid #e2e8f0 !important;
        display: block !important;
    }

    .post-share>strong {
        font-size: 16px !important;
        display: block !important;
        text-align: center !important;
        color: #1e293b !important;
        margin-bottom: 15px !important;
        width: 100% !important;
    }

    .post-share .share-slider-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        display: block !important;
    }

    .post-share .share-slider-arrow {
        display: none !important;
    }

    .post-share .share-buttons-slider {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .post-share .share-buttons-slider .share-btn,
    .post-share .share-buttons-slider a.share-btn {
        min-width: 0 !important;
        width: 100% !important;
        height: 48px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 10px !important;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
        flex-shrink: 1 !important;
    }

    .post-share .share-buttons-slider .share-btn span,
    .post-share .share-buttons-slider a.share-btn span {
        display: none !important;
    }

    .post-share .share-buttons-slider .share-btn i,
    .post-share .share-buttons-slider a.share-btn i {
        font-size: 20px !important;
        margin: 0 !important;
    }

    /* --- Fix Tags - Title Above --- */
    .post-tags {
        display: flex !important;
        flex-direction: column !important;
    }

    .post-tags .tags-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .post-tags .tags-wrapper strong {
        font-size: 15px !important;
        margin-bottom: 5px !important;
        display: block !important;
        width: 100% !important;
    }

    .post-tags .tag-item {
        font-size: 13px;
        padding: 8px 14px;
    }

    /* --- Fix Rating Card --- */
    .post-rating-card-new {
        padding: 25px 20px;
    }

    .rating-title {
        font-size: 16px !important;
    }

    /* --- Fix Navigation --- */
    .post-navigation-wrapper {
        margin-top: 25px;
    }

    .post-nav-grid {
        flex-direction: column;
        gap: 12px;
    }

    .nav-link {
        padding: 15px;
    }

    .nav-title {
        font-size: 14px;
    }

    /* --- Fix Related Posts --- */
    .related-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .goha-trending-posts {
        padding: 25px 20px;
    }

    .goha-trending-posts h2 {
        font-size: 18px;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .post-main-content {
        padding: 20px 15px;
        border-radius: 15px;
    }

    .fakhama-content {
        font-size: 15px !important;
    }

    .fakhama-content h2 {
        font-size: 17px !important;
    }

    .fakhama-content h3 {
        font-size: 15px !important;
    }

    .post-hero .entry-title {
        font-size: 18px !important;
    }

    .share-buttons-slider {
        justify-content: center;
    }

    .share-btn {
        width: 42px;
        height: 42px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}