/*
Theme Name: TNB Talent Board
Theme URI: https://talentednationboard.com
Author: Great Pixel
Description: Black and white talent discovery theme for the Talented National Board (TNB). Posts in the Music, Video, Comedy, Entertainment, Advertisement, Football and jobs categories appear as cards under matching tabs.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: tnb
*/

:root{
  /* Black and white. For an olive theme like the example site, set --bar:#6b7127 */
  --bg:#fff; --ink:#000; --bar:#000; --bar-text:#fff; --muted:#5c5c5c; --line:#d9d9d9; --tile:#f1f1f1;
  --serif:"Noto Serif",Georgia,serif; --sans:"Roboto",Arial,sans-serif;
  --logo:url("assets/img/logo.png");
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;scroll-padding-top:1rem}
body{background:var(--bg);color:var(--ink);font-family:var(--sans);font-size:1rem;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid #000;outline-offset:2px}
.wrap{width:min(820px,100% - 1.5rem);margin-inline:auto}
.logo{background:var(--logo) center/cover no-repeat;border-radius:50%;flex:none}

/* masthead */
.mast{text-align:center;padding:1rem 0 .9rem}
.mast a{text-decoration:none;display:inline-flex;flex-direction:column;align-items:center;gap:.8rem}
.mast .logo{width:128px;height:128px;box-shadow:0 6px 22px rgba(0,0,0,.28)}
.mast h1{font-family:var(--sans);font-weight:700;font-size:1.5rem;letter-spacing:.04em;line-height:1}
.mast p{font-size:.78rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);font-weight:500;margin-top:.45rem}

