/*
Theme Name: Dược Sĩ Lê Phương
Theme URI: #
Author: Antigravity AI
Author URI: #
Description: Theme tối ưu tốc độ và chuẩn SEO dành riêng cho chuyên gia chia sẻ kiến thức sức khỏe, thương hiệu Dược Sĩ Lê Phương.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lephuong
*/

/* --- CSS Reset & Variables --- */
:root {
    --primary-color: #0d47a1; /* Deep Trust Blue */
    --primary-dark: #082f6b;
    --primary-light: #e3f2fd;
    --secondary-color: #00bfa5; /* Medical Teal */
    --secondary-dark: #008e7b;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-color: #f8fafc;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --font-heading: 'Merriweather', serif; 
    --font-body: 'Inter', sans-serif; 
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px -3px rgba(0,0,0,0.07);
    --shadow-lg: 0 20px 40px -5px rgba(0,0,0,0.1);
    --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--text-color); margin-bottom: 1rem; line-height: 1.3; }
a { color: var(--primary-color); text-decoration: none; transition: all 0.3s ease; }
a:hover { color: var(--secondary-color); }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }

/* Layout Utilities */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-spacing { padding: 80px 0; }
.bg-light { background-color: var(--bg-color); }
.text-center { text-align: center; }

/* Header */
.site-header { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); padding: 15px 0; position: sticky; top: 0; z-index: 1000;}
.header-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.site-branding .site-title { margin: 0; font-size: 26px; font-weight: 700; color: var(--primary-color); letter-spacing: -0.5px; font-family: var(--font-heading); }
.site-branding .site-title span { color: var(--secondary-color); }
.site-branding .site-title a { color: inherit; }
.site-branding .site-description { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.main-navigation ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
.main-navigation a { font-weight: 600; color: var(--text-color); font-size: 15px; }
.main-navigation a:hover { color: var(--secondary-color); }

/* --- Premium Hero Section --- */
.premium-hero { position: relative; padding: 100px 0 120px; background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%); overflow: hidden; }
.hero-bg-shapes .shape { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0; opacity: 0.5; }
.hero-bg-shapes .shape-1 { width: 400px; height: 400px; background: var(--secondary-color); top: -100px; right: -100px; }
.hero-bg-shapes .shape-2 { width: 300px; height: 300px; background: var(--primary-color); bottom: -50px; left: -50px; }

.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.hero-content { flex: 1.2; max-width: 650px; }
.trust-label { display: inline-flex; align-items: center; gap: 8px; background: white; padding: 8px 16px; border-radius: 50px; font-weight: 600; font-size: 14px; color: var(--primary-color); box-shadow: var(--shadow-sm); margin-bottom: 25px; }
.hero-title { font-size: 52px; line-height: 1.15; font-weight: 700; margin-bottom: 25px; }
.text-gradient { background: linear-gradient(to right, var(--primary-color), var(--secondary-color)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-desc { font-size: 18px; color: var(--text-light); margin-bottom: 40px; line-height: 1.7; font-family: var(--font-body); }

.hero-actions { display: flex; gap: 20px; margin-bottom: 40px; }
.btn-premium { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; border-radius: 50px; font-weight: 600; font-size: 16px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; }
.btn-premium.btn-solid { background: var(--primary-color); color: white; box-shadow: 0 10px 20px rgba(13, 71, 161, 0.2); }
.btn-premium.btn-solid:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: 0 15px 25px rgba(13, 71, 161, 0.3); }
.btn-premium.btn-outline { background: white; color: var(--primary-color); border: 2px solid var(--primary-color); }
.btn-premium.btn-outline:hover { background: var(--primary-light); transform: translateY(-3px); }

.hero-stats { display: flex; gap: 30px; align-items: center; }
.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 28px; font-weight: 700; color: var(--text-color); font-family: var(--font-heading); }
.stat-text { font-size: 14px; color: var(--text-light); }
.stat-divider { width: 1px; height: 40px; background: var(--border-color); }

.hero-visual { flex: 1; position: relative; display: flex; justify-content: flex-end; }
.image-frame { position: relative; width: 100%; max-width: 450px; }
.expert-img { width: 100%; height: 550px; object-fit: cover; border-radius: 20px 20px 100px 20px; box-shadow: var(--shadow-lg); border: 8px solid white; }
.floating-badge { position: absolute; background: white; padding: 15px 20px; border-radius: var(--radius); display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-md); animation: float 6s ease-in-out infinite; z-index: 10;}
.badge-top { top: 40px; left: -40px; }
.badge-bottom { bottom: 60px; right: -30px; animation-delay: 3s; }
.badge-icon { font-size: 24px; background: var(--primary-light); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.badge-text { font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--text-color); }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@media (max-width: 992px) {
    .premium-hero { padding: 60px 0; }
    .hero-inner { flex-direction: column; text-align: center; }
    .hero-content { align-items: center; display: flex; flex-direction: column; }
    .hero-actions { flex-direction: column; width: 100%; max-width: 300px; }
    .hero-visual { margin-top: 50px; justify-content: center; }
    .badge-top { left: 10px; }
    .badge-bottom { right: 10px; }
}

/* --- Section Headings --- */
.section-heading { margin-bottom: 50px; position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.section-heading.text-center { align-items: center; }
.sub-heading { color: var(--secondary-color); font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; display: block; }
.main-heading { font-size: 36px; font-weight: 700; margin: 0; }
.btn-link { margin-top: 15px; font-weight: 600; color: var(--primary-color); display: inline-flex; align-items: center; gap: 5px; }
.btn-link:hover { color: var(--secondary-color); gap: 10px; }

/* --- Expertise Section --- */
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 768px) { .expertise-grid { grid-template-columns: 1fr; } }
.expertise-card { background: white; padding: 40px 30px; border-radius: var(--radius); text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); transition: all 0.3s ease; }
.expertise-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.card-icon { font-size: 40px; margin-bottom: 20px; display: inline-block; padding: 15px; background: var(--bg-color); border-radius: 50%; }
.expertise-card h3 { font-size: 20px; margin-bottom: 15px; }
.expertise-card p { color: var(--text-light); font-size: 15px; }

