/**
 * Modern Blog Single Page Styles
 * Complete redesign with glass-morphism, animations and modern components
 */

/* CSS Variables for Blog */
:root {
    --blog-primary: #005F5F;
    --blog-primary-light: #7FCDBB;
    --blog-primary-dark: #004949;
    --blog-secondary: #E5924C;
    --blog-secondary-light: #FFB380;
    --blog-secondary-dark: #CC6A2C;
    --blog-hero-height: 600px;
    --blog-glass-bg: rgba(255, 255, 255, 0.8);
    --blog-glass-border: rgba(255, 255, 255, 0.3);
    --blog-glass-shadow: 0 8px 32px rgba(0, 95, 95, 0.1);
    --blog-content-max-width: 1400px;
    --blog-sidebar-width: 380px;
    --blog-content-gap: 40px;
}

[data-theme="dark"] {
    --blog-glass-bg: rgba(30, 42, 46, 0.8);
    --blog-glass-border: rgba(255, 255, 255, 0.1);
    --blog-glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Floating Products Navigation
   ======================================== */

.floating-products-nav {
    position: fixed;
    right: 20px;
    bottom: 235px;
    z-index: 9998;
    display: none;
}

/* Only show on mobile */
@media (max-width: 768px) {
    .floating-products-nav {
        display: block;
    }
}

.floating-products-toggle {
width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--tty-bg-linear-graniet);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.floating-products-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(229, 146, 76, 0.4);
    opacity: 1;
}

.products-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.products-icon i {
    font-size: 26px;
}

.products-indicator {
    position: absolute;
    top: -12px;
    right: -11px;
    background: var(--blog-secondary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* Preview Popup */
.floating-products-preview {
    position: absolute;
    bottom: 55px;
    right: 0;
    width: 280px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s ease;
    overflow: hidden;
}

.floating-products-nav.active .floating-products-preview {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px 5px 15px;
}

.preview-header span {
    font-size: 15px;
    font-weight: 600;
    color: var(--blog-primary);
}

.preview-close {
display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  text-align: center !important;
  text-transform: none;
  background: rgba(22, 51, 0, .078) !important;
  padding: 8px 8px !important;
  border-radius: 50%;
  transition: .3s;
  width: 36px;
  border: none !important;
  height: 36px;
  font-weight: 400 !important;
  line-height: 21px;
  cursor: pointer;
  margin-right: -5px;
  color: #121212;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
}

.preview-product-thumb {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #edf4f6;
    transition: all 0.3s ease;
}

.preview-product-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.preview-product-thumb img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-product-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #ccc;
    font-size: 24px;
}

.preview-cta {
    width: calc(100% - 30px);
    margin: 0 15px 15px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--blog-secondary) 0%, var(--blog-secondary-light) 100%);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.preview-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 146, 76, 0.3);
    gap: 12px;
}

.preview-cta i {
    transition: transform 0.3s ease;
}

.preview-cta:hover i {
    transform: translateY(2px);
}

/* Dark mode support */
[data-theme="dark"] .floating-products-preview {
    background: rgba(45, 45, 45, 0.95);
}

[data-theme="dark"] .preview-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .preview-header span {
    color: var(--blog-secondary-light);
}

[data-theme="dark"] .preview-close {
    background: rgba(255, 255, 255, 0.05);
    color: #999;
}

[data-theme="dark"] .preview-close:hover {
    background: rgba(244, 67, 54, 0.2);
    color: #ff6b6b;
}

[data-theme="dark"] .preview-product-thumb {
    background: #3a3a3a;
}

[data-theme="dark"] .preview-product-placeholder {
    background: #2a2a2a;
    color: #666;
}

/* Hide pulse animation when active */
.floating-products-nav.active .floating-products-toggle::before {
    animation: none;
    opacity: 0;
}

/* Ensure proper stacking */
@media (max-width: 768px) {
    .transtoyou-back-to-top.show {
        bottom: 129px;
        right: 15px !important;
        width: 45px;
        height: 45px;
        opacity: 1 !important;
    }
    
    .floating-toc-button {
        bottom: 242px;
        right: -5px !important;
        width: 45px !important;
        height: 45px !important;
        opacity: 1 !important;
        position: absolute;
    }
    
    .floating-products-nav {
        bottom: 329px;
        right: 15px;
    }
}

/* ========================================
   Related Products Mini Card (Sidebar)
   ======================================== */

.blog-related-products-mini {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tty-section-title {
  margin-top: 0px;
}

.blog-related-products-mini:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.blog-related-products-mini h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #212529;
}

