/* Agile Innotech blue command-center theme */
:root {
    --font-base: 'DM Sans', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    --font-mono: 'Anonymous Pro', monospace;
    --ai-ink: #e8f5ff;
    --ai-muted: #9db9d6;
    --ai-deep: #031126;
    --ai-navy: #061a3d;
    --ai-blue: #0969ff;
    --ai-cyan: #19d9ff;
    --ai-sky: #67e8f9;
    --ai-card: rgba(7, 27, 62, 0.76);
    --ai-card-solid: #081f49;
    --ai-line: rgba(103, 232, 249, 0.24);
    --ai-glow: 0 0 42px rgba(25, 217, 255, 0.32);
    --ai-shadow: 0 28px 80px rgba(0, 10, 32, 0.45);
    --black: var(--ai-ink);
    --green: var(--ai-cyan);
    --coral: var(--ai-blue);
    --yellow: var(--ai-sky);
    --cream: var(--ai-deep);
    --white: #ffffff;
    --app-bg: var(--ai-deep);
    --app-text: var(--ai-ink);
    --app-primary: var(--ai-cyan);
    --app-secondary: var(--ai-blue);
    --app-link: var(--ai-sky);
    --app-footer-bg: #020b1b;
    --app-footer-text: var(--ai-ink);
}

html,
body {
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    padding-bottom: 3.4rem;
    font-family: var(--font-base);
    color: var(--ai-ink) !important;
    background:
        radial-gradient(circle at 15% 8%, rgba(9, 105, 255, 0.38), transparent 32rem),
        radial-gradient(circle at 85% 0%, rgba(25, 217, 255, 0.2), transparent 26rem),
        linear-gradient(135deg, #020817 0%, #061a3d 46%, #020817 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        linear-gradient(rgba(103, 232, 249, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 232, 249, 0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 85%);
}

::selection {
    color: #021025;
    background: var(--ai-cyan);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--ai-ink) !important;
    letter-spacing: -0.04em;
}

p,
li,
.card-text,
.text-muted,
.lead {
    color: var(--ai-muted) !important;
}

a:not(.nav-link):not(.btn):not(.dropdown-item) {
    color: var(--ai-sky) !important;
}

img {
    max-width: 100%;
}

.text-coral {
    color: var(--ai-cyan) !important;
}

.section-spacing,
.ai-section {
    position: relative;
    padding: 6rem 0;
}

/* Navigation */
.navbar-custom {
    background: rgba(2, 11, 27, 0.78);
    border-bottom: 1px solid var(--ai-line);
    box-shadow: 0 18px 50px rgba(0, 6, 20, 0.38);
    backdrop-filter: blur(18px);
}

.navbar-custom .container-fluid {
    padding-inline: clamp(1rem, 3vw, 2.5rem);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name-primary {
    color: var(--ai-ink);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-shadow: 0 0 18px rgba(25, 217, 255, 0.42);
}

.brand-tagline {
    margin-top: 0.12rem;
    color: var(--ai-cyan);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar .nav-link,
.navbar-custom .dropdown-item {
    color: rgba(232, 245, 255, 0.84) !important;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 180ms ease, text-shadow 180ms ease, background 180ms ease;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active,
.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    color: var(--ai-cyan) !important;
    text-shadow: 0 0 16px rgba(25, 217, 255, 0.5);
}

.navbar-custom .navbar-toggler {
    color: var(--ai-ink);
    border: 1px solid var(--ai-line);
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
}

.navbar-custom .dropdown-menu {
    background: rgba(3, 17, 38, 0.96) !important;
    border: 1px solid var(--ai-line);
    border-radius: 1rem;
    box-shadow: var(--ai-shadow);
    overflow: hidden;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    background: rgba(9, 105, 255, 0.2) !important;
}

.navbar-search {
    min-width: min(18rem, 80vw);
}

.navbar-search .input-group-text,
.navbar-search .form-control {
    border: 1px solid var(--ai-line);
    background: rgba(2, 11, 27, 0.72);
    color: var(--ai-ink);
}

.navbar-search .input-group-text {
    border-right: 0;
}

.navbar-search .form-control {
    border-left: 0;
}

.navbar-search .navbar-search-btn {
    padding-inline: 0.9rem;
    white-space: nowrap;
}

.navbar-search .form-control::placeholder {
    color: rgba(232, 245, 255, 0.58);
}

.navbar-search .form-control:focus,
.navbar-search .form-control:focus-visible {
    border-color: rgba(25, 217, 255, 0.68);
    box-shadow: 0 0 0 0.2rem rgba(25, 217, 255, 0.16);
}

.blog-search-form {
    width: min(100%, 28rem);
}

.blog-search-form .input-group-text,
.blog-search-form .form-control {
    border: 1px solid var(--ai-line);
    background: rgba(8, 31, 73, 0.7);
    color: var(--ai-ink);
}

.blog-search-form .input-group-text {
    border-right: 0;
}

.blog-search-form .form-control {
    border-left: 0;
}

.blog-search-form .blog-search-submit {
    white-space: nowrap;
}

/* Buttons */
.btn,
.btn-light,
.btn-primary,
.btn-outline-primary {
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.ai-btn-primary,
.btn-primary,
.btn-light {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(103, 232, 249, 0.45) !important;
    color: #021025 !important;
    background: linear-gradient(135deg, var(--ai-cyan), #77f7ff 45%, var(--ai-blue)) !important;
    box-shadow: 0 18px 40px rgba(9, 105, 255, 0.34), inset 0 1px 0 rgba(255,255,255,0.55);
    padding: 0.82rem 1.35rem;
}

.ai-btn-primary:hover,
.btn-primary:hover,
.btn-light:hover {
    color: #020817 !important;
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(25, 217, 255, 0.38);
}

.ai-btn-ghost,
.btn-outline-primary {
    border: 1px solid var(--ai-line) !important;
    color: var(--ai-ink) !important;
    background: rgba(255, 255, 255, 0.045) !important;
    backdrop-filter: blur(12px);
    padding: 0.82rem 1.35rem;
}

.ai-btn-ghost:hover,
.btn-outline-primary:hover {
    color: var(--ai-cyan) !important;
    border-color: rgba(25, 217, 255, 0.65) !important;
    background: rgba(25, 217, 255, 0.1) !important;
    transform: translateY(-2px);
}

/* Hero */
.ai-hero,
.hero-section {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 8.5rem 0 6rem;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 28%, rgba(25, 217, 255, 0.22), transparent 25rem),
        radial-gradient(circle at 5% 70%, rgba(9, 105, 255, 0.28), transparent 24rem),
        linear-gradient(140deg, rgba(2, 8, 23, 0.6), rgba(6, 26, 61, 0.75));
}

.ai-hero::before {
    content: "";
    position: absolute;
    inset: 12% -12% auto auto;
    width: 46rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(from 120deg, transparent, rgba(25, 217, 255, 0.22), transparent, rgba(9, 105, 255, 0.32), transparent);
    filter: blur(1px);
    animation: spin-slow 18s linear infinite;
}

.ai-grid-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, transparent 0 44%, rgba(25,217,255,0.12) 44.2% 44.5%, transparent 45%),
        radial-gradient(circle at 52% 50%, transparent 0 10rem, rgba(103,232,249,0.1) 10.1rem 10.2rem, transparent 10.3rem);
    opacity: 0.9;
}

.ai-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    color: var(--ai-cyan) !important;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ai-hero-title {
    max-width: 850px;
    font-size: clamp(3rem, 7vw, 6.9rem);
    line-height: 0.92;
    text-wrap: balance;
}

.ai-hero-copy,
.ai-lead {
    max-width: 720px;
    color: #b7cce4 !important;
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    line-height: 1.75;
}

.ai-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.ai-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 680px;
    margin-top: 2.5rem;
}

.ai-metrics div,
.ai-hero-panel,
.ai-solution-card,
.industry-card,
.blog-card,
.ai-blueprint-card,
.ai-image-shell,
.h-t-c,
.hero-text-container {
    border: 1px solid var(--ai-line);
    background: linear-gradient(145deg, rgba(8, 31, 73, 0.8), rgba(3, 17, 38, 0.58));
    box-shadow: var(--ai-shadow);
    backdrop-filter: blur(18px);
}

.ai-metrics div {
    border-radius: 1.3rem;
    padding: 1.05rem;
}

.ai-metrics strong {
    display: block;
    color: var(--ai-ink);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1;
}

.ai-metrics span {
    color: var(--ai-muted);
    font-size: 0.9rem;
}

.ai-hero-panel {
    position: relative;
    isolation: isolate;
    border-radius: 2rem;
    padding: 1.25rem;
    min-height: 570px;
    overflow: hidden;
}

.ai-hero-panel::before {
    content: "";
    position: absolute;
    inset: 5rem 2rem auto;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(25,217,255,0.34), transparent 58%);
    filter: blur(22px);
    z-index: -1;
}

.ai-panel-topbar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--ai-muted);
    font-family: var(--font-mono);
}

.ai-panel-topbar span {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    background: var(--ai-cyan);
    box-shadow: 0 0 16px rgba(25,217,255,0.72);
}

.ai-panel-topbar small {
    margin-left: auto;
}

.ai-orbit {
    display: grid;
    place-items: center;
    min-height: 330px;
    margin: 1.5rem 0;
    border-radius: 1.5rem;
    background:
        radial-gradient(circle, rgba(25,217,255,0.12) 0 12%, transparent 12.5% 28%, rgba(25,217,255,0.12) 28.5% 29%, transparent 29.5% 48%, rgba(9,105,255,0.16) 48.5% 49%, transparent 49.5%),
        linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

.ai-orbit-core {
    display: grid;
    place-items: center;
    width: 9.5rem;
    height: 9.5rem;
    color: #031126;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ai-cyan), #ffffff, var(--ai-blue));
    box-shadow: 0 0 64px rgba(25,217,255,0.52);
}

.ai-orbit-core i {
    font-size: 2.5rem;
}

.ai-orbit-core span {
    font-family: var(--font-mono);
    font-weight: 800;
    letter-spacing: 0.12em;
}

.ai-stack-list {
    display: grid;
    gap: 0.85rem;
}

.ai-stack-list div {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--ai-line);
    border-radius: 1rem;
    color: var(--ai-muted);
    background: rgba(255,255,255,0.045);
}

.ai-stack-list i,
.ai-stack-list b {
    color: var(--ai-cyan);
}

/* Sections and cards */
.ai-section-head {
    max-width: 820px;
    margin: 0 auto 3rem;
    text-align: center;
}

.ai-section-head h2,
.ai-feature-band h2,
.ai-services-lab h2 {
    font-size: clamp(2.1rem, 4.6vw, 4.5rem);
    line-height: 1;
    text-wrap: balance;
}

.ai-section-head p {
    max-width: 680px;
    margin: 1rem auto 0;
    font-size: 1.08rem;
    line-height: 1.7;
}

.ai-solution-card {
    display: block;
    height: 100%;
    min-height: 285px;
    padding: 1.65rem;
    border-radius: 1.6rem;
    text-decoration: none;
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.ai-solution-card:hover,
.industry-card:hover,
.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(25,217,255,0.65);
    box-shadow: var(--ai-shadow), var(--ai-glow);
}

.ai-solution-card i,
.industry-card .icon-circle,
.services-alt-section .feature-item .icon-circle {
    display: grid;
    place-items: center;
    width: 3.8rem;
    height: 3.8rem;
    margin-bottom: 1.25rem;
    border-radius: 1.15rem;
    color: #021025;
    font-size: 1.65rem;
    background: linear-gradient(135deg, var(--ai-cyan), var(--ai-blue));
    box-shadow: 0 16px 34px rgba(9,105,255,0.3);
}

.ai-solution-card h3,
.industry-card h3 {
    font-size: 1.22rem;
}

.ai-solution-card p,
.industry-card p {
    margin: 0;
    line-height: 1.65;
}

.ai-feature-band,
.ai-services-lab,
.services-alt-section,
.bg-immersive {
    background:
        linear-gradient(135deg, rgba(9,105,255,0.16), rgba(25,217,255,0.06)),
        rgba(2, 11, 27, 0.36) !important;
}

.ai-image-shell,
.ai-blueprint-card {
    position: relative;
    border-radius: 2rem;
    padding: 1rem;
    overflow: hidden;
}

.ai-image-shell::before,
.ai-blueprint-card::before {
    content: "";
    position: absolute;
    inset: auto -12% -22% auto;
    width: 18rem;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(25,217,255,0.24);
    filter: blur(40px);
}

.ai-image-shell img,
.ai-blueprint-card img,
.services-alt-section img {
    position: relative;
    border-radius: 1.5rem;
    filter: saturate(1.16) contrast(1.04);
}

.ai-carousel-blend-frame {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    border: 1px solid var(--ai-line);
    background: rgba(3, 17, 38, 0.78);
    box-shadow: 0 20px 48px rgba(0, 8, 28, 0.42);
}

.ai-carousel-blend-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(150deg, rgba(2, 11, 27, 0.02), rgba(2, 11, 27, 0.24) 74%),
        radial-gradient(circle at 12% 18%, rgba(25, 217, 255, 0.1), transparent 44%),
        radial-gradient(circle at 84% 84%, rgba(9, 105, 255, 0.12), transparent 48%);
}

.ai-carousel-blend-frame img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 1.35rem;
    filter: saturate(1.08) contrast(1.04) brightness(0.98);
}

.ai-carousel-inline {
    max-width: 980px;
    margin-inline: auto;
}

.ai-hero-visual-stack {
    display: grid;
    gap: 1rem;
}

.ai-hero-main-image img {
    aspect-ratio: 4 / 3;
    object-position: center;
    filter: saturate(1.06) contrast(1.04) brightness(1);
}

.ai-hero-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.ai-hero-mini-grid .ai-carousel-blend-frame img {
    aspect-ratio: 4 / 3;
    object-position: center;
}

.ai-hero-stat-card {
    min-height: 100%;
    padding: 1.2rem;
    background:
        linear-gradient(150deg, rgba(7, 27, 62, 0.9), rgba(3, 17, 38, 0.84)) !important;
}

.ai-hero-stat-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3rem);
    line-height: 1;
    color: var(--ai-cyan);
    margin-bottom: 0.6rem;
}