/* nav */
.nav{background:var(--bar);color:var(--bar-text);border-radius:14px;padding:.55rem .5rem;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.row{display:flex;align-items:center;justify-content:space-between;gap:.1rem}
.row + .row{border-top:1px solid rgba(255,255,255,.25);margin-top:.5rem;padding-top:.6rem}
.tab{flex:1;display:flex;align-items:center;justify-content:center;gap:.35rem;background:none;border:0;color:inherit;font-weight:500;font-size:.82rem;line-height:1.15;padding:.75rem .15rem;border-radius:10px;cursor:pointer;text-align:center;position:relative;white-space:nowrap;text-decoration:none}
.row:first-child .tab + .tab::before{content:"";position:absolute;left:0;top:30%;height:40%;width:1px;background:rgba(255,255,255,.4)}
.tab[aria-current="true"]{background:#fff;color:#000;font-weight:700}
.tab[aria-current="true"]::before,.tab[aria-current="true"] + .tab::before{display:none}
.tab:not([aria-current="true"]):hover{background:rgba(255,255,255,.16)}
.tab svg{width:15px;height:15px;fill:currentColor;flex:none}
.tab.out{border:1.5px solid rgba(255,255,255,.7);margin:0 .15rem}
.searchbtn{flex:none;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.18);color:inherit;display:grid;place-items:center;cursor:pointer}
.searchbtn:hover{background:rgba(255,255,255,.3)}
.searchbtn svg{width:18px;height:18px}
.searchbar{display:none;margin-top:.5rem}
.searchbar.open{display:block}
.searchbar input{width:100%;padding:.8rem 1rem;border-radius:10px;border:0;font-size:1rem;color:#000;background:#fff}

/* headings */
.hello{font-size:.95rem;color:var(--muted);font-weight:500}
h2{font-family:var(--serif);font-weight:800;font-size:clamp(2rem,7.5vw,3rem);line-height:1.12;margin-top:.3rem}
h3.sub{font-family:var(--serif);font-weight:800;font-size:1.6rem;line-height:1.2;margin:2.2rem 0 1rem}
.date{margin:1rem 0 1.3rem;color:var(--muted);font-weight:700;font-size:.95rem;text-align:center}
.welcome{padding-top:1.6rem}

/* featured flyer */
.feat{margin-bottom:.4rem}
.feat figure{border:2px solid #000;border-radius:14px;overflow:hidden;background:#000}
.feat img{width:100%;height:auto;display:block}
.feat figcaption{background:#fff;padding:1rem 1.1rem 1.2rem;display:flex;flex-wrap:wrap;gap:.8rem 1rem;align-items:center;justify-content:space-between}
.feat strong{font-family:var(--serif);font-size:1.3rem;display:block;line-height:1.2}
.feat span{color:var(--muted);font-size:.95rem}

/* list */
.list{list-style:none;display:grid;gap:.9rem}
.card{display:flex;align-items:center;gap:1.1rem;border:1px solid var(--line);border-radius:14px;padding:.6rem;text-decoration:none;background:#fff;transition:border-color .2s}
a.card:hover{border-color:#000}
.thumb{width:104px;height:104px;border-radius:10px;background:var(--tile);overflow:hidden;flex:none;display:grid;place-items:center}
.thumb img{width:100%;height:100%;object-fit:cover;object-position:top}
.thumb .logo{width:68px;height:68px}
.card h3{font-family:var(--serif);font-size:1.12rem;line-height:1.25;font-weight:700}
.card p{font-family:var(--serif);color:#222;font-size:1.02rem;margin-top:.1rem}
.card small{display:inline-block;margin-top:.35rem;font-size:.78rem;font-weight:500;color:var(--muted)}
.empty{border:1px dashed #888;border-radius:14px;padding:1.4rem;text-align:center;color:var(--muted)}
.empty a{font-weight:700;color:#000}
.more{margin-top:1rem;text-align:center}

/* buttons */
.btn{display:inline-flex;align-items:center;gap:.5rem;background:#000;color:#fff;border:2px solid #000;border-radius:999px;padding:.8rem 1.5rem;font-weight:700;text-decoration:none;cursor:pointer;font-size:1rem}
.btn:hover{background:#fff;color:#000}
.btn svg{width:18px;height:18px;fill:currentColor}
.btn--line{background:#fff;color:#000}
.btn--line:hover{background:#000;color:#fff}

/* content sections */
.block{padding:.4rem 0}
.lead{font-size:1.1rem;max-width:62ch}
.facts{display:grid;gap:.8rem;margin-top:1.4rem}
.fact{border:1px solid var(--line);border-radius:14px;padding:1rem 1.1rem}
.fact b{font-family:var(--serif);display:block;font-size:1.05rem}
.fact span{color:var(--muted)}
.groups{display:grid;gap:1.1rem}
.group{border:2px solid #000;border-radius:14px;padding:1.2rem 1.1rem}
.group h4{font-family:var(--serif);font-size:1.3rem;margin-bottom:.4rem}
.svc{display:flex;width:100%;align-items:center;justify-content:space-between;gap:1rem;text-align:left;background:none;border:0;border-top:1px solid var(--line);padding:.85rem .2rem;cursor:pointer;text-decoration:none;font-size:1.02rem}
.group h4 + .svc{border-top:0}
.svc i{font-style:normal;font-weight:700;font-size:.85rem;border:1.5px solid #000;border-radius:999px;padding:.15rem .8rem;flex:none}
.svc:hover{background:#000;color:#fff;padding-inline:.8rem;border-radius:8px}
.svc:hover i{border-color:#fff}
.roles{list-style:none;display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin:1.2rem 0}
.roles li{border:1px solid var(--line);border-radius:12px;padding:.7rem .9rem .7rem 2.2rem;position:relative;font-weight:500}
.roles li::before{content:"";position:absolute;left:.9rem;top:50%;width:.8rem;height:.45rem;border-left:2px solid #000;border-bottom:2px solid #000;transform:rotate(-45deg) translateY(-70%)}
.agency{border:2px solid #000;border-radius:14px;padding:1.4rem 1.2rem}
.agency h4{font-family:var(--serif);font-size:1.5rem;line-height:1.2}
.agency .tag{font-weight:700;margin:.2rem 0 .8rem;color:var(--muted)}
.pills{display:flex;flex-wrap:wrap;gap:.6rem}
.pill{border:1px solid #bbb;border-radius:999px;padding:.55rem 1.1rem;font-family:var(--serif);font-weight:700;background:#f7f7f7}
.hiring{margin-top:2rem;background:#000;color:#fff;border-radius:14px;padding:1.4rem 1.2rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between}
.hiring h4{font-family:var(--serif);font-size:1.6rem;line-height:1.15}
.hiring p{opacity:.85;max-width:34ch}
.hiring .btn{background:#fff;color:#000;border-color:#fff}
.hiring .btn:hover{background:#000;color:#fff}
.dl{border:2px solid #000;border-radius:14px;padding:1.4rem 1.2rem;display:flex;flex-wrap:wrap;gap:1rem;align-items:center;justify-content:space-between}
.dl h4{font-family:var(--serif);font-size:1.4rem}
.dl p{color:var(--muted)}

/* contact */
.contact{display:grid;gap:1.6rem}
.cinfo{display:grid;gap:.8rem}
.cinfo a{word-break:break-word}
form{display:grid;gap:1rem;border:2px solid #000;border-radius:14px;padding:1.3rem 1.1rem}
label{display:grid;gap:.35rem;font-weight:700;font-size:.95rem}
input,select,textarea{width:100%;padding:.8rem .9rem;border:1.5px solid #000;border-radius:10px;background:#fff;font-weight:400;font-size:1rem}
textarea{min-height:110px;resize:vertical}
.msg{min-height:1.4rem;font-weight:700}

/* footer */
footer{background:var(--bar);color:var(--bar-text);border-radius:14px;margin:3rem auto 1rem;width:min(820px,100% - 1.5rem);padding:2.2rem 1.6rem 1.4rem}
footer .brand{display:flex;align-items:center;gap:.9rem}
footer .brand .logo{width:64px;height:64px;box-shadow:0 0 0 2px #fff}
footer .brand strong{font-family:var(--serif);font-size:1.25rem;letter-spacing:.02em}
footer .brand p{opacity:.8;font-size:.95rem}
.cols{display:grid;grid-template-columns:1fr 1fr;gap:2rem 1.5rem;margin-top:2rem}
.cols h4{font-family:var(--serif);font-size:1.5rem;margin-bottom:.8rem}
.cols ul{list-style:none;display:grid;gap:.7rem}
.cols button,.cols a{background:none;border:0;color:inherit;opacity:.88;cursor:pointer;font-size:1.05rem;padding:0;text-align:left;text-decoration:none}
.cols button:hover,.cols a:hover{opacity:1;text-decoration:underline}
.legal{margin-top:2rem;padding-top:1.1rem;border-top:1px solid rgba(255,255,255,.3);display:flex;flex-wrap:wrap;justify-content:space-between;gap:.5rem;opacity:.85;font-size:.92rem}


/* social */
.social-strip{display:flex;justify-content:center;flex-wrap:wrap;gap:.55rem;margin:.1rem auto 1.1rem}
.sbtn{display:inline-flex;align-items:center;gap:.5rem;border:1.5px solid #000;border-radius:999px;padding:.55rem 1rem;font-weight:700;font-size:.9rem;text-decoration:none;background:#fff;color:#000;transition:background .2s,color .2s}
.sbtn:hover{background:#000;color:#fff}
.sbtn svg,.scard svg{width:18px;height:18px;flex:none}
svg.st{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
svg.fl{fill:currentColor}
.follow{display:grid;gap:.9rem}
.scard{display:flex;align-items:center;gap:1rem;border:2px solid #000;border-radius:14px;padding:1.1rem 1.1rem;text-decoration:none;background:#fff;transition:background .2s,color .2s}
.scard:hover{background:#000;color:#fff}
.scard .ic{width:52px;height:52px;border-radius:50%;border:2px solid currentColor;display:grid;place-items:center;flex:none}
.scard .ic svg{width:24px;height:24px}
.scard b{font-family:var(--serif);font-size:1.15rem;display:block;line-height:1.2}
.scard span.t{font-size:.95rem;opacity:.75}
.scard .go{margin-left:auto;font-size:1.4rem;font-weight:700}
footer .sbtn{background:transparent;color:#fff;border-color:#fff}
footer .sbtn:hover{background:#fff;color:#000}
.fsoc{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1.4rem}

/* flyers + lightbox */
.zoom{display:block;width:100%;padding:0;border:0;background:#000;cursor:zoom-in;position:relative}
.zoom img{width:100%;height:auto;display:block}
.flyer{border:2px solid #000;border-radius:14px;overflow:hidden;background:#fff}
.flyer figcaption{padding:.7rem 1rem;font-size:.92rem;color:var(--muted);border-top:2px solid #000}
.flyer.svcfly{margin-bottom:1.3rem}
.ag-grid{display:grid;gap:1.4rem;margin-top:1rem}
.ag-grid .flyer{align-self:start}
.lb{position:fixed;inset:0;z-index:100;background:rgba(0,0,0,.94);display:grid;place-items:center;padding:3.6rem .8rem 1rem;overflow:auto}
.lb[hidden]{display:none}
.lb img{max-width:100%;max-height:100%;object-fit:contain;border-radius:8px;background:#fff}
.lbx{position:fixed;top:12px;right:12px;width:46px;height:46px;border-radius:50%;border:2px solid #fff;background:#000;color:#fff;font-size:1.7rem;line-height:1;cursor:pointer}

/* floating whatsapp */
.wa{position:fixed;right:14px;bottom:14px;z-index:30;width:58px;height:58px;border-radius:50%;background:#000;color:#fff;border:2px solid #fff;box-shadow:0 0 0 2px #000,0 6px 18px rgba(0,0,0,.4);display:grid;place-items:center;text-decoration:none}
.wa svg{width:30px;height:30px;fill:#fff}
.wa:hover{background:#fff}.wa:hover svg{fill:#000}

@media (max-width:430px){.social-strip{gap:.4rem}.social-strip .sbtn{padding:.5rem .8rem;font-size:.85rem;gap:.35rem}.tab{font-size:.74rem;padding:.75rem .05rem}.mast h1{font-size:1.2rem}.roles{gap:.5rem}.roles li{padding:.65rem .5rem .65rem 1.9rem;font-size:.95rem}.roles li::before{left:.6rem}}
@media (min-width:640px){
  .tab{font-size:.95rem}.mast h1{font-size:2rem}.mast .logo{width:150px;height:150px}
  .thumb{width:124px;height:124px}
  .facts{grid-template-columns:repeat(3,1fr)}
  .groups{grid-template-columns:repeat(3,1fr)}
  .contact{grid-template-columns:.8fr 1.2fr}
  .follow{grid-template-columns:repeat(3,1fr)}
  .scard{flex-direction:column;align-items:flex-start;text-align:left}
  .scard .go{margin-left:0}
  .ag-grid{grid-template-columns:1.15fr .85fr}
  .cols{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:639px){.groups .svc{font-size:1rem}}
@media (prefers-reduced-motion:reduce){*{transition:none!important}html{scroll-behavior:auto}}

/* WordPress extras */
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-wrap:normal!important}
.skip-link:focus{clip:auto;clip-path:none;height:auto;width:auto;left:8px;top:8px;background:#000;color:#fff;padding:.7rem 1rem;z-index:200;border-radius:8px}
.navigation.pagination{margin:1.6rem 0 .5rem}
.nav-links{display:flex;flex-wrap:wrap;gap:.5rem;justify-content:center}
.page-numbers{display:inline-block;border:1.5px solid #000;border-radius:999px;padding:.5rem 1rem;font-weight:700;text-decoration:none}
a.page-numbers:hover,.page-numbers.current{background:#000;color:#fff}
.post{padding:.4rem 0 1rem}
.post-img{margin:1.2rem 0;border:2px solid #000;border-radius:14px;overflow:hidden}
.post-img img{display:block;width:100%;height:auto}
.entry{font-size:1.1rem;line-height:1.7}
.entry>*+*{margin-top:1.1rem}
.entry h2,.entry h3,.entry h4{font-family:var(--serif);line-height:1.2;margin-top:1.8rem}
.entry h2{font-size:1.7rem}.entry h3{font-size:1.4rem}
.entry a{text-decoration:underline}
.entry ul,.entry ol{padding-left:1.4rem}
.entry img,.entry video,.entry iframe{max-width:100%;height:auto;border-radius:10px}
.entry blockquote{border-left:4px solid #000;padding-left:1rem;font-family:var(--serif)}
.post-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin:2rem 0 1rem}
.alignleft{float:left;margin:0 1rem 1rem 0}.alignright{float:right;margin:0 0 1rem 1rem}.aligncenter{display:block;margin-inline:auto}
.wp-caption-text{font-size:.9rem;color:var(--muted)}
.searchbar form{margin:0}
.more{margin-top:1rem;text-align:center}
.card h3{margin:0}

/* banner + install button */
.mast a.banner{display:block;width:100%;border-radius:14px;overflow:hidden;box-shadow:0 6px 22px rgba(0,0,0,.28);line-height:0}
.banner img{width:100%;height:auto;display:block}
.install{margin:.1rem auto 1rem;text-align:center}
.install-btn{display:inline-flex;align-items:center;justify-content:center;gap:.6rem;width:100%;max-width:420px;background:#000;color:#fff;border:2px solid #000;border-radius:999px;padding:.85rem 1.4rem;font-weight:700;font-size:1rem;cursor:pointer;transition:background .2s,color .2s}
.install-btn:hover{background:#fff;color:#000}
.install-btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;flex:none}
.install[hidden]{display:none}
.install-hint{margin-top:.6rem;font-size:.92rem;color:var(--muted);max-width:44ch;margin-inline:auto}