/* Mini Products Grid */
.blog-mini-products-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.blog-mini-product-item {
    background: var(--tty-bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-mini-product-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.blog-mini-product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.blog-mini-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #edf4f6;
}

.blog-mini-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-mini-product-item:hover .blog-mini-product-image img {
    transform: scale(1.05);
}

.blog-mini-product-info {
    padding: 12px;
}

.blog-mini-product-info h4 {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 8px;
    color: #212529;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-mini-product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--blog-primary);
}

.blog-mini-product-price del {
    color: #6c757d;
    font-weight: 400;
    font-size: 12px;
    margin-right: 5px;
}

/* See All Products Button */
.blog-see-all-products {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    background: var(--blog-primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-see-all-products:hover {
    background: var(--blog-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 95, 95, 0.3);
    gap: 15px;
}

.blog-see-all-products i {
    transition: transform 0.3s ease;
}

.blog-see-all-products:hover i {
    transform: translateX(3px);
}

/* Dark mode support */
[data-theme="dark"] .blog-related-products-mini {
    background: #2d2d2d;
}

[data-theme="dark"] .blog-related-products-mini h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .blog-mini-product-item {
    background: #3a3a3a;
}

[data-theme="dark"] .blog-mini-product-info h4 {
    color: #e0e0e0;
}

[data-theme="dark"] .blog-mini-product-image {
    background: #3a3a3a;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .blog-mini-products-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .blog-mini-product-item {
        display: flex;
        align-items: center;
    }
    
    .blog-mini-product-link {
        display: flex;
        width: 100%;
    }
    
    .blog-mini-product-image {
        width: 80px;
        height: 80px;
        padding-bottom: 0;
        flex-shrink: 0;
    }
    
    .blog-mini-product-info {
        flex: 1;
        padding: 12px 15px;
    }
    
    .blog-related-products-mini {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .blog-mini-product-image {
        width: 70px;
        height: 70px;
    }
    
    .blog-mini-product-info h4 {
        font-size: 12px;
    }
    
    .blog-mini-product-price {
        font-size: 13px;
    }
}

/* ========================================
   Reading Progress Bar
   ======================================== */

.blog-reading-progress {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.blog-reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--blog-primary) 0%, var(--blog-secondary) 100%);
    width: 0;
    transition: width 0.05s linear;
    will-change: width;
}

/* ========================================
   Hero Section
   ======================================== */

.blog-hero {
    position: relative;
    background: linear-gradient(135deg, #edf4f6 0%, #e9ecef 100%);
    min-height: var(--blog-hero-height);
    overflow: hidden;
    padding: 40px 0 100px;
}

[data-theme="dark"] .blog-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Hero Pattern Background */
.blog-hero-pattern {
    position: absolute;
    top: 0;
    right: -10%;
    width: 60%;
    height: 100%;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23005F5F' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float-pattern 60s linear infinite;
}

@keyframes float-pattern {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}


.tty-secondary-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.tty-secondary-links a {
    color: var(--tty-text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.tty-secondary-links a:hover {
    color: var(--tty-primary);
}

.tty-secondary-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tty-primary);
    transition: width 0.3s ease;
}

.tty-secondary-links a:hover::after {
    width: 100%;
}

/* Floating Elements */
.blog-hero-floating {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.blog-float-element {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: float-orb 20s infinite;
}

.blog-float-1 {
    width: 300px;
    height: 300px;
    background: rgba(0, 95, 95, 0.1);
    top: -150px;
    right: -100px;
}

.blog-float-2 {
    width: 400px;
    height: 400px;
    background: rgba(229, 146, 76, 0.08);
    bottom: -200px;
    left: -200px;
    animation-duration: 25s;
}

.blog-float-3 {
    width: 200px;
    height: 200px;
    background: rgba(127, 205, 187, 0.1);
    top: 50%;
    left: 10%;
    animation-duration: 30s;
}

@keyframes float-orb {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Container */
.blog-container {
    max-width: var(--blog-content-max-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Modern Breadcrumbs */
.blog-breadcrumbs-modern {
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out;
}

.blog-breadcrumbs-modern ol {
    display: flex;
    align-items: center;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.blog-breadcrumbs-modern li {
    position: relative;
    font-size: 14px;
}

.blog-breadcrumbs-modern li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -16px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-top: 2px solid #6c757d;
    border-right: 2px solid #6c757d;
    transform: translateY(-50%) rotate(45deg);
    opacity: 0.5;
}

.blog-breadcrumbs-modern a {
    color: var(--tty-text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-breadcrumbs-modern a:hover {
    color: var(--tty-secondary-dark);
}

.blog-breadcrumbs-modern .current {
  opacity: .4;
  font-weight: 600;
  max-width: 8ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-block;
}

/* Hero Content Grid */
.blog-hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Category Pills */
.blog-category-pills {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.blog-category-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(0, 95, 95, 0.1);
    color: var(--blog-primary);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    gap: 10px;
}

.blog-category-pill:hover {
    background: var(--blog-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 95, 95, 0.3);
}

/* Hero Title */
.blog-hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--tty-header-primary);
  margin-bottom: 0px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.blog-hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.blog-heartbeat-container .tty-heartbeat-svg {
  width: 200px;
  height: 50px;
}

/* Hero Meta */
.blog-hero-meta {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.35s both;
}

.blog-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 15px;
}

.blog-meta-item i {
    color: var(--blog-primary);
    font-size: 18px;
}

/* Hero Actions */
.blog-hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.blog-btn-primary,
.blog-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.blog-btn-primary {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-primary-light) 100%);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 95, 95, 0.3);
}

.blog-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 95, 95, 0.4);
    color: white;
}

.blog-btn-secondary {
    background: white;
    color: var(--blog-primary);
    border: 2px solid #e9ecef;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.blog-btn-secondary:hover {
    background: #edf4f6;
    transform: translateY(-3px);
    border-color: var(--blog-primary);
    color: var(--blog-primary);
}

.bto-single-save-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    font-size: 24px;
    z-index: 10;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.bto-single-save-btn:hover {
    background: var(--blog-secondary);
    border-color: var(--blog-secondary);
    color: white;
    transform: scale(1.1);
    opacity: 1;
}

.bto-single-save-btn.saved {
    background: var(--blog-secondary);
    border-color: var(--blog-secondary);
    color: white;
}

.bto-single-save-btn.saved i::before {
    content: "\f004";
    font-weight: 900;
}

.bto-single-save-btn.saving {
    pointer-events: none;
    opacity: 0.6;
}

.bto-single-save-btn.saved-animation {
    animation: savedPulse 0.6s ease-out;
}

@keyframes savedPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 20px rgba(229, 146, 76, 0.6);
    }
    100% {
        transform: scale(1);
    }
}
å

[data-theme="dark"] .bto-single-save-btn:hover {
    background: var(--blog-secondary);
    border-color: var(--blog-secondary);
}

/* Mobile adjustments for save button */
@media (max-width: 768px) {
    .bto-single-save-btn {
    width: 45px;
    height: 45px;
    font-size: 24px;
    top: auto;
    left: auto;
    display: block;
    z-index: 9998;
    bottom: 396px;
    position: fixed;
    right: 15px;
    opacity: 1;
    border: none;
    }
}

/* Expert Card */
.blog-expert-card-modern {
    background: var(--blog-glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--blog-glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--blog-glass-shadow);
    animation: fadeInUp 0.6s ease-out 0.5s both;
    transition: all 0.3s ease;
}

.blog-expert-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 95, 95, 0.15);
}

.blog-expert-verified {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  color: var(--tty-primary);
  font-weight: 600;
  font-size: 14px;
  background: rgba(0, 95, 95, 0.1);
  padding: 8px 16px;
  border-radius: 30px;
}

.blog-expert-verified i {
    font-size: 24px;
    color: var(--blog-primary);
}

.blog-expert-main {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.blog-expert-avatar {
position: relative;
  flex-shrink: 0;
}

.tty-expert-check-badge {
  position: absolute;
  bottom: 0px;
  right: -11px;
  width: 28px;
  height: 28px;
  background: var(--tty-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 3px solid white;
}

.blog-expert-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.attachment-thumbnail.size-thumbnail img,
img.attachment-thumbnail.size-thumbnail {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.blog-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
}

.blog-expert-info h3 {
  font-size: 24px;
  margin-bottom: 5px;
  color: var(--tty-header-primary);
  margin-top: 0px;
}

.blog-expert-title,
.blog-expert-title p {
    font-size: 14px;
    color: var(--tty-text-secondary);
    font-style: italic;
    margin-bottom: 10px;
}

.blog-expert-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-review-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--tty-text-secondary);
}

.blog-expert-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--blog-primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-expert-link:hover {
    gap: 10px;
    color: var(--blog-primary-dark);
}

.blog-expert-bio {
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    font-size: 15px;
    line-height: 1.6;
    color: var(--tty-text-secondary);
}

/* Hero Image */
.blog-hero-right {
    position: relative;
    animation: slideInRight 0.8s ease-out;
}

.blog-hero-image {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    max-width: 870px;
    margin: 0 auto;
}

.blog-image-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
}

.blog-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-hero-image:hover img {
    transform: scale(1.05);
}

.blog-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0, 95, 95, 0.1) 100%);
    pointer-events: none;
}

/* ========================================
   Main Content Section
   ======================================== */

.blog-content {
    padding: 100px 0;
    background: white;
    position: relative;
}

.blog-content-grid {
    display: grid;
    grid-template-columns: 1fr var(--blog-sidebar-width);
    gap: var(--blog-content-gap);
    align-items: start;
}

/* Entry Content */
.blog-entry-content {
    font-size: 17px;
    line-height: 1.8;
    color: #212529;
}

.blog-entry-content h2,
.blog-entry-content h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.blog-entry-content h2 {
  font-size: 32px;
  line-height: 36px;
}

.blog-entry-content h3 {
  font-size: 22px;
  line-height: 28px;
}


.blog-entry-content h4 {
  margin-top: 30px;
  margin-bottom: -8px;
  position: relative;
  font-size: 48px;
  line-height: 24px;
}