/* --- Editorial Blog Section --- */
.premium-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: auto auto; gap: 30px; }
.premium-post-card { background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s ease; display: flex; flex-direction: column; }
.premium-post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.premium-post-card.featured-post { grid-column: span 2; grid-row: span 2; }
@media (max-width: 992px) {
    .premium-post-grid { grid-template-columns: 1fr; }
    .premium-post-card.featured-post { grid-column: span 1; grid-row: span 1; }
}

.post-img-wrap { position: relative; display: block; overflow: hidden; aspect-ratio: 16/9; }
.featured-post .post-img-wrap { aspect-ratio: 16/10; }
.post-img-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 0.5s ease; }
.premium-post-card:hover .post-img-wrap img { transform: scale(1.05); }
.post-category-badge { position: absolute; top: 20px; left: 20px; background: var(--secondary-color); color: white; padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.img-placeholder { width: 100%; height: 100%; background: var(--bg-color); display: flex; align-items: center; justify-content: center; font-size: 40px; }

.post-info { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.post-date { font-size: 13px; color: var(--text-light); margin-bottom: 10px; font-weight: 500; }
.post-title { font-size: 18px; line-height: 1.4; margin-bottom: 15px; }
.featured-post .post-title { font-size: 28px; }
.post-title a { color: var(--text-color); }
.post-title a:hover { color: var(--primary-color); }
.post-excerpt { color: var(--text-light); font-size: 15px; }

/* --- Video Section --- */
.premium-video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 768px) { .premium-video-grid { grid-template-columns: 1fr; } }
.video-card { background: white; border-radius: var(--radius); padding: 15px; box-shadow: var(--shadow-sm); transition: all 0.3s ease; border: 1px solid var(--border-color); }
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.video-thumb { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: rgba(13, 71, 161, 0.8); border-radius: 50%; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); transition: all 0.3s ease; }
.video-card:hover .play-btn { background: var(--secondary-color); transform: translate(-50%, -50%) scale(1.1); }
.video-title { font-size: 16px; margin-top: 15px; margin-bottom: 0; line-height: 1.4; text-align: center; }
.video-title a { color: var(--text-color); }

/* --- Footer --- */
.site-footer { background: var(--primary-dark); color: var(--white); padding: 80px 0 20px; margin-top: 60px; }
.footer-widgets { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; margin-bottom: 40px; }
@media (max-width: 768px) { .footer-widgets { grid-template-columns: 1fr; gap: 40px; } }
.footer-title { color: var(--white); font-size: 20px; margin-bottom: 25px; padding-bottom: 15px; position: relative; font-family: var(--font-heading); }
.footer-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; background: var(--secondary-color); }
.newsletter-box { background: rgba(255,255,255,0.03); padding: 40px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.08); }
.newsletter-form { display: flex; margin-top: 25px; }
.newsletter-input { flex-grow: 1; padding: 16px 20px; border: none; border-radius: 8px 0 0 8px; font-family: var(--font-body); outline: none; background: white; }
.newsletter-btn { padding: 16px 30px; background: var(--secondary-color); color: var(--white); border: none; border-radius: 0 8px 8px 0; font-weight: 700; cursor: pointer; transition: background 0.3s; }
.newsletter-btn:hover { background: var(--secondary-dark); }
.site-info { text-align: center; font-size: 14px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; color: rgba(255,255,255,0.6); margin-top: 40px; }

/* Internal Pages Fallback */
.site-content { display: flex; flex-wrap: wrap; margin-top: 40px; margin-bottom: 40px; gap: 40px; }
.main-area { flex: 1; min-width: 0; }
.sidebar-area { width: 340px; flex-shrink: 0; }
@media (max-width: 992px) {
    .site-content { flex-direction: column; }
    .sidebar-area { width: 100%; }
}
.single-post-content { background: var(--white); padding: 50px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.single-post-title { font-size: 36px; margin-bottom: 20px; line-height: 1.3; }
.single-post-meta { margin-bottom: 40px; color: var(--text-light); padding-bottom: 20px; border-bottom: 1px solid var(--border-color); }
.entry-content p { margin-bottom: 25px; font-size: 18px; color: #334155; line-height: 1.8; }
.entry-content h2, .entry-content h3 { margin-top: 50px; margin-bottom: 20px; color: var(--text-color); }
.entry-content ul, .entry-content ol { margin-bottom: 25px; padding-left: 20px; font-size: 18px; color: #334155; line-height: 1.8; }

.widget { background: var(--white); padding: 30px; border-radius: var(--radius); margin-bottom: 30px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); }
.widget-title { font-size: 20px; border-bottom: 2px solid var(--border-color); padding-bottom: 15px; margin-bottom: 25px; position: relative; font-family: var(--font-heading); }
.widget-title::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 50px; height: 3px; background: var(--secondary-color); }
.author-avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 20px auto; border: 4px solid var(--secondary-color); display: block; }
.author-name { font-size: 22px; margin-bottom: 10px; color: var(--primary-color); font-family: var(--font-heading); font-weight: 700; text-align: center; }
.author-desc { font-size: 15px; color: var(--text-light); text-align: center; line-height: 1.6; }

