﻿/* == TOWNTALK DESIGN SYSTEM - oacnews.com == */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&family=Roboto+Condensed:wght@400;700&family=Playfair+Display:wght@700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #e53935;
  --dark: #1a1a1a;
  --mid: #444;
  --light-gray: #f5f5f5;
  --border: #e0e0e0;
  --text: #333;
  --meta: #888;
  --white: #fff;
  --accent: #e53935;
  --bg: #fff;
  --bg2: #f5f5f5;
  --bg3: #1a1a1a;
  --text-muted: #888;
  --radius: 2px;
}

body { font-family: 'Roboto', sans-serif; font-size: 14px; color: var(--text); background: #fff; }
a { text-decoration: none; color: inherit; }

/* GLOBAL IMAGE RESET */
img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* CONTAINER */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ==========  TOP BAR  ========== */
.top-bar { background: var(--dark); color: #aaa; font-size: 11px; padding: 6px 0; border-bottom: 2px solid var(--red); }
.top-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.top-bar-left { display: flex; align-items: center; gap: 16px; }
.top-bar-date { color: #ccc; font-size: 11px; letter-spacing: .3px; }
.top-bar-nav a { color: #ccc; font-size: 11px; margin-left: 14px; letter-spacing: .3px; transition: color .2s; }
.top-bar-nav a:hover { color: var(--red); }
.top-bar-right { display: flex; align-items: center; gap: 12px; }
.top-bar-social a { color: #aaa; font-size: 11px; margin-left: 10px; transition: color .2s; }
.top-bar-social a:hover { color: var(--white); }
.btn-subscribe { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 10px; border-radius: 2px; }
.btn-subscribe:hover { background: #c62828; }

/* ==========  HEADER  ========== */
header { background: var(--white); border-bottom: 1px solid var(--border); padding: 14px 0; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.logo { font-family: 'Playfair Display', serif; font-size: 42px; font-weight: 800; color: var(--dark); line-height: 1; white-space: nowrap; letter-spacing: -1px; flex-shrink: 0; }
.logo a { color: inherit; }
.logo span { color: var(--red); }
.header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.search-btn { background: none; border: none; cursor: pointer; color: var(--mid); font-size: 16px; padding: 4px; }
.header-login { font-size: 12px; font-weight: 600; color: var(--dark); letter-spacing: .3px; border: 1px solid var(--border); padding: 5px 14px; border-radius: 2px; transition: all .2s; }
.header-login:hover { background: var(--dark); color: #fff; }

/* Header banner ad */
.header-banner-ad { flex: 1; min-width: 0; max-width: 480px; height: 62px; display: flex; align-items: center; background: linear-gradient(135deg, #1a1a1a 0%, #2d1515 60%, #1a1a1a 100%); border: 1px solid #333; border-left: 4px solid var(--red); text-decoration: none; overflow: hidden; transition: box-shadow .3s; }
.header-banner-ad:hover { box-shadow: 0 4px 20px rgba(229,57,53,.3); }
.hba-accent { width: 4px; align-self: stretch; background: var(--red); flex-shrink: 0; }
.hba-text { flex: 1; padding: 0 12px; display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.hba-text strong { color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; font-family: 'Roboto Condensed', sans-serif; white-space: nowrap; }
.hba-text em { color: #aaa; font-size: 10px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hba-cta { padding: 0 14px; font-size: 10px; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; font-family: 'Roboto Condensed', sans-serif; flex-shrink: 0; }
.header-banner-ad:hover .hba-cta { color: #ff6659; }

/* ==========  MAIN NAV  ========== */
nav.main-nav { background: var(--dark); position: sticky; top: 0; z-index: 100; }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; }
.nav-links > a { display: block; color: #ddd; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 13px 14px; transition: color .2s, background .2s; }
.nav-links > a:hover { color: var(--white); background: rgba(255,255,255,.07); }
.nav-links > a.active { color: var(--red); border-bottom: 2px solid var(--red); }
.nav-right { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-search { color: #aaa; font-size: 14px; cursor: pointer; }
.nav-search:hover { color: #fff; }

/* ==========  TICKER  ========== */
.ticker-bar { background: var(--light-gray); border-bottom: 1px solid var(--border); padding: 7px 0; overflow: hidden; }
.ticker-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 12px; }
.ticker-label { background: var(--red); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 3px 10px; white-space: nowrap; flex-shrink: 0; }
.ticker-text { font-size: 12px; color: var(--mid); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ticker-text a { color: var(--dark); font-weight: 500; }
.ticker-text a:hover { color: var(--red); }

/* ==========  FEATURED HERO  ========== */
.featured-section { padding: 20px 0 0; }
.featured-grid { display: grid; grid-template-columns: 1fr 300px; gap: 2px; background: var(--border); }

/* Main (tall) card */
.feat-main { grid-row: 1 / 3; position: relative; height: 460px; overflow: hidden; background: #222; }
.feat-main img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feat-main:hover img { transform: scale(1.03); }
.feat-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent 0%, rgba(0,0,0,.82) 100%); padding: 30px 22px 22px; z-index: 2; }
.feat-overlay .cat-tag { margin-bottom: 8px; }
.feat-overlay h2 { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: #fff; line-height: 1.3; margin-bottom: 8px; }
.feat-overlay h2 a { color: #fff; }
.feat-overlay h2 a:hover { color: #ffcdd2; }
.feat-overlay .excerpt { font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.5; }
.feat-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 11px; color: rgba(255,255,255,.6); }

/* Side cards */
.feat-side-top, .feat-side-bottom { position: relative; height: 229px; overflow: hidden; background: #333; }
.feat-side-top img, .feat-side-bottom img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.feat-side-top:hover img, .feat-side-bottom:hover img { transform: scale(1.03); }
.feat-side-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent 0%, rgba(0,0,0,.75) 100%); padding: 18px 14px 14px; z-index: 2; }
.feat-side-overlay h3 { font-family: 'Playfair Display', serif; font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.feat-side-overlay h3 a { color: #fff; }
.feat-side-overlay h3 a:hover { color: #ffcdd2; }
.feat-side-overlay .cat-tag { margin-bottom: 6px; }

/* Image placeholder (no featured image) */
.img-ph { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, #2c2c42 0%, #1a1a2e 100%); }

/* ==========  CATEGORY TAG  ========== */
.cat-tag { display: inline-block; background: var(--red); color: #fff; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; padding: 2px 8px; }

/* ==========  SECTION HEADER  ========== */
.section-header { display: flex; align-items: center; justify-content: space-between; border-top: 3px solid var(--red); border-bottom: 1px solid var(--border); padding: 10px 0; margin-bottom: 18px; }
.section-header h2 { font-family: 'Roboto Condensed', sans-serif; font-size: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--dark); }
.section-header .view-more { font-size: 11px; font-weight: 600; color: var(--red); text-transform: uppercase; letter-spacing: 1px; transition: color .2s; }
.section-header .view-more:hover { color: #c62828; }

/* ==========  MAIN LAYOUT  ========== */
.main-layout { display: grid; grid-template-columns: 1fr 300px; gap: 30px; padding: 24px 0 30px; }

/* ==========  TAB BLOCK  ========== */
.tab-block { margin-bottom: 24px; }
.tab-header { display: flex; align-items: center; border-bottom: 3px solid var(--border); margin-bottom: 0; }
.tab-header .tab-label { font-family: 'Roboto Condensed', sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--mid); padding: 10px 18px 10px 0; cursor: pointer; transition: color .2s; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.tab-header .tab-label.active { color: var(--red); border-bottom-color: var(--red); }

/* ==========  ARTICLE LIST ITEM  ========== */
.article-list { display: block; }
.article-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.article-item:last-child { border-bottom: none; }
.article-thumb { width: 90px; height: 66px; flex-shrink: 0; overflow: hidden; background: #ccc; position: relative; }
.article-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.article-item:hover .article-thumb img { transform: scale(1.05); }
.article-body { flex: 1; min-width: 0; }
.article-body .cat-tag { margin-bottom: 5px; }
.article-body h4 { font-family: 'Roboto Condensed', sans-serif; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--dark); margin-bottom: 4px; }
.article-body h4 a { color: var(--dark); }
.article-body h4 a:hover { color: var(--red); }
.article-meta { font-size: 11px; color: var(--meta); }

/* ==========  CATEGORY SECTIONS  ========== */
.category-section { padding: 0 0 26px; }

/* Split layout: big left + list right */
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

/* Big card (left side of split) */
.big-card { display: block; }
.big-card .card-img { height: 220px; overflow: hidden; background: #ccc; margin-bottom: 12px; position: relative; }
.big-card .card-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.big-card:hover .card-img img { transform: scale(1.03); }
.big-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--dark); margin-bottom: 6px; }
.big-card h3 a { color: var(--dark); }
.big-card h3 a:hover { color: var(--red); }
.big-card .excerpt { font-size: 12px; color: #666; line-height: 1.6; }

/* Inline list (right side of split) */
.inline-list-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.inline-list-item:first-child { padding-top: 0; }
.inline-list-item:last-child { border-bottom: none; }
.inline-list-thumb { width: 80px; height: 60px; flex-shrink: 0; overflow: hidden; background: #ccc; position: relative; }
.inline-list-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.inline-list-item:hover .inline-list-thumb img { transform: scale(1.05); }
.inline-list-body { flex: 1; min-width: 0; }
.inline-list-body .cat-tag { margin-bottom: 4px; }
.inline-list-body h5 { font-family: 'Roboto Condensed', sans-serif; font-size: 13px; font-weight: 700; line-height: 1.35; color: var(--dark); }
.inline-list-body h5 a { color: var(--dark); }
.inline-list-body h5 a:hover { color: var(--red); }
.inline-list-body .meta { font-size: 10px; color: var(--meta); margin-top: 4px; }

/* ==========  GRID CARDS  ========== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-card { display: block; }
.grid-card .card-img { height: 160px; overflow: hidden; background: #ccc; margin-bottom: 10px; position: relative; }
.grid-card .card-img img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.grid-card:hover .card-img img { transform: scale(1.05); }
.grid-card .cat-tag { margin-bottom: 6px; }
.grid-card h4 { font-family: 'Roboto Condensed', sans-serif; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--dark); }
.grid-card h4 a { color: var(--dark); }
.grid-card h4 a:hover { color: var(--red); }
.grid-card .card-meta { font-size: 11px; color: var(--meta); margin-top: 5px; }

/* ==========  SIDEBAR  ========== */
.sidebar { display: block; }
.sidebar-widget { margin-bottom: 24px; }

/* Subscribe widget */
.subscribe-widget { background: var(--dark); padding: 20px 16px; color: #fff; text-align: center; }
.subscribe-widget h4 { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.subscribe-widget p { font-size: 12px; color: #aaa; line-height: 1.6; margin-bottom: 14px; }
.subscribe-input { width: 100%; padding: 9px 12px; border: none; border-bottom: 2px solid var(--red); background: rgba(255,255,255,.08); color: #fff; font-size: 12px; margin-bottom: 10px; outline: none; display: block; }
.subscribe-input::placeholder { color: #888; }
.subscribe-btn { width: 100%; background: var(--red); color: #fff; border: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; padding: 10px; cursor: pointer; transition: background .2s; display: block; }
.subscribe-btn:hover { background: #c62828; }
.privacy-note { font-size: 10px; color: #777; margin-top: 10px; }
.privacy-note a { color: var(--red); }

/* Social counts */
.social-counts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.social-item { padding: 10px 12px; text-align: center; font-size: 11px; color: #fff; }
.social-item.facebook { background: #1877f2; }
.social-item.twitter { background: #1da1f2; }
.social-item.instagram { background: #c13584; }
.social-item.youtube { background: #ff0000; }
.social-item strong { display: block; font-size: 16px; font-weight: 800; font-family: 'Roboto Condensed', sans-serif; }
.social-item span { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; opacity: .8; }

/* Popular widget */
.popular-list { display: block; }
.popular-item { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.popular-item:last-child { border-bottom: none; }
.popular-num { font-size: 26px; font-weight: 800; color: var(--border); line-height: 1; flex-shrink: 0; width: 26px; font-family: 'Playfair Display', serif; }
.popular-item:first-child .popular-num { color: var(--red); }
.popular-body { flex: 1; min-width: 0; }
.popular-body .cat-tag { margin-bottom: 4px; }
.popular-body h5 { font-size: 12px; font-weight: 700; line-height: 1.35; color: var(--dark); font-family: 'Roboto Condensed', sans-serif; }
.popular-body h5 a { color: var(--dark); }
.popular-body h5 a:hover { color: var(--red); }

/* Sidebar promo banner */
.sidebar-promo-banner { display: block; width: 100%; min-height: 240px; background: linear-gradient(160deg, #1a1a1a 0%, #2c1010 50%, #1a0a0a 100%); text-decoration: none; position: relative; overflow: hidden; transition: transform .3s; }
.sidebar-promo-banner:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(229,57,53,.25); }
.spb-inner { position: relative; z-index: 1; padding: 28px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.spb-icon { font-size: 34px; line-height: 1; }
.spb-inner h4 { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 800; color: #fff; line-height: 1.2; }
.spb-inner p { font-size: 12px; color: #bbb; line-height: 1.6; }
.spb-btn { display: inline-block; margin-top: 4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; padding: 8px 18px; transition: background .2s; }
.sidebar-promo-banner:hover .spb-btn { background: #c62828; }

/* ==========  NEWSLETTER BANNER  ========== */
.newsletter-banner { background: var(--dark); padding: 32px 30px; text-align: center; margin: 0 0 26px; }
.newsletter-banner h3 { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.newsletter-banner p { font-size: 13px; color: #aaa; margin-bottom: 18px; line-height: 1.6; }
.newsletter-form { display: flex; max-width: 420px; margin: 0 auto 10px; }
.newsletter-form input { flex: 1; padding: 10px 14px; border: none; background: rgba(255,255,255,.1); color: #fff; font-size: 12px; outline: none; }
.newsletter-form input::placeholder { color: #777; }
.newsletter-form button { background: var(--red); color: #fff; border: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 0 18px; cursor: pointer; transition: background .2s; }
.newsletter-form button:hover { background: #c62828; }
.newsletter-privacy { font-size: 10px; color: #666; }
.newsletter-privacy a { color: var(--red); }

/* ==========  FOOTER  ========== */
footer { background: var(--dark); color: #aaa; padding: 36px 0 0; border-top: 3px solid var(--red); }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 0 20px 28px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-about .logo { font-size: 30px; color: #fff; margin-bottom: 12px; }
.footer-about p { font-size: 12px; line-height: 1.7; color: #999; }
.footer-col h4 { font-family: 'Roboto Condensed', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--red); display: inline-block; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 12px; color: #999; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #666; }
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--red); }

/* ==========  POST DETAIL  ========== */
.post-detail-header { padding: 36px 0; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.post-detail-cat { font-size: 11px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 12px; display: block; }
.post-detail-title { font-family: 'Playfair Display', serif; font-size: 34px; font-weight: 800; line-height: 1.2; margin-bottom: 18px; color: var(--dark); }
.post-detail-meta { display: flex; gap: 20px; font-size: 12px; color: var(--meta); flex-wrap: wrap; }
.post-detail-hero { width: 100%; height: 420px; margin-bottom: 36px; overflow: hidden; background: #ccc; position: relative; }
.post-detail-hero img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.post-content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding-bottom: 50px; }
.post-article-body { font-size: 17px; line-height: 1.8; color: #333; }
.post-article-body p { margin-bottom: 20px; }
.post-article-body h2, .post-article-body h3 { font-family: 'Playfair Display', serif; margin: 28px 0 14px; color: var(--dark); }
.post-article-body blockquote { border-left: 4px solid var(--red); padding: 14px 22px; margin: 28px 0; background: var(--light-gray); font-style: italic; font-size: 17px; color: var(--mid); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }

/* ==========  ADMIN FORMS  ========== */
.btn-primary { background: var(--red); color: #fff; border: none; padding: 10px 20px; font-size: 13px; font-weight: 700; cursor: pointer; border-radius: 4px; transition: background .2s; }
.btn-primary:hover { background: #c62828; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; font-size: 13px; outline: none; transition: border-color .2s; }
.form-group input:focus, .form-group textarea:focus { border-color: var(--red); }