.blog-entry-content h5 {
  font-size: 18px;
  line-height: 24px;
}

.blog-entry-content h4 {
  margin-top: 30px;
  margin-bottom: -8px;
  position: relative;
  padding-left: 30px;
  font-size: 28px;
  line-height: 40px;
}

.blog-entry-content h2::before,
.blog-entry-content h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 80%;
    background: linear-gradient(to bottom, var(--blog-primary), var(--blog-secondary));
    border-radius: 2px;
}

.blog-entry-content p {
    margin-bottom: 20px;
}

.blog-entry-content ul,
.blog-entry-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.blog-entry-content li {
    margin-bottom: 10px;
    position: relative;
}

.blog-entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.blog-entry-content blockquote {
    border-left: 4px solid var(--blog-primary);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #6c757d;
}

/* Tags Section */
.blog-tags-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e9ecef;
}

.blog-tags-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
}

.blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.blog-tag-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #edf4f6;
    color: #495057;
    border-radius: 30px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

/* Share Section */
.blog-share-section {
    margin-top: 60px;
    padding: 40px;
    background: #edf4f6;
    border-radius: 24px;
    text-align: center;
}

.blog-share-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.blog-share-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.blog-share-title-row i {
  font-size: 28px;
  color: #005f5f;
}

.blog-share-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-share-bonus,
.blog-share-login-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f5a623 0%, #f7931e 100%);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(245, 166, 35, 0.3);
}

.blog-share-bonus:hover,
.blog-share-login-hint:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 166, 35, 0.4);
    color: white;
}

.blog-share-bonus i,
.blog-share-login-hint i {
    font-size: 14px;
}

.blog-share-buttons-large {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.blog-share-button-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: white;
    border: none;
    cursor: pointer;
    min-width: 120px;
}

.blog-share-button-large.native {
    background: linear-gradient(135deg, #006f6e 0%, #004d4c 100%);
}

.blog-share-button-large.facebook {
    background: #1877f2;
}

.blog-share-button-large.twitter {
    background: #000000;
}

.blog-share-button-large.linkedin {
    background: #0a66c2;
}

.blog-share-button-large.whatsapp {
    background: #25d366;
}

.blog-share-button-large.copy {
    background: #6c757d;
}

.blog-share-button-large.copy.copied {
    background: #28a745;
}

.blog-share-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

/* Share Stats */
.blog-share-stats {
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.blog-share-stats-bar {
    width: 100%;
    max-width: 400px;
    height: 8px;
    background: rgba(0, 111, 110, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.blog-share-stats-progress {
    height: 100%;
    background: linear-gradient(90deg, #247772 0%, #4CAF50 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.blog-share-stats-text {
    font-size: 14px;
    color: #666;
}

/* Share Feedback */
.blog-share-feedback {
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #d4edda;
    color: #155724;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.blog-share-feedback i {
    color: #28a745;
}

/* Sidebar */
.blog-content-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Sidebar Cards */
.blog-sidebar-card {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.blog-sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.blog-sidebar-card h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: #212529;
}

/* Action Buttons Grid */
.blog-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.blog-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 10px;
    background: var(--tty-bg-secondary);
    border-radius: 16px;
    text-decoration: none;
    color: #212529;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
}

.blog-action-btn:hover {
    background: var(--blog-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 95, 95, 0.2);
}

.blog-action-btn i {
    font-size: 34px;
    color: var(--blog-primary);
    transition: color 0.3s ease;
}

.floating-toc-section-title.toc-level-h3 {
  padding-left: 15px;
  position: relative;
}

.floating-toc-section-title.toc-level-h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 80%;
  background: linear-gradient(to bottom, var(--tty-primary), var(--tty-secondary));
  border-radius: 2px;
}

.blog-entry-content h2:first-child {
  margin-top: 0px;
}

.blog-disclaimer h3,
.blog-table-of-contents h3 {
  margin-top: 20px;
  padding-left: 0px;
}

.blog-table-of-contents h3::before,
.blog-disclaimer h3::before {
  content: none;
}

.blog-entry-content h4 {
  margin-top: 30px;
  margin-bottom: -8px;
  position: relative;
  padding-left: 0px;
  font-size: 26px;
  line-height: 40px;
}

.blog-action-btn:hover i {
    color: white;
}

/* Newsletter Card */
.blog-newsletter-card {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-primary-light) 100%);
    color: white;
    text-align: center;
}

.blog-newsletter-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.blog-newsletter-card h3 {
    color: white;
}

.blog-newsletter-card p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.blog-newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.blog-newsletter-form input[type="email"] {
    padding: 15px 20px;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 15px;
    backdrop-filter: blur(10px);
}

.blog-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.blog-newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.2);
}

.blog-newsletter-form button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background: white;
    color: var(--blog-primary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-newsletter-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.blog-newsletter-consent {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.blog-newsletter-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.blog-newsletter-response {
    margin-top: 15px;
    padding: 10px;
    border-radius: 12px;
    font-size: 14px;
    display: none;
}

.blog-newsletter-response.success {
    background: rgba(255, 255, 255, 0.2);
}

.blog-newsletter-response.error {
    background: rgba(255, 0, 0, 0.2);
}

.blog-newsletter-subscribed {
    text-align: center;
}

.blog-newsletter-subscribed i {
    font-size: 48px;
    margin-bottom: 15px;
}

.blog-newsletter-manage {
    margin-top: 15px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-newsletter-manage:hover {
    background: white;
    color: var(--blog-primary);
}

/* ========================================
   FAQ Section
   ======================================== */

.blog-faq-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.blog-section-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out;
}

.blog-section-header p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
}

.blog-gradient-text {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.blog-faq-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.blog-faq-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.blog-faq-toggle {
    width: 100%;
    padding: 25px 30px;
    background: transparent;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.blog-faq-toggle:hover {
    background: #edf4f6;
}

.blog-faq-question {
    font-size: 18px;
    font-weight: 600;
    color: #247772;
    text-align: left;
    padding-right: 20px;
}

.blog-faq-icon {
    position: relative;
    width: 30px;
    height: 30px;
    background: #edf4f6;
    border-radius: 50%;
    flex-shrink: 0;
}

.blog-faq-icon i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: var(--blog-primary);
    transition: all 0.3s ease;
}

.blog-faq-icon .fa-minus {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.blog-faq-card.active .blog-faq-icon .fa-plus {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.blog-faq-card.active .blog-faq-icon .fa-minus {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0);
}

.blog-faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.blog-faq-card.active .blog-faq-content {
    max-height: 500px;
}

.blog-faq-answer {
    padding: 10px 30px 25px;
    font-size: 16px;
    line-height: 1.6;
}

/* ========================================
   Quiz Section
   ======================================== */

.blog-quiz-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #edf4f6 0%, #fff 100%);
    position: relative;
    overflow: hidden;
}

.blog-quiz-section-pattern {
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5v10m0 30v10m-20-25h10m30 0h10' stroke='%23005F5F' stroke-width='1'/%3E%3Ccircle cx='30' cy='30' r='5' fill='%23005F5F'/%3E%3Ccircle cx='30' cy='15' r='2' fill='%23005F5F'/%3E%3Ccircle cx='30' cy='45' r='2' fill='%23005F5F'/%3E%3Ccircle cx='20' cy='30' r='2' fill='%23005F5F'/%3E%3Ccircle cx='40' cy='30' r='2' fill='%23005F5F'/%3E%3C/svg%3E");
}

/* ========================================
   Related Articles Section
   ======================================== */

.blog-related-section {
    padding: 100px 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.blog-related-carousel {
    position: relative;
    margin-top: 40px;
}

.blog-carousel-container {
    overflow: hidden;
    border-radius: 24px;
    padding: 15px;
}

.blog-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    gap: 20px; /* Reduced gap for 4 items */
}

.blog-carousel-item {
    flex: 0 0 calc(25% - 15px); /* 4 items: 100% / 4 - gaps */
    background: white;
    border-radius: 20px;
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative; /* Added for proper shadow rendering */
}

.blog-carousel-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.blog-carousel-link {
    text-decoration: none;
    color: inherit;
}

.blog-carousel-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Changed from 60% to 100% for square images */
    overflow: hidden;
    border-radius: 20px 20px 0 0; /* Added to match card radius */
}

.blog-carousel-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-carousel-item:hover .blog-carousel-image img {
    transform: scale(1.1);
}

.blog-placeholder-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #edf4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dee2e6;
    font-size: 48px;
}

