/* ============================================================
   AI TOOLS HUB | Aurora Light 2026 frontend refresh
   Pure presentation layer. No PHP, queries, forms, or routing changed.
   Loaded after style.css to keep the original layout as a fallback.
   ============================================================ */
:root {
  --container:1140px;
  --ink:#182544;
  --muted:#65728d;
  --purple:#5d50e8;
  --purple2:#8c56f4;
  --line:#e5eaf7;
  --soft:#f5f8ff;
  --aurora-violet:#eeeaff;
  --aurora-blue:#e9f5ff;
  --aurora-mint:#e9fcf8;
  --surface:#ffffff;
  --shadow:0 12px 38px rgba(54,75,139,.075);
  --shadow-lift:0 18px 45px rgba(54,75,139,.13);
  --brand-gradient:linear-gradient(112deg,#5557e8 0%,#8058eb 53%,#13a9c5 100%);
}
html{scroll-padding-top:85px}
body,.home-red-theme{
  --n5-red:#6354e9;
  --n5-red-dark:#5145cc;
  --n5-ink:#182544;
  --n5-muted:#65728d;
  --n5-line:#e5eaf7;
  --n5-soft:#f6f8ff;
  --n5-black:#192647;
  background:linear-gradient(135deg,#f9faff 0%,#f5f9ff 48%,#fcfbff 100%);
  color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:15px;
  line-height:1.6;
}
::selection{background:#dad9ff;color:#211f5b}
:focus-visible{outline:3px solid #8f8af4;outline-offset:3px}
a,button{transition:background-color .22s ease,color .22s ease,box-shadow .22s ease,transform .22s ease}
button{cursor:pointer}
img{color:#6e7892}

/* Unified light top-bar and floating navigation */
.topbar,.home-red-theme .topbar{
  background:linear-gradient(95deg,#eeeaff 0%,#eaf6ff 58%,#edfffa 100%);
  color:#52627d;border-bottom:1px solid #e5eaf7;
  font-size:11px;font-weight:600;
}
.topbar-inner,.home-red-theme .topbar-inner{min-height:34px;height:auto;padding:7px 0;gap:16px}
.top-links{gap:17px}
.top-links a{opacity:.92}
.top-links a:hover,.home-red-theme .top-links a:hover{color:#5854df}
.social-mini{color:#7a65e5}
.site-header,.home-red-theme .site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.95);background:linear-gradient(100deg,rgba(255,255,255,.97),rgba(248,251,255,.96));
  border-bottom:1px solid #e8ecf7;box-shadow:0 6px 25px rgba(44,59,106,.045);
  backdrop-filter:blur(16px);
}
.header-inner,.home-red-theme .header-inner{height:80px}
.brand,.home-red-theme .brand{gap:11px}
.brand img,.home-red-theme .brand img{
  width:46px;height:46px;border-radius:15px;
  box-shadow:0 8px 16px rgba(100,83,233,.16);
}
.brand strong,.home-red-theme .brand strong{font-size:25px;font-weight:850;letter-spacing:-1.3px;color:#172342}
.brand strong span,.home-red-theme .brand strong span{color:#6253e8}
.brand small,.home-red-theme .brand small{color:#71809a;font-size:10px;letter-spacing:.02em;margin-top:6px}
.main-nav,.home-red-theme .main-nav{gap:17px;font-size:11px;letter-spacing:.015em;font-weight:800}
.main-nav a,.main-nav .nav-dropdown>button,.home-red-theme .main-nav a,.home-red-theme .nav-dropdown>button{
  padding:29px 0 27px;color:#283552;
}
.main-nav a:hover,.main-nav .nav-dropdown>button:hover,.home-red-theme .main-nav a:hover,.home-red-theme .nav-dropdown>button:hover{color:#6354e9}
.main-nav .search-link,.home-red-theme .main-nav .search-link{
  padding:0!important;width:38px;height:38px;border-radius:12px;
  background:linear-gradient(130deg,#6354e9,#3e8cde);color:#fff!important;
  font-size:25px!important;display:grid;place-items:center;box-shadow:0 5px 12px #6460dc33;
}
.main-nav .search-link:hover{transform:translateY(-2px);box-shadow:0 10px 20px #6460dc44}
.dropdown-menu,.home-red-theme .dropdown-menu{
  top:65px;background:#fff;border:1px solid #e6e9f8;border-top:3px solid #6559e8;
  border-radius:14px;box-shadow:0 22px 48px #2c356329;min-width:195px;padding:8px;
}
.dropdown-menu a,.home-red-theme .dropdown-menu a{padding:9px 12px!important;border-radius:8px;font-size:12px}
.dropdown-menu a:hover{background:#f2f1ff}
.menu-toggle{border:1px solid #dedff9;border-radius:12px;background:#f1f0ff;color:#5045c9;min-width:41px;min-height:40px}

/* News ticker / breaking panel */
.breaking,.home-red-theme .n5-breaking{padding:9px 0;background:linear-gradient(105deg,#f2f0ff,#eff8ff);border-bottom:1px solid #e8eaf5}
.breaking-inner,.home-red-theme .n5-breaking .breaking-inner{
  background:#fff;color:#33415e;min-height:42px;height:42px;border:1px solid #e9eafa;
  box-shadow:0 5px 16px #636fba0c;border-radius:13px;overflow:hidden;
}
.breaking strong,.home-red-theme .n5-breaking strong{
  height:42px;display:flex;align-items:center;border-radius:12px 0 0 12px;
  padding:0 17px;background:var(--brand-gradient);color:#fff;font-size:11px;letter-spacing:.07em;
}
.breaking a,.home-red-theme .breaking-item{color:#3b4564;font-size:12px!important;font-weight:700}
.breaking-nav,.home-red-theme .breaking-nav{
  width:28px;height:28px;margin-right:6px;border:1px solid #e6e9f7;border-radius:8px;
  background:#f4f6ff;color:#6255d8;display:grid;place-items:center;font-size:17px;
}
.breaking-nav:hover,.home-red-theme .breaking-nav:hover{background:#6255e7;color:#fff;border-color:#6255e7}

/* Intro area: a modern light hero above the live article slider */
.ai-intro{
  position:relative;isolation:isolate;overflow:hidden;
  background:linear-gradient(112deg,#f2efff 0%,#eaf5ff 54%,#e9fffa 100%);
  border-bottom:1px solid #e6eafb;
}
.ai-intro:before,.ai-intro:after{content:"";position:absolute;border-radius:50%;z-index:-1;pointer-events:none}
.ai-intro:before{width:430px;height:430px;top:-280px;left:-120px;background:#ffffff91;filter:blur(7px)}
.ai-intro:after{width:330px;height:330px;bottom:-265px;right:-85px;background:#b8a7ff2b;filter:blur(15px)}
.ai-intro-inner{
  min-height:265px;display:grid;grid-template-columns:minmax(0,1fr) 350px;
  gap:34px;align-items:center;padding-top:29px;padding-bottom:26px;
}
.ai-kicker{display:inline-flex;align-items:center;gap:9px;color:#5d52d9;text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:850}
.ai-pulse{width:9px;height:9px;border-radius:50%;background:#15baa9;box-shadow:0 0 0 5px #18c2af22}
.ai-intro h1{font-size:clamp(28px,3.3vw,44px);line-height:1.13;letter-spacing:-.055em;margin:13px 0 13px;font-weight:850;color:#1d2c51}
.ai-intro h1 span{background:linear-gradient(93deg,#6455e9,#2e8ddd,#10a6aa);-webkit-background-clip:text;background-clip:text;color:transparent}
.ai-intro p{font-size:13px;color:#5e6d87;line-height:1.65;margin:0;max-width:510px}
.ai-intro-visual{position:relative;justify-self:center;width:300px;height:210px}
.ai-orb{position:absolute;left:86px;top:29px;width:144px;height:144px;border-radius:39%;transform:rotate(-11deg);
  display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#6751ef,#735be7 48%,#24b3cc);
  box-shadow:0 23px 44px #6857cf48,inset 0 2px 12px #ffffff3e;border:5px solid #ffffff89}
.ai-orb span{font-size:64px;font-weight:900;line-height:1;letter-spacing:-.09em;transform:rotate(11deg);text-shadow:0 3px 12px #3529844d}
.ai-orbit{position:absolute;left:53px;top:-5px;width:212px;height:211px;border-radius:50%;border:1px dashed #9d99ed91;transform:rotate(18deg)}
.ai-orbit:before,.ai-orbit:after{content:"";position:absolute;width:13px;height:13px;border-radius:50%;background:#15b9bf;border:3px solid #fff;box-shadow:0 3px 10px #1aa6b333}
.ai-orbit:before{top:22px;left:29px}.ai-orbit:after{bottom:25px;right:21px;background:#9164ef}
.ai-float{position:absolute;z-index:2;font-size:10px;font-weight:850;letter-spacing:.05em;background:#fffffff5;border:1px solid #e6e7ff;border-radius:12px;padding:11px 14px;color:#5550c8;box-shadow:0 12px 27px #333a881c}
.ai-float-one{left:4px;top:28px;transform:rotate(-7deg)}
.ai-float-two{right:0;top:76px;transform:rotate(7deg);color:#078eaa}
.ai-float-three{left:24px;bottom:2px;transform:rotate(4deg);color:#7563cb}

/* Homepage: light sections, layered article cards */
.n5-home{background:transparent}
.n5-hero-wrap{padding:30px 0 34px;background:linear-gradient(180deg,#f6f9ff,#f9fbff)}
.n5-hero-grid{gap:20px}
.n5-hero-left,.n5-hero-right{
  padding:17px 15px;background:#fffffff0;border:1px solid #e9ecf7;
  border-radius:20px;box-shadow:var(--shadow);min-width:0;
}
.n5-mini-story{padding-bottom:12px;margin-bottom:12px;gap:11px}
.n5-mini-story:last-of-type{border-bottom:0}
.n5-mini-story img,.n5-list-row img,.n5-horizontal-card img,.n5-side-feature img,.n5-dark-strip-grid img{border-radius:10px}
.n5-home em{color:#6556df;font-size:10px;letter-spacing:.06em;font-weight:850}
.n5-home small{color:#8490a6;font-size:10px}
.n5-home strong{color:#22314e}
.n5-mini-story strong{line-height:1.35;font-size:12px}
.n5-home a:hover h2,.n5-home a:hover h3,.n5-home a:hover h4,.n5-home a:hover strong{color:#6053dc}
.n5-red-card{background:linear-gradient(127deg,#6453e8 0%,#428adf 100%);border-radius:14px;box-shadow:0 10px 22px #6458dc35;padding:17px;  display:none;}
.n5-red-card strong,.n5-red-card small{color:#fff!important}
.n5-red-card a{color:#fff!important}
.n5-lead-slider{height:400px;border-radius:21px;box-shadow:0 20px 46px #17224f26}
.n5-lead-slide:after{inset:18% 0 0;background:linear-gradient(180deg,transparent 15%,rgba(11,21,56,.85) 98%)}
.n5-lead-overlay{left:23px;right:23px;bottom:24px}
.n5-lead-overlay em{background:linear-gradient(100deg,#6756e8,#36a2d8);border-radius:7px;padding:5px 10px;color:#fff}
.n5-lead-overlay h1,.n5-lead-overlay h2{font-size:clamp(23px,2.3vw,30px);line-height:1.18;letter-spacing:-.035em;max-width:95%;margin:11px 0}
.n5-lead-overlay h1 a:hover,.n5-lead-overlay h2 a:hover{color:#dedaff}
.n5-meta{font-size:10px;color:#e9efff}
.n5-slider-arrow{opacity:1;width:35px;height:39px;border-radius:11px;background:#ffffffc9;color:#4d46b9;backdrop-filter:blur(6px);font-size:24px}
.n5-slider-arrow:hover{background:#6354e9;color:#fff}
.n5-slider-dots{top:16px;right:16px;gap:6px;background:#101d4380;padding:8px 10px;border-radius:99px}
.n5-slider-dots button.active{background:#c3bcff}
.n5-hero-below{gap:12px;margin-top:14px}
.n5-horizontal-card{background:#fff;border:1px solid #e8ebf8;padding:9px;border-radius:14px;box-shadow:0 5px 18px #495a9b10}
.n5-horizontal-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.n5-horizontal-card strong{line-height:1.35}
.n5-title-line,.n5-section-heading{border-bottom:1px solid #e1e5f2;margin-bottom:17px}
.n5-title-line h2,.n5-section-heading h2{font-size:17px;text-transform:none;letter-spacing:-.035em;font-weight:850;color:#22314e;padding-bottom:11px}
.n5-title-line h2:after,.n5-section-heading h2:after{width:44px;height:3px;border:0;background:linear-gradient(90deg,#6555eb,#24b6c4);border-radius:9px;bottom:-2px}
.n5-title-line a,.n5-section-heading>a{color:#6656d7;font-size:11px;font-weight:800}
.n5-side-feature img{height:143px}
.n5-side-feature strong{font-size:13px;line-height:1.35}
.n5-side-list a>b,.n5-ranked>a>b,.n5-small-rank>b{color:#7468e7}
.n5-side-list a{border-color:#edf0f7}
.n5-dark-strip{background:linear-gradient(105deg,#e8edff,#e9f8ff 62%,#e9f9f5);color:#283752;padding:20px 0;border-top:1px solid #e0e7f7;border-bottom:1px solid #e0e7f7}
.n5-dark-strip-grid{gap:22px}
.n5-dark-strip-grid>a{padding:12px 15px;background:#ffffffc7;border:1px solid #ffffffc9;border-radius:15px;box-shadow:0 6px 20px #495c9b10}
.n5-dark-strip-grid img{border:2px solid #fff;border-radius:12px}
.n5-dark-strip-grid strong{color:#263452;font-size:12px}
.n5-dark-strip-grid small{color:#7b88a2}
.n5-dark-strip-grid em{color:#6454dd}
.n5-section{padding:40px 0}
.n5-soft-section{background:linear-gradient(122deg,#f0efff 0%,#edf7ff 55%,#f2fffb 100%);border-color:#e6ebf8}
.n5-top-grid,.n5-category-layout,.n5-news-layout,.n5-bottom-layout{gap:23px}
.n5-photo-feature,.n5-large-feature,.n5-news-lead,.n5-three-cards>article,.n5-double-cards>article,.n5-six-grid>article,.n5-nine-grid>article{
  background:#fff;border:1px solid #e7ebf7;border-radius:17px;
  overflow:hidden;box-shadow:0 7px 24px #434f8610;
}
.n5-photo-feature,.n5-large-feature,.n5-news-lead{padding:12px}
.n5-photo-feature img,.n5-large-feature img,.n5-three-cards img,.n5-double-cards img,.n5-six-grid img,.n5-nine-grid img{border-radius:11px}
.n5-photo-feature h3{font-size:19px;line-height:1.27;margin:10px 0 6px}
.n5-large-feature h2{line-height:1.28;margin:10px 0 6px}
.n5-photo-feature p,.n5-large-feature p{color:#76829a}
.n5-three-cards>article,.n5-double-cards>article,.n5-six-grid>article,.n5-nine-grid>article{padding:10px}
.n5-three-cards h3,.n5-double-cards h4,.n5-six-grid h3,.n5-nine-grid h3{margin:9px 0 5px;line-height:1.4}
.n5-six-grid h3,.n5-nine-grid h3{font-size:14px}
.n5-six-grid img,.n5-nine-grid img{border-radius:10px}
.n5-photo-feature:hover,.n5-large-feature:hover,.n5-three-cards>article:hover,.n5-double-cards>article:hover,.n5-six-grid>article:hover,.n5-nine-grid>article:hover{transform:translateY(-3px);box-shadow:var(--shadow-lift)}
.n5-list-row{border-color:#e9edf6;padding:11px 0}
.n5-list-row strong{font-size:12px;line-height:1.36}
.n5-topic-box{background:linear-gradient(135deg,#f2f0ff,#effbff);border:1px solid #e1e6ff;padding:15px;border-radius:14px}
.n5-topic-box>a{border-color:#dfe6fa;font-size:11px}
.n5-topic-box>a b{color:#6555e8}
.n5-ranked{padding:16px;background:#fff;border:1px solid #e8ecf7;border-radius:17px;box-shadow:0 7px 24px #434f8610;align-self:start}
.n5-ranked strong{font-size:12px;line-height:1.34}
.n5-share-buttons a{border-radius:10px;padding:10px 13px}
.n5-newsletter-bar{padding:15px 0}
.n5-newsletter-inner{background:linear-gradient(115deg,#5f52e6,#477cdb 58%,#19aab6);border-radius:18px;box-shadow:0 14px 28px #5f6ede2d;padding:21px 26px;min-height:82px}
.n5-newsletter-inner:after{border-color:#ffffff5c;opacity:.32}
.n5-newsletter-inner strong{color:#fff;font-size:21px;letter-spacing:-.025em}
.n5-newsletter-inner input{border-radius:10px 0 0 10px}
.n5-newsletter-inner button{background:#17254a;border-radius:0 10px 10px 0;font-size:11px}
.n5-red-promo-inner{background:linear-gradient(110deg,#eeebff 0%,#e2f4ff 62%,#d9fbf4 100%);border:1px solid #e1e2ff;border-radius:19px;box-shadow:var(--shadow);min-height:142px}
.n5-red-promo-inner strong{color:#27345f;font-size:26px;line-height:1.16;letter-spacing:-.035em}
.n5-red-promo-inner span{color:#64728e;font-size:12px}
.n5-red-promo-inner>a{background:linear-gradient(100deg,#6354e8,#348edf);color:#fff;border-radius:10px;box-shadow:0 8px 18px #5e63db33;font-size:11px;padding:12px 17px}
.n5-red-promo-inner>a:hover{transform:translateY(-2px)}
.n5-promo-blocks i{background:#8772e526;border-color:#7161db3d;border-radius:8px}

/* Common pages: article listings, search, sidebar and individual posts */
.page-banner,.about-banner{
  background:linear-gradient(112deg,#ebe9ff 0%,#e9f3ff 52%,#e4faf6 100%);
  color:#223251;border-bottom:1px solid #e0e6f5;
}
.page-banner{padding:45px 0 42px}
.page-banner:after{right:-50px;top:-135px;width:400px;height:400px;border-radius:50%;background:linear-gradient(45deg,#ffffff66,#b6d5ff4d);transform:none}
.page-banner .container{position:relative;z-index:1}
.page-banner .breadcrumbs,.about-banner .breadcrumbs{color:#777eae}
.page-banner h1{font-size:clamp(30px,3.3vw,44px);line-height:1.17;letter-spacing:-.05em;color:#233154;margin-bottom:8px}
.page-banner p,.about-banner p{color:#667795;font-size:14px}
.breadcrumbs{color:#7b86a2;font-size:11px}
.breadcrumbs a:hover{color:#6354e9}
.all-posts-layout{gap:24px;align-items:start}
.filter-sidebar{gap:16px}
.filter-box,.widget,.contact-simple,.mission-card{
  background:#fff;border:1px solid #e5e9f6;border-radius:18px;box-shadow:var(--shadow);
}
.filter-box,.widget{padding:19px}
.filter-box h3,.widget h3{color:#2b3657;font-size:14px;text-transform:none;font-weight:850;margin-bottom:15px;letter-spacing:-.02em}
.filter-search input,.sidebar-search input,.subscribe-widget input,.sidebar-promo input,.newsletter-form input,.article-subscribe input{
  border:1px solid #e0e6f4;color:#30405e;background:#fff;border-radius:10px 0 0 10px;outline-color:#a5a2f2;
}
.filter-search button,.sidebar-search button{background:linear-gradient(130deg,#6555e9,#3d92db);color:#fff;border-radius:0 10px 10px 0}
.category-list a{font-size:12px;color:#3d4864;padding:9px 5px;border-radius:9px}
.category-list a:hover{background:#f5f4ff;color:#6554d9}
.category-list b{background:#edf0ff;color:#6158be}
.view-all-link{font-size:12px;font-weight:800;color:#6356e5}
.tag-cloud span{background:linear-gradient(135deg,#f0eeff,#eefaff);color:#625dab;border:1px solid #e4e4fa;border-radius:8px;font-size:10px}
.sidebar-promo,.subscribe-widget{background:linear-gradient(145deg,#f1efff,#e9f7ff);border:1px solid #e0e7ff;border-radius:18px;color:#283658;box-shadow:var(--shadow);padding:20px}
.sidebar-promo strong{font-size:18px}
.sidebar-promo p,.subscribe-widget p{font-size:12px;color:#64728c}
.sidebar-promo input,.subscribe-widget input{border-radius:9px;padding:11px}
.sidebar-promo button,.subscribe-widget button{background:var(--brand-gradient);color:#fff;border-radius:9px;padding:11px}
.posts-toolbar{background:#fff;padding:11px 14px;border:1px solid #e8ecf7;border-radius:12px;color:#69758e;font-size:12px;margin:0 0 19px}
.posts-toolbar select{background:#f8faff;color:#707b94;border-radius:8px;border:1px solid #e6e9f5}
.posts-grid-3,.posts-grid-4{gap:17px}
.post-card{background:#fff;border:1px solid #e7eaf6;border-radius:16px;overflow:hidden;box-shadow:0 9px 24px #43558a13}
.post-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-lift)}
.post-card-image{overflow:hidden}
.post-card-image img{transition:transform .45s ease}
.post-card:hover .post-card-image img{transform:scale(1.04)}
.post-card-image span{background:#fffdf0e0;color:#6c5ddd;border-radius:50%;padding:2px 6px;bottom:10px;right:10px}
.post-card-body{padding:15px}
.post-card em{color:#6156db;font-size:10px}
.post-card-body h2{font-size:15px;line-height:1.42;min-height:60px;margin:7px 0 11px;color:#253450}
.post-card-body small,.post-card-meta{color:#8690a4}
.post-card-meta{border-color:#edf0f7;padding-top:10px;font-size:10px}
.pagination{gap:8px;margin-top:32px;flex-wrap:wrap}
.pagination a,.pagination span{border:1px solid #e0e5f5;background:#fff;border-radius:11px;width:40px;height:40px;color:#5f6b83}
.pagination .active{background:var(--brand-gradient);color:#fff;border-color:transparent;box-shadow:0 8px 16px #5f61e72b}
.pagination a:not(.disabled):hover{background:#eeebff;color:#6554e8}
.empty-state{background:#fff;border-radius:16px;color:#62718b}
.article-section{padding-top:33px}
.article-layout{gap:26px;align-items:start}
.article-main{background:#fff;border:1px solid #e7ebf7;border-radius:22px;padding:29px 32px 35px;box-shadow:var(--shadow);min-width:0}
.article-main h1{font-size:clamp(27px,3.4vw,42px);letter-spacing:-.045em;line-height:1.18;color:#202f4d;margin:12px 0 16px}
.article-category{display:inline-block;background:#f0edff;color:#6151de;padding:5px 11px;border-radius:99px;font-size:11px}
.article-topmeta{color:#8791a4;gap:16px;font-size:11px}
.article-hero-image{border-radius:17px;box-shadow:0 8px 22px #15254416}
.article-content{color:#33415d;font-size:16px;line-height:1.82}
.article-content h2,.article-content h3{color:#223252;letter-spacing:-.025em}
.article-content a{color:#6356e5;text-decoration:underline;text-underline-offset:3px}
.article-content blockquote,.article-highlight{background:linear-gradient(130deg,#f2efff,#eef8ff);border:1px solid #e2e6fa;border-left:4px solid #6556e8;border-radius:12px;padding:20px}
.article-subscribe{background:linear-gradient(116deg,#f0edff,#edf8ff);border:1px solid #e1e3fa;border-radius:15px;padding:18px;gap:12px}
.article-subscribe strong{color:#253556}
.article-subscribe p{color:#6c7892;font-size:11px}
.article-subscribe input{border-radius:10px 0 0 10px}
.article-subscribe button{background:linear-gradient(100deg,#6455e9,#4096da);border-radius:0 9px 9px 0;font-size:10px}
.widget h3{font-size:15px}
.sidebar-post img{border-radius:9px}
.rank-post>b{color:#6555e8}
.about-banner-grid{min-height:325px}
.about-banner h1{color:#233354;letter-spacing:-.055em}
.about-banner h1 span{color:#6455e8}
.about-banner p{font-size:16px}
.about-simple{background:transparent}
.about-simple .narrow{background:#fff;border:1px solid #e8ecf7;border-radius:20px;box-shadow:var(--shadow);padding:35px 40px}
.about-simple h2{color:#213353}
.about-simple p{color:#566580}
.mission-card{padding:28px}
.mission-card.vision{background:linear-gradient(140deg,#eef8ff,#f9faff)}
.contact-simple{padding:42px}
.contact-email{background:var(--brand-gradient);border-radius:12px;padding:12px 20px;box-shadow:0 8px 15px #6466d931;overflow-wrap:anywhere}
.legal-copy{color:#34415d}

/* Newsletter and footer: contemporary, readable contrast */
.newsletter-strip,.home-red-theme .newsletter-strip{background:linear-gradient(115deg,#5f52e6 0%,#4a80e0 56%,#0babb3 100%);color:#fff;padding:27px 0}
.newsletter-inner strong{font-size:22px;letter-spacing:-.03em}
.newsletter-inner strong span,.home-red-theme .newsletter-inner strong span{color:#dcfcff}
.newsletter-inner p{font-size:12px;color:#ecf2ff}
.newsletter-form input{border-radius:10px 0 0 10px;min-width:0}
.newsletter-form button,.home-red-theme .newsletter-form button{background:#18264d;border-radius:0 10px 10px 0;font-size:11px}
.site-footer,.home-red-theme .site-footer{background:linear-gradient(130deg,#202b52,#172947 62%,#17394b);color:#fff;padding:49px 0 21px}
.site-footer h4{font-size:12px;text-transform:none;letter-spacing:.01em;color:#fff}
.home-red-theme .site-footer h4:after{border-color:#8da8ff}
.footer-grid>div:not(.footer-about)>a{font-size:12px;color:#c3d1e4;margin:9px 0}
.footer-grid>div:not(.footer-about)>a:hover{color:#fff}
.footer-about p{font-size:12px;line-height:1.7;color:#c1ccdf}
.footer-brand strong{color:#fff!important}
.footer-brand strong span,.home-red-theme .footer-brand strong span{color:#a9abff!important}
.footer-brand small{color:#c2cce0!important}
.footer-bottom{font-size:11px;border-color:#ffffff24;color:#aabbd1}
.back-top,.home-red-theme .back-top{background:linear-gradient(140deg,#7155ea,#3097d3);box-shadow:0 9px 22px #3947a84c;border-radius:13px}
.back-top:hover{transform:translateY(-3px)}

/* Breakpoints. Preserve current grids, prevent overflow, adapt new shapes. */
@media(max-width:1050px){
  .main-nav,.home-red-theme .main-nav{gap:11px;font-size:10px}
  .n5-hero-grid{gap:15px}
  .n5-hero-left,.n5-hero-right{padding:13px 11px}
  .ai-intro-inner{grid-template-columns:1fr 275px}
  .ai-intro-visual{transform:scale(.85);transform-origin:center}
  .article-layout{gap:20px}
}
@media(max-width:820px){
  .header-inner,.home-red-theme .header-inner{height:70px}
  .main-nav,.home-red-theme .main-nav{
    position:absolute;top:70px;left:0;right:0;gap:0;background:#fff;
    padding:13px 22px 20px;border-top:1px solid #e4e8f5;box-shadow:0 22px 40px #2737632b;
    font-size:13px;max-height:calc(100vh - 70px);overflow-y:auto;
  }
  .main-nav a,.main-nav .nav-dropdown>button,.home-red-theme .main-nav a,.home-red-theme .nav-dropdown>button{padding:11px 0}
  .main-nav .search-link{margin-top:7px}
  .dropdown-menu,.home-red-theme .dropdown-menu{position:static;box-shadow:none;border-top:1px solid #e8ecf8;border-radius:10px;background:#f8faff}
  .ai-intro-inner{min-height:220px;grid-template-columns:1fr 220px;gap:10px}
  .ai-intro-visual{transform:scale(.68)}
  .n5-hero-left{grid-column:1/-1}
  .n5-hero-right{grid-column:auto}
  .n5-newsletter-inner{flex-wrap:wrap}
  .article-main{padding:24px}
  .about-simple .narrow{padding:30px}
}
@media(max-width:560px){
  .topbar-inner,.home-red-theme .topbar-inner{padding:6px 0;min-height:31px}
  .topbar,.home-red-theme .topbar{font-size:10px}
  .header-inner,.home-red-theme .header-inner{height:67px}
  .main-nav,.home-red-theme .main-nav{top:67px}
  .brand img,.home-red-theme .brand img{width:39px;height:39px;border-radius:12px}
  .brand strong,.home-red-theme .brand strong{font-size:21px}
  .brand small,.home-red-theme .brand small{font-size:9px}
  .breaking,.home-red-theme .n5-breaking{padding:7px 0}
  .breaking-inner,.home-red-theme .n5-breaking .breaking-inner{width:min(100% - 24px,var(--container));height:41px;min-height:41px}
  .breaking strong,.home-red-theme .n5-breaking strong{height:41px;padding:0 10px;font-size:9px}
  .breaking a,.home-red-theme .breaking-item{font-size:10px!important;padding:0 6px!important}
  .breaking-nav,.home-red-theme .breaking-nav{width:23px;height:26px;font-size:14px;margin-right:3px;flex-shrink:0}
  .ai-intro-inner{min-height:auto;display:block;padding-top:29px;padding-bottom:34px}
  .ai-intro h1{font-size:clamp(29px,8vw,38px);margin:14px 0 11px}
  .ai-intro p{font-size:12px;max-width:440px}
  .ai-intro-visual{display:none}
  .n5-hero-wrap{padding:19px 0 25px}
  .n5-hero-grid{gap:16px}
  .n5-hero-left,.n5-hero-right{padding:16px}
  .n5-lead-slider{height:355px}
  .n5-lead-overlay{left:17px;right:17px;bottom:19px}
  .n5-lead-overlay h1,.n5-lead-overlay h2{font-size:24px;line-height:1.18}
  .n5-slider-arrow{width:30px;height:35px}
  .n5-horizontal-card img{width:95px}
  .n5-dark-strip-grid{gap:10px}
  .n5-dark-strip-grid>a{padding:11px 13px}
  .n5-section{padding:30px 0}
  .n5-section-heading h2{font-size:19px}
  .n5-title-line h2{font-size:17px}
  .n5-three-cards>article,.n5-double-cards>article,.n5-six-grid>article,.n5-nine-grid>article{padding:9px;border-radius:13px}
  .n5-nine-grid h3,.n5-six-grid h3{font-size:13px}
  .n5-newsletter-inner{padding:18px;gap:13px}
  .n5-newsletter-inner strong{font-size:19px}
  .n5-newsletter-inner form{width:100%}
  .n5-red-promo-inner{padding:23px 21px}
  .n5-red-promo-inner strong{font-size:23px}
  .page-banner{padding:31px 0}
  .page-banner h1{font-size:32px}
  .posts-grid-3,.posts-grid-4{gap:14px}
  .post-card-body{padding:14px}
  .post-card-body h2{font-size:16px;min-height:0}
  .article-layout{gap:20px}
  .article-main{padding:20px 17px;border-radius:16px}
  .article-main h1{font-size:29px}
  .article-content{font-size:15px;line-height:1.76}
  .article-hero-image{border-radius:12px}
  .article-subscribe{grid-template-columns:50px 1fr}
  .article-subscribe form{grid-column:1/-1;min-width:0}
  .article-subscribe input{flex:1;width:0}
  .newsletter-inner{gap:14px}
  .newsletter-form{min-width:0;width:100%}
  .newsletter-form button{padding:0 12px}
  .about-simple .narrow{padding:22px 19px}
  .contact-simple{padding:29px 19px}
  .site-footer{padding-top:35px}
}
@media(max-width:390px){
  .n5-lead-slider{height:330px}
  .n5-lead-overlay h2{font-size:22px}
  .n5-horizontal-card{grid-template-columns:82px 1fr}
  .n5-horizontal-card img{width:82px;height:63px}
  .n5-newsletter-inner strong{display:block;margin-bottom:2px}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}
}
/* Keep slider arrows away from headline/category text on small screens. */
@media(max-width:560px){.n5-slider-arrow{top:30%}}
/* ============================================================
   AI TOOLS HUB — READABLE TYPOGRAPHY FIX
   Paste at the VERY END of assets/css/modern.css
   Applies to home, blog listing, article, and information pages.
   ============================================================ */

/* 1. Base typography and text contrast */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, .home-red-theme {
  font-size: 17px;
  line-height: 1.7;
  color: #1e293b;
}
body p, body li { color: #334155; }
body p { font-size: 16px; line-height: 1.75; }
input, select, textarea, button { font-size: 15px; }
input::placeholder, textarea::placeholder { color: #64748b; opacity: 1; }

/* 2. Header, tagline, nav, ticker */
.topbar, .home-red-theme .topbar { font-size: 13px; }
.brand small, .home-red-theme .brand small { font-size: 12px; }
.main-nav, .home-red-theme .main-nav { font-size: 13px; }
.dropdown-menu a, .home-red-theme .dropdown-menu a { font-size: 14px; }
.breaking strong, .home-red-theme .n5-breaking strong { font-size: 12px; }
.breaking a, .home-red-theme .breaking-item { font-size: 14px !important; }

/* 3. Intro and section headings */
.ai-kicker { font-size: 12px; }
.ai-intro p { font-size: 17px; color: #334155; line-height: 1.75; }
.ai-float { font-size: 12px; }
.n5-title-line h2, .n5-section-heading h2 { font-size: 22px; line-height: 1.3; }
.n5-title-line a, .n5-section-heading > a { font-size: 13px; }

/* 4. Homepage article titles, summaries and metadata */
.n5-home em { font-size: 12px; line-height: 1.35; }
.n5-home small { font-size: 12px; line-height: 1.5; color: #526078; }
.n5-home strong { color: #17283e; }
.n5-home p { font-size: 16px; color: #334155; line-height: 1.7; }
.n5-mini-story strong { font-size: 15px; line-height: 1.45; }
.n5-red-card strong { font-size: 17px; line-height: 1.45; color: #fff;}
.n5-red-card small, .n5-red-card a { font-size: 12px; color: #fff; }
.n5-lead-overlay h1, .n5-lead-overlay h2 { font-size: clamp(27px, 2.7vw, 34px); line-height: 1.22; }
.n5-lead-overlay em { font-size: 12px; }
.n5-meta { font-size: 12px; }
.n5-horizontal-card strong { font-size: 15px; line-height: 1.45; }
.n5-side-feature strong { font-size: 17px; line-height: 1.45; }
.n5-side-list strong { font-size: 15px; line-height: 1.45; }
.n5-dark-strip-grid strong { font-size: 15px; line-height: 1.45; }
.n5-list-row strong { font-size: 15px; line-height: 1.45; }
.n5-photo-feature h3 { font-size: 22px; line-height: 1.35; }
.n5-photo-feature p, .n5-large-feature p, .n5-three-cards-large p { font-size: 16px; color: #334155; line-height: 1.7; }
.n5-large-feature h2 { font-size: 26px; line-height: 1.3; }
.n5-news-lead h3 { font-size: 23px; line-height: 1.3; }
.n5-three-cards h3, .n5-three-cards-large h3,
.n5-double-cards h4, .n5-six-grid h3, .n5-nine-grid h3 { font-size: 17px; line-height: 1.45; }
.n5-ranked strong, .n5-small-rank strong { font-size: 15px; line-height: 1.45; }
.n5-mini-grid .n5-list-row strong { font-size: 14px; line-height: 1.45; }
.n5-topic-box > strong { font-size: 16px; }
.n5-topic-box > a { font-size: 14px; line-height: 1.5; }
.n5-share-buttons a { font-size: 13px; }
.n5-newsletter-inner strong { font-size: 22px; }
.n5-newsletter-inner span { font-size: 14px; }
.n5-newsletter-inner button, .n5-red-promo-inner > a { font-size: 13px; }
.n5-red-promo-inner span { font-size: 15px; color: #334155; }

/* 5. Listing pages: cards, filters, sidebar */
.page-banner p, .about-banner p { font-size: 17px; color: #334155; }
.breadcrumbs, .page-banner .breadcrumbs { font-size: 13px; }
.filter-box h3, .widget h3 { font-size: 19px; }
.category-list a { font-size: 15px; line-height: 1.5; }
.category-list b { font-size: 13px; }
.tag-cloud span { font-size: 13px; }
.view-all-link { font-size: 14px; }
.sidebar-promo strong { font-size: 21px; }
.sidebar-promo p, .subscribe-widget p { font-size: 15px; color: #334155; }
.sidebar-promo button, .subscribe-widget button { font-size: 14px; }
.subscribe-widget small { font-size: 12px; }
.posts-toolbar, .posts-toolbar select { font-size: 14px; }
.post-card em { font-size: 12px; }
.post-card-body h2 { font-size: 19px; line-height: 1.42; min-height: 0; }
.post-card-body small, .post-card-meta { font-size: 12px; color: #56647a; }
.sidebar-post strong { font-size: 15px; line-height: 1.4; }
.sidebar-post em, .sidebar-post small { font-size: 12px; }
.rank-post span { font-size: 14px; line-height: 1.45; }
.rank-post small { font-size: 12px; }
.pagination a, .pagination span { font-size: 15px; }

/* 6. Single post: bigger reading text and dark paragraphs */
.article-main h1 { font-size: clamp(32px, 3.3vw, 45px); line-height: 1.18; }
.article-category { font-size: 13px; }
.article-topmeta { font-size: 13px; }
.article-content { font-size: 18px; line-height: 1.85; color: #1e293b; }
.article-content p, .article-content li {
  font-size: inherit;
  line-height: inherit;
  color: #243247;
}
.article-content h2 { font-size: 28px; line-height: 1.3; }
.article-content h3 { font-size: 23px; line-height: 1.35; }
.article-content blockquote p, .article-highlight p { color: #243247; }
.article-subscribe strong { font-size: 19px; }
.article-subscribe p { font-size: 15px; color: #334155; }
.article-subscribe button { font-size: 13px; }
.source-note { font-size: 14px; }

/* 7. About, contact, legal pages */
.about-simple p, .legal-copy, .contact-simple p, .mission-card p {
  font-size: 17px;
  line-height: 1.8;
  color: #334155;
}
.eyebrow { font-size: 13px; }

/* 8. Preserve WHITE text on dark or gradient panels */
.site-footer p, .site-footer li, .footer-about p,
.newsletter-strip p, .newsletter-strip li, .newsletter-inner p,
.n5-newsletter-inner p, .n5-red-card p,
.n5-lead-overlay p, .n5-lead-overlay li { color: #e9efff; }
.n5-lead-overlay h1, .n5-lead-overlay h2,
.n5-lead-overlay h1 a, .n5-lead-overlay h2 a,
.n5-lead-overlay strong, .n5-lead-overlay small { color: #fff; }
.site-footer h4 { font-size: 16px; }
.footer-grid > div:not(.footer-about) > a { font-size: 14px; }
.footer-about p { font-size: 15px; }
.footer-bottom { font-size: 13px; }
.newsletter-inner p { font-size: 15px; }
.newsletter-form button { font-size: 13px; }

/* 9. Smaller screens: readable but balanced */
@media (max-width: 1050px) and (min-width: 821px) {
  .main-nav, .home-red-theme .main-nav { font-size: 12px; gap: 10px; }
}
@media (max-width: 820px) {
  .main-nav, .home-red-theme .main-nav { font-size: 15px; }
  .n5-title-line h2, .n5-section-heading h2 { font-size: 21px; }
  .n5-photo-feature h3 { font-size: 21px; }
  .post-card-body h2 { font-size: 18px; }
  .article-content { font-size: 17px; line-height: 1.8; }
}
@media (max-width: 560px) {
  body, .home-red-theme { font-size: 16px; }
  body p { font-size: 15px; }
  .topbar, .home-red-theme .topbar { font-size: 11px; }
  .brand small, .home-red-theme .brand small { font-size: 11px; }
  .breaking strong, .home-red-theme .n5-breaking strong { font-size: 10px; }
  .breaking a, .home-red-theme .breaking-item { font-size: 12px !important; }
  .ai-intro p { font-size: 16px; }
  .n5-lead-overlay h1, .n5-lead-overlay h2 { font-size: 26px; }
  .n5-title-line h2, .n5-section-heading h2 { font-size: 20px; }
  .n5-mini-story strong, .n5-list-row strong { font-size: 15px; }
  .n5-six-grid h3, .n5-nine-grid h3, .n5-three-cards h3 { font-size: 17px; }
  .n5-home small { font-size: 12px; }
  .n5-photo-feature p, .n5-large-feature p { font-size: 15px; }
  .post-card-body h2 { font-size: 18px; }
  .page-banner p { font-size: 16px; }
  .article-main h1 { font-size: 31px; }
  .article-content { font-size: 17px; line-height: 1.8; }
  .article-content h2 { font-size: 25px; }
  .article-content h3 { font-size: 21px; }
  .article-subscribe p { font-size: 14px; }
}
