/*
Theme Name: IB Tech News
Theme URI: https://example.com/ib-tech-news
Author: IB Technology
Author URI: https://example.com
Description: Premium responsive technology news, reviews, AI updates and Apps & Tools directory theme.
Version: 1.4.8
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: ib-tech-news
*/
:root{--navy:#071426;--navy2:#0c2039;--cyan:#19c5e8;--blue:#247bff;--ink:#172337;--muted:#69788d;--line:#e7edf4;--paper:#f5f8fc;--white:#fff;--radius:18px;--shadow:0 12px 35px rgba(10,31,58,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.7}a{color:inherit;text-decoration:none}a:hover{color:#087da7}img{max-width:100%;height:auto;display:block}button,input{font:inherit}.container{width:min(1180px,calc(100% - 36px));margin:auto}.ticker{background:#06101f;color:#dbe8f8;font-size:12px;overflow:hidden;white-space:nowrap}.ticker-inner{display:flex;align-items:center;gap:16px;padding:7px 0}.ticker-label{background:var(--cyan);color:#041421;padding:2px 9px;border-radius:4px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.ticker-track{overflow:hidden;flex:1}.ticker-track span{display:inline-block;padding-left:100%;animation:marquee 28s linear infinite}.ticker:hover .ticker-track span{animation-play-state:paused}@keyframes marquee{to{transform:translateX(-100%)}}
.site-header{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}.header-main{min-height:82px;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:11px;min-width:205px}.brand img{width:190px;max-height:58px;object-fit:contain}.brand-name{font-size:22px;font-weight:900;letter-spacing:-.8px;color:var(--navy)}.brand-name b{color:#079bc4}.header-search{position:relative;flex:1;max-width:520px;margin-left:auto}.header-search input{width:100%;height:44px;border:1px solid #dfe7f0;border-radius:12px;padding:0 48px 0 16px;background:#f8fafc;outline:none}.header-search button{position:absolute;right:5px;top:5px;height:34px;width:38px;border:0;border-radius:9px;background:var(--navy);color:#fff;cursor:pointer}.header-actions{display:flex;align-items:center;gap:10px}.account-link,.menu-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:9px 13px;font-weight:700;font-size:13px;background:#fff}.menu-toggle{display:none}.nav-wrap{border-top:1px solid #f0f3f7}.main-nav{display:flex;align-items:center;gap:25px;min-height:48px}.main-nav a{font-size:13px;font-weight:750;color:#3a4a60}.main-nav a:hover,.main-nav .current-menu-item>a{color:#079bc4}.main-nav .nav-cta{margin-left:auto;background:var(--navy);color:#fff;padding:7px 13px;border-radius:8px}
.hero{margin:26px auto 34px;border-radius:24px;overflow:hidden;min-height:280px;background:linear-gradient(110deg,rgba(4,17,35,.97),rgba(7,46,77,.88)),url('assets/images/hero-pattern.svg') center/cover;color:white;display:flex;align-items:center;position:relative}.hero:after{content:"";position:absolute;width:360px;height:360px;border:1px solid rgba(34,204,239,.22);border-radius:50%;right:8%;top:-60px;box-shadow:0 0 0 35px rgba(34,204,239,.04),0 0 0 75px rgba(34,204,239,.03)}.hero-content{position:relative;z-index:1;padding:42px 52px;max-width:760px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:.18em;font-weight:900;color:var(--cyan)}.hero h1{font-size:clamp(30px,4vw,48px);line-height:1.12;letter-spacing:-1.5px;margin:12px 0}.hero p{color:#d0dfef;max-width:610px;margin:0 0 23px}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;padding:11px 17px;background:var(--cyan);color:#061426;font-size:13px;font-weight:850;cursor:pointer}.btn:hover{background:#fff;color:#061426}.btn-dark{background:var(--navy);color:#fff}.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:35px 0 17px}.section-head h2{margin:0;font-size:24px;letter-spacing:-.7px;color:var(--navy)}.section-head p{margin:3px 0 0;color:var(--muted);font-size:13px}.view-all{font-size:12px;font-weight:800;color:#078bad}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px}.post-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.post-card,.tool-card,.sidebar-box,.article-box{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:0 4px 16px rgba(10,31,58,.025)}.post-thumb{aspect-ratio:16/10;background:linear-gradient(135deg,#0b1b30,#14769a);overflow:hidden;position:relative}.post-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.post-card:hover .post-thumb img,.tool-card:hover .tool-thumb img{transform:scale(1.045)}.placeholder-art{height:100%;display:grid;place-items:center;color:#c7f5ff;font-size:38px;font-weight:900;letter-spacing:-2px;background:radial-gradient(circle at 70% 30%,#1d9dc2,#0b2542 60%,#071426)}.post-body{padding:16px}.post-category{font-size:10px;text-transform:uppercase;letter-spacing:.1em;font-weight:900;color:#078bad}.post-card h3{font-size:16px;line-height:1.38;margin:7px 0 9px;letter-spacing:-.2px}.post-card p{font-size:12px;color:var(--muted);margin:0 0 12px}.meta{font-size:11px;color:#8290a2;display:flex;gap:12px;flex-wrap:wrap}.sidebar-box{padding:19px;margin-bottom:18px}.sidebar-box h3{margin:0 0 12px;font-size:16px}.sidebar-box ul{list-style:none;padding:0;margin:0}.sidebar-box li{padding:9px 0;border-bottom:1px solid #eef2f6;font-size:13px}.sidebar-box li:last-child{border:0}.newsletter{background:var(--navy);color:#fff}.newsletter p{font-size:12px;color:#bdcde0}.newsletter input{width:100%;padding:10px;border:0;border-radius:8px;margin:5px 0 10px}.tools-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.tool-thumb{aspect-ratio:16/9;background:#0c2039;overflow:hidden}.tool-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.tool-body{padding:17px}.tool-type{display:inline-block;padding:4px 8px;border-radius:6px;background:#e8faff;color:#087da7;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.tool-body h3{font-size:17px;line-height:1.35;margin:9px 0 7px}.tool-body p{font-size:13px;color:var(--muted);margin:0 0 15px}.tool-action{display:flex;align-items:center;justify-content:space-between;gap:10px}.tool-action .btn{padding:9px 13px;font-size:11px}.tool-action small{font-size:10px;color:#8995a5}.feature-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:28px 0}.feature{background:#fff;border:1px solid var(--line);padding:18px;border-radius:14px;display:flex;gap:13px;align-items:center}.feature-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#e7faff;color:#078bad;font-size:20px}.feature strong{display:block;font-size:13px}.feature span{font-size:11px;color:var(--muted)}
.site-footer{background:#061426;color:#dce8f6;margin-top:55px;padding:48px 0 18px}.footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:32px}.footer-brand{font-size:22px;font-weight:900;color:#fff}.footer-brand b{color:var(--cyan)}.site-footer p{font-size:12px;color:#9fb1c7;max-width:340px}.site-footer h4{font-size:13px;color:#fff;margin:0 0 13px}.site-footer ul{list-style:none;padding:0;margin:0}.site-footer li{margin:7px 0;font-size:12px;color:#aebed0}.footer-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:34px;padding-top:16px;display:flex;justify-content:space-between;gap:15px;font-size:11px;color:#8ea2b9}.footer-bottom a{color:#c6d8ea}
.page-title{padding:35px 0 18px}.page-title h1{font-size:34px;line-height:1.2;margin:0;color:var(--navy)}.breadcrumbs{font-size:11px;color:#8290a2;margin-bottom:10px}.single-layout{max-width:850px;margin:0 auto}.article-box{padding:clamp(20px,4vw,42px)}.article-box h1{font-size:clamp(29px,4vw,42px);line-height:1.17;letter-spacing:-1px;margin:10px 0 15px}.article-featured{margin:24px 0;border-radius:14px;overflow:hidden}.article-content{font-size:16px;color:#34445a}.article-content h2,.article-content h3{color:var(--navy);line-height:1.3;margin-top:1.7em}.article-content a{color:#078bad;text-decoration:underline}.article-content blockquote{border-left:4px solid var(--cyan);margin:22px 0;padding:10px 20px;background:#f2fbfe}.pagination{display:flex;gap:8px;margin:25px 0}.pagination a,.pagination span{padding:8px 13px;background:#fff;border:1px solid var(--line);border-radius:8px;font-size:12px}.pagination .current{background:var(--navy);color:#fff}.video-frame{aspect-ratio:16/9;background:#071426;border-radius:14px;overflow:hidden;margin:20px 0}.video-frame iframe{width:100%;height:100%;border:0}.empty-state{background:#fff;padding:35px;border-radius:16px;text-align:center;color:var(--muted)}.mobile-nav{display:none}
@media(max-width:900px){.content-grid{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}.post-grid,.tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.footer-grid{grid-template-columns:repeat(2,1fr)}.main-nav{gap:16px}.brand{min-width:auto}.header-search{max-width:360px}}
@media(max-width:640px){.container{width:min(100% - 26px,1180px)}.header-main{min-height:68px;gap:10px}.brand img{width:145px}.brand-name{font-size:19px}.header-search{order:3;flex-basis:100%;max-width:none;margin:0 0 12px}.header-main{flex-wrap:wrap;padding-top:9px}.header-actions{margin-left:auto}.account-link{padding:8px;font-size:0}.account-link:before{content:'◉';font-size:16px}.menu-toggle{display:inline-flex;padding:8px 10px}.nav-wrap{display:none}.nav-wrap.open{display:block}.main-nav{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:8px 0 14px}.main-nav a{padding:10px 3px;border-bottom:1px solid #eef2f6}.main-nav .nav-cta{margin:8px 0 0;text-align:center}.hero{min-height:300px;margin:17px auto 25px}.hero-content{padding:30px 24px}.hero:after{right:-150px}.hero h1{font-size:32px}.section-head{margin:27px 0 14px}.section-head h2{font-size:21px}.post-grid,.tools-grid{grid-template-columns:1fr 1fr;gap:11px}.post-body,.tool-body{padding:12px}.post-card h3{font-size:14px}.post-card p{font-size:11px}.tool-body h3{font-size:14px}.tool-body p{font-size:11px}.tool-action{align-items:flex-start;flex-direction:column}.tool-action .btn{width:100%}.feature-strip{grid-template-columns:1fr;gap:9px}.sidebar{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr;gap:22px}.footer-grid>div:first-child{grid-column:1/-1}.footer-bottom{flex-direction:column}.page-title h1{font-size:28px}}

/* Directory, ads and flexible image ratios */
.post-thumb,.tool-thumb{display:block;height:auto;aspect-ratio:auto;overflow:hidden;background:#0c2039}
.post-thumb img,.tool-thumb img{width:100%;height:auto;object-fit:contain;transition:transform .35s}
.post-thumb .placeholder-art,.tool-thumb .placeholder-art{min-height:150px}
.article-featured img{width:auto;max-width:100%;height:auto;margin:0 auto;object-fit:contain}
.ibtn-ad-slot{display:block;width:100%;min-height:0;margin:22px auto;text-align:center;overflow:hidden}
.ibtn-ad-slot img,.ibtn-ad-slot iframe{max-width:100%}
.directory-filters{display:flex;gap:9px;flex-wrap:wrap;margin:0 0 22px}
.directory-filters a{background:#fff;border:1px solid var(--line);border-radius:20px;padding:7px 13px;font-size:12px;font-weight:750}
.ibtn-developer{display:inline-flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin-left:8px}
.ibtn-developer>a{color:#c6d8ea;font-weight:700}
.ibtn-developer-details{font-size:10px;color:#91a7bf}
.ibtn-developer-details a{color:#b9d7ec}
.directory-section{margin:34px 0}
@media(max-width:640px){.post-thumb img,.tool-thumb img{width:100%;height:auto}.ibtn-developer{margin-left:0}.directory-filters{gap:6px}}

/* Responsive embedded video and live channel player */
.ibtn-player{position:relative;width:100%;aspect-ratio:16/9;background:#07111f;border-radius:18px;overflow:hidden;margin:24px 0}
.ibtn-player iframe,.ibtn-player video,.ibtn-player embed{position:absolute;inset:0;width:100%;height:100%;border:0}
.ibtn-developer{display:flex;flex-direction:column;align-items:flex-end;gap:6px;text-align:right}
.ibtn-developer-details{font-size:12px;display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:640px){.ibtn-developer{align-items:center;text-align:center}.ibtn-developer-details{justify-content:center}}


/* Compact centered header refinement (v1.3.1) */
.site-header .header-main{position:relative;min-height:62px;display:flex;align-items:center;gap:12px;padding-top:4px;padding-bottom:4px}
.site-header .brand{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);min-width:0;width:164px;justify-content:center;z-index:2}
.site-header .brand img,.site-header .brand .custom-logo{width:158px;max-width:100%;max-height:46px;height:auto;object-fit:contain}
.site-header .menu-toggle{display:inline-flex;position:absolute;left:calc(50% - 112px);top:50%;transform:translateY(-50%);width:34px;height:34px;padding:0;border-radius:9px;font-size:17px;z-index:3}
.site-header .header-search{flex:0 1 250px;width:250px;max-width:250px;margin-left:auto;margin-right:8px}
.site-header .header-search input{height:34px;border-radius:9px;padding:0 42px 0 12px;font-size:12px}
.site-header .header-search button{top:3px;right:3px;width:30px;height:28px;border-radius:7px}
.site-header .header-actions{flex:0 0 auto}
.site-header .account-link{padding:7px 10px;font-size:12px}
@media(max-width:640px){
 .site-header .header-main{min-height:82px;padding-top:5px;padding-bottom:6px;display:flex;flex-wrap:wrap;align-content:flex-start;gap:0}
 .site-header .brand{top:7px;left:50%;transform:translateX(-50%);width:132px;height:34px}
 .site-header .brand img,.site-header .brand .custom-logo{width:128px;max-height:34px}
 .site-header .menu-toggle{left:calc(50% - 91px);top:7px;transform:none;width:31px;height:31px;font-size:15px}
 .site-header .header-actions{position:absolute;right:0;top:7px;margin:0}
 .site-header .account-link{width:31px;height:31px;padding:0;border-radius:8px}
 .site-header .header-search{order:4;display:block;flex:0 0 100%;width:100%;max-width:none;margin:43px 0 0}
 .site-header .header-search input{height:31px;font-size:11px;padding-left:11px}
 .site-header .header-search button{height:25px;width:28px;top:3px;right:3px}
 .site-header .nav-wrap{display:none}
 .site-header .nav-wrap.open{display:block}
}

/* IB Tech News Premium editorial homepage refresh */
.ticker{background:#071a35}.ticker-inner{min-height:34px;gap:14px}.ticker-label{background:#16bde0;color:#06172a;border-radius:3px;padding:3px 12px}.ticker-social{display:flex;align-items:center;gap:11px;margin-left:auto}.ticker-social a{display:grid;place-items:center;width:19px;height:19px;border-radius:5px;background:rgba(255,255,255,.12);color:#fff;font-size:12px;font-weight:900}.ticker-social a:hover{background:#13b9dc;color:#06172a}
.site-header{position:relative;background:#fff;backdrop-filter:none;border-bottom:1px solid #e7edf4}.site-header .header-main{min-height:76px;padding:7px 0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px}.site-header .menu-toggle{display:inline-flex;position:static;transform:none;justify-self:start;width:37px;height:37px;border:0;background:#f0f5fa;color:#122b48;border-radius:8px;font-size:19px}.site-header .brand{position:static;transform:none;justify-self:center;width:auto;min-width:0;height:auto;z-index:1}.site-header .brand img,.site-header .brand .custom-logo{width:235px;max-width:100%;height:auto;max-height:56px;object-fit:contain}.site-header .header-search{display:none}.site-header .header-actions{justify-self:end;position:static;margin:0}.site-header .account-link{display:inline-flex;gap:8px;align-items:center;border:0;background:transparent;padding:8px 2px;color:#182b42;font-size:13px;font-weight:750}.account-symbol{font-size:22px;line-height:1}.site-header .nav-wrap{display:block;border-top:1px solid #edf1f5;background:#fff}.site-header .main-nav{min-height:46px;gap:0;justify-content:space-between}.site-header .main-nav a{padding:11px 12px;font-size:12px;font-weight:800;white-space:nowrap}.site-header .main-nav a:first-child{background:#2375d5;color:#fff;border-radius:6px;padding:7px 15px}.site-header .main-nav .nav-search{margin-left:10px;background:#176dc7;color:#fff;border-radius:7px;font-size:19px;padding:2px 12px}.site-header .main-nav .nav-cta{display:none}
.ibtn-home{padding-top:16px}.news-showcase{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,.95fr);gap:16px;margin:15px 0 24px}.showcase-feature{height:100%;min-height:300px;display:flex;flex-direction:column;position:relative;overflow:hidden;border-radius:12px;background:#081a31;color:#fff}.showcase-image{position:relative;flex:1;min-height:245px;background:linear-gradient(135deg,#071a35,#1467a7);overflow:hidden}.showcase-image>img{width:100%;height:100%;min-height:245px;object-fit:cover}.showcase-image .placeholder-art{height:100%;min-height:245px;display:grid;place-items:center;font-size:38px}.showcase-category{position:absolute;left:14px;top:14px;padding:5px 10px;border-radius:5px;background:#168bd0;color:#fff;font-size:10px;font-weight:900;text-transform:uppercase}.showcase-caption{position:absolute;left:0;right:0;bottom:0;padding:48px 20px 17px;background:linear-gradient(transparent,rgba(2,13,28,.96))}.showcase-caption h1{font-size:clamp(19px,2vw,27px);line-height:1.18;margin:0 0 10px;color:#fff;max-width:680px}.showcase-caption .meta{color:#d4e1ef}.showcase-side{background:#fff;border:1px solid #e6edf4;border-radius:12px;padding:15px 16px;display:flex;flex-direction:column;gap:12px}.showcase-side-heading{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eaf0f5;padding-bottom:10px}.showcase-side-heading span{font-size:14px;font-weight:900;color:#0b2747;text-transform:uppercase}.showcase-side-heading a,.view-all{font-size:11px;color:#1775c8;font-weight:850}.side-news{display:grid;grid-template-columns:104px 1fr;gap:12px;align-items:center;min-height:76px}.side-news-thumb{width:104px;height:68px;border-radius:7px;overflow:hidden;background:#0b2544}.side-news-thumb img{width:100%;height:100%;object-fit:cover}.side-news-thumb .placeholder-art{height:68px;min-height:0;font-size:18px}.side-news-copy strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.35;color:#182a40}.side-news-copy small{display:block;margin-top:6px;font-size:10px;color:#8998aa}.muted-note{font-size:12px;color:#8190a3}
.latest-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:18px;margin:22px 0 35px}.compact-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px;padding-bottom:8px;border-bottom:2px solid #e6edf4}.compact-head h2{margin:0;font-size:17px;line-height:1.3;color:#102a49}.compact-head p{margin:4px 0 0;font-size:11px;color:#8492a3}.latest-card-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.latest-card-grid .post-card{border:1px solid #e8edf3;border-radius:9px;overflow:hidden;box-shadow:none}.latest-card-grid .post-thumb{aspect-ratio:16/10;overflow:hidden}.latest-card-grid .post-thumb img{width:100%;height:100%;object-fit:cover}.latest-card-grid .post-body{padding:10px}.latest-card-grid .post-category{font-size:9px}.latest-card-grid .post-card h3{font-size:12px;line-height:1.35;margin:5px 0 7px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.latest-card-grid .post-card p{display:none}.latest-card-grid .meta{font-size:9px;gap:7px}.latest-sidebar{display:flex;flex-direction:column;gap:15px}.stay-connected{background:#fff;border:1px solid #e6edf4;border-radius:10px;overflow:hidden;padding:0 13px 10px}.stay-connected h3{margin:0 -13px 5px;padding:10px 13px;background:#176dc7;color:#fff;font-size:13px}.stay-connected>a{display:flex;align-items:center;gap:10px;padding:7px 0;border-bottom:1px solid #eef2f6;font-size:11px;font-weight:750;color:#26384e}.stay-connected>a:last-of-type{border:0}.stay-connected>a b{margin-left:auto;color:#8a9bad;font-size:18px}.social-mark{display:grid;place-items:center;width:22px;height:22px;border-radius:5px;background:#eaf3fc;color:#126ac0;font-size:13px;font-style:normal;font-weight:900}.social-mark.youtube{background:#ffe9e9;color:#e62117}.social-mark.facebook{background:#e7efff;color:#1877f2}.social-mark.instagram{background:#f9eafa;color:#c13584}.social-mark.tiktok{background:#e8f5f5;color:#111}.stay-connected p{font-size:11px;color:#8290a2}.directory-section{margin:28px 0}.directory-section .section-head{display:flex;align-items:center;justify-content:space-between}.directory-section .section-head h2{font-size:18px;margin:0}.directory-section .tools-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.directory-section .tool-card{border:1px solid #e7edf4;border-radius:10px;overflow:hidden;box-shadow:none}.directory-section .tool-thumb{aspect-ratio:16/10}.directory-section .tool-thumb img{width:100%;height:100%;object-fit:cover}.directory-section .tool-body{padding:11px}.directory-section .tool-body h3{font-size:13px}.directory-section .tool-action{flex-direction:row;align-items:center}.directory-section .tool-action .btn{width:auto}
@media(max-width:900px){.news-showcase{grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr)}.latest-layout{grid-template-columns:minmax(0,1fr) 240px}.latest-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.directory-section .tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-header .main-nav{gap:0}.site-header .main-nav a{padding-left:8px;padding-right:8px;font-size:11px}}
@media(max-width:640px){.ticker-inner{gap:8px}.ticker-social{gap:5px}.ticker-social a{width:17px;height:17px;font-size:10px}.ticker-track span{animation-duration:35s}.site-header .header-main{min-height:61px;padding:6px 0;display:grid;grid-template-columns:40px minmax(0,1fr) 60px;gap:5px;align-items:center}.site-header .menu-toggle{position:static;display:inline-flex;transform:none;width:33px;height:33px;justify-self:start}.site-header .brand{position:static;transform:none;justify-self:center;width:100%;height:auto}.site-header .brand img,.site-header .brand .custom-logo{width:clamp(130px,42vw,190px);max-height:42px}.site-header .header-actions{position:static;justify-self:end}.site-header .account-link{width:auto;height:34px;padding:0 2px;gap:3px;font-size:10px}.account-symbol{font-size:19px}.site-header .nav-wrap{display:none}.site-header .nav-wrap.open{display:block}.site-header .main-nav{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:6px 0 12px}.site-header .main-nav a{padding:10px 8px;border-bottom:1px solid #edf1f5;font-size:12px}.site-header .main-nav a:first-child{border-radius:5px}.site-header .main-nav .nav-search{margin:7px 0 0;text-align:center}.ibtn-home{padding-top:10px}.news-showcase{grid-template-columns:1fr;gap:11px;margin:10px 0 18px}.showcase-feature{min-height:245px}.showcase-image,.showcase-image>img{min-height:245px}.showcase-caption{padding:42px 14px 13px}.showcase-caption h1{font-size:19px}.showcase-side{padding:12px;gap:10px}.side-news{grid-template-columns:90px 1fr;min-height:67px}.side-news-thumb{width:90px;height:60px}.latest-layout{grid-template-columns:1fr;gap:13px;margin:18px 0 26px}.latest-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.latest-card-grid .post-body{padding:8px}.latest-card-grid .post-card h3{font-size:11px}.latest-sidebar{display:block}.directory-section{margin:23px 0}.directory-section .tools-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.directory-section .tool-body{padding:9px}.directory-section .tool-body h3{font-size:12px}.directory-section .tool-action{flex-direction:column;align-items:stretch}.directory-section .tool-action .btn{width:100%;text-align:center}.compact-head h2{font-size:16px}.compact-head .view-all{white-space:nowrap}}


/* IB Tech News Premium 1.4.1: true centered logo and compact, always-visible search */
.site-header .header-main{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;
  gap:12px;
}
.site-header .menu-toggle{justify-self:start;grid-column:1;grid-row:1}
.site-header .brand{
  grid-column:2;grid-row:1;
  justify-self:center;
  position:static;
  left:auto;top:auto;
  transform:none;
  width:auto;min-width:0;
  margin:0;
}
.site-header .header-actions{grid-column:3;grid-row:1;justify-self:end}
.site-header .brand img,
.site-header .brand .custom-logo{
  display:block;
  width:clamp(150px,20vw,225px);
  max-width:100%;height:auto;max-height:54px;
  object-fit:contain;
}
.site-header .nav-wrap .container{
  display:flex;align-items:center;gap:14px;
}
.site-header .main-nav{flex:1;min-width:0}
.site-header .nav-search-form{
  position:relative;display:flex;align-items:center;
  flex:0 0 225px;width:225px;max-width:225px;
  margin:0 0 0 auto;
}
.site-header .nav-search-form input{
  display:block;width:100%;height:32px;
  border:1px solid #dfe7f0;border-radius:8px;
  padding:0 38px 0 11px;background:#f7f9fc;
  color:#172337;font-size:11px;outline:none;
}
.site-header .nav-search-form input:focus{border-color:#168bd0;box-shadow:0 0 0 2px rgba(22,139,208,.12)}
.site-header .nav-search-form button{
  position:absolute;right:3px;top:3px;
  width:27px;height:26px;border:0;border-radius:6px;
  background:#176dc7;color:#fff;font-size:17px;line-height:1;
  cursor:pointer;
}
@media(max-width:900px){
  .site-header .nav-wrap .container{gap:8px}
  .site-header .nav-search-form{flex-basis:180px;width:180px;max-width:180px}
  .site-header .main-nav a{padding-left:6px;padding-right:6px;font-size:10px}
}
@media(max-width:640px){
  .site-header .header-main{
    min-height:61px;padding:6px 0;
    display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    align-items:center;gap:5px;
  }
  .site-header .menu-toggle{
    position:static;grid-column:1;grid-row:1;
    justify-self:start;transform:none;width:33px;height:33px;
  }
  .site-header .brand{
    position:static;grid-column:2;grid-row:1;
    justify-self:center;transform:none;width:auto;height:auto;
    max-width:min(48vw,190px);
  }
  .site-header .brand img,
  .site-header .brand .custom-logo{
    width:clamp(126px,42vw,180px);max-width:100%;
    max-height:40px;height:auto;
  }
  .site-header .header-actions{
    position:static;grid-column:3;grid-row:1;
    justify-self:end;margin:0;
  }
  .site-header .account-link{
    width:auto;height:34px;padding:0 2px;gap:3px;
    font-size:10px;white-space:nowrap;
  }
  .site-header .nav-wrap{display:block;border-top:1px solid #edf1f5}
  .site-header .nav-wrap .container{
    display:flex;flex-direction:column;align-items:stretch;gap:0;
    padding-top:7px;padding-bottom:7px;
  }
  .site-header .nav-search-form{
    order:0;display:flex;flex:0 0 auto;
    width:100%;max-width:none;margin:0;
  }
  .site-header .nav-search-form input{height:32px;font-size:11px}
  .site-header .main-nav{
    order:1;display:none;flex:0 0 auto;width:100%;
    flex-direction:column;align-items:stretch;gap:0;
    padding:7px 0 2px;
  }
  .site-header .nav-wrap.open .main-nav{display:flex}
  .site-header .main-nav a{padding:10px 8px;border-bottom:1px solid #edf1f5;font-size:12px}
  .site-header .main-nav a:first-child{border-radius:5px}
  .site-header .main-nav .nav-search{display:none}
}


/* IB Tech News 1.4.3: consistent directory cards and uncropped responsive lead image */
.directory-section .tool-card{display:flex;flex-direction:column;height:100%;min-width:0}
.directory-section .tool-thumb{display:block;flex:0 0 auto;aspect-ratio:16/10;overflow:hidden;background:#0c2039}
.directory-section .tool-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.directory-section .tool-body{display:flex;flex:1 1 auto;flex-direction:column;min-width:0;padding:12px}
.directory-section .tool-type,.directory-section .tool-body p{display:none!important}
.directory-section .tool-body .tool-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;text-overflow:ellipsis;min-height:2.7em;height:2.7em;margin:0 0 10px;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
.directory-section .tool-body .tool-title a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.directory-section .tool-action{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:100%;margin-top:auto;min-height:38px}
.directory-section .tool-action .btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:36px;white-space:nowrap;text-align:center;padding:8px 7px;font-size:10px;line-height:1.2}
/* Keep the complete featured image visible on desktop, tablet and mobile. */
.showcase-feature{height:auto;min-height:0;display:flex;flex-direction:column}
.showcase-image{flex:0 0 auto;width:100%;min-height:0;aspect-ratio:16/9;background:#071a35}
.showcase-image>img{display:block;width:100%;height:100%;min-height:0;object-fit:contain;object-position:center}
.showcase-image .placeholder-art{min-height:0;height:100%}
.showcase-caption{position:relative;left:auto;right:auto;bottom:auto;flex:0 0 auto;padding:15px 20px 16px;background:#081a31}
.showcase-caption h1{margin:0 0 8px;max-width:none}
@media(max-width:640px){
 .showcase-feature{min-height:0}
 .showcase-image{min-height:0;aspect-ratio:16/9}
 .showcase-image>img{min-height:0;object-fit:contain}
 .showcase-caption{padding:12px 13px 13px}
 .showcase-caption h1{font-size:17px;line-height:1.25}
 .directory-section .tools-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .directory-section .tool-body{padding:9px}
 .directory-section .tool-body .tool-title{font-size:11px;min-height:2.7em;height:2.7em;margin-bottom:8px}
 .directory-section .tool-action{flex-direction:row;align-items:center;min-height:35px}
 .directory-section .tool-action .btn{width:100%;min-height:34px;font-size:9px;padding:7px 4px}
}

/* v1.4.4: slim header with compact search beside menu and truly centered logo */
.site-header .header-main{
  position:relative; min-height:62px; height:62px; padding:5px 0;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.site-header .header-left-tools{display:flex; align-items:center; gap:8px; min-width:0; z-index:3;}
.site-header .menu-toggle{display:inline-flex; position:static; transform:none; flex:0 0 34px; width:34px; height:34px; padding:0;}
.site-header .header-search{display:flex; position:relative; flex:0 1 150px; width:150px; max-width:150px; margin:0;}
.site-header .header-search input{width:100%; height:32px; padding:0 32px 0 10px; border:1px solid #dfe7f0; border-radius:8px; background:#f8fafc; font-size:11px;}
.site-header .header-search button{position:absolute; right:3px; top:3px; width:26px; height:26px; padding:0; border:0; border-radius:6px; background:#122b48; color:#fff; cursor:pointer;}
.site-header .brand{position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:auto; min-width:0; height:auto; justify-content:center; z-index:2;}
.site-header .brand img,.site-header .brand .custom-logo{display:block; width:clamp(125px,18vw,190px); max-width:100%; max-height:46px; height:auto; object-fit:contain;}
.site-header .header-actions{display:flex; align-items:center; position:static; flex:0 0 auto; margin:0; z-index:3;}
.site-header .account-link{display:inline-flex; align-items:center; gap:6px; padding:7px 9px; font-size:12px;}
.site-header .nav-wrap{display:block;}
@media(max-width:640px){
 .site-header .header-main{height:56px; min-height:56px; padding:4px 0; gap:5px;}
 .site-header .header-left-tools{gap:5px;}
 .site-header .menu-toggle{flex-basis:30px; width:30px; height:30px; font-size:15px;}
 .site-header .header-search{flex:0 1 112px; width:112px; max-width:112px;}
 .site-header .header-search input{height:29px; font-size:10px; padding-left:8px; padding-right:27px;}
 .site-header .header-search button{width:23px; height:23px; top:3px; right:3px; font-size:14px;}
 .site-header .brand{position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:auto;}
 .site-header .brand img,.site-header .brand .custom-logo{width:clamp(88px,27vw,125px); max-height:34px;}
 .site-header .header-actions{position:static; margin:0;}
 .site-header .account-link{width:30px; height:30px; padding:0; justify-content:center; font-size:0;}
 .site-header .account-symbol{font-size:18px;}
 .site-header .nav-wrap{display:none;}
 .site-header .nav-wrap.open{display:block;}
}


/* v1.4.5: Mobile category menu overlays the page instead of pushing posts down. */
@media(max-width:640px){
  .site-header{position:sticky;top:0;z-index:1000;overflow:visible;}
  .site-header .nav-wrap{position:absolute;top:100%;left:0;right:0;width:100%;display:none;margin:0;background:#fff;border-top:1px solid #edf1f5;box-shadow:0 12px 24px rgba(7,20,38,.14);z-index:1001;}
  .site-header .nav-wrap.open{display:block;}
  .site-header .nav-wrap>.container{max-height:min(68vh,440px);overflow-y:auto;overscroll-behavior:contain;padding-top:5px;padding-bottom:8px;}
  .site-header .main-nav{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:0;margin:0;}
  .site-header .main-nav a{display:block;padding:10px 12px;border-bottom:1px solid #edf1f5;line-height:1.25;}
}

/* v1.4.6: consistent compact header arrangement on desktop, tablet and mobile.
   Menu left, logo centered at the top, account right, search small at lower-right. */
.site-header .header-main{
  position:relative;
  display:block;
  height:78px;
  min-height:78px;
  padding:0;
}
.site-header .header-left-tools{display:contents;}
.site-header .menu-toggle{
  position:absolute;left:0;top:9px;transform:none;
  display:inline-flex;width:34px;height:34px;padding:0;
  align-items:center;justify-content:center;z-index:4;
}
.site-header .brand{
  position:absolute;left:50%;top:5px;transform:translateX(-50%);
  display:flex;width:auto;min-width:0;height:38px;justify-content:center;
  align-items:center;z-index:3;
}
.site-header .brand img,
.site-header .brand .custom-logo{
  display:block;width:clamp(112px,16vw,170px);max-width:100%;
  max-height:36px;height:auto;object-fit:contain;
}
.site-header .header-actions{
  position:absolute;right:0;top:8px;margin:0;z-index:4;
  display:flex;align-items:center;
}
.site-header .account-link{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;font-size:12px;}
.site-header .header-search{
  position:absolute;right:0;bottom:7px;display:flex;
  width:clamp(118px,19vw,178px);max-width:178px;margin:0;z-index:4;
}
.site-header .header-search input{height:27px;padding:0 31px 0 9px;font-size:10px;border-radius:7px;}
.site-header .header-search button{top:2px;right:2px;width:23px;height:23px;border-radius:5px;font-size:13px;}
.site-header .nav-wrap{display:block;}
@media(max-width:900px){
  .site-header .header-main{height:76px;min-height:76px;}
  .site-header .brand img,.site-header .brand .custom-logo{width:clamp(108px,19vw,155px);max-height:34px;}
}
@media(max-width:640px){
  .site-header .header-main{height:76px;min-height:76px;padding:0;}
  .site-header .menu-toggle{left:0;top:7px;width:31px;height:31px;font-size:15px;}
  .site-header .brand{left:50%;top:4px;height:34px;}
  .site-header .brand img,.site-header .brand .custom-logo{width:clamp(105px,32vw,132px);max-height:31px;}
  .site-header .header-actions{right:0;top:7px;}
  .site-header .account-link{width:31px;height:31px;padding:0;justify-content:center;font-size:0;}
  .site-header .account-symbol{font-size:18px;}
  .site-header .header-search{right:0;bottom:6px;width:clamp(118px,38vw,155px);max-width:155px;}
  .site-header .header-search input{height:26px;font-size:10px;padding-left:8px;padding-right:29px;}
  .site-header .header-search button{width:22px;height:22px;top:2px;right:2px;}
  .site-header .nav-wrap{display:none;}
  .site-header .nav-wrap.open{display:block;}
}