/* Internal Post Loops */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }
.post-item { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); display: flex; flex-direction: column; transition: transform 0.3s ease; }
.post-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.post-item .post-thumbnail img { border-radius: 0; width: 100%; height: 220px; object-fit: cover; }
.post-item .post-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.post-item .post-title { font-size: 20px; margin-bottom: 15px; }
.read-more { align-self: flex-start; display: inline-block; padding: 10px 20px; background: var(--primary-light); color: var(--primary-color); border-radius: 50px; font-weight: 600; font-size: 14px; margin-top: auto; }
.read-more:hover { background: var(--primary-color); color: var(--white); }

/* --- Forms & Contact Form 7 Styles --- */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="password"],
.wpcf7 input[type="number"],
.wpcf7 input[type="date"],
.wpcf7 select,
.wpcf7 textarea,
.site-content input[type="text"],
.site-content input[type="email"],
.site-content input[type="tel"],
.site-content textarea {
    width: 100% !important;
    padding: 16px 20px !important;
    border: 2px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    background-color: var(--bg-color) !important;
    color: var(--text-color) !important;
    font-family: var(--font-body) !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    margin-top: 8px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
}

.wpcf7 input:focus,
.wpcf7 textarea:focus,
.site-content input:focus,
.site-content textarea:focus {
    outline: none !important;
    border-color: var(--secondary-color) !important;
    background-color: var(--white) !important;
    box-shadow: 0 0 0 4px rgba(0, 191, 165, 0.1) !important;
}

.wpcf7 textarea,
.site-content textarea {
    min-height: 160px !important;
    resize: vertical !important;
}

.wpcf7 input[type="submit"],
.wpcf7 button[type="submit"],
.wpcf7-submit,
.site-content input[type="submit"] {
    display: inline-block !important;
    padding: 16px 40px !important;
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 20px rgba(13, 71, 161, 0.2) !important;
    width: auto !important;
    margin-top: 15px !important;
}

.wpcf7 input[type="submit"]:hover,
.wpcf7 button[type="submit"]:hover,
.wpcf7-submit:hover,
.site-content input[type="submit"]:hover {
    background-color: var(--secondary-color) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 25px rgba(0, 191, 165, 0.3) !important;
}

/* Specific CF7 Layout Adjustments */
.wpcf7 {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}
.wpcf7-form p {
    margin-bottom: 25px;
    font-weight: 500;
    color: var(--text-color);
}
span.wpcf7-not-valid-tip {
    color: #ef4444;
    font-size: 13px;
    margin-top: 8px;
    display: block;
    font-weight: 500;
}
div.wpcf7-response-output {
    border-radius: 8px;
    padding: 15px 20px;
    margin-top: 25px;
    font-size: 15px;
    font-weight: 500;
    border-width: 2px !important;
}
div.wpcf7-validation-errors {
    border-color: #f59e0b !important;
    color: #d97706;
    background: #fffbeb;
}
div.wpcf7-mail-sent-ok {
    border-color: #10b981 !important;
    color: #047857;
    background: #ecfdf5;
}
.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}

/* Form Grid for side-by-side inputs (optional utility) */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr; }
    .wpcf7 { padding: 25px; }
}

/* --- About Page Template --- */
.about-page-main { background: #f8fafc; }
.about-page-main .container { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 40px; border: 1px solid var(--border-color); }

.profile-hero {
    background: linear-gradient(135deg, #085041 0%, #0F6E56 60%, #1D9E75 100%);
    padding: 2.5rem 2rem 2rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}
.profile-hero::before {
    content: "";
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.profile-hero-tag {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    color: #9FE1CB;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 1rem;
}
.profile-hero h1 {
    font-size: 26px;
    font-weight: 500;
    color: #fff;
    line-height: 1.25;
    margin-bottom: 0.5rem;
}
.profile-hero h1 span {
    color: #5DCAA5;
}
.profile-hero-sub {
    font-size: 14px;
    color: #9FE1CB;
    line-height: 1.6;
    max-width: 540px;
}

.profile-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 1.5rem;
}
.profile-stat-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}
.profile-stat-number {
    font-size: 22px;
    font-weight: 500;
    color: #0F6E56;
    display: block;
    margin-bottom: 4px;
}
.profile-stat-label {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

.profile-section {
    margin-bottom: 1.25rem;
}
.profile-section-title {
    font-size: 13px;
    font-weight: 500;
    color: #085041;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.75rem;
    padding-bottom: 6px;
    border-bottom: 1.5px solid #5DCAA5;
    display: flex;
    align-items: center;
    gap: 6px;
}
.profile-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #1D9E75;
    display: inline-block;
    flex-shrink: 0;
}

.profile-bio-text {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 0.75rem;
}
.profile-highlight-box {
    background: #E1F5EE;
    border-left: 3px solid #1D9E75;
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0.875rem 1rem;
    margin: 1rem 0;
    font-size: 14px;
    color: #085041;
    font-style: italic;
    line-height: 1.7;
}

.profile-expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 1.25rem;
}
@media (max-width: 768px) {
    .profile-expertise-grid { grid-template-columns: 1fr; }
    .profile-stats-row { grid-template-columns: 1fr; }
    .profile-trust-row { grid-template-columns: 1fr; }
}
.profile-expertise-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
}
.profile-expertise-icon {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: #E1F5EE;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px;
}
.profile-expertise-icon svg { width: 14px; height: 14px; stroke: #0F6E56; fill: none; stroke-width: 2; }
.profile-expertise-card h3 {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
}
.profile-expertise-card p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

.profile-product-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.profile-product-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg-color);
    border-radius: var(--radius);
    padding: 10px 12px;
}
.profile-product-badge {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: #085041;
    color: #9FE1CB;
    font-size: 11px;
    font-weight: 500;
    display: flex; align-items: center; justify-content: center;
}
.profile-product-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 2px;
}
.profile-product-desc {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

.profile-credentials-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.profile-cred-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.5;
}
.profile-cred-bullet {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #1D9E75;
    flex-shrink: 0;
    margin-top: 7px;
}

