/**
 * Gia An JSC - Modern Single Post Layout Styles
 * Applied from mockup_chi_tiet.html
 * Integrates authentic site header & footer with 2-column layout & sidebar
 */

:root {
    --red-brand: #a61919;
    --red-hover: #760a0d;
    --red-light: #fef2f2;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --text-heading: #0f172a;
    --text-body: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
}

/* 1. BODY & PAGE RESET TO PREVENT ANY UNWANTED MARGIN/GAP */
body.giaan-single-body {
    margin: 0 !important;
    padding: 0 !important;
}

body.giaan-single-body #page,
body.giaan-single-body .opal-wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

body.giaan-single-body .site-header {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 99 !important;
    background: transparent !important;
}

/* 2. AUTHENTIC GIA AN JSC HEADER & PAGE TITLE BANNER */
body.giaan-single-body .page-title-bar {
    display: block !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 520px !important;
    min-height: 520px !important;
    max-height: 520px !important;
    box-sizing: border-box !important;
}

body.giaan-single-body .page-title-bar:before {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    content: "" !important;
    background: rgba(0, 0, 0, 0);
    z-index: -1 !important;
    background-image: url(https://giaanjsc.com/wp-content/uploads/2020/06/bannerheader.png) !important;
    background-size: cover !important;
    background-position: center top !important;
}

body.giaan-single-body .page-title-bar .container {
    height: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
}

body.giaan-single-body .page-title-bar .wrap {
    height: 520px !important;
    min-height: 520px !important;
    max-height: 520px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 110px !important;
    padding-bottom: 70px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin: 0 auto !important;
    max-width: 1100px !important;
    box-sizing: border-box !important;
}

body.giaan-single-body .page-title-bar .page-title-bar-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

body.giaan-single-body .page-title-bar .wrap .page-title {
    color: #ffffff !important;
    font-family: var(--font-heading) !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 !important;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    max-width: 1050px;
}

body.giaan-single-body .page-title-bar .breadcrumb {
    display: none !important;
}

/* 2. OVERRIDE SITE CONTENT CONTAINER */
body.giaan-single-body .site-content-contain {
    margin: 0 !important;
    padding: 0 !important;
}

body.giaan-single-body .site-content {
    padding-top: 0 !important;
    padding-bottom: 60px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    max-width: 1350px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    background: transparent !important;
}

/* 3. OVERLAPPING MAIN WRAP (MATCHING /khach-hang/ & /tin-tuc/) */
.giaan-single-main-wrap {
    max-width: 1290px;
    width: 100%;
    margin: -40px auto 0 auto !important;
    background-color: #ffffff;
    background-image: url("https://giaanjsc.com/wp-content/uploads/2019/06/pattern.jpg");
    background-repeat: repeat;
    background-position: 0% 0%;
    -webkit-clip-path: polygon(50px 0, 100% 0, 100% 100%, 0 100%, 0 50px);
    clip-path: polygon(50px 0, 100% 0, 100% 100%, 0 100%, 0 50px);
    position: relative;
    z-index: 2;
    padding: 45px 45px 65px 45px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
}

/* 4. 2-COLUMN LAYOUT GRID (FROM MOCKUP_CHI_TIET.HTML) */
.giaan-single-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
    align-items: start;
}

