/*
Theme Name: Now AI Hub Fixed
Author: Now AI Hub
Description: Custom WordPress theme for a ServiceNow AI & Automation blog.
Version: 1.1.0
Text Domain: nowaihub
*/

:root{
  --navy:#020b16;
  --navy2:#061827;
  --teal:#13c8ad;
  --teal2:#34f0d0;
  --blue:#1d7df2;
  --soft:#f4f7f9;
  --text:#07111f;
  --border:#e5eaf0;
}

*{box-sizing:border-box}

body{
  margin:0;
  font-family:Inter,Arial,sans-serif;
  color:var(--text);
  background:#fff;
}

a{
  text-decoration:none;
  color:inherit;
}

.container{
  width:min(1180px,calc(100% - 40px));
  margin:0 auto;
}

.site-header{
  background:linear-gradient(135deg,var(--navy),var(--navy2));
  color:#fff;
  padding:22px 0;
}

.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.logo-wrap{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:310px;
}

.logo-mark{
  width:54px;
  height:54px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--blue),var(--teal));
  font-weight:900;
  color:#001018;
  letter-spacing:-2px;
}

.logo-text{
  font-size:28px;
  line-height:1;
  font-weight:900;
}

.logo-text span{
  color:var(--teal);
}

.logo-sub{
  margin-top:5px;
  font-size:10px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color:var(--teal2);
}

.main-nav{
  flex:1;
  display:flex;
  justify-content:center;
}

.main-nav ul{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:30px;
  list-style:none;
  margin:0;
  padding:0;
}

.main-nav li{
  list-style:none;
  margin:0;
  padding:0;
}

.main-nav a{
  color:#d8e1e8;
  font-weight:700;
  font-size:15px;
}

.main-nav a:hover,
.main-nav .current-menu-item > a{
  color:#fff;
  border-bottom:2px solid var(--teal);
  padding-bottom:8px;
}

.header-actions{
  display:flex;
  align-items:center;
  gap:22px;
}

.search-toggle{
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  color:#fff;
}

.search-toggle svg{
  width:23px;
  height:23px;
  stroke:currentColor;
}

.nav-cta{
  background:linear-gradient(135deg,var(--teal),#0aa98f);
  color:#001018;
  padding:16px 26px;
  border-radius:10px;
  font-weight:900;
}

.mobile-menu{
  display:none;
}

.hero{
  color:#fff;
  background:radial-gradient(circle at 70% 35%,rgba(19,200,173,.23),transparent 32%),linear-gradient(135deg,var(--navy),var(--navy2));
  padding:72px 0 90px;
}

.hero-grid{
  display:grid;
  grid-template-columns:1.02fr .98fr;
  align-items:center;
  gap:48px;
}

.pill{
  display:inline-flex;
  padding:10px 16px;
  border-radius:999px;
  background:rgba(19,200,173,.16);
  color:var(--teal2);
  font-size:13px;
  font-weight:800;
  letter-spacing:.04em;
  text-transform:uppercase;
}

.hero h1{
  font-size:58px;
  line-height:1.08;
  margin:26px 0 18px;
  letter-spacing:-.045em;
}

.hero h1 span{
  color:var(--teal);
}

.hero p{
  max-width:650px;
  color:#d7e1ea;
  font-size:20px;
  line-height:1.65;
  margin:0 0 32px;
}

.hero-actions{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  padding:16px 24px;
  font-weight:850;
}

.btn-primary{
  background:linear-gradient(135deg,var(--teal),#0aa98f);
  color:#001018;
}

.btn-secondary{
  border:1px solid rgba(255,255,255,.45);
  color:#fff;
}

.ai-orb{
  min-height:410px;
  border-radius:34px;
  background:radial-gradient(circle at center,rgba(52,240,208,.35),transparent 32%),linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.12);
  display:grid;
  place-items:center;
  position:relative;
}

.ai-core{
  width:150px;
  height:150px;
  border-radius:28px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#073d4b,var(--teal));
  box-shadow:0 0 70px rgba(19,200,173,.55);
  font-size:70px;
  font-weight:900;
  color:#dcfffb;
}

.float-card{
  position:absolute;
  border:1px solid rgba(52,240,208,.45);
  background:rgba(0,15,25,.72);
  border-radius:16px;
  padding:16px 18px;
  font-weight:850;
  font-size:13px;
  color:#fff;
}

.one{top:58px;left:54px}
.two{top:82px;right:44px}
.three{bottom:70px;left:80px}
.four{bottom:86px;right:62px}

.benefits{
  background:#fff;
  padding:24px 0;
}

.benefit-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

.benefit{
  display:flex;
  gap:14px;
  padding:14px 8px;
  border-right:1px solid var(--border);
}

.benefit:last-child{
  border-right:0;
}

.benefit-icon{
  font-size:28px;
}

.benefit strong{
  display:block;
  margin-bottom:4px;
}

.benefit span{
  font-size:14px;
  color:#4d5c6b;
  line-height:1.45;
}

.section{
  padding:68px 0;
  background:var(--soft);
}

.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  margin-bottom:28px;
}

