/*
Theme Name: Flatsome Child
Description: Flatsome Child Theme với Single Post Template tùy chỉnh
Author: Your Name
Author URI: https://yoursite.com
Template: flatsome
Version: 1.0.0
Text Domain: flatsome-child
*/

/* 
 * Đây là file CSS chính của Flatsome Child Theme
 * Tất cả CSS tùy chỉnh cho Single Post Template được đặt trong file single-template-style.css
 * 
 * Các thay đổi CSS cơ bản có thể được thêm vào đây
 */

/* Import parent theme styles */
@import url("../flatsome/style.css");

/* Font Family Definitions */
body, 
html, 
* {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Vietnamese Font Support */
body {
    font-family: 'Inter', 'Roboto', 'Segoe UI', Tahoma, Arial, sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Headings Font */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600;
    line-height: 1.3;
}

/* Child theme specific overrides */
.flatsome-child .site-header {
    /* Tùy chỉnh header nếu cần */
}

.flatsome-child .site-footer {
    /* Tùy chỉnh footer nếu cần */
}

/* Custom body classes for single post template */
body.single-post-template {
    background-color: #f8f9fa;
}

body.right-sidebar-layout .site-content {
    background: transparent;
}

/* Ensure proper spacing for single posts */
.single-post-template .entry-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Custom styling for single post meta */
.single-post-template .entry-meta {
    background: #f8f9fa;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

/* Ensure sidebar widgets have proper spacing */
.single-post-template .widget-area.sidebar {
    margin-top: 0;
}

/* Custom link colors */
.single-post-template a {
    color: #007cba;
    transition: color 0.2s ease;
}

.single-post-template a:hover {
    color: #005a87;
}

/* Custom button styles */
.single-post-template .button,
.single-post-template .btn {
    background-color: #007cba;
    border-color: #007cba;
    color: #fff;
    transition: all 0.2s ease;
}

.single-post-template .button:hover,
.single-post-template .btn:hover {
    background-color: #005a87;
    border-color: #005a87;
    transform: translateY(-2px);
}

/* Ensure proper typography */
.single-post-template h1,
.single-post-template h2,
.single-post-template h3,
.single-post-template h4,
.single-post-template h5,
.single-post-template h6 {
    font-family: inherit;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Custom blockquote styling */
.single-post-template blockquote {
    border-left: 4px solid #007cba;
    background: #f8f9fa;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 5px 5px 0;
}

.single-post-template blockquote p {
    margin: 0;
    font-style: italic;
    color: #555;
}

/* Custom table styling */
.single-post-template table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.single-post-template table th,
.single-post-template table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.single-post-template table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Custom code styling */
.single-post-template code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
}

.single-post-template pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 5px;
    overflow-x: auto;
    border: 1px solid #e9ecef;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .single-post-template .entry-content {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .single-post-template .entry-meta {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .single-post-template .entry-content {
        padding: 15px;
    }
    
    .single-post-template .entry-title {
        font-size: 1.8em;
    }
}

/* Print styles */
@media print {
    .single-post-template .widget-area.sidebar,
    .single-post-template .relpost-thumb-wrapper {
        display: none;
    }
    
    .single-post-template .entry-content {
        background: transparent;
        box-shadow: none;
        padding: 0;
    }
}