/*
* Main CSS for CafeBiz Clone Theme (REWRITTEN FOR COMPONENT ARCHITECTURE)
*/

:root {
    --brand-color: #be1e2d; /* Red CafeBiz */
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --border-color: #e5e5e5;
    --font-base: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    --font-heading: 'Roboto', Arial, sans-serif;
    --wrapper-width: 1160px;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-base); color: var(--text-color); font-size: 15px; background: #fff; }
a { color: var(--text-color); text-decoration: none; }
a:hover { color: var(--brand-color); }
img { max-width: 100%; height: auto; display: block; border-radius: 4px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); margin-top: 0; line-height: 1.3; font-weight: 700; color: #111;}
ul, ol { margin: 0; padding: 0; list-style: none; }

/* Wrapper & Sections */
.wrapper { max-width: var(--wrapper-width); margin: 0 auto; padding: 0 15px; }
.cb-section { margin-bottom: 30px; margin-top: 25px; }

/* -----------------------------------------
   COMPONENT: HEADER (Top Bar & Navigation)
----------------------------------------- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 15px;
}
.site-branding {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.site-logo { max-height: 45px; }
.site-description { margin: 0; font-size: 13px; color: #777; font-style: italic; }

.header-search-wrap .search-form {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    padding: 2px 5px 2px 20px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}
.header-search-wrap .search-form:focus-within {
    border-color: var(--brand-color);
    background: #fff;
    box-shadow: 0 0 8px rgba(190, 30, 45, 0.1);
}
.search-field {
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    width: 200px;
}
.search-submit {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    outline: none;
}

/* Base Navigation */
.main-navigation {
    background: var(--brand-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Glassmorphism Effect */
    background: rgba(190, 30, 45, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.primary-menu-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-menu-list li {
    position: relative;
}
.primary-menu-list a {
    color: #fff;
    display: block;
    padding: 15px 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.3s ease;
}
.primary-menu-list a:hover {
    background: rgba(0,0,0,0.15);
}
.date-display {
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    font-weight: 500;
}
.menu-toggle { display: none; }

/* -----------------------------------------
   COMPONENT: HERO SECTION
----------------------------------------- */
.hero-layout {
    display: flex;
    gap: 30px;
}
.hero-col-left { width: 66%; }
.hero-col-right { width: 34%; }

.post-thumb { width: 100%; object-fit: cover; }
.post-thumb-link { display: block; overflow: hidden; margin-bottom: 12px;}

/* Left Col */
.hero-main-post .hero-title { font-size: 26px; line-height: 1.4; }
.hero-main-post .post-thumb { aspect-ratio: 16/9; }

.dotted-sep {
    border: none;
    border-top: 1px dotted #ccc;
    margin: 20px 0;
}
.dotted-small { margin: 12px 0; border-top: 1px dotted #e0e0e0;}

.hero-sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.hero-sub-title { font-size: 16px; font-weight: 600; }
.hero-sub-post .post-thumb { aspect-ratio: 3/2; }

/* Right Col */
.hero-side-top-title { font-size: 18px; margin-top: 10px; }
.hero-side-top-post .post-thumb { aspect-ratio: 16/10; }

.hero-list-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.side-thumb { width: 110px; aspect-ratio: 4/3; flex-shrink: 0; }
.hero-list-title { font-size: 14px; line-height: 1.4; margin: 0; font-weight: 600;}


/* -----------------------------------------
   COMPONENT: SPECIAL BLOCKS
----------------------------------------- */
.special-layout {
    display: flex;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}
.notable-col { width: 44%; }
.special-box { width: 28%; border-radius: 8px; overflow: hidden; padding: 15px 15px 20px; position: relative;}

/* Column 1: Đáng Chú Ý */
.notable-header { border-bottom: 1px solid var(--border-color); margin-bottom: 15px; }
.notable-title {
    font-size: 16px;
    text-transform: uppercase;
    color: #111;
    display: inline-block;
    border-bottom: 2px solid var(--brand-color);
    padding-bottom: 5px;
    margin-bottom: -1px;
}
.notable-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}
.notable-post-title { font-size: 14px; font-weight: 600; margin-top: 10px; }
.notable-post .post-thumb { aspect-ratio: 3/2; }

/* Box Danh sách Link » */
.notable-links-box {
    background-color: #ededed;
    border-radius: 6px;
    padding: 15px 20px;
}
.notable-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 15px;
}
.notable-links-list li { width: 45%; }
.notable-links-list a {
    color: #555;
    font-size: 14px;
    position: relative;
    padding-left: 12px;
}
.notable-links-list a::before {
    content: '»';
    position: absolute;
    left: 0;
    color: #888;
}

/* Common for Box 2 & 3 */
.box-header { 
    margin-bottom: 15px; 
    text-align: center;
}
.box-logo { 
    margin: 0;
    font-size: 24px;
    font-family: Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}
.box-inner-card {
    background: #fff;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.solid-light-sep { border: none; border-top: 1px solid #f0f0f0; margin: 10px 0; }
.inner-card-post .post-thumb { aspect-ratio: 16/9; margin-bottom: 10px; border-radius: 4px;}
.inner-card-title { font-size: 14px; line-height: 1.4; color: #222; margin: 0;}

.box-footer-pills {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}
.pill-btn {
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

/* Box 2: BIG NUMBER */
.box-bignumber {
    /* Muted dark red texture simulation */
    background: linear-gradient(135deg, #7d1115 0%, #4a0507 100%);
    border: 1px solid #e0e0e0; 
}
.box-bignumber .box-logo { color: #fff; }
.box-bignumber .box-logo span { color: #da251d; } /* Cữ BIG màu đỏ */
.box-bignumber .pill-red {
    background-color: #6a0d10;
    color: #fff;
    border: 1px solid #8e1c20;
}
.box-bignumber .pill-red:hover { background-color: #a01a20; }

/* Box 3: BizMoney */
.box-bizmoney {
    /* Orange red texture simulation */
    background: linear-gradient(135deg, #f53d2d 0%, #d82b1d 100%);
}
.box-bizmoney .box-logo { color: #fff; text-transform: none; font-weight: 800;}
.box-bizmoney .box-logo span { color: #555; }
.box-bizmoney .box-logo .money-icon { color: #fff; display:inline-block; border: 2px solid #fff; border-radius: 50%; font-size: 16px; width: 22px; height: 22px; line-height: 18px;}
.box-bizmoney .pill-light {
    background-color: #ffe8b3;
    color: #333;
}
.box-bizmoney .pill-light:hover { background-color: #fff; }


/* -----------------------------------------
   COMPONENT: NEWS LIST & SIDEBAR
----------------------------------------- */
.news-list-section { padding-top: 10px; }
.news-list-item {
    display: flex;
    gap: 20px;
}
.news-list-thumb-link {
    width: 250px;
    flex-shrink: 0;
}
.news-list-thumb-link .post-thumb { aspect-ratio: 16/10; }
.news-list-content {
    flex: 1;
}
.news-category {
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}
.news-list-title {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 8px;
}
.news-meta {
    font-size: 12px;
    color: #888;
}

/* Category Sidebar Box */
.sidebar-ad { margin-bottom: 25px; }
.sidebar-cat-box {
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 15px 20px;
}
.cat-box-header {
    border-bottom: 1px dotted #e5e5e5;
    margin-bottom: 15px;
    padding-bottom: 1px;
}
.cat-box-title {
    font-size: 15px;
    text-transform: uppercase;
    color: #555;
    display: inline-block;
    border-bottom: 2px solid #555;
    margin: 0;
    padding-bottom: 8px;
    margin-bottom: -1px;
}
.cat-box-post {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}
.cat-box-post-info {
    flex: 1;
}
.cat-box-post-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    font-weight: 500;
}
.cat-box-thumb-link {
    width: 120px;
    flex-shrink: 0;
}
.cat-box-thumb-link .post-thumb {
    aspect-ratio: 16/10;
}


/* -----------------------------------------
   COMPONENT: SINGLE POST
----------------------------------------- */
.single-layout {
    display: flex;
    gap: 30px;
    padding-top: 20px;
}
.single-post-content {
    width: 66%;
}

/* Reading Progress Bar */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #f1f1f1;
    z-index: 9999;
}
.reading-progress-bar {
    height: 100%;
    background: var(--brand-color);
    width: 0;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--brand-color); }
.current-crumb { color: var(--brand-color); font-weight: 600; }

/* Single Header */
.single-title {
    font-size: 32px;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #111;
}
.entry-meta {
    font-size: 14px;
    color: #888;
    margin-bottom: 20px;
}
.entry-sapo {
    font-size: 18px;
    font-weight: 600;
    color: #444;
    line-height: 1.5;
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-left: 4px solid var(--brand-color);
}

/* Social Share */
.social-share-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}
.share-btn {
    padding: 8px 15px;
    color: #fff !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    display: inline-block;
}
.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }

/* Entry Content */
.single-body {
    font-size: 17px;
    line-height: 1.6;
    color: #222;
}
.single-body img { margin: 15px 0; }
.single-body h2 { font-size: 24px; margin-top: 30px; }
.single-body p { margin-bottom: 15px; }

/* Post Footer & Tags */
.post-tags { margin-top: 30px; margin-bottom: 30px; }
.tags-links a { color: #555; background: #eee; padding: 4px 10px; border-radius: 4px; font-size: 13px; }

/* Author Box */
.author-box {
    display: flex;
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
    gap: 20px;
}
.author-avatar img { border-radius: 50%; max-width: 80px;}
.author-name { margin: 0 0 10px; font-size: 18px;}
.author-bio { font-size: 14px; color: #555; margin-bottom: 10px;}
.author-posts-link { font-size: 13px; font-weight: 600; color: var(--brand-color);}

/* Related Posts */
.related-posts {
    border-top: 2px solid var(--brand-color);
    padding-top: 25px;
    margin-top: 40px;
}
.related-posts h3 { margin-top: 0; font-size: 20px; text-transform: uppercase;}
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.related-item h4 { font-size: 15px; margin-top: 10px;}
.related-item .post-thumb { aspect-ratio: 3/2;}

/* Sidebar Area */
.sidebar-area {
    width: 34%;
    position: sticky;
    top: 20px;
    height: max-content;
}
.timeline-widget {
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}
.timeline-title {
    font-size: 16px;
    text-transform: uppercase;
    color: #db2828;
    margin-bottom: 15px;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}
.timeline-list li {
    font-size: 14px;
    margin-bottom: 12px;
    border-bottom: 1px dotted #ccc;
    padding-bottom: 8px;
}
.timeline-list li:last-child { border-bottom: none; }
.timeline-time {
    display: block;
    font-size: 11px;
    color: #999;
}
.timeline-link { font-weight: 500; }

/* -----------------------------------------
   COMPONENT: FOOTER
----------------------------------------- */
.site-footer {
    background-color: #1a1a1a;
    color: #aaa;
    margin-top: 50px;
    padding-top: 60px;
    border-top: 4px solid var(--brand-color);
}
.footer-columns {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}
.footer-column { flex: 1; }
.footer-logo { max-width: 180px; margin-bottom: 20px;}
.info-column .company-name { color: #fff; font-size: 14px; margin-bottom: 15px;}
.contact-list li { margin-bottom: 10px; font-size: 14px; display: flex; align-items: flex-start; gap: 8px;}
.contact-list .dashicons { color: var(--brand-color); font-size: 16px; width: 16px; height: 16px;}

.footer-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 40px; height: 2px;
    background: var(--brand-color);
}
.footer-menu li { margin-bottom: 12px; }
.footer-menu a {
    color: #aaa;
    font-size: 14px;
    transition: color 0.3s ease;
}
.footer-menu a:hover { color: var(--brand-color); }

.social-icons { display: flex; gap: 10px; }
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: #333;
    color: #fff;
    border-radius: 50%;
    transition: background 0.3s ease;
}
.social-icon:hover { background: var(--brand-color); color: #fff;}

.newsletter-form { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form input {
    padding: 12px;
    border: 1px solid #333;
    background: #222;
    color: #fff;
    border-radius: 4px;
    outline: none;
}
.newsletter-form input:focus { border-color: var(--brand-color); }
.newsletter-form button {
    background: var(--brand-color);
    color: #fff;
    border: none;
    padding: 12px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
}

.site-info {
    background: #111;
    padding: 20px 0;
    margin-top: 20px;
    font-size: 13px;
}
.site-info-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.site-info p { margin: 0; }
.footer-bottom-links a { margin-left: 15px; color: #777; }
.footer-bottom-links a:hover { color: #fff;}

/* -----------------------------------------
   MICRO ANIMATIONS (WOW FACTOR)
----------------------------------------- */
.post-thumb { transition: transform 0.4s ease; }
.post-thumb-link:hover .post-thumb, .property-thumb a:hover img { transform: scale(1.05); }

.property-card, .inner-card-post { transition: box-shadow 0.3s ease, transform 0.3s ease; }
.property-card:hover, .inner-card-post:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
    transform: translateY(-3px);
}

/* -----------------------------------------
   RESPONSIVE DESIGN
----------------------------------------- */
.property-grid-responsive { grid-template-columns: repeat(4, 1fr); }
.property-single-layout { display: flex; }
.property-main-content { width: 66%; }
.property-sidebar { width: 34%; }

@media (max-width: 1024px) {
    .special-layout { flex-wrap: wrap; }
    .notable-col { width: 100%; }
    .special-box { width: calc(50% - 10px); }
    .notable-links-list li { width: 30%; }
    .property-grid-responsive { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .hero-layout, .special-layout, .single-layout, .footer-columns, .property-single-layout { flex-direction: column; }
    .hero-col-left, .hero-col-right, .notable-col, .special-box, .single-post-content, .sidebar-area, .property-main-content, .property-sidebar { width: 100%; }
    .sidebar-area, .property-sidebar { position: static; }
    .hero-sub-grid, .notable-grid, .property-grid-responsive { grid-template-columns: 1fr; }
    .notable-links-list li { width: 100%; }
    .news-list-item { flex-direction: column; }
    .news-list-thumb-link { width: 100%; }
    .related-grid { grid-template-columns: 1fr; }
    .site-info-inner { flex-direction: column; gap: 10px; text-align: center; }
    
    /* Responsive Header & Mobile Menu */
    .header-top { flex-direction: column; gap: 15px; }
    .nav-wrapper { flex-wrap: wrap; }
    .menu-toggle { 
        display: block; 
        background: transparent; 
        border: none; 
        color: #fff; 
        padding: 10px 0; 
        cursor: pointer; 
    }
    .date-display { padding: 10px 0; }
    .primary-menu-list {
        display: none;
        width: 100%;
        flex-direction: column;
        background: rgba(190, 30, 45, 0.98);
    }
    .primary-menu-list.active { display: flex; }
    .primary-menu-list a { border-bottom: 1px solid rgba(255,255,255,0.1); }
    
    /* Responsive Specs */
    .property-specs { flex-wrap: wrap; }
    .spec-item { min-width: 45%; border-bottom: 1px solid #eee; padding-bottom: 15px; border-right: none !important;}
}