.section h2{
  font-size:36px;
  margin:0;
  letter-spacing:-.035em;
}

.view-all{
  color:#008b78;
  font-weight:800;
}

.post-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:22px;
}

.post-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:16px;
  overflow:hidden;
  box-shadow:0 18px 35px rgba(8,20,35,.08);
}

.post-thumb{
  min-height:160px;
  background:radial-gradient(circle at center,rgba(19,200,173,.35),transparent 36%),linear-gradient(135deg,#04111f,#063044);
  display:grid;
  place-items:center;
  color:var(--teal2);
  font-size:48px;
  font-weight:900;
}

.post-body{
  padding:20px;
}

.post-tag{
  display:block;
  margin-bottom:10px;
  color:#008b78;
  font-size:12px;
  font-weight:900;
  text-transform:uppercase;
}

.post-body h3{
  margin:0 0 12px;
  font-size:20px;
  line-height:1.2;
}

.post-body p{
  color:#52616f;
  line-height:1.55;
  font-size:15px;
  margin:0 0 16px;
}

.meta{
  font-size:13px;
  color:#6f7d89;
}

.about-band{
  background:linear-gradient(135deg,#02101d,#07324b);
  color:#fff;
  padding:72px 0;
}

.about-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:44px;
  align-items:center;
}

.about-card{
  border-radius:28px;
  padding:34px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
}

.about-card h2{
  font-size:42px;
  line-height:1.05;
  margin:0 0 18px;
}

.about-card p{
  color:#d5e3ec;
  line-height:1.7;
  font-size:18px;
}

.topic-list{
  display:grid;
  gap:16px;
}

.topic{
  padding:20px;
  border-radius:18px;
  background:#fff;
  color:var(--text);
}

.topic strong{
  display:block;
  margin-bottom:6px;
}

.topic span{
  color:#52616f;
  line-height:1.5;
}

.site-footer{
  background:#010812;
  color:#b8c7d4;
  padding:34px 0;
  text-align:center;
}

@media(max-width:1050px){
  .logo-wrap{
    min-width:auto;
  }

  .main-nav ul{
    gap:18px;
  }
}

@media(max-width:900px){
  .main-nav,
  .nav-cta,
  .search-toggle{
    display:none;
  }

  .mobile-menu{
    display:block;
    color:#fff;
    font-size:28px;
  }

  .hero{
    padding:46px 0 60px;
  }

  .hero-grid,
  .benefit-grid,
  .post-grid,
  .about-grid{
    grid-template-columns:1fr;
  }

  .hero h1{
    font-size:42px;
  }

  .hero p{
    font-size:17px;
  }

  .ai-orb{
    min-height:320px;
  }

  .benefit{
    border-right:0;
    border-bottom:1px solid var(--border);
  }

  .section-head{
    align-items:flex-start;
    flex-direction:column;
  }
}