.profile-philosophy-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    margin-bottom: 1.25rem;
}
.profile-quote-mark {
    font-size: 40px;
    color: #5DCAA5;
    line-height: 1;
    font-family: Georgia, serif;
    margin-bottom: 0.5rem;
}
.profile-quote-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 0.75rem;
}
.profile-quote-author {
    font-size: 13px;
    color: #0F6E56;
    font-weight: 500;
}

.profile-trust-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.profile-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-color);
    border-radius: var(--radius);
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-light);
}
.profile-trust-check {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #E1F5EE;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.profile-trust-check svg { width: 10px; height: 10px; stroke: #0F6E56; fill: none; stroke-width: 2.5; }

/* --- Author Bio Box --- */
.author-bio-box {
    display: flex;
    gap: 25px;
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius);
    margin-top: 40px;
    box-shadow: var(--shadow-sm);
    align-items: center;
}
.author-bio-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-light);
}
.author-bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
}
.author-bio-info {
    flex-grow: 1;
}
.author-bio-name {
    margin: 0 0 10px 0;
    font-size: 22px;
    color: var(--primary-color);
}
.author-bio-name a {
    color: inherit;
    text-decoration: none;
}
.author-bio-name a:hover {
    color: var(--secondary-color);
}
.author-bio-desc {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}
.author-bio-social {
    display: flex;
    gap: 15px;
}
.author-bio-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-color);
    color: var(--primary-color);
    transition: all 0.3s ease;
}
.author-bio-social a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}
@media (max-width: 600px) {
    .author-bio-box {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    .author-bio-social {
        justify-content: center;
    }
}

/* --- Comprehensive Mobile Responsiveness --- */
/* --- Mobile Menu Styles (Hamburger) --- */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}
.menu-icon {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    position: relative;
    transition: background 0.2s ease-out;
}
.menu-icon::before, .menu-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: all 0.2s ease-out;
    left: 0;
}
.menu-icon::before { top: -8px; }
.menu-icon::after { top: 8px; }

.menu-toggle.active .menu-icon { background: transparent; }
.menu-toggle.active .menu-icon::before { transform: rotate(45deg); top: 0; }
.menu-toggle.active .menu-icon::after { transform: rotate(-45deg); top: 0; }

/* --- Comprehensive Mobile Responsiveness --- */
@media (max-width: 768px) {
    /* Header */
    .header-inner { flex-direction: row; justify-content: space-between; align-items: center; position: relative; }
    .site-branding .site-title { font-size: 22px; }
    .menu-toggle { display: block; }
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        padding: 20px 0;
        z-index: 999;
        border-top: 1px solid var(--border-color);
    }
    .main-navigation.toggled {
        display: block;
    }
    .main-navigation ul { flex-direction: column; align-items: center; gap: 20px; }
    .main-navigation a { font-size: 16px; padding: 10px; display: block; }

    /* Hero Section */
    .premium-hero { padding: 40px 0; }
    .hero-title { font-size: 32px; margin-bottom: 15px; }
    .hero-desc { font-size: 16px; margin-bottom: 25px; }
    .hero-actions { width: 100%; max-width: 100%; display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
    .btn-premium { width: 100%; }
    .hero-stats { flex-wrap: wrap; justify-content: center; gap: 20px; }
    .stat-divider { display: none; }
    .stat-number { font-size: 24px; }
    .expert-img { height: 400px; border-radius: 20px 20px 60px 20px; border-width: 4px; }
    .floating-badge { padding: 10px 15px; gap: 10px; }
    .badge-icon { width: 35px; height: 35px; font-size: 18px; }
    .badge-text { font-size: 12px; }

    /* Typography & Sections */
    .section-spacing { padding: 50px 0; }
    .main-heading { font-size: 28px; text-align: center; }
    .section-heading { align-items: center; text-align: center; margin-bottom: 30px; }

    /* Single Post */
    .single-post-content { padding: 20px; }
    .single-post-title { font-size: 26px; }
    .single-post-meta { display: flex; flex-direction: column; gap: 5px; }
    .single-post-meta span { border: none; padding: 0; }
    .entry-content p, .entry-content ul, .entry-content ol { font-size: 16px; }

    /* Sidebar / Widgets */
    .widget { padding: 20px; }
    
    /* Post Grid */
    .post-grid { grid-template-columns: 1fr; }
    .premium-post-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-widgets { gap: 30px; }
    .newsletter-box { padding: 20px; }
    .newsletter-form { flex-direction: column; gap: 10px; }
    .newsletter-input { border-radius: 8px; width: 100%; }
    .newsletter-btn { border-radius: 8px; width: 100%; }
    .site-footer { padding: 50px 0 20px; margin-top: 40px; }
}

@media (max-width: 480px) {
    .expert-img { height: 320px; }
    .badge-top { left: 0; }
    .badge-bottom { right: 0; }
}

/* --- Hide Old/Plugin Author Boxes --- */
.author-box, 
.author-info, 
.saboxplugin-wrap, 
.ts-fab-wrapper, 
#author-bio,
.post-author,
.post-author-box,
.about-author,
.user-profile {
    display: none !important;
}
/* Ensure our premium custom author box is always visible */
.author-bio-box {
    display: flex !important;
}

