/*
Theme Name: Africa Top Sports EN
Theme URI: https://en.africatopsports.com/
Author: Africa Top Sports
Description: English Sports News Theme
Version: 2.0
Text Domain: ats-en
*/

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

body {
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  color: #333;
  background: #f5f5f5;
}

a { color: #D10019; text-decoration: none; }
a:hover { color: #003919; }

/* HEADER */
#header {
  background: #003919;
  padding: 10px 0;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#header .logo img { max-height: 60px; }

/* NAV */
#main-nav {
  background: #003919;
  border-top: 1px solid rgba(255,255,255,0.1);
}
#main-nav ul {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}
#main-nav ul li a {
  display: block;
  color: #fff;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#main-nav ul li a:hover { background: #D10019; color: #fff; }

/* BREAKING NEWS */
#breaking-news {
  background: #D10019;
  color: #fff;
  padding: 6px 0;
  font-size: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.breaking-label {
  background: #000;
  padding: 4px 12px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  margin-right: 15px;
  white-space: nowrap;
  flex-shrink: 0;
}
#breaking-news a { color: #fff; }

/* CONTAINER */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 15px;
  display: flex;
  gap: 20px;
}
.main-content { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* ARTICLE CARDS */
.article-card {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  overflow: hidden;
  margin-bottom: 20px;
}
.article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.article-card .card-body { padding: 15px; }
.article-card .category {
  color: #D10019;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.article-card h2 a {
  color: #003919;
  font-family: 'Lora', serif;
  font-size: 18px;
  line-height: 1.4;
}
.article-card h2 a:hover { color: #D10019; }
.article-card .meta {
  color: #999;
  font-size: 12px;
  margin-top: 10px;
}

/* GRID */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* HERO */
.hero-article {
  background: #003919;
  color: #fff;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.hero-article img { width: 100%; height: 400px; object-fit: cover; opacity: 0.7; }
.hero-article .hero-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}
.hero-article h1 a {
  color: #fff;
  font-family: 'Lora', serif;
  font-size: 24px;
  line-height: 1.3;
}

/* SIDEBAR */
.sidebar-widget {
  background: #fff;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.widget-title {
  background: #003919;
  color: #fff;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.widget-content { padding: 15px; }
.sidebar-post {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.sidebar-post:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.sidebar-post img { width: 70px; height: 55px; object-fit: cover; flex-shrink: 0; }
.sidebar-post h4 a { color: #003919; font-size: 13px; line-height: 1.3; }
.sidebar-post h4 a:hover { color: #D10019; }

/* FOOTER */
#footer {
  background: #111;
  color: #ccc;
  padding: 40px 0 20px;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 20px;
  padding-top: 15px;
  text-align: center;
  font-size: 12px;
  color: #666;
}

/* SECTION TITLE */
.section-title {
  border-left: 4px solid #D10019;
  padding-left: 12px;
  margin: 20px 0 15px;
  font-family: 'Lora', serif;
  font-size: 20px;
  color: #003919;
}

/* SINGLE ARTICLE */
.single-article {
  background: #fff;
  padding: 25px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.single-article h1 {
  font-family: 'Lora', serif;
  font-size: 28px;
  color: #003919;
  line-height: 1.3;
  margin-bottom: 15px;
}
.single-article .article-meta {
  color: #999;
  font-size: 13px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #f0f0f0;
}
.single-article .article-featured-img {
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  margin-bottom: 20px;
}
.single-article .article-content {
  line-height: 1.8;
  font-size: 16px;
}
.single-article .article-content p { margin-bottom: 15px; }
.single-article .article-content h2,
.single-article .article-content h3 {
  font-family: 'Lora', serif;
  color: #003919;
  margin: 25px 0 10px;
}

/* SEARCH FORM */
.search-form { display: flex; gap: 5px; margin-bottom: 20px; }
.search-form input[type="search"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  font-size: 14px;
}
.search-form button {
  background: #D10019;
  color: #fff;
  border: none;
  padding: 8px 15px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.search-form button:hover { background: #003919; }

/* PAGINATION */
.pagination {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin: 30px 0;
}
.pagination a, .pagination span {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #ddd;
  color: #333;
  font-size: 14px;
}
.pagination .current { background: #D10019; color: #fff; border-color: #D10019; }
.pagination a:hover { background: #003919; color: #fff; border-color: #003919; }

@media (max-width: 768px) {
  .container { flex-direction: column; }
  .sidebar { width: 100%; }
  .articles-grid { grid-template-columns: 1fr; }
  .hero-article img { height: 250px; }
  .single-article h1 { font-size: 22px; }
}