.ai-hero-stat-card p {
    font-size: 0.98rem;
    line-height: 1.45;
    color: var(--ai-ink) !important;
}

.ai-productivity-stage {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1.15rem;
    align-items: stretch;
}

.ai-productivity-layout {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.ai-productivity-copy {
    padding: 1.2rem 0.2rem;
}

.ai-productivity-copy h2 {
    font-size: clamp(2rem, 4.3vw, 3.3rem);
    line-height: 1.05;
    margin-bottom: 0.9rem;
}

.ai-productivity-copy > p {
    max-width: 58ch;
}

.ai-productivity-image-wrap {
    display: grid;
    gap: 0.9rem;
}

.ai-productivity-image img {
    aspect-ratio: 16 / 10;
    object-position: center;
}

.ai-productivity-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
}

.ai-productivity-metrics div {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.8rem 0.85rem;
    border-radius: 0.95rem;
    border: 1px solid var(--ai-line);
    background: rgba(255, 255, 255, 0.05);
}

.ai-productivity-metrics strong {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    line-height: 1;
    color: var(--ai-cyan);
}

.ai-productivity-metrics span {
    font-size: 0.84rem;
    line-height: 1.35;
    color: var(--ai-muted);
}

.ai-partners-section {
    background:
        radial-gradient(circle at 6% 8%, rgba(125, 211, 252, 0.36), transparent 24rem),
        radial-gradient(circle at 94% 90%, rgba(147, 197, 253, 0.34), transparent 26rem),
        linear-gradient(140deg, #f4faff 0%, #eef6ff 48%, #e8f2ff 100%) !important;
    border-top: 1px solid rgba(59, 130, 246, 0.18);
    border-bottom: 1px solid rgba(59, 130, 246, 0.14);
}

.ai-partners-spotlight {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 1.2rem;
    align-items: stretch;
}

.ai-partners-content {
    padding: 0.5rem 0.1rem;
}

.ai-partners-content h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.06;
}

.ai-partners-hero img {
    aspect-ratio: 16 / 10;
    object-position: center;
    filter: saturate(1.04) contrast(1.02) brightness(1);
}

.ai-partners-hero.ai-carousel-blend-frame {
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.ai-partners-hero.ai-carousel-blend-frame::after {
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(191, 219, 254, 0.16) 74%),
        radial-gradient(circle at 10% 18%, rgba(125, 211, 252, 0.14), transparent 44%);
}

.ai-partners-section h2 {
    color: #0f3266 !important;
}

.ai-partners-section .ai-kicker {
    color: #2563eb;
}

.ai-partners-copy {
    color: #34537b !important;
}

.ai-partners-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.ai-partners-tags span {
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.24);
    background: rgba(255, 255, 255, 0.78);
    color: #1d4f86;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.ai-partners-head {
    max-width: 760px;
}

.ai-brand-wall {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.8rem;
}

.ai-brand-tile {
    min-height: 92px;
}

.ai-brand-tile-inner {
    display: grid;
    place-items: center;
    height: 100%;
    border: 1px solid rgba(59, 130, 246, 0.22);
    border-radius: 1rem;
    padding: 0.85rem;
    background:
        linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.94));
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.ai-brand-tile:hover .ai-brand-tile-inner {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.2);
}

.ai-brand-logo {
    max-height: 36px;
    max-width: 100%;
    width: auto;
    height: auto;
    opacity: 1;
    filter: saturate(1.02) contrast(1.04);
    transition: transform 220ms ease, filter 220ms ease;
}

.ai-brand-tile:hover .ai-brand-logo {
    transform: scale(1.04);
    filter: saturate(1.1) contrast(1.05);
}

.ai-productivity-points {
    display: grid;
    gap: 0.8rem;
}

.ai-productivity-points div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--ai-line);
    border-radius: 1rem;
    color: var(--ai-ink);
    background: rgba(255, 255, 255, 0.05);
}

.ai-productivity-points i {
    color: var(--ai-cyan);
}

.ai-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.ai-check-grid div,
.ai-service-list a {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--ai-line);
    border-radius: 1rem;
    color: var(--ai-ink);
    background: rgba(255,255,255,0.045);
}

.ai-check-grid i,
.ai-service-list i {
    color: var(--ai-cyan);
}

.ai-service-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1.75rem;
}

.ai-service-list a {
    justify-content: flex-start;
    color: var(--ai-ink) !important;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ai-service-list a:hover {
    transform: translateX(8px);
    border-color: rgba(25,217,255,0.62);
    background: rgba(25,217,255,0.09);
}

/* Blog */
.blog-section,
.ai-blog-section {
    background: radial-gradient(circle at 50% 0%, rgba(25,217,255,0.12), transparent 32rem);
}

.blog-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    border: 1px solid var(--ai-line);
    color: var(--ai-ink);
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.blog-card .card-img-top {
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.15) contrast(1.04);
}

.blog-card .date-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    border: 1px solid rgba(103,232,249,0.38);
    border-radius: 999px;
    padding: 0.35rem 0.72rem;
    color: #021025;
    background: linear-gradient(135deg, var(--ai-cyan), #ffffff);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.blog-card .card-body {
    display: flex;
    flex-direction: column;
    padding: 1.4rem;
}

.blog-card .card-title {
    color: var(--ai-ink) !important;
    font-size: 1.22rem;
}

.blog-card .card-text {
    flex-grow: 1;
    line-height: 1.65;
}

/* Industries */
.industries-section,
.ai-industries-section {
    background: linear-gradient(180deg, rgba(2,11,27,0.12), rgba(9,105,255,0.12)) !important;
}

.industry-card {
    height: 100%;
    padding: 1.5rem;
    border-radius: 1.45rem;
    text-align: left;
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.industry-card .icon-circle {
    margin: 0 0 1.2rem;
}

/* Legacy home compatibility */
.hero-text-container,
.h-t-c {
    border-radius: 1.5rem;
    padding: 2rem;
}

.services-alt-section .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.3rem;
}

.services-alt-section .feature-item .icon-circle {
    flex: 0 0 auto;
    margin: 0;
}

.services-alt-section .feature-item h5,
.services-alt-section .feature-item p,
.services-alt-section h2,
.services-alt-section p.lead,
.industries-section .industry-card h5,
.industries-section .industry-card p {
    color: var(--ai-ink) !important;
}

.bg-coral,
.admin-bottom-nav {
    background: rgba(2, 11, 27, 0.92) !important;
}

/* Footer */
.footer-custom {
    position: relative;
    border-top: 1px solid var(--ai-line);
    color: var(--ai-ink);
    background:
        radial-gradient(circle at 50% 0%, rgba(25,217,255,0.16), transparent 26rem),
        #020b1b;
}

.footer-custom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ai-cyan), transparent);
}

.footer-copy,
.footer-address,
.footer-contact {
    color: var(--ai-muted) !important;
    font-size: 0.95rem;
    line-height: 1.5;
}

.footer-custom .contact-btn {
    display: inline-block;
    padding: 0.28rem 0.8rem;
    border: 1px solid var(--ai-line);
    border-radius: 999px;
    color: var(--ai-ink) !important;
    background: rgba(255,255,255,0.045);
    font-weight: 700;
    text-decoration: none;
    transition: background-color 150ms, color 150ms, transform 150ms;
}

.footer-custom .contact-btn:hover {
    color: #021025 !important;
    background: var(--ai-cyan);
    transform: translateY(-2px);
}

.social-links a,
.footer-custom .social-links a {
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    margin: 0 0.25rem;
    border: 1px solid var(--ai-line);
    border-radius: 50%;
    color: var(--ai-cyan) !important;
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 150ms, transform 150ms, background 150ms;
}

.footer-custom .social-links a:hover,
.social-links a:hover {
    color: #021025 !important;
    background: var(--ai-cyan);
    transform: translateY(-3px) scale(1.04);
}

/* Animation */
.reveal-up {
    animation: reveal-up 780ms ease both;
}

.reveal-delay-1 { animation-delay: 90ms; }
.reveal-delay-2 { animation-delay: 180ms; }
.reveal-delay-3 { animation-delay: 270ms; }
.reveal-delay-4 { animation-delay: 360ms; }

.reveal-float {
    animation: reveal-up 900ms ease both, float-panel 5.5s ease-in-out 1.1s infinite;
}

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float-panel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid var(--ai-line);
        border-radius: 1rem;
        background: rgba(2, 11, 27, 0.96);
    }
}

@media (max-width: 991.98px) {
    .ai-hero {
        min-height: auto;
        padding-top: 7rem;
    }

    .ai-hero-main-image img {
        aspect-ratio: 16 / 10;
    }

    .ai-productivity-stage {
        grid-template-columns: 1fr;
    }

    .ai-productivity-layout {
        grid-template-columns: 1fr;
    }

    .ai-productivity-copy {
        padding: 0;
    }

    .ai-productivity-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ai-partners-spotlight {
        grid-template-columns: 1fr;
    }

    .ai-brand-wall {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .ai-section {
        padding: 4.5rem 0;
    }

    .ai-hero-title {
        font-size: clamp(2.55rem, 15vw, 4rem);
    }

    .ai-metrics,
    .ai-check-grid {
        grid-template-columns: 1fr;
    }

    .ai-hero-actions .btn {
        width: 100%;
    }

    .ai-hero-mini-grid {
        grid-template-columns: 1fr;
    }

    .ai-hero-mini-grid .ai-carousel-blend-frame img {
        aspect-ratio: 16 / 10;
    }

    .ai-productivity-image img {
        aspect-ratio: 16 / 11;
    }

    .ai-productivity-metrics {
        grid-template-columns: 1fr;
    }

    .ai-brand-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .ai-brand-tile {
        min-height: 80px;
    }
}

/* Second pass: centered hero imagery across public pages */
.ai-hero-copybox {
    position: relative;
    margin-inline: auto;
    padding: clamp(2rem, 5vw, 4.4rem) clamp(1.35rem, 6vw, 5rem);
    border: 1px solid rgba(103, 232, 249, 0.3);
    border-radius: clamp(1.5rem, 4vw, 2.6rem);
    background:
        linear-gradient(145deg, rgba(8, 31, 73, 0.78), rgba(2, 11, 27, 0.64)),
        radial-gradient(circle at 50% 0%, rgba(25, 217, 255, 0.16), transparent 25rem);
    box-shadow: var(--ai-shadow), 0 0 70px rgba(9, 105, 255, 0.25);
    backdrop-filter: blur(22px);
}

.ai-hero-copybox::before {
    content: "";
    position: absolute;
    inset: 1rem;
    pointer-events: none;
    border: 1px solid rgba(103, 232, 249, 0.13);
    border-radius: inherit;
}

.ai-hero .ai-hero-title {
    max-width: 980px;
}

.ai-hero .ai-hero-copy {
    max-width: 780px;
}

.hero-section:not(.ai-hero) {
    isolation: isolate;
    justify-content: center;
    min-height: clamp(560px, 76vh, 860px) !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding: 8rem clamp(1rem, 4vw, 2rem) 5rem;
    background-color: #020817 !important;
    background-size: min(760px, 78vw) auto !important;
    background-position: center calc(50% + 2rem) !important;
    background-repeat: no-repeat !important;
}

.hero-section:not(.ai-hero)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 50% 48%, rgba(25, 217, 255, 0.23), transparent 22rem),
        radial-gradient(circle at 18% 20%, rgba(9, 105, 255, 0.34), transparent 24rem),
        linear-gradient(140deg, rgba(2, 8, 23, 0.82), rgba(6, 26, 61, 0.72));
}

.hero-section:not(.ai-hero)::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(rgba(103, 232, 249, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 232, 249, 0.055) 1px, transparent 1px),
        radial-gradient(circle at 50% 56%, transparent 0 11rem, rgba(25, 217, 255, 0.13) 11.1rem 11.2rem, transparent 11.3rem 19rem, rgba(9, 105, 255, 0.14) 19.1rem 19.2rem, transparent 19.3rem);
    background-size: 44px 44px, 44px 44px, auto;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1), rgba(0,0,0,0.84), transparent 96%);
}

.hero-section:not(.ai-hero) .hero-text-container {
    width: min(940px, calc(100vw - 2rem));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.35rem, 7vw, 5.5rem);
    border-radius: clamp(1.35rem, 3vw, 2.4rem);
    text-align: center;
    background:
        linear-gradient(145deg, rgba(3, 17, 38, 0.82), rgba(8, 31, 73, 0.68)),
        radial-gradient(circle at 50% 0%, rgba(25, 217, 255, 0.18), transparent 22rem);
    box-shadow: var(--ai-shadow), 0 0 80px rgba(25, 217, 255, 0.18);
}

.hero-section:not(.ai-hero) .hero-text-container h1 {
    max-width: 760px;
    margin-inline: auto;
    font-size: clamp(2.6rem, 6vw, 5.6rem);
    line-height: 0.95;
}

.hero-section:not(.ai-hero) .hero-text-container .lead {
    max-width: 760px !important;
    margin-inline: auto !important;
    color: #b8d0ea !important;
}

/* Old page sections now inherit the glass-card visual instead of flat Bootstrap blocks. */
.bg-light {
    background:
        radial-gradient(circle at 50% 0%, rgba(25, 217, 255, 0.1), transparent 28rem),
        rgba(2, 11, 27, 0.28) !important;
}

.card,
.alert,
form.needs-validation,
.timeline-content,
.profile-avatar-container,
.section-spacing .col-md-3.text-center,
.section-spacing .col-md-4.text-center,
.section-spacing .col-sm-6.text-center,
.section-spacing .d-flex:not(.ai-hero-actions):not(.social-links) {
    border: 1px solid var(--ai-line) !important;
    border-radius: 1.35rem !important;
    background: linear-gradient(145deg, rgba(8, 31, 73, 0.74), rgba(3, 17, 38, 0.56)) !important;
    box-shadow: 0 18px 55px rgba(0, 10, 32, 0.28);
}

.section-spacing .col-md-3.text-center,
.section-spacing .col-md-4.text-center,
.section-spacing .col-sm-6.text-center,
.section-spacing .d-flex:not(.ai-hero-actions):not(.social-links) {
    height: 100%;
    padding: 1.3rem;
}