/* --- Footer Newsletter CF7 Fix --- */
.footer-newsletter-wrapper .wpcf7 {
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    margin-top: 25px !important;
    max-width: 100% !important;
}
.newsletter-flex {
    display: flex;
    align-items: stretch;
}
.newsletter-flex .wpcf7-form-control-wrap {
    flex-grow: 1;
    display: block;
    margin: 0;
}
.newsletter-flex .newsletter-input {
    width: 100% !important;
    padding: 16px 20px !important;
    border: none !important;
    border-radius: 8px 0 0 8px !important;
    background: white !important;
    margin-top: 0 !important;
    height: 100% !important;
    color: #333 !important;
}
.newsletter-flex .newsletter-btn {
    padding: 16px 30px !important;
    background: var(--secondary-color) !important;
    color: var(--white) !important;
    border: none !important;
    border-radius: 0 8px 8px 0 !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: background 0.3s !important;
    margin-top: 0 !important;
    box-shadow: none !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.newsletter-flex .newsletter-btn:hover {
    background: var(--secondary-dark) !important;
    transform: none !important;
    box-shadow: none !important;
}
div.wpcf7-response-output {
    margin-top: 15px !important;
}
@media (max-width: 768px) {
    .newsletter-flex {
        flex-direction: column;
        gap: 10px;
    }
    .newsletter-flex .newsletter-input, .newsletter-flex .newsletter-btn {
        border-radius: 8px !important;
        width: 100% !important;
    }
}

/* --- Sidebar Custom Categories --- */
.styled-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.styled-category-list li {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    transition: all 0.3s ease;
}
.styled-category-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.styled-category-list li a {
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}
.styled-category-list li a::before {
    content: '›';
    margin-right: 10px;
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 20px;
    line-height: 1;
    vertical-align: middle;
}
.styled-category-list li:hover a {
    color: var(--primary-color);
    transform: translateX(5px);
}
.author-name a:hover {
    color: var(--secondary-color) !important;
}

/* --- YouTube Style Video Layout --- */
.yt-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 30px;
    max-width: 1300px !important;
}
.yt-main {
    flex: 1;
    min-width: 0;
}
.yt-sidebar {
    width: 380px;
    flex-shrink: 0;
}
@media (max-width: 992px) {
    .yt-layout { flex-direction: column; }
    .yt-sidebar { width: 100%; margin-top: 30px; }
}

.yt-video-player-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 12px;
    margin-bottom: 20px;
}

.yt-title {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
    color: var(--text-color);
}

.yt-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.yt-author {
    display: flex;
    align-items: center;
    gap: 15px;
}
.yt-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-color);
}
.yt-author-info {
    display: flex;
    flex-direction: column;
}
.yt-author-name {
    font-size: 16px;
    margin: 0 0 2px 0;
    font-weight: 700;
    font-family: var(--font-body);
}
.yt-author-name a { color: var(--text-color); }
.yt-author-name a:hover { color: var(--primary-color); }
.yt-author-subs {
    font-size: 13px;
    color: var(--text-light);
}
.yt-subscribe-btn {
    background: var(--text-color);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    margin-left: 15px;
    transition: background 0.3s;
}
.yt-subscribe-btn:hover { background: #333; color: white; }

.yt-description-box {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 30px;
}
.yt-desc-meta {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 10px;
}
.yt-desc-content {
    font-size: 15px;
    color: #334155;
    line-height: 1.6;
}

/* Sidebar Related Videos */
.yt-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    font-family: var(--font-body);
}
.yt-related-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.yt-related-item {
    display: flex;
    gap: 12px;
    transition: transform 0.2s;
    border-radius: 8px;
}
.yt-related-item:hover {
    transform: translateX(5px);
}
.yt-rel-thumb {
    width: 160px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background: var(--border-color);
}
.yt-rel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
.yt-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: rgba(0,0,0,0.2);
    font-size: 20px;
}
.yt-rel-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.yt-rel-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 5px 0;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.yt-rel-author, .yt-rel-date {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 2px;
}
@media (max-width: 480px) {
    .yt-author { flex-wrap: wrap; }
    .yt-subscribe-btn { margin-left: 0; margin-top: 10px; }
    .yt-rel-thumb { width: 120px; height: 68px; }
}

/* --- Custom Search Form --- */
.custom-search-form {
    width: 100%;
}
.search-input-wrapper {
    display: flex;
    position: relative;
    background: var(--white);
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}
.search-input-wrapper:focus-within {
    box-shadow: 0 8px 25px rgba(29, 158, 117, 0.15);
    border-color: var(--primary-color);
}
.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}
.search-field {
    flex-grow: 1;
    border: none;
    padding: 16px 20px 16px 50px;
    font-size: 16px;
    font-family: var(--font-body);
    background: transparent;
    outline: none;
    color: var(--text-color);
}
.search-submit {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 0 30px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.search-submit:hover {
    background: var(--secondary-dark);
}
@media (max-width: 480px) {
    .search-submit { padding: 0 20px; font-size: 14px; }
    .search-field { padding: 14px 15px 14px 45px; font-size: 15px; }
    .search-icon { left: 15px; width: 18px; height: 18px; }
}

/* --- Breadcrumbs --- */
.lephuong-breadcrumbs {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
    font-family: var(--font-body);
}
.lephuong-breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}
.lephuong-breadcrumbs a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}
.lephuong-breadcrumbs .sep {
    margin: 0 8px;
    color: #cbd5e1;
}
.lephuong-breadcrumbs .current {
    color: var(--text-color);
    font-weight: 500;
}

/* --- Profile Improvements --- */
.profile-social-links {
    margin-top: 15px;
    display: flex;
    gap: 12px;
}
.profile-social-links .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transition: all 0.2s;
}
.profile-social-links .social-icon svg {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}
.profile-social-links .social-icon:hover {
    background: #ffffff;
    transform: translateY(-2px);
}
.profile-social-links .social-icon:hover svg {
    fill: #0F6E56;
}

