
/*
 Theme Name:   Neve FonPay Child
 Theme URI:    https://fonpay.com.ng
 Description:  Custom Neve Child Theme for FonPay SMS & Fintech Services
 Author:       Sunday Kehinde Akinade
 Author URI:   https://fonpay.com.ng
 Template:     neve
 Version:      1.0.0
 Text Domain:  neve-fonpay
*/

/* ================= GLOBAL ================= */
body {
  font-family: "Inter", system-ui, sans-serif;
}

a {
  color: #004aad;
}

a:hover {
  color: #0f172a;
}

/* ================= HERO ================= */
.fonpay-hero {
  background: linear-gradient(135deg, #004aad, #0f172a);
  color: #fff;
  padding: 90px 20px;
  text-align: center;
}

.fonpay-hero h1 {
  font-size: 42px;
  margin-bottom: 15px;
}

.fonpay-hero p {
  font-size: 18px;
  opacity: .9;
}

/* ================= BUTTON ================= */
.fonpay-btn {
  background: #00c853;
  color: #fff;
  padding: 14px 30px;
  border-radius: 6px;
  display: inline-block;
  font-weight: 600;
}

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

/* ================= BLOG GRID ================= */
.fonpay-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Force 2 columns for homepage desktop */
  gap: 32px;
  margin: 40px auto;
}

/* ================= CARD ================= */
.fonpay-card {
  background:#ffffff;
  border-radius:16px;
  overflow:hidden;
  text-decoration:none !important;
  color:#222;
  box-shadow:0 10px 25px rgba(0,0,0,.08);
  transition:all .3s ease;
  display:flex;
  flex-direction:column;
}

.fonpay-card:hover {
  transform:translateY(-8px);
  box-shadow:0 18px 45px rgba(0,0,0,.14);
}

/* Thumbnail */
.fonpay-card-thumb-wrap {
  width:100%;
  height:200px;
  overflow:hidden;
  background:#f3f0f8;
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative; /* fixes badge position */
}

.fonpay-card-thumb {
  width:100%;
  height:100%;
  object-fit:cover;
}

.fonpay-fallback-icon {
  font-size:48px;
  text-align:center;
  line-height:200px;
}

/* Body */
.fonpay-card-body {
  padding:20px;
  display:flex;
  flex-direction:column;
  height:100%;
}

/* Category restored */
.fonpay-card-category {
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  color:#6a1b9a;
}

/* Title */
.fonpay-card-title {
  font-size:18px;
  margin:10px 0;
  line-height:1.4;
}

/* Text */
.fonpay-card-body p {
  font-size:14px;
  line-height:1.6;
  color:#555;
}

/* Footer */
.fonpay-card-footer {
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:13px;
  color:#777;
}

.fonpay-read-more {
  font-weight:600;
  color:#6a1b9a;
}

/* ================= BADGES ================= */
.fonpay-badge {
  position:absolute;
  top:10px;
  left:10px;
  padding:6px 12px;
  border-radius:20px;
  font-size:12px;
  font-weight:bold;
  color:#fff;
  z-index:5;
}

