/*
Theme Name: TechBoK Portal
Theme URI: https://techbokng.com
Author: Oseni Elamah ICT
Author URI: https://techbokng.com
Description: TechBoK NG-styled WordPress theme — marketing homepage (courses, record, testimonials) plus a public certificate-verification section. Pairs with the TechBoK Student Registration Portal and Certificate Generator plugins.
Version: 2.3.0
Requires at least: 5.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: techbok-portal
*/

:root{
  --blue:#1f74f0; --blue-d:#155ec9; --navy:#0a1733; --ink:#0c1b3a;
  --muted:#5b6577; --bg:#ffffff; --soft:#f2f7ff; --line:#e6ecf5;
  --gold:#f5b301;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;line-height:1.6}
img{max-width:100%;height:auto}
a{color:var(--blue);text-decoration:none}
.wrap{max-width:1140px;margin:0 auto;padding:0 22px}
.section{padding:72px 0}
.section.soft{background:var(--soft)}
.eyebrow{display:inline-block;text-transform:uppercase;letter-spacing:.14em;font-size:13px;
  font-weight:700;color:var(--blue);margin:0 0 10px}
.sec-head{text-align:center;max-width:680px;margin:0 auto 44px}
.sec-head h2{font-size:clamp(26px,3.6vw,38px);color:var(--navy);margin:0 0 10px;letter-spacing:-.5px}
.sec-head p{color:var(--muted);margin:0;font-size:17px}
.btn{display:inline-block;padding:13px 26px;border-radius:10px;font-weight:700;font-size:15px;cursor:pointer;border:2px solid var(--blue);transition:.15s}
.btn-primary{background:var(--blue);color:#fff}
.btn-primary:hover{background:var(--blue-d);border-color:var(--blue-d)}
.btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.6)}
.btn-ghost:hover{background:rgba(255,255,255,.12)}
.btn-light{background:#fff;color:var(--navy);border-color:#fff}
.btn-light:hover{background:#eef2f9}

/* ---------- header ---------- */
.site-header{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:60}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;height:78px;gap:18px}
.brand{display:flex;align-items:center;font-weight:800;font-size:24px;letter-spacing:-.5px}
.brand img{max-height:52px;width:auto}
.brand .tech{color:var(--blue)} .brand .bok{color:var(--navy)}
.site-nav{display:flex;align-items:center;gap:26px}
.site-nav a{color:var(--navy);font-weight:600;font-size:15px}
.site-nav a:hover{color:var(--blue)}
.menu-toggle{display:none;background:none;border:0;font-size:26px;color:var(--navy);cursor:pointer}

/* ---------- hero ---------- */
.hero{position:relative;background:linear-gradient(135deg,#0a1733 0%,#143a7d 60%,#1f74f0 130%);color:#fff;
  padding:96px 0 104px;overflow:hidden}
.hero::after{content:"";position:absolute;right:-120px;top:-120px;width:420px;height:420px;border-radius:50%;
  background:radial-gradient(circle,rgba(255,255,255,.12),transparent 70%)}
.hero .wrap{position:relative;z-index:2;text-align:center}
.hero .eyebrow{color:#9ec3ff}
.hero h1{font-size:clamp(32px,5.4vw,56px);line-height:1.1;margin:6px 0 18px;letter-spacing:-1px}
.hero h1 .accent{color:#7fb0ff}
.hero p.lead{font-size:19px;color:#cdd9f2;max-width:640px;margin:0 auto 30px}
.hero .cta{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}

/* ---------- course cards ---------- */
.course-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.course-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;
  box-shadow:0 2px 10px rgba(10,23,51,.05);transition:.15s;display:flex;flex-direction:column;gap:10px}
.course-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px rgba(10,23,51,.12);border-color:#cfe0ff}
.course-code{align-self:flex-start;background:var(--soft);color:var(--blue);font-weight:800;
  font-size:13px;letter-spacing:.08em;padding:6px 12px;border-radius:8px}
.course-card h3{margin:4px 0 2px;color:var(--navy);font-size:19px}
.course-price{color:var(--muted);font-size:14px;line-height:1.7}
.course-price b{color:var(--ink)}
.center-btn{text-align:center;margin-top:40px}

/* ---------- stats / record ---------- */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-bottom:40px}
.stat{background:var(--navy);color:#fff;border-radius:16px;padding:30px;position:relative;overflow:hidden}
.stat .num{font-size:46px;font-weight:800;color:#7fb0ff;line-height:1;opacity:.5}
.stat h3{margin:10px 0 6px;font-size:20px}
.stat p{margin:0;color:#c7d2e6;font-size:15px}
.features{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.feature{background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px;text-align:center}
.feature .ico{width:50px;height:50px;border-radius:12px;background:var(--soft);color:var(--blue);
  display:flex;align-items:center;justify-content:center;margin:0 auto 14px;font-size:24px}
.feature h4{margin:0 0 6px;color:var(--navy);font-size:16px}
.feature p{margin:0;color:var(--muted);font-size:14px}

/* ---------- why us ---------- */
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}
.why-card{background:#fff;border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:12px;padding:26px}
.why-card h3{margin:0 0 8px;color:var(--navy);font-size:19px}
.why-card p{margin:0;color:var(--muted);font-size:15px}

/* ---------- about quote ---------- */
.about-quote{background:linear-gradient(135deg,#0a1733,#143a7d);color:#fff;border-radius:20px;padding:56px 44px;text-align:center}
.about-quote .q{font-size:clamp(22px,3vw,30px);font-weight:700;line-height:1.3;margin:0 auto 18px;max-width:880px}
.about-quote p{color:#cdd9f2;max-width:760px;margin:0 auto 26px;font-size:16px}

/* ---------- testimonials ---------- */
.tcards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.tcard{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;text-align:center}
.tcard .rate{color:var(--gold);font-weight:800;margin-bottom:10px}
.tcard p{color:var(--muted);font-size:15px;min-height:84px}
.tavatar{width:56px;height:56px;border-radius:50%;background:var(--blue);color:#fff;font-weight:800;
  display:flex;align-items:center;justify-content:center;margin:6px auto 8px;font-size:20px}
.tcard .name{font-weight:700;color:var(--navy)}

/* ---------- verify ---------- */
#verify .box{background:#fff;border:1px solid var(--line);border-radius:18px;padding:40px;max-width:680px;margin:0 auto;
  box-shadow:0 8px 28px rgba(10,23,51,.07)}

/* ---------- CTA ---------- */
.cta-band{background:linear-gradient(135deg,#1f74f0,#0a1733);color:#fff;text-align:center;padding:72px 0}
.cta-band .eyebrow{color:#cfe0ff}
.cta-band h2{font-size:clamp(26px,4vw,40px);margin:6px 0 24px;letter-spacing:-.5px}

/* ---------- footer ---------- */
.site-footer{background:var(--navy);color:#c2cee4;padding:60px 0 0}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1.4fr;gap:36px;padding-bottom:40px}
.site-footer h4{color:#fff;font-size:16px;margin:0 0 16px;text-transform:uppercase;letter-spacing:.06em}
.site-footer a{color:#c2cee4} .site-footer a:hover{color:#fff}
.site-footer ul{list-style:none;margin:0;padding:0;line-height:2}
.footer-brand .tech{color:#7fb0ff;font-weight:800;font-size:24px} .footer-brand .bok{color:#fff;font-weight:800;font-size:24px}
.footer-contact p{margin:0 0 12px;font-size:14px;line-height:1.6}
.footer-bottom{border-top:1px solid rgba(255,255,255,.12);text-align:center;padding:20px 0;font-size:13px;color:#90a0bd}
.footer-bottom a{color:#90a0bd}

/* ---------- generic content ---------- */
.page-content{padding:56px 0;max-width:820px}
.page-content h1{color:var(--navy)}

@media(max-width:980px){
  .course-grid,.why-grid,.stats{grid-template-columns:repeat(2,1fr)}
  .features,.tcards{grid-template-columns:repeat(2,1fr)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:680px){
  .site-nav{position:absolute;top:78px;left:0;right:0;background:#fff;flex-direction:column;align-items:flex-start;
    gap:0;padding:10px 22px;border-bottom:1px solid var(--line);display:none}
  .site-nav.open{display:flex}
  .site-nav a,.site-nav .btn{padding:12px 0;width:100%}
  .menu-toggle{display:block}
  .course-grid,.why-grid,.stats,.features,.tcards{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
}

/* ---------- logo proportion fix + compact footer ---------- */
.site-header .brand{display:flex;align-items:center;line-height:0}
.site-header .brand img,.site-header .custom-logo{height:46px !important;width:auto !important;max-width:220px;object-fit:contain;display:block}
.site-footer.compact{padding:36px 0 0}
.footer-compact{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding-bottom:24px}
.footer-links{display:flex;gap:22px;flex-wrap:wrap}
.footer-links a{color:#c2cee4;font-weight:600}
.footer-links a:hover{color:#fff}

/* ---------- logo sizing (authoritative) ---------- */
.site-header .wrap{min-height:78px;height:auto;padding-top:8px;padding-bottom:8px}
.site-header .brand{display:flex;align-items:center;line-height:0;max-width:64%}
.site-header .brand img,
.site-header .custom-logo,
.site-header .tb-logo{height:50px !important;width:auto !important;max-width:240px !important;object-fit:contain;display:block}
.site-header .custom-logo-link{display:block;line-height:0}

/* =========================================================
   UI REFRESH v2.2 — Roboto font + blue-box line icons
   ========================================================= */
body, input, button, select, textarea,
.brand, h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
h1, h2, h3 { font-weight: 900; }

/* blue-box line icons */
.icon-box{display:inline-flex;align-items:center;justify-content:center;width:56px;height:56px;
    border-radius:14px;background:var(--blue);color:#fff;box-shadow:0 8px 18px rgba(31,116,240,.28)}
.icon-box svg{width:28px;height:28px;display:block}
.icon-box-lg{display:flex;width:74px;height:74px;border-radius:20px;margin:0 auto 18px}
.icon-box-lg svg{width:36px;height:36px}

/* testimonials refreshed */
.tcards .tcard{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:30px 22px}
.tcard .icon-box{margin-bottom:4px}
.rate{display:flex;gap:3px;justify-content:center;margin:0}
.rate .star{width:18px;height:18px;fill:#dbe3ef;stroke:none}
.rate .star.on{fill:var(--gold)}
.tcard p{color:var(--muted);font-size:15px;min-height:96px;margin:4px 0 0}
.tcard .name{font-weight:700;color:var(--navy);margin-top:2px}

/* verify card + field polish (plugin shortcode markup) */
#verify .box{padding:34px}
#verify .srp-verify-form label{display:block;color:var(--navy);font-weight:700;margin-bottom:10px;font-size:15px}
#verify .srp-verify-row{display:flex;gap:10px}
#verify .srp-verify-row input{flex:1;border:2px solid var(--line);border-radius:10px;padding:14px 16px;font-size:16px;color:var(--ink)}
#verify .srp-verify-row input:focus{outline:none;border-color:var(--blue);box-shadow:0 0 0 4px rgba(31,116,240,.15)}
#verify .srp-verify-row button{border:0;border-radius:10px;padding:14px 28px;background:var(--blue);color:#fff;font-weight:700;font-size:15px;cursor:pointer}
#verify .srp-verify-row button:hover{background:var(--blue-d)}

/* tidy buttons + header */
.btn{border-radius:12px}
.site-header .wrap{gap:24px}
.section{padding:64px 0}

/* =========================================================
   v2.3 — centered logo header + fully-clickable visit band
   ========================================================= */
.site-header.centered .wrap{justify-content:center}
.site-header.centered .brand{max-width:none}

a.cta-band.cta-link{display:block;text-decoration:none;cursor:pointer;transition:filter .15s}
a.cta-band.cta-link:hover{filter:brightness(1.07)}
.cta-band .wrap{display:block;text-align:center}
.cta-band .eyebrow{color:#cfe0ff}
.cta-band .cta-title{display:block;font-weight:900;font-size:clamp(26px,4vw,40px);
    margin:6px 0 24px;letter-spacing:-.5px;color:#fff;font-family:'Roboto',system-ui,sans-serif}
.cta-band .btn-light{display:inline-block;pointer-events:none}