.profile-bio-text {
    line-height: 1.8; /* Increased for better readability */
    margin-bottom: 20px;
    font-size: 16px; /* Increased font size */
}

/* Custom Content styling */
.profile-custom-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
}
.profile-custom-content h2, 
.profile-custom-content h3 {
    color: var(--primary-dark);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* --- WordPress Comments Styling --- */
#comments {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}
.comments-title {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--text-color);
    font-weight: 600;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-list .comment {
    margin-bottom: 25px;
}
.comment-body {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    gap: 15px;
}
.comment-author .avatar {
    border-radius: 50%;
    width: 48px;
    height: 48px;
    object-fit: cover;
}
.comment-meta {
    flex: 1;
}
.comment-author .fn {
    font-weight: 600;
    font-style: normal;
    font-size: 15px;
    color: var(--text-color);
}
.comment-author .says {
    display: none;
}
.comment-metadata {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 10px;
}
.comment-metadata a {
    color: var(--text-light);
    text-decoration: none;
}
.comment-content {
    font-size: 15px;
    color: var(--text-color);
    line-height: 1.6;
}
.comment-content p {
    margin-bottom: 10px;
}
.comment-content p:last-child {
    margin-bottom: 0;
}
.reply a {
    display: inline-block;
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    margin-top: 10px;
}
.reply a:hover {
    text-decoration: underline;
}

/* Comment Form */
#respond {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    border: 1px dashed var(--border-color);
}
#reply-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}
.comment-notes {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 20px;
}
.comment-form-comment label,
.comment-form-author label,
.comment-form-email label,
.comment-form-url label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}
.comment-form-comment textarea,
.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s;
}
.comment-form-comment textarea:focus,
.comment-form-author input:focus,
.comment-form-email input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(29, 158, 117, 0.1);
}
.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 20px;
}
.comment-form-comment {
    margin-bottom: 20px;
}
.form-submit .submit {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.form-submit .submit:hover {
    background: var(--primary-dark);
}
.comment-awaiting-moderation {
    color: #e67e22;
    font-size: 13px;
    font-style: italic;
    margin-bottom: 10px;
}

/* --- Comment Layout Fixes --- */
.comment-list, .comment-list ol, .comment-list ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.comment-list .comment {
    margin-bottom: 25px;
    list-style: none !important;
}
.comment-body {
    display: block !important;
    position: relative !important;
}
.comment-author .avatar {
    position: absolute !important;
    top: 20px;
    left: 20px;
}
.comment-meta, .comment-content, .reply {
    margin-left: 65px !important;
}

/* --- FINAL COMMENT LAYOUT FIXES --- */
/* Fix the list numbers (WordPress default uses .commentlist without hyphen) */
ol.commentlist, ul.commentlist, .commentlist, .comment-list {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.commentlist li.comment, .comment-list li.comment {
    list-style: none !important;
}

/* Reset the body */
.comment-body {
    display: block !important;
    padding: 20px !important;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Layout the meta area (Avatar + Name + Date) */
.comment-meta {
    display: flex !important;
    align-items: center !important;
    margin-left: 0 !important;
    margin-bottom: 15px !important;
}
.comment-author {
    display: flex !important;
    align-items: center !important;
}
.comment-author .avatar {
    position: static !important;
    float: none !important;
    margin-right: 15px !important;
    border-radius: 50% !important;
    width: 48px !important;
    height: 48px !important;
}
.comment-author .fn {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--text-color) !important;
}
.comment-author .says {
    display: none !important;
}
.comment-metadata {
    margin-left: 15px !important;
    font-size: 13px !important;
    color: var(--text-light) !important;
}
.comment-metadata::before {
    content: "•";
    margin-right: 15px;
    color: #cbd5e1;
}

/* Content and Reply Button */
.comment-content {
    margin-left: 63px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: var(--text-color) !important;
}
.reply {
    margin-left: 63px !important;
    margin-top: 10px !important;
}
.reply a {
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 6px;
    color: var(--text-color);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}
.reply a:hover {
    background: #e2e8f0;
}

/* ==========================================================================
   E-COMMERCE STYLE COMMENTS (SHOPEE/TIKI INSPIRED)
   ========================================================================== */

/* --- Container & Titles --- */
#comments {
    background-color: #fcfaf5; /* Light beige */
    padding: 30px;
    border-radius: 12px;
    margin-top: 50px;
    border: 1px solid #f0eee9;
}
#comments > h2, .comments-title {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 25px;
    position: relative;
}
#comments > h2::before {
    content: "BÌNH LUẬN TỪ KHÁCH HÀNG";
    display: block;
    font-size: 12px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* --- List Resets --- */
ol.commentlist, ul.commentlist, .commentlist, .comment-list, .comment-list ul {
    list-style: none !important;
    padding-left: 0 !important;
    margin-left: 0 !important;
}
.commentlist li.comment, .comment-list li.comment {
    list-style: none !important;
    margin-bottom: 20px;
}

/* --- Comment Box (Parent) --- */
.comment-body {
    background: #ffffff !important;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    display: block !important;
    position: relative;
}

/* --- Meta: Avatar, Name, Date --- */
.comment-meta {
    display: flex !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
    margin-bottom: 12px !important;
}
.comment-author {
    display: flex !important;
    align-items: flex-start !important;
}
.comment-author .avatar {
    position: static !important;
    float: none !important;
    margin-right: 15px !important;
    border-radius: 50% !important;
    width: 42px !important;
    height: 42px !important;
    object-fit: cover;
    background: #e2e8f0; /* Fallback for missing avatar */
}