.fonpay-badge.trending { background:#472C6B; }
.fonpay-badge.latest { background:#2196F3; }

/* ================= SECTION HEADERS ================= */
.fonpay-section-title {
  grid-column:1 / -1;
  font-size:26px;
  margin:30px 0 10px;
  color:#472C6B;
}

.fonpay-section-head {
  grid-column:1 / -1;
  margin:30px 20px;
  padding:15px 20px;
  border-radius:12px;
  font-size:20px;
  font-weight:700;
  color:#fff;
}

.trending-head { background: linear-gradient(135deg, #472C6B, #6A4C93, #9D7BD8); }
.latest-head { background: linear-gradient(135deg, #1E88E5, #0D47A1); }

/* ================= LOAD MORE ================= */
.fonpay-load-more-wrap {
  text-align:center;
  margin-top:40px;
  width:100%;
}

.fonpay-load-more-wrap button,
.fonpay-load-more-wrap a {
  display:inline-block;
  margin:10px auto;
}

/* ================= MOBILE ================= */
@media(max-width:768px){
  .fonpay-grid{
    grid-template-columns:1fr;
  }
}

/* ================= FOOTER ================= */
.fonpay-footer {
  background: #472C6B !important;
  color: #ffffff;
  padding: 60px 20px 20px;
}

.fonpay-footer-container {
  max-width:1200px;
  margin:auto;
  display:grid;
  grid-template-columns: repeat(5, 1fr); /* Desktop columns */
  gap:40px;
}

.fonpay-footer-top {
  display:contents; /* no extra wrapper needed */
}

.footer-column h4 {
  font-size:16px;
  font-weight:700;
  margin-bottom:15px;
}

.footer-column p,
.footer-column li,
.footer-column a {
  font-size:14px;
  color:#ffffff;
  line-height:1.8;
}

.footer-column ul {
  list-style:none;
  padding:0;
  margin:0;
}

/* App download */
.footer-app-download {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.footer-app-download img {
  width: 160px;
}

/* Copyright */
.fonpay-footer-bottom {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  color:#ffffff;
}

/* Desktop Footer Grid */
@media(min-width: 769px){
  .fonpay-footer-container {
    display:grid;
    grid-template-columns: repeat(5, 1fr);
    gap:40px;
  }
}

/* Mobile Footer Grid */
@media(max-width:768px){
  .fonpay-footer-container {
    display:flex;
    flex-direction:column;
    gap:20px;
  }
}

/* ================= BLOG POST READABILITY ================= */
.fonpay-blog-post {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  line-height: 1.8;
}

/* ===== Blog Pagination ===== */
.fonpay-pagination{
  text-align:center;
  margin:60px 0 30px;
}

.fonpay-pagination a,
.fonpay-pagination span{
  display:inline-block;
  padding:10px 18px;
  margin:4px;
  border-radius:8px;
  background:#f3eef9;
  color:#472C6B;
  font-weight:600;
  text-decoration:none;
}

.fonpay-pagination .current{
  background:#472C6B;
  color:#fff;
}

/* ONLY affect related/suggested area */
.fonpay-related-suggested-wrapper {
    margin: 40px 0;
}

.fonpay-related-suggested-wrapper .fonpay-related-suggested-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .fonpay-related-suggested-wrapper .fonpay-related-suggested-grid {
        grid-template-columns: 1fr;
    }
}

/* Home button */
.fonpay-related-suggested-wrapper .fonpay-home-wrap {
    text-align: center;
    margin-bottom: 20px;
}

.fonpay-related-suggested-wrapper .fonpay-home-btn {
    display: inline-block;
    background: #6a1b9a;
    color: #fff;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
}

/* Column spacing */
.fonpay-related-suggested-wrapper .fonpay-column {
    display: grid;
    gap: 20px;
}

.fonpay-team-card img {
  object-position: center top;
}

.fonpay-about-hero a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dotted rgba(255,255,255,0.5);
}

.fonpay-about-hero a:hover {
  color: #ffd54f !important;
  border-bottom-color: #ffd54f;
}

.fonpay-diagram {
  width: 100%;
  margin: 40px auto;
  text-align: center;
}

.fonpay-diagram img {
  width: 100%;
  max-width: 1000px; /* controls how big it can grow */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.fonpay-caption {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: -10px;
}

.single-post .fonpay-diagram {
  max-width: 100%;
}

.fonpay-ad-card {
  grid-column: span 1 !important;
}

.fonpay-ad-thumb {
  background:#f5f7fb;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:180px;
}

.fonpay-ad-card ins {
  width:100% !important;
  height:100% !important;
  min-height:180px;
}

.fonpay-category-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.fonpay-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.fonpay-article-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.fonpay-article-card:hover {
  transform: translateY(-5px);
}

.fonpay-card-img {
  width: 100%;
  height: auto;
  display: block;
}

.fonpay-card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.fonpay-card-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: #472C6B;
}

.fonpay-card-excerpt {
  font-size: 15px;
  margin-bottom: 20px;
  color: #333;
}

.fonpay-cta-btn {
  background: #6a1b9a;
  color: #fff;
  padding: 12px 24px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  display: inline-block;
}

.fonpay-cta-btn:hover {
  background: #7e2bbd;
}

.fonpay-pagination {
  margin-top: 40px;
  text-align: center;
}

/* Center the related + suggested block */
.fonpay-related-suggested-wrap {
    max-width: 1200px;
    margin: 60px auto !important;
    padding: 0 15px;
}

.fonpay-card-header {
    background: #401A76 !important;
    color: #fff !important;
    padding: 15px 20px !important;
    border-radius: 10px 10px 0 0 !important;
    margin-bottom: 12px !important;
}

.fonpay-related-right .fonpay-card-header {
    background: #2196F3 !important;
}

.fonpay-related-suggested-wrapper .fonpay-home-wrap,
.fonpay-home-wrap {
    text-align: center !important;
    width: 100%;
    margin: 30px 0 40px;
}

@media (max-width: 768px) {
    .fonpay-related-suggested-wrap {
        flex-direction: column;
    }
}

/* FORCE FonPay Related + Suggested Styling (Override Neve) */
body .fonpay-related-suggested-wrap {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    max-width: 1200px !important;
    margin: 60px auto !important;
    padding: 0 15px !important;
    box-sizing: border-box;
}

/* Columns */
body .fonpay-related-left,
body .fonpay-related-right {
    flex: 1 !important;
    min-width: 0;
}

/* Headings */
body .fonpay-card-header {
    background-color: #401A76 !important;
    color: #fff !important;
    padding: 15px 20px !important;
    border-radius: 10px 10px 0 0 !important;
    margin-bottom: 12px !important;
}

body .fonpay-related-right .fonpay-card-header {
    background-color: #2196F3 !important;
}

/* Back to home button center */
body .fonpay-home-wrap {
    text-align: center !important;
    width: 100% !important;
    margin: 30px 0 40px !important;
}

/* Mobile */
@media (max-width: 768px) {
    body .fonpay-related-suggested-wrap {
        flex-direction: column !important;
    }
}

/* FORCE back-to-home button color (override Neve) */
body .fonpay-home-btn{
    background-color:#6a1b9a !important;
    color:#ffffff !important;
    border:none !important;
    box-shadow:0 8px 18px rgba(106,27,154,.35) !important;
}

body .fonpay-home-btn:hover{
    background-color:#7e2bbd !important;
}

/* FIX FonPay Back To Home Button choke issue */
body .fonpay-home-wrap .fonpay-home-btn{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 220px !important;
    padding: 14px 32px !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
    text-align: center !important;
    box-sizing: border-box !important;
    background-color:#6a1b9a !important;
    color:#fff !important;
    border-radius: 10px !important;
}

body .fonpay-home-wrap .fonpay-home-btn:hover{
    background-color:#7e2bbd !important;
}

.fonpay-ad-card .fonpay-card-thumb-wrap {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f7fb;
}

.fonpay-ad-card .fonpay-card-body {
    padding: 20px;
}

.fonpay-ad-card .fonpay-card-title {
    font-size: 18px;
}

.fonpay-ad-card .fonpay-card-category {
    color: #2196F3;
    font-weight: 700;
    text-transform: uppercase;
}

.fonpay-whatsapp-wrap{
text-align:center;
margin:25px 0 10px 0;
}

.fonpay-whatsapp-btn{

display:inline-block;

background:#25D366;

color:#fff;

padding:12px 26px;

border-radius:10px;

font-weight:600;

text-decoration:none;

}

/* FonPay Breadcrumb SEO */

.fonpay-breadcrumbs{

max-width:900px;
margin:20px auto;
font-size:14px;
color:#777;

}

.fonpay-breadcrumbs a{

color:#2196F3;
text-decoration:none;

}

.fonpay-breadcrumbs span{

color:#333;
font-weight:600;

}

.fonpay-search-wrapper {
  margin-bottom: 30px;
}

.fonpay-search-form {
  display: flex;
  max-width: 500px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.fonpay-search-input {
  flex: 1;
  padding: 12px;
  border: none;
  outline: none;
  font-size: 14px;
}

.fonpay-search-button {
  padding: 0 18px;
  background: #111827;
  color: #fff;
  border: none;
  cursor: pointer;
}