.blog-verified-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.blog-verified-badge i {
    color: var(--blog-primary);
    font-size: 20px;
}

.blog-carousel-content {
    padding: 25px;
}

.blog-carousel-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 95, 95, 0.1);
    color: var(--blog-primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.blog-carousel-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #212529;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-carousel-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: #6c757d;
}

.blog-carousel-meta i {
    margin-right: 5px;
    color: var(--blog-primary);
}

/* Carousel Navigation */
.blog-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

.blog-carousel-prev {
    left: -25px;
}

.blog-carousel-next {
    right: -25px;
}

.blog-carousel-nav:hover {
    background: var(--blog-primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.blog-carousel-nav i {
    font-size: 20px;
}

.blog-carousel-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.blog-carousel-nav:disabled:hover {
    background: white;
    color: #212529;
    transform: translateY(-50%);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .blog-carousel-item {
        flex: 0 0 calc(33.333% - 13.33px); /* 3 items on smaller desktop */
    }
}

@media (max-width: 1024px) {
    .blog-carousel-item {
        flex: 0 0 calc(50% - 10px); /* 2 items on tablet */
    }
}

@media (max-width: 768px) {
    .blog-carousel-item {
        flex: 0 0 100%; /* 1 item on mobile */
    }
    
    .blog-carousel-item:hover {
        transform: none;
    }
    
    .blog-carousel-container {
        padding: 5px 0; /* Less padding on mobile */
    }
    
    .blog-carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .blog-carousel-prev {
        left: 10px;
    }
    
    .blog-carousel-next {
        right: 10px;
    }
}

/* Dark mode support */
[data-theme="dark"] .blog-related-section {
    background: #1a1a1a;
}

[data-theme="dark"] .blog-carousel-item {
    background: #2d2d2d;
}

[data-theme="dark"] .blog-carousel-title {
    color: #e0e0e0;
}

[data-theme="dark"] .blog-carousel-nav {
    background: #2d2d2d;
}

[data-theme="dark"] .blog-carousel-nav:hover {
    background: var(--blog-primary);
    color: white;
}


css/* ========================================
   Sources Section
   ======================================== */

.blog-sources-section {
    padding: 100px 0;
    background: #edf4f6;
}

.blog-sources-card {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.blog-sources-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.blog-sources-header i {
    font-size: 32px;
    color: var(--blog-primary);
}

.blog-sources-header h2 {
    margin: 0;
    font-size: 32px;
    color: var(--tty-header-primary);
}

.blog-sources-content {
    font-size: 16px;
    line-height: 1.8;
}

.blog-sources-content a {
    color: var(--tty-secondary);
    text-decoration: underline;
    transition: all 0.3s ease;
    /* Add word-break properties for better link handling */
    word-break: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

.blog-sources-content a:hover {
    color: var(--tty-secondary-dark);
    text-decoration: none;
}

.blog-sources-content ol,
.blog-sources-content ul {
    padding-left: 30px;
    margin-bottom: 20px;
}

.blog-sources-content li {
    margin-bottom: 10px;
    /* Ensure list items also break properly */
    word-break: break-word;
    overflow-wrap: break-word;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 146, 76, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(229, 146, 76, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(229, 146, 76, 0);
    }
}

/* ========================================
   Floating TOC
   ======================================== */

.blog-toc {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.floating-toc-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--tty-bg-linear-graniet);
    color: white;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 24px;
}

.floating-toc-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.floating-toc-button i {
    font-size: 24px;
}

.tty_blog-template-default.single.single-tty_blog .transtoyou-back-to-top.show {
  right: 156px;
}

@media (min-width: 768px) {
  body.single-tty_blog .sb-chat-btn {
    right: 88px;
    }
}

.floating-toc-menu {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 300px;
    max-height: 500px;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
}

.blog-toc.active .floating-toc-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-toc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #edf4f6;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.06);
}

.floating-toc-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.floating-toc-close {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-align: center !important;
    text-transform: none;
    background: rgba(22, 51, 0, .078) !important;
    padding: 8px 8px !important;
    border-radius: 50%;
    transition: .3s;
    width: 36px;
    border: none !important;
    height: 36px;
    font-weight: 400 !important;
    line-height: 21px;
    cursor: pointer;
    margin-right: -5px;
    color: #121212;
}

.floating-toc-close:hover {
    color: #d44646 !important;
    transform: rotate(90deg);
}

.floating-toc-content {
    display: flex;
    flex-direction: column;
    max-height: calc(500px - 50px);
}

.floating-toc-sections {
    padding: 15px 20px;
    overflow-y: auto;
    max-height: 300px;
}

.floating-toc-section-title {
    margin-bottom: 14px;
    transition: all 0.2s ease;
}

.floating-toc-section-title a {
    color: #005f5f;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: block;
}

.floating-toc-section-title a:hover {
    color: #e5924c;
}

.floating-toc-section-title.active a {
    color: #e5924c;
    font-weight: 700;
}

.treatment-toc .toc-level-h2 {
    font-weight: 600;
}

.treatment-toc .toc-level-h3 {
    padding-left: 15px;
    font-size: 0.95em;
}

.floating-toc-actions {
    padding: 15px 20px;
    border-top: 1px solid #edf4f6;
    background-color: #f9f9f9;
}

.floating-toc-share {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-toc-share span {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-toc-share-buttons {
    display: flex;
    gap: 15px;
}

.toc-share-button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.toc-share-button.linkedin {
    background-color: #0a66c2;
}

.toc-share-button.whatsapp {
    background-color: #25d366;
}

.toc-share-button.copy {
    background-color: #6c757d;
}

.toc-share-button.copy.copied {
    background-color: #28a745;
}

.floating-toc-section-title.toc-section a {
    color: #005f5f;
    font-weight: 600;
    margin-top: 15px;
    background: #edf4f6;
    padding: 6px 20px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.toc-share-button:hover {
    transform: translateY(-3px);
    color: white;
}

.toc-share-button.facebook {
    background-color: #1877f2;
}

.toc-share-button.twitter {
    background-color: #000000;
}

.toc-share-button.whatsapp {
    background-color: #25D366;
}

.toc-share-button.email {
    background-color: #ea4335;
}

.floating-toc-section-title.toc-level-section {
  color: #005f5f;
  font-weight: 600;
  margin-top: 15px;
  background: #edf4f6;
  padding: 6px 20px;
  border-radius: 30px;
  margin-bottom: 15px;
}

/* Pulse animation for the TOC button */
.floating-toc-button.pulse {
    animation: toc-pulse 2s infinite;
}

@keyframes toc-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 95, 95, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 95, 95, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 95, 95, 0);
    }
}

/* ========================================
   Modal Styles
   ======================================== */

.blog-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.blog-modal[aria-hidden="false"] {
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.blog-modal-container {
    position: relative;
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.blog-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #6c757d;
    font-size: 20px;
}

.blog-modal-close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

.blog-modal-header {
    padding: 30px 30px 20px;
}

.blog-modal-header h3 {
    margin: 0;
    font-size: 24px;
    color: #212529;
}

.blog-modal-body {
    padding: 0 30px 20px;
}

.blog-modal-body p {
    color: #6c757d;
    line-height: 1.6;
}

.blog-modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.blog-modal-cancel,
.blog-modal-confirm {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-modal-cancel {
    background: #edf4f6;
    color: #6c757d;
}

.blog-modal-cancel:hover {
    background: #e9ecef;
}

.blog-modal-confirm {
    background: #dc3545;
    color: white;
}

.blog-modal-confirm:hover {
    background: #c82333;
    transform: translateY(-2px);
}


#sources-section {
  padding: 100px 0;
  background: #edf4f6;
}

[data-theme="dark"] #sources-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* ========================================
   TOC Spotlight
   ======================================== */

.blog-toc-spotlight {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: var(--blog-primary);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 95, 95, 0.3);
    display: none;
    z-index: 98;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: spotlightBounce 2s ease-in-out infinite;
}

.blog-toc-spotlight.show {
    display: block;
}

.blog-toc-spotlight:hover {
    background: var(--blog-primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 95, 95, 0.4);
}

.blog-spotlight-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: white;
    color: var(--blog-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.blog-spotlight-close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

.blog-spotlight-arrow {
    position: absolute;
    bottom: -8px;
    right: 35px;
    width: 20px;
    height: 20px;
    fill: var(--blog-primary);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes spotlightBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ========================================
   Animations
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Responsive Design
   ======================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .blog-container {
        padding: 0 20px;
    }
    
    .blog-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-hero-right {
        order: -1;
    }
    
    .blog-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .blog-content-sidebar {
        position: static;
    }
    
    .blog-carousel-item {
        flex: 0 0 calc(50% - 15px);
    }
    
    .blog-faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* Typography */
    .blog-hero-title {
        font-size: 32px;
    }
    
    .blog-expert-main {
        flex-direction: column;
        text-align: center;
    }
    
    .blog-expert-avatar {
        margin: 0 auto;
    }
    
    .blog-expert-info h3 {
     font-size: 20px !important;
    }
    
    .blog-expert-meta {
        gap: 15px;
        flex-direction: column;
    }
    .blogexpert-bio p {
        padding: 0px;
        font-size: 14px;
        line-height: 1.6;
        color: var(--tty-text-secondary);
        margin: 0px;
    }
    
    .blog-sidebar-card.blog-related-products-mini {
        display: none !important;
    }
    
    .blog-sidebar-card {
        border-radius: 0px;
        box-shadow: none;
        padding: 15px;
        margin: 0px -15px;
    }
    
    .tty-secondary-links {
        display: none;
    }

    .blog-sidebar-card:hover {
        transform: none;
        box-shadow: none;
    }
    
    .blog-breadcrumbs-modern ol {
    	display: none !important;
  	}
    
    .blog-hero-subtitle {
        font-size: 18px;
    }
    
    .blog-sources-content a {
        word-break: break-all;
        overflow-wrap: anywhere;
        display: inline-block;
        max-width: 100%;
    }
    
    /* Adjust list padding for better mobile display */
    .blog-sources-content ol,
    .blog-sources-content ul {
        padding-left: 15px;
    }
    
    .blog-sources-content li {
        margin-bottom: 15px;
    }
    
    /* Hero Section */
    .blog-hero {
    	margin-top: 5px;
        padding: 0px 0 80px;
    }
    
    .blog-float-element.blog-float-1 {
  		display: none;
	}
	
	.blog-table-of-contents {
  		margin: 40px 0px 40px 0px;
	}
	
	.blog-hero-image {
  		margin: -40px -15px 0px -15px;
  		border-radius: 0px;
	}
    
    .blog-hero-right {
  		position: relative;
  		animation: none;
	}

    .blog-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .blog-btn-primary,
    .blog-btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    /* Content */
    .blog-content {
        padding: 60px 0;
    }
    
    .blog-entry-content {
        font-size: 16px;
    }
    
    /* Carousel */
    .blog-carousel-item {
        flex: 0 0 100%;
    }
    
    .blog-carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .blog-carousel-prev {
        left: 10px;
    }
    
    .blog-sidebar-card h3 {
        text-align: center;
        font-weight: 600;
        color: var(--tty-header-primary);
        font-size: 22px;
        line-height: 28px;
    }
    
    .blog-carousel-next {
        right: 10px;
    }
    
    /* Sections */
    .blog-faq-section,
    .blog-quiz-section,
    .blog-related-section,
    .blog-sources-section {
        padding: 60px 0;
    }
    
    .blog-sources-card {
        padding: 30px 20px;
    }
    
    /* Share Buttons */
    .blog-share-buttons-large {
      gap: 0px;
        justify-content: space-between;
    }
    
    .blog-share-section {
        padding: 30px 20px;
    }
    
    .blog-share-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .blog-share-header h3 {
        font-size: 20px;
    }
    
    .blog-share-button-large {
        font-size: 14px;
        min-width: auto;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0px;
    }
    
    .blog-share-button-large span {
        display: none;
    }
    
    /* Floating TOC */
    .blog-toc {
        right: 20px;
        bottom: 20px;
    }
    
    
    .floating-toc-menu {
        width: 280px;
        bottom: 70px;
        right: -10px;
    }
    
    /* Modal */
    .blog-modal-container {
        margin: 20px;
    }
    
    /* Reading Progress */
    .blog-reading-progress {
        height: 3px;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .blog-container {
        padding: 0 15px;
    }
    
    .blog-heartbeat-container {
        margin: 10px 0;
    }
    
    .blog-action-btn:hover {
        background: var(--tty-bg-secondary);
        transform: none;
        color: #212529;
    }
    
    .blog-action-btn:hover i {
        color: var(--blog-primary);
    }
    
    .blog-breadcrumbs-modern {
        font-size: 12px;
    }
    
    .blog-breadcrumbs-modern ol {
        gap: 20px;
    }
    
    .blog-hero-meta {
        gap: 15px;
    }
    
    .blog-meta-item {
        font-size: 14px;
    }
    
    .blog-expert-card-modern {
        padding: 20px;
    }
    
    
    .blog-section-header h2 {
        font-size: 28px;
    }
    
    .blog-faq-toggle {
        padding: 20px;
    }
    
    .blog-faq-question {
        font-size: 16px;
    }
}

/* ========================================
   Dark Mode Support
   ======================================== */

[data-theme="dark"] .blog-content {
    background: #1a1a1a;
}


[data-theme="dark"] .blog-sidebar-card {
    background: #2d2d2d;
}

[data-theme="dark"] .blog-sidebar-card h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .blog-action-btn {
    background: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .blog-disclaimer,
[data-theme="dark"] .blog-table-of-contents {
    background: #2d2d2d;
}

[data-theme="dark"] .blog-share-section {
    background: #1a2e2d;
}

[data-theme="dark"] .blog-share-header h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .blog-share-login-hint {
    color: #adb5bd;
}

[data-theme="dark"] .blog-share-login-hint:hover {
    color: #4dd0c7;
}

[data-theme="dark"] .blog-share-stats-bar {
    background: rgba(77, 208, 199, 0.2);
}

[data-theme="dark"] .blog-share-stats-text {
    color: #adb5bd;
}

[data-theme="dark"] .blog-share-feedback {
    background: rgba(40, 167, 69, 0.2);
    color: #4dd0c7;
}

[data-theme="dark"] .blog-faq-section {
    background: #1a1a1a;
}

[data-theme="dark"] .blog-faq-card {
    background: #2d2d2d;
}

[data-theme="dark"] .blog-faq-question {
    color: #e0e0e0;
}

[data-theme="dark"] .blog-sources-section {
    background: #1a1a1a;
}

[data-theme="dark"] .blog-sources-card {
    background: #2d2d2d;
}

[data-theme="dark"] .blog-sources-header h2 {
    color: #e0e0e0;
}

[data-theme="dark"] .floating-toc-menu {
    background: #2d2d2d;
}

[data-theme="dark"] .floating-toc-header {
    border-bottom-color: #3a3a3a;
}

[data-theme="dark"] .floating-toc-actions {
    background: #3a3a3a;
    border-top-color: #3a3a3a;
}

[data-theme="dark"] .blog-modal-container {
    background: #2d2d2d;
}

[data-theme="dark"] .blog-modal-header h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .blog-toast {
    background: #2d2d2d;
}

[data-theme="dark"] .blog-toast-message {
    color: #e0e0e0;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    /* Hide non-essential elements */
    .floating-toc,
    .blog-reading-progress,
    .blog-hero-actions,
    .blog-content-sidebar,
    .blog-share-section,
    .blog-carousel-nav,
    .blog-modal,
    .blog-toast,
    .blog-toc-spotlight,
    header,
    footer {
        display: none !important;
    }
    
    /* Reset backgrounds */
    body,
    .blog-hero,
    .blog-content,
    .blog-faq-section,
    .blog-sources-section {
        background: white !important;
        color: black !important;
    }
    
    /* Ensure text is readable */
    * {
        color: black !important;
        background: transparent !important;
    }
    
    /* Page breaks */
    .blog-hero,
    .blog-faq-section,
    .blog-sources-section {
        page-break-before: always;
    }
    
    /* Links */
    a {
        text-decoration: underline !important;
    }
    
    a[href^="http"]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
    }
}

/* ========================================
   Accessibility
   ======================================== */

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    * {
        border-color: transparent !important;
    }
    
    *:focus {
        outline-width: 3px;
    }
    
    .blog-btn-primary,
    .blog-btn-secondary {
        border: 2px solid currentColor !important;
    }
}

/* ========================================
   Products Section
   ======================================== */

.blog-products-section {
    padding: 100px 0;
    background: var(--tty-bg-secondary);
    position: relative;
}

[data-theme="dark"] .blog-products-section {
    background: #1a1a1a;
}

.blog-products-section-heartbeat-container {
    margin: 20px 0;
}

/* Modern Filter Bar */
.blog-products-filter-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.blog-filter-left,
.blog-filter-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.blog-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--blog-primary);
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-filter-btn:hover {
    background: var(--blog-primary-dark);
    transform: translateY(-2px);
    color: white;
}

.blog-search-box {
    position: relative;
    width: 300px;
}

.blog-search-box input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.blog-search-box input:focus {
    outline: none;
    border-color: var(--blog-primary);
    box-shadow: 0 0 0 3px rgba(0, 95, 95, 0.1);
}

.blog-search-box i {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blog-primary);
    pointer-events: none;
}

.blog-filter-select {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    border-radius: 30px;
    font-family: inherit;
    font-size: 15px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blog-filter-select:focus {
    outline: none;
    border-color: var(--blog-primary);
}

.blog-filter-reset {
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-filter-reset:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Products Grid */
.blog-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 30px;
    animation: fadeIn 0.6s ease-out;
}

.blog-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.blog-product-card:nth-child(1) { animation-delay: 0.1s; }
.blog-product-card:nth-child(2) { animation-delay: 0.2s; }
.blog-product-card:nth-child(3) { animation-delay: 0.3s; }
.blog-product-card:nth-child(4) { animation-delay: 0.4s; }

.blog-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.blog-product-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    background: #edf4f6;
}

.blog-product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-product-card:hover .blog-product-image img {
    transform: scale(1.1);
}

.blog-product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--blog-secondary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.blog-quick-view {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.blog-product-card:hover .blog-quick-view {
    opacity: 1;
    transform: scale(1);
}

.blog-quick-view:hover {
    background: var(--blog-primary);
    color: white;
    transform: scale(1.1);
}

/* Product Info */
.blog-product-info {
    padding: 20px;
}

.blog-product-info h4 {
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
}

.blog-product-info h4 a {
    color: #212529;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-product-info h4 a:hover {
    color: var(--blog-primary);
}

.blog-product-excerpt {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 15px;
}

.blog-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--blog-primary);
    margin-bottom: 15px;
}