/* Name & Badge Container */
.comment-author .fn {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #333333 !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    line-height: 1.2;
}
/* Fake "Đã mua hàng" Badge using ::after on normal users */
.comment-author .fn::after {
    content: "● Đã xác minh";
    display: inline-block;
    background: #e6f6f1;
    color: #1a8f6a;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 10px;
    font-weight: 500;
    letter-spacing: -0.2px;
}
/* Change Badge for Author (Admin) */
.bypostauthor > .comment-body .comment-author .fn::after {
    content: "Admin";
    background: #e1effe;
    color: #1e429f;
}

.comment-author .says {
    display: none !important;
}

/* Date */
.comment-metadata {
    font-size: 13px !important;
    color: #718096 !important;
    margin-top: 4px;
    margin-left: 0 !important;
    display: block;
    width: 100%;
}
/* Move date under the name: Since .comment-author is flex, we can absolutely position date or use flex-col on a wrapper. 
But WP outputs them as siblings. Let's use CSS grid for the meta area to perfectly stack Name and Date next to Avatar */
.comment-meta {
    display: grid !important;
    grid-template-columns: 42px 1fr;
    grid-template-rows: auto auto;
    column-gap: 15px;
    row-gap: 2px;
}
.comment-author {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
.comment-author .avatar {
    margin-right: 0 !important;
}
.comment-author .fn {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    align-self: end;
}
.comment-metadata {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    align-self: start;
    margin-top: 0 !important;
}
.comment-metadata::before {
    display: none !important; /* Remove the old bullet point */
}

/* --- Content --- */
.comment-content {
    margin-left: 57px !important; /* 42 + 15 */
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #333333 !important;
    margin-bottom: 15px !important;
}
.comment-content p {
    margin-bottom: 10px;
}
.comment-content p:last-child {
    margin-bottom: 0;
}

/* --- Reply Button --- */
.reply {
    margin-left: 57px !important;
}
.reply a {
    display: inline-flex !important;
    align-items: center;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 6px 14px;
    border-radius: 6px;
    color: #475569;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.reply a::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
}
.reply a:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #1e293b;
}

/* --- Nested Replies (Children) --- */
ul.children {
    margin-top: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}
ul.children li.comment {
    margin-bottom: 0 !important;
}
/* Remove the box around nested comments so they look like part of the parent */
ul.children .comment-body {
    border: none;
    border-top: 1px solid #f1f5f9; /* The separator line */
    border-radius: 0;
    padding: 20px 0 0 0;
    margin-top: 20px;
    margin-left: 57px; /* Indent the nested reply to align with parent text */
}
/* Adjust grid for nested to avoid double indentation if possible */
ul.children .comment-body .comment-content,
ul.children .comment-body .reply {
    margin-left: 57px !important;
}

/* Comment Form Adjustments */
#respond {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 30px;
}
#reply-title {
    font-size: 16px;
}

/* --- ABSOLUTE LAYOUT FIX FOR COMMENTS --- */
/* Override grid/flex layouts that break on different WP versions */

.comment-body {
    display: block !important;
    position: relative !important;
    padding: 20px 20px 20px 77px !important; /* 20px padding + 42px avatar + 15px gap */
    min-height: 85px !important;
}

.comment-meta {
    display: block !important; /* Remove flex/grid */
    margin: 0 !important;
}

.comment-author {
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    margin: 0 !important;
}

.comment-author .avatar {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    margin: 0 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
}

.comment-metadata {
    display: block !important;
    margin-top: 4px !important;
    margin-left: 0 !important;
    font-size: 13px !important;
}

.comment-metadata a {
    color: #718096 !important;
    text-decoration: none !important;
    display: inline-block !important;
    white-space: nowrap !important; /* Prevent text wrapping */
}

.comment-content {
    margin-left: 0 !important;
    margin-top: 12px !important;
}

.reply {
    margin-left: 0 !important;
    margin-top: 12px !important;
}

/* Fix nested replies (admin answers) */
ul.children .comment-body {
    border: none !important;
    border-top: 1px solid #f1f5f9 !important;
    border-radius: 0 !important;
    margin-top: 20px !important;
    margin-left: 77px !important; /* Indent child comment box */
    padding: 20px 0 0 57px !important; /* Reset right/bottom padding, keep left padding for child avatar */
}

/* For nested replies, the child avatar top position should be adjusted because we removed top padding */
ul.children .comment-body .comment-author .avatar {
    top: 20px !important;
    left: 0 !important; /* Align to the left edge of the indented box */
}

/* --- Post Meta Styling Fix --- */
.single-post-meta, .yt-desc-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px; /* Spacing between items */
    margin-bottom: 25px;
}
.yt-desc-meta {
    margin-bottom: 10px; /* Specific to video page */
}
.meta-item {
    position: relative;
    padding: 0;
    margin: 0 !important; /* Override inline styles if any */
    display: inline-block;
}
/* Desktop: Add the | separator dynamically */
@media (min-width: 769px) {
    .meta-item:not(:last-child)::after {
        content: "|";
        position: absolute;
        right: -10px; /* Half of gap */
        color: var(--border-color);
        opacity: 0.6;
    }
}
/* Mobile: Stack nicely without pipes */
@media (max-width: 768px) {
    .single-post-meta, .yt-desc-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .meta-item::after {
        display: none !important;
    }
}

/* ==========================================================================
   TIMELINE PAGE (TÂM SỰ - FACEBOOK PROFILE STYLE)
   ========================================================================== */

