/* ============================================================
   ZZETTA GHANA.COM - Brand Stylesheet
   Colors extracted from uploaded logo: Red / White / Yellow accent
   ============================================================ */

:root {
  --red: #D40006;
  --red-dark: #A10005;
  --white: #FFFFFF;
  --yellow: #FFC20E;
  --text: #1a1a1a;
  --text-muted: #666;
  --border: #e8e8e8;
  --bg: #f7f7f7;
  --font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --shadow-soft: 0 2px 10px rgba(0,0,0,.06);
  --shadow-lift: 0 14px 28px rgba(0,0,0,.14);
  --transition: all .25s ease;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---------- Header ---------- */
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  gap: 20px;
}
.logo img { height: 48px; }
.search-form { display: flex; flex: 1; max-width: 340px; }
.search-form input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 4px 0 0 4px; font-size: 14px;
}
.search-form button {
  background: var(--red); color: var(--white); border: none;
  padding: 0 16px; border-radius: 0 4px 4px 0; cursor: pointer;
}

.todaysnews-bar { background: var(--white); color: var(--text); overflow: hidden; border-top: 1px solid var(--border); border-bottom: 2px solid var(--red); }
.todaysnews-bar-inner { display: flex; align-items: center; padding: 6px 16px; gap: 14px; }
.todaysnews-ticker-viewport { flex: 1; overflow: hidden; position: relative; }
.todaysnews-ticker-track {
  display: inline-flex; white-space: nowrap; animation-name: todaysnews-ticker-scroll;
  animation-timing-function: linear; animation-iteration-count: infinite;
}
.todaysnews-ticker-viewport:hover .todaysnews-ticker-track { animation-play-state: paused; }
.todaysnews-ticker-item { padding-right: 48px; }
.todaysnews-ticker-item a { font-size: 14px; color: var(--text); font-weight: 500; }
.todaysnews-ticker-item a:hover { color: var(--red); }
@keyframes todaysnews-ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Hero ---------- */
/* ---------- Share buttons ---------- */
.share-bar { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.share-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px;
  border-radius: 6px; font-size: 13px; font-weight: 700; color: #fff;
  transition: opacity .15s;
}
.share-btn:hover { opacity: .85; }
.share-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.share-btn-facebook { background: #1877F2; }
.share-btn-x { background: #000; }

/* ---------- Header: full-width hero banner filling the entire strip ---------- */
.brand-bar { display: block; line-height: 0; background: var(--red); border-bottom: 3px solid var(--yellow); }
.brand-banner-img { width: 100%; height: 150px; object-fit: cover; display: block; }
@media (max-width: 768px) { .brand-banner-img { height: 100px; } }
@media (max-width: 480px) { .brand-banner-img { height: 82px; } }

/* ---------- Tagline strip ---------- */
.tagline-strip {
  background: var(--bg); color: #000; text-align: center; font-size: 13px; font-weight: 600;
  font-style: italic; letter-spacing: .3px; padding: 6px 16px; border-bottom: 1px solid var(--border);
}
@media (max-width: 480px) { .tagline-strip { font-size: 11px; padding: 4px 12px; } }

/* ---------- Main nav: sticky, active underline, hover slide ---------- */
.main-nav { position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow-soft); }
.main-nav-inner { display: flex; justify-content: space-between; align-items: center; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 0; }
.main-nav li { position: relative; }
.main-nav a {
  display: flex; align-items: center; gap: 6px; color: var(--red); padding: 12px 18px;
  font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .3px;
  position: relative; transition: var(--transition); border-radius: 6px;
}
.main-nav a svg { width: 15px; height: 15px; }
.main-nav a::after {
  content: ''; position: absolute; left: 18px; right: 18px; bottom: 4px; height: 3px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.main-nav a:hover, .main-nav a:focus { background: rgba(212,0,6,.06); }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a.active { color: #fff; font-weight: 800; background: var(--red); }
.main-nav a.active::after { transform: scaleX(1); background: var(--yellow); }
.main-nav a.active:hover { background: var(--red-dark); }
.main-nav .search-form { display: flex; align-items: center; margin: 8px 16px 8px 0; }
.main-nav .search-form input {
  padding: 9px 14px; border: 1px solid var(--border); border-radius: 4px 0 0 4px; font-size: 13px; width: 170px;
}
.main-nav .search-form button {
  background: var(--red); border: none; padding: 0 14px; border-radius: 0 4px 4px 0; cursor: pointer;
  display: flex; align-items: center; height: 38px; transition: var(--transition);
}
.main-nav .search-form button:hover { background: var(--yellow); }
.main-nav .search-form button:hover svg { color: var(--red-dark); }
.main-nav .search-form button svg { width: 17px; height: 17px; color: #fff; }

@media (max-width: 600px) {
  .main-nav ul { gap: 2px; justify-content: center; }
  .main-nav a { padding: 14px 14px; font-size: 13px; min-height: 44px; }
}

/* ---------- Breaking bar graphic sizing ---------- */
.todaysnews-graphic { height: 40px; width: auto; flex-shrink: 0; }
@media (max-width: 600px) { .todaysnews-graphic { height: 28px; } }

/* ---------- Hero carousel + latest news layout ---------- */
.hero-layout { display: grid; grid-template-columns: 2.1fr 1fr; gap: 22px; margin: 24px 0; }
.hero-carousel { position: relative; border-radius: 10px; overflow: hidden; background: #000; min-height: 380px; }
.hero-carousel-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg); border: 2px dashed var(--border); color: var(--text-muted); text-align: center; padding: 20px;
}
.hero-carousel-empty p { margin: 4px 0; }
.hero-carousel-empty p:first-child { font-size: 17px; font-weight: 700; color: var(--text); }
.hero-empty-hint { font-size: 13px; }
.hero-slide { display: none; position: relative; }
.hero-slide.active { display: block; }
.hero-slide img { width: 100%; height: 380px; object-fit: cover; opacity: .85; }
.hero-category-tag {
  position: absolute; top: 16px; left: 16px; background: var(--red); color: #fff; font-size: 12px;
  font-weight: 800; text-transform: uppercase; padding: 5px 12px; border-radius: 3px;
}
.hero-overlay {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,.85) 60%);
  color: #fff;
}
.hero-overlay h1 { font-size: 26px; margin-bottom: 8px; line-height: 1.25; }
.hero-overlay h1 a { color: #fff; }
.hero-overlay p { font-size: 14px; opacity: .9; max-width: 640px; margin-bottom: 14px; }
.hero-meta-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.hero-meta { font-size: 12px; opacity: .85; }
.hero-cta {
  background: var(--red); color: #fff; padding: 9px 18px; border-radius: 5px;
  font-weight: 700; font-size: 13px; white-space: nowrap;
}
.hero-cta:hover { background: var(--yellow); color: var(--red-dark); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.85);
  color: var(--text); border: none; width: 34px; height: 34px; border-radius: 50%; font-size: 20px;
  cursor: pointer; display: flex; align-items: center; justify-content: center; line-height: 1;
}
.hero-arrow-prev { left: 14px; }
.hero-arrow-next { right: 14px; }
.hero-arrow:hover { background: var(--yellow); }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 2; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; }
.hero-dot.active { background: var(--red); width: 22px; border-radius: 4px; }