.blog-product-price del {
    color: #6c757d;
    font-weight: 400;
    font-size: 16px;
    margin-right: 8px;
}

.blog-product-price ins {
    text-decoration: none;
}

/* Product Actions */
.blog-product-actions {
    display: flex;
    gap: 10px;
}

.blog-btn-primary.blog-btn-small {
    padding: 10px 20px;
    font-size: 14px;
    flex: 1;
    justify-content: center;
}

/* No Results Message */
.blog-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #6c757d;
    animation: fadeInUp 0.6s ease-out;
}

.blog-no-results i {
    font-size: 80px;
    color: var(--blog-primary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.blog-no-results p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Active state for reset button */
.blog-filter-reset.active {
    background: var(--blog-primary);
    color: white;
}

.blog-filter-reset.active:hover {
    background: var(--blog-primary-dark);
}

/* Quick View Modal Styles */
.blog-quick-view-container {
    max-width: 900px;
}

.blog-quick-view-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 30px;
}

.blog-quick-view-gallery {
    position: relative;
    background: #edf4f6;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.blog-quick-view-gallery img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.blog-quick-view-details h2 {
    font-size: 24px;
    margin-bottom: 10px;
    color: #212529;
}

.blog-quick-view-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--blog-secondary);
    margin-bottom: 20px;
}