.timeline-page-wrapper {
    background-color: #f0f2f5;
    min-height: 100vh;
    padding-bottom: 50px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* --- HEADER / COVER --- */
.timeline-header {
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
.timeline-cover {
    max-width: 1095px;
    margin: 0 auto;
    position: relative;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    overflow: hidden;
    height: 350px;
}
.timeline-cover-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}
.timeline-profile-info {
    max-width: 1095px;
    margin: 0 auto;
    padding: 0 30px 20px;
    display: flex;
    align-items: flex-end;
    position: relative;
    top: -30px;
}
.timeline-avatar-wrapper {
    width: 168px;
    height: 168px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #fff;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.timeline-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.timeline-name-wrapper {
    margin-left: 20px;
    padding-bottom: 10px;
    flex: 1;
}
.timeline-name {
    font-size: 32px;
    font-weight: 700;
    color: #050505;
    margin: 0 0 5px 0;
}
.timeline-bio {
    font-size: 15px;
    color: #65676b;
    margin: 0;
    font-weight: 500;
}
.timeline-actions {
    display: flex;
    gap: 10px;
    padding-bottom: 15px;
}
.btn-timeline {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s;
}
.btn-gray {
    background: #e4e6eb;
    color: #050505;
}
.btn-gray:hover { background: #d8dadf; }
.btn-blue {
    background: #0866ff;
    color: #ffffff;
}
.btn-blue:hover { background: #005ce6; }

/* --- BODY LAYOUT --- */
.timeline-body {
    max-width: 1095px;
    margin: 0 auto;
    padding: 0 15px;
}
.timeline-row {
    display: flex;
    gap: 16px;
}
.timeline-col-left {
    width: 360px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    height: max-content;
}
.timeline-col-right {
    flex: 1;
    min-width: 0;
}
.timeline-box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    margin-bottom: 16px;
    padding: 16px;
}
.box-title {
    font-size: 20px;
    font-weight: 700;
    color: #050505;
    margin-bottom: 15px;
}

/* Intro Box */
.intro-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.intro-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 15px;
    color: #050505;
}
.intro-list svg {
    width: 20px;
    height: 20px;
    fill: #8c939d;
    stroke: #8c939d;
    margin-right: 12px;
}

/* Photos Box */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px;
    border-radius: 8px;
    overflow: hidden;
}
.photo-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

/* --- FEED POSTS --- */
.create-post-top {
    display: flex;
    align-items: center;
    gap: 10px;
}
.small-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.create-post-input {
    flex: 1;
    background: #f0f2f5;
    border-radius: 20px;
    padding: 10px 15px;
    color: #65676b;
    cursor: pointer;
    font-size: 15px;
}
.create-post-input:hover {
    background: #e4e6eb;
}

.status-post {
    padding: 0; /* Override */
    overflow: hidden;
}
.status-header {
    display: flex;
    padding: 16px 16px 12px;
    align-items: center;
}
.status-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}
.status-author {
    font-size: 15px;
    font-weight: 600;
    color: #050505;
    margin: 0 0 2px 0;
    display: flex;
    align-items: center;
}
.verified-badge {
    width: 14px;
    height: 14px;
    margin-left: 5px;
}
.status-time {
    font-size: 13px;
    color: #65676b;
    display: block;
}
.status-content {
    padding: 0 16px 16px;
    font-size: 15px;
    color: #050505;
    line-height: 1.5;
}
.status-media img {
    width: 100%;
    height: auto;
    display: block;
    border-top: 1px solid #f0f2f5;
    border-bottom: 1px solid #f0f2f5;
}

/* Post Actions */
.status-actions {
    display: flex;
    padding: 4px 16px;
    border-bottom: 1px solid #ced0d4;
    margin: 0 16px;
}
.action-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    border: none;
    padding: 8px 0;
    color: #65676b;
    font-weight: 600;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}
.action-btn:hover {
    background: #f0f2f5;
}
.action-btn svg {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}
.fake-like-btn.liked {
    color: #0866ff;
}
.fake-like-btn.liked svg {
    fill: #0866ff;
    stroke: #0866ff;
}

/* Comments integration */
.status-comments-area {
    padding: 10px 16px 16px;
}
.status-comments-area #comments {
    margin-top: 0;
    padding: 0;
    border: none;
    background: transparent;
}
.status-comments-area .comment-body {
    background: #f0f2f5 !important;
    border: none !important;
    padding: 10px 12px 10px 45px !important;
    border-radius: 18px !important;
    min-height: auto !important;
    margin-bottom: 10px;
}
.status-comments-area .comment-author .avatar {
    width: 32px !important;
    height: 32px !important;
    top: 8px !important;
    left: 8px !important;
}
.status-comments-area .comment-author .fn {
    font-size: 13px !important;
}
.status-comments-area .comment-metadata { display: none !important; } /* Hide date in FB style or keep it small */
.status-comments-area .comment-content {
    margin-top: 2px !important;
    font-size: 14px !important;
}
.status-comments-area .reply { margin-top: 4px !important; }
.status-comments-area .reply a {
    background: transparent;
    padding: 0;
    font-weight: 600;
    color: #65676b;
    font-size: 12px;
}
.status-comments-area ul.children .comment-body {
    margin-left: 45px !important;
    border-top: none !important;
    padding: 10px 12px 10px 45px !important;
}
.status-comments-area #respond {
    background: transparent;
    padding: 0;
    margin-top: 15px;
    border: none;
}

/* Responsive */
@media (max-width: 991px) {
    .timeline-row {
        flex-direction: column;
    }
    .timeline-col-left {
        width: 100%;
        position: static;
    }
}
@media (max-width: 768px) {
    .timeline-cover {
        height: 200px;
    }
    .timeline-profile-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        top: -80px;
        margin-bottom: -60px;
    }
    .timeline-avatar-wrapper {
        margin-bottom: 15px;
    }
    .timeline-name-wrapper {
        margin-left: 0;
    }
}

.timeline-name {
    display: flex;
    align-items: center;
}
.profile-verified-badge {
    width: 24px;
    height: 24px;
    margin-left: 8px;
}
@media (max-width: 768px) {
    .timeline-name {
        justify-content: center;
    }
}
