/* TECH PRO BLOGGER THEME */
:root{
  --bg:#07111f;
  --bg2:#0b1728;
  --card:#101c2f;
  --card2:#13233a;
  --text:#eef6ff;
  --muted:#9fb0c4;
  --border:rgba(255,255,255,.12);
  --primary:#2f6bff;
  --accent:#32d0b3;
  --radius:18px;
  --shadow:0 18px 50px rgba(0,0,0,.35);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  background:
    radial-gradient(circle at top left,rgba(47,107,255,.20),transparent 420px),
    radial-gradient(circle at top right,rgba(50,208,179,.12),transparent 360px),
    var(--bg);
  color:var(--text);
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.tp-container{max-width:1180px;margin:auto;padding:0 18px}

/* HEADER */
.tp-header{
  position:sticky;
  top:0;
  z-index:99;
  background:rgba(7,17,31,.88);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border);
}
.tp-nav{height:72px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.tp-logo{font-size:24px;font-weight:900;letter-spacing:-1px}
.tp-logo span{color:var(--primary)}
.tp-menu{display:flex;gap:6px;align-items:center}
.tp-menu a{
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  color:var(--muted);
  padding:10px 12px;
  border-radius:12px;
}
.tp-menu a:hover{color:#fff;background:rgba(255,255,255,.08)}
.tp-action{display:flex;gap:8px}
.tp-action button{
  width:40px;
  height:40px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.06);
  color:#fff;
  cursor:pointer;
}

/* ADS */
.tp-ad{
  min-height:90px;
  margin:18px 0;
  border:1px solid var(--border);
  border-radius:14px;
  background:linear-gradient(135deg,rgba(255,255,255,.10),rgba(255,255,255,.03));
  color:rgba(255,255,255,.72);
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  letter-spacing:.5px;
}
.tp-ad-sidebar{min-height:250px}

/* HERO */
.tp-hero{
  display:grid;
  grid-template-columns:1.4fr .9fr;
  gap:18px;
  margin:24px 0;
  position:relative;
}
.tp-hero-main{
  min-height:350px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:42px;
  background:
    linear-gradient(90deg,rgba(5,12,25,.95),rgba(5,12,25,.38)),
    linear-gradient(135deg,#173a8a,#07111f);
  box-shadow:var(--shadow);
  flex-direction:column;
  justify-content:center;
}
.tp-slide{display:none;animation:tpFade .5s ease}
.tp-slide.active{display:flex}
.tp-label{
  width:max-content;
  padding:7px 11px;
  border-radius:999px;
  background:rgba(47,107,255,.22);
  color:#9db8ff;
  font-size:12px;
  font-weight:900;
  margin-bottom:14px;
}
.tp-hero-main h1{
  margin:0 0 14px;
  max-width:620px;
  font-size:42px;
  line-height:1.08;
  letter-spacing:-1px;
}
.tp-hero-main p{
  max-width:540px;
  color:#dbe7f5;
  font-size:16px;
  line-height:1.7;
  margin:0 0 22px;
}
.tp-btn{
  width:max-content;
  padding:13px 18px;
  border-radius:13px;
  background:linear-gradient(135deg,var(--primary),#1742b8);
  color:#fff;
  font-weight:800;
}
.tp-hero-side{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.tp-small-card{
  min-height:168px;
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  background:
    linear-gradient(0deg,rgba(5,12,25,.92),rgba(5,12,25,.28)),
    linear-gradient(135deg,#15346d,#0b1728);
  display:flex;
  align-items:flex-end;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  cursor:pointer;
}
.tp-small-card.active{
  border-color:#2f6bff;
  box-shadow:0 0 0 2px rgba(47,107,255,.25);
}
.tp-small-card h3{margin:0;font-size:18px;line-height:1.3}
@keyframes tpFade{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:translateY(0)}
}

/* SECTION */
.tp-section{margin:30px 0}
.tp-section h2,.tp-content h2{margin:0 0 16px;font-size:24px}

/* CATEGORY */
.tp-category-grid{display:grid;grid-template-columns:repeat(8,1fr);gap:12px}
.tp-category{
  border:1px solid var(--border);
  border-radius:15px;
  background:rgba(255,255,255,.05);
  padding:18px 8px;
  text-align:center;
  font-size:24px;
  transition:.2s;
}
.tp-category:hover{transform:translateY(-3px);background:rgba(47,107,255,.14)}
.tp-category span{display:block;margin-top:8px;font-size:12px;font-weight:800;color:#dbe7f5}

/* CONTENT */
.tp-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start;margin:30px 0}
.tp-post-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}
.tp-post{
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.045);
  overflow:hidden;
  box-shadow:0 10px 32px rgba(0,0,0,.22);
  transition:.25s;
}
.tp-post img{
  width:100%;
  height:190px;
  object-fit:cover;
  background:linear-gradient(135deg,#173a8a,#07111f);
}
.tp-post div{padding:16px}
.tp-post span{color:var(--accent);font-size:12px;font-weight:900}
.tp-post h3{margin:8px 0;font-size:20px;line-height:1.3}
.tp-post p{margin:0;color:var(--muted);line-height:1.6;font-size:14px}

/* SIDEBAR */
.tp-sidebar{position:sticky;top:90px}
.tp-widget{
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.045);
  padding:16px;
  margin-bottom:18px;
}
.tp-widget h3{margin:0 0 14px;font-size:18px}
.tp-popular{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.tp-popular img{width:82px;height:58px;border-radius:10px;object-fit:cover;background:#111827}
.tp-popular p{margin:0;font-size:13px;line-height:1.4;color:#dbe7f5}

/* VIDEO */
.tp-video-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.tp-video{
  min-height:135px;
  border:1px solid var(--border);
  border-radius:16px;
  background:
    linear-gradient(0deg,rgba(5,12,25,.86),rgba(5,12,25,.25)),
    linear-gradient(135deg,#173a8a,#0b1728);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  text-align:center;
  font-weight:800;
}

/* FOOTER */
.tp-footer{
  margin-top:40px;
  padding:34px 0 18px;
  border-top:1px solid var(--border);
  background:rgba(4,10,20,.72);
}
.tp-footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:24px}
.tp-footer h2,.tp-footer h3{margin-top:0}
.tp-footer span{color:var(--primary)}
.tp-footer p,.tp-footer a{color:var(--muted);font-size:14px;line-height:1.8}
.tp-footer a{display:block}
.tp-copy{text-align:center;color:var(--muted);font-size:13px;margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}

/* BACK TO TOP */
.tp-top{
  position:fixed;
  right:25px;
  bottom:25px;
  width:50px;
  height:50px;
  border:none;
  border-radius:50%;
  background:#2f6bff;
  color:#fff;
  font-size:18px;
  cursor:pointer;
  box-shadow:0 15px 35px rgba(0,0,0,.3);
  opacity:0;
  pointer-events:none;
  transition:.3s;
  z-index:999;
}
.tp-top:hover{transform:translateY(-5px)}

/* LIGHT MODE */
.light-mode{background:#f4f7fb;color:#111}
.light-mode .tp-header{background:#ffffff!important}
.light-mode .tp-post,.light-mode .tp-widget,.light-mode .tp-footer{background:#ffffff;color:#111}
.light-mode .tp-small-card{background:#e9eef7;color:#111}

/* PROGRESS BAR */
.tp-progress{
  position:fixed;
  top:0;
  left:0;
  height:4px;
  width:0;
  background:linear-gradient(90deg,#2f6bff,#32d0b3);
  z-index:9999;
}

/* SEARCH POPUP */
.tp-search-popup{
  position:fixed;
  inset:0;
  background:rgba(3,8,18,.88);
  backdrop-filter:blur(10px);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:9998;
  padding:20px;
}
.tp-search-popup.active{display:flex}
.tp-search-box{
  width:100%;
  max-width:620px;
  background:#101c2f;
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:28px;
  position:relative;
  box-shadow:0 25px 80px rgba(0,0,0,.45);
}
.tp-search-box h2{margin:0 0 16px}
.tp-search-box input{
  width:100%;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding:16px;
  background:#07111f;
  color:#fff;
  outline:none;
}
.tp-search-close{
  position:absolute;
  right:18px;
  top:18px;
  width:38px;
  height:38px;
  border:none;
  border-radius:50%;
  background:#2f6bff;
  color:#fff;
  font-size:22px;
  cursor:pointer;
}

/* MOBILE MENU */
.tp-menu-btn{display:none}
.tp-mobile-menu{
  display:none;
  position:fixed;
  top:64px;
  left:0;
  right:0;
  background:#101c2f;
  border-bottom:1px solid rgba(255,255,255,.12);
  z-index:98;
  padding:14px 18px;
}
.tp-mobile-menu a{
  display:block;
  padding:14px;
  border-radius:12px;
  color:#eef6ff;
  font-weight:700;
}
.tp-mobile-menu a:hover{background:rgba(255,255,255,.08)}
.tp-mobile-menu.active{display:block}

/* RESPONSIVE */
@media(max-width:960px){
  .tp-menu{display:none}
  .tp-menu-btn{display:block}
  .tp-hero,.tp-layout{grid-template-columns:1fr}
  .tp-category-grid{grid-template-columns:repeat(4,1fr)}
  .tp-sidebar{position:static}
  .tp-footer-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:640px){
  .tp-container{padding:0 14px}
  .tp-nav{height:64px}
  .tp-logo{font-size:21px}
  .tp-hero-main{min-height:300px;padding:26px}
  .tp-hero-main h1{font-size:30px}
  .tp-hero-side,.tp-post-grid,.tp-video-grid{grid-template-columns:1fr}
  .tp-category-grid{grid-template-columns:repeat(2,1fr)}
  .tp-footer-grid{grid-template-columns:1fr}
}

/* ADS MANAGER */
.tp-ad-inner{
  display:flex;
  flex-direction:column;
  gap:6px;
  align-items:center;
  justify-content:center;
}

.tp-ad-inner strong{
  font-size:16px;
  color:#eef6ff;
}

.tp-ad-inner small{
  font-size:12px;
  color:#9fb0c4;
}

/* SINGLE POST PREMIUM */
.tp-breadcrumb{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  color:var(--muted);
  font-size:14px;
  margin-bottom:18px;
}

.tp-breadcrumb a{
  color:#9db8ff;
}

.tp-single-thumb{
  width:100%;
  border-radius:18px;
  margin:22px 0;
  background:#111827;
}

.tp-toc a{
  display:block;
  padding:9px 0;
  border-bottom:1px dashed rgba(255,255,255,.1);
}

.tp-toc a:hover{
  color:#9db8ff;
}

.tp-article h2{
  margin-top:28px;
  font-size:26px;
}

.tp-article pre{
  background:#050b16;
  border:1px solid var(--border);
  border-radius:16px;
  padding:18px;
  overflow:auto;
}

.tp-article code{
  color:#32d0b3;
  font-family:Consolas,monospace;
}

.tp-info-box,
.tp-warning-box{
  padding:16px;
  border-radius:14px;
  margin:18px 0;
  line-height:1.7;
}

.tp-info-box{
  background:rgba(47,107,255,.14);
  border:1px solid rgba(47,107,255,.35);
}

.tp-warning-box{
  background:rgba(245,158,11,.14);
  border:1px solid rgba(245,158,11,.35);
}

.tp-share{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:28px 0;
}

.tp-share a{
  padding:11px 15px;
  border-radius:12px;
  background:#2f6bff;
  font-weight:700;
}

.tp-author-box{
  display:flex;
  gap:16px;
  padding:20px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.04);
  margin:28px 0;
}

.tp-author-avatar{
  min-width:58px;
  height:58px;
  border-radius:50%;
  background:#2f6bff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:900;
}

.tp-author-box h3{
  margin:0 0 6px;
}

.tp-author-box p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

.tp-related h3{
  margin-bottom:14px;
}

.tp-related-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.tp-related-grid a{
  padding:14px;
  border-radius:14px;
  background:rgba(255,255,255,.05);
  border:1px solid var(--border);
}

@media(max-width:640px){
  .tp-author-box{
    flex-direction:column;
  }

  .tp-related-grid{
    grid-template-columns:1fr;
  }
}

/* SINGLE POST FINAL POLISH */
.tp-single-demo{
  max-width:920px;
  margin:50px auto;
}

.tp-single-card{
  padding:34px;
}

.tp-single-card h1{
  font-size:42px;
  line-height:1.15;
  letter-spacing:-1px;
}

.tp-single-meta{
  gap:14px;
  margin:14px 0 22px;
}

.tp-article{
  font-size:17px;
  line-height:1.9;
}

.tp-article h2{
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.08);
}

.tp-article pre{
  position:relative;
  background:#050b16;
  border:1px solid rgba(50,208,179,.25);
  border-radius:18px;
  padding:22px;
  margin:20px 0;
  overflow:auto;
}

.tp-article pre::before{
  content:"Cisco IOS";
  display:block;
  color:#9fb0c4;
  font-size:12px;
  margin-bottom:12px;
}

.tp-share a:nth-child(1){background:#1877f2;}
.tp-share a:nth-child(2){background:#111827;}
.tp-share a:nth-child(3){background:#22c55e;}
.tp-share a:nth-child(4){background:#229ed9;}

.tp-author-box{
  align-items:center;
}

.tp-author-avatar{
  width:70px;
  height:70px;
  font-size:22px;
}

.tp-related-grid{
  grid-template-columns:repeat(4,1fr);
}

.tp-related-grid a{
  min-height:110px;
  display:flex;
  align-items:flex-end;
  background:
    linear-gradient(0deg,rgba(5,12,25,.92),rgba(5,12,25,.35)),
    linear-gradient(135deg,#173a8a,#07111f);
  font-weight:800;
}

@media(max-width:900px){
  .tp-related-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:640px){
  .tp-single-demo{
    margin:28px auto;
  }

  .tp-single-card{
    padding:22px;
  }

  .tp-single-card h1{
    font-size:30px;
  }

  .tp-related-grid{
    grid-template-columns:1fr;
  }
}

.tp-copy-code{
  position:absolute;
  top:14px;
  right:14px;
  border:1px solid rgba(255,255,255,.15);
  background:#101c2f;
  color:#fff;
  padding:7px 11px;
  border-radius:10px;
  cursor:pointer;
  font-size:12px;
}