.form-label {
    color: var(--ai-ink);
    font-weight: 800;
}

.form-control,
.form-select {
    border: 1px solid var(--ai-line) !important;
    border-radius: 1rem !important;
    color: var(--ai-ink) !important;
    background: rgba(2, 11, 27, 0.72) !important;
}

.form-control::placeholder {
    color: rgba(157, 185, 214, 0.7) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(25, 217, 255, 0.72) !important;
    box-shadow: 0 0 0 0.25rem rgba(25, 217, 255, 0.13) !important;
}

/* Footer is intentionally different from the blog/hero blue: deep teal command dock. */
.footer-custom {
    background:
        radial-gradient(circle at 15% 0%, rgba(45, 212, 191, 0.2), transparent 24rem),
        radial-gradient(circle at 82% 20%, rgba(14, 165, 233, 0.14), transparent 22rem),
        linear-gradient(135deg, #001f2e 0%, #032b3f 48%, #01131f 100%) !important;
}

.footer-custom .contact-btn,
.footer-custom .social-links a,
.social-links a {
    border-color: rgba(45, 212, 191, 0.35);
}

.footer-custom .contact-btn:hover,
.footer-custom .social-links a:hover,
.social-links a:hover {
    background: #2dd4bf;
    color: #001f2e !important;
}

.footer-custom::before {
    background: linear-gradient(90deg, transparent, #2dd4bf, #38bdf8, transparent);
}

@media (max-width: 767.98px) {
    .ai-hero-copybox {
        padding-inline: 1.1rem;
    }

    .hero-section:not(.ai-hero) {
        min-height: 620px !important;
        padding-top: 7rem;
        background-size: min(520px, 96vw) auto !important;
        background-position: center 62% !important;
    }
}

/* GeM and Tally focused page refinements */
.gem-hero .hero-text-container,
.tally-hero .hero-text-container {
    width: min(1040px, calc(100vw - 2rem));
}

.gem-stat-card,
.gem-product-card,
.tally-dashboard-card {
    height: 100%;
    border: 1px solid var(--ai-line);
    border-radius: 1.6rem;
    background:
        linear-gradient(145deg, rgba(8, 31, 73, 0.8), rgba(3, 17, 38, 0.58)),
        radial-gradient(circle at 20% 0%, rgba(25, 217, 255, 0.12), transparent 18rem);
    box-shadow: var(--ai-shadow);
    backdrop-filter: blur(18px);
}

.gem-stat-card {
    display: grid;
    place-items: center;
    min-height: 170px;
    padding: 1.5rem;
}

.gem-stat-card strong {
    color: var(--ai-cyan);
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1;
    text-shadow: 0 0 24px rgba(25, 217, 255, 0.34);
}

.gem-stat-card span {
    max-width: 260px;
    color: var(--ai-muted);
    font-weight: 800;
}

.gem-product-card {
    padding: 1.55rem;
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.gem-product-card:hover,
.tally-dashboard-card:hover {
    transform: translateY(-6px);
    border-color: rgba(25, 217, 255, 0.65);
    box-shadow: var(--ai-shadow), var(--ai-glow);
}

.gem-product-card .icon-circle {
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    margin-bottom: 1.15rem;
    border-radius: 1.1rem;
    color: #021025;
    font-size: 1.55rem;
    background: linear-gradient(135deg, var(--ai-cyan), var(--ai-blue));
}

.gem-product-card h3 {
    font-size: 1.2rem;
}

.gem-product-card p {
    margin-bottom: 0;
    line-height: 1.65;
}

.gem-brand-focus {
    display: grid;
    place-items: center;
    width: min(100%, 300px);
    height: 180px;
    margin: 1.6rem auto;
    padding: 1.2rem;
    border-radius: 2rem;
    background: rgba(255,255,255,0.94);
}

.gem-brand-carousel .carousel-item {
    min-height: 205px;
}

.gem-brand-logo {
    width: 100%;
    max-width: 180px;
    max-height: 84px;
    object-fit: contain;
    object-position: center;
    filter: saturate(1.04) contrast(1.02);
}

.hero-section p.lead,
.hero-section .hero-text-container .lead {
    color: #1f4f88 !important;
}

.gem-brand-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.gem-brand-grid span {
    display: inline-flex;
    align-items: center;
    min-height: 2.7rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--ai-line);
    border-radius: 999px;
    color: var(--ai-ink);
    background: rgba(255,255,255,0.055);
    font-weight: 800;
}

.tally-command-section {
    background:
        radial-gradient(circle at 80% 30%, rgba(25,217,255,0.13), transparent 30rem),
        rgba(2, 11, 27, 0.2);
}

.tally-dashboard-card {
    padding: 1.25rem;
    overflow: hidden;
}

.tally-ledger-visual {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
    padding: clamp(1rem, 4vw, 2rem);
    border: 1px solid rgba(103,232,249,0.16);
    border-radius: 1.4rem;
    background:
        radial-gradient(circle at 50% 40%, rgba(25,217,255,0.18), transparent 16rem),
        linear-gradient(rgba(103,232,249,0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103,232,249,0.055) 1px, transparent 1px);
    background-size: auto, 32px 32px, 32px 32px;
}

.tally-ledger-visual div {
    min-height: 120px;
    padding: 1rem;
    border: 1px solid var(--ai-line);
    border-radius: 1.2rem;
    background: rgba(255,255,255,0.055);
}

.tally-ledger-visual b,
.tally-ledger-visual span {
    display: block;
}

.tally-ledger-visual b {
    color: var(--ai-cyan);
    font-family: var(--font-mono);
    font-size: 1.15rem;
    letter-spacing: 0.08em;
}

.tally-ledger-visual span {
    margin-top: 2rem;
    color: var(--ai-ink);
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
}

/* Blue + white visual refresh across public pages, with stronger Tally alignment */
:root {
    --ai-ink: #123e78;
    --ai-muted: #4d6e99;
    --ai-deep: #f6f9ff;
    --ai-navy: #dce9ff;
    --ai-blue: #0b5ed7;
    --ai-cyan: #2b7fff;
    --ai-sky: #6ea8fe;
    --ai-card: #ffffff;
    --ai-card-solid: #ffffff;
    --ai-line: rgba(11, 94, 215, 0.18);
    --ai-glow: 0 0 0 rgba(0, 0, 0, 0);
    --ai-shadow: 0 10px 28px rgba(11, 94, 215, 0.09);
    --app-bg: #f6f9ff;
    --app-text: #123e78;
    --app-primary: #2b7fff;
    --app-secondary: #0b5ed7;
    --app-link: #0a58ca;
    --app-footer-bg: #0b5ed7;
    --app-footer-text: #ffffff;
}

body {
    color: var(--ai-ink) !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(43, 127, 255, 0.14), transparent 28rem),
        radial-gradient(circle at 100% 0%, rgba(110, 168, 254, 0.18), transparent 25rem),
        linear-gradient(180deg, #ffffff 0%, #f4f8ff 45%, #edf4ff 100%);
}

body::before {
    background-image:
        linear-gradient(rgba(11, 94, 215, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 94, 215, 0.055) 1px, transparent 1px);
}

h1, h2, h3, h4, h5, h6 {
    color: var(--ai-ink) !important;
}

p, li, .card-text, .text-muted, .lead {
    color: var(--ai-muted) !important;
}

a:not(.nav-link):not(.btn):not(.dropdown-item) {
    color: var(--ai-blue) !important;
}

.navbar-custom {
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(11, 94, 215, 0.14);
    box-shadow: 0 12px 30px rgba(11, 94, 215, 0.08);
}

.brand-name-primary,
.navbar .nav-link,
.navbar-custom .dropdown-item {
    color: #0c4aa0 !important;
    text-shadow: none;
}

.brand-tagline {
    color: #2b7fff;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active,
.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    color: #0a58ca !important;
    text-shadow: none;
}

.navbar-custom .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(11, 94, 215, 0.16);
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    background: rgba(43, 127, 255, 0.1) !important;
}

.ai-btn-primary,
.btn-primary,
.btn-light {
    border: 1px solid #0b5ed7 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #2b7fff, #0b5ed7) !important;
    box-shadow: 0 8px 20px rgba(11, 94, 215, 0.2);
}

.ai-btn-primary:hover,
.btn-primary:hover,
.btn-light:hover {
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(11, 94, 215, 0.26);
}

.ai-btn-ghost,
.btn-outline-primary {
    border: 1px solid rgba(11, 94, 215, 0.35) !important;
    color: #0b5ed7 !important;
    background: #ffffff !important;
}

.ai-btn-ghost:hover,
.btn-outline-primary:hover {
    color: #ffffff !important;
    border-color: #0b5ed7 !important;
    background: #0b5ed7 !important;
}

.ai-hero,
.hero-section,
.hero-section:not(.ai-hero) {
    background:
        radial-gradient(circle at 80% 12%, rgba(43, 127, 255, 0.15), transparent 22rem),
        radial-gradient(circle at 12% 68%, rgba(110, 168, 254, 0.2), transparent 20rem),
        linear-gradient(180deg, #f5f9ff 0%, #eaf3ff 100%) !important;
}

.hero-section:not(.ai-hero)::before,
.hero-section:not(.ai-hero)::after {
    background: none !important;
}

.ai-grid-overlay {
    opacity: 0.3;
}

.ai-kicker,
.text-coral,
.ai-stack-list i,
.ai-stack-list b,
.ai-check-grid i,
.ai-service-list i,
.tally-ledger-visual b {
    color: #0b5ed7 !important;
}

.ai-metrics div,
.ai-hero-panel,
.ai-solution-card,
.industry-card,
.blog-card,
.ai-blueprint-card,
.ai-image-shell,
.h-t-c,
.hero-text-container,
.gem-stat-card,
.gem-product-card,
.tally-dashboard-card,
.card,
.alert,
form.needs-validation,
.timeline-content,
.profile-avatar-container,
.section-spacing .col-md-3.text-center,
.section-spacing .col-md-4.text-center,
.section-spacing .col-sm-6.text-center,
.section-spacing .d-flex:not(.ai-hero-actions):not(.social-links),
.hero-section:not(.ai-hero) .hero-text-container {
    border: 1px solid rgba(11, 94, 215, 0.14) !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(11, 94, 215, 0.08) !important;
    backdrop-filter: none;
}

.ai-solution-card:hover,
.industry-card:hover,
.blog-card:hover,
.gem-product-card:hover,
.tally-dashboard-card:hover {
    border-color: rgba(11, 94, 215, 0.36) !important;
    box-shadow: 0 14px 28px rgba(11, 94, 215, 0.16) !important;
}

.ai-solution-card i,
.industry-card .icon-circle,
.services-alt-section .feature-item .icon-circle,
.gem-product-card .icon-circle {
    color: #ffffff;
    background: linear-gradient(135deg, #2b7fff, #0b5ed7);
    box-shadow: 0 8px 20px rgba(11, 94, 215, 0.22);
}

.bg-light,
.ai-feature-band,
.ai-services-lab,
.services-alt-section,
.bg-immersive,
.tally-command-section,
.industries-section,
.ai-industries-section,
.blog-section,
.ai-blog-section {
    background:
        radial-gradient(circle at 50% 0%, rgba(43, 127, 255, 0.09), transparent 20rem),
        #f4f8ff !important;
}

.tally-ledger-visual {
    border: 1px solid rgba(11, 94, 215, 0.18);
    background:
        linear-gradient(rgba(11, 94, 215, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 94, 215, 0.05) 1px, transparent 1px),
        #f8fbff;
    background-size: 32px 32px, 32px 32px, auto;
}

.tally-ledger-visual div,
.ai-check-grid div,
.ai-service-list a,
.gem-brand-grid span,
.footer-custom .contact-btn,
.footer-custom .social-links a,
.social-links a {
    border: 1px solid rgba(11, 94, 215, 0.18) !important;
    background: #f8fbff !important;
}

.tally-ledger-visual span,
.ai-check-grid div,
.ai-service-list a,
.gem-brand-grid span {
    color: var(--ai-ink) !important;
}

.text-secondary {
    color: #0b5ed7 !important;
}

.form-control,
.form-select {
    border: 1px solid rgba(11, 94, 215, 0.26) !important;
    color: var(--ai-ink) !important;
    background: #ffffff !important;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(11, 94, 215, 0.6) !important;
    box-shadow: 0 0 0 0.25rem rgba(11, 94, 215, 0.12) !important;
}

.footer-custom {
    border-top: 0;
    color: #ffffff;
    background: linear-gradient(135deg, #0b5ed7 0%, #2b7fff 56%, #0a58ca 100%) !important;
}

.footer-copy,
.footer-address,
.footer-contact {
    color: rgba(255, 255, 255, 0.9) !important;
}

.footer-custom .contact-btn,
.footer-custom .social-links a,
.social-links a {
    color: #0b5ed7 !important;
    background: #ffffff !important;
}

.footer-custom .contact-btn:hover,
.footer-custom .social-links a:hover,
.social-links a:hover {
    color: #ffffff !important;
    border-color: #ffffff !important;
    background: transparent !important;
}

.footer-custom::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}

@media (max-width: 1199.98px) {
    .navbar-collapse {
        border: 1px solid rgba(11, 94, 215, 0.14);
        background: #ffffff;
    }
}

.tally-service-card {
    min-height: 260px;
}

@media (max-width: 575.98px) {
    .tally-ledger-visual {
        grid-template-columns: 1fr;
    }
}

/* Global WhatsApp inquiry popup */
.ai-inquiry-modal .modal-content {
    border: 1px solid rgba(103, 232, 249, 0.28);
    border-radius: 1.7rem;
    color: var(--ai-ink);
    background:
        radial-gradient(circle at 18% 0%, rgba(25, 217, 255, 0.2), transparent 20rem),
        linear-gradient(145deg, rgba(8, 31, 73, 0.96), rgba(2, 11, 27, 0.96));
    box-shadow: 0 28px 90px rgba(0, 10, 32, 0.72), 0 0 70px rgba(25, 217, 255, 0.16);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.ai-inquiry-modal .modal-header,
.ai-inquiry-modal .modal-footer {
    border-color: rgba(103, 232, 249, 0.16);
}

.ai-inquiry-modal .modal-header {
    align-items: flex-start;
    padding: 1.4rem 1.4rem 1rem;
}

.ai-inquiry-modal .modal-body {
    padding: 1.4rem;
}

.ai-inquiry-modal .modal-footer {
    padding: 1rem 1.4rem 1.4rem;
}

.ai-inquiry-modal .btn-close {
    margin-top: 0.25rem;
    opacity: 0.85;
}

.ai-inquiry-note {
    color: var(--ai-muted);
    font-size: 0.92rem;
}

.ai-inquiry-modal textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

/* Inner-page hero cleanup: no legacy white illustration backgrounds */
.hero-section:not(.ai-hero) {
    --hero-accent-a: rgba(25, 217, 255, 0.26);
    --hero-accent-b: rgba(9, 105, 255, 0.36);
    min-height: clamp(520px, 72vh, 780px) !important;
    background-image:
        radial-gradient(circle at 50% 58%, rgba(25, 217, 255, 0.18), transparent 18rem),
        radial-gradient(circle at 80% 28%, rgba(9, 105, 255, 0.24), transparent 22rem),
        linear-gradient(140deg, rgba(2, 8, 23, 0.95), rgba(6, 26, 61, 0.86)) !important;
    background-size: auto !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-section:not(.ai-hero)::before {
    background:
        radial-gradient(circle at 50% 50%, transparent 0 8.5rem, var(--hero-accent-a) 8.6rem 8.7rem, transparent 8.8rem 15rem, rgba(103, 232, 249, 0.15) 15.1rem 15.2rem, transparent 15.3rem),
        conic-gradient(from 140deg at 50% 52%, transparent 0 16%, rgba(25, 217, 255, 0.2) 18%, transparent 24%, transparent 48%, rgba(9, 105, 255, 0.22) 52%, transparent 58%),
        radial-gradient(circle at 16% 18%, var(--hero-accent-b), transparent 26rem),
        linear-gradient(140deg, rgba(2, 8, 23, 0.72), rgba(6, 26, 61, 0.62));
}

.hero-section:not(.ai-hero)::after {
    opacity: 0.95;
    background:
        linear-gradient(rgba(103, 232, 249, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 232, 249, 0.06) 1px, transparent 1px),
        linear-gradient(115deg, transparent 0 42%, rgba(25,217,255,0.13) 42.2% 42.5%, transparent 43%),
        radial-gradient(circle at 50% 54%, rgba(25, 217, 255, 0.12), transparent 20rem);
    background-size: 44px 44px, 44px 44px, auto, auto;
}

.gem-hero,
.tally-hero {
    --hero-accent-a: rgba(45, 212, 191, 0.24);
    --hero-accent-b: rgba(14, 165, 233, 0.34);
}

/* More breathing room for non-home containers/cards/forms */
form.needs-validation {
    padding: clamp(1.35rem, 4vw, 2.4rem) !important;
}

.card .card-body {
    padding: clamp(1.35rem, 3vw, 2rem) !important;
}

.timeline-content,
.profile-avatar-container,
.section-spacing .col-md-3.text-center,
.section-spacing .col-md-4.text-center,
.section-spacing .col-sm-6.text-center,
.section-spacing .d-flex:not(.ai-hero-actions):not(.social-links),
.gem-product-card,
.tally-dashboard-card,
.industry-card,
.ai-solution-card {
    padding: clamp(1.35rem, 3vw, 2rem) !important;
}

.section-spacing .d-flex:not(.ai-hero-actions):not(.social-links) {
    gap: 1rem;
}

.section-spacing .d-flex:not(.ai-hero-actions):not(.social-links) > i {
    flex: 0 0 auto;
    margin-right: 0 !important;
}

.ai-section-head {
    padding-inline: clamp(0.75rem, 3vw, 1.5rem);
}

@media (max-width: 767.98px) {
    .hero-section:not(.ai-hero) {
        min-height: 560px !important;
        background-position: center !important;
    }

    .hero-section:not(.ai-hero) .hero-text-container {
        width: min(100%, calc(100vw - 1.5rem));
        padding-inline: 1.35rem;
    }
}

/* Page-specific inner hero identities */
.hero-section:not(.ai-hero) {
    --hero-r1-x: 50%;
    --hero-r1-y: 50%;
    --hero-r2-x: 16%;
    --hero-r2-y: 18%;
    --hero-angle: 140deg;
    --hero-grid: 44px;
    --hero-line-angle: 115deg;
}

.hero-section:not(.ai-hero)::before {
    background:
        radial-gradient(circle at var(--hero-r1-x) var(--hero-r1-y), transparent 0 8.5rem, var(--hero-accent-a) 8.6rem 8.7rem, transparent 8.8rem 15rem, rgba(103, 232, 249, 0.15) 15.1rem 15.2rem, transparent 15.3rem),
        conic-gradient(from var(--hero-angle) at var(--hero-r1-x) var(--hero-r1-y), transparent 0 16%, rgba(25, 217, 255, 0.2) 18%, transparent 24%, transparent 48%, rgba(9, 105, 255, 0.22) 52%, transparent 58%),
        radial-gradient(circle at var(--hero-r2-x) var(--hero-r2-y), var(--hero-accent-b), transparent 26rem),
        linear-gradient(140deg, rgba(2, 8, 23, 0.72), rgba(6, 26, 61, 0.62));
}

.hero-section:not(.ai-hero)::after {
    background:
        linear-gradient(rgba(103, 232, 249, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(103, 232, 249, 0.06) 1px, transparent 1px),
        linear-gradient(var(--hero-line-angle), transparent 0 42%, rgba(25,217,255,0.13) 42.2% 42.5%, transparent 43%),
        radial-gradient(circle at var(--hero-r1-x) calc(var(--hero-r1-y) + 4%), rgba(25, 217, 255, 0.12), transparent 20rem);
    background-size: var(--hero-grid) var(--hero-grid), var(--hero-grid) var(--hero-grid), auto, auto;
}

.hero-about { --hero-accent-a: rgba(56, 189, 248, 0.28); --hero-accent-b: rgba(14, 165, 233, 0.34); --hero-r1-x: 64%; --hero-r1-y: 46%; --hero-r2-x: 12%; --hero-r2-y: 26%; --hero-angle: 90deg; --hero-grid: 52px; --hero-line-angle: 130deg; }
.hero-contact { --hero-accent-a: rgba(45, 212, 191, 0.25); --hero-accent-b: rgba(6, 182, 212, 0.36); --hero-r1-x: 38%; --hero-r1-y: 52%; --hero-r2-x: 82%; --hero-r2-y: 20%; --hero-angle: 220deg; --hero-grid: 38px; --hero-line-angle: 68deg; }
.hero-software { --hero-accent-a: rgba(59, 130, 246, 0.3); --hero-accent-b: rgba(37, 99, 235, 0.42); --hero-r1-x: 50%; --hero-r1-y: 42%; --hero-r2-x: 8%; --hero-r2-y: 70%; --hero-angle: 160deg; --hero-grid: 42px; --hero-line-angle: 102deg; }
.hero-cyber { --hero-accent-a: rgba(34, 211, 238, 0.28); --hero-accent-b: rgba(15, 23, 42, 0.72); --hero-r1-x: 74%; --hero-r1-y: 52%; --hero-r2-x: 22%; --hero-r2-y: 22%; --hero-angle: 40deg; --hero-grid: 34px; --hero-line-angle: 145deg; }
.hero-storage { --hero-accent-a: rgba(96, 165, 250, 0.28); --hero-accent-b: rgba(30, 64, 175, 0.44); --hero-r1-x: 32%; --hero-r1-y: 42%; --hero-r2-x: 86%; --hero-r2-y: 66%; --hero-angle: 280deg; --hero-grid: 58px; --hero-line-angle: 28deg; }
.hero-networking { --hero-accent-a: rgba(125, 211, 252, 0.28); --hero-accent-b: rgba(8, 145, 178, 0.42); --hero-r1-x: 58%; --hero-r1-y: 60%; --hero-r2-x: 18%; --hero-r2-y: 18%; --hero-angle: 120deg; --hero-grid: 36px; --hero-line-angle: 75deg; }
.hero-cloud { --hero-accent-a: rgba(186, 230, 253, 0.24); --hero-accent-b: rgba(14, 116, 144, 0.44); --hero-r1-x: 48%; --hero-r1-y: 36%; --hero-r2-x: 80%; --hero-r2-y: 74%; --hero-angle: 15deg; --hero-grid: 64px; --hero-line-angle: 118deg; }
.hero-data-recovery { --hero-accent-a: rgba(6, 182, 212, 0.28); --hero-accent-b: rgba(29, 78, 216, 0.48); --hero-r1-x: 72%; --hero-r1-y: 38%; --hero-r2-x: 10%; --hero-r2-y: 72%; --hero-angle: 205deg; --hero-grid: 46px; --hero-line-angle: 155deg; }
.hero-data-backup { --hero-accent-a: rgba(147, 197, 253, 0.27); --hero-accent-b: rgba(3, 105, 161, 0.44); --hero-r1-x: 40%; --hero-r1-y: 62%; --hero-r2-x: 84%; --hero-r2-y: 16%; --hero-angle: 330deg; --hero-grid: 50px; --hero-line-angle: 55deg; }
.hero-it-rentals { --hero-accent-a: rgba(56, 189, 248, 0.25); --hero-accent-b: rgba(79, 70, 229, 0.38); --hero-r1-x: 70%; --hero-r1-y: 58%; --hero-r2-x: 18%; --hero-r2-y: 34%; --hero-angle: 72deg; --hero-grid: 40px; --hero-line-angle: 122deg; }
.hero-print { --hero-accent-a: rgba(103, 232, 249, 0.23); --hero-accent-b: rgba(2, 132, 199, 0.42); --hero-r1-x: 36%; --hero-r1-y: 46%; --hero-r2-x: 80%; --hero-r2-y: 68%; --hero-angle: 250deg; --hero-grid: 60px; --hero-line-angle: 18deg; }
.hero-cartridges { --hero-accent-a: rgba(34, 211, 238, 0.24); --hero-accent-b: rgba(30, 64, 175, 0.5); --hero-r1-x: 62%; --hero-r1-y: 40%; --hero-r2-x: 10%; --hero-r2-y: 64%; --hero-angle: 300deg; --hero-grid: 48px; --hero-line-angle: 88deg; }
.hero-laptop-repairs { --hero-accent-a: rgba(96, 165, 250, 0.26); --hero-accent-b: rgba(7, 89, 133, 0.44); --hero-r1-x: 44%; --hero-r1-y: 40%; --hero-r2-x: 76%; --hero-r2-y: 72%; --hero-angle: 110deg; --hero-grid: 39px; --hero-line-angle: 135deg; }
.hero-hardware { --hero-accent-a: rgba(14, 165, 233, 0.3); --hero-accent-b: rgba(30, 41, 59, 0.68); --hero-r1-x: 76%; --hero-r1-y: 44%; --hero-r2-x: 24%; --hero-r2-y: 78%; --hero-angle: 185deg; --hero-grid: 55px; --hero-line-angle: 44deg; }
.hero-amc { --hero-accent-a: rgba(45, 212, 191, 0.24); --hero-accent-b: rgba(37, 99, 235, 0.4); --hero-r1-x: 34%; --hero-r1-y: 56%; --hero-r2-x: 86%; --hero-r2-y: 22%; --hero-angle: 260deg; --hero-grid: 43px; --hero-line-angle: 112deg; }
.hero-gem { --hero-accent-a: rgba(45, 212, 191, 0.3); --hero-accent-b: rgba(13, 148, 136, 0.44); --hero-r1-x: 54%; --hero-r1-y: 48%; --hero-r2-x: 18%; --hero-r2-y: 76%; --hero-angle: 30deg; --hero-grid: 50px; --hero-line-angle: 70deg; }
.hero-tally-overview { --hero-accent-a: rgba(56, 189, 248, 0.3); --hero-accent-b: rgba(14, 165, 233, 0.42); --hero-r1-x: 50%; --hero-r1-y: 46%; --hero-r2-x: 82%; --hero-r2-y: 70%; --hero-angle: 145deg; --hero-grid: 45px; --hero-line-angle: 120deg; }
.hero-tally-services { --hero-accent-a: rgba(103, 232, 249, 0.26); --hero-accent-b: rgba(8, 145, 178, 0.46); --hero-r1-x: 68%; --hero-r1-y: 38%; --hero-r2-x: 14%; --hero-r2-y: 74%; --hero-angle: 215deg; --hero-grid: 57px; --hero-line-angle: 32deg; }
.hero-tally-customization { --hero-accent-a: rgba(59, 130, 246, 0.27); --hero-accent-b: rgba(6, 182, 212, 0.38); --hero-r1-x: 30%; --hero-r1-y: 48%; --hero-r2-x: 86%; --hero-r2-y: 28%; --hero-angle: 320deg; --hero-grid: 37px; --hero-line-angle: 98deg; }
.hero-tally-prime { --hero-accent-a: rgba(147, 197, 253, 0.26); --hero-accent-b: rgba(37, 99, 235, 0.48); --hero-r1-x: 56%; --hero-r1-y: 62%; --hero-r2-x: 14%; --hero-r2-y: 18%; --hero-angle: 80deg; --hero-grid: 54px; --hero-line-angle: 145deg; }
.hero-tally-server { --hero-accent-a: rgba(14, 165, 233, 0.28); --hero-accent-b: rgba(15, 23, 42, 0.7); --hero-r1-x: 78%; --hero-r1-y: 50%; --hero-r2-x: 28%; --hero-r2-y: 28%; --hero-angle: 235deg; --hero-grid: 41px; --hero-line-angle: 62deg; }
.hero-tally-cloud { --hero-accent-a: rgba(125, 211, 252, 0.26); --hero-accent-b: rgba(3, 105, 161, 0.46); --hero-r1-x: 42%; --hero-r1-y: 34%; --hero-r2-x: 80%; --hero-r2-y: 76%; --hero-angle: 12deg; --hero-grid: 66px; --hero-line-angle: 105deg; }
.hero-tally-whatsapp { --hero-accent-a: rgba(45, 212, 191, 0.28); --hero-accent-b: rgba(6, 182, 212, 0.42); --hero-r1-x: 66%; --hero-r1-y: 56%; --hero-r2-x: 18%; --hero-r2-y: 18%; --hero-angle: 168deg; --hero-grid: 35px; --hero-line-angle: 48deg; }

/* Final theme lock: blue + white across site and all Tally pages */
:root {
    --ai-ink: #123e78;
    --ai-muted: #4d6e99;
    --ai-deep: #f6f9ff;
    --ai-blue: #0b5ed7;
    --ai-cyan: #2b7fff;
    --ai-sky: #6ea8fe;
    --ai-line: rgba(11, 94, 215, 0.18);
    --ai-shadow: 0 10px 28px rgba(11, 94, 215, 0.09);
}

body {
    color: #123e78 !important;
    background:
        radial-gradient(circle at 10% 0%, rgba(43, 127, 255, 0.14), transparent 28rem),
        radial-gradient(circle at 100% 0%, rgba(110, 168, 254, 0.18), transparent 25rem),
        linear-gradient(180deg, #ffffff 0%, #f4f8ff 45%, #edf4ff 100%) !important;
}

body::before {
    background-image:
        linear-gradient(rgba(11, 94, 215, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 94, 215, 0.055) 1px, transparent 1px) !important;
}

h1, h2, h3, h4, h5, h6 { color: #123e78 !important; }
p, li, .card-text, .text-muted, .lead { color: #4d6e99 !important; }

.navbar-custom,
.navbar-collapse {
    background: #ffffff !important;
    border-color: rgba(11, 94, 215, 0.14) !important;
}

.brand-name-primary,
.navbar .nav-link,
.navbar-custom .dropdown-item {
    color: #0c4aa0 !important;
    text-shadow: none !important;
}

.navbar-custom .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(11, 94, 215, 0.16) !important;
}

.ai-btn-primary, .btn-primary, .btn-light {
    color: #ffffff !important;
    border: 1px solid #0b5ed7 !important;
    background: linear-gradient(135deg, #2b7fff, #0b5ed7) !important;
}

.ai-btn-ghost, .btn-outline-primary {
    color: #0b5ed7 !important;
    border: 1px solid rgba(11, 94, 215, 0.35) !important;
    background: #ffffff !important;
}

.ai-hero,
.hero-section,
.hero-section:not(.ai-hero),
.bg-light,
.ai-feature-band,
.ai-services-lab,
.services-alt-section,
.bg-immersive,
.tally-command-section {
    background:
        radial-gradient(circle at 80% 12%, rgba(43, 127, 255, 0.12), transparent 22rem),
        radial-gradient(circle at 12% 68%, rgba(110, 168, 254, 0.16), transparent 20rem),
        #f4f8ff !important;
}

.hero-section:not(.ai-hero)::before,
.hero-section:not(.ai-hero)::after {
    opacity: 0 !important;
}

.ai-metrics div,
.ai-hero-panel,
.ai-solution-card,
.industry-card,
.blog-card,
.ai-blueprint-card,
.ai-image-shell,
.h-t-c,
.hero-text-container,
.gem-stat-card,
.gem-product-card,
.tally-dashboard-card,
.card,
.alert,
form.needs-validation,
.timeline-content,
.profile-avatar-container {
    border: 1px solid rgba(11, 94, 215, 0.14) !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(11, 94, 215, 0.08) !important;
}

.ai-kicker,
.text-coral,
.text-secondary,
.ai-check-grid i,
.ai-service-list i,
.tally-ledger-visual b {
    color: #0b5ed7 !important;
}

.tally-ledger-visual {
    border: 1px solid rgba(11, 94, 215, 0.18) !important;
    background:
        linear-gradient(rgba(11, 94, 215, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 94, 215, 0.05) 1px, transparent 1px),
        #f8fbff !important;
    background-size: 32px 32px, 32px 32px, auto !important;
}

.tally-ledger-visual div,
.ai-check-grid div,
.ai-service-list a {
    border: 1px solid rgba(11, 94, 215, 0.18) !important;
    background: #f8fbff !important;
    color: #123e78 !important;
}

.footer-custom {
    background: linear-gradient(135deg, #0b5ed7 0%, #2b7fff 56%, #0a58ca 100%) !important;
}

/* Profile, author cards, and final contrast tuning */
:root {
    --ai-ink: #0a2f63;
    --ai-muted: #294e7a;
    --ai-blue: #0754c7;
    --ai-cyan: #2676f3;
    --ai-line: rgba(7, 84, 199, 0.2);
}

body,
.card,
.form-control,
.form-select {
    color: var(--ai-ink) !important;
}

p,
li,
.card-text,
.text-muted,
.lead,
.form-text,
small {
    color: var(--ai-muted) !important;
}

.ai-hero {
    background:
        radial-gradient(circle at 82% 10%, rgba(38, 118, 243, 0.09), transparent 22rem),
        radial-gradient(circle at 10% 68%, rgba(118, 178, 255, 0.12), transparent 21rem),
        linear-gradient(180deg, #ffffff 0%, #f7fbff 52%, #eef6ff 100%) !important;
}

.ai-hero::before {
    opacity: 0.28;
}

.ai-grid-overlay {
    opacity: 0.16 !important;
}

.ai-hero-copy,
.ai-lead {
    color: #294e7a !important;
}

main a.btn[href$="/contact"],
main a.btn[href$="/contact/"] {
    border: 1px solid rgba(7, 84, 199, 0.28) !important;
    color: #0754c7 !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px rgba(7, 84, 199, 0.12) !important;
}

main a.btn[href$="/contact"]:hover,
main a.btn[href$="/contact/"]:hover {
    color: #ffffff !important;
    border-color: #0754c7 !important;
    background: #0754c7 !important;
}

.profile-edit-header {
    max-width: 820px;
}

.profile-edit-header h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1;
}

.profile-edit-shell,
.profile-preview-panel {
    border: 1px solid rgba(7, 84, 199, 0.14);
    border-radius: 1.35rem;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(7, 84, 199, 0.08);
}

.profile-edit-shell {
    padding: clamp(1.1rem, 3vw, 1.8rem);
}

.profile-preview-panel {
    height: 100%;
    padding: 1.25rem;
}

.profile-avatar-container {
    display: grid;
    place-items: center;
    width: min(100%, 260px);
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 1.1rem !important;
}

.profile-avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-crop-modal .modal-content {
    border: 0;
    border-radius: 1.1rem;
    box-shadow: 0 24px 70px rgba(1, 17, 112, 0.22);
}

.profile-crop-modal .modal-header,
.profile-crop-modal .modal-footer {
    border-color: rgba(7, 84, 199, 0.12);
}

.avatar-crop-stage {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: min(68vh, 520px);
    overflow: hidden;
    border: 1px solid rgba(7, 84, 199, 0.12);
    border-radius: 1rem;
    background:
        linear-gradient(45deg, rgba(7, 84, 199, 0.08) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(7, 84, 199, 0.08) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(7, 84, 199, 0.08) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(7, 84, 199, 0.08) 75%);
    background-color: #f8fbff;
    background-position: 0 0, 0 12px, 12px -12px, -12px 0;
    background-size: 24px 24px;
}

.avatar-crop-stage img {
    display: block;
    max-width: 100%;
    max-height: min(68vh, 520px);
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.author-profile {
    overflow: hidden;
}

.author-profile-inner {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
    align-items: center;
    padding: clamp(1.25rem, 3vw, 1.7rem);
}

.author-avatar-wrap {
    width: clamp(96px, 14vw, 132px);
    aspect-ratio: 1;
    overflow: hidden;
    border: 3px solid #ffffff;
    border-radius: 1.1rem;
    box-shadow: 0 10px 24px rgba(7, 84, 199, 0.14);
}

.author-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-eyebrow {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: #0754c7;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.author-role {
    color: #0754c7 !important;
    font-weight: 800;
}

.author-role span {
    color: #294e7a;
    font-weight: 700;
}

.author-bio {
    max-width: 72ch;
    line-height: 1.7;
}

.author-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.author-socials a {
    display: inline-grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(7, 84, 199, 0.18);
    border-radius: 50%;
    color: #0754c7 !important;
    background: #f8fbff;
    text-decoration: none;
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.author-socials a:hover {
    color: #ffffff !important;
    background: #0754c7;
    transform: translateY(-2px);
}

.author-meta {
    color: #345b87;
    font-size: 0.92rem;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .author-profile-inner {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .author-avatar-wrap {
        width: 112px;
    }
}

/* Home hero visual stack: white gradient background */
.ai-hero .ai-hero-visual-stack .ai-carousel-blend-frame {
    background: linear-gradient(160deg, #ffffff 0%, #f3f8ff 56%, #eaf2ff 100%) !important;
    border-color: rgba(11, 94, 215, 0.18) !important;
    box-shadow: 0 12px 30px rgba(11, 94, 215, 0.12) !important;
}

.ai-hero .ai-hero-visual-stack .ai-carousel-blend-frame::after {
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.08), rgba(223, 236, 255, 0.24) 74%),
        radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.1), transparent 44%),
        radial-gradient(circle at 84% 84%, rgba(147, 197, 253, 0.12), transparent 48%) !important;
}

.ai-hero .ai-hero-stat-card {
    background: linear-gradient(160deg, #ffffff 0%, #f4f8ff 62%, #e8f1ff 100%) !important;
}

.ai-hero .ai-hero-stat-card strong {
    color: #0b5ed7 !important;
}

.ai-hero .ai-hero-stat-card p {
    color: #1e497d !important;
}

/* Home productivity image: white gradient treatment */
.ai-productivity-image-wrap .ai-productivity-image.ai-carousel-blend-frame {
    background: linear-gradient(155deg, #ffffff 0%, #f5f9ff 58%, #eaf3ff 100%) !important;
    border-color: rgba(11, 94, 215, 0.18) !important;
    box-shadow: 0 14px 30px rgba(11, 94, 215, 0.14) !important;
}

.ai-productivity-image-wrap .ai-productivity-image.ai-carousel-blend-frame::after {
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.1), rgba(219, 233, 255, 0.26) 72%),
        radial-gradient(circle at 14% 18%, rgba(96, 165, 250, 0.1), transparent 42%),
        radial-gradient(circle at 84% 84%, rgba(147, 197, 253, 0.12), transparent 48%) !important;
}

/* Top CTA strip for all non-home pages */
.page-top-cta-strip {
    border-top: 1px solid rgba(103, 232, 249, 0.18);
    border-bottom: 1px solid rgba(103, 232, 249, 0.18);
    background: linear-gradient(135deg, rgba(4, 18, 43, 0.94), rgba(8, 31, 73, 0.88));
    padding: 0.85rem 0;
}

.page-top-cta-strip p {
    color: #d7e9ff !important;
    font-weight: 600;
}

/* Darker paragraph text where background is light */
.bg-light p,
.bg-light li,
.bg-light .text-muted,
.bg-white p,
.bg-white li,
.bg-white .text-muted,
.card.bg-white p,
.card.bg-white .text-muted,
.modal-content p,
.modal-content .text-muted {
    color: #15365c !important;
}

/* Page-specific hero image backgrounds (non-home pages) */
.hero-section:not(.ai-hero) {
    background-blend-mode: overlay, soft-light, normal !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.hero-about { background-image: linear-gradient(140deg, rgba(2, 8, 23, 0.68), rgba(6, 26, 61, 0.74)), url('/img/stock-img/pexels-shvetsa-5324853.jpg') !important; }
.hero-contact { background-image: linear-gradient(140deg, rgba(2, 8, 23, 0.66), rgba(6, 26, 61, 0.72)), url('/img/stock-img/pexels-kampus-8204363.jpg') !important; }
.hero-software { background-image: url('/img/stock-img/pexels-cottonbro-6803523.jpg') !important; }
.hero-cyber { background-image: linear-gradient(140deg, rgba(1, 10, 28, 0.78), rgba(4, 18, 43, 0.82)), url('/img/stock-img/pexels-kampus-8204363.jpg') !important; }
.hero-storage { background-image: linear-gradient(140deg, rgba(3, 17, 38, 0.66), rgba(6, 26, 61, 0.74)), url('/img/stock-img/pexels-kindelmedia-7688373.jpg') !important; }
.hero-networking { background-image: linear-gradient(140deg, rgba(2, 8, 23, 0.66), rgba(6, 26, 61, 0.74)), url('/img/stock-img/pexels-kampus-8204363.jpg') !important; }
.hero-cloud { background-image: linear-gradient(140deg, rgba(3, 17, 38, 0.64), rgba(6, 26, 61, 0.72)), url('/img/stock-img/pexels-cottonbro-6803523.jpg') !important; }
.hero-data-recovery { background-image: linear-gradient(140deg, rgba(1, 10, 28, 0.72), rgba(6, 26, 61, 0.76)), url('/img/stock-img/pexels-shvetsa-5324853.jpg') !important; }
.hero-data-backup { background-image: linear-gradient(140deg, rgba(2, 8, 23, 0.66), rgba(6, 26, 61, 0.72)), url('/img/stock-img/pexels-kindelmedia-7688373.jpg') !important; }
.hero-it-rentals { background-image: linear-gradient(140deg, rgba(2, 8, 23, 0.66), rgba(6, 26, 61, 0.74)), url('/img/stock-img/pexels-kampus-8204363.jpg') !important; }
.hero-print { background-image: linear-gradient(140deg, rgba(2, 8, 23, 0.64), rgba(6, 26, 61, 0.76)), url('/img/stock-img/pexels-kindelmedia-7688373.jpg') !important; }
.hero-cartridges { background-image: linear-gradient(140deg, rgba(3, 17, 38, 0.66), rgba(6, 26, 61, 0.72)), url('/img/stock-img/pexels-cottonbro-6803523.jpg') !important; }
.hero-laptop-repairs { background-image: linear-gradient(140deg, rgba(2, 8, 23, 0.68), rgba(6, 26, 61, 0.74)), url('/img/stock-img/pexels-shvetsa-5324853.jpg') !important; }
.hero-hardware { background-image: linear-gradient(140deg, rgba(1, 10, 28, 0.72), rgba(4, 18, 43, 0.78)), url('/img/stock-img/pexels-kampus-8204363.jpg') !important; }
.hero-amc { background-image: linear-gradient(140deg, rgba(3, 17, 38, 0.66), rgba(6, 26, 61, 0.72)), url('/img/stock-img/pexels-kindelmedia-7688373.jpg') !important; }
.hero-gem { background-image: linear-gradient(140deg, rgba(3, 17, 38, 0.62), rgba(6, 26, 61, 0.68)), url('/img/stock-img/pexels-cottonbro-6803523.jpg') !important; }
.hero-tally-overview { background-image: linear-gradient(140deg, rgba(2, 8, 23, 0.66), rgba(6, 26, 61, 0.74)), url('/img/stock-img/pexels-kindelmedia-7688373.jpg') !important; }
.hero-tally-services { background-image: linear-gradient(140deg, rgba(3, 17, 38, 0.66), rgba(6, 26, 61, 0.72)), url('/img/stock-img/pexels-cottonbro-6803523.jpg') !important; }
.hero-tally-customization { background-image: linear-gradient(140deg, rgba(2, 8, 23, 0.66), rgba(6, 26, 61, 0.74)), url('/img/stock-img/pexels-kampus-8204363.jpg') !important; }
.hero-tally-prime { background-image: linear-gradient(140deg, rgba(2, 8, 23, 0.64), rgba(6, 26, 61, 0.72)), url('/img/stock-img/pexels-kindelmedia-7688373.jpg') !important; }
.hero-tally-server { background-image: linear-gradient(140deg, rgba(1, 10, 28, 0.74), rgba(4, 18, 43, 0.8)), url('/img/stock-img/pexels-shvetsa-5324853.jpg') !important; }
.hero-tally-cloud { background-image: linear-gradient(140deg, rgba(2, 8, 23, 0.66), rgba(6, 26, 61, 0.72)), url('/img/stock-img/pexels-cottonbro-6803523.jpg') !important; }
.hero-tally-whatsapp { background-image: linear-gradient(140deg, rgba(2, 8, 23, 0.64), rgba(6, 26, 61, 0.74)), url('/img/stock-img/pexels-kampus-8204363.jpg') !important; }

/* Force non-home hero images to stay visible after final theme overrides */
.hero-section:not(.ai-hero) {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.hero-about { background: linear-gradient(140deg, rgba(2, 8, 23, 0.52), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-shvetsa-5324853.jpg') center/cover no-repeat !important; }
.hero-contact { background: linear-gradient(140deg, rgba(2, 8, 23, 0.5), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-kampus-8204363.jpg') center/cover no-repeat !important; }
.hero-software { background: url('/img/stock-img/pexels-cottonbro-6803523.jpg') center/cover no-repeat !important; }
.hero-cyber { background: linear-gradient(140deg, rgba(1, 10, 28, 0.58), rgba(4, 18, 43, 0.62)), url('/img/stock-img/pexels-kampus-8204363.jpg') center/cover no-repeat !important; }
.hero-storage { background: linear-gradient(140deg, rgba(3, 17, 38, 0.52), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-kindelmedia-7688373.jpg') center/cover no-repeat !important; }
.hero-networking { background: linear-gradient(140deg, rgba(2, 8, 23, 0.5), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-kampus-8204363.jpg') center/cover no-repeat !important; }
.hero-cloud { background: linear-gradient(140deg, rgba(3, 17, 38, 0.5), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-cottonbro-6803523.jpg') center/cover no-repeat !important; }
.hero-data-recovery { background: linear-gradient(140deg, rgba(1, 10, 28, 0.56), rgba(6, 26, 61, 0.6)), url('/img/stock-img/pexels-shvetsa-5324853.jpg') center/cover no-repeat !important; }
.hero-data-backup { background: linear-gradient(140deg, rgba(2, 8, 23, 0.5), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-kindelmedia-7688373.jpg') center/cover no-repeat !important; }
.hero-it-rentals { background: linear-gradient(140deg, rgba(2, 8, 23, 0.5), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-kampus-8204363.jpg') center/cover no-repeat !important; }
.hero-print { background: linear-gradient(140deg, rgba(2, 8, 23, 0.5), rgba(6, 26, 61, 0.58)), url('/img/stock-img/pexels-kindelmedia-7688373.jpg') center/cover no-repeat !important; }
.hero-cartridges { background: linear-gradient(140deg, rgba(3, 17, 38, 0.5), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-cottonbro-6803523.jpg') center/cover no-repeat !important; }
.hero-laptop-repairs { background: linear-gradient(140deg, rgba(2, 8, 23, 0.52), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-shvetsa-5324853.jpg') center/cover no-repeat !important; }
.hero-hardware { background: linear-gradient(140deg, rgba(1, 10, 28, 0.56), rgba(4, 18, 43, 0.6)), url('/img/stock-img/pexels-kampus-8204363.jpg') center/cover no-repeat !important; }
.hero-amc { background: linear-gradient(140deg, rgba(3, 17, 38, 0.5), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-kindelmedia-7688373.jpg') center/cover no-repeat !important; }
.hero-gem { background: linear-gradient(140deg, rgba(3, 17, 38, 0.46), rgba(6, 26, 61, 0.52)), url('/img/stock-img/pexels-cottonbro-6803523.jpg') center/cover no-repeat !important; }
.hero-tally-overview { background: linear-gradient(140deg, rgba(2, 8, 23, 0.5), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-kindelmedia-7688373.jpg') center/cover no-repeat !important; }
.hero-tally-services { background: linear-gradient(140deg, rgba(3, 17, 38, 0.5), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-cottonbro-6803523.jpg') center/cover no-repeat !important; }
.hero-tally-customization { background: linear-gradient(140deg, rgba(2, 8, 23, 0.5), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-kampus-8204363.jpg') center/cover no-repeat !important; }
.hero-tally-prime { background: linear-gradient(140deg, rgba(2, 8, 23, 0.5), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-kindelmedia-7688373.jpg') center/cover no-repeat !important; }
.hero-tally-server { background: linear-gradient(140deg, rgba(1, 10, 28, 0.58), rgba(4, 18, 43, 0.62)), url('/img/stock-img/pexels-shvetsa-5324853.jpg') center/cover no-repeat !important; }
.hero-tally-cloud { background: linear-gradient(140deg, rgba(2, 8, 23, 0.5), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-cottonbro-6803523.jpg') center/cover no-repeat !important; }
.hero-tally-whatsapp { background: linear-gradient(140deg, rgba(2, 8, 23, 0.5), rgba(6, 26, 61, 0.56)), url('/img/stock-img/pexels-kampus-8204363.jpg') center/cover no-repeat !important; }

/* Final UX polish: AMC spacing + light CTA modal + darker inner-page hero lead text */
.amc-feature-card {
    padding: clamp(1.2rem, 2.5vw, 1.65rem) !important;
    border-radius: 1rem;
}

.amc-feature-grid {
    --bs-gutter-x: clamp(1.9rem, 3.5vw, 2.9rem);
    --bs-gutter-y: clamp(1.7rem, 3vw, 2.3rem);
    margin-inline: clamp(0.2rem, 1.4vw, 1rem);
}

.amc-feature-card h5 {
    margin-top: 1rem !important;
    margin-bottom: 0.8rem !important;
}

.amc-feature-card p {
    margin-bottom: 0.35rem !important;
    line-height: 1.72;
}

.amc-feature-grid > .amc-feature-card {
    padding-inline: clamp(1.05rem, 1.8vw, 1.45rem) !important;
}

@media (min-width: 992px) {
    .amc-feature-grid {
        max-width: 1200px;
        margin-inline: auto;
    }
}

.ai-inquiry-modal .modal-content {
    border: 1px solid rgba(11, 94, 215, 0.18) !important;
    color: #123e78 !important;
    background:
        radial-gradient(circle at 14% 0%, rgba(110, 168, 254, 0.25), transparent 18rem),
        linear-gradient(145deg, #ffffff 0%, #f4f8ff 55%, #eaf3ff 100%) !important;
    box-shadow: 0 20px 56px rgba(11, 94, 215, 0.2) !important;
    backdrop-filter: none !important;
}

.ai-inquiry-modal .modal-header,
.ai-inquiry-modal .modal-footer {
    border-color: rgba(11, 94, 215, 0.14) !important;
}

.ai-inquiry-modal .modal-title,
.ai-inquiry-modal .ai-kicker,
.ai-inquiry-modal .form-label,
.ai-inquiry-modal .ai-inquiry-note,
.ai-inquiry-modal p {
    color: #123e78 !important;
}

.ai-inquiry-modal .btn-close {
    filter: none !important;
}

.hero-section:not(.ai-hero) p.lead,
.hero-section:not(.ai-hero) .hero-text-container .lead,
.hero-section:not(.ai-hero) .lead.mt-3 {
    color: #143a67 !important;
}

/* Office hero collection (non-home pages only) */
.hero-section:not(.ai-hero) {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.hero-about { background: linear-gradient(140deg, rgba(8, 24, 48, 0.46), rgba(12, 42, 78, 0.5)), url('../img/office1.jpg') center/cover no-repeat !important; }
.hero-contact { background: linear-gradient(140deg, rgba(8, 24, 48, 0.42), rgba(12, 42, 78, 0.48)), url('../img/office2.jpg') center/cover no-repeat !important; }
.hero-software { background: url('../img/office3.jpg') center/cover no-repeat !important; }
.hero-cloud { background: linear-gradient(140deg, rgba(8, 24, 48, 0.44), rgba(12, 42, 78, 0.5)), url('../img/office4.jpg') center/cover no-repeat !important; }
.hero-cyber { background: linear-gradient(140deg, rgba(6, 20, 40, 0.52), rgba(10, 34, 64, 0.56)), url('../img/office5.jpg') center/cover no-repeat !important; }
.hero-networking { background: linear-gradient(140deg, rgba(8, 24, 48, 0.46), rgba(12, 42, 78, 0.5)), url('../img/office6.jpg') center/cover no-repeat !important; }
.hero-storage { background: linear-gradient(140deg, rgba(8, 24, 48, 0.46), rgba(12, 42, 78, 0.5)), url('../img/office7.jpg') center/cover no-repeat !important; }
.hero-amc { background: linear-gradient(140deg, rgba(8, 24, 48, 0.44), rgba(12, 42, 78, 0.5)), url('../img/office8.jpg') center/cover no-repeat !important; }
.hero-gem { background: linear-gradient(140deg, rgba(8, 24, 48, 0.42), rgba(12, 42, 78, 0.46)), url('../img/office9.jpg') center/cover no-repeat !important; }

.hero-tally-overview,
.hero-tally-services,
.hero-tally-customization,
.hero-tally-prime,
.hero-tally-server,
.hero-tally-cloud,
.hero-tally-whatsapp { background: linear-gradient(140deg, rgba(8, 24, 48, 0.44), rgba(12, 42, 78, 0.5)), url('../img/office10.jpg') center/cover no-repeat !important; }

.hero-data-backup { background: linear-gradient(140deg, rgba(8, 24, 48, 0.44), rgba(12, 42, 78, 0.5)), url('../img/office4.jpg') center/cover no-repeat !important; }
.hero-data-recovery { background: linear-gradient(140deg, rgba(8, 24, 48, 0.48), rgba(12, 42, 78, 0.54)), url('../img/office5.jpg') center/cover no-repeat !important; }
.hero-it-rentals { background: linear-gradient(140deg, rgba(8, 24, 48, 0.44), rgba(12, 42, 78, 0.5)), url('../img/office6.jpg') center/cover no-repeat !important; }
.hero-print { background: linear-gradient(140deg, rgba(8, 24, 48, 0.42), rgba(12, 42, 78, 0.48)), url('../img/office7.jpg') center/cover no-repeat !important; }
.hero-cartridges { background: linear-gradient(140deg, rgba(8, 24, 48, 0.42), rgba(12, 42, 78, 0.48)), url('../img/office8.jpg') center/cover no-repeat !important; }
.hero-laptop-repairs { background: linear-gradient(140deg, rgba(8, 24, 48, 0.46), rgba(12, 42, 78, 0.52)), url('../img/office9.jpg') center/cover no-repeat !important; }
.hero-hardware { background: linear-gradient(140deg, rgba(8, 24, 48, 0.46), rgba(12, 42, 78, 0.52)), url('../img/office3.jpg') center/cover no-repeat !important; }

/* Clean inner-page heroes: show the photos without gradient or white wash overlays. */
.hero-section:not(.ai-hero) {
    background-blend-mode: normal !important;
    background-color: transparent !important;
    margin-top: 0 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.hero-section:not(.ai-hero)::before,
.hero-section:not(.ai-hero)::after {
    content: none !important;
    display: none !important;
    opacity: 0 !important;
    background: none !important;
}

.hero-section:not(.ai-hero) .hero-text-container {
    width: min(940px, calc(100vw - 4rem)) !important;
    max-width: calc(100vw - 4rem) !important;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    border-radius: clamp(1.4rem, 3vw, 2.5rem) !important;
    background:
        linear-gradient(135deg, rgba(5, 17, 38, 0.5), rgba(8, 31, 73, 0.28)),
        rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 20px 58px rgba(3, 12, 30, 0.28) !important;
    backdrop-filter: blur(8px) saturate(1.12) !important;
}

.hero-section:not(.ai-hero) .hero-text-container h1,
.hero-section:not(.ai-hero) .hero-text-container .lead,
.hero-section:not(.ai-hero) p.lead {
    color: #ffffff !important;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.68);
}

.hero-about { background: url('../img/office1.jpg') center/cover no-repeat !important; }
.hero-contact { background: url('../img/office2.jpg') center/cover no-repeat !important; }
.hero-software { background: url('../img/office3.jpg') center/cover no-repeat !important; }
.hero-cloud { background: url('../img/office4.jpg') center/cover no-repeat !important; }
.hero-cyber { background: url('../img/office5.jpg') center/cover no-repeat !important; }
.hero-networking { background: url('../img/office6.jpg') center/cover no-repeat !important; }
.hero-storage { background: url('../img/office7.jpg') center/cover no-repeat !important; }
.hero-amc { background: url('../img/office8.jpg') center/cover no-repeat !important; }
.hero-gem { background: url('../img/office9.jpg') center/cover no-repeat !important; }

.hero-tally-overview,
.hero-tally-services,
.hero-tally-customization,
.hero-tally-prime,
.hero-tally-server,
.hero-tally-cloud,
.hero-tally-whatsapp { background: url('../img/office10.jpg') center/cover no-repeat !important; }

.hero-data-backup { background: url('../img/office4.jpg') center/cover no-repeat !important; }
.hero-data-recovery { background: url('../img/office5.jpg') center/cover no-repeat !important; }
.hero-it-rentals { background: url('../img/office6.jpg') center/cover no-repeat !important; }
.hero-print { background: url('../img/office7.jpg') center/cover no-repeat !important; }
.hero-cartridges { background: url('../img/office8.jpg') center/cover no-repeat !important; }
.hero-laptop-repairs { background: url('../img/office9.jpg') center/cover no-repeat !important; }
.hero-hardware { background: url('../img/office3.jpg') center/cover no-repeat !important; }

/* Keep image heroes flush below the fixed navbar. */
main:has(.hero-section:not(.ai-hero) > .hero-text-container) > .page-top-cta-strip {
    display: none !important;
}

/* Optional home hero image bed: a soft office photo under the existing content. */
.ai-hero {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.78) 44%, rgba(255, 255, 255, 0.54) 100%),
        radial-gradient(circle at 82% 16%, rgba(43, 127, 255, 0.18), transparent 22rem),
        url('../img/office2.jpg') center/cover no-repeat !important;
}

@media (max-width: 575.98px) {
    .hero-section:not(.ai-hero) {
        padding-inline: 0.75rem !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow: hidden !important;
        box-sizing: border-box;
    }

    .hero-section:not(.ai-hero) .hero-text-container {
        width: calc(100vw - 4rem) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 4rem) !important;
        flex: 0 1 calc(100vw - 4rem) !important;
        margin-inline: auto !important;
        padding: 1.35rem 1rem !important;
        box-sizing: border-box;
        overflow: visible;
    }

    .hero-section:not(.ai-hero) .hero-text-container h1 {
        font-size: clamp(1.85rem, 7.8vw, 2.05rem) !important;
        line-height: 1.05 !important;
        overflow-wrap: anywhere;
    }

    .hero-section:not(.ai-hero) .hero-text-container .lead {
        max-width: 100% !important;
        font-size: 0.92rem !important;
        line-height: 1.65 !important;
        white-space: normal !important;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .ai-hero-title {
        max-width: 100% !important;
        font-size: clamp(2.55rem, 12vw, 3.15rem) !important;
        line-height: 1.02 !important;
        overflow-wrap: anywhere;
    }

    .ai-hero-copy {
        max-width: 100% !important;
    }
}

.pwa-install-button {
    position: fixed;
    right: clamp(1rem, 2vw, 1.5rem);
    bottom: calc(1rem + env(safe-area-inset-bottom));
    z-index: 1080;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    padding: 0.85rem 1.1rem;
    color: #ffffff;
    background: linear-gradient(135deg, #011170, #0b5ed7);
    box-shadow: 0 16px 34px rgba(1, 17, 112, 0.3);
    font-weight: 800;
}

.pwa-install-button[hidden] {
    display: none !important;
}

.pwa-offline-card {
    max-width: 760px;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid rgba(11, 94, 215, 0.16);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 60px rgba(11, 94, 215, 0.12);
}

/* Blog reader dock and publishing controls */
.author-profile {
    border: 1px solid rgba(7, 84, 199, 0.14) !important;
    border-radius: 1.2rem !important;
    background:
        radial-gradient(circle at 0% 0%, rgba(25, 217, 255, 0.16), transparent 15rem),
        linear-gradient(135deg, #ffffff, #eef6ff) !important;
    box-shadow: 0 18px 46px rgba(7, 84, 199, 0.12) !important;
}

.author-profile .author-eyebrow {
    color: #0754c7;
}

.author-profile .author-socials a {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(7, 84, 199, 0.14);
    border-radius: 50%;
    color: #0754c7;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(7, 84, 199, 0.1);
}

.author-profile .author-socials a:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #0754c7, #19d9ff);
}

.blog-taxonomy-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.blog-taxonomy-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 34px;
    padding: 0.42rem 0.78rem;
    border: 1px solid rgba(7, 84, 199, 0.16);
    border-radius: 999px;
    color: #053f9a;
    background: linear-gradient(135deg, #ffffff, #edf5ff);
    font-size: 0.84rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(7, 84, 199, 0.08);
}

.blog-taxonomy-tag {
    color: #006f9a;
    background: linear-gradient(135deg, #ffffff, #e9fbff);
}

.blog-reader-dock {
    display: grid;
    gap: 1.2rem;
    margin-top: clamp(2.2rem, 5vw, 4rem);
    padding: clamp(1.1rem, 3vw, 1.7rem);
    border: 1px solid rgba(7, 84, 199, 0.14);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at 12% 0%, rgba(25, 217, 255, 0.2), transparent 18rem),
        linear-gradient(135deg, #ffffff 0%, #eef6ff 52%, #ffffff 100%);
    box-shadow: 0 24px 70px rgba(7, 84, 199, 0.12);
}

.blog-share-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    margin: clamp(2rem, 5vw, 3.5rem) 0;
    padding: clamp(1rem, 3vw, 1.35rem);
    border: 1px solid rgba(7, 84, 199, 0.15);
    border-radius: 1.2rem;
    background:
        radial-gradient(circle at 100% 0%, rgba(25, 217, 255, 0.2), transparent 16rem),
        linear-gradient(135deg, #ffffff 0%, #eef6ff 55%, #ffffff 100%);
    box-shadow: 0 18px 46px rgba(7, 84, 199, 0.12);
}

.blog-share-copy h2 {
    margin: 0.2rem 0 0.35rem;
    color: #021a45;
    font-size: clamp(1.2rem, 2.4vw, 1.55rem);
    font-weight: 850;
}

.blog-share-copy p {
    max-width: 62ch;
    margin: 0;
    color: #536681;
    font-size: 0.95rem;
}

.blog-share-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
}

.blog-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    min-height: 40px;
    padding: 0.58rem 0.78rem;
    border: 1px solid rgba(7, 84, 199, 0.13);
    border-radius: 999px;
    color: #063477;
    background: rgba(255, 255, 255, 0.86);
    font-family: "Poppins", sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(7, 84, 199, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.blog-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(7, 84, 199, 0.14);
}

.blog-share-whatsapp {
    color: #075e54;
}

.blog-share-linkedin,
.blog-share-facebook {
    color: #0754c7;
}

.blog-share-x {
    color: #111827;
}

.blog-share-native {
    color: #ffffff;
    background: linear-gradient(135deg, #0754c7, #19d9ff);
}

.blog-share-copy-link {
    color: #014254;
    background: #e9fbff;
}

.blog-share-status {
    min-height: 1.2rem;
    color: #0754c7;
    font-size: 0.86rem;
    font-weight: 800;
}

.blog-reader-dock-header,
.blog-related-heading,
.blog-comment-panel h3,
.blog-comment-form-panel h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.blog-reader-dock-header h2,
.blog-related-heading h3,
.blog-comment-panel h3,
.blog-comment-form-panel h3 {
    margin: 0;
    color: #021a45;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
}

.blog-reader-dock-header h2 {
    font-size: clamp(1.45rem, 3vw, 2.1rem);
}

.blog-mini-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    padding: 0.6rem 0.88rem;
    border: 1px solid rgba(7, 84, 199, 0.18);
    border-radius: 999px;
    color: #053f9a;
    background: rgba(255, 255, 255, 0.82);
    font-weight: 800;
    text-decoration: none;
}

.blog-comment-panel,
.blog-comment-form-panel,
.blog-related-panel,
.blog-login-note {
    border: 1px solid rgba(7, 84, 199, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 30px rgba(7, 84, 199, 0.08);
}

.blog-comment-panel,
.blog-comment-form-panel,
.blog-related-panel {
    padding: clamp(1rem, 2.6vw, 1.35rem);
}

.blog-comment-panel h3,
.blog-comment-form-panel h3 {
    justify-content: flex-start;
    margin-bottom: 1rem;
    font-size: 1.18rem;
}

.blog-comment-panel h3 i,
.blog-comment-form-panel h3 i {
    color: #0754c7;
}

.blog-comment-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.85rem;
    padding: 0.95rem 0;
    border-top: 1px solid rgba(7, 84, 199, 0.1);
}

.blog-comment-card:first-of-type {
    border-top: 0;
}

.blog-comment-avatar {
    width: 44px;
    height: 44px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 18px rgba(7, 84, 199, 0.14);
}

.blog-comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    align-items: baseline;
    margin-bottom: 0.25rem;
}

.blog-comment-meta strong {
    color: #021a45;
    font-family: "Poppins", sans-serif;
}

.blog-comment-meta span,
.blog-empty-note,
.blog-related-card span {
    color: #5c6d86;
    font-size: 0.88rem;
}

.blog-comment-card p {
    margin: 0;
    color: #24354f;
    font-family: "Karla", sans-serif;
}

.blog-login-note {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.15rem;
    color: #263b5b;
    font-weight: 700;
}

.blog-login-note i {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #0754c7, #19d9ff);
}

.blog-related-heading {
    align-items: flex-end;
    margin-bottom: 1rem;
}

.blog-related-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid rgba(7, 84, 199, 0.12);
    border-radius: 0.95rem;
    color: inherit;
    background: linear-gradient(145deg, #ffffff, #f2f8ff);
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(7, 84, 199, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.blog-related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(7, 84, 199, 0.28);
    box-shadow: 0 18px 38px rgba(7, 84, 199, 0.14);
}

.blog-related-card h4 {
    margin: 0.35rem 0 0.55rem;
    color: #021a45;
    font-size: 1rem;
    font-weight: 800;
}

.blog-related-card p {
    flex: 1;
    margin: 0 0 0.9rem;
    color: #52657f;
    font-size: 0.92rem;
}

.blog-related-card b {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #0754c7;
    font-size: 0.9rem;
}

.blog-admin-heading,
.blog-publish-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    border: 1px solid rgba(7, 84, 199, 0.14);
    border-radius: 1rem;
    background: linear-gradient(135deg, #ffffff, #edf5ff);
    box-shadow: 0 14px 36px rgba(7, 84, 199, 0.1);
}

.blog-admin-heading h1 {
    margin: 0;
}

.blog-publish-bar {
    margin-bottom: 0;
}

.blog-publish-kicker {
    display: inline-block;
    margin-bottom: 0.2rem;
    color: #0754c7;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.blog-publish-bar p {
    color: #536681;
    font-size: 0.92rem;
}

.blog-publish-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
}

.blog-action-btn,
.blog-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.blog-action-btn {
    min-height: 42px;
    padding: 0.68rem 1rem;
    border-radius: 999px;
}

.blog-action-btn:hover,
.blog-icon-btn:hover {
    transform: translateY(-2px);
}

.blog-action-muted {
    color: #063477;
    background: #eaf2ff;
    box-shadow: inset 0 0 0 1px rgba(7, 84, 199, 0.14);
}

.blog-action-review {
    color: #014254;
    background: linear-gradient(135deg, #e9fbff, #ffffff);
    box-shadow: inset 0 0 0 1px rgba(25, 217, 255, 0.24);
}

.blog-action-publish {
    color: #ffffff;
    background: linear-gradient(135deg, #0754c7, #19d9ff);
    box-shadow: 0 14px 28px rgba(7, 84, 199, 0.22);
}

.blog-icon-btn {
    width: 38px;
    height: 38px;
    margin-left: 0.25rem;
    border-radius: 50%;
    color: #0754c7;
    background: #eef6ff;
    box-shadow: inset 0 0 0 1px rgba(7, 84, 199, 0.13);
}

.blog-icon-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.blog-icon-edit {
    color: #014254;
    background: #e9fbff;
}

.blog-icon-danger {
    color: #c02237;
    background: #fff0f3;
}

.blog-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.36rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 900;
}

.blog-status-live {
    color: #026241;
    background: #dcfff1;
}

.blog-status-scheduled {
    color: #06428f;
    background: #e7f1ff;
}

.blog-status-draft {
    color: #5c6470;
    background: #eef1f5;
}

@media (max-width: 767.98px) {
    .blog-share-panel {
        grid-template-columns: 1fr;
    }

    .blog-share-actions {
        justify-content: flex-start;
    }

    .blog-share-btn {
        flex: 1 1 calc(50% - 0.55rem);
    }

    .blog-reader-dock-header,
    .blog-related-heading,
    .blog-admin-heading,
    .blog-publish-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .blog-publish-actions,
    .blog-action-btn {
        width: 100%;
    }
}

/* Search polish */
.navbar-search,
.blog-search-form {
    --search-blue: #0754c7;
    --search-cyan: #19d9ff;
    --search-ink: #0a2f63;
    --search-line: rgba(7, 84, 199, 0.16);
}

.navbar-search {
    min-width: min(21rem, 82vw);
}

.navbar-search .input-group,
.blog-search-form .input-group {
    position: relative;
    align-items: stretch;
    padding: 0.28rem;
    border: 1px solid var(--search-line);
    border-radius: 999px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.88)),
        radial-gradient(circle at 12% 0%, rgba(25, 217, 255, 0.18), transparent 46%);
    box-shadow:
        0 16px 38px rgba(7, 84, 199, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.navbar-search .input-group:focus-within,
.blog-search-form .input-group:focus-within {
    border-color: rgba(25, 217, 255, 0.72);
    box-shadow:
        0 18px 42px rgba(7, 84, 199, 0.18),
        0 0 0 0.24rem rgba(25, 217, 255, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.navbar-search .input-group::after,
.blog-search-form .input-group::after {
    content: "";
    position: absolute;
    inset: 0.18rem;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(25, 217, 255, 0.16), transparent 32%, rgba(7, 84, 199, 0.08));
    opacity: 0.72;
}

.navbar-search .input-group-text,
.blog-search-form .input-group-text {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 2.3rem;
    min-width: 2.3rem;
    padding: 0;
    border: 0 !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--search-blue), var(--search-cyan)) !important;
    box-shadow: 0 10px 22px rgba(7, 84, 199, 0.22);
}

.blog-search-form .input-group-text {
    width: 2.65rem;
    min-width: 2.65rem;
}

.navbar-search .input-group-text i,
.blog-search-form .input-group-text i {
    font-size: 0.98rem;
    line-height: 1;
}

.navbar-search .form-control,
.blog-search-form .form-control {
    position: relative;
    z-index: 1;
    min-width: 0;
    border: 0 !important;
    border-radius: 999px !important;
    color: var(--search-ink) !important;
    background: transparent !important;
    box-shadow: none !important;
    font-weight: 700;
}

.navbar-search .form-control {
    min-height: 2.3rem;
    padding: 0.35rem 0.72rem;
    font-size: 0.88rem;
}

.blog-search-form .form-control {
    min-height: 2.9rem;
    padding: 0.52rem 0.88rem;
}

.navbar-search .form-control::placeholder,
.blog-search-form .form-control::placeholder {
    color: rgba(41, 78, 122, 0.64) !important;
}

.navbar-search .form-control:focus,
.navbar-search .form-control:focus-visible,
.blog-search-form .form-control:focus,
.blog-search-form .form-control:focus-visible {
    border: 0 !important;
    box-shadow: none !important;
}

.navbar-search .navbar-search-btn,
.blog-search-form .blog-search-submit,
.blog-search-form .blog-search-clear {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    min-height: 2.3rem;
    padding: 0.46rem 0.86rem;
    border: 0 !important;
    border-radius: 999px !important;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(7, 84, 199, 0.18);
}

.navbar-search .navbar-search-btn,
.blog-search-form .blog-search-submit {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--search-blue), #2b7fff 56%, var(--search-cyan)) !important;
}

.blog-search-form .blog-search-submit {
    min-height: 2.9rem;
    padding-inline: 1.12rem;
}

.blog-search-form .blog-search-clear {
    min-height: 2.9rem;
    color: var(--search-blue) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    box-shadow: inset 0 0 0 1px rgba(7, 84, 199, 0.16);
}

.navbar-search .navbar-search-btn i,
.blog-search-form .blog-search-submit i,
.blog-search-form .blog-search-clear i {
    font-size: 0.95rem;
    line-height: 1;
}

.navbar-search .navbar-search-btn:hover,
.blog-search-form .blog-search-submit:hover,
.blog-search-form .blog-search-clear:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(7, 84, 199, 0.24);
}

.navbar-search .navbar-search-btn:hover i {
    transform: translateX(2px);
}

.navbar-search .navbar-search-btn i,
.blog-search-form .blog-search-submit i,
.blog-search-form .blog-search-clear i {
    transition: transform 180ms ease;
}

@media (max-width: 1199.98px) {
    .navbar-search {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 575.98px) {
    .blog-search-form .input-group {
        border-radius: 1.25rem;
    }

    .blog-search-form .input-group-text {
        display: none;
    }

    .blog-search-form .form-control,
    .blog-search-form .blog-search-submit,
    .blog-search-form .blog-search-clear {
        flex: 1 1 100%;
    }
}

/* Desktop navbar balance */
.navbar-custom .navbar-collapse {
    min-width: 0;
}

.navbar-custom .navbar-nav {
    min-width: 0;
}

.navbar-custom .navbar-nav.me-auto {
    flex-shrink: 1;
}

.navbar-custom .navbar-nav.ms-auto {
    flex-shrink: 0;
    gap: 0.32rem;
}

.navbar-custom .nav-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.28rem;
    padding: 0.46rem 0.82rem !important;
    border-radius: 999px;
    line-height: 1;
    white-space: nowrap;
}

.navbar-custom .nav-auth-login {
    border: 1px solid rgba(7, 84, 199, 0.16);
    color: #0754c7 !important;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.navbar-custom .nav-auth-register {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0754c7, #2b7fff 58%, #19d9ff);
    box-shadow: 0 12px 24px rgba(7, 84, 199, 0.18);
}

.navbar-custom .nav-auth-link:hover,
.navbar-custom .nav-auth-link:focus {
    transform: translateY(-1px);
    text-shadow: none !important;
}

.navbar-custom .nav-auth-login:hover,
.navbar-custom .nav-auth-login:focus {
    color: #0754c7 !important;
    border-color: rgba(25, 217, 255, 0.45);
    background: #ffffff;
}

.navbar-custom .nav-auth-register:hover,
.navbar-custom .nav-auth-register:focus {
    color: #ffffff !important;
    box-shadow: 0 15px 30px rgba(7, 84, 199, 0.24);
}

@media (min-width: 1200px) {
    .navbar-custom .container-fluid {
        gap: 0.55rem;
        padding-inline: clamp(0.7rem, 1.8vw, 1.35rem);
    }

    .navbar-custom .navbar-brand {
        flex: 0 0 auto;
        margin-right: 0.45rem;
    }

    .navbar-custom .navbar-nav.me-auto {
        align-items: center;
        gap: 0.04rem;
        margin-left: clamp(0.8rem, 1.4vw, 1.8rem);
    }

    .navbar-custom .navbar-nav.me-auto .nav-link {
        padding-inline: clamp(0.34rem, 0.58vw, 0.62rem);
        font-size: clamp(0.86rem, 0.78vw, 1rem);
    }

    .navbar-search {
        width: clamp(13.75rem, 15vw, 18rem);
        min-width: 0;
    }

    .navbar-search .form-control {
        padding-inline: 0.55rem;
    }

    .navbar-search .navbar-search-btn {
        padding-inline: 0.72rem;
    }
}

@media (min-width: 1200px) and (max-width: 1349.98px) {
    .brand-name-primary {
        font-size: 0.94rem;
    }

    .brand-tagline {
        max-width: 8.8rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .navbar-search {
        width: 12.7rem;
    }

    .navbar-search .input-group-text {
        width: 2.08rem;
        min-width: 2.08rem;
    }

    .navbar-search .form-control {
        font-size: 0.82rem;
    }

    .navbar-search .navbar-search-btn span {
        display: none;
    }

    .navbar-search .navbar-search-btn {
        width: 2.28rem;
        padding-inline: 0;
    }

    .navbar-custom .nav-auth-link {
        padding-inline: 0.68rem !important;
        font-size: 0.86rem;
    }

    .navbar-custom .navbar-nav.me-auto {
        margin-left: 0.72rem;
    }

    .navbar-custom .navbar-nav.me-auto .nav-link {
        padding-inline: 0.34rem;
        font-size: 0.88rem;
    }
}

/* Admin mobile command dock */
.admin-bottom-nav {
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    padding: 0.52rem max(0.72rem, env(safe-area-inset-left)) calc(0.52rem + env(safe-area-inset-bottom)) max(0.72rem, env(safe-area-inset-right));
    border: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(237, 245, 255, 0.9) 26%, #ffffff 100%) !important;
    backdrop-filter: blur(16px);
}

.admin-bottom-nav-shell {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.38rem;
    width: min(100%, 35rem);
    margin: 0 auto;
    padding: 0.38rem;
    border: 1px solid rgba(7, 84, 199, 0.16);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at 14% 0%, rgba(25, 217, 255, 0.2), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 245, 255, 0.94));
    box-shadow:
        0 -14px 40px rgba(7, 84, 199, 0.12),
        0 16px 42px rgba(7, 84, 199, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.admin-bottom-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 0;
    min-height: 3.72rem;
    padding: 0.42rem 0.28rem;
    border: 1px solid transparent;
    border-radius: 1.05rem;
    color: #315b8b !important;
    text-align: center;
    text-decoration: none;
    transition: transform 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.admin-bottom-nav-link::before {
    content: "";
    position: absolute;
    inset: 0.18rem;
    border-radius: 0.88rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(231, 241, 255, 0.78));
    opacity: 0;
    transition: opacity 180ms ease;
}

.admin-bottom-nav-icon,
.admin-bottom-nav-label {
    position: relative;
    z-index: 1;
}

.admin-bottom-nav-icon {
    display: grid;
    place-items: center;
    width: 2.08rem;
    height: 2.08rem;
    border-radius: 0.85rem;
    color: #0754c7;
    background: linear-gradient(135deg, #ffffff, #e9f4ff);
    box-shadow: inset 0 0 0 1px rgba(7, 84, 199, 0.12);
    transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.admin-bottom-nav-icon i {
    font-size: 1.08rem;
    line-height: 1;
}

.admin-bottom-nav-label {
    width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-bottom-nav-link:hover,
.admin-bottom-nav-link:focus {
    color: #0754c7 !important;
    transform: translateY(-2px);
}

.admin-bottom-nav-link:hover::before,
.admin-bottom-nav-link:focus::before,
.admin-bottom-nav-link.active::before {
    opacity: 1;
}

.admin-bottom-nav-link.active {
    color: #ffffff !important;
    border-color: rgba(25, 217, 255, 0.32);
    background: linear-gradient(135deg, #0754c7, #2b7fff 58%, #19d9ff);
    box-shadow: 0 14px 26px rgba(7, 84, 199, 0.22);
}

.admin-bottom-nav-link.active::after {
    content: "";
    position: absolute;
    top: 0.28rem;
    left: 50%;
    width: 1.15rem;
    height: 0.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    transform: translateX(-50%);
}

.admin-bottom-nav-link.active .admin-bottom-nav-icon {
    color: #0754c7;
    background: #ffffff;
    box-shadow:
        0 10px 22px rgba(2, 38, 89, 0.18),
        inset 0 0 0 1px rgba(255, 255, 255, 0.74);
    transform: translateY(-1px);
}

.admin-bottom-nav-link.active .admin-bottom-nav-label {
    color: #ffffff;
}

@media (min-width: 768px) {
    .admin-bottom-nav {
        padding-block: 0.6rem calc(0.6rem + env(safe-area-inset-bottom));
    }

    .admin-bottom-nav-shell {
        display: flex;
        justify-content: center;
        width: fit-content;
        max-width: calc(100% - 2rem);
        gap: 0.5rem;
        border-radius: 999px;
        padding: 0.4rem;
    }

    .admin-bottom-nav-link {
        flex-direction: row;
        min-height: 3rem;
        padding: 0.36rem 0.76rem 0.36rem 0.42rem;
        border-radius: 999px;
    }

    .admin-bottom-nav-link::before {
        border-radius: 999px;
    }

    .admin-bottom-nav-icon {
        width: 2.2rem;
        height: 2.2rem;
        border-radius: 50%;
    }

    .admin-bottom-nav-label {
        width: auto;
        max-width: 8rem;
        font-size: 0.82rem;
    }

    .admin-bottom-nav-link.active::after {
        top: auto;
        bottom: 0.28rem;
    }
}

@media (max-width: 380px) {
    .admin-bottom-nav {
        padding-inline: 0.42rem;
    }

    .admin-bottom-nav-shell {
        gap: 0.22rem;
        padding: 0.28rem;
        border-radius: 1.1rem;
    }

    .admin-bottom-nav-link {
        min-height: 3.45rem;
        border-radius: 0.88rem;
    }

    .admin-bottom-nav-icon {
        width: 1.92rem;
        height: 1.92rem;
    }

    .admin-bottom-nav-label {
        font-size: 0.62rem;
    }
}

/* Blog search and taxonomy filters */
.blog-filter-form {
    width: min(100%, 52rem);
}

.blog-filter-panel {
    display: grid;
    grid-template-columns: minmax(13rem, 1.25fr) minmax(10.5rem, 0.8fr) minmax(9.5rem, 0.75fr) auto auto;
    align-items: center;
    gap: 0.48rem;
    padding: 0.42rem;
    border: 1px solid rgba(7, 84, 199, 0.16);
    border-radius: 1.35rem;
    background:
        radial-gradient(circle at 8% 0%, rgba(25, 217, 255, 0.16), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 255, 0.94));
    box-shadow:
        0 16px 38px rgba(7, 84, 199, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.blog-filter-form .blog-filter-search.input-group {
    padding: 0.18rem;
    box-shadow: none;
}

.blog-filter-form .blog-filter-search.input-group:focus-within {
    transform: none;
}

.blog-filter-select-wrap {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 2.9rem;
    margin: 0;
    padding: 0.18rem 0.42rem 0.18rem 0.18rem;
    border: 1px solid rgba(7, 84, 199, 0.13);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.blog-filter-select-wrap > span {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 2.28rem;
    height: 2.28rem;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, #0754c7, #19d9ff);
    box-shadow: 0 10px 20px rgba(7, 84, 199, 0.16);
}

.blog-filter-select-wrap .form-select {
    min-width: 0;
    min-height: 2.34rem;
    padding-block: 0.3rem;
    padding-left: 0.58rem;
    border: 0 !important;
    border-radius: 999px !important;
    color: #0a2f63 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    font-weight: 800;
}

.blog-filter-select-wrap:focus-within {
    border-color: rgba(25, 217, 255, 0.62);
    box-shadow: 0 0 0 0.2rem rgba(25, 217, 255, 0.13);
}

.blog-filter-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.blog-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.34rem 0.62rem;
    border: 1px solid rgba(7, 84, 199, 0.14);
    border-radius: 999px;
    color: #0754c7;
    background: #eef6ff;
    font-size: 0.86rem;
    font-weight: 900;
}

@media (max-width: 1199.98px) {
    .blog-filter-form {
        width: 100%;
    }

    .blog-filter-panel {
        grid-template-columns: 1fr 1fr;
    }

    .blog-filter-search {
        grid-column: 1 / -1;
    }

    .blog-filter-panel .blog-search-submit,
    .blog-filter-panel .blog-search-clear {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .blog-filter-panel {
        grid-template-columns: 1fr;
        border-radius: 1.25rem;
    }

    .blog-filter-select-wrap {
        border-radius: 1rem;
    }

    .blog-filter-select-wrap .form-select {
        border-radius: 0.82rem !important;
    }
}

/* Blog post detail clears the fixed navbar */
.blog-post-section {
    padding-top: clamp(7.8rem, 12vw, 9.4rem);
}

.blog-post-section article {
    scroll-margin-top: 7.5rem;
}

@media (max-width: 767.98px) {
    .blog-post-section {
        padding-top: 7rem;
    }
}
