/* blog-detail.css - COMPLETE VERSION (Modern & Responsive) */

/* ===== BLOG DETAIL VARIABLES ===== */
:root {
    --gt-blog-detail-primary: #0C185A;
    --gt-blog-detail-primary-dark: #1E2B7A;
    --gt-blog-detail-primary-light: rgba(30, 43, 122, 0.10);
    --gt-blog-detail-secondary: #0C185A;
    --gt-blog-detail-accent: #E31B23;
    --gt-blog-detail-success: #E31B23;
    --gt-blog-detail-warning: #E31B23;
    --gt-blog-detail-error: #E31B23;
    --gt-blog-detail-dark: #0C185A;
    --gt-blog-detail-dark-light: #1E2B7A;
    --gt-blog-detail-gray: #626262;
    --gt-blog-detail-gray-light: #f0f0f0;
    --gt-blog-detail-white: #ffffff;
    --gt-blog-detail-bg-gradient: linear-gradient(135deg, #0C185A 0%, #1E2B7A 100%);
    --gt-blog-detail-text-gradient: linear-gradient(135deg, var(--gt-blog-detail-primary) 0%, var(--gt-blog-detail-accent) 100%);
    --gt-blog-detail-glass-bg: rgba(255, 255, 255, 0.1);
    --gt-blog-detail-glass-border: rgba(255, 255, 255, 0.2);
    --gt-blog-detail-shadow-sm: 0 2px 4px rgba(15, 23, 36, 0.1);
    --gt-blog-detail-shadow-md: 0 8px 24px rgba(15, 23, 36, 0.15);
    --gt-blog-detail-shadow-lg: 0 20px 60px rgba(15, 23, 36, 0.25);
    --gt-blog-detail-border-radius: 20px;
    --gt-blog-detail-border-radius-lg: 24px;
    --gt-blog-detail-transition: all 0.3s ease;
    
    /* New responsive variables */
    --gt-container-max: 1200px;
    --gt-content-max: 800px;
    --gt-space-xs: 4px;
    --gt-space-sm: 8px;
    --gt-space-md: 16px;
    --gt-space-lg: 24px;
    --gt-space-xl: 32px;
    --gt-space-2xl: 48px;
}

/* ===== BASE & RESET ===== */
* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html,
body {
    scrollbar-gutter: auto;
}

#kasaje-footer-include,
#kasaje-site-footer {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

#kasaje-site-footer.footer {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

#kasaje-site-footer .container-fluid {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.gt-page-content .container {
    width: 100%;
    max-width: var(--gt-container-max);
    margin: 0 auto;
    padding: 0 15px;
}

/* ===== BLOG DETAIL HERO ===== */
.gt-blog-detail-hero {
    position: relative;
    background: linear-gradient(135deg, #0C185A 0%, #E31B23 100%);
    padding: 100px 0 60px;
    overflow: hidden;
    color: var(--gt-blog-detail-white);
    text-align: center;
    margin-bottom: 40px;
}

.gt-blog-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
}

.gt-blog-detail-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--gt-content-max);
    margin: 0 auto;
}

.gt-blog-detail-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 20px;
    font-weight: 600;
    color: white;
}

.gt-blog-detail-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
    text-wrap: balance;
}

.gt-blog-detail-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.gt-blog-detail-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.gt-blog-detail-meta-item i {
    color: white;
}

/* ===== LOADING & ERROR STATES ===== */
.blog-detail-loading {
    text-align: center;
    padding: 80px 20px;
}

.blog-detail-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #0C185A;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.blog-detail-error {
    background: #f8d7da;
    color: #721c24;
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
    text-align: center;
}

/* ===== MAIN CONTENT LAYOUT - RESPONSIVE ===== */
.gt-blog-detail-main {
    padding: 60px 0;
    background: var(--gt-blog-detail-white);
}

.gt-blog-content-area {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    max-width: var(--gt-container-max);
    margin: 0 auto;
}

/* Prevent grid children from overflowing their column */
.gt-blog-content-area > * {
    min-width: 0;
    max-width: 100%;
}

.gt-blog-posts {
    min-width: 0;
    overflow: hidden;
}

/* Mobile-first responsive layout */
@media (max-width: 992px) {
    .gt-blog-content-area {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Move TOC to top on mobile */
    .gt-toc-container {
        order: -1;
        position: static;
        margin-bottom: 30px;
        max-height: none;
    }
}

/* ===== TABLE OF CONTENTS ===== */
.gt-toc-container {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 30px;
    background: var(--gt-blog-detail-white);
    border-radius: var(--gt-blog-detail-border-radius);
    padding: 25px;
    box-shadow: var(--gt-blog-detail-shadow-md);
    border: 1px solid var(--gt-blog-detail-gray-light);
}

@media (max-width: 768px) {
    .gt-toc-container {
        position: static;
        margin-bottom: 30px;
        max-height: none;
    }
}

.gt-toc-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gt-blog-detail-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gt-blog-detail-primary);
}

.gt-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gt-toc-item {
    margin-bottom: 8px;
}

.gt-toc-link {
    display: block;
    padding: 10px 15px;
    color: var(--gt-blog-detail-gray);
    text-decoration: none;
    border-radius: 10px;
    transition: var(--gt-blog-detail-transition);
    font-size: 14px;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
}

.gt-toc-link:hover,
.gt-toc-link:focus {
    background: var(--gt-blog-detail-primary-light);
    color: var(--gt-blog-detail-primary);
    transform: translateX(5px);
    border-color: var(--gt-blog-detail-primary-light);
    outline: none;
}

