/*
Theme Name: Mfino Foundation
Theme URI: https://mfinofoundation.org.za
Author: MF Team
Author URI: https://mfinofoundation.org.za
Description: Custom classic theme for Mfino Foundation. Empowering communities through education, support, and sustainable development.
Version: 5.7
License: GPL-2.0+
Text Domain: mfino-foundation
*/

:root {
  --primary: #EE3937;
  --primary-dark: #cc2020;
  --navy: #3a3a3a;
  --navy-light: #2a2a2a;
  --white: #ffffff;
  --light: #f8f9fa;
  --gray: #6c757d;
  --dark: #212529;
  --border: #e9ecef;
  --font: 'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--navy); }
h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.6rem; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: var(--white); }

.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.bg-navy { background: var(--primary); color: var(--white); }
.bg-light { background: var(--light); }

/* ── Header ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: background 0.3s;
}

.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 80px;
}

.site-logo {
  font-size: 1.5rem; font-weight: 800; color: var(--navy);
  text-decoration: none;
}
.site-logo span { color: var(--primary); }

.main-nav ul { display: flex; list-style: none; gap: 8px; }
.main-nav a {
  padding: 8px 16px; border-radius: 4px; font-weight: 500;
  font-size: 0.95rem; color: var(--navy);
}
.main-nav a:hover,
.main-nav .current-menu-item a { color: var(--primary); background: rgba(238,57,55,0.08); }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--navy); }

/* ── Hero ── */




.hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 3.2rem; color: var(--white); margin-bottom: 20px; }
.hero p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 30px; }

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── Section Headers ── */
.section-header { text-align: center; margin-bottom: 50px; }
.section-header .subtitle { color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.85rem; margin-bottom: 10px; }
.section-header h2 { margin-bottom: 15px; }
.section-header .divider { width: 60px; height: 3px; background: var(--primary); margin: 0 auto; border-radius: 2px; }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }

.card-img { height: 220px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-img img { transform: scale(1.05); }

.card-body { padding: 24px; }
.card-body h3 { margin-bottom: 12px; font-size: 1.25rem; }
.card-body p { color: var(--gray); font-size: 0.95rem; }

/* ── Impact Stats ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.stat-item { text-align: center; }
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { color: var(--gray); margin-top: 8px; font-size: 0.95rem; }

/* ── Team ── */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.team-member { text-align: center; }
.team-member img { width: 160px; height: 160px; border-radius: 9%; object-fit: cover; margin: 0 auto 16px; border: 3px solid var(--border); }
.team-member h4 { margin-bottom: 4px; }
.team-member .role { color: var(--primary); font-size: 0.9rem; font-weight: 500; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.contact-info h3 { margin-bottom: 16px; }
.contact-item { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.contact-icon { color: var(--primary); font-size: 1.2rem; margin-top: 2px; }

.contact-form input,
.contact-form textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--border);
  border-radius: 6px; font-family: var(--font); font-size: 0.95rem;
  margin-bottom: 16px; transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--primary); }
.contact-form textarea { min-height: 140px; resize: vertical; }

/* ── Footer ── */
.site-footer { background: var(--white); color: var(--dark); padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 0.8fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-col h4 { color: #212529; margin-bottom: 16px; font-size: 1.1rem; }
.footer-col p, .footer-col li { font-size: 0.9rem; margin-bottom: 8px; }
.footer-col ul { list-style: none; }
.footer-col a { color: var(--gray); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; font-size: 0.85rem; }
.footer-brand { font-weight: 700; color: #212529; font-size: 1.2rem; }
.footer-brand span { color: var(--primary); }

/* ── Page Content ── */
.page-content { padding: 120px 0 80px; }
.page-content h2 { margin-top: 40px; margin-bottom: 16px; }
.page-content p { margin-bottom: 16px; }

/* ── Responsive ── */
@media (max-width: 992px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 24px !important; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  .hero h1 { font-size: 2.2rem; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 20px !important; }

  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 16px; }
  .main-nav.open ul { flex-direction: column; }
  .mobile-toggle { display: block; }

  .stats { grid-template-columns: 1fr 1fr; }
  .hero-content { text-align: center; }
  .hero-buttons { justify-content: center; }
}






@media (max-width: 768px) {
  
}

@media (max-width: 992px) {
  .main-nav ul { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 80px; left: 0; right: 0; background: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 16px; z-index: 999; }
  .main-nav.open ul { flex-direction: column; }
  .main-nav.open a { display: block; padding: 10px 16px; }
  .mobile-toggle { display: block; }
}










.hero .container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero .hero-content { position: relative; z-index: 1; }

.hero {
  min-height: 100vh; display: flex; align-items: center;
  background-size: cover !important; background-position: center !important;
  color: var(--white); position: relative; overflow: hidden;
  padding-top: 80px;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.89) !important;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hero .hero-content { position: relative; z-index: 1; }
.hero h1 { font-size: 3.2rem; color: var(--white); margin-bottom: 20px; }
.hero p { font-size: 1.15rem; opacity: 0.9; margin-bottom: 30px; }
.hero .hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }



.footer-bottom{display:flex!important;align-items:center;justify-content:space-between;flex-wrap:wrap}
.footer-bottom img{display:none!important}
.footer-bottom::after{content:"";background:url(/wp-content/uploads/2026/07/branding-1.png) no-repeat center/contain;width:167px;height:49px;display:inline-block}
.team-member img{border-radius:9%!important}


.single article h1, .post article h1, .page article h1{margin-bottom:10px!important;font-size:2rem}
.page-content{padding-top:100px}

@media (max-width: 900px) {
  .blog-layout { flex-direction: column !important; }
  .blog-sidebar { flex: 1 1 auto !important; min-width: 100% !important; }
  .blog-sidebar > div { position: static !important; }
}
@media (max-width: 600px) {
  .page-content { padding-top: 80px !important; }
  .page-content h1 { font-size: 1.6rem !important; }
  .blog-layout { gap: 20px !important; }
}

.page-id-155 h1, .page-id-155 .page-content h1{display:none}

.page-id-628 h1, .page-id-629 h1{display:none}
