/* ============================================================
   DARK THEME BLOG DETAIL
   ============================================================ */

/* ----- CSS VARIABLES ----- */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #111827;
    --bg-card: #1a2234;
    --bg-card-hover: #1f2a40;
    --bg-input: #0d1524;
    --bg-hover: #243049;
    
    --text-primary: #f0f4ff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-color: #2a3650;
    --border-light: #1e2a42;
    
    --accent-gold: #F0C13D;
    --accent-gold-dark: #d4a832;
    --accent-gold-light: #f8d97a;
    
    --gradient-gold: linear-gradient(135deg, #F0C13D, #d4a832);
    --gradient-dark: linear-gradient(135deg, #0a0e17, #111827);
    
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(240, 193, 61, 0.05);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-gold-dark);
}

/* ============================================================
   BANNER
   ============================================================ */

.sg-banner {
    position: relative;
    width: 100%;
    height: clamp(280px, 45vh, 500px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-primary);
}

.sg-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.sg-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.sg-banner-content {
    position: relative;
    z-index: 2;
    padding: 20px 30px;
    max-width: 900px;
}

.sg-banner-content .sg-category {
    display: inline-block;
    background: rgba(240, 193, 61, 0.15);
    backdrop-filter: blur(8px);
    padding: 4px 18px;
    border-radius: 50px;
    font-size: clamp(0.7rem, 0.9vw, 0.85rem);
    border: 1px solid rgba(240, 193, 61, 0.2);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    color: var(--accent-gold);
}

.sg-banner-content h1 {
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    color: var(--text-primary);
}

.sg-banner-content .sg-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 24px;
    font-size: clamp(0.85rem, 1.1vw, 1rem);
    opacity: 0.9;
    color: var(--text-secondary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.sg-banner-content .sg-meta span i {
    margin-right: 6px;
    color: var(--accent-gold);
}

/* ============================================================
   BLOG CONTAINER
   ============================================================ */

.sg-container {
    max-width: 1100px !important;
    width: 100% !important;
    margin: 0 0 40px 0 !important;
    /* padding: 0 20px !important; */
    position: relative;
    z-index: 3;
    box-sizing: border-box !important;
}

.sg-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.sg-main {
    /* background: var(--bg-card); */
    /* border-radius: var(--radius-xl); */
    padding: 40px 45px;
    /* box-shadow: var(--shadow-card); */
    /* border: 1px solid var(--border-color); */
}

.sg-main .sg-author-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    /* background: var(--bg-secondary); */
    border-radius: var(--radius-xl);
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
}

.sg-main .sg-author-box img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-gold);
}

.sg-main .sg-author-box .sg-author-info h4 {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    color: var(--text-primary);
}

.sg-main .sg-author-box .sg-author-info p {
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    color: var(--text-muted);
}

/* ============================================================
   BLOG CONTENT
   ============================================================ */
.sg-main .sg-content {
    font-size: clamp(1rem, 1.15vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.9;
}

.sg-main .sg-content p {
    margin-bottom: 18px;
}

.sg-main .sg-content h2 {
    font-size: clamp(1.3rem, 1.8vw, 1.7rem);
    color: var(--text-primary);
    margin: 28px 0 12px;
}

.sg-main .sg-content h3 {
    font-size: clamp(1.1rem, 1.4vw, 1.3rem);
    color: var(--text-primary);
    margin: 22px 0 10px;
}

.sg-main .sg-content h4 {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    color: var(--text-primary);
    margin: 18px 0 8px;
}

.sg-main .sg-content ul {
    padding-left: 24px;
    margin-bottom: 18px;
}

.sg-main .sg-content ul li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.sg-main .sg-content blockquote {
    /* background: var(--bg-secondary); */
    border-left: 4px solid var(--accent-gold);
    padding: 16px 22px;
    margin: 20px 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-gold);
}

.sg-main .sg-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: auto;
    display: block;
    border: 1px solid var(--border-color);
}

.sg-main .sg-content video {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 20px 0;
}

.sg-main .sg-content .blog-media-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.sg-main .sg-content .blog-media-gallery img,
.sg-main .sg-content .blog-media-gallery video {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    margin: 0;
}

.sg-main .sg-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.sg-main .sg-content table th,
.sg-main .sg-content table td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    text-align: left;
    color: var(--text-secondary);
}

.sg-main .sg-content table th {
    background: var(--bg-hover);
    color: var(--text-primary);
    font-weight: 600;
}

.sg-main .sg-content table tr:hover {
    background: var(--bg-hover);
}

.sg-main .sg-content a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: var(--transition);
}

.sg-main .sg-content a:hover {
    color: var(--accent-gold-light);
    text-decoration: underline;
}