.gt-toc-link.active {
    background: var(--gt-blog-detail-primary);
    color: var(--gt-blog-detail-white);
    border-left-color: var(--gt-blog-detail-primary);
    font-weight: 500;
}

.gt-toc-link::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--gt-blog-detail-primary);
    border-radius: 50%;
    transition: var(--gt-blog-detail-transition);
    flex-shrink: 0;
}

.gt-toc-link.active::before {
    background: var(--gt-blog-detail-white);
}

.gt-toc-link.h2 {
    padding-left: 20px;
}

.gt-toc-link.h3 {
    padding-left: 35px;
    font-size: 13px;
}

.gt-toc-link.h4 {
    padding-left: 50px;
    font-size: 12px;
}

/* ===== FEATURED IMAGE ===== */
.gt-blog-detail-featured-image {
    border-radius: var(--gt-blog-detail-border-radius);
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--gt-blog-detail-shadow-md);
    max-width: 100%;
}

.gt-blog-detail-featured-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
    transition: var(--gt-blog-detail-transition);
    display: block;
}

.gt-blog-detail-featured-image:hover img {
    transform: scale(1.02);
}

/* ===== BLOG CONTENT ===== */
.gt-blog-detail-content {
    background: var(--gt-blog-detail-white);
    border-radius: var(--gt-blog-detail-border-radius);
    padding: 40px;
    box-shadow: var(--gt-blog-detail-shadow-md);
    border: 1px solid var(--gt-blog-detail-gray-light);
    margin-bottom: 40px;
    min-width: 0;
    overflow: hidden;
}

@media (max-width: 768px) {
    .gt-blog-detail-content {
        padding: 20px;
    }
}

.gt-blog-detail-body {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gt-blog-detail-dark);
    margin-bottom: 40px;
    overflow-wrap: anywhere !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
    hyphens: auto !important;
    max-width: 100%;
    overflow: hidden !important;
    min-width: 0;
}

