/* 
 * Saigon Bảo Tín - Single Post & Service Detail Styles
 * Boutique Pure CSS Implementation
 */

.single-main {
    padding: var(--section-pad-y) 0;
    background-color: var(--bg-light);
}

.single-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

@media (min-width: 1024px) {
    .single-grid {
        grid-template-columns: repeat(12, 1fr);
        align-items: start;
    }
    .single-content-area {
        grid-column: span 8;
    }
    .sidebar {
        grid-column: span 4;
    }
}

/* --- Breadcrumbs (Reused) --- */
.st-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.st-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.st-breadcrumbs a:hover {
    color: var(--primary);
}

.st-breadcrumbs .separator {
    font-size: 0.75rem;
    opacity: 0.5;
}

.st-breadcrumbs .current {
    color: var(--text-dark);
    font-weight: 600;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* --- Article Header --- */
.entry-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-dark);
    margin-bottom: 25px;
    letter-spacing: -0.01em;
}

.entry-meta-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 40px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(52, 152, 219, 0.1);
}

.meta-info {
    flex-grow: 1;
}

.author-name {
    display: block;
    font-weight: 800;
    color: var(--text-dark);
    font-size: var(--fs-p);
}

.author-role {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-details {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: #94a3b8;
    font-weight: 600;
}

.meta-details span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: var(--bg-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* --- Featured Image --- */
.featured-image-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.featured-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Entry Content --- */
.entry-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #334155;
}

.entry-content p {
    margin-bottom: 24px;
}

.entry-content h2, .entry-content h3 {
    color: var(--text-dark);
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 20px;
}

.entry-content h2 { font-size: 1.5rem; }
.entry-content h3 { font-size: 1.25rem; }

.entry-content blockquote {
    margin: 40px 0;
    padding: 30px;
    background: rgba(52, 152, 219, 0.05);
    border-left: 5px solid var(--primary);
    border-radius: 0 16px 16px 0;
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.entry-content cite {
    display: block;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 800;
    font-style: normal;
    color: var(--primary);
}

.entry-content img {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

/* Standard WordPress Image Alignments */
.entry-content .alignleft {
    float: left;
    margin: 10px 30px 20px 0;
}

.entry-content .alignright {
    float: right;
    margin: 10px 0 20px 30px;
}

.entry-content .aligncenter {
    clear: both;
    display: block;
    margin: 30px auto;
}

.entry-content .alignnone {
    display: inline-block;
    margin: 10px 15px 20px 0;
}

.entry-content figure {
    margin: 0 0 30px 0;
}

.entry-content figcaption {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
    font-style: italic;
}

.entry-content::after {
    content: "";
    display: table;
    clear: both;
}

/* --- Tags --- */
.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.tag-link {
    padding: 6px 16px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.tag-link:hover {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

/* --- Sidebar Widgets --- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.widget {
    background: #ffffff;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.widget-title {
    font-size: var(--fs-h4);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title .material-symbols-outlined {
    color: var(--primary);
}

.recent-posts-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.recent-post-item {
    display: flex;
    gap: 15px;
    text-decoration: none;
    group: hover;
}

.recent-post-thumb {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.recent-post-info h4 {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 5px;
    transition: var(--transition);
}

.recent-post-item:hover h4 {
    color: var(--primary);
}

.recent-post-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* Most Read */
.most-read-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.most-read-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    text-decoration: none;
}

.most-read-num {
    font-size: 2rem;
    font-weight: 900;
    color: #f1f5f9;
    line-height: 1;
}

.most-read-item h4 {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--text-dark);
    transition: var(--transition);
}

.most-read-item:hover h4 {
    color: var(--primary);
}

/* Newsletter */
.newsletter-widget {
    background: var(--primary);
    color: #ffffff;
    text-align: center;
}

.newsletter-widget .widget-title {
    color: #ffffff;
    justify-content: center;
}

.newsletter-widget .widget-title .material-symbols-outlined {
    color: #ffffff;
    font-size: 2.5rem;
}

.newsletter-widget p {
    font-size: 0.9rem;
    margin-bottom: 25px;
    opacity: 0.9;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter-form .ff-el-form-control {
    width: 100% !important;
    padding: 12px 20px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    font-size: 0.9rem !important;
    height: 54px !important;
}

.newsletter-form .ff-el-form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

.newsletter-form .ff-btn-submit {
    width: 100% !important;
    padding: 12px !important;
    background: var(--secondary) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 16px !important;
    font-weight: 800 !important;
    height: 54px !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    box-shadow: 0 10px 20px rgba(44, 62, 80, 0.2) !important;
}

.newsletter-form .ff-btn-submit:hover {
    background: var(--secondary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(44, 62, 80, 0.3) !important;
}

/* Hide Fluent Forms labels and error messages for cleaner look */
.newsletter-form .ff-el-is-label label { display: none !important; }
.newsletter-form .ff-errors-in-stack { font-size: 0.75rem; color: #ffffff; }

@media (max-width: 640px) {
    .entry-meta-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .meta-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 768px) {
    .entry-meta-box { padding: 20px; }
    .featured-image-container { aspect-ratio: 4 / 3; }
    .sidebar { margin-top: 40px; }
}

/* --- SEO money-page CTA box --- */
.entry-content .sbt-cta-box {
    margin: 1.75rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(14, 165, 233, 0.25);
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.02));
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.entry-content .sbt-cta-box p {
    margin: 0;
    line-height: 1.6;
    color: var(--text-main, #0f172a);
}

.entry-content .sbt-cta-box a {
    color: var(--primary-color, #0284c7);
    font-weight: 700;
    text-decoration: none;
}

.entry-content .sbt-cta-box a:hover {
    text-decoration: underline;
}

.entry-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --- FAQ accordion --- */
.entry-content .sbt-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0 2rem;
}

.entry-content .sbt-faq-item {
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 16px;
    background: var(--bg-white, #fff);
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.entry-content .sbt-faq-item[open],
.entry-content .sbt-faq-item.is-open {
    border-color: rgba(2, 132, 199, 0.35);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.entry-content .sbt-faq-question {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main, #0f172a);
    user-select: none;
}

.entry-content .sbt-faq-question::-webkit-details-marker {
    display: none;
}

.entry-content .sbt-faq-question::marker {
    content: "";
}

.entry-content .sbt-faq-icon {
    flex-shrink: 0;
    font-size: 1.5rem !important;
    color: var(--primary-color, #0284c7);
    transition: transform 0.25s ease;
}

.entry-content .sbt-faq-item[open] .sbt-faq-icon,
.entry-content .sbt-faq-item.is-open .sbt-faq-icon {
    transform: rotate(180deg);
}

.entry-content .sbt-faq-answer {
    padding: 0 1.25rem 1.15rem;
    color: var(--text-muted, #475569);
    line-height: 1.7;
}

.entry-content .sbt-faq-answer p {
    margin: 0;
}

.entry-content .sbt-faq-answer a {
    color: var(--primary-color, #0284c7);
    font-weight: 600;
}

/* Inline content images */
.entry-content .sbt-content-figure {
    margin: 1.75rem 0;
    border-radius: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--border-color, #e2e8f0);
}

.entry-content .sbt-content-figure img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    border-radius: 0;
}

.entry-content .sbt-content-figure figcaption {
    padding: 0.65rem 1rem 0.85rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--text-muted, #64748b);
    text-align: center;
}