/* Left: Article Card */
.giaan-single-post-body {
    background: #ffffff;
    border-radius: 12px;
    padding: 38px 42px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.giaan-article-text {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

.giaan-article-text .gallery {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.giaan-post-header-badge {
    display: inline-flex;
    align-items: center;
    background: var(--red-brand);
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 8px;
    margin-bottom: 0;
    text-decoration: none;
    line-height: 1.4;
    transition: background 0.2s;
}
.giaan-post-header-badge:hover {
    background: var(--red-hover);
    color: #fff;
}

.giaan-single-post-title {
    display: none !important;
}

/* Meta & Top Social Share */
.giaan-single-post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 26px;
    flex-wrap: wrap;
    gap: 16px;
}

.giaan-meta-left {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13.5px;
    color: var(--text-muted);
}

.giaan-meta-left span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.giaan-meta-left span i {
    color: var(--red-brand);
}

.giaan-social-share-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.giaan-social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff !important;
    transition: transform 0.2s, opacity 0.2s;
}
.giaan-social-share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.giaan-btn-fb { background: #1877f2; }
.giaan-btn-zalo { background: #0068ff; }
.giaan-btn-copy { background: #475569; cursor: pointer; }

/* 5. ARTICLE CONTENT TYPOGRAPHY & SAPO */
.giaan-sapo-box {
    background: #f8fafc;
    border-left: 4px solid var(--red-brand);
    padding: 18px 22px;
    border-radius: 0 8px 8px 0;
    font-size: 16.5px;
    font-weight: 500;
    color: #1e293b;
    line-height: 1.75;
    margin-bottom: 26px;
    font-style: italic;
}

.giaan-article-text {
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--text-body);
}

.giaan-article-text p {
    margin-bottom: 22px;
}

.giaan-article-text strong, .giaan-article-text b {
    font-weight: 700;
    color: #0f172a;
}

.giaan-article-text ul, .giaan-article-text ol {
    margin: 18px 0 24px 24px;
}

.giaan-article-text li {
    margin-bottom: 10px;
    line-height: 1.75;
}

.giaan-article-text blockquote {
    background: #f8fafc;
    border-left: 4px solid var(--red-brand);
    padding: 16px 20px;
    margin: 24px 0;
    font-style: italic;
    color: #334155;
}

.giaan-article-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 18px auto;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    display: block;
}

/* 6. POST FOOTER (TAGS & BOTTOM SOCIAL SHARE) */
.giaan-post-footer {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.giaan-post-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
}

.giaan-post-tags a {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.giaan-post-tags a:hover {
    background: var(--red-brand);
    color: #fff;
}

/* 7. PREVIOUS / NEXT NAVIGATION */
.giaan-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.giaan-nav-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.giaan-nav-item.next {
    text-align: right;
}

.giaan-nav-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.giaan-nav-item a {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.giaan-nav-item a:hover {
    color: var(--red-brand);
}

/* 8. COMMENTS SECTION (GIA AN JSC MODERN COMMENT DESIGN) */
.giaan-comments-wrap {
    margin-top: 45px;
    padding-top: 36px;
    border-top: 1px solid var(--border-color);
}

/* Reset Konstruktic theme default clip path and styling */
.giaan-comments-wrap .comment-respond {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px 36px;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
    position: relative;
}

/* Reply Title */
.giaan-comments-wrap #reply-title,
.giaan-comments-wrap .comment-reply-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-heading);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.giaan-comments-wrap .giaan-reply-title-text {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.giaan-comments-wrap .giaan-reply-title-text i {
    color: var(--red-brand);
    font-size: 20px;
}

/* Cancel reply button */
.giaan-comments-wrap #cancel-comment-reply-link,
.giaan-comments-wrap .giaan-cancel-reply-wrap a {
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    border: 1px solid #fecaca;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.giaan-comments-wrap #cancel-comment-reply-link:hover,
.giaan-comments-wrap .giaan-cancel-reply-wrap a:hover {
    background: #dc2626;
    color: #ffffff;
    border-color: #dc2626;
}

/* Comment Notes / Privacy Notice */
.giaan-comments-wrap .comment-notes {
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 0 0 24px 0;
    line-height: 1.5;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--red-brand);
    border-radius: 6px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.giaan-comments-wrap .comment-notes i {
    color: var(--red-brand);
    font-size: 14px;
}

.giaan-comments-wrap .required-field-message {
    color: #64748b;
}

.giaan-comments-wrap .required {
    color: #ef4444;
    font-weight: 700;
}

/* Comment Form Layout */
.giaan-comments-wrap .comment-form {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 18px 20px !important;
    margin: 0 !important;
}

/* Form paragraphs reset */
.giaan-comments-wrap .comment-form p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Force order: Notes -> Author & Email -> Textarea -> Submit */
.giaan-comments-wrap .comment-form .comment-notes {
    order: 1 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
}

/* 2 Columns for Author and Email (50% each) */
.giaan-comments-wrap .comment-form .comment-form-author {
    order: 2 !important;
    flex: 1 1 calc(50% - 10px) !important;
    width: calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
}

.giaan-comments-wrap .comment-form .comment-form-email {
    order: 3 !important;
    flex: 1 1 calc(50% - 10px) !important;
    width: calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
}

/* WEBSITE FIELD: BỎ HOÀN TOÀN KHỎI GIAO DIỆN */
.giaan-comments-wrap .comment-form .comment-form-url {
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Comment Textarea (100% width) */
.giaan-comments-wrap .comment-form .comment-form-comment {
    order: 4 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
}

/* Cookies Consent (if any) */
.giaan-comments-wrap .comment-form .comment-form-cookies-consent {
    order: 5 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    font-size: 13px !important;
    color: #64748b !important;
    margin-top: -6px !important;
}

.giaan-comments-wrap .comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 3px !important;
    accent-color: var(--red-brand);
}

.giaan-comments-wrap .comment-form-cookies-consent label {
    display: inline-block !important;
    font-weight: 400 !important;
    text-transform: none !important;
    cursor: pointer;
    line-height: 1.4;
}

/* Submit row */
.giaan-comments-wrap .comment-form .form-submit {
    order: 6 !important;
    flex: 1 1 100% !important;
    width: 100% !important;
    margin-top: 4px !important;
    text-align: left !important;
}

/* Labels */
.giaan-comments-wrap .comment-form label {
    display: block !important;
    font-family: var(--font-body) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #334155 !important;
    margin-bottom: 7px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Inputs & Textarea */
.giaan-comments-wrap .comment-form input[type="text"],
.giaan-comments-wrap .comment-form input[type="email"],
.giaan-comments-wrap .comment-form textarea {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 16px !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-family: var(--font-body) !important;
    font-size: 14.5px !important;
    color: #1e293b !important;
    background: #ffffff !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) inset;
}

.giaan-comments-wrap .comment-form textarea {
    min-height: 125px !important;
    resize: vertical !important;
    line-height: 1.6 !important;
}

.giaan-comments-wrap .comment-form input[type="text"]::placeholder,
.giaan-comments-wrap .comment-form input[type="email"]::placeholder,
.giaan-comments-wrap .comment-form textarea::placeholder {
    color: #94a3b8 !important;
    font-size: 14px !important;
}

/* Focus States */
.giaan-comments-wrap .comment-form input[type="text"]:focus,
.giaan-comments-wrap .comment-form input[type="email"]:focus,
.giaan-comments-wrap .comment-form textarea:focus {
    outline: none !important;
    border-color: var(--red-brand) !important;
    box-shadow: 0 0 0 3px rgba(166, 25, 25, 0.12), 0 1px 2px rgba(0, 0, 0, 0.04) inset !important;
    background: #ffffff !important;
}

/* Hover States */
.giaan-comments-wrap .comment-form input[type="text"]:hover,
.giaan-comments-wrap .comment-form input[type="email"]:hover,
.giaan-comments-wrap .comment-form textarea:hover {
    border-color: #94a3b8;
}

/* Submit Button */
.giaan-comments-wrap .form-submit input[type="submit"],
.giaan-comments-wrap .giaan-comment-submit-btn {
    background: linear-gradient(135deg, #a61919 0%, #8b1414 100%) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 13px 32px !important;
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.6px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 14px rgba(166, 25, 25, 0.28) !important;
    transition: all 0.25s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.giaan-comments-wrap .form-submit input[type="submit"]:hover,
.giaan-comments-wrap .giaan-comment-submit-btn:hover {
    background: linear-gradient(135deg, #8b1414 0%, #700d0d 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 18px rgba(166, 25, 25, 0.38) !important;
}

.giaan-comments-wrap .form-submit input[type="submit"]:active,
.giaan-comments-wrap .giaan-comment-submit-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 8px rgba(166, 25, 25, 0.2) !important;
}

/* ======================================================== */
/* EXISTING COMMENTS LIST (IF COMMENTS ARE POSTED)          */
/* ======================================================== */
.giaan-comments-header {
    margin-bottom: 24px;
}

.giaan-comments-header .comments-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.giaan-comments-header .comments-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--red-brand);
}

.giaan-comment-list,
.giaan-comments-wrap ol.comment-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 32px 0 !important;
}

.giaan-comments-wrap .comment-body {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    position: relative;
}

.giaan-comments-wrap .comment-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.giaan-comments-wrap .comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.giaan-comments-wrap .comment-author .avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid #f1f5f9;
    object-fit: cover;
}

.giaan-comments-wrap .comment-author .fn {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    font-style: normal;
}

.giaan-comments-wrap .comment-metadata a {
    font-size: 12.5px;
    color: #94a3b8;
    text-decoration: none;
}

.giaan-comments-wrap .comment-content {
    font-size: 14.5px;
    line-height: 1.65;
    color: #334155;
    margin-bottom: 12px;
}

.giaan-comments-wrap .comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--red-brand);
    background: var(--red-light);
    padding: 5px 14px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.giaan-comments-wrap .comment-reply-link:hover {
    background: var(--red-brand);
    color: #ffffff;
}

.giaan-comments-wrap .children {
    list-style: none !important;
    margin: 16px 0 0 24px !important;
    padding-left: 16px !important;
    border-left: 2px solid #e2e8f0;
}

.giaan-comments-wrap .no-comments {
    font-size: 14px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 24px;
}


/* 9. SIDEBAR (FROM MOCKUP_CHI_TIET.HTML) */
.giaan-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 28px;
    position: sticky;
    top: 90px;
}

.giaan-widget-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.giaan-widget-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    padding-bottom: 12px;
    margin-bottom: 18px;
    border-bottom: 2px solid #f1f5f9;
    position: relative;
}

.giaan-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--red-brand);
}

