/*
Theme Name: KNISP_PEO
Theme URI: https://peoonline.africa
Author: Kniceties Internet Service Provider
Author URI: https://kniceties.co.za
Description: Custom, responsive, high-performance educational WordPress theme for Perfecting Educational Output (PEO). Features sticky header, modern typography, mobile drawer navigation, comprehensive policy portals, and full course catalogs.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: Proprietary
Text Domain: knisp-peo
Tags: education, responsive-layout, sticky-header, custom-logo, translation-ready, full-width-template
*/

/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
  --primary-color: #1e700a;
  --primary-dark: #144f07;
  --primary-light: #2b9912;
  --primary-subtle: #f0fdf4;
  --secondary-color: #f59e0b;
  --secondary-dark: #d97706;
  --accent-blue: #1e40af;
  --accent-light: #eff6ff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-sticky: 0 4px 20px rgba(0, 0, 0, 0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.3s ease;
  --font-main: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', sans-serif;
  --font-heading: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --header-height: 85px;
  --topbar-height: 38px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   STICKY HEADER (MANDATORY REQUIREMENT)
   ========================================================================== */
.site-topbar {
  background: #143e06;
  color: #d1fae5;
  font-size: 0.85rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-contact a {
  color: #d1fae5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.topbar-contact a:hover {
  color: #ffffff;
}

.topbar-notice {
  font-weight: 600;
  color: #fef08a;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sticky);
  background-color: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
  padding: 10px 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.site-logo:hover {
  transform: scale(1.03);
}

.site-title-wrap {
  display: flex;
  flex-direction: column;
}

.site-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-tagline {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Primary Navigation */
.main-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-navigation a {
  display: block;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.main-navigation a:hover,
.main-navigation li.current-menu-item>a,
.main-navigation a.active {
  color: var(--primary-color);
  background-color: var(--primary-subtle);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(30, 112, 10, 0.2);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 4px 10px rgba(30, 112, 10, 0.3);
  transform: translateY(-1px);
}

.btn-outline {
  border-color: var(--primary-color);
  color: var(--primary-color) !important;
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary-subtle);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: #ffffff !important;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer.open {
  opacity: 1;
  pointer-events: auto;
  display: block;
}

.mobile-drawer-content {
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: #ffffff;
  padding: 24px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}

.mobile-drawer.open .mobile-drawer-content {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-nav a {
  display: block;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background-color: var(--primary-subtle);
  color: var(--primary-color);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
  .main-navigation {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .header-cta .btn-outline {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-topbar .topbar-notice {
    display: none;
  }

  .site-title {
    font-size: 1.05rem;
  }

  .site-tagline {
    display: none;
  }

  .site-logo {
    height: 48px;
  }

  .header-cta {
    display: none;
  }
}


.team-avatar-img-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 2px solid #e2e8f0;
}

.team-avatar-image {
  width: 200%;
  height: 200%;
  object-fit: cover;
}

/* Partnership image*/
.partnership-image {
  width: 100%;
  border-radius: 8px;
}

/* 
.peo-heritage-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

/* Stack columns on screens smaller than 992px (tablets & mobile) 
@media (max-width: 992px) {
  .peo-heritage-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
} 