/*
Theme Name: AiDirect Blog
Theme URI: https://aidirect.in/
Author: AiDirect
Description: A lightweight, responsive WordPress theme styled to match the AiDirect.in website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: aidirect-blog
*/
:root{--navy:#111638;--blue:#1677f8;--purple:#7048f5;--ink:#18213b;--muted:#65718a;--pale:#eef6ff;--line:#e4eaf3;--white:#fff;--radius:18px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.7}
a{color:var(--blue);text-decoration:none}a:hover{color:var(--purple)}
img{max-width:100%;height:auto}
.site-header{background:#fff;border-bottom:1px solid #e8edf5;position:relative;z-index:5}
.header-inner{max-width:1310px;margin:auto;padding:14px 24px;min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{display:flex;flex-direction:column;line-height:1.1;color:var(--navy);font-weight:800;font-size:29px;letter-spacing:-1.5px}
.brand .ai{color:var(--blue)}.brand small{font-size:11px;letter-spacing:0;color:#68758c;font-weight:600;margin-top:5px}
.custom-logo{max-height:52px;width:auto}
.primary-nav ul{display:flex;align-items:center;gap:36px;list-style:none;margin:0;padding:0}.primary-nav .menu-item{margin:0;padding:0;list-style:none}
.primary-nav a{font-size:17px;font-weight:700;color:#28334d;white-space:nowrap;transition:color .18s ease}.primary-nav a:hover,.primary-nav .current-menu-item>a{color:var(--blue)}.primary-nav .current-menu-item>a{font-weight:800}
.nav-cta,.button,button[type=submit]{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:13px 27px;color:#fff;background:linear-gradient(110deg,var(--blue),var(--purple));font-weight:750;box-shadow:0 12px 28px #5a75f326;cursor:pointer}
.nav-cta:hover,.button:hover,button[type=submit]:hover{color:#fff;filter:brightness(1.04);transform:translateY(-1px)}
.menu-toggle{display:none;border:1px solid var(--line);background:white;border-radius:10px;padding:9px 12px;font-size:20px}
.blog-hero{background:linear-gradient(110deg,#fff 0%,#f5faff 53%,#eaf5ff 100%);border-bottom:1px solid #edf2f8}
.hero-inner{max-width:1310px;margin:auto;padding:54px 24px 58px}
.eyebrow{display:inline-block;background:#e8f2ff;color:#1765d8;padding:7px 16px;border-radius:999px;font-weight:750;font-size:14px;margin-bottom:18px}
.blog-hero h1{font-size:clamp(38px,5vw,62px);line-height:1.08;letter-spacing:-2.5px;color:var(--navy);max-width:850px;margin:0 0 15px;font-weight:850}
.blog-hero h1 span,.gradient-text{background:linear-gradient(100deg,var(--blue),var(--purple));-webkit-background-clip:text;background-clip:text;color:transparent}
.blog-hero p{font-size:18px;color:#61708a;max-width:760px;margin:0}
.content-wrap{max-width:1310px;margin:0 auto;padding:48px 24px 76px}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:25px}
.section-heading h2{font-size:30px;line-height:1.2;letter-spacing:-.8px;color:var(--navy);margin:0}
.section-heading p{color:var(--muted);margin:7px 0 0}
.posts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px}
.post-card{border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;box-shadow:0 8px 28px #14264a08;transition:transform .2s,box-shadow .2s}
.post-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px #14264a12}
.post-thumb{display:block;aspect-ratio:16/9;background:linear-gradient(135deg,#eaf4ff,#f3efff);overflow:hidden}
.post-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb-placeholder{height:100%;display:grid;place-items:center;color:var(--blue);font-weight:800;font-size:38px}
.post-card-body{padding:22px}
.post-meta{font-size:13px;color:#78849a;font-weight:600;margin-bottom:9px}
.post-card h2,.post-card h3{font-size:21px;line-height:1.35;letter-spacing:-.35px;margin:0 0 10px;color:var(--navy)}
.post-card h2 a,.post-card h3 a{color:inherit}.post-card p{color:var(--muted);margin:0 0 15px}
.read-more{font-weight:750;color:var(--blue)}
.pagination{margin-top:36px}.pagination .nav-links{display:flex;gap:8px;flex-wrap:wrap}.page-numbers{padding:8px 14px;border:1px solid var(--line);border-radius:10px}.page-numbers.current{background:var(--blue);color:white;border-color:var(--blue)}
.single-layout{max-width:900px;margin:auto}
.entry-header{margin-bottom:28px}.entry-title{font-size:clamp(34px,5vw,52px);line-height:1.15;letter-spacing:-1.8px;color:var(--navy);margin:10px 0 14px}
.entry-content{font-size:18px;line-height:1.85;color:#33415c}.entry-content h2,.entry-content h3{color:var(--navy);line-height:1.3;letter-spacing:-.5px;margin-top:1.7em}
.entry-content h2{font-size:30px}.entry-content h3{font-size:23px}.entry-content a{text-decoration:underline;text-underline-offset:3px}
.entry-content blockquote{border-left:4px solid var(--purple);margin:25px 0;padding:10px 22px;background:#f5f8ff;border-radius:0 12px 12px 0}
.entry-content img{border-radius:14px}.featured-image{margin:25px 0}.featured-image img{width:100%;border-radius:18px}
.category-pill{display:inline-block;background:#eef4ff;color:#2864c8;border-radius:99px;padding:4px 11px;font-size:12px;font-weight:750}
.site-footer{background:#111936;color:#dce5f6;padding:42px 24px}
.footer-inner{max-width:1310px;margin:auto;display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap}
.footer-brand{font-size:24px;font-weight:850;color:#fff}.footer-inner p{margin:4px 0 0;color:#aab6cc;font-size:14px}
.footer-nav ul{display:flex;gap:20px;list-style:none;padding:0;margin:0;flex-wrap:wrap}.footer-nav a{color:#dce5f6}
.screen-reader-text{position:absolute;left:-9999px}
@media(max-width:1050px){.header-inner{gap:16px}.primary-nav ul{gap:22px}.primary-nav a{font-size:15px}.brand{font-size:31px}.nav-cta{padding:14px 20px}}\n@media(max-width:900px){.primary-nav{display:none;position:absolute;top:100%;left:0;right:0;background:#fff;border-bottom:1px solid var(--line);padding:18px 24px;box-shadow:0 16px 28px #14264a12}.primary-nav.is-open{display:block}.primary-nav ul{flex-direction:column;align-items:flex-start;gap:14px}.primary-nav a{font-size:16px}.menu-toggle{display:block;margin-left:auto}.header-inner{min-height:76px}.posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.header-inner{padding:12px 18px;min-height:70px;gap:10px}.brand{font-size:25px}.hero-inner{padding:40px 18px}.blog-hero h1{letter-spacing:-1.4px}.blog-hero p{font-size:16px}.content-wrap{padding:34px 18px 54px}.nav-cta{padding:10px 13px;font-size:12px}.menu-toggle{padding:7px 9px}.posts-grid{grid-template-columns:1fr}.section-heading h2{font-size:26px}.entry-content{font-size:16px}.entry-title{letter-spacing:-1px}}

/* Rank Math breadcrumbs */
.rank-math-breadcrumb{font-size:13px;color:#78849a;margin:0 0 18px}
.rank-math-breadcrumb a{color:#53627d}
.rank-math-breadcrumb .last{color:#18213b;font-weight:700}

/* Blog homepage category sidebar */
.blog-home-layout{display:grid;grid-template-columns:245px minmax(0,1fr);gap:30px;align-items:start}
.category-sidebar{min-width:0}
.category-sidebar-inner{position:sticky;top:24px;border:1px solid var(--line);border-radius:16px;background:#fff;padding:22px 18px;box-shadow:0 8px 26px #14264a08}
.category-sidebar h2{font-size:19px;line-height:1.3;color:var(--navy);margin:0 0 15px;letter-spacing:-.3px}
.category-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:4px}
.category-list li{list-style:none;margin:0;padding:0}
.category-list a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border-radius:10px;color:#34415b;font-size:14px;font-weight:650;line-height:1.35;transition:background .15s,color .15s}
.category-list a:hover{background:#f1f6ff;color:var(--blue)}
.category-list a.is-current{background:#eaf2ff;color:#1765d8;font-weight:800}
.category-list a span{font-size:11px;color:#8792a6;background:#f1f4f8;border-radius:99px;padding:2px 7px}
.blog-home-content{min-width:0}
.blog-home-content .posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:900px){.blog-home-layout{grid-template-columns:1fr;gap:22px}.category-sidebar-inner{position:static;padding:17px}.category-list{flex-direction:row;flex-wrap:wrap;gap:7px}.category-list a{border:1px solid var(--line);padding:8px 11px}.category-list a span{display:none}}
@media(max-width:600px){.blog-home-content .posts-grid{grid-template-columns:1fr}}

/* Search template */
.search-empty{max-width:680px;padding:28px;border:1px solid var(--line);border-radius:16px;background:#fff}
.search-empty h2{color:var(--navy);margin-top:0}
.search-empty .search-form{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
.search-empty .search-field{min-width:220px;flex:1;padding:12px 14px;border:1px solid var(--line);border-radius:10px;font:inherit}
.search-empty .search-submit{padding:12px 18px;border:0;border-radius:10px;background:var(--blue);color:#fff;font-weight:700;cursor:pointer}

/* Clickable Explore the Blog label */
.explore-blog-link{cursor:pointer;transition:background .18s,color .18s}
.explore-blog-link:hover{background:#dceaff;color:#105ac2}
.blog-home-layout .blog-home-content .posts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){.blog-home-layout .blog-home-content .posts-grid{grid-template-columns:1fr}}