.giaan-popular-list {
    list-style: none !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 !important;
    margin: 0 !important;
}

.giaan-popular-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.giaan-popular-num {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--red-brand);
    line-height: 1;
    min-width: 34px;
    flex-shrink: 0;
    white-space: nowrap;
    display: inline-block;
}

.giaan-popular-info {
    flex: 1;
    min-width: 0;
}

.giaan-popular-info a {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.giaan-popular-info a:hover {
    color: var(--red-brand);
}

.giaan-popular-info span {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
    display: block;
}

/* Categories Widget */
.giaan-category-list {
    list-style: none !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 14px;
    padding: 0 !important;
    margin: 0 !important;
}

.giaan-category-item {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
}

.giaan-category-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.giaan-category-item a {
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.giaan-category-item a:hover {
    color: var(--red-brand);
}

.giaan-category-count {
    color: #94a3b8;
}

.giaan-cta-consult-box {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 12px;
    padding: 28px 24px;
    color: #ffffff;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.giaan-cta-consult-box h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    margin-bottom: 8px;
    color: #fff;
}

.giaan-cta-consult-box p {
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 18px;
    line-height: 1.6;
}

.giaan-cta-phone-btn {
    background: var(--red-brand);
    color: #fff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.2s;
}

.giaan-cta-phone-btn:hover {
    background: var(--red-hover);
}

/* 10. RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
    .giaan-single-layout-grid {
        grid-template-columns: 1fr;
    }
    .giaan-single-main-wrap {
        padding: 30px 24px 50px 24px;
        -webkit-clip-path: none;
        clip-path: none;
        margin-top: -30px;
    }
}

@media (max-width: 768px) {
    body.giaan-single-body .page-title-bar .wrap .page-title {
        font-size: 24px !important;
    }
    .giaan-single-post-body {
        padding: 24px 18px;
    }
    .giaan-single-post-title {
        font-size: 22px;
    }
    .giaan-single-post-meta {
        flex-direction: column;
        align-items: flex-start;
    }
    .giaan-post-navigation {
        grid-template-columns: 1fr;
    }
    .giaan-nav-item.next {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .giaan-comments-wrap {
        margin-top: 32px;
        padding-top: 24px;
    }
    .giaan-comments-wrap .comment-respond {
        padding: 22px 18px;
    }
    .giaan-comments-wrap .comment-form .comment-form-author,
    .giaan-comments-wrap .comment-form .comment-form-email {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .giaan-comments-wrap .form-submit input[type="submit"],
    .giaan-comments-wrap .giaan-comment-submit-btn {
        width: 100% !important;
    }
    .giaan-comments-wrap .children {
        margin-left: 10px !important;
        padding-left: 10px !important;
    }
}


/* ======================================================== */
/* 9. ARTICLE IMAGE SLIDER, THUMBNAIL STRIP & LIGHTBOX     */
/* ======================================================== */
.giaan-article-slider-wrap {
    margin: 36px 0 32px 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease;
}
.giaan-article-slider-wrap:hover {
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.09);
}

/* Top bar of slider */
.giaan-slider-header-bar {
    padding: 12px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.giaan-slider-title {
    font-weight: 700;
    font-size: 13.5px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.giaan-slider-title i {
    color: var(--red-brand);
    font-size: 15px;
}
.giaan-slider-counter {
    background: var(--red-brand);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(166, 25, 25, 0.3);
}

/* Main Viewport Stage */
.giaan-slider-viewport {
    position: relative;
    width: 100%;
    height: 520px;
    background: #090d16;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.giaan-slider-main-stage {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-in;
    position: relative;
    padding: 10px;
    box-sizing: border-box;
}
.giaan-slider-active-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    user-select: none;
}
.giaan-slider-zoom-hint {
    position: absolute;
    bottom: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.giaan-slider-main-stage:hover .giaan-slider-zoom-hint {
    background: var(--red-brand);
    border-color: var(--red-brand);
}

/* Nav Arrows (Prev/Next) */
.giaan-slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(6px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 5;
}
.giaan-slider-nav-btn:hover {
    background: var(--red-brand);
    border-color: var(--red-brand);
    color: #ffffff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 14px rgba(166, 25, 25, 0.5);
}
.giaan-slider-nav-btn.prev {
    left: 14px;
}
.giaan-slider-nav-btn.next {
    right: 14px;
}

/* Caption bar */
.giaan-slider-caption-bar {
    padding: 10px 18px;
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    min-height: 20px;
    font-style: italic;
    line-height: 1.5;
}

/* Horizontal Thumbnail Strip */
.giaan-thumb-strip-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 10px 12px;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
}
.giaan-thumb-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 4px 2px;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.giaan-thumb-strip::-webkit-scrollbar {
    height: 4px;
}
.giaan-thumb-strip::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.giaan-thumb-item {
    flex: 0 0 82px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.55;
    transition: all 0.22s ease;
    position: relative;
    background: #0f172a;
}
.giaan-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
}
.giaan-thumb-item:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.giaan-thumb-item.active {
    opacity: 1;
    border-color: var(--red-brand);
    box-shadow: 0 2px 10px rgba(166, 25, 25, 0.4);
    transform: translateY(-2px) scale(1.04);
}
.giaan-thumb-scroll-btn {
    width: 28px;
    height: 60px;
    background: #e2e8f0;
    color: #475569;
    border: none;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-size: 14px;
}
.giaan-thumb-scroll-btn:hover {
    background: var(--red-brand);
    color: #ffffff;
}

/* ======================================================== */
/* 10. LIGHTBOX POPUP MODAL                                 */
/* ======================================================== */
.giaan-lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.giaan-lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}
.giaan-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(8, 10, 15, 0.94);
    backdrop-filter: blur(8px);
}
.giaan-lightbox-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 16px 24px;
    box-sizing: border-box;
}
.giaan-lightbox-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding-bottom: 12px;
}
.giaan-lightbox-counter {
    color: #f1f5f9;
    font-size: 14px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.12);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.giaan-lightbox-close {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}