.blog-quick-view-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;
}

.blog-quick-view-specifications {
    background: #edf4f6;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.blog-quick-view-specifications > div {
    margin-bottom: 10px;
}

.blog-quick-view-specifications > div:last-child {
    margin-bottom: 0;
}

.blog-quick-view-specifications strong {
    color: #212529;
    margin-right: 8px;
}

.blog-quick-view-actions {
    display: flex;
    gap: 15px;
}

.blog-quick-view-view-product {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    background: var(--blog-primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.blog-quick-view-view-product:hover {
    background: var(--blog-primary-dark);
    transform: translateY(-2px);
    color: white;
}

/* Dark mode support for products */
[data-theme="dark"] .blog-product-card {
    background: #2d2d2d;
}

[data-theme="dark"] .blog-product-info h4 a {
    color: #e0e0e0;
}

[data-theme="dark"] .blog-product-excerpt {
    color: #a0a0a0;
}

[data-theme="dark"] .blog-search-box input {
    background: #2d2d2d;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .blog-filter-select {
    background: #2d2d2d;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .blog-quick-view-gallery {
    background: #3a3a3a;
}

[data-theme="dark"] .blog-quick-view-details h2 {
    color: #e0e0e0;
}

[data-theme="dark"] .blog-quick-view-specifications {
    background: #3a3a3a;
}

/* Responsive Design for Products Section */
@media (max-width: 1024px) {
    .blog-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .blog-products-section {
        padding: 60px 0;
    }
    
    /* Enhanced Products Filter for Mobile */
    .blog-products-filter-modern {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .blog-filter-left,
    .blog-filter-right {
        width: 100%;
        flex-direction: column;
        gap: 15px;
    }
    
    .blog-toc-spotlight {
        bottom: 250px;
        right: 10px;
    }
    
    /* All Products Button - Full Width on Mobile */
    .blog-filter-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 16px;
        background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-primary-light) 100%);
        box-shadow: 0 4px 15px rgba(0, 95, 95, 0.2);
    }
    
    .blog-filter-btn:hover,
    .blog-filter-btn:active {
        background: linear-gradient(135deg, var(--blog-primary-dark) 0%, var(--blog-primary) 100%);
        box-shadow: 0 6px 20px rgba(0, 95, 95, 0.3);
    }
    
    /* Search Box - Enhanced for Mobile */
    .blog-search-box {
        width: 100%;
    }
    
    .blog-search-box input {
        width: 100%;
        padding: 16px 50px 16px 20px !important;
        font-size: 16px;
        border: 2px solid #e9ecef;
        background: #edf4f6;
        transition: all 0.3s ease;
    }
    
    .blog-search-box input:focus {
        border-color: var(--blog-primary);
        background: white;
        box-shadow: 0 0 0 4px rgba(0, 95, 95, 0.1);
    }
    
    .blog-search-box i {
        font-size: 20px;
        right: 18px;
    }
    
    /* Sort Dropdown - Enhanced for Mobile */
    .blog-filter-select {
        width: 100%;
        padding: 16px 40px 16px 20px;
        font-size: 16px;
        border: 2px solid #e9ecef;
        background: #edf4f6;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23005F5F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 20px center;
        cursor: pointer;
    }
    
    .blog-filter-select:focus {
        border-color: var(--blog-primary);
        box-shadow: 0 0 0 4px rgba(0, 95, 95, 0.1);
    }
    
    /* Reset Button - Enhanced for Mobile */
    .blog-filter-reset {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
        font-size: 16px;
        background: #edf4f6;
        border: 2px solid #e9ecef;
        color: #212529;
        min-height: 52px;
    }
    
    .blog-filter-reset:hover,
    .blog-filter-reset:active {
        background: #e9ecef;
        border-color: var(--blog-primary);
        transform: translateY(-1px);
    }
    
    .blog-filter-reset.active {
        background: linear-gradient(135deg, var(--blog-secondary) 0%, var(--blog-secondary-light) 100%);
        border-color: var(--blog-secondary);
        color: white;
        box-shadow: 0 4px 15px rgba(229, 146, 76, 0.3);
    }
    
    .blog-filter-reset.active:hover,
    .blog-filter-reset.active:active {
        background: linear-gradient(135deg, var(--blog-secondary-dark) 0%, var(--blog-secondary) 100%);
        border-color: var(--blog-secondary-dark);
        box-shadow: 0 6px 20px rgba(229, 146, 76, 0.4);
    }
    
    /* Products Grid on Mobile */
    .blog-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .blog-product-card {
        border-radius: 16px;
    }
    
    .blog-product-info {
        padding: 15px;
    }
    
    .blog-product-info h4 {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .blog-product-excerpt {
        display: none;
    }
    
    .blog-product-price {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .blog-btn-primary.blog-btn-small {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* Quick View Modal on Mobile */
    .blog-quick-view-container {
        margin: 20px;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
    }
    
    .blog-quick-view-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .blog-quick-view-actions {
        flex-direction: column;
    }
    
    .blog-quick-view-view-product {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .blog-products-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .blog-filter-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .blog-search-box input {
        padding: 14px 45px 14px 18px !important;
        font-size: 15px;
    }
    
    .blog-filter-select {
        padding: 14px 35px 14px 18px;
        font-size: 15px;
    }
    
    .blog-filter-reset {
        padding: 14px 20px;
        font-size: 15px;
        min-height: 48px;
    }
}

/* ========================================
   Read Status Indicators
   ======================================== */

/* Hero Read Status */
.blog-title-area {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.blog-read-status-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    right: 20px;
    top: 20px;
    position: absolute;
    z-index: 10;
    transition: all 0.5s ease;
}

.blog-read-status-hero .blog-read-status-text {
    transition: all 0.3s ease;
}

.blog-read-status-hero i {
    font-size: 10px;
    transition: color 0.3s ease;
}

.blog-read-status-hero.blo-status-unread {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
    color: #f44336;
}

.blog-read-status-hero.blo-status-unread i {
    color: #f44336;
}

.blog-read-status-hero.blo-status-partial {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.3);
    color: #ff9800;
}

.blog-read-status-hero.blo-status-partial i {
    color: #ff9800;
}

.blog-read-status-hero.blo-status-read {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.blog-read-status-hero.blo-status-read i {
    color: #4caf50;
}

/* Mark as Read Button */
.blog-mark-read-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.blog-mark-read-btn.updating {
    pointer-events: none;
    opacity: 0.7;
}

.blog-read-status-hero.blo-status-read {
    background: rgba(76, 175, 80, 0.1);
    border-color: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.blog-read-status-hero.blo-status-partial {
    background: rgba(255, 152, 0, 0.1);
    border-color: rgba(255, 152, 0, 0.3);
    color: #ff9800;
}

.blog-read-status-hero.blo-status-unread {
    background: rgba(244, 67, 54, 0.1);
    border-color: rgba(244, 67, 54, 0.3);
    color: #f44336;
}

/* Progress Milestone Markers (invisible) */
.read-progress-marker {
    visibility: hidden;
    pointer-events: none;
}

/* Success Animation for 100% Read */
@keyframes readComplete {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
    }
    100% {
        transform: scale(1);
    }
}

.blog-read-status-hero.read-complete {
    animation: readComplete 0.6s ease-out;
}

.blog-mark-read-btn.updating::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.blog-mark-read-btn.updating i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success Animation */
.blog-mark-read-btn.success {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    }
    100% {
        transform: scale(1);
    }
}

.blog-reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--blog-primary) 0%, var(--blog-secondary) 100%);
    width: 0;
    transition: width 0.1s linear;
    will-change: width;
    position: relative;
}

