/*
Theme Name: Wesleyan News
Author: Gabriel Nana Asirifi (Gabs Technology Company)
Description: Clean, error-free WordPress news theme for wesleyannews.com styled with folder-tab category bars, article social sharing bar, next/previous post arrows, source/date meta info, well-paragraphed article text, related articles section, category archive headline listings, static page templates, and the Explore Wesleyan News footer layout.
Version: 90.0.0
*/

:root {
  --primary-blue: #002366;
  --accent-red: #e60000;
  --accent-green: #2e7d32;
  --dark-navy: #001540;
  --accent-gold: #c9a227;
  --neutral-white: #ffffff;
  --bg-light: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --tab-news: #002366;
  --tab-methodism: #c9a227;
  --tab-entertainment: #e60000;
  --tab-sports: #001540;
  --tab-business: #a88418;
  --tab-videos: #222222;
  --tab-africa: #e60000;
  --tab-wesleyan: #c9a227;
  
  --footer-bg: #002366;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: var(--text-dark);
  background-color: var(--neutral-white);
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }

/* HEADER STYLING */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-blue);
  color: var(--neutral-white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.header-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.1rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.header-left-icon, .header-right-icon {
  font-size: 1.4rem;
  color: var(--neutral-white);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.site-logo-wrap { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; }


.header-left-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.header-logo-left {
  display: inline-flex;
  align-items: center;
}
.header-logo-left .site-logo-img {
  height: 1.15rem;
  width: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 4px;
  border-radius: 4px;
  display: block;
}
@media (min-width: 600px) {
  .header-logo-left .site-logo-img {
    height: 1.45rem;
  }
}
.site-logo {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--neutral-white) !important;
  letter-spacing: -0.3px;
  font-style: italic;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (min-width: 600px) {
  .site-logo {
    font-size: 1.45rem;
  }
}


.category-tabs-bar {
  background: var(--primary-blue);
  padding: 0 0.5rem 0.6rem 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 3px solid var(--accent-gold);
}
.category-tabs-container { display: inline-flex; gap: 4px; }

.cat-tab {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--neutral-white) !important;
  text-transform: uppercase;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}
.cat-tab.tab-news { background-color: var(--tab-news); }
.cat-tab.tab-methodism { background-color: var(--tab-methodism); }
.cat-tab.tab-entertainment { background-color: var(--tab-entertainment); }
.cat-tab.tab-sports { background-color: var(--tab-sports); }
.cat-tab.tab-business { background-color: var(--tab-business); }

.page-container { max-width: 800px; margin: 0 auto; padding: 1.5rem 1rem; }

.category-section-block { margin-bottom: 2.5rem; }
.category-section-title { font-size: 1.7rem; font-weight: 900; margin-bottom: 0.8rem; text-transform: uppercase; }
.category-section-title.title-news { color: var(--tab-news); }
.category-section-title.title-methodism { color: var(--tab-methodism); }
.category-section-title.title-entertainment { color: var(--tab-entertainment); }
.category-section-title.title-sports { color: var(--tab-sports); }
.category-section-title.title-business { color: var(--tab-business); }

.category-hero-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  background-color: var(--dark-navy);
}

.category-hero-link { display: block; position: relative; width: 100%; height: 260px; }
.category-hero-link img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay-text {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.2rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
  color: var(--neutral-white);
}

.hero-overlay-title { font-size: 1.25rem; font-weight: 800; line-height: 1.3; color: var(--neutral-white); margin-bottom: 0.4rem; }
.hero-overlay-time { font-size: 0.8rem; color: #e2e8f0; }

.compact-news-list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1rem; }
.compact-news-item {
  display: flex; gap: 1rem; align-items: center; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border-color); text-decoration: none;
}
.compact-news-thumb { width: 110px; height: 75px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background-color: #e2e8f0; }
.compact-news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compact-news-info { display: flex; flex-direction: column; gap: 0.3rem; }
.compact-news-title { font-size: 0.98rem; font-weight: 700; color: var(--text-dark); line-height: 1.3; }
.compact-news-time { font-size: 0.78rem; color: var(--text-muted); }

.more-category-btn {
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.9rem 1.2rem; border-radius: 6px; color: var(--neutral-white) !important;
  font-weight: 800; font-size: 0.95rem; text-transform: uppercase; text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.more-category-btn.btn-news { background-color: var(--tab-news); }
.btn-methodism { background-color: var(--tab-methodism); }
.more-category-btn.btn-methodism { background-color: var(--tab-methodism); }
.more-category-btn.btn-entertainment { background-color: var(--tab-entertainment); }
.more-category-btn.btn-sports { background-color: var(--tab-sports); }
.more-category-btn.btn-business { background-color: var(--tab-business); }

/* CATEGORY HEADLINES LISTING PAGE STYLING */
.category-archive-header {
  border-bottom: 3px solid var(--primary-blue);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}
.category-archive-header h1 {
  font-size: 1.8rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--primary-blue);
}

.headline-list-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.headline-row-item {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-color);
  text-decoration: none;
}
.headline-row-item:hover .headline-row-title {
  color: var(--tab-news);
}
.headline-row-thumb {
  width: 120px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #e2e8f0;
}
.headline-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.headline-row-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.headline-row-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
}
.headline-row-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* STATIC PAGE STYLING */
.static-page-header {
  border-bottom: 3px solid var(--primary-blue);
  padding-bottom: 0.8rem;
  margin-bottom: 1.5rem;
}
.static-page-title {
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--primary-blue);
  text-transform: uppercase;
}
.static-page-content {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-dark);
}
.static-page-content p {
  margin-bottom: 1.2rem;
}
.static-page-content h2, .static-page-content h3 {
  margin-top: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--primary-blue);
  font-weight: 800;
}
.static-page-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1.2rem;
}
.static-page-content li {
  margin-bottom: 0.5rem;
}
.static-page-content a {
  color: var(--tab-news);
  text-decoration: underline;
}