.giaan-lightbox-close:hover {
    background: var(--red-brand);
    border-color: var(--red-brand);
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
}
.giaan-lightbox-stage {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    overflow: hidden;
}
.giaan-lightbox-img-wrap {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.giaan-lightbox-img-wrap img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.8);
    transition: transform 0.2s ease;
    user-select: none;
}
.giaan-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}
.giaan-lightbox-nav:hover {
    background: var(--red-brand);
    border-color: var(--red-brand);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 4px 18px rgba(166, 25, 25, 0.6);
}
.giaan-lightbox-nav.prev {
    left: 10px;
}
.giaan-lightbox-nav.next {
    right: 10px;
}
.giaan-lightbox-caption {
    text-align: center;
    color: #e2e8f0;
    font-size: 14px;
    padding-top: 14px;
    max-width: 900px;
    margin: 0 auto;
    font-style: italic;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .giaan-slider-viewport {
        height: 340px;
    }
    .giaan-thumb-item {
        flex: 0 0 68px;
        height: 50px;
    }
    .giaan-thumb-scroll-btn {
        display: none;
    }
    .giaan-lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
    .giaan-lightbox-nav.prev {
        left: 4px;
    }
    .giaan-lightbox-nav.next {
        right: 4px;
    }
    .giaan-lightbox-img-wrap img {
        max-height: 72vh;
    }
}

/* Force full width for article slider wrap */
.giaan-article-slider-wrap {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    clear: both !important;
    margin: 28px 0 !important;
    box-sizing: border-box !important;
}