/* Milestone indicator */
.blog-reading-progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blog-reading-progress-bar.milestone::after {
    opacity: 1;
}

/* ========================================
   Additional Dark Mode Support - Missing Elements
   ======================================== */

/* Blog Entry Content */
[data-theme="dark"] .blog-entry-content {
    color: #e0e0e0;
}

[data-theme="dark"] .blog-entry-content h2,
[data-theme="dark"] .blog-entry-content h3,
[data-theme="dark"] .blog-entry-content h4 {
    color: #f0f0f0;
}

[data-theme="dark"] .blog-entry-content p {
    color: #d0d0d0;
}

[data-theme="dark"] .blog-entry-content blockquote {
    color: #b0b0b0;
    border-left-color: var(--blog-primary-light);
}

[data-theme="dark"] .blog-entry-content a {
    color: var(--blog-secondary-light);
}

[data-theme="dark"] .blog-entry-content a:hover {
    color: var(--blog-secondary);
}

/* Tags */
[data-theme="dark"] .blog-tag-item {
    background: #3a3a3a;
    color: #e0e0e0;
    border-color: #4a4a4a;
}

[data-theme="dark"] .blog-tag-item:hover {
    background: var(--blog-primary);
    color: white;
    border-color: var(--blog-primary);
}

/* Share Buttons */
[data-theme="dark"] .blog-share-button-large {
    opacity: 0.9;
}