/* ============================================================
   SHARE BUTTONS
   ============================================================ */

.sg-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 25px;
    flex-wrap: wrap;
}

#bg-share{
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}
.sg-share span {
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
    font-weight: 600;
    color: var(--text-secondary);
}

.sg-share a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: var(--transition);
    text-decoration: none;
}

.sg-share a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.sg-share .sg-fb { background: #1877f2; }
.sg-share .sg-tw { background: #000; }
.sg-share .sg-li { background: #0a66c2; }
.sg-share .sg-wa { background: #25d366; }
.sg-share .sg-email { background: #ea4335; }

/* ============================================================
   SIDEBAR
   ============================================================ */

.sg-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sg-sidebar .sg-widget {
    /* background: var(--bg-card);
    border-radius: var(--radius-lg); */
    padding: 24px 26px;
    /* box-shadow: var(--shadow-card); */
    /* border: 1px solid var(--border-color); */
}

.sg-sidebar .sg-widget h3 {
    font-size: clamp(1rem, 1.2vw, 1.2rem);
    color: var(--text-primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent-gold);
}

.sg-sidebar .sg-widget ul {
    list-style: none;
    padding: 0;
}

.sg-sidebar .sg-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

.sg-sidebar .sg-widget ul li:last-child {
    border-bottom: none;
}

.sg-sidebar .sg-widget ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sg-sidebar .sg-widget ul li a:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}

.sg-sidebar .sg-widget ul li a i {
    color: var(--accent-gold);
    font-size: 0.7rem;
}

/* ============================================================
   LIKE SECTION (Bottom)
   ============================================================ */

.sg-like-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    /* gap: 20px;
    padding: 20px 0;
    margin: 20px 0 10px; */
    /* border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color); */
    flex-wrap: wrap;
}

.sg-like-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 6px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    position: relative;
}

.sg-like-btn:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
    transform: scale(1.03);
}

.sg-like-btn:active {
    transform: scale(0.95);
}

.sg-like-btn .sg-heart-icon {
    font-size: 1.2rem;
    transition: var(--transition);
    color: var(--text-muted);
}

.sg-like-btn.liked .sg-heart-icon {
    color: #ef4444;
}

.sg-like-btn.liked {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.sg-like-btn .sg-heart-icon.fa-solid {
    color: #ef4444;
}

.sg-like-btn .sg-like-count {
    font-weight: 700;
    min-width: 30px;
    text-align: center;
    font-size: 1.1rem;
}

.sg-like-btn .sg-like-text {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.sg-like-btn.liked .sg-like-text {
    color: #ef4444;
}

/* Heart animation */
@keyframes sgHeartPop {
    0% { transform: scale(1); }
    25% { transform: scale(1.4); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.sg-like-btn .sg-heart-icon.pop {
    animation: sgHeartPop 0.6s ease;
}

.sg-like-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================
   RELATED POSTS CARDS
   ============================================================ */

.sg-related-section {
    /* background: var(--bg-card);
    border-radius: var(--radius-xl); */
    padding: 35px 40px;
    margin-top: 30px;
    /* box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color); */
}

.sg-related-section h3 {
    font-size: clamp(1.2rem, 1.5vw, 1.6rem);
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sg-related-section h3 i {
    color: var(--accent-gold);
}

.sg-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.sg-related-card {
    /* background: var(--bg-secondary);
    border-radius: var(--radius-lg); */
    overflow: hidden;
    /* border: 1px solid var(--border-color); */
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: block;
}

.sg-related-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-gold);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.sg-related-card .sg-card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.sg-related-card .sg-card-body {
    padding: 18px 20px 20px;
}

.sg-related-card .sg-card-body .sg-card-category {
    display: inline-block;
    font-size: 0.7rem;
    color: var(--accent-gold);
    background: rgba(240, 193, 61, 0.1);
    padding: 2px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
    border: 1px solid rgba(240, 193, 61, 0.15);
}

.sg-related-card .sg-card-body h4 {
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sg-related-card .sg-card-body p {
    font-size: clamp(0.8rem, 0.9vw, 0.85rem);
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
    line-height: 1.5;
}

.sg-related-card .sg-card-body .sg-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
}

.sg-related-card .sg-card-body .sg-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sg-related-card .sg-card-body .sg-card-meta i {
    color: var(--accent-gold);
}

.sg-related-card .sg-card-body .sg-card-meta .sg-card-likes i {
    color: #ef4444;
}

.sg-related-card .sg-card-body .sg-card-meta .sg-card-comments i {
    color: #22d3ee;
}

.sg-related-card .sg-card-body .sg-card-meta .sg-card-views i {
    color: var(--text-muted);
}

/* ============================================================
   COMMENTS SECTION WITH REPLIES
   ============================================================ */

.sg-comments {
    /* background: var(--bg-card);
    border-radius: var(--radius-xl); */
    padding: 35px 40px;
    margin-top: 30px;
    /* box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color); */
}

.sg-comments h3 {
    font-size: clamp(1.1rem, 1.4vw, 1.4rem);
    color: var(--text-primary);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent-gold);
}

.sg-comments h3 i {
    color: var(--accent-gold);
}

.sg-comment-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.sg-comment-item:last-child {
    border-bottom: none;
}

.sg-comment-item img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border-color);
}

.sg-comment-item .sg-comment-body {
    flex: 1;
}

.sg-comment-item .sg-comment-body h5 {
    font-size: clamp(0.9rem, 1vw, 1rem);
    color: var(--text-primary);
    margin-bottom: 2px;
}

.sg-comment-item .sg-comment-body .sg-comment-date {
    font-size: clamp(0.7rem, 0.8vw, 0.8rem);
    color: var(--text-muted);
}

.sg-comment-item .sg-comment-body p {
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.6;
}

/* ============================================================
   REPLY STYLES
   ============================================================ */

.sg-reply {
    margin-top: 12px;
    margin-left: 20px;
    padding: 12px 16px;
    background: rgba(23, 162, 184, 0.05);
    border-left: 3px solid #22d3ee;
    border-radius: var(--radius-sm);
    display: flex;
    gap: 12px;
    border: 1px solid rgba(34, 211, 238, 0.1);
    border-left: 3px solid #22d3ee;
}

.sg-reply .sg-reply-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(34, 211, 238, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22d3ee;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
    border: 1px solid rgba(34, 211, 238, 0.2);
}

.sg-reply .sg-reply-body {
    flex: 1;
}

.sg-reply .sg-reply-body .sg-reply-author {
    font-weight: 600;
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    color: #22d3ee;
}

.sg-reply .sg-reply-body .sg-reply-author i {
    margin-right: 4px;
}

.sg-reply .sg-reply-body .sg-reply-date {
    font-size: clamp(0.6rem, 0.7vw, 0.7rem);
    color: var(--text-muted);
    margin-left: 8px;
}

.sg-reply .sg-reply-body p {
    font-size: clamp(0.8rem, 0.9vw, 0.9rem);
    color: var(--text-secondary);
    margin-top: 4px;
    line-height: 1.6;
}

.sg-reply .sg-reply-body .sg-reply-edited {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================================
   COMMENT FORM
   ============================================================ */

.sg-comment-form {
    margin-top: 20px;
}

.sg-comment-form h4 {
    color: var(--text-primary);
}

.sg-comment-form .sg-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sg-comment-form input,
.sg-comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: clamp(0.85rem, 0.95vw, 0.95rem);
    outline: none;
    transition: var(--transition);
    font-family: inherit;
    background: transparent;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.sg-comment-form input::placeholder,
.sg-comment-form textarea::placeholder {
    color: var(--text-muted);
}

.sg-comment-form input:focus,
.sg-comment-form textarea:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(240, 193, 61, 0.1);
    /* background: var(--bg-input); */
}

.sg-comment-form textarea {
    height: clamp(100px, 12vw, 140px);
    resize: vertical;
}

.sg-comment-form button {
    background: var(--gradient-gold);
    border: none;
    padding: 14px 32px;
    font-size: clamp(0.9rem, 1vw, 1rem);
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    color: #000000;
    margin-top: 4px;
}

.sg-comment-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(240, 193, 61, 0.3);
}

.sg-comment-form button:active {
    transform: scale(0.97);
}

.sg-comment-form button i {
    margin-right: 6px;
}

.sg-comment-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* ============================================================
   MESSAGES
   ============================================================ */

#sgCommentSuccess {
    display: none;
    padding: 12px 16px;
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    text-align: center;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

#sgCommentError {
    display: none;
    padding: 12px 16px;
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-radius: var(--radius-md);
    margin-bottom: 14px;
    text-align: center;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ----- New comment animation ----- */
.sg-comment-item.new-comment {
    animation: sgCommentSlideIn 0.5s ease;
}

@keyframes sgCommentSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */

#sgToastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.sg-toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-weight: 500;
    animation: sgToastSlideIn 0.5s ease;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sg-toast.success {
    border-left: 4px solid #34d399;
}

.sg-toast.error {
    border-left: 4px solid #ef4444;
}

.sg-toast .sg-toast-close {
    margin-left: 15px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-muted);
    transition: var(--transition);
    padding: 0 4px;
}