@media (max-width: 768px) {
    .gt-blog-detail-body {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* Enhanced heading styles */
.gt-blog-detail-body h2,
.gt-blog-detail-body h3,
.gt-blog-detail-body h4 {
    color: var(--gt-blog-detail-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    scroll-margin-top: 120px;
    position: relative;
    transition: var(--gt-blog-detail-transition);
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.gt-blog-detail-body h2 {
    font-size: clamp(1.5rem, 4vw, 28px);
    font-weight: 700;
    border-bottom: 2px solid var(--gt-blog-detail-primary);
    padding-bottom: 10px;
}

.gt-blog-detail-body h3 {
    font-size: clamp(1.3rem, 3vw, 24px);
    font-weight: 600;
    border-left: 3px solid var(--gt-blog-detail-primary);
    padding-left: 15px;
}

.gt-blog-detail-body h4 {
    font-size: clamp(1.1rem, 2.5vw, 20px);
    font-weight: 600;
    color: #444;
}

.gt-blog-detail-body p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

@media (max-width: 768px) {
    .gt-blog-detail-body p {
        font-size: 1rem;
    }
    
    .gt-blog-detail-body h2 {
        font-size: 1.5rem;
    }
    
    .gt-blog-detail-body h3 {
        font-size: 1.3rem;
    }
    
    .gt-blog-detail-body h4 {
        font-size: 1.1rem;
    }
}

/* Heading highlight animation */
.gt-blog-detail-body h2:target,
.gt-blog-detail-body h3:target,
.gt-blog-detail-body h4:target {
    animation: gt-blog-detail-highlight 2s ease;
}

@keyframes gt-blog-detail-highlight {
    0% {
        background-color: var(--gt-blog-detail-primary-light);
        padding-left: 20px;
        border-radius: 10px;
    }
    100% {
        background-color: transparent;
        padding-left: 0;
        border-radius: 0;
    }
}

.gt-blog-detail-body blockquote {
    background: var(--gt-blog-detail-primary-light);
    border-left: 4px solid var(--gt-blog-detail-primary);
    padding: 25px;
    margin: 30px 0;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.2rem;
    color: #555;
    max-width: 100%;
}

@media (max-width: 768px) {
    .gt-blog-detail-body blockquote {
        padding: 15px;
        font-size: 1rem;
        margin: 20px 0;
    }
}

/* ===== TAGS SECTION ===== */
.gt-blog-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--gt-blog-detail-gray-light);
    border-bottom: 1px solid var(--gt-blog-detail-gray-light);
}

.gt-blog-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.gt-blog-tag-item {
    display: inline-block;
    padding: 6px 14px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 13px;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.gt-blog-tag-item:hover {
    background: linear-gradient(135deg, #0C185A 0%, #E31B23 100%);
    color: white;
    border-color: #0C185A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12,24,90, 0.2);
}

/* ===== REACTION SECTION ===== */
.gt-reaction-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .gt-reaction-section {
        padding: 20px;
        margin: 20px 0;
    }
}

.gt-reaction-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

@media (max-width: 768px) {
    .gt-reaction-title {
        font-size: 18px;
    }
}

.gt-reaction-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .gt-reaction-buttons {
        gap: 8px;
    }
}

.gt-reaction-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: white;
    color: #666;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .gt-reaction-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gt-reaction-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

.gt-reaction-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #ddd;
}

.gt-reaction-btn.active {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.gt-reaction-btn .count {
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.gt-reaction-btn.active .count {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Individual reaction colors */
.gt-reaction-btn.like.active {
    background: linear-gradient(135deg, #0C185A 0%, #E31B23 100%);
    border-color: #0C185A;
    color: white;
}

.gt-reaction-btn.love.active {
    background: linear-gradient(135deg, #e91e63 0%, #ad1457 100%);
    border-color: #e91e63;
    color: white;
}

.gt-reaction-btn.laugh.active {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-color: #ff9800;
    color: white;
}

.gt-reaction-btn.sad.active {
    background: linear-gradient(135deg, #2196f3 0%, #0d47a1 100%);
    border-color: #2196f3;
    color: white;
}

.gt-reaction-btn.angry.active {
    background: linear-gradient(135deg, #f44336 0%, #b71c1c 100%);
    border-color: #f44336;
    color: white;
}

/* ===== SHARE SECTION ===== */
.gt-blog-detail-share {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.gt-blog-detail-share-text {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.gt-blog-detail-share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gt-blog-detail-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 2px solid #dee2e6;
    border-radius: 50%;
    color: #495057;
    text-decoration: none;
    transition: var(--gt-blog-detail-transition);
    flex-shrink: 0;
}

.gt-blog-detail-share-btn:hover {
    border-color: var(--gt-blog-detail-primary);
    color: var(--gt-blog-detail-primary);
    transform: translateY(-2px);
}

/* ===== SAVE POST SECTION ===== */
.gt-save-post-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    text-align: center;
}

@media (max-width: 768px) {
    .gt-save-post-section {
        padding: 20px;
        margin: 20px 0;
    }
}

.gt-save-post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

@media (max-width: 768px) {
    .gt-save-post-title {
        font-size: 16px;
    }
}

.gt-save-post-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border: 2px solid #e0e0e0;
    border-radius: 50px;
    background: white;
    color: #666;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .gt-save-post-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .gt-save-post-btn {
        padding: 8px 20px;
        font-size: 13px;
    }
}

.gt-save-post-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #0C185A;
    color: #0C185A;
}

.gt-save-post-btn.saved {
    background: linear-gradient(135deg, #0C185A 0%, #1E2B7A 100%);
    border-color: #0C185A;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(15, 23, 36, 0.2);
}

.gt-save-post-btn.saved:hover {
    background: linear-gradient(135deg, #1E2B7A 0%, #0C185A 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 36, 0.3);
}

.gt-save-post-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.gt-save-post-btn.saved i {
    transform: scale(1.1);
}

/* ===== INSTAGRAM-STYLE COMMENT SYSTEM ===== */
.gt-comments-container {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    margin-top: 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
}

@media (max-width: 768px) {
    .gt-comments-container {
        padding: 20px;
        margin-top: 30px;
        border-radius: 12px;
    }
}

.gt-comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f5f5f5;
}

@media (max-width: 768px) {
    .gt-comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 20px;
    }
}

.gt-blog-detail-comments-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .gt-blog-detail-comments-title {
        font-size: 20px;
    }
}

.gt-comments-count-badge {
    background: linear-gradient(135deg, #0C185A 0%, #E31B23 100%);
    color: white;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    min-width: 36px;
    text-align: center;
}

/* Comment Form */
.gt-comment-form {
    background: #fafafa;
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 2px solid #f0f0f0;
    position: relative;
}

@media (max-width: 768px) {
    .gt-comment-form {
        padding: 20px;
        margin-bottom: 20px;
    }
}

.gt-comment-form-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media (max-width: 768px) {
    .gt-comment-form-title {
        font-size: 18px;
        margin-bottom: 15px;
    }
}

.gt-comment-form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
    font-family: inherit;
    max-width: 100%;
}

@media (max-width: 768px) {
    .gt-comment-form-control {
        padding: 12px;
        font-size: 13px;
    }
}

.gt-comment-form-control:focus {
    border-color: #0C185A;
    outline: none;
    box-shadow: 0 0 0 3px rgba(12,24,90, 0.10);
    background: #fff;
}

.gt-comment-form-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
    max-width: 100%;
}

.gt-comment-form-submit {
    background: linear-gradient(135deg, #0C185A 0%, #E31B23 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    letter-spacing: 0.3px;
}

@media (max-width: 768px) {
    .gt-comment-form-submit {
        padding: 10px 24px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
}

.gt-comment-form-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(12,24,90, 0.3);
}

.gt-comment-form-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.gt-comment-form-footer {
    font-size: 12px;
    color: #999;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gt-comment-form-footer i {
    color: #0C185A;
}

/* Instagram-style Comment List */
.gt-comment-list {
    position: relative;
}

.gt-comment-thread {
    position: relative;
}

.gt-comment-item {
    position: relative;
    margin-bottom: 20px;
    animation: fadeIn 0.3s ease-out;
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Comment Header */
.gt-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
    flex-wrap: wrap;
}

.gt-comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0C185A 0%, #E31B23 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(12,24,90, 0.2);
}

@media (max-width: 768px) {
    .gt-comment-avatar {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

.gt-comment-author-container {
    flex: 1;
    min-width: 0;
}

.gt-comment-author {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 15px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .gt-comment-author {
        font-size: 14px;
    }
}

.gt-comment-author-verified {
    color: #0095f6;
    font-size: 12px;
}

.gt-comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
    flex-wrap: wrap;
}

.gt-comment-date {
    font-size: 12px;
    color: #8e8e8e;
}

.gt-comment-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.gt-comment-badge.admin {
    background: #0C185A;
    color: white;
}

.gt-comment-badge.op {
    background: #ff9500;
    color: white;
}

/* Comment Content */
.gt-comment-content {
    color: #262626;
    line-height: 1.6;
    font-size: 14px;
    padding-left: 54px;
    position: relative;
    min-height: 40px;
    word-break: break-word;
    max-width: 100%;
}

@media (max-width: 768px) {
    .gt-comment-content {
        padding-left: 48px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .gt-comment-content {
        padding-left: 0;
        margin-left: 48px;
    }
}

.gt-comment-content::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: -20px;
    width: 2px;
    background: #f0f0f0;
    transition: background 0.3s ease;
}

@media (max-width: 480px) {
    .gt-comment-content::before {
        left: 17px;
    }
}

.gt-comment-text {
    padding: 10px 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ===== EMOJI REACTIONS STYLES ===== */

/* Emoji reactions container */
.gt-emoji-reactions {
    margin: 10px 0 0 54px;
    padding: 8px 0;
    min-height: 32px;
}

.gt-emoji-reactions-container {
    margin: 10px 0 0 54px;
    padding: 8px 0;
    min-height: 32px;
}

@media (max-width: 768px) {
    .gt-emoji-reactions,
    .gt-emoji-reactions-container {
        margin-left: 48px;
    }
}

@media (max-width: 480px) {
    .gt-emoji-reactions,
    .gt-emoji-reactions-container {
        margin-left: 0;
        padding-left: 48px;
    }
}

.gt-emoji-reactions-list {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Emoji reaction button */
.gt-emoji-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    line-height: 1;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .gt-emoji-reaction-btn {
        padding: 3px 6px;
        font-size: 13px;
    }
}

.gt-emoji-reaction-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.gt-emoji-reaction-btn.active {
    background: rgba(12,24,90, 0.10);
    border-color: #0C185A;
}

.gt-emoji-reaction-btn.active .gt-emoji-count {
    color: #0C185A;
    font-weight: 600;
}

.gt-emoji {
    font-size: 16px;
    line-height: 1;
    display: inline-block;
}

@media (max-width: 768px) {
    .gt-emoji {
        font-size: 14px;
    }
}

.gt-emoji-count {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    min-width: 12px;
}

/* Add emoji button */
.gt-emoji-add-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background: white;
    color: #6c757d;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 14px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .gt-emoji-add-btn {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}

.gt-emoji-add-btn:hover {
    background: #f8f9fa;
    border-color: #0C185A;
    color: #0C185A;
    transform: scale(1.1);
}

.gt-emoji-add-text {
    font-size: 12px;
    margin-left: 4px;
    color: #6c757d;
    font-weight: 500;
}

/* Emoji picker */
.gt-emoji-picker {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    animation: fadeIn 0.2s ease;
    max-width: 280px;
    z-index: 10000;
    position: fixed;
}

.gt-emoji-picker::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: white;
    border-left: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
    transform: rotate(45deg);
}

.gt-emoji-picker-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
}

@media (max-width: 480px) {
    .gt-emoji-picker {
        max-width: 240px;
        left: 10px !important;
        right: 10px !important;
        margin: 0 auto;
    }
    
    .gt-emoji-picker-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 4px;
    }
}

.gt-emoji-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

@media (max-width: 480px) {
    .gt-emoji-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

.gt-emoji-btn:hover {
    background: #f8f9fa;
    transform: scale(1.2);
}

/* ===== COMMENT ACTIONS ===== */
.gt-comment-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-left: 54px;
    margin-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .gt-comment-actions {
        padding-left: 48px;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .gt-comment-actions {
        padding-left: 0;
        margin-left: 48px;
        gap: 10px;
    }
}

.gt-comment-like-btn {
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8e8e8e;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 4px 0;
    flex-shrink: 0;
}

.gt-comment-like-btn:hover:not(:disabled) {
    color: #0C185A;
}

.gt-comment-like-btn i {
    font-size: 14px;
}

.gt-comment-like-btn.active {
    color: #0C185A;
    font-weight: 600;
}

.gt-comment-like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gt-comment-reply-btn {
    background: none;
    border: none;
    color: #8e8e8e;
    font-size: 12px;
    cursor: pointer;
    transition: color 0.2s ease;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.gt-comment-reply-btn:hover {
    color: #0095f6;
}

.like-count {
    background: rgba(12,24,90, 0.10);
    color: #0C185A;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

/* More emoji button */
.gt-emoji-more-btn {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #6c757d;
    padding: 4px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
    min-width: 32px;
    flex-shrink: 0;
}

.gt-emoji-more-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

/* Replies Container */
.gt-comment-replies {
    margin-left: 54px;
    position: relative;
    padding-top: 15px;
}

@media (max-width: 768px) {
    .gt-comment-replies {
        margin-left: 48px;
    }
}

@media (max-width: 480px) {
    .gt-comment-replies {
        margin-left: 30px;
    }
}

.gt-comment-replies::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #f0f0f0;
}

@media (max-width: 480px) {
    .gt-comment-replies::before {
        left: 15px;
    }
}

.gt-comment-replies.collapsed {
    display: none;
}

.gt-comment-replies.expanded {
    display: block;
}

/* Replying to indicator */
.gt-reply-to-indicator {
    margin: 8px 0 8px 54px;
    padding: 6px 12px;
    background: rgba(12,24,90, 0.05);
    border-left: 3px solid #0C185A;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .gt-reply-to-indicator {
        margin-left: 48px;
    }
}

@media (max-width: 480px) {
    .gt-reply-to-indicator {
        margin-left: 30px;
    }
}

.gt-reply-to-indicator i {
    color: #0C185A;
    font-size: 10px;
}

.gt-reply-to-indicator strong {
    color: #333;
    font-weight: 600;
}

/* View Replies Button */
.gt-view-replies-btn {
    background: none;
    border: none;
    color: #8e8e8e;
    font-size: 12px;
    cursor: pointer;
    margin: 10px 0 10px 54px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

@media (max-width: 768px) {
    .gt-view-replies-btn {
        margin-left: 48px;
    }
}

@media (max-width: 480px) {
    .gt-view-replies-btn {
        margin-left: 30px;
    }
}

.gt-view-replies-btn:hover {
    background: #fafafa;
    color: #262626;
}

.gt-view-replies-btn i {
    transition: transform 0.3s ease;
}

.gt-view-replies-btn.expanded i {
    transform: rotate(180deg);
}

/* ===== IMPROVED REPLY FORM STYLING ===== */
.gt-reply-form {
    margin-left: 54px;
    margin-top: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .gt-reply-form {
        margin-left: 48px;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .gt-reply-form {
        margin-left: 30px;
        padding: 12px;
    }
}

.gt-reply-form::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 20px;
    width: 26px;
    height: 2px;
    background: #e9ecef;
}

@media (max-width: 480px) {
    .gt-reply-form::before {
        left: -16px;
        width: 16px;
    }
}

.gt-reply-form-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
    flex-wrap: wrap;
}

.gt-reply-form-header strong {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.gt-reply-form-header .gt-reply-to {
    font-size: 14px;
    color: #0C185A;
    font-weight: 600;
    background: rgba(12,24,90, 0.10);
    padding: 2px 8px;
    border-radius: 4px;
}

.gt-reply-form-header .gt-cancel-reply {
    margin-left: auto;
    background: none;
    border: 1px solid #dee2e6;
    color: #6c757d;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gt-reply-form-header .gt-cancel-reply:hover {
    background: #fff;
    color: #0C185A;
    border-color: #0C185A;
}

.gt-reply-form-fields {
    margin-bottom: 15px;
}

.gt-reply-form-fields .row {
    margin-left: -0.25rem;
    margin-right: -0.25rem;
}

.gt-reply-form-fields .col-md-6 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

@media (max-width: 480px) {
    .gt-reply-form-fields .row {
        margin-left: 0;
        margin-right: 0;
    }
    
    .gt-reply-form-fields .col-md-6 {
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 10px;
    }
}

.gt-reply-form-fields .gt-comment-form-control {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 8px;
}

.gt-reply-form .gt-comment-form-textarea {
    min-height: 80px;
    font-size: 14px;
    padding: 12px;
}

.gt-reply-form-footer {
    font-size: 11px;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gt-reply-form-footer i {
    color: #28a745;
}

.gt-reply-validation {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== NESTED COMMENTS ADJUSTMENTS ===== */

/* Level 0 (top-level comments) */
.gt-comment-item[data-depth="0"] .gt-emoji-reactions,
.gt-comment-item[data-depth="0"] .gt-emoji-reactions-container {
    margin-left: 54px;
}

.gt-comment-item[data-depth="0"] .gt-comment-actions {
    padding-left: 54px;
}

.gt-comment-item[data-depth="0"] .gt-reply-to-indicator {
    margin-left: 54px;
}

/* Level 1 (first reply) */
.gt-comment-item[data-depth="1"] .gt-emoji-reactions,
.gt-comment-item[data-depth="1"] .gt-emoji-reactions-container {
    margin-left: 40px;
}

.gt-comment-item[data-depth="1"] .gt-comment-actions {
    padding-left: 40px;
}

.gt-comment-item[data-depth="1"] .gt-reply-to-indicator {
    margin-left: 40px;
}

.gt-comment-item[data-depth="1"] .gt-reply-form {
    margin-left: 40px;
}

/* Level 2 (reply to reply) */
.gt-comment-item[data-depth="2"] .gt-emoji-reactions,
.gt-comment-item[data-depth="2"] .gt-emoji-reactions-container {
    margin-left: 30px;
}

.gt-comment-item[data-depth="2"] .gt-comment-actions {
    padding-left: 30px;
}

.gt-comment-item[data-depth="2"] .gt-reply-to-indicator {
    margin-left: 30px;
}

.gt-comment-item[data-depth="2"] .gt-reply-form {
    margin-left: 30px;
}

/* Level 3 (deep nested replies) */
.gt-comment-item[data-depth="3"] .gt-emoji-reactions,
.gt-comment-item[data-depth="3"] .gt-emoji-reactions-container {
    margin-left: 20px;
}

.gt-comment-item[data-depth="3"] .gt-comment-actions {
    padding-left: 20px;
}

.gt-comment-item[data-depth="3"] .gt-reply-to-indicator {
    margin-left: 20px;
}

.gt-comment-item[data-depth="3"] .gt-reply-form {
    margin-left: 20px;
}

/* Level 4+ (very deep nested) */
.gt-comment-item[data-depth="4"] .gt-emoji-reactions,
.gt-comment-item[data-depth="4"] .gt-emoji-reactions-container {
    margin-left: 15px;
}

.gt-comment-item[data-depth="4"] .gt-comment-actions {
    padding-left: 15px;
}

.gt-comment-item[data-depth="4"] .gt-reply-to-indicator {
    margin-left: 15px;
}

.gt-comment-item[data-depth="4"] .gt-reply-form {
    margin-left: 15px;
}

/* Mobile adjustments for nested comments */
@media (max-width: 768px) {
    .gt-comment-item[data-depth="0"] .gt-emoji-reactions,
    .gt-comment-item[data-depth="0"] .gt-emoji-reactions-container {
        margin-left: 48px;
    }
    
    .gt-comment-item[data-depth="0"] .gt-comment-actions {
        padding-left: 48px;
    }
    
    .gt-comment-item[data-depth="0"] .gt-reply-to-indicator {
        margin-left: 48px;
    }
    
    .gt-comment-item[data-depth="1"] .gt-emoji-reactions,
    .gt-comment-item[data-depth="1"] .gt-emoji-reactions-container {
        margin-left: 35px;
    }
    
    .gt-comment-item[data-depth="1"] .gt-comment-actions {
        padding-left: 35px;
    }
    
    .gt-comment-item[data-depth="1"] .gt-reply-to-indicator {
        margin-left: 35px;
    }
    
    .gt-comment-item[data-depth="1"] .gt-reply-form {
        margin-left: 35px;
    }
    
    .gt-comment-item[data-depth="2"] .gt-emoji-reactions,
    .gt-comment-item[data-depth="2"] .gt-emoji-reactions-container {
        margin-left: 25px;
    }
    
    .gt-comment-item[data-depth="2"] .gt-comment-actions {
        padding-left: 25px;
    }
    
    .gt-comment-item[data-depth="2"] .gt-reply-to-indicator {
        margin-left: 25px;
    }
    
    .gt-comment-item[data-depth="2"] .gt-reply-form {
        margin-left: 25px;
    }
}

@media (max-width: 480px) {
    .gt-comment-item[data-depth="0"] .gt-emoji-reactions,
    .gt-comment-item[data-depth="0"] .gt-emoji-reactions-container {
        margin-left: 0;
        padding-left: 48px;
    }
    
    .gt-comment-item[data-depth="0"] .gt-comment-actions {
        padding-left: 0;
        margin-left: 48px;
    }
    
    .gt-comment-item[data-depth="0"] .gt-reply-to-indicator {
        margin-left: 30px;
    }
}

/* ===== LOADING & PLACEHOLDER STATES ===== */

.gt-emoji-reactions-placeholder {
    min-height: 32px;
    display: flex;
    align-items: center;
    color: #6c757d;
    font-size: 14px;
    font-style: italic;
    opacity: 0.7;
}

.gt-emoji-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6c757d;
    font-size: 12px;
}

.gt-emoji-loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e9ecef;
    border-top-color: #0C185A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Loading State */
.gt-comments-loading {
    text-align: center;
    padding: 40px;
}

.gt-comments-loading .spinner-border {
    width: 40px;
    height: 40px;
    border-width: 3px;
    border-color: #0C185A transparent #0C185A transparent;
}

/* Empty State */
.gt-comments-empty {
    text-align: center;
    padding: 40px;
    color: #8e8e8e;
}

.gt-comments-empty i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

.gt-comments-empty h4 {
    color: #262626;
    margin-bottom: 8px;
}

.gt-comments-empty p {
    font-size: 14px;
    max-width: 300px;
    margin: 0 auto;
}

/* Comment Pagination */
.gt-comment-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f5f5f5;
}

.gt-load-more-btn {
    background: #fafafa;
    border: 2px solid #f0f0f0;
    color: #262626;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gt-load-more-btn:hover:not(:disabled) {
    background: #fff;
    border-color: #0C185A;
    color: #0C185A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12,24,90, 0.10);
}

.gt-load-more-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ===== RELATED POSTS ===== */
.gt-related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e9ecef;
}

.gt-related-posts-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #333;
}

@media (max-width: 768px) {
    .gt-related-posts-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
}

.gt-related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

@media (max-width: 768px) {
    .gt-related-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .gt-related-posts-grid {
        grid-template-columns: 1fr;
    }
}

.gt-related-post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: var(--gt-blog-detail-transition);
    height: 100%;
}

.gt-related-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.gt-related-post-image {
    height: 180px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .gt-related-post-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .gt-related-post-image {
        height: 140px;
    }
}

.gt-related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--gt-blog-detail-transition);
}