/* SINGLE ARTICLE STYLING */
.article-breadcrumb {
  background: #f1f5f9;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid var(--border-color);
}
.article-breadcrumb a { color: var(--primary-blue); }

.article-social-bar {
  background: var(--primary-blue);
  color: var(--neutral-white);
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.article-social-icons {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.article-social-icons a { color: var(--neutral-white); }
.article-comments-count { display: flex; align-items: center; gap: 0.3rem; font-size: 1rem; font-weight: 700; }

.article-title-nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.article-nav-arrow {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-blue);
  text-decoration: none;
  padding: 0 0.5rem;
  flex-shrink: 0;
}
.article-main-title {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.35;
  flex-grow: 1;
}

.article-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.article-source-tag {
  background: #f1f5f9;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.article-body-content {
  font-size: 1.12rem;
  line-height: 1.85;
  color: var(--text-dark);
}
.article-body-content p {
  margin-bottom: 1.4rem;
  text-align: justify;
}

/* RELATED ARTICLES SECTION */
.related-articles-section {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 3px solid var(--primary-blue);
}
.related-articles-heading {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--primary-blue);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* EXPLORE WESLEYAN NEWS FOOTER */
.explore-footer {
  background-color: var(--footer-bg);
  color: var(--neutral-white);
  padding: 2rem 1rem 1.5rem 1rem;
  margin-top: 3rem;
}
.explore-footer-inner {
  max-width: 900px;
  margin: 0 auto;
}
.explore-footer-heading {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}
.explore-footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}
.explore-links-list {
  background: #003366;
  border-radius: 12px;
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.explore-links-list a {
  color: var(--neutral-white);
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}
.explore-links-list a:hover {
  text-decoration: underline;
}
.explore-buttons-stack {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.explore-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  color: var(--neutral-white);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  text-decoration: none;
}
.btn-news { background-color: var(--tab-news); }
.btn-methodism { background-color: var(--tab-methodism); }
.btn-entertainment { background-color: var(--tab-entertainment); }
.btn-sports { background-color: var(--tab-sports); }
.btn-business { background-color: var(--tab-business); }
.btn-videos { background-color: var(--tab-videos); border: 1px solid #444; }
.btn-africa { background-color: var(--tab-africa); }
.btn-wesleyan { background-color: var(--tab-wesleyan); }

.explore-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  margin-top: 2rem;
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.explore-bottom-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem 2rem;
}
.explore-bottom-links a {
  color: var(--neutral-white);
  font-size: 1.15rem;
  font-weight: 500;
}
.explore-copyright {
  font-size: 0.9rem;
  color: #e2e8f0;
}
.developer-credit {
  font-weight: 700;
  color: #ffffff;
}
.developer-credit a {
  color: #ffffff !important;
  text-decoration: underline;
}

/* DOWNLOAD APP BANNER */
.wn-app-download-bar {
  background: linear-gradient(90deg, #001540 0%, #002366 100%);
  color: #ffffff;
  border-bottom: 2px solid var(--accent-gold);
  padding: 0.65rem 1rem;
}
.wn-app-download-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.wn-app-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.wn-app-bar-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
  border-radius: 8px;
  flex-shrink: 0;
}
.wn-app-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
}
.wn-app-sub {
  font-size: 0.78rem;
  color: #e2e8f0;
}
.wn-install-btn {
  background-color: var(--accent-gold);
  color: #001540;
  border: none;
  padding: 0.55rem 1rem;
  border-radius: 6px;
  font-weight: 900;
  font-size: 0.82rem;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.wn-install-btn:hover {
  background-color: #d9b236;
}

/* HEADER DOWNLOAD APP BUTTON */
.wn-install-btn.header-right-install {
  background-color: var(--accent-gold);
  color: #001540;
  border: none;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-weight: 900;
  font-size: 0.78rem;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.wn-install-btn.header-right-install:hover {
  background-color: #d9b236;
}

/* GENERAL NEWS TOP LOGO */
.general-news-top-logo {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}
.general-news-logo-img {
  height: 3.5rem;
  max-height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* FOOTER LOGO */
.footer-logo-wrap {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}
.footer-logo-img {
  height: 3.2rem;
  max-height: 52px;
  width: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 8px;
  border-radius: 6px;
  display: block;
}

/* HEADER BRAND LINK (Logo + Name at Left Corner) */
.header-brand-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.header-logo-img {
  height: 1.15rem;
  width: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 4px;
  border-radius: 4px;
  display: block;
}
@media (min-width: 600px) {
  .header-logo-img {
    height: 1.45rem;
  }
}