.latest-news-panel { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #fff; }
.panel-heading { background: var(--red); color: #fff; font-size: 14px; font-weight: 800; text-transform: uppercase; padding: 12px 16px; }
.latest-news-item { display: flex; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: var(--transition); }
.latest-news-item:hover { background: var(--bg); }
.latest-news-item:last-child { border-bottom: none; }
.latest-news-item .img-clip { overflow: hidden; border-radius: 4px; flex-shrink: 0; display: block; }
.latest-news-item img { width: 64px; height: 52px; object-fit: cover; display: block; transition: transform .4s ease; }
.latest-news-item:hover img { transform: scale(1.08); }
.latest-news-item h4 { font-size: 13px; line-height: 1.3; margin-bottom: 4px; }
.latest-news-item .meta { font-size: 11px; color: var(--text-muted); }

/* ---------- Category columns + trending ---------- */
.category-columns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 30px 0; }
.category-column { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; box-shadow: var(--shadow-soft); transition: var(--transition); }
.category-column:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); }
.column-category-tag {
  display: inline-block; align-self: flex-start; background: var(--red); color: #fff; font-size: 11px;
  font-weight: 800; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; margin-bottom: 10px;
}
.column-big-article { display: block; }
.column-big-article .img-clip { overflow: hidden; border-radius: 6px; margin-bottom: 8px; display: block; }
.column-big-article img { width: 100%; height: 120px; object-fit: cover; display: block; transition: transform .4s ease; }
.column-big-article:hover img { transform: scale(1.07); }
.column-big-article h3 { font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
.column-big-article .meta { font-size: 11px; color: var(--text-muted); }
.column-list { list-style: none; margin-top: 10px; flex: 1; }
.column-list li { padding: 8px 0; border-top: 1px solid var(--border); }
.column-list li a { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 2px; }
.column-list li a:hover { color: var(--red); }
.column-list .meta { font-size: 11px; color: var(--text-muted); }
.view-more-btn {
  display: block; text-align: center; margin-top: 12px; border: 1px solid var(--red); color: var(--red);
  padding: 8px; border-radius: 5px; font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.view-more-btn:hover { background: var(--red); color: #fff; }

.trending-tag { background: var(--yellow); color: var(--red-dark); }
.trending-list { list-style: none; flex: 1; }
.trending-list li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-top: 1px solid var(--border); }
.trending-list li:first-child { border-top: none; }
.trending-rank {
  font-size: 20px; font-weight: 900; color: var(--yellow); -webkit-text-stroke: 1px var(--red);
  flex-shrink: 0; line-height: 1;
}
.trending-title { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; margin-bottom: 2px; }
.trending-title:hover { color: var(--red); }

.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer-legal-links a { color: #999; margin: 0 4px; }
.footer-legal-links a:hover { color: var(--yellow); }

/* ---------- Section headings ---------- */
.section { padding: 32px 0; }
.section-title {
  font-size: 22px; font-weight: 800; text-transform: uppercase;
  color: var(--red); border-left: 5px solid var(--yellow); padding-left: 10px;
  margin-bottom: 18px;
}

/* ---------- Article cards ---------- */
.article-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.article-card {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  background: var(--white); transition: var(--transition); box-shadow: var(--shadow-soft);
  display: block;
}
.article-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-4px); }
.article-card img { width: 100%; height: 180px; object-fit: cover; transition: transform .4s ease; display: block; }
.article-card:hover img { transform: scale(1.06); }
.article-card .card-body { padding: 14px; }
.article-card .category-tag {
  display: inline-block; background: var(--yellow); color: var(--red-dark);
  font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; margin-bottom: 8px;
}
.article-card h3 { font-size: 16px; line-height: 1.3; margin-bottom: 6px; }
.article-card .meta { font-size: 12px; color: var(--text-muted); }

/* ---------- Featured story ---------- */
.featured-story {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center;
  background: var(--bg); border-radius: 10px; overflow: hidden;
}
.featured-story img { height: 100%; object-fit: cover; }
.featured-story .content { padding: 24px; }
.featured-story h2 { font-size: 26px; margin-bottom: 12px; }

/* ---------- Sidebar / most read ---------- */
.layout-with-sidebar { display: grid; grid-template-columns: 2.2fr 1fr; gap: 30px; }
.most-read-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.most-read-item .rank { font-size: 26px; font-weight: 900; color: var(--yellow); -webkit-text-stroke: 1px var(--red); }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); color: var(--text); margin-top: 40px; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; padding: 36px 16px; }
.footer-logo { height: 40px; margin-bottom: 10px; }
.footer-col p { color: var(--text-muted); font-size: 13px; line-height: 1.6; }
.footer-col h4 { color: var(--red); margin-bottom: 10px; font-size: 14px; text-transform: uppercase; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col li a { color: var(--text-muted); transition: var(--transition); }
.footer-col a:hover { color: var(--red); }
.social-icons a {
  display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; width: 34px; height: 34px;
  border: 1px solid var(--red); color: var(--red); border-radius: 50%; transition: var(--transition);
}
.social-icons a svg { width: 16px; height: 16px; }
.social-icons a:hover { background: var(--red); color: #fff; transform: translateY(-2px); }
.footer-bottom { background: #111; border-top: none; padding: 14px 16px; font-size: 12px; text-align: center; color: #999; }

/* ---------- Login page ---------- */
.login-page { background: var(--bg); display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-card { background: var(--white); padding: 36px; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.1); width: 100%; max-width: 380px; text-align: center; }
.login-logo { height: 56px; margin: 0 auto 16px; }
.login-card h1 { font-size: 18px; margin-bottom: 18px; }
.login-card label { display: block; text-align: left; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.login-card input { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 6px; }
.login-card button {
  width: 100%; margin-top: 20px; padding: 12px; background: var(--red); color: var(--white);
  border: none; border-radius: 6px; font-weight: 700; cursor: pointer;
}
.login-card button:hover { background: var(--red-dark); }
.msg { padding: 10px 12px; border-radius: 6px; font-size: 13px; margin-bottom: 10px; text-align: left; }
.msg.error { background: #fdeaea; color: #a10000; border: 1px solid #f3b7b7; }
.msg.success { background: #eafaf0; color: #0a7a3c; border: 1px solid #b6ecc9; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 80px 16px; }
.error-page h1 { font-size: 90px; color: var(--red); }
.error-page .btn { display: inline-block; margin-top: 20px; background: var(--red); color: var(--white); padding: 12px 24px; border-radius: 6px; font-weight: 700; }
.error-page .btn:hover { background: var(--yellow); color: var(--red-dark); }

/* ---------- Notification permission banner ---------- */
#zzetta-notif-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 420px;
  margin: 0 auto; background: var(--text); color: #fff; padding: 14px 18px;
  border-radius: 8px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; font-size: 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 9999;
}
#zzetta-notif-banner .zzetta-notif-actions { display: flex; gap: 8px; flex-shrink: 0; }
#zzetta-notif-banner button {
  border: none; padding: 7px 14px; border-radius: 5px; font-weight: 700; font-size: 13px; cursor: pointer;
}
#zzetta-notif-banner button[data-action="allow"] { background: var(--yellow); color: var(--red-dark); }
#zzetta-notif-banner button[data-action="dismiss"] { background: rgba(255,255,255,.15); color: #fff; }
@media (max-width: 480px) {
  #zzetta-notif-banner { flex-direction: column; align-items: stretch; text-align: center; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-story { grid-template-columns: 1fr; }
  .layout-with-sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-layout { grid-template-columns: 1fr; }
  .category-columns { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .header-top { flex-direction: column; align-items: stretch; }
  .article-grid { grid-template-columns: 1fr; }
  .main-nav ul { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .main-nav-inner { flex-direction: column; }
  .main-nav .search-form { margin: 8px 0; width: 100%; }
  .main-nav .search-form input { width: 100%; }
  .category-columns { grid-template-columns: 1fr; }
  .hero-slide img, .hero-carousel { min-height: 240px; }
  .hero-slide img { height: 240px; }
  .hero-overlay h1 { font-size: 20px; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }
}