.gt-related-post-card:hover .gt-related-post-image img {
    transform: scale(1.05);
}

.gt-related-post-content {
    padding: 20px;
}

@media (max-width: 768px) {
    .gt-related-post-content {
        padding: 16px;
    }
}

.gt-related-post-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .gt-related-post-title {
        font-size: 15px;
    }
}

.gt-related-post-title a {
    color: #333;
    text-decoration: none;
    transition: var(--gt-blog-detail-transition);
}

.gt-related-post-title a:hover {
    color: var(--gt-blog-detail-primary);
}

.gt-related-post-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #666;
}

/* ===== SIDEBAR WIDGETS ===== */
.gt-blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

@media (max-width: 992px) {
    .gt-blog-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .gt-blog-sidebar {
        grid-template-columns: 1fr;
    }
}

.gt-blog-widget {
    background: var(--gt-blog-detail-white);
    border-radius: var(--gt-blog-detail-border-radius);
    padding: 25px;
    box-shadow: var(--gt-blog-detail-shadow-md);
    border: 1px solid var(--gt-blog-detail-gray-light);
}

@media (max-width: 768px) {
    .gt-blog-widget {
        padding: 20px;
    }
}

.gt-blog-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gt-blog-detail-dark);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gt-blog-detail-primary);
}