[data-theme="dark"] .blog-share-button-large:hover {
    opacity: 1;
}

/* Products Section */
[data-theme="dark"] .blog-products-section {
    background: #1a1a1a;
}

[data-theme="dark"] .blog-product-card {
    background: #2d2d2d;
}

[data-theme="dark"] .blog-product-info h4 a {
    color: #e0e0e0;
}

[data-theme="dark"] .blog-product-info h4 a:hover {
    color: var(--blog-primary-light);
}

[data-theme="dark"] .blog-product-excerpt {
    color: #a0a0a0;
}

[data-theme="dark"] .blog-product-price {
    color: var(--blog-primary-light);
}

[data-theme="dark"] .blog-product-badge {
    background: var(--blog-secondary-dark);
}

[data-theme="dark"] .blog-quick-view {
    background: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .blog-quick-view:hover {
    background: var(--blog-primary);
    color: white;
}

[data-theme="dark"] .blog-no-results {
    color: #a0a0a0;
}

[data-theme="dark"] .blog-no-results i {
    color: var(--blog-primary-light);
}

/* Reading Progress Bar */
[data-theme="dark"] .blog-reading-progress {
    background: rgba(255, 255, 255, 0.1);
}

/* Breadcrumbs */
[data-theme="dark"] .blog-breadcrumbs-modern a {
    color: #b0b0b0;
}

[data-theme="dark"] .blog-breadcrumbs-modern a:hover {
    color: var(--blog-secondary-light);
}

[data-theme="dark"] .blog-breadcrumbs-modern .current {
    color: #808080;
}

[data-theme="dark"] .blog-breadcrumbs-modern li:not(:last-child)::after {
    border-top-color: #808080;
    border-right-color: #808080;
}

/* Category Pills */
[data-theme="dark"] .blog-category-pill {
    background: rgba(0, 95, 95, 0.2);
    color: var(--blog-primary-light);
    border-color: rgba(0, 95, 95, 0.3);
}

[data-theme="dark"] .blog-category-pill:hover {
    background: var(--blog-primary);
    color: white;
    border-color: var(--blog-primary);
}

/* Meta Items */
[data-theme="dark"] .blog-meta-item {
    color: #a0a0a0;
}

[data-theme="dark"] .blog-meta-item i {
    color: var(--blog-primary-light);
}

/* Date Overlay */
[data-theme="dark"] .blog-date-overlay {
    background: rgba(30, 42, 46, 0.95);
}

/* Reading Time */
[data-theme="dark"] .blog-reading-time {
    background: rgba(30, 42, 46, 0.95);
}

/* Filter Elements */
[data-theme="dark"] .blog-filter-btn {
    background: var(--blog-primary-dark);
    border-color: var(--blog-primary-dark);
}

[data-theme="dark"] .blog-filter-btn:hover {
    background: var(--blog-primary);
    border-color: var(--blog-primary);
}

[data-theme="dark"] .blog-filter-select {
    background: #2d2d2d;
    border-color: #3a3a3a;
    color: #e0e0e0;
}

[data-theme="dark"] .blog-faq-toggle:hover {
  background: var(--tty-bg-secondary);
}

[data-theme="dark"] .blog-filter-reset {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

[data-theme="dark"] .blog-filter-reset:hover {
    background: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .blog-filter-reset.active {
    background: var(--blog-primary);
    color: white;
}

/* ========================================
   Table Styling for Blog Content
   ======================================== */

.blog-entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    font-size: 15px;
    border: none;
}

.blog-entry-content table thead {
    background: linear-gradient(135deg, var(--blog-primary) 0%, var(--blog-primary-dark) 100%);
}

.blog-entry-content table thead tr {
    border: none;
}

.blog-entry-content table thead th {
    padding: 18px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.blog-entry-content table thead th:first-child {
    border-top-left-radius: 16px;
}

.blog-entry-content table thead th:last-child {
    border-top-right-radius: 16px;
}

.blog-entry-content table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.blog-entry-content table tbody tr:last-child {
    border-bottom: none;
}

.blog-entry-content table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.blog-entry-content table tbody tr:hover {
    background: rgba(0, 95, 95, 0.04);
    transform: translateX(2px);
}

.blog-entry-content table tbody td {
    padding: 16px 20px;
    color: #495057;
    line-height: 1.6;
    border: none;
    vertical-align: top;
}

.blog-entry-content table tbody td:first-child {
    font-weight: 600;
    color: var(--blog-primary);
}

/* Responsive Table Design for Mobile */
@media (max-width: 768px) {
    .blog-entry-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: 12px;
        font-size: 13px;
        margin: 30px 0;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }
    
    .blog-entry-content table thead th {
        padding: 14px 12px;
        font-size: 12px;
        white-space: nowrap;
    }
    
    .blog-entry-content table tbody td {
        padding: 12px;
        font-size: 13px;
        min-width: 120px;
    }
    
    .blog-entry-content table tbody tr:hover {
        transform: none;
    }
}

/* Extra Small Screens - Alternative Card Layout */
@media (max-width: 480px) {
    .blog-entry-content table {
        font-size: 12px;
    }
    
    .blog-entry-content table thead th {
        padding: 12px 10px;
        font-size: 11px;
    }
    
    .blog-entry-content table tbody td {
        padding: 10px;
        font-size: 12px;
        min-width: 100px;
    }
}

/* Dark Mode Support for Tables */
[data-theme="dark"] .blog-entry-content table {
    background: #2d2d2d;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .blog-entry-content table thead {
    background: linear-gradient(135deg, var(--blog-primary-dark) 0%, #003333 100%);
}

[data-theme="dark"] .blog-entry-content table thead th {
    color: #e0e0e0;
}

[data-theme="dark"] .blog-entry-content table tbody tr {
    border-bottom-color: #3a3a3a;
}

[data-theme="dark"] .blog-entry-content table tbody tr:nth-child(even) {
    background: #252525;
}

[data-theme="dark"] .blog-entry-content table tbody tr:hover {
    background: rgba(127, 205, 187, 0.08);
}

[data-theme="dark"] .blog-entry-content table tbody td {
    color: #d0d0d0;
}

[data-theme="dark"] .blog-entry-content table tbody td:first-child {
    color: var(--blog-primary-light);
}