.sg-toast .sg-toast-close:hover {
    color: var(--text-primary);
}

@keyframes sgToastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes sgToastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}
.sg-toast.hiding {
    animation: sgToastSlideOut 0.5s ease forwards;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

@media (max-width: 1024px) {
    .sg-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .sg-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .sg-main {
        padding: 30px 32px;
    }

    .sg-related-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 768px) {
    .sg-banner {
        height: clamp(200px, 30vh, 300px);
    }

    .sg-banner-content h1 {
        font-size: clamp(1.4rem, 4vw, 1.8rem);
    }

    .sg-container {
        padding: 0 14px !important;
        margin: -30px auto 30px !important;
    }

    .sg-main {
        padding: 24px 22px;
        border-radius: var(--radius-lg);
    }

    .sg-main .sg-author-box {
        padding: 12px 16px;
    }

    .sg-main .sg-author-box img {
        width: 44px;
        height: 44px;
    }

    .sg-related-section {
        padding: 24px 22px;
        border-radius: var(--radius-lg);
    }

    .sg-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .sg-related-card .sg-card-image {
        height: 140px;
    }

    .sg-comments {
        padding: 24px 22px;
        border-radius: var(--radius-lg);
    }

    .sg-comment-form .sg-form-row {
        grid-template-columns: 1fr;
    }

    .sg-sidebar {
        grid-template-columns: 1fr;
    }

    .sg-sidebar .sg-widget {
        padding: 20px 18px;
        border-radius: var(--radius-md);
    }
    
    .sg-reply {
        margin-left: 10px;
        padding: 10px 12px;
    }

    .sg-like-bottom {
        padding: 15px 0;
        gap: 12px;
    }

    .sg-like-btn {
        padding: 10px 20px 10px 16px;
        font-size: 0.95rem;
    }

    .sg-like-btn .sg-heart-icon {
        font-size: 1.3rem;
    }
}

@media (max-width: 500px) {
    .sg-banner {
        height: clamp(160px, 25vh, 220px);
    }

    .sg-banner-content {
        padding: 12px 16px;
    }

    .sg-banner-content h1 {
        font-size: clamp(1.2rem, 5vw, 1.5rem);
    }

    .sg-banner-content .sg-meta {
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
        gap: 10px 16px;
    }

    .sg-container {
        padding: 0 10px !important;
        margin: -20px auto 20px !important;
    }

    .sg-main {
        padding: 18px 16px;
        border-radius: var(--radius-md);
    }

    .sg-main .sg-content {
        font-size: clamp(0.9rem, 3vw, 0.95rem);
    }

    .sg-main .sg-content h2 {
        font-size: clamp(1.1rem, 4vw, 1.3rem);
    }

    .sg-main .sg-content h3 {
        font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    }

    .sg-related-section {
        padding: 18px 16px;
        border-radius: var(--radius-md);
    }

    .sg-related-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sg-related-card .sg-card-image {
        height: 160px;
    }

    .sg-comments {
        padding: 18px 16px;
        border-radius: var(--radius-md);
    }

    .sg-comment-item {
        gap: 12px;
    }

    .sg-comment-item img {
        width: 36px;
        height: 36px;
    }

    .sg-share a {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .sg-comment-form button {
        padding: 12px 24px;
        font-size: clamp(0.8rem, 3vw, 0.85rem);
    }
    
    .sg-reply {
        margin-left: 5px;
        padding: 8px 10px;
        flex-wrap: wrap;
    }
    
    .sg-reply .sg-reply-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.65rem;
    }

    .sg-like-btn {
        padding: 8px 16px 8px 12px;
        font-size: 0.85rem;
    }

    .sg-like-btn .sg-heart-icon {
        font-size: 1.2rem;
    }

    .sg-like-btn .sg-like-count {
        font-size: 0.95rem;
        min-width: 20px;
    }

    #sgToastContainer {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 360px) {
    .sg-main {
        padding: 14px 12px;
    }

    .sg-main .sg-author-box img {
        width: 36px;
        height: 36px;
    }

    .sg-main .sg-content {
        font-size: 0.85rem;
    }

    .sg-related-section {
        padding: 14px 12px;
    }

    .sg-comments {
        padding: 14px 12px;
    }

    .sg-sidebar .sg-widget {
        padding: 16px 14px;
    }
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
    background: var(--accent-gold);
    color: #000000;
}

::-moz-selection {
    background: var(--accent-gold);
    color: #000000;
}

/* ============================================================
   FOCUS VISIBLE
   ============================================================ */
:focus-visible {
    outline: 2px solid var(--accent-gold);
    outline-offset: 2px;
}