@media (max-width: 768px) {
    .gt-blog-widget-title {
        font-size: 16px;
        margin-bottom: 15px;
    }
}

.gt-blog-recent-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gt-blog-recent-post {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--gt-blog-detail-transition);
}

@media (max-width: 768px) {
    .gt-blog-recent-post {
        padding: 10px;
        gap: 10px;
    }
}

.gt-blog-recent-post:hover {
    background: var(--gt-blog-detail-primary-light);
    transform: translateX(5px);
}

.gt-blog-recent-post-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .gt-blog-recent-post-thumb {
        width: 50px;
        height: 50px;
    }
}

.gt-blog-recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--gt-blog-detail-transition);
}

.gt-blog-recent-post:hover .gt-blog-recent-post-thumb img {
    transform: scale(1.1);
}

.gt-blog-recent-post-info {
    flex: 1;
    min-width: 0;
}

.gt-blog-recent-post-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gt-blog-detail-dark);
    line-height: 1.3;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .gt-blog-recent-post-title {
        font-size: 13px;
    }
}

.gt-blog-recent-post:hover .gt-blog-recent-post-title {
    color: var(--gt-blog-detail-primary);
}

/* ===== NOTIFICATION SYSTEM ===== */
.gt-notification-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999999 !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    pointer-events: none;
}

