/* ============================================================
   NGỌC ANH FOOD - Theme WordPress
   Layout giống lehait.net - Magazine style
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.5;
    background: #f5f5f5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== TICKER BAR ===== */
.ticker {
    background: #E74C3C;
    color: #fff;
    padding: 8px 0;
    overflow: hidden;
    position: relative;
}
.ticker-label {
    background: #C0392B;
    color: #fff;
    padding: 8px 16px;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-block;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 2;
}
.ticker-content {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100px;
    animation: tickerScroll 20s linear infinite;
    line-height: 32px;
}
.ticker-content a:hover { text-decoration: underline; }
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* ===== HEADER ===== */
.site-header {
    background: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
}
.site-branding .custom-logo {
    width: 70px; height: 70px;
    border-radius: 50%;
    object-fit: cover;
}
.logo-icon {
    width: 70px; height: 70px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    background: #0F5B2A;
}
.site-title {
    font-size: 36px;
    font-weight: 900;
    line-height: 1;
    margin: 0;
}
.site-title a { color: #0F5B2A; }
.site-description {
    font-size: 11px;
    color: #E85D1A;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}
.header-ad {
    flex: 1;
    max-width: 728px;
    min-height: 90px;
    display: flex; align-items: center; justify-content: center;
}

/* ===== MAIN NAV ===== */
.main-nav {
    background: #fff;
    border-bottom: 1px solid #eee;
}
.main-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.main-nav .primary-menu,
.main-nav ul.menu {
    display: flex;
    list-style: none;
    margin: 0; padding: 0;
}
.main-nav .primary-menu li a,
.main-nav ul.menu li a {
    display: block;
    padding: 18px 22px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.main-nav .primary-menu li a:hover,
.main-nav .primary-menu li.current-menu-item a,
.main-nav ul.menu li a:hover,
.main-nav ul.menu li.current-menu-item a {
    color: #2980B9;
    border-bottom-color: #2980B9;
}
.nav-search {
    display: flex;
    align-items: center;
    gap: 0;
}
.nav-search input[type="search"] {
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    width: 200px;
}
.nav-search button {
    background: #2980B9;
    color: #fff;
    border: none;
    padding: 8px 14px;
    cursor: pointer;
}

/* ===== LAYOUT ===== */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}
.content-area { min-width: 0; }
.widget-area { min-width: 0; }

/* ===== SECTION BOX ===== */
.section-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
}
.section-header {
    padding: 14px 20px;
    border-bottom: 2px solid #eee;
}
.section-title {
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid #2980B9;
    display: inline-block;
    padding-bottom: 12px;
    margin-bottom: -14px;
    color: #2980B9;
}
.section-body { padding: 20px; }

/* ===== POST GRID ===== */
.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}
.post-card { display: flex; flex-direction: column; gap: 10px; }
.post-card .thumb {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f0f0f0;
}
.post-card .thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s;
}
.post-card:hover .thumb img { transform: scale(1.05); }
.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 8px;
}
.post-meta .views { color: #E74C3C; font-weight: 700; }
.post-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    line-height: 1.35;
}
.post-title:hover { color: #2980B9; }
.post-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.post-card .row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
}
.post-card .row .thumb { aspect-ratio: 1; }
.post-card .row .content { display: flex; flex-direction: column; gap: 6px; }

.view-more {
    text-align: center;
    padding: 12px;
    border-top: 1px solid #eee;
}
.view-more a {
    color: #2980B9;
    font-weight: 700;
    font-size: 14px;
}

/* ===== SIDEBAR ===== */
.sidebar-box {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
    overflow: hidden;
}
.sidebar-ad {
    min-height: 250px;
    display: flex; align-items: center; justify-content: center;
    background: #f0f0f0;
}
.fb-fanpage { padding: 20px; text-align: center; }
.fb-fanpage h3 { color: #2980B9; margin-bottom: 16px; font-size: 16px; }
.fb-fanpage-btn {
    display: flex;
    align-items: center;
    background: #1877F2;
    color: #fff;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
    text-decoration: none;
}
.fb-fanpage-btn:hover { opacity: 0.9; }
.fb-fanpage-btn .fb-icon {
    background: #166FE5;
    padding: 14px 16px;
    font-size: 22px;
    font-weight: 900;
}
.fb-fanpage-btn .fb-fans {
    flex: 1;
    padding: 10px;
    text-align: center;
    font-weight: 700;
}
.recent-title {
    text-align: center;
    color: #2980B9;
    font-size: 18px;
    font-weight: 700;
    padding: 14px;
    border-bottom: 1px solid #eee;
}
.recent-list { padding: 15px 20px; }
.recent-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}
.recent-item:last-child { border-bottom: none; }
.recent-item .thumb {
    width: 80px; height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f0f0f0;
}
.recent-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-item .info h4 {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: #222;
}
.recent-item .info h4:hover { color: #2980B9; }
.recent-item .info .date {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 30px 0;
    text-align: center;
    margin-top: 30px;
}
.site-footer a { color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .site-content { grid-template-columns: 1fr; }
    .header-inner { flex-direction: column; }
    .main-nav-inner { flex-direction: column; align-items: stretch; }
    .main-nav ul.menu, .main-nav .primary-menu { overflow-x: auto; }
    .nav-search { display: none; }
    .post-grid { grid-template-columns: 1fr; }
    .site-title { font-size: 28px; }
    .header-ad { display: none; }
}

.main-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #e8e8e8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.main-nav .primary-menu li a:hover,
.main-nav .primary-menu li.current-menu-item a,
.main-nav ul.menu li a:hover,
.main-nav ul.menu li.current-menu-item a {
    color: #0F5B2A;
    border-bottom-color: #0F5B2A;
    background: #dcdcdc;
}