@media (max-width: 768px) {
    .gt-notification-container {
        top: 70px;
        left: 10px;
        right: 10px;
        transform: none;
        max-width: calc(100% - 20px);
        width: auto;
        align-items: stretch;
    }
}

.gt-notification {
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #4CAF50;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: auto;
    cursor: pointer;
    min-width: 320px;
}

@media (max-width: 768px) {
    .gt-notification {
        padding: 16px 18px;
        min-width: unset;
        width: 100%;
        max-width: 100%;
    }
}

.gt-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.gt-notification.hide {
    transform: translateX(120%);
    opacity: 0;
}

.gt-notification.success {
    border-left-color: #4CAF50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.08) 0%, rgba(76, 175, 80, 0.03) 100%);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.gt-notification.error {
    border-left-color: #f44336;
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.08) 0%, rgba(244, 67, 54, 0.03) 100%);
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.gt-notification.warning {
    border-left-color: #ff9800;
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.08) 0%, rgba(255, 152, 0, 0.03) 100%);
    border: 1px solid rgba(255, 152, 0, 0.2);
}

.gt-notification.info {
    border-left-color: #2196F3;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.08) 0%, rgba(33, 150, 243, 0.03) 100%);
    border: 1px solid rgba(33, 150, 243, 0.2);
}

.gt-notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.gt-notification:hover .gt-notification-icon {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .gt-notification-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

.gt-notification.success .gt-notification-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.gt-notification.error .gt-notification-icon {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
}

.gt-notification.warning .gt-notification-icon {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: white;
}

.gt-notification.info .gt-notification-icon {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.gt-notification-content {
    flex: 1;
    min-width: 0;
}

.gt-notification-title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .gt-notification-title {
        font-size: 14px;
    }
}

.gt-notification-message {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .gt-notification-message {
        font-size: 13px;
    }
}

.gt-notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-radius: 0 0 12px 12px;
}

.gt-notification-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 6s linear;
    border-radius: 0 0 12px 12px;
}

.gt-notification.success .gt-notification-progress-bar {
    background: linear-gradient(90deg, #4CAF50 0%, #45a049 100%);
}

.gt-notification.error .gt-notification-progress-bar {
    background: linear-gradient(90deg, #f44336 0%, #d32f2f 100%);
}

.gt-notification.warning .gt-notification-progress-bar {
    background: linear-gradient(90deg, #ff9800 0%, #f57c00 100%);
}

.gt-notification.info .gt-notification-progress-bar {
    background: linear-gradient(90deg, #2196F3 0%, #1976D2 100%);
}

/* Notification bounce animation */
@keyframes notificationSlideIn {
    0% {
        transform: translateX(120%);
        opacity: 0;
    }
    60% {
        transform: translateX(-5%);
        opacity: 1;
    }
    80% {
        transform: translateX(2%);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.gt-notification.show {
    animation: notificationSlideIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* ===== READING PROGRESS BAR ===== */
.gt-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #0C185A 0%, #E31B23 100%);
    z-index: 9999;
    transition: width 0.3s ease;
    box-shadow: 0 2px 8px rgba(12,24,90, 0.3);
}

/* ===== QUICK FIXES ===== */

/* Quill editor fixes - strip ALL editor internals */
#blogContent .ql-editor,
#blogContent .ql-container,
#blogContent .ql-snow {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Hide Quill UI helper spans (bullet markers rendered by Quill CSS) */
#blogContent .ql-ui,
.gt-blog-detail-body .ql-ui {
    display: none !important;
}

/* Remove Quill's contenteditable styling artifacts */
#blogContent [contenteditable],
.gt-blog-detail-body [contenteditable] {
    outline: none !important;
    cursor: default !important;
}

/* Fix Quill's non-standard bullet lists: <ol><li data-list="bullet"> → show as bullets */
#blogContent li[data-list="bullet"],
.gt-blog-detail-body li[data-list="bullet"] {
    list-style-type: disc !important;
}

#blogContent li[data-list="ordered"],
.gt-blog-detail-body li[data-list="ordered"] {
    list-style-type: decimal !important;
}

/* Ensure all lists have proper spacing and indentation */
#blogContent ul,
#blogContent ol,
.gt-blog-detail-body ul,
.gt-blog-detail-body ol {
    padding-left: 2rem !important;
    margin-bottom: 1.5rem !important;
}

#blogContent li,
.gt-blog-detail-body li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* ===== OVERFLOW CONTAINMENT (prevents content blowout) ===== */
.gt-blog-detail-body {
    overflow: hidden !important;
    min-width: 0 !important;
}

.gt-blog-detail-body * {
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

/* h1 inside content (Quill can insert h1 headings) */
.gt-blog-detail-body h1 {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 700;
    color: var(--gt-blog-detail-dark);
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#blogContent img,
.gt-blog-detail-body img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 1.5rem auto !important;
    border-radius: 12px;
}

#blogContent table,
.gt-blog-detail-body table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    display: block !important;
    border-collapse: collapse;
    margin: 1.5rem 0 !important;
}

#blogContent table th,
#blogContent table td,
.gt-blog-detail-body table th,
.gt-blog-detail-body table td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    text-align: left;
}

#blogContent iframe,
#blogContent video,
#blogContent embed,
.gt-blog-detail-body iframe,
.gt-blog-detail-body video,
.gt-blog-detail-body embed {
    max-width: 100% !important;
    height: auto !important;
    aspect-ratio: 16/9;
    display: block;
    margin: 1.5rem auto !important;
}

#blogContent pre,
.gt-blog-detail-body pre {
    max-width: 100% !important;
    overflow-x: auto !important;
    display: block;
    background: #f8f9fa !important;
    padding: 1rem !important;
    border-radius: 8px;
    border: 1px solid #e9ecef !important;
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
    margin: 1rem 0 !important;
    white-space: pre-wrap !important;
    word-wrap: break-word !important;
}

#blogContent code,
.gt-blog-detail-body code {
    background: #f8f9fa !important;
    padding: 2px 6px !important;
    border-radius: 4px;
    border: 1px solid #e9ecef !important;
    font-family: 'Courier New', monospace !important;
    font-size: 14px !important;
}

/* Code inside pre should not double-style */
#blogContent pre code,
.gt-blog-detail-body pre code {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
}

#blogContent .ql-editor p,
.gt-blog-detail-body p {
    margin-bottom: 1.5rem !important;
    line-height: 1.8 !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
}

/* Prevent any element with inline width from breaking layout */
.gt-blog-detail-body [style*="width"] {
    max-width: 100% !important;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gt-blog-detail-animate {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ===== PREVIEW MODE STYLES ===== */
.preview-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #0C185A 0%, #E31B23 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(12,24,90, 0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    animation: preview-pulse 2s infinite;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes preview-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.9; }
}

.preview-time {
    font-size: 12px;
    opacity: 0.9;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 10px;
}

.preview-banner button {
    margin-left: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 12px;
}

.preview-banner button:hover {
    background: rgba(255,255,255,0.3);
}

.preview-disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    .gt-comments-container {
        background: #1a1a1a;
        border-color: #333;
    }
    
    .gt-comment-form {
        background: #222;
        border-color: #333;
    }
    
    .gt-comment-form-control {
        background: #2a2a2a;
        border-color: #444;
        color: #fff;
    }
    
    .gt-comment-form-control:focus {
        border-color: #0C185A;
        background: #2a2a2a;
    }
    
    .gt-comment-author {
        color: #fff;
    }
    
    .gt-comment-content {
        color: #e0e0e0;
    }
    
    .gt-comment-item:hover {
        background: #222;
    }
    
    .gt-comment-content::before {
        background: #333;
    }
    
    .gt-comment-like-btn,
    .gt-comment-reply-btn {
        color: #aaa;
    }
    
    .gt-comment-like-btn:hover {
        color: #0C185A;
    }
    
    .gt-comment-reply-btn:hover {
        color: #0095f6;
    }
    
    .gt-view-replies-btn:hover {
        background: #222;
        color: #fff;
    }
    
    .gt-reply-form {
        background: #222;
        border-color: #333;
    }
    
    .gt-load-more-btn {
        background: #222;
        border-color: #333;
        color: #fff;
    }
    
    .gt-load-more-btn:hover {
        background: #2a2a2a;
        border-color: #0C185A;
        color: #0C185A;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .gt-toc-link,
    .gt-blog-recent-post,
    .gt-blog-tag-item,
    .gt-blog-detail-share-btn,
    .gt-comment-form-submit,
    .gt-reaction-btn,
    .gt-related-post-card {
        transition: none;
    }
    
    .gt-toc-link:hover,
    .gt-blog-recent-post:hover,
    .gt-blog-tag-item:hover,
    .gt-blog-detail-share-btn:hover,
    .gt-comment-form-submit:hover,
    .gt-reaction-btn:hover,
    .gt-related-post-card:hover {
        transform: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .gt-blog-detail-animate {
        animation: none;
    }
    
    .gt-notification {
        transition: none;
    }
}

/* Focus styles for accessibility */
.gt-toc-link:focus-visible,
.gt-blog-tag-item:focus-visible,
.gt-blog-detail-share-btn:focus-visible,
.gt-blog-detail-btn:focus-visible,
.gt-reaction-btn:focus-visible {
    outline: 2px solid var(--gt-blog-detail-primary);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Error state for form fields */
.gt-comment-form-control.error {
    border-color: #0C185A !important;
    background-color: rgba(12,24,90, 0.05) !important;
}






