/* 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);
}

.footer-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #ecfeff;
    margin-bottom: 0.8rem;
}

.footer-iso-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.48rem;
}

.footer-iso-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    padding: 0.34rem 0.58rem;
    border: 1px solid rgba(25, 217, 255, 0.46);
    border-radius: 999px;
    background: rgba(25, 217, 255, 0.09);
    color: #d7f9ff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.footer-policy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.48rem 1rem;
}

.footer-policy-grid a {
    color: #d8e9ff;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px dashed rgba(25, 217, 255, 0.26);
    padding-bottom: 0.15rem;
}

.footer-policy-grid a:hover {
    color: #7ef9ff;
    border-bottom-color: rgba(25, 217, 255, 0.7);
}

.footer-sitemap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.75rem 1.5rem;
    padding-bottom: 2.25rem;
    margin-bottom: 2.25rem;
    border-bottom: 1px solid var(--ai-line);
}

.footer-sitemap-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.86rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #ecfeff;
    margin-bottom: 0.7rem;
}

.footer-sitemap-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.44rem;
}

.footer-sitemap .footer-sitemap-col .footer-sitemap-links a.footer-sitemap-link,
.footer-sitemap .footer-sitemap-col .footer-sitemap-links a.footer-sitemap-link:visited {
    color: #ffffff !important;
    font-size: 0.82rem;
    line-height: 1.35;
    text-decoration: none;
    opacity: 0.82;
    transition: opacity 150ms;
}

.footer-sitemap .footer-sitemap-col .footer-sitemap-links a.footer-sitemap-link:hover {
    color: #ffffff !important;
    opacity: 1;
}

@media (max-width: 575.98px) {
    .footer-sitemap {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem 1rem;
    }
}
.ai-policy-sidebar,
.ai-policy-content {
    border: 1px solid rgba(2, 11, 27, 0.15);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.95));
    box-shadow: 0 16px 38px rgba(2, 11, 27, 0.08);
    border-radius: 1.2rem;
}

.ai-policy-sidebar {
    position: sticky;
    top: 98px;
}

.ai-policy-link-grid {
    display: grid;
    gap: 0.42rem;
    max-height: 420px;
    overflow: auto;
}

.ai-policy-link {
    border: 1px solid rgba(17, 62, 150, 0.22);
    border-radius: 0.75rem;
    padding: 0.42rem 0.62rem;
    color: #143a7b;
    font-size: 0.84rem;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.05);
    text-decoration: none;
    transition: all 180ms ease;
}

.ai-policy-link:hover {
    color: #0b1f4d;
    border-color: rgba(17, 62, 150, 0.4);
    background: rgba(37, 99, 235, 0.12);
}

.ai-policy-link.is-active {
    color: #ffffff;
    border-color: rgba(2, 132, 199, 0.9);
    background: linear-gradient(120deg, #1d4ed8 0%, #0284c7 100%);
}

.ai-iso-badges {
    display: grid;
    gap: 0.5rem;
}

.ai-iso-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid rgba(17, 62, 150, 0.24);
    border-radius: 0.8rem;
    padding: 0.44rem 0.6rem;
    color: #153a79;
    background: rgba(59, 130, 246, 0.09);
    font-weight: 800;
    font-size: 0.84rem;
}

.ai-policy-content .lead {
    color: #213558;
    font-size: 1.02rem;
    line-height: 1.72;
}

.ai-policy-section {
    border-top: 1px solid rgba(2, 11, 27, 0.12);
    margin-top: 0.95rem;
    padding-top: 0.95rem;
}

.ai-policy-section h3 {
    color: #0f274f;
    font-family: var(--font-heading);
}

.ai-policy-section p,
.ai-policy-section li {
    color: #2c4162;
}

.ai-policy-section ul {
    padding-left: 1.15rem;
}

/* 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 {
    max-width: 100%;
    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 {
    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 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100%;
    padding: clamp(1.45rem, 2.5vw, 2rem) !important;
    border: 1px solid rgba(7, 84, 199, 0.14);
    border-radius: 1.15rem;
    background: linear-gradient(145deg, #ffffff, #f2f8ff);
    box-shadow: 0 16px 38px rgba(7, 84, 199, 0.08);
}

.amc-feature-grid {
    --bs-gutter-x: clamp(1.2rem, 2.6vw, 2.2rem);
    --bs-gutter-y: clamp(1.2rem, 2.3vw, 1.9rem);
    margin-inline: clamp(0.1rem, 1vw, 0.75rem);
}

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

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

.amc-feature-grid > [class*="col-"] {
    display: flex;
}

.amc-feature-grid > [class*="col-"] .amc-feature-card {
    width: 100%;
}

.amc-plan-card {
    border-radius: 1.1rem;
    border-color: rgba(7, 84, 199, 0.2) !important;
    background: linear-gradient(150deg, #ffffff, #eef6ff);
    box-shadow: 0 16px 42px rgba(7, 84, 199, 0.1);
}

.amc-plan-card .card-body {
    padding: clamp(1.25rem, 2.5vw, 1.9rem);
}

.amc-plan-price {
    margin-top: 0.65rem;
    margin-bottom: 0.15rem;
    color: #0a2f63;
    font-size: clamp(1.02rem, 2.1vw, 1.28rem);
    line-height: 1.45;
}

@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: 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: 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;
    }
}

/* Requested hero image override */
.hero-cyber {
    background: url('../img/solutions-stock/cyber.jpg') center/cover no-repeat !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;
    }
}

/* Keep the floating chat widget and PWA install button clear of the
   full-width admin bottom nav on mobile, where both would otherwise
   sit in the same bottom strip and overlap it. */
@media (max-width: 767.98px) {
    body:has(.admin-bottom-nav) .ai-faq-chat,
    body:has(.admin-bottom-nav) .pwa-install-button {
        bottom: calc(5.75rem + env(safe-area-inset-bottom)) !important;
    }
}

/* 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;
    }
}

.tally-cloud-main-visual {
    max-height: 420px;
    object-fit: contain;
}

.tally-page-map-section {
    margin: -1.5rem 0 2.75rem;
}

.tally-page-map {
    border-radius: 1.1rem;
    box-shadow: 0 20px 55px rgba(7, 84, 199, 0.1);
}

.tally-page-map .accordion-item {
    overflow: hidden;
    border: 1px solid rgba(7, 84, 199, 0.14);
    border-radius: 1.1rem;
    background:
        radial-gradient(circle at 92% 12%, rgba(103, 232, 249, 0.18), transparent 16rem),
        linear-gradient(145deg, #ffffff, #eef6ff);
}

.tally-page-map .accordion-button {
    gap: 1rem;
    padding: 1.15rem clamp(1rem, 2.4vw, 1.6rem);
    color: #0a2f63;
    background: transparent;
    box-shadow: none;
}

.tally-page-map .accordion-button:not(.collapsed) {
    color: #0a2f63;
    background: transparent;
    box-shadow: inset 0 -1px 0 rgba(7, 84, 199, 0.1);
}

.tally-page-map-current {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.tally-page-map-count,
.tally-page-map-step,
.tally-page-map-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.tally-page-map-count {
    width: 3rem;
    height: 3rem;
    border-radius: 0.95rem;
    color: #ffffff;
    background: linear-gradient(145deg, #0754c7, #0891b2);
    font-weight: 900;
    letter-spacing: 0;
}

.tally-page-map-label {
    display: block;
    color: #55708f;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tally-page-map-current strong {
    display: block;
    font-size: clamp(1rem, 2vw, 1.22rem);
}

.tally-page-map .accordion-body {
    padding: clamp(1rem, 2.4vw, 1.35rem);
}

.tally-page-map-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.8rem;
}

.tally-page-map-link {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: 0.65rem;
    padding: 0.95rem;
    border: 1px solid rgba(7, 84, 199, 0.12);
    border-radius: 0.95rem;
    color: #0a2f63;
    background: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tally-page-map-link:hover,
.tally-page-map-link:focus {
    color: #0754c7;
    border-color: rgba(7, 84, 199, 0.3);
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(7, 84, 199, 0.12);
    transform: translateY(-2px);
}

.tally-page-map-link.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(145deg, #0b5ed7, #0c7fa4);
    box-shadow: 0 16px 38px rgba(7, 84, 199, 0.18);
}

.tally-page-map-link strong,
.tally-page-map-link small {
    display: block;
}

.tally-page-map-link strong {
    font-size: 0.95rem;
    line-height: 1.25;
}

.tally-page-map-link small {
    margin-top: 0.3rem;
    color: #55708f;
    font-size: 0.78rem;
    line-height: 1.45;
}

.tally-page-map-link.active strong,
.tally-page-map-link.active small {
    color: #ffffff;
}

.tally-page-map-step {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    color: #0754c7;
    background: #eef6ff;
    font-size: 0.76rem;
    font-weight: 900;
}

.tally-page-map-link.active .tally-page-map-step {
    color: #0754c7;
    background: #ffffff;
}

.tally-page-map-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.8rem;
    color: #0754c7;
    background: rgba(7, 84, 199, 0.08);
    font-size: 1.1rem;
}

.tally-page-map-link.active .tally-page-map-icon {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
}

.tally-breadcrumb-section {
    margin: 0.55rem 0 2.75rem;
    position: relative;
    z-index: 1;
}

.tally-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(7, 84, 199, 0.14);
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff, #eef6ff);
    box-shadow: 0 16px 40px rgba(7, 84, 199, 0.08);
}

.tally-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tally-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #55708f;
    font-size: 0.92rem;
    font-weight: 800;
}

.tally-breadcrumb li + li::before {
    color: #8aa4c2;
    content: "/";
}

.tally-breadcrumb a {
    color: #0754c7;
    text-decoration: none;
}

.tally-breadcrumb a:hover,
.tally-breadcrumb a:focus {
    color: #0891b2;
}

.tally-breadcrumb li[aria-current="page"] {
    color: #0a2f63;
}

.tally-breadcrumb-current {
    flex: 0 0 auto;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(145deg, #0b5ed7, #0c7fa4);
    font-size: 0.78rem;
    font-weight: 900;
}

.tally-breadcrumb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.tally-breadcrumb-pills a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.72rem;
    border: 1px solid rgba(7, 84, 199, 0.12);
    border-radius: 999px;
    color: #0a2f63;
    background: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
}

.tally-breadcrumb-pills a span {
    color: #0754c7;
    font-size: 0.72rem;
    font-weight: 900;
}

.tally-breadcrumb-pills a.active {
    color: #ffffff;
    border-color: transparent;
    background: linear-gradient(145deg, #0b5ed7, #0c7fa4);
}

.tally-breadcrumb-pills a.active span {
    color: #ffffff;
}

.solution-partner-section {
    background:
        radial-gradient(circle at 10% 0%, rgba(103, 232, 249, 0.14), transparent 18rem),
        linear-gradient(180deg, #ffffff, #f6fbff);
}

.solution-partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}

.solution-partner-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.2rem;
    border: 1px solid rgba(7, 84, 199, 0.12);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 42px rgba(7, 84, 199, 0.08);
}

.solution-partner-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5.25rem;
    margin-bottom: 1rem;
    padding: 0.9rem;
    border-radius: 0.9rem;
    background: linear-gradient(145deg, #ffffff, #eef6ff);
}

.solution-partner-logo {
    max-width: 100%;
    max-height: 3.1rem;
    object-fit: contain;
}

.solution-partner-card:nth-child(4) .solution-partner-logo {
    max-height: 4.4rem;
}

.solution-partner-fallback {
    color: #0754c7;
    font-size: 1.02rem;
    font-weight: 900;
    text-align: center;
}

.solution-partner-card h3 {
    margin-bottom: 0.45rem;
    color: #0a2f63;
}

.solution-partner-card p {
    margin-bottom: 0;
    color: #55708f;
}

.accordion-button:not(.collapsed) {
    color: #ffffff;
    background: linear-gradient(145deg, #0b5ed7, #0c7fa4);
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.18);
}

.accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.tally-tss-hero-card,
.tally-tss-partner-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(7, 84, 199, 0.12);
    border-radius: 1.1rem;
    background:
        radial-gradient(circle at 80% 12%, rgba(103, 232, 249, 0.18), transparent 15rem),
        linear-gradient(145deg, #ffffff, #eef6ff);
    box-shadow: 0 18px 50px rgba(7, 84, 199, 0.09);
}

.tally-tss-hero-card img,
.tally-tss-partner-card img {
    max-height: 360px;
    object-fit: contain;
}

.tally-tss-offer {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid rgba(7, 84, 199, 0.14);
    border-radius: 1rem;
    background: linear-gradient(145deg, #eef6ff, #ffffff);
}

.tally-tss-offer strong {
    color: #0754c7;
    font-size: 1.02rem;
}

.tally-tss-offer span {
    color: #55708f;
}

.tally-tss-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid rgba(7, 84, 199, 0.12);
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(7, 84, 199, 0.07);
}

.tally-tss-feature-image {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 10.5rem;
    padding: 0.8rem;
    border-radius: 0.95rem;
    background: #eef6ff;
}

.tally-tss-feature-image img {
    max-width: 100%;
    max-height: 9rem;
    object-fit: contain;
}

.tally-tss-feature h3 {
    margin-bottom: 0.45rem;
}

.tally-tss-feature p {
    margin-bottom: 0;
    color: #55708f;
}

.contact-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.ai-inquiry-context {
    color: rgba(255, 255, 0.78);
    font-size: 0.9rem;
    font-weight: 700;
}

.tally-cloud-visual-panel,
.tally-flow-card,
.tally-cloud-benefit,
.tally-price-card .tally-price-image {
    border: 1px solid rgba(7, 84, 199, 0.12);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.86));
}

.tally-cloud-visual-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: 1.1rem;
    box-shadow: 0 18px 50px rgba(7, 84, 199, 0.09);
}

.tally-cloud-visual-panel img {
    max-height: 520px;
    object-fit: contain;
}

.tally-cloud-benefit {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-height: 100%;
    padding: 1rem;
    border-radius: 1rem;
}

.tally-cloud-benefit-icon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    object-fit: contain;
    padding: 0.65rem;
    border-radius: 0.9rem;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(7, 84, 199, 0.08);
}

.tally-cloud-benefit h3,
.tally-flow-card h3,
.tally-price-card h3 {
    margin-bottom: 0.35rem;
}

.tally-cloud-benefit p,
.tally-flow-card p {
    margin-bottom: 0;
}

.tally-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.tally-flow-card {
    position: relative;
    min-height: 100%;
    padding: 1.25rem;
    border-radius: 1.1rem;
    box-shadow: 0 16px 44px rgba(7, 84, 199, 0.08);
}

.tally-flow-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    color: #ffffff;
    background: #0754c7;
    font-weight: 900;
}

.tally-flow-card > i {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    color: #0754c7;
    font-size: 1.5rem;
}

.tally-price-card .tally-price-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    margin: 0 auto 1rem;
    padding: 0.85rem;
    border-radius: 1rem;
}

.tally-price-card .tally-price-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tally-custom-feature {
    text-align: left;
}

.tally-custom-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.9rem;
    height: 4.9rem;
    margin-bottom: 1rem;
    border-radius: 1.05rem;
    background:
        linear-gradient(145deg, rgba(7, 84, 199, 0.98), rgba(8, 145, 178, 0.92));
    box-shadow: 0 16px 36px rgba(7, 84, 199, 0.16);
    overflow: hidden;
}

.tally-custom-icon span {
    position: absolute;
    top: 0.8rem;
    left: 0.8rem;
    width: 1.32rem;
    height: 1.32rem;
    background: #ffd43b;
    box-shadow:
        1.2rem 0 0 rgba(255, 255, 255, 0.22),
        0 1.2rem 0 rgba(255, 255, 255, 0.16),
        1.2rem 1.2rem 0 rgba(255, 212, 59, 0.82);
}

.tally-custom-icon i {
    position: relative;
    z-index: 1;
    margin-top: 0.85rem;
    margin-left: 0.85rem;
    color: #ffffff;
    font-size: 1.6rem;
}

.tally-custom-feature h3 {
    margin-bottom: 0.55rem;
}

.tally-custom-feature p {
    margin-bottom: 0;
}

.tally-server-visual,
.tally-server-brand-card {
    overflow: hidden;
}

.tally-server-brand-card {
    padding: clamp(1.25rem, 3.2vw, 2.75rem);
    background:
        radial-gradient(circle at 78% 16%, rgba(25, 217, 255, 0.24), transparent 22rem),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 255, 0.88));
}

.tally-server-brand-card img {
    width: min(100%, 720px);
    max-height: 560px;
    object-fit: contain;
    box-shadow: 0 24px 58px rgba(7, 84, 199, 0.12);
}

.tally-server-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.tally-server-status-grid div {
    padding: 0.75rem;
    border: 1px solid rgba(7, 84, 199, 0.12);
    border-radius: 0.95rem;
    background: linear-gradient(145deg, #ffffff, #eef6ff);
}

.tally-server-status-grid span,
.tally-server-status-grid strong {
    display: block;
}

.tally-server-status-grid span {
    color: #55708f;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tally-server-status-grid strong {
    color: #0a2f63;
    font-size: 0.95rem;
    font-weight: 900;
}

.tally-server-benefit {
    position: relative;
    overflow: hidden;
}

.tally-server-benefit-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 15.5rem;
    margin: -0.25rem -0.25rem 1rem;
    padding: 1.25rem;
    border-radius: 1rem;
    background: linear-gradient(145deg, rgba(238, 246, 255, 0.96), rgba(255, 255, 255, 0.88));
}

.tally-server-benefit-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tally-server-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 3.1rem;
    margin-bottom: 0.85rem;
    border-radius: 0.9rem;
    color: #ffffff;
    background: linear-gradient(145deg, #0754c7, #0891b2);
    box-shadow: 0 14px 32px rgba(7, 84, 199, 0.16);
}

.tally-server-benefit-icon i {
    font-size: 1.35rem;
}

.tally-server-benefit h3,
.tally-server-delivery-item h3 {
    margin-bottom: 0.45rem;
}

.tally-server-benefit p,
.tally-server-delivery-item p {
    margin-bottom: 0;
}

.tally-server-official-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: clamp(1rem, 2.5vw, 1.8rem);
    border: 1px solid rgba(7, 84, 199, 0.12);
    border-radius: 1.1rem;
    background: #ffffff;
    box-shadow: 0 18px 50px rgba(7, 84, 199, 0.08);
}

.tally-server-official-visual img {
    max-height: 410px;
    object-fit: contain;
}

.tally-server-seller-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(7, 84, 199, 0.12);
    border-radius: 1.1rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.86));
    box-shadow: 0 18px 50px rgba(7, 84, 199, 0.09);
}

.tally-server-seller-card img {
    max-height: 470px;
    object-fit: contain;
}

.tally-server-delivery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.4rem;
}

.tally-server-delivery-item {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem;
    border: 1px solid rgba(7, 84, 199, 0.12);
    border-radius: 1rem;
    background: #ffffff;
}

.tally-server-delivery-item > i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.85rem;
    color: #0754c7;
    background: #eef6ff;
    font-size: 1.25rem;
}

@media (max-width: 991.98px) {
    .tally-page-map-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tally-flow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tally-server-delivery-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .tally-page-map-section {
        margin-top: -1rem;
    }

    .tally-breadcrumb-section {
        margin-top: 0.35rem;
    }

    .tally-breadcrumb {
        align-items: flex-start;
        flex-direction: column;
    }

    .tally-page-map-grid {
        grid-template-columns: 1fr;
    }

    .tally-page-map-current {
        align-items: flex-start;
    }

    .tally-cloud-benefit {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .tally-tss-feature {
        align-items: center;
        text-align: center;
    }

    .tally-flow-grid {
        grid-template-columns: 1fr;
    }

    .tally-custom-feature {
        text-align: center;
    }

    .tally-server-status-grid {
        grid-template-columns: 1fr;
    }

    .tally-server-benefit,
    .tally-server-delivery-item {
        text-align: center;
    }

    .tally-server-delivery-item {
        flex-direction: column;
        align-items: center;
    }
}

/* Final visible state overrides */
.accordion .accordion-button:not(.collapsed) {
    color: #0754c7 !important;
    background: #ffffff !important;
    box-shadow:
        inset 0 0 0 2px #0a2f63,
        inset 0 -1px 0 rgba(7, 84, 199, 0.12) !important;
}

.accordion .accordion-button:not(.collapsed)::after {
    filter: none !important;
}

.tally-breadcrumb-pills a.active {
    color: #0754c7 !important;
    border: 2px solid #0a2f63 !important;
    background: #ffffff !important;
    box-shadow: 0 10px 26px rgba(7, 84, 199, 0.12);
}

.tally-breadcrumb-pills a.active span {
    color: #0754c7 !important;
}

/* Solution page stock hero refresh */
.hero-software {
    background:
        linear-gradient(140deg, rgba(2, 8, 23, 0.52), rgba(6, 26, 61, 0.62)),
        url('../img/solutions-stock/software.jpg') center/cover no-repeat !important;
}

.hero-cyber {
    background:
        linear-gradient(140deg, rgba(1, 10, 28, 0.6), rgba(4, 18, 43, 0.68)),
        url('../img/solutions-stock/cyber.jpg') center/cover no-repeat !important;
}

.hero-storage {
    background:
        linear-gradient(140deg, rgba(2, 8, 23, 0.52), rgba(6, 26, 61, 0.62)),
        url('../img/solutions-stock/storage.jpg') center/cover no-repeat !important;
}

.hero-networking {
    background:
        linear-gradient(140deg, rgba(2, 8, 23, 0.54), rgba(6, 26, 61, 0.62)),
        url('../img/solutions-stock/networking.jpg') center/cover no-repeat !important;
}

.hero-cloud {
    background:
        linear-gradient(140deg, rgba(2, 8, 23, 0.52), rgba(6, 26, 61, 0.62)),
        url('../img/solutions-stock/cloud.jpg') center/cover no-repeat !important;
}

.hero-web-development {
    background:
        linear-gradient(140deg, rgba(2, 8, 23, 0.52), rgba(6, 26, 61, 0.62)),
        url('../img/Website-Banner.jpg') center/cover no-repeat !important;
}

.hero-social-media {
    background:
        linear-gradient(140deg, rgba(3, 17, 38, 0.56), rgba(6, 26, 61, 0.64)),
        url('../img/service5.webp') center/cover no-repeat !important;
}

.bg-dark-blue {
    background:
        radial-gradient(circle at 50% 0%, rgba(38, 118, 243, 0.1), transparent 28rem), /* Subtle radial gradient from ai-cyan */
        linear-gradient(135deg, #5776ff 0%, #061a3d 45%, #020817 100%) !important; /* Deep blue linear gradient */
}

.bg-dark-blue h2,
.bg-dark-blue h3,
.bg-dark-blue h5,
.bg-dark-blue h6 {
    color: #ffffff !important; /* White for headings */
}

.bg-dark-blue p,
.bg-dark-blue span:not(.ai-kicker):not(.badge):not(.btn),
.bg-dark-blue .gem-product-card p,
.bg-dark-blue .tally-dashboard-card p,
.bg-dark-blue .tally-server-delivery-item p,
.bg-dark-blue .tally-cloud-benefit p,
.bg-dark-blue .accordion-item p,
.bg-dark-blue .ai-check-grid div {
    color: #b0c4de !important; /* Light steel blue for general text */
}

.bg-dark-blue .ai-kicker {
    color: #6ea8fe !important; /* Keep kicker light blue */
}

.bg-dark-blue .gem-product-card,
.bg-dark-blue .tally-dashboard-card,
.bg-dark-blue .tally-server-delivery-item,
.bg-dark-blue .tally-cloud-benefit,
.bg-dark-blue .accordion-item {
    background: rgba(255, 255, 255, 0.08) !important; /* Slightly more opaque white for card backgrounds */
    border-color: rgba(110, 168, 254, 0.2) !important; /* Slightly more opaque border */
}

.bg-dark-blue .ai-check-grid div {
    background: rgba(255, 255, 255, 0.1) !important; /* Slightly more opaque white for check grid items */
    border-color: rgba(110, 168, 254, 0.25) !important; /* Slightly more opaque border */
}

.bg-dark-blue .accordion-button {
    color: #b0c4de !important; /* Accordion button text */
}

.bg-dark-blue .accordion-button:not(.collapsed) {
    color: #ffffff !important; /* Active accordion button text */
    background: rgba(255, 255, 255, 0.12) !important; /* Active accordion button background */
}

/* Final authoritative hero mapping: keep page-specific hero images visible */
.hero-section:not(.ai-hero) {
    background-color: transparent !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

.hero-about { background-image: url('/img/heroes/about.jpg') !important; }
.hero-contact { background-image: url('/img/heroes/contact.jpg') !important; }
.hero-software { background-image: url('/img/heroes/solutions-software.jpg') !important; }
.hero-cyber { background-image: url('/img/heroes/solutions-cyber.jpg') !important; }
.hero-storage { background-image: url('/img/heroes/solutions-storage.jpg') !important; }
.hero-networking { background-image: url('/img/heroes/solutions-networking.jpg') !important; }
.hero-cloud { background-image: url('/img/heroes/solutions-cloud.jpg') !important; }
.hero-web-development { background-image: url('/img/heroes/solutions-web-development.jpg') !important; }
.hero-data-recovery { background-image: url('/img/heroes/services-data-recovery.jpg') !important; }
.hero-data-backup { background-image: url('/img/heroes/services-data-backup.jpg') !important; }
.hero-it-rentals { background-image: url('/img/heroes/services-it-rentals.jpg') !important; }
.hero-print { background-image: url('/img/heroes/services-print-services.jpg') !important; }
.hero-cartridges { background-image: url('/img/heroes/services-cartridges-toner.jpg') !important; }
.hero-laptop-repairs { background-image: url('/img/heroes/services-laptop-repairs.jpg') !important; }
.hero-hardware { background-image: url('/img/heroes/services-hardware-sales.jpg') !important; }
.hero-social-media { background-image: url('/img/heroes/services-social-media-marketing.jpg') !important; }
.hero-amc { background-image: url('/img/heroes/support-amc.jpg') !important; }
.hero-gem { background-image: url('/img/heroes/support-gem.jpg') !important; }
.hero-tally-overview { background-image: url('/img/heroes/tally-overview.jpg') !important; }
.hero-tally-services { background-image: url('/img/heroes/tally-services.jpg') !important; }
.hero-tally-customization { background-image: url('/img/heroes/tally-customization.jpg') !important; }
.hero-tally-prime { background-image: url('/img/heroes/tally-prime.jpg') !important; }
.hero-tally-server { background-image: url('/img/heroes/tally-server.jpg') !important; }
.hero-tally-cloud { background-image: url('/img/heroes/tally-cloud.jpg') !important; }
.hero-tally-whatsapp { background-image: url('/img/heroes/tally-whatsapp.jpg') !important; }

/* Restored hero behavior: rotate stock images and remove dark tally overlays */
.hero-section.hero-rotating-stock {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  transition: background-image 0.45s ease-in-out;
}

.hero-section.hero-rotating-stock::before,
.hero-section.hero-rotating-stock::after {
  background: transparent !important;
  opacity: 0 !important;
}

.hero-section.hero-rotating-stock .hero-text-container {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 255, 0.88)) !important;
  border: 1px solid rgba(29, 78, 216, 0.12) !important;
  box-shadow: 0 18px 34px rgba(2, 6, 23, 0.14) !important;
  color: #0b3d91 !important;
}

.hero-section.hero-rotating-stock .hero-text-container h1,
.hero-section.hero-rotating-stock .hero-text-container .lead,
.hero-section.hero-rotating-stock p.lead {
  color: #0b3d91 !important;
  text-shadow: none !important;
}

/* Tally pages: no dark gradient look */
.hero-tally-overview,
.hero-tally-services,
.hero-tally-customization,
.hero-tally-prime,
.hero-tally-server,
.hero-tally-cloud,
.hero-tally-whatsapp,
.hero-tally-upgrade {
  background-image: none !important;
}

/* Mobile navbar should follow light site theme */
@media (max-width: 1199.98px) {
  .navbar-custom .navbar-collapse {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(7, 84, 199, 0.14) !important;
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.12) !important;
  }

  .navbar-custom .navbar-collapse .nav-link,
  .navbar-custom .navbar-collapse .dropdown-item {
    color: #0b3d91 !important;
    text-shadow: none !important;
  }

  .navbar-custom .navbar-collapse .nav-link:hover,
  .navbar-custom .navbar-collapse .nav-link:focus,
  .navbar-custom .navbar-collapse .dropdown-item:hover,
  .navbar-custom .navbar-collapse .dropdown-item:focus {
    color: #0754c7 !important;
    background: rgba(7, 84, 199, 0.08) !important;
  }

  .navbar-custom .navbar-collapse .dropdown-menu {
    background: #ffffff !important;
    border: 1px solid rgba(7, 84, 199, 0.16) !important;
    box-shadow: 0 14px 28px rgba(2, 6, 23, 0.12) !important;
  }

  .navbar-custom .navbar-collapse .navbar-search .input-group-text,
  .navbar-custom .navbar-collapse .navbar-search .form-control {
    background: #f8fbff !important;
    color: #0b3d91 !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
  }

  .navbar-custom .navbar-collapse .navbar-search .form-control::placeholder {
    color: rgba(71, 85, 105, 0.85) !important;
  }
}

/* Restore old light white-blue theme on all Tally pages */
body:has(.hero-tally-overview) .ai-section,
body:has(.hero-tally-services) .ai-section,
body:has(.hero-tally-customization) .ai-section,
body:has(.hero-tally-prime) .ai-section,
body:has(.hero-tally-server) .ai-section,
body:has(.hero-tally-cloud) .ai-section,
body:has(.hero-tally-whatsapp) .ai-section {
  background:
    radial-gradient(circle at 12% 10%, rgba(147, 197, 253, 0.22), transparent 34rem),
    radial-gradient(circle at 86% 0%, rgba(186, 230, 253, 0.22), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 48%, #eef6ff 100%) !important;
}

body:has(.hero-tally-overview) .ai-section.bg-dark-blue,
body:has(.hero-tally-services) .ai-section.bg-dark-blue,
body:has(.hero-tally-customization) .ai-section.bg-dark-blue,
body:has(.hero-tally-prime) .ai-section.bg-dark-blue,
body:has(.hero-tally-server) .ai-section.bg-dark-blue,
body:has(.hero-tally-cloud) .ai-section.bg-dark-blue,
body:has(.hero-tally-whatsapp) .ai-section.bg-dark-blue {
  background:
    radial-gradient(circle at 10% 18%, rgba(191, 219, 254, 0.28), transparent 30rem),
    radial-gradient(circle at 92% 2%, rgba(125, 211, 252, 0.2), transparent 24rem),
    linear-gradient(165deg, #f8fcff 0%, #edf5ff 56%, #e6f0ff 100%) !important;
}

body:has(.hero-tally-overview) .ai-section .ai-section-head h2,
body:has(.hero-tally-services) .ai-section .ai-section-head h2,
body:has(.hero-tally-customization) .ai-section .ai-section-head h2,
body:has(.hero-tally-prime) .ai-section .ai-section-head h2,
body:has(.hero-tally-server) .ai-section .ai-section-head h2,
body:has(.hero-tally-cloud) .ai-section .ai-section-head h2,
body:has(.hero-tally-whatsapp) .ai-section .ai-section-head h2,
body:has(.hero-tally-overview) .ai-section h3,
body:has(.hero-tally-services) .ai-section h3,
body:has(.hero-tally-customization) .ai-section h3,
body:has(.hero-tally-prime) .ai-section h3,
body:has(.hero-tally-server) .ai-section h3,
body:has(.hero-tally-cloud) .ai-section h3,
body:has(.hero-tally-whatsapp) .ai-section h3 {
  color: #0f172a !important;
}

body:has(.hero-tally-overview) .ai-section p,
body:has(.hero-tally-services) .ai-section p,
body:has(.hero-tally-customization) .ai-section p,
body:has(.hero-tally-prime) .ai-section p,
body:has(.hero-tally-server) .ai-section p,
body:has(.hero-tally-cloud) .ai-section p,
body:has(.hero-tally-whatsapp) .ai-section p,
body:has(.hero-tally-overview) .ai-section li,
body:has(.hero-tally-services) .ai-section li,
body:has(.hero-tally-customization) .ai-section li,
body:has(.hero-tally-prime) .ai-section li,
body:has(.hero-tally-server) .ai-section li,
body:has(.hero-tally-cloud) .ai-section li,
body:has(.hero-tally-whatsapp) .ai-section li {
  color: #334155 !important;
}

/* Footer text should remain white */
.footer-custom,
.footer-custom p,
.footer-custom li,
.footer-custom a,
.footer-copy,
.footer-address,
.footer-contact {
  color: #ffffff !important;
}

/* Hero heading/subheading should be dark blue */
.hero-section .hero-text-container h1,
.hero-section .hero-text-container .lead,
.hero-section .hero-text-container p.lead {
  color: #0b3d91 !important;
}

/* Text on white/light surfaces should be dark blue */
.bg-white,
.bg-light,
[style*="background: #fff"],
[style*="background:#fff"],
[style*="background-color: #fff"],
[style*="background-color:#fff"],
[style*="background: white"],
[style*="background-color: white"] {
  color: #0b3d91 !important;
}

.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6,
.bg-light h1, .bg-light h2, .bg-light h3, .bg-light h4, .bg-light h5, .bg-light h6,
.bg-white p, .bg-light p,
.bg-white li, .bg-light li,
.bg-white .lead, .bg-light .lead,
[style*="background: #fff"] h1, [style*="background:#fff"] h1,
[style*="background-color: #fff"] h1, [style*="background-color:#fff"] h1,
[style*="background: white"] h1, [style*="background-color: white"] h1,
[style*="background: #fff"] h2, [style*="background:#fff"] h2,
[style*="background-color: #fff"] h2, [style*="background-color:#fff"] h2,
[style*="background: white"] h2, [style*="background-color: white"] h2,
[style*="background: #fff"] h3, [style*="background:#fff"] h3,
[style*="background-color: #fff"] h3, [style*="background-color:#fff"] h3,
[style*="background: white"] h3, [style*="background-color: white"] h3,
[style*="background: #fff"] p, [style*="background:#fff"] p,
[style*="background-color: #fff"] p, [style*="background-color:#fff"] p,
[style*="background: white"] p, [style*="background-color: white"] p,
[style*="background: #fff"] li, [style*="background:#fff"] li,
[style*="background-color: #fff"] li, [style*="background-color:#fff"] li,
[style*="background: white"] li, [style*="background-color: white"] li,
[style*="background: #fff"] .lead, [style*="background:#fff"] .lead,
[style*="background-color: #fff"] .lead, [style*="background-color:#fff"] .lead,
[style*="background: white"] .lead, [style*="background-color: white"] .lead {
  color: #0b3d91 !important;
}

/* Final navbar + hero text polish (mobile-first consistency) */
.hero-section .hero-text-container {
  color: #0b3d91 !important;
}

.hero-section .hero-text-container h1,
.hero-section .hero-text-container h2,
.hero-section .hero-text-container p,
.hero-section .hero-text-container .lead {
  color: #0b3d91 !important;
}

@media (max-width: 1199.98px) {
  .navbar-custom {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(7, 84, 199, 0.16) !important;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.1) !important;
  }

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

  .navbar-custom .navbar-toggler {
    color: #0b3d91 !important;
    border-color: rgba(11, 61, 145, 0.35) !important;
    background: rgba(255, 255, 255, 0.94) !important;
  }

  .navbar-custom .navbar-toggler-icon {
    filter: invert(18%) sepia(84%) saturate(1795%) hue-rotate(205deg) brightness(88%) contrast(97%);
  }
}

/* Tally Prime: new customer license section text in dark blue */
.tally-prime-license-section .gem-product-card,
.tally-prime-license-section .gem-product-card h1,
.tally-prime-license-section .gem-product-card h2,
.tally-prime-license-section .gem-product-card h3,
.tally-prime-license-section .gem-product-card p,
.tally-prime-license-section .gem-product-card .ai-check-grid,
.tally-prime-license-section .gem-product-card .ai-check-grid div,
.tally-prime-license-section .gem-product-card .ai-kicker,
.tally-prime-license-section .gem-product-card i {
  color: #0b3d91 !important;
}

/* Tally overview awards and accolades gallery */
.tally-awards-section {
  overflow: hidden;
}

.tally-awards-section .ai-lead {
  max-width: 760px;
}

.tally-awards-highlight {
  padding: 1.35rem;
  border: 1px solid rgba(7, 84, 199, 0.14);
  border-radius: 1.25rem;
  background:
    radial-gradient(circle at 90% 0%, rgba(125, 211, 252, 0.24), transparent 15rem),
    #ffffff;
  box-shadow: 0 16px 42px rgba(2, 6, 23, 0.08);
}

.tally-awards-highlight strong {
  display: block;
  margin-bottom: 0.55rem;
  color: #0b3d91 !important;
  font-size: 1.08rem;
}

.tally-awards-highlight p {
  margin: 0;
  color: #334155 !important;
}

.tally-awards-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tally-awards-stats div {
  min-height: 132px;
  padding: 1.1rem;
  border: 1px solid rgba(7, 84, 199, 0.14);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 32px rgba(2, 6, 23, 0.06);
}

.tally-awards-stats i {
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  margin-bottom: 0.75rem;
  border-radius: 0.85rem;
  color: #ffffff;
  background: linear-gradient(135deg, #0754c7, #19d9ff);
}

.tally-awards-stats b,
.tally-awards-stats span {
  display: block;
}

.tally-awards-stats b {
  color: #0f172a !important;
  font-size: 1rem;
}

.tally-awards-stats span {
  margin-top: 0.28rem;
  color: #475569 !important;
  line-height: 1.5;
}

.tally-awards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 1.25rem;
  align-items: start;
}

.tally-awards-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 199, 0.16);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.1);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.tally-awards-card:hover {
  transform: translateY(-4px);
  border-color: rgba(7, 84, 199, 0.32);
  box-shadow: 0 18px 42px rgba(2, 6, 23, 0.14);
}

.tally-awards-card.is-featured {
  grid-column: span 2;
}

.tally-awards-card.is-portrait {
  grid-row: span 2;
}

.tally-awards-link {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eaf4ff;
}

.tally-awards-card.is-featured .tally-awards-link {
  aspect-ratio: 16 / 9;
}

.tally-awards-card.is-portrait .tally-awards-link {
  aspect-ratio: 3 / 4;
}

.tally-awards-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 23, 0.02) 55%, rgba(2, 8, 23, 0.34) 100%);
}

.tally-awards-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--award-position, center center);
  display: block;
  transition: transform 360ms ease;
}

.tally-awards-card:hover img {
  transform: scale(1.035);
}

.tally-awards-link span {
  position: absolute;
  left: 0.85rem;
  top: 0.85rem;
  z-index: 2;
  display: inline-flex;
  padding: 0.28rem 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  color: #ffffff !important;
  background: rgba(7, 84, 199, 0.9);
  box-shadow: 0 8px 18px rgba(2, 8, 23, 0.22);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.tally-awards-card figcaption {
  padding: 1rem 1.05rem 1.15rem;
}

.tally-awards-card figcaption strong {
  display: block;
  color: #0f172a !important;
  font-size: 1.08rem;
  line-height: 1.28;
}

.tally-awards-card figcaption p {
  margin: 0.45rem 0 0;
  color: #475569 !important;
  font-size: 0.94rem;
  line-height: 1.55;
}

@media (max-width: 991.98px) {
  .tally-awards-stats {
    grid-template-columns: 1fr;
  }

  .tally-awards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tally-awards-card.is-featured,
  .tally-awards-card.is-portrait {
    grid-column: span 1;
    grid-row: auto;
  }
}

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

  .tally-awards-card,
  .tally-awards-card.is-featured,
  .tally-awards-card.is-portrait {
    grid-column: span 1;
    grid-row: auto;
  }

  .tally-awards-card.is-featured .tally-awards-link,
  .tally-awards-card .tally-awards-link {
    aspect-ratio: 4 / 3;
  }

  .tally-awards-card.is-portrait .tally-awards-link {
    aspect-ratio: 3 / 4;
  }
}

/* About page awards, certifications, and recognitions */
.company-recognition-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(25, 217, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 6%, rgba(217, 155, 0, 0.12), transparent 24rem),
    linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.recognition-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
  padding: 0.38rem 0.78rem;
  border: 1px solid rgba(7, 84, 199, 0.16);
  border-radius: 999px;
  color: #0b3d91 !important;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}

.recognition-kicker i {
  color: #d99b00;
}

.company-recognition-section h2 {
  color: #0f172a !important;
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 1.04;
}

.company-recognition-section .lead {
  color: #334155 !important;
  line-height: 1.7;
}

.recognition-proof-panel {
  padding: 1.35rem;
  border: 1px solid rgba(7, 84, 199, 0.14);
  border-radius: 1.1rem;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.08);
}

.recognition-proof-panel strong {
  display: block;
  margin-bottom: 0.55rem;
  color: #0b3d91 !important;
  font-size: 1.08rem;
}

.recognition-proof-panel p {
  margin: 0;
  color: #475569 !important;
  line-height: 1.6;
}

.recognition-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.35rem;
}

.recognition-pill-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.62rem 0.9rem;
  border: 1px solid rgba(7, 84, 199, 0.13);
  border-radius: 999px;
  color: #0f172a !important;
  background: rgba(255, 255, 255, 0.86);
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.05);
}

.recognition-pill-row i {
  color: #0754c7;
}

.company-recognition-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.company-recognition-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(7, 84, 199, 0.14);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(2, 6, 23, 0.09);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.company-recognition-card:hover {
  transform: translateY(-5px);
  border-color: rgba(7, 84, 199, 0.3);
  box-shadow: 0 22px 48px rgba(2, 6, 23, 0.14);
}

.company-recognition-card.is-featured {
  grid-column: span 6;
}

.company-recognition-media {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  padding: 0.9rem;
  background:
    linear-gradient(145deg, #ffffff, #edf6ff),
    radial-gradient(circle at 50% 0%, rgba(217, 155, 0, 0.12), transparent 18rem);
  border-bottom: 1px solid rgba(7, 84, 199, 0.1);
}

.company-recognition-card.is-landscape .company-recognition-media {
  aspect-ratio: 16 / 9;
}

.company-recognition-card.is-portrait .company-recognition-media {
  aspect-ratio: 3 / 4;
}

.company-recognition-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 18px rgba(2, 6, 23, 0.12));
}

.company-recognition-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1.25rem;
}

.company-recognition-copy span {
  width: fit-content;
  margin-bottom: 0.65rem;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  color: #0b3d91 !important;
  background: rgba(7, 84, 199, 0.1);
  font-size: 0.76rem;
  font-weight: 900;
}

.company-recognition-copy h3 {
  margin: 0;
  color: #0f172a !important;
  font-size: 1.12rem;
  line-height: 1.28;
}

.company-recognition-copy p {
  margin: 0.55rem 0 0;
  color: #475569 !important;
  line-height: 1.62;
}

@media (max-width: 991.98px) {
  .company-recognition-card,
  .company-recognition-card.is-featured {
    grid-column: span 6;
  }
}

@media (max-width: 575.98px) {
  .company-recognition-grid {
    grid-template-columns: 1fr;
  }

  .company-recognition-card,
  .company-recognition-card.is-featured {
    grid-column: span 1;
  }

  .company-recognition-card.is-landscape .company-recognition-media,
  .company-recognition-media {
    aspect-ratio: 4 / 3;
  }

  .company-recognition-card.is-portrait .company-recognition-media {
    aspect-ratio: 3 / 4;
  }
}

/* Global heading/subheading color consistency */
h1, h2, h3, h4, h5, h6,
.lead,
.subheading,
.subtitle,
.section-subtitle,
.ai-kicker {
  color: #0b3d91 !important;
}

/* Better spacing/readability for general website enquiry modal */
.ai-inquiry-modal .modal-dialog {
  max-width: min(680px, calc(100vw - 1.5rem));
}

.ai-inquiry-modal .modal-content {
  border-radius: 1.1rem !important;
}

.ai-inquiry-modal .modal-header,
.ai-inquiry-modal .modal-body,
.ai-inquiry-modal .modal-footer {
  padding: 1.1rem 1.25rem !important;
}

.ai-inquiry-modal .modal-title {
  font-size: 1.35rem !important;
  line-height: 1.25;
}

.ai-inquiry-modal .form-label {
  margin-bottom: 0.45rem !important;
  font-size: 0.92rem;
  font-weight: 700;
}

.ai-inquiry-modal .form-control {
  min-height: 2.85rem;
  padding: 0.72rem 0.9rem !important;
  border-radius: 0.75rem !important;
  line-height: 1.45;
}

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

.ai-inquiry-modal .modal-footer {
  gap: 0.55rem;
}

/* Strong page-specific fix: /tally/prime headings and subheadings in dark blue */
body:has(.hero-tally-prime) .hero-section .hero-text-container,
body:has(.hero-tally-prime) .hero-section .hero-text-container h1,
body:has(.hero-tally-prime) .hero-section .hero-text-container h2,
body:has(.hero-tally-prime) .hero-section .hero-text-container .lead,
body:has(.hero-tally-prime) .hero-section .hero-text-container p,
body:has(.hero-tally-prime) .ai-section h1,
body:has(.hero-tally-prime) .ai-section h2,
body:has(.hero-tally-prime) .ai-section h3,
body:has(.hero-tally-prime) .ai-section h4,
body:has(.hero-tally-prime) .ai-section .lead,
body:has(.hero-tally-prime) .ai-section .ai-kicker {
  color: #0b3d91 !important;
}


/* ===== Premium Dark Blue Theme ===== */

.journey-badge {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid rgba(77, 136, 255, 0.35);
    border-radius: 50px;
    font-size: 13px;
    letter-spacing: 2px;
    color: #8ab4ff;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(77,136,255,0.12);
}

.journey-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.journey-title span {
    color: #4d88ff;
    text-shadow: 0 0 18px rgba(77,136,255,0.45);
}

.journey-subtitle {
    max-width: 700px;
    margin: 20px auto 0;
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
}

.journey-timeline {
    position: relative;
    max-width: 1100px;
    margin: 70px auto 0;
}

.journey-timeline::before {
    content: "";
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, #4d88ff, #1e3a8a);
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(77,136,255,0.4);
}

.journey-card {
    position: relative;
    width: 50%;
    padding: 20px 50px;
    margin-bottom: 60px;
}

.journey-card.left {
    left: 0;
    text-align: right;
}

.journey-card.right {
    left: 50%;
}

.journey-content {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(77,136,255,0.12);
    backdrop-filter: blur(16px);
    padding: 30px;
    border-radius: 24px;
    box-shadow: 0 0 40px rgba(30,58,138,0.18);
    transition: all 0.4s ease;
}

.journey-content:hover {
    transform: translateY(-8px);
    border-color: rgba(77,136,255,0.45);
    box-shadow:
        0 0 35px rgba(77,136,255,0.18),
        0 0 70px rgba(30,58,138,0.22);
}

.journey-year {
    display: inline-block;
    margin-bottom: 15px;
    color: #8ab4ff;
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 600;
}

.journey-content h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #ffffff;
}

.journey-content p {
    color: rgba(255,255,255,0.72);
    margin: 0;
    line-height: 1.7;
}

.journey-dot {
    position: absolute;
    width: 22px;
    height: 22px;
    background: #4d88ff;
    border-radius: 50%;
    top: 40px;
    right: -11px;
    z-index: 10;
    box-shadow:
        0 0 12px rgba(77,136,255,0.8),
        0 0 25px rgba(30,58,138,0.7);
}

.journey-card.right .journey-dot {
    left: -11px;
}

@media(max-width: 991px) {

    .journey-title {
        font-size: 2.2rem;
    }

    .journey-timeline::before {
        left: 20px;
    }

    .journey-card {
        width: 100%;
        left: 0 !important;
        padding-left: 60px;
        padding-right: 0;
        text-align: left !important;
    }

    .journey-dot {
        left: 10px !important;
        right: auto;
    }
}

@media (max-width: 1199.98px) {
    .footer-policy-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 991.98px) {
    .ai-policy-sidebar {
        position: static;
    }
}

/* Final footer contrast lock: keep footer text readable on blue backgrounds */
.footer-custom,
.footer-custom p,
.footer-custom li,
.footer-custom .footer-copy,
.footer-custom .footer-address,
.footer-custom .footer-contact,
.footer-custom .footer-title,
.footer-custom a,
.footer-custom .footer-policy-grid a,
.footer-custom .contact-btn {
    color: #ffffff !important;
}

.footer-custom .contact-btn {
    border-color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.footer-custom .contact-btn:hover,
.footer-custom .footer-policy-grid a:hover {
    color: #ffffff !important;
}

.footer-custom .social-links a,
.footer-custom .social-links a i {
    color: #ffffff !important;
}

/* Legal page sidebar button contrast fix */
.ai-policy-link-grid a.ai-policy-link {
    color: #123a7a !important;
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(17, 62, 150, 0.26) !important;
}

.ai-policy-link-grid a.ai-policy-link:hover,
.ai-policy-link-grid a.ai-policy-link:focus-visible {
    color: #0a234f !important;
    background: rgba(37, 99, 235, 0.16) !important;
    border-color: rgba(17, 62, 150, 0.45) !important;
}

.ai-policy-link-grid a.ai-policy-link.is-active,
.ai-policy-link-grid a.ai-policy-link[aria-current="page"] {
    color: #ffffff !important;
    background: linear-gradient(120deg, #1d4ed8 0%, #0284c7 100%) !important;
    border-color: rgba(2, 132, 199, 0.95) !important;
}

/* Footer visual lock: prevent unreadable blue-on-blue link states */
footer.footer-custom {
    background:
        radial-gradient(circle at 12% 0%, rgba(56, 189, 248, 0.18), transparent 24rem),
        radial-gradient(circle at 88% 14%, rgba(37, 99, 235, 0.22), transparent 22rem),
        linear-gradient(135deg, #071432 0%, #0a2a63 52%, #0b3c91 100%) !important;
}

footer.footer-custom .footer-title {
    color: #ffffff !important;
}

footer.footer-custom .footer-copy,
footer.footer-custom .footer-address,
footer.footer-custom .footer-contact,
footer.footer-custom a,
footer.footer-custom a:visited {
    color: #e9f3ff !important;
}

footer.footer-custom .footer-policy-link {
    display: block;
    color: #e9f3ff !important;
    border-bottom: 1px dashed rgba(191, 219, 254, 0.45) !important;
    text-decoration: none !important;
    line-height: 1.45;
}

footer.footer-custom .footer-policy-link:hover,
footer.footer-custom .footer-policy-link:focus-visible {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.9) !important;
}

footer.footer-custom .footer-contact-link.contact-btn {
    color: #ffffff !important;
    border: 1px solid rgba(191, 219, 254, 0.62) !important;
    background: rgba(255, 255, 255, 0.12) !important;
}

footer.footer-custom .footer-contact-link.contact-btn:hover,
footer.footer-custom .footer-contact-link.contact-btn:focus-visible {
    color: #0b2454 !important;
    background: #ffffff !important;
    border-color: #ffffff !important;
}

footer.footer-custom .footer-social-link {
    color: #ffffff !important;
    border: 1px solid rgba(191, 219, 254, 0.62) !important;
    background: rgba(255, 255, 255, 0.12) !important;
    transition: color 150ms, transform 150ms, background 150ms, border-color 150ms, box-shadow 150ms;
}

footer.footer-custom .footer-social-link:hover,
footer.footer-custom .footer-social-link:focus-visible {
    color: #001f2e !important;
    background: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 100%) !important;
    border-color: transparent !important;
    box-shadow: 0 12px 24px rgba(45, 212, 191, 0.25);
    transform: translateY(-3px) scale(1.04);
}

footer.footer-custom .footer-social-link i {
    color: inherit !important;
}

footer.footer-custom .footer-social-link:hover i,
footer.footer-custom .footer-social-link:focus-visible i {
    color: inherit !important;
}

/* Compact hero heading mode for long titles */
.ai-hero .ai-hero-title.ai-hero-title-compact {
    max-width: 820px;
    font-size: clamp(2.05rem, 4.1vw, 4.15rem);
    line-height: 1.06;
    text-wrap: balance;
}

.hero-section:not(.ai-hero) .hero-text-container h1.hero-heading-compact {
    max-width: 900px;
    font-size: clamp(1.8rem, 3.5vw, 3.15rem);
    line-height: 1.08;
    text-wrap: balance;
}

@media (max-width: 767.98px) {
    .ai-hero .ai-hero-title.ai-hero-title-compact {
        font-size: clamp(1.85rem, 8.2vw, 2.4rem) !important;
        line-height: 1.06 !important;
    }
}

@media (max-width: 575.98px) {
    .hero-section:not(.ai-hero) .hero-text-container h1.hero-heading-compact {
        font-size: clamp(1.5rem, 6vw, 1.82rem) !important;
        line-height: 1.12 !important;
    }
}

.hero-section:not(.ai-hero) .hero-text-container h1 {
    max-width: 900px;
    margin-inline: auto;
    font-size: clamp(1.85rem, 3.6vw, 3.2rem);
    line-height: 1.1;
    text-wrap: balance;
}

/* Keep Tally breadcrumb fully readable across breakpoints. */
.tally-breadcrumb-section {
    margin-top: 0.9rem;
    z-index: 4;
}

.tally-breadcrumb {
    overflow: visible;
}

.tally-breadcrumb ol {
    flex: 1 1 auto;
    min-width: 0;
}

.tally-breadcrumb li {
    min-width: 0;
    overflow-wrap: anywhere;
}

.tally-breadcrumb li[aria-current="page"] {
    font-size: 0.9rem;
}

.tally-breadcrumb-current {
    white-space: nowrap;
}

.tally-breadcrumb-pills a {
    padding: 0.56rem 0.86rem;
    line-height: 1.3;
}

@media (max-width: 991.98px) {
    .tally-breadcrumb {
        flex-direction: column;
        align-items: flex-start;
    }

    .tally-breadcrumb-current {
        align-self: flex-start;
    }
}

@media (max-width: 767.98px) {
    .tally-breadcrumb-pills a {
        white-space: normal;
    }
}

/* Reduce cramped feel in AMC and cloud cards. */
.amc-feature-card {
    padding: clamp(1.7rem, 2.7vw, 2.3rem) !important;
}

.amc-feature-card p {
    line-height: 1.72;
}

.amc-plan-card .card-body {
    padding: clamp(1.4rem, 2.7vw, 2.1rem);
}

.gem-product-card {
    padding: clamp(1.4rem, 2.4vw, 1.9rem);
}

/* Performance-friendly visual overrides for faster paint and less layout work. */
.ai-hero::before {
    animation: none;
}

.reveal-float {
    animation: reveal-up 900ms ease both;
}

.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 {
    backdrop-filter: none !important;
}

/* Hotfix: restore reliable hero image rendering and reduce heavy hero paint cost. */
main .hero-section:not(.ai-hero) {
    min-height: clamp(460px, 72vh, 760px) !important;
    padding: 7.5rem 1rem 4.25rem !important;
    background-color: #0a1f40 !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-blend-mode: normal !important;
}

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

main .hero-section:not(.ai-hero) .hero-text-container {
    width: min(920px, calc(100vw - 2.4rem)) !important;
    max-width: calc(100vw - 2.4rem) !important;
    margin-inline: auto !important;
    padding: clamp(1.55rem, 3vw, 2.35rem) clamp(1.1rem, 3.2vw, 2rem) !important;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    border-radius: 1.9rem !important;
    background: linear-gradient(135deg, rgba(4, 20, 45, 0.68), rgba(8, 40, 82, 0.52)) !important;
    box-shadow: 0 14px 34px rgba(3, 12, 28, 0.24) !important;
    backdrop-filter: none !important;
}

main .hero-section:not(.ai-hero) .hero-text-container h1,
main .hero-section:not(.ai-hero) .hero-text-container h2,
main .hero-section:not(.ai-hero) .hero-text-container .lead,
main .hero-section:not(.ai-hero) .hero-text-container p {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.48);
}

main .hero-section.hero-about { background-image: url('/img/heroes/about.jpg') !important; }
main .hero-section.hero-contact { background-image: url('/img/heroes/contact.jpg') !important; }
main .hero-section.hero-software { background-image: url('/img/heroes/solutions-software.jpg') !important; }
main .hero-section.hero-cyber { background-image: url('/img/heroes/solutions-cyber.jpg') !important; }
main .hero-section.hero-storage { background-image: url('/img/heroes/solutions-storage.jpg') !important; }
main .hero-section.hero-networking { background-image: url('/img/heroes/solutions-networking.jpg') !important; }
main .hero-section.hero-cloud { background-image: url('/img/heroes/solutions-cloud.jpg') !important; }
main .hero-section.hero-web-development { background-image: url('/img/heroes/solutions-web-development.jpg') !important; }
main .hero-section.hero-data-recovery { background-image: url('/img/heroes/services-data-recovery.jpg') !important; }
main .hero-section.hero-data-backup { background-image: url('/img/heroes/services-data-backup.jpg') !important; }
main .hero-section.hero-it-rentals { background-image: url('/img/heroes/services-it-rentals.jpg') !important; }
main .hero-section.hero-print { background-image: url('/img/heroes/services-print-services.jpg') !important; }
main .hero-section.hero-cartridges { background-image: url('/img/heroes/services-cartridges-toner.jpg') !important; }
main .hero-section.hero-laptop-repairs { background-image: url('/img/heroes/services-laptop-repairs.jpg') !important; }
main .hero-section.hero-hardware { background-image: url('/img/heroes/services-hardware-sales.jpg') !important; }
main .hero-section.hero-social-media { background-image: url('/img/heroes/services-social-media-marketing.jpg') !important; }
main .hero-section.hero-amc { background-image: url('/img/heroes/support-amc.jpg') !important; }
main .hero-section.hero-gem { background-image: url('/img/heroes/support-gem.jpg') !important; }
main .hero-section.hero-tally-overview { background-image: url('/img/heroes/tally-overview.jpg') !important; }
main .hero-section.hero-tally-services { background-image: url('/img/heroes/tally-services.jpg') !important; }
main .hero-section.hero-tally-customization { background-image: url('/img/heroes/tally-customization.jpg') !important; }
main .hero-section.hero-tally-prime { background-image: url('/img/heroes/tally-prime.jpg') !important; }
main .hero-section.hero-tally-server { background-image: url('/img/heroes/tally-server.jpg') !important; }
main .hero-section.hero-tally-cloud { background-image: url('/img/heroes/tally-cloud.jpg') !important; }
main .hero-section.hero-tally-whatsapp { background-image: url('/img/heroes/tally-whatsapp.jpg') !important; }

/* Tally pages: rotate the supplied illustrated hero set. */
main .hero-section.hero-tally-overview,
main .hero-section.hero-tally-services,
main .hero-section.hero-tally-customization,
main .hero-section.hero-tally-prime,
main .hero-section.hero-tally-server,
main .hero-section.hero-tally-cloud,
main .hero-section.hero-tally-whatsapp,
main .hero-section.hero-tally-upgrade {
    background-image: url('/img/heroes/tally-rotation/tally-hero-operations.webp') !important;
}

main .hero-section.hero-rotating-tally {
    background-color: #fff8e9 !important;
    background-position: center center !important;
    transition: background-image 0.6s ease-in-out;
}

main .hero-section.hero-rotating-tally .hero-text-container {
    margin-left: clamp(1rem, 6vw, 6rem) !important;
    margin-right: auto !important;
    max-width: min(590px, calc(100vw - 2.4rem)) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 248, 232, 0.66)) !important;
    border: 1px solid rgba(11, 61, 145, 0.16) !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14) !important;
    color: #0b3d91 !important;
    text-align: left !important;
}

main .hero-section.hero-rotating-tally .hero-text-container .ai-kicker {
    justify-content: flex-start !important;
}

main .hero-section.hero-rotating-tally .hero-text-container h1,
main .hero-section.hero-rotating-tally .hero-text-container h2,
main .hero-section.hero-rotating-tally .hero-text-container p,
main .hero-section.hero-rotating-tally .hero-text-container .lead {
    color: #0b3d91 !important;
    text-shadow: none !important;
}

main .hero-section.hero-rotating-tally .hero-text-container h1 {
    font-size: clamp(1.6rem, 2.75vw, 2.55rem) !important;
    line-height: 1.12 !important;
}

@media (max-width: 767.98px) {
    main .hero-section.hero-rotating-tally {
        background-position: 62% center !important;
    }

    main .hero-section.hero-rotating-tally .hero-text-container {
        margin-inline: auto !important;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 232, 0.88)) !important;
        border-color: rgba(11, 61, 145, 0.2) !important;
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.18) !important;
        text-align: center !important;
    }

    main .hero-section.hero-rotating-tally .hero-text-container .ai-kicker {
        justify-content: center !important;
    }

    main .hero-section.hero-rotating-tally .hero-text-container h1 {
        font-size: clamp(1.38rem, 5.5vw, 1.7rem) !important;
        line-height: 1.14 !important;
    }
}

/* Standard pages: use one readable brand gradient instead of hero photos. */
main .hero-section:not(.ai-hero):not([class*="hero-tally-"]):not(.tally-hero) {
    background-color: #061a3d !important;
    background-image:
        linear-gradient(115deg, rgba(2, 11, 27, 0.94) 0%, rgba(5, 24, 58, 0.9) 42%, rgba(4, 88, 120, 0.84) 100%),
        linear-gradient(145deg, #031126 0%, #0b3d91 58%, #0b7285 100%) !important;
    background-size: cover !important;
    background-position: center center !important;
}

main .hero-section:not(.ai-hero):not([class*="hero-tally-"]):not(.tally-hero) .hero-text-container {
    background: linear-gradient(135deg, rgba(2, 11, 27, 0.54), rgba(8, 40, 82, 0.44)) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 18px 42px rgba(0, 10, 32, 0.26) !important;
}

main .hero-section:not(.ai-hero):not([class*="hero-tally-"]):not(.tally-hero) .hero-text-container h1,
main .hero-section:not(.ai-hero):not([class*="hero-tally-"]):not(.tally-hero) .hero-text-container h2,
main .hero-section:not(.ai-hero):not([class*="hero-tally-"]):not(.tally-hero) .hero-text-container p,
main .hero-section:not(.ai-hero):not([class*="hero-tally-"]):not(.tally-hero) .hero-text-container .lead {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.34) !important;
}

/* Blog pagination: compact, readable Bootstrap controls. */
.blog-pagination nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.blog-pagination .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
}

.blog-pagination .page-item {
    margin: 0 !important;
}

.blog-pagination .page-link,
.blog-pagination .page-item > span {
    min-width: 2.35rem;
    min-height: 2.35rem;
    padding: 0.45rem 0.75rem !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 999px !important;
    border: 1px solid rgba(11, 61, 145, 0.18) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: #0b3d91 !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: 0 8px 20px rgba(2, 6, 23, 0.08);
}

.blog-pagination .page-link:hover,
.blog-pagination .page-link:focus {
    background: #0b3d91 !important;
    border-color: #0b3d91 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 24px rgba(11, 61, 145, 0.18);
}

.blog-pagination .page-item.active .page-link,
.blog-pagination .active > .page-link,
.blog-pagination .active > span {
    background: #0b3d91 !important;
    border-color: #0b3d91 !important;
    color: #ffffff !important;
}

.blog-pagination .page-item.disabled .page-link,
.blog-pagination .disabled > .page-link,
.blog-pagination .disabled > span {
    opacity: 0.52;
    background: rgba(255, 255, 255, 0.72) !important;
    color: #64748b !important;
    box-shadow: none;
}

.blog-pagination svg {
    width: 1rem !important;
    height: 1rem !important;
}

.blog-pagination p,
.blog-pagination .small {
    margin: 0 !important;
    color: #475569 !important;
    font-size: 0.9rem !important;
}

@media (max-width: 575.98px) {
    .blog-pagination .page-link,
    .blog-pagination .page-item > span {
        min-width: 2.1rem;
        min-height: 2.1rem;
        padding: 0.38rem 0.62rem !important;
        font-size: 0.84rem !important;
    }
}

/* Homepage hero refresh: purple-blue technology command style */
.home-hero-refresh.ai-hero {
    min-height: clamp(620px, 82svh, 820px);
    margin-bottom: 0;
    padding: clamp(6.6rem, 8vw, 8rem) 0 clamp(3.2rem, 5vw, 4.6rem);
    color: #ffffff;
    background:
        linear-gradient(108deg, rgba(5, 10, 34, 0.97) 0%, rgba(38, 15, 112, 0.91) 48%, rgba(5, 46, 105, 0.88) 100%),
        url('/img/banner.png') center/cover no-repeat !important;
}

.home-hero-refresh.ai-hero::before {
    inset: 0;
    width: auto;
    aspect-ratio: auto;
    border-radius: 0;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 52px 52px;
    filter: none;
    opacity: 0.18;
    animation: none;
}

.home-hero-refresh .ai-grid-overlay {
    background:
        linear-gradient(116deg, transparent 0 47%, rgba(255, 206, 87, 0.2) 47.2% 47.55%, transparent 48%),
        linear-gradient(90deg, rgba(255, 64, 129, 0.18), transparent 32%, rgba(20, 217, 255, 0.16) 100%) !important;
    opacity: 0.58 !important;
}

.home-hero-refresh .container {
    z-index: 1;
}

.home-hero-refresh .ai-kicker {
    color: #ffd166 !important;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.home-hero-refresh .ai-hero-title {
    max-width: 820px;
    color: #ffffff !important;
    text-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

.home-hero-refresh .ai-hero-copy {
    max-width: 700px;
    color: #dbeafe !important;
    text-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
}

.home-hero-refresh .ai-btn-primary {
    border-color: rgba(255, 209, 102, 0.72) !important;
    color: #07142f !important;
    background: linear-gradient(135deg, #ffd166 0%, #ff8a5b 48%, #39d7ff 100%) !important;
    box-shadow: 0 18px 44px rgba(255, 138, 91, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.48) !important;
}

.home-hero-refresh .ai-btn-primary:hover {
    color: #061126 !important;
    box-shadow: 0 22px 52px rgba(57, 215, 255, 0.28), 0 10px 30px rgba(255, 138, 91, 0.22) !important;
}

.home-hero-refresh a.ai-btn-ghost[href$="/contact"],
.home-hero-refresh a.ai-btn-ghost[href$="/contact/"] {
    border-color: rgba(255, 255, 255, 0.36) !important;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16) !important;
}

.home-hero-refresh a.ai-btn-ghost[href$="/contact"]:hover,
.home-hero-refresh a.ai-btn-ghost[href$="/contact/"]:hover {
    color: #07142f !important;
    background: #ffffff !important;
}

.home-hero-service-dock {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    max-width: 720px;
    margin-top: 1.35rem;
}

.home-hero-service-dock span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.55rem;
    padding: 0.62rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.home-hero-service-dock i {
    color: #ffd166;
}

.home-hero-refresh .home-hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 690px;
    margin-top: 1.35rem;
}

.home-hero-refresh .home-hero-metrics div {
    min-height: 6.1rem;
    border-color: rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.07)) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.home-hero-refresh .home-hero-metrics strong {
    color: #ffffff !important;
    font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.home-hero-refresh .home-hero-metrics span {
    color: #dbeafe !important;
    font-weight: 700;
}

.home-hero-visual-stack {
    position: relative;
    display: grid;
    gap: 1rem;
    max-width: 640px;
    margin-left: auto;
    isolation: isolate;
}

.home-hero-visual-stack::before {
    content: "";
    position: absolute;
    inset: 1.1rem -0.8rem -0.9rem 1.2rem;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(255, 209, 102, 0.2), rgba(57, 215, 255, 0.12));
    transform: rotate(-1.5deg);
}

.home-hero-main-visual,
.home-hero-ops-card,
.home-hero-brand-card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: linear-gradient(150deg, rgba(11, 18, 56, 0.82), rgba(39, 20, 103, 0.64));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.home-hero-main-visual {
    position: relative;
    padding: 0.72rem;
    overflow: hidden;
}

.home-hero-main-visual img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: center;
    border-radius: 6px;
    filter: saturate(1.1) contrast(1.04) brightness(1.02);
}

.home-hero-signal {
    position: absolute;
    left: 1.05rem;
    bottom: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.45rem;
    padding: 0.58rem 0.78rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(6, 12, 38, 0.66);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
    font-size: 0.82rem;
    font-weight: 800;
}

.home-hero-signal i {
    color: #39d7ff;
}

.home-hero-mini-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 1rem;
}

.home-hero-ops-card,
.home-hero-brand-card {
    min-height: 11.4rem;
    padding: 1rem;
}

.home-hero-card-head {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.85rem;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero-card-head i {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 8px;
    color: #07142f;
    background: linear-gradient(135deg, #ffd166, #39d7ff);
}

.home-hero-stack-list {
    display: grid;
    gap: 0.58rem;
}

.home-hero-stack-list div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.58rem;
    min-height: 2.35rem;
    padding: 0.52rem 0.62rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    color: #eaf5ff;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.82rem;
    font-weight: 800;
}

.home-hero-stack-list i {
    color: #ffd166;
}

.home-hero-stack-list b {
    color: #39d7ff;
    font-size: 0.76rem;
}

.home-hero-brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.62rem;
}

.home-hero-brand-grid img {
    width: 100%;
    height: 3.15rem;
    padding: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.94);
}

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

    .home-hero-visual-stack {
        max-width: 760px;
        margin-inline: auto;
    }
}

@media (max-width: 767.98px) {
    .home-hero-refresh.ai-hero {
        padding: 6rem 0 3rem;
    }

    .home-hero-service-dock {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .home-hero-service-dock span {
        justify-content: center;
        padding-inline: 0.58rem;
        white-space: normal;
    }

    .home-hero-refresh .home-hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.58rem;
    }

    .home-hero-refresh .home-hero-metrics div {
        min-height: 5.15rem;
        padding: 0.62rem;
    }

    .home-hero-refresh .home-hero-metrics strong {
        font-size: clamp(1.08rem, 5vw, 1.35rem);
    }

    .home-hero-refresh .home-hero-metrics span {
        font-size: 0.74rem;
        line-height: 1.25;
    }

    .home-hero-main-visual img {
        aspect-ratio: 16 / 11;
    }

    .home-hero-mini-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .home-hero-ops-card,
    .home-hero-brand-card {
        min-height: auto;
    }
}

@media (max-width: 420px) {
    .home-hero-stack-list div {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .home-hero-stack-list b {
        grid-column: 2;
    }
}

/* Final nav + Tally hero direction */
.navbar-custom {
    background: linear-gradient(135deg, #ffd166 0%, #ff8a5b 52%, #39d7ff 100%) !important;
    border-bottom: 0 !important;
    box-shadow: 0 14px 34px rgba(7, 20, 47, 0.18) !important;
    backdrop-filter: none !important;
}

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

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus,
.navbar-custom .nav-link.active {
    color: #07142f !important;
    background: rgba(255, 255, 255, 0.22) !important;
    border-radius: 999px;
}

.navbar-custom .dropdown-menu {
    background: linear-gradient(135deg, #fff7dd 0%, #fff0e7 52%, #e8fbff 100%) !important;
    border: 1px solid rgba(7, 20, 47, 0.12) !important;
    box-shadow: 0 18px 42px rgba(7, 20, 47, 0.18) !important;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus,
.navbar-custom .dropdown-item.active {
    color: #07142f !important;
    background: rgba(255, 255, 255, 0.48) !important;
}

.navbar-custom .navbar-toggler {
    color: #07142f !important;
    border-color: rgba(7, 20, 47, 0.26) !important;
    background: rgba(255, 255, 255, 0.24) !important;
}

.navbar-search .input-group,
.navbar-search .input-group-text,
.navbar-search .form-control {
    border-color: rgba(7, 20, 47, 0.16) !important;
    background: rgba(255, 255, 255, 0.72) !important;
    color: #07142f !important;
}

.navbar-search .form-control::placeholder {
    color: rgba(7, 20, 47, 0.58) !important;
}

.navbar-search .navbar-search-btn {
    color: #07142f !important;
    border-color: rgba(7, 20, 47, 0.14) !important;
    background: rgba(255, 255, 255, 0.35) !important;
}

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

.ai-brand-tile-inner {
    padding: 1.15rem;
}

/* Navigation and site-wide search refinements */
.navbar-custom .dropdown-item.nav-subitem {
    padding-left: 2.35rem !important;
    font-size: 0.92rem;
}

.navbar-custom .dropdown-divider {
    border-color: rgba(7, 20, 47, 0.13);
}

.navbar-search.site-search-form {
    min-width: min(22rem, 84vw);
}

.navbar-search.site-search-form .input-group {
    border: 1px solid rgba(7, 84, 199, 0.18) !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 249, 255, 0.9)),
        radial-gradient(circle at 18% 0%, rgba(25, 217, 255, 0.24), transparent 44%) !important;
    box-shadow:
        0 16px 36px rgba(7, 84, 199, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.navbar-search.site-search-form .input-group-text {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0754c7, #19d9ff) !important;
}

.navbar-search.site-search-form .navbar-search-btn {
    color: #ffffff !important;
    background: linear-gradient(135deg, #0754c7, #2b7fff 58%, #19d9ff) !important;
    box-shadow: 0 12px 24px rgba(7, 84, 199, 0.22) !important;
}

.navbar-search.site-search-form .form-control {
    color: #082451 !important;
}

/* CSR, policy index, and site search pages */
.csr-page-section .company-recognition-card {
    grid-column: span 6;
}

.policy-index-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.35rem;
}

.policy-index-card,
.site-search-card {
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.policy-index-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 4rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(7, 84, 199, 0.14);
    border-radius: 0.75rem;
    color: #0f2f66 !important;
    background: #ffffff;
    font-weight: 800;
}

.policy-index-card i {
    color: #0754c7;
    font-size: 1.15rem;
}

.policy-index-card:hover,
.policy-index-card:focus-visible,
.site-search-card:hover,
.site-search-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(7, 84, 199, 0.32);
    box-shadow: 0 18px 34px rgba(2, 6, 23, 0.1);
}

.site-search-page {
    max-width: 1050px;
}

.site-search-hero {
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid rgba(7, 84, 199, 0.14);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 10% 0%, rgba(25, 217, 255, 0.18), transparent 28rem),
        linear-gradient(135deg, #ffffff 0%, #f4fbff 100%);
    box-shadow: 0 18px 44px rgba(2, 6, 23, 0.08);
}

.site-search-hero h1 {
    margin-bottom: 1.2rem;
    color: #0f172a !important;
    font-size: clamp(2rem, 5vw, 3.5rem);
}

.site-search-page-form {
    max-width: 760px;
}

.site-search-summary {
    margin: 1.5rem 0 1rem;
    color: #334155;
    font-weight: 700;
}

.site-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.site-search-card {
    display: block;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid rgba(7, 84, 199, 0.14);
    border-radius: 0.85rem;
    color: #0f172a !important;
    background: #ffffff;
}

.site-search-type {
    display: inline-flex;
    margin-bottom: 0.65rem;
    padding: 0.28rem 0.58rem;
    border-radius: 999px;
    color: #0754c7;
    background: rgba(7, 84, 199, 0.08);
    font-size: 0.78rem;
    font-weight: 900;
}

.site-search-card h2 {
    margin-bottom: 0.48rem;
    color: #10213f !important;
    font-size: 1.08rem;
}

.site-search-card p {
    margin: 0;
    color: #475569 !important;
    line-height: 1.55;
}

.site-search-empty {
    margin-top: 1.4rem;
    padding: 1.3rem;
    border: 1px solid rgba(7, 84, 199, 0.12);
    border-radius: 0.9rem;
    color: #334155;
    background: #ffffff;
}

.site-search-empty i {
    display: inline-flex;
    margin-bottom: 0.55rem;
    color: #0754c7;
    font-size: 1.6rem;
}

@media (max-width: 767.98px) {
    .csr-page-section .company-recognition-card,
    .policy-index-grid,
    .site-search-results {
        grid-column: span 12;
        grid-template-columns: 1fr;
    }
}

/* Marketing growth page breadcrumbs */
.marketing-breadcrumb-section {
    position: relative;
    z-index: 4;
    margin: -1.35rem 0 2.25rem;
}

.marketing-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(7, 84, 199, 0.14);
    border-radius: 1rem;
    background: linear-gradient(145deg, #ffffff, #eef8ff);
    box-shadow: 0 16px 40px rgba(7, 84, 199, 0.08);
}

.marketing-breadcrumb ol {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.marketing-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    color: #55708f;
    font-size: 0.92rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.marketing-breadcrumb li + li::before {
    color: #8aa4c2;
    content: "/";
}

.marketing-breadcrumb a {
    color: #0754c7;
    text-decoration: none;
}

.marketing-breadcrumb a:hover,
.marketing-breadcrumb a:focus {
    color: #0891b2;
}

.marketing-breadcrumb li[aria-current="page"] {
    color: #0a2f63;
}

.marketing-breadcrumb-current {
    flex: 0 0 auto;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(145deg, #0b5ed7, #0c7fa4);
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.marketing-breadcrumb-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.marketing-breadcrumb-pills a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.56rem 0.86rem;
    border: 1px solid rgba(7, 84, 199, 0.12);
    border-radius: 999px;
    color: #0a2f63;
    background: #ffffff;
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.3;
    text-decoration: none;
}

.marketing-breadcrumb-pills a span {
    color: #0754c7;
    font-size: 0.72rem;
    font-weight: 900;
}

.marketing-breadcrumb-pills a.active {
    color: #ffffff !important;
    border-color: transparent;
    background: linear-gradient(145deg, #0b5ed7, #0c7fa4);
}

.marketing-breadcrumb-pills a.active span {
    color: #ffffff !important;
}

.marketing-breadcrumb-pills a.active:visited,
.marketing-breadcrumb-pills a.active:hover,
.marketing-breadcrumb-pills a.active:focus {
    color: #ffffff !important;
}

@media (max-width: 991.98px) {
    .marketing-breadcrumb {
        flex-direction: column;
        align-items: flex-start;
    }

    .marketing-breadcrumb-current {
        align-self: flex-start;
    }
}

@media (max-width: 767.98px) {
    .marketing-breadcrumb-pills a {
        white-space: normal;
    }
}

.ai-brand-logo {
    max-height: 58px !important;
    max-width: 88% !important;
}

.home-hero-brand-grid img {
    height: 4.2rem;
    padding: 0.58rem;
}

main:has(.tally-clean-hero) > .page-top-cta-strip {
    display: none !important;
}

.tally-clean-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(6.6rem, 8vw, 8rem) 0 clamp(3.2rem, 5.5vw, 5rem);
    background:
        radial-gradient(circle at 86% 20%, rgba(255, 209, 102, 0.18), transparent 28rem),
        radial-gradient(circle at 96% 74%, rgba(21, 177, 195, 0.14), transparent 24rem),
        linear-gradient(180deg, #fffdf7 0%, #ffffff 42%, #fff8e8 100%) !important;
}

.tally-clean-hero::before {
    content: "";
    position: absolute;
    inset: auto -8rem -9rem auto;
    width: min(48vw, 34rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 209, 102, 0.28), transparent 64%),
        radial-gradient(circle at 72% 30%, rgba(57, 215, 255, 0.16), transparent 46%);
}

.tally-clean-copy {
    max-width: 620px;
}

.tally-clean-copy .ai-kicker {
    color: #0b5d7a !important;
    margin-bottom: 1.05rem;
}

.tally-clean-copy h1 {
    max-width: 650px;
    margin: 0;
    color: #14304f !important;
    font-size: clamp(1.85rem, 3.25vw, 3.15rem);
    line-height: 1.1;
    letter-spacing: 0;
    text-wrap: balance;
}

.tally-clean-copy p {
    max-width: 600px;
    margin: 1.1rem 0 0;
    color: #425466 !important;
    font-size: clamp(0.98rem, 1.2vw, 1.08rem);
    line-height: 1.7;
}

.tally-clean-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 1.45rem;
}

.tally-clean-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.45rem;
    padding: 0.58rem 0.82rem;
    border: 1px solid rgba(20, 48, 79, 0.12);
    border-radius: 999px;
    color: #14304f;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(20, 48, 79, 0.07);
    font-weight: 800;
    line-height: 1;
}

.tally-clean-pills i {
    color: #f5a400;
}

.tally-clean-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 2rem;
}

.tally-clean-actions .ai-btn-primary {
    border-color: rgba(245, 164, 0, 0.34) !important;
    color: #07142f !important;
    background: linear-gradient(135deg, #ffd166 0%, #ff8a5b 52%, #39d7ff 100%) !important;
    box-shadow: 0 14px 32px rgba(255, 138, 91, 0.22) !important;
}

.tally-clean-actions .ai-btn-ghost {
    border-color: rgba(20, 48, 79, 0.18) !important;
    color: #14304f !important;
    background: #ffffff !important;
    box-shadow: 0 10px 24px rgba(20, 48, 79, 0.08) !important;
}

.tally-clean-visual {
    position: relative;
    margin-left: auto;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.62);
}

.tally-clean-visual img {
    display: block;
    width: min(100%, 760px);
    max-height: 470px;
    margin-left: auto;
    border-radius: 8px;
    object-fit: contain;
    object-position: center;
    filter: drop-shadow(0 24px 34px rgba(20, 48, 79, 0.08));
}

@media (max-width: 991.98px) {
    .tally-clean-hero {
        padding-top: 6.5rem;
    }

    .tally-clean-copy,
    .tally-clean-copy h1,
    .tally-clean-copy p {
        max-width: 100%;
    }

    .tally-clean-visual img {
        width: 100%;
        margin-inline: auto;
    }
}

@media (max-width: 767.98px) {
    .tally-clean-hero {
        padding: 6rem 0 3rem;
    }

    .tally-clean-copy h1 {
        font-size: clamp(1.55rem, 7vw, 2.08rem);
        line-height: 1.12;
    }

    .tally-clean-pills {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .tally-clean-pills span,
    .tally-clean-actions .btn {
        justify-content: center;
        width: 100%;
    }
}

.tally-authorized-note-section {
    padding: 1.15rem 0 1rem;
    background:
        linear-gradient(180deg, #f7fbff 0%, #edf6ff 100%) !important;
}

.tally-authorized-note-section .gem-product-card {
    padding: clamp(1.05rem, 2vw, 1.45rem) clamp(1rem, 2.4vw, 1.65rem);
    border-radius: 5px;
}

.tally-authorized-note-section .ai-kicker {
    margin-bottom: 0.55rem;
    font-size: 0.78rem;
}

.tally-authorized-note-section p {
    margin-bottom: 0.45rem !important;
    line-height: 1.58;
}

.tally-authorized-note-section + .tally-breadcrumb-section {
    margin-top: 0;
    padding-top: 0.9rem;
}

@media (max-width: 767.98px) {
    .tally-authorized-note-section {
        padding: 0.85rem 0 0.75rem;
    }

    .tally-authorized-note-section .gem-product-card {
        padding: 1rem;
    }
}

/* Service-specific client review carousel */
.client-review-section {
    scroll-margin-top: 7rem;
    background:
        linear-gradient(180deg, #f8fbff 0%, #ffffff 52%, #fff8ed 100%);
}

.client-review-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr);
    gap: clamp(1.4rem, 4vw, 3.2rem);
    align-items: center;
}

.client-review-intro {
    max-width: 470px;
}

.client-review-intro h2 {
    margin: 0 0 0.9rem;
    color: #102a55;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.65rem, 2.6vw, 2.55rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.client-review-intro p {
    margin: 0;
    color: #43556d;
    font-size: 1.02rem;
    line-height: 1.72;
}

.client-review-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 1.25rem;
    color: #0a3f96;
    font-weight: 800;
    text-decoration: none;
}

.client-review-gallery-link:hover,
.client-review-gallery-link:focus {
    color: #e65f3e;
    text-decoration: underline;
    text-underline-offset: 0.28rem;
}

.client-review-carousel {
    position: relative;
    scroll-margin-top: 7rem;
    padding-bottom: 3.4rem;
}

.client-review-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(132px, 178px);
    gap: clamp(1rem, 2.5vw, 1.65rem);
    min-height: 356px;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid rgba(16, 42, 85, 0.1);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 20px 48px rgba(16, 42, 85, 0.1);
}

.client-review-card-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.client-review-source {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.95rem;
    padding: 0.38rem 0.62rem;
    border: 1px solid rgba(230, 95, 62, 0.24);
    border-radius: 999px;
    color: #9d341d;
    background: #fff3ed;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.client-review-card h3 {
    margin: 1rem 0 0.75rem;
    color: #102a55;
    font-family: "Poppins", sans-serif;
    font-size: clamp(1.1rem, 1.5vw, 1.38rem);
    line-height: 1.25;
    letter-spacing: 0;
}

.client-review-card blockquote {
    position: relative;
    margin: 0;
    color: #25354d;
    font-size: clamp(1rem, 1.12vw, 1.08rem);
    line-height: 1.75;
}

.client-review-card blockquote::before {
    content: "\201C";
    position: absolute;
    top: -1.15rem;
    left: -0.2rem;
    color: rgba(57, 151, 206, 0.16);
    font-size: 4rem;
    line-height: 1;
    pointer-events: none;
}

.client-review-author {
    display: grid;
    gap: 0.15rem;
    margin-top: auto;
    padding-top: 1.15rem;
}

.client-review-author strong {
    color: #102a55;
    font-family: "Poppins", sans-serif;
    font-size: 1rem;
}

.client-review-author span {
    color: #5b6a80;
    font-weight: 700;
}

.client-review-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.95rem;
}

.client-review-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 1.85rem;
    padding: 0.34rem 0.58rem;
    border-radius: 999px;
    color: #0f4d65;
    background: #eaf8fb;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.client-review-proof {
    display: grid;
    align-self: stretch;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid rgba(16, 42, 85, 0.12);
    border-radius: 8px;
    color: #102a55;
    background: #f7faff;
    text-align: center;
    text-decoration: none;
}

.client-review-proof img {
    width: 100%;
    height: 100%;
    max-height: 280px;
    padding: 0.65rem;
    object-fit: contain;
    object-position: center;
}

.client-review-proof span {
    padding: 0.7rem 0.85rem;
    border-top: 1px solid rgba(16, 42, 85, 0.1);
    color: #0a3f96;
    background: #ffffff;
    font-weight: 900;
}

.client-review-proof:hover,
.client-review-proof:focus {
    border-color: rgba(230, 95, 62, 0.38);
    color: #e65f3e;
}

.client-review-indicators {
    right: auto;
    bottom: 0.25rem;
    left: 0;
    justify-content: flex-start;
    margin: 0;
    gap: 0.42rem;
}

.client-review-indicators [data-bs-target] {
    width: 2.35rem;
    height: 0.36rem;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: #c7d5e8;
    opacity: 1;
}

.client-review-indicators .active {
    background: #e65f3e;
}

.client-review-controls {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 0.6rem;
}

.client-review-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.65rem;
    aspect-ratio: 1;
    border: 1px solid rgba(16, 42, 85, 0.14);
    border-radius: 50%;
    color: #102a55;
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(16, 42, 85, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.client-review-nav i {
    font-size: 1.25rem;
    line-height: 1;
}

.client-review-nav:hover,
.client-review-nav:focus {
    border-color: rgba(230, 95, 62, 0.45);
    color: #e65f3e;
    transform: translateY(-2px);
}

.client-review-carousel .carousel-item.active .client-review-card {
    animation: clientReviewIn 0.55s ease both;
}

@keyframes clientReviewIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .client-review-shell {
        grid-template-columns: 1fr;
    }

    .client-review-intro {
        max-width: 720px;
    }
}

@media (max-width: 767.98px) {
    .client-review-card {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 1.05rem;
    }

    .client-review-proof {
        min-height: 210px;
    }

    .client-review-proof img {
        max-height: 230px;
    }

    .client-review-indicators {
        max-width: calc(100% - 6.2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-review-carousel .carousel-item.active .client-review-card {
        animation: none;
    }

    .client-review-nav {
        transition: none;
    }
}

/* Main site to Creative Media Agency bridge */
.navbar-custom .nav-media-entry {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
    margin: 0.25rem 0.45rem;
    padding: 0.75rem 0.85rem !important;
    border-radius: 0.85rem;
    background:
        linear-gradient(135deg, rgba(25, 217, 255, 0.12), rgba(236, 72, 153, 0.12)),
        rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(103, 232, 249, 0.18);
}

.navbar-custom .nav-media-entry i {
    width: 2rem;
    aspect-ratio: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #031126;
    background: linear-gradient(135deg, #19d9ff, #ff6fb4);
}

.navbar-custom .nav-media-entry span {
    display: grid;
    gap: 0.15rem;
    line-height: 1.1;
}

.navbar-custom .nav-media-entry small {
    color: rgba(232, 245, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0;
}

.ai-media-bridge-section {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.ai-media-bridge {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    overflow: hidden;
    padding: clamp(1.4rem, 4vw, 3.2rem);
    border: 1px solid rgba(103, 232, 249, 0.24);
    border-radius: 2rem;
    background:
        radial-gradient(circle at 12% 18%, rgba(25, 217, 255, 0.22), transparent 22rem),
        radial-gradient(circle at 90% 14%, rgba(236, 72, 153, 0.2), transparent 24rem),
        linear-gradient(135deg, rgba(7, 27, 62, 0.84), rgba(3, 17, 38, 0.74));
    box-shadow: 0 32px 90px rgba(0, 10, 32, 0.38);
}

.ai-media-bridge::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(110deg, black, transparent 74%);
}

.ai-media-bridge-copy h2 {
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 4.2rem);
    line-height: 1.02;
}

.ai-media-bridge-copy .ai-lead {
    max-width: 680px;
}

.ai-media-bridge-actions,
.ai-media-bridge-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.6rem;
}

.ai-media-bridge-pills span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.62rem 0.82rem;
    border-radius: 999px;
    color: #e8f5ff;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(103, 232, 249, 0.18);
    font-weight: 800;
    font-size: 0.86rem;
}

.ai-media-bridge-pills i {
    color: #19d9ff;
}

.ai-media-bridge-visual {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(150px, 0.55fr);
    gap: 1rem;
    align-items: stretch;
}

.ai-media-bridge-frame,
.ai-media-mini-card {
    position: relative;
    overflow: hidden;
    display: block;
    color: #ffffff !important;
    text-decoration: none;
    border: 1px solid rgba(103, 232, 249, 0.22);
    background: #061a3d;
    box-shadow: 0 24px 58px rgba(0, 10, 32, 0.3);
}

.ai-media-bridge-frame {
    min-height: 430px;
    border-radius: 1.5rem;
}

.ai-media-bridge-frame img,
.ai-media-mini-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
    filter: saturate(1.08) contrast(1.04);
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.ai-media-bridge-frame::before,
.ai-media-mini-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(2, 8, 23, 0.86), rgba(2, 8, 23, 0.12) 62%),
        linear-gradient(135deg, rgba(25, 217, 255, 0.28), transparent 38%),
        linear-gradient(315deg, rgba(236, 72, 153, 0.26), transparent 42%);
}

.ai-media-bridge-frame:hover img,
.ai-media-mini-card:hover img {
    transform: scale(1.05);
    opacity: 0.94;
}

.ai-media-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 4.35rem;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #031126;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
    font-size: 2rem;
}

.ai-media-frame-label,
.ai-media-mini-card span {
    position: absolute;
    z-index: 2;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.1;
}

.ai-media-frame-label {
    font-size: 1.35rem;
}

.ai-media-bridge-mini {
    display: grid;
    gap: 1rem;
}

.ai-media-mini-card {
    min-height: 205px;
    border-radius: 1.25rem;
}

.ai-media-mini-card span {
    font-size: 1rem;
}

@media (max-width: 1199.98px) {
    .ai-media-bridge {
        grid-template-columns: 1fr;
    }

    .ai-media-bridge-visual {
        max-width: 860px;
    }
}

@media (max-width: 767.98px) {
    .ai-media-bridge {
        border-radius: 1.35rem;
    }

    .ai-media-bridge-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .ai-media-bridge-visual {
        grid-template-columns: 1fr;
    }

    .ai-media-bridge-frame {
        min-height: 260px;
        border-radius: 1.2rem;
    }

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

    .ai-media-mini-card {
        min-height: 150px;
    }
}

/* Refined home hero: meaningful support visual and compact media connection */
.home-hero-service-photo {
    isolation: isolate;
}

.home-hero-service-photo::before {
    content: "";
    position: absolute;
    inset: 0.72rem;
    z-index: 1;
    pointer-events: none;
    border-radius: 6px;
    background:
        linear-gradient(to top, rgba(2, 8, 23, 0.82), rgba(2, 8, 23, 0.08) 62%),
        linear-gradient(135deg, rgba(9, 105, 255, 0.24), transparent 46%);
}

.home-hero-service-photo img {
    position: relative;
    z-index: 0;
    object-position: center;
    filter: saturate(0.98) contrast(1.02) brightness(0.9);
}

.home-hero-service-photo .home-hero-signal,
.home-hero-photo-panel {
    z-index: 2;
}

.home-hero-photo-panel {
    position: absolute;
    right: 1.05rem;
    bottom: 1.05rem;
    width: min(15.5rem, calc(100% - 2.1rem));
    padding: 0.9rem;
    border: 1px solid rgba(103, 232, 249, 0.24);
    border-radius: 8px;
    color: #ffffff;
    background: rgba(2, 11, 27, 0.72);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.home-hero-photo-panel strong,
.home-hero-photo-panel span {
    display: block;
}

.home-hero-photo-panel strong {
    margin-bottom: 0.28rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    line-height: 1.15;
}

.home-hero-photo-panel span {
    color: rgba(232, 245, 255, 0.76);
    font-size: 0.78rem;
    line-height: 1.45;
}

.ai-media-strip-section {
    padding: 2.2rem 0 0;
}

.ai-media-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1.2rem;
    align-items: center;
    padding: 1.1rem;
    border: 1px solid rgba(103, 232, 249, 0.2);
    border-radius: 1.2rem;
    background:
        linear-gradient(135deg, rgba(8, 31, 73, 0.82), rgba(3, 17, 38, 0.72)),
        radial-gradient(circle at 90% 20%, rgba(236, 72, 153, 0.16), transparent 18rem);
    box-shadow: 0 18px 46px rgba(0, 10, 32, 0.22);
}

.ai-media-strip-icon {
    width: 3.1rem;
    aspect-ratio: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: #031126;
    background: linear-gradient(135deg, #19d9ff, #ff6fb4);
    box-shadow: 0 12px 28px rgba(25, 217, 255, 0.18);
}

.ai-media-strip-copy span {
    display: block;
    margin-bottom: 0.22rem;
    color: #19d9ff;
    font-family: var(--font-mono);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ai-media-strip-copy strong {
    display: block;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    line-height: 1.25;
}

.ai-media-strip-copy p {
    max-width: 760px;
    margin: 0.28rem 0 0;
    color: rgba(232, 245, 255, 0.68) !important;
    font-size: 0.92rem;
    line-height: 1.55;
}

.ai-media-strip-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.ai-media-strip-actions .btn {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .ai-media-strip {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .ai-media-strip-actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .home-hero-photo-panel {
        position: relative;
        right: auto;
        bottom: auto;
        width: auto;
        margin: 0.75rem;
    }

    .home-hero-service-photo::before {
        bottom: 5.7rem;
    }

    .ai-media-strip {
        grid-template-columns: 1fr;
    }

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


/* --------------------------------------------------------------------------
   Complete blogging platform
   -------------------------------------------------------------------------- */
.blog-home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(9rem, 14vw, 12rem) 0 clamp(4rem, 7vw, 6.5rem);
    background:
        radial-gradient(circle at 82% 20%, rgba(25, 217, 255, .28), transparent 24rem),
        radial-gradient(circle at 10% 90%, rgba(9, 105, 255, .42), transparent 32rem),
        linear-gradient(135deg, #020817, #06275b 55%, #031126);
}
.blog-home-hero::after { content:""; position:absolute; inset:0; pointer-events:none; background-image:linear-gradient(rgba(103,232,249,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(103,232,249,.05) 1px,transparent 1px); background-size:44px 44px; mask-image:linear-gradient(to bottom,#000,transparent); }
.blog-home-hero .container { position:relative; z-index:1; display:grid; grid-template-columns:minmax(0,1.2fr) minmax(18rem,.7fr); gap:clamp(2rem,6vw,6rem); align-items:end; }
.blog-home-hero-copy h1 { max-width:880px; margin:.8rem 0 1.1rem; color:#fff!important; font-size:clamp(2.6rem,5.5vw,5.7rem); line-height:.98; }
.blog-home-hero-copy p { max-width:700px; margin:0; color:rgba(232,245,255,.75)!important; font-size:clamp(1.05rem,1.6vw,1.3rem); }
.blog-home-search { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:.65rem; align-items:center; padding:.55rem; border:1px solid rgba(103,232,249,.25); border-radius:1.25rem; background:rgba(2,11,27,.76); box-shadow:0 24px 65px rgba(0,8,28,.42); backdrop-filter:blur(16px); }
.blog-home-search>i { margin-left:.55rem; color:#19d9ff; }
.blog-home-search input { min-width:0; padding:.75rem .25rem; border:0; outline:0; color:#fff; background:transparent; }
.blog-home-search input::placeholder { color:rgba(232,245,255,.48); }
.blog-home-search button { padding:.72rem 1rem; border:0; border-radius:.85rem; color:#021025; background:linear-gradient(135deg,#19d9ff,#67e8f9); font-weight:900; }
.blog-home-content,.blog-related-section,.blog-author-page { padding:clamp(4rem,7vw,7rem) 0; background:#f5f9ff; }
.blog-filter-strip { display:flex; gap:.65rem; overflow-x:auto; padding:.35rem 0 1.5rem; scrollbar-width:none; }
.blog-filter-strip a { display:inline-flex; gap:.5rem; align-items:center; flex:0 0 auto; padding:.62rem .9rem; border:1px solid #d7e5f8; border-radius:999px; color:#315b8b!important; background:#fff; font-weight:800; text-decoration:none; }
.blog-filter-strip a span { display:grid; place-items:center; min-width:1.5rem; height:1.5rem; padding:0 .35rem; border-radius:999px; background:#edf5ff; font-size:.72rem; }
.blog-filter-strip a.active,.blog-filter-strip a:hover { color:#fff!important; border-color:#0754c7; background:#0754c7; }
.blog-feature-story { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(20rem,.85fr); overflow:hidden; margin:1rem 0 4rem; border:1px solid #d7e5f8; border-radius:2rem; background:#fff; box-shadow:0 28px 75px rgba(7,84,199,.12); }
.blog-feature-image { min-height:440px; overflow:hidden; }
.blog-feature-image img { width:100%; height:100%; object-fit:cover; transition:transform .5s ease; }
.blog-feature-story:hover .blog-feature-image img { transform:scale(1.025); }
.blog-feature-story>div { display:flex; flex-direction:column; justify-content:center; padding:clamp(2rem,4vw,4rem); }
.blog-card-kicker,.blog-story-taxonomy a { color:#0754c7!important; font-size:.76rem; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.blog-feature-story h2 { margin:.75rem 0 1rem; font-size:clamp(2rem,3vw,3.4rem); }
.blog-feature-story h2 a,.blog-story-card h3 a { color:#092a55!important; text-decoration:none; }
.blog-feature-story p,.blog-story-card p { color:#5c7088!important; }
.blog-card-author { display:flex; gap:.75rem; align-items:center; margin-top:auto; padding-top:1rem; }
.blog-card-author img { width:42px; height:42px; border-radius:50%; object-fit:cover; background:#e8f2ff; }
.blog-card-author span { display:grid; }
.blog-card-author b { color:#12365f; font-size:.9rem; }
.blog-card-author small { color:#71849a; }
.blog-results-heading { display:flex; flex-wrap:wrap; gap:.5rem 1rem; align-items:end; margin:0 0 1.5rem; }
.blog-results-heading h2 { width:100%; margin:0; color:#092a55!important; font-size:clamp(1.8rem,3vw,2.8rem); }
.blog-results-heading p { margin:0; color:#6a7f98!important; }
.blog-results-heading>a { margin-left:auto; }
.blog-story-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1.5rem; }
.blog-story-card { overflow:hidden; border:1px solid #d8e6f6; border-radius:1.4rem; background:#fff; box-shadow:0 18px 45px rgba(7,84,199,.08); transition:transform .2s ease,box-shadow .2s ease; }
.blog-story-card:hover { transform:translateY(-5px); box-shadow:0 26px 55px rgba(7,84,199,.14); }
.blog-story-image { position:relative; display:block; overflow:hidden; aspect-ratio:16/10; background:#06275b; }
.blog-story-image img { width:100%; height:100%; object-fit:cover; transition:transform .45s ease; }
.blog-story-card:hover .blog-story-image img { transform:scale(1.04); }
.blog-story-image>span { position:absolute; right:.75rem; bottom:.75rem; padding:.35rem .55rem; border-radius:999px; color:#fff; background:rgba(2,11,27,.82); font-size:.75rem; font-weight:800; backdrop-filter:blur(8px); }
.blog-story-body { display:flex; flex-direction:column; min-height:260px; padding:1.35rem; }
.blog-story-taxonomy { display:flex; flex-wrap:wrap; gap:.55rem; }
.blog-story-card h3 { margin:.7rem 0 .65rem; font-size:1.3rem; line-height:1.25; }
.blog-story-card p { display:-webkit-box; overflow:hidden; margin:0; -webkit-line-clamp:3; -webkit-box-orient:vertical; }
.blog-newsletter-card { display:grid; grid-template-columns:minmax(0,1fr) minmax(20rem,.75fr); gap:2rem; align-items:center; margin-top:5rem; padding:clamp(2rem,5vw,4.5rem); border-radius:2rem; color:#fff; background:radial-gradient(circle at 90% 0,rgba(25,217,255,.28),transparent 20rem),linear-gradient(135deg,#031126,#0754c7); box-shadow:0 30px 70px rgba(3,17,38,.22); }
.blog-newsletter-card h2 { color:#fff!important; font-size:clamp(2rem,3vw,3.2rem); }
.blog-newsletter-card p { color:rgba(232,245,255,.74)!important; }
.blog-newsletter-card form { display:flex; gap:.65rem; padding:.5rem; border:1px solid rgba(255,255,255,.18); border-radius:1rem; background:rgba(255,255,255,.09); }
.blog-newsletter-card input { min-width:0; flex:1; padding:.8rem; border:0; outline:0; color:#fff; background:transparent; }
.blog-newsletter-card button { padding:.8rem 1rem; border:0; border-radius:.75rem; color:#031126; background:#19d9ff; font-weight:900; }
.blog-newsletter-success,.blog-newsletter-error { grid-column:2; margin:0; color:#a7f3d0!important; }

/* Reader page */
.blog-article-page { background:#f7faff; }
.blog-preview-bar { position:sticky; top:0; z-index:1050; display:flex; gap:.75rem; align-items:center; justify-content:center; padding:.75rem 1rem; color:#fff; background:#6d28d9; }
.blog-preview-bar a { margin-left:1rem; color:#fff!important; font-weight:900; }
.blog-article-header { padding:clamp(9rem,13vw,11rem) 0 3.5rem; background:linear-gradient(180deg,#eaf3ff,#f7faff); }
.blog-reading-container { width:min(100% - 2rem,860px); }
.blog-back-link { display:inline-flex; gap:.45rem; align-items:center; margin-bottom:2rem; font-weight:900; text-decoration:none; }
.blog-article-header h1 { margin:.8rem 0 1rem; color:#082a56!important; font-size:clamp(2.6rem,5vw,5rem); line-height:1.03; }
.blog-article-deck { color:#516c88!important; font-size:clamp(1.15rem,2vw,1.45rem); }
.blog-article-byline { display:flex; gap:.75rem; align-items:center; margin-top:1.7rem; }
.blog-article-byline>img { width:52px; height:52px; border-radius:50%; object-fit:cover; }
.blog-article-byline>div { display:grid; }
.blog-article-byline strong { color:#133a65; }
.blog-article-byline span { color:#70859b; font-size:.88rem; }
.blog-article-byline form { margin-left:auto; }
.blog-save-btn { display:inline-flex; gap:.4rem; align-items:center; padding:.58rem .8rem; border:1px solid #c8dbf1; border-radius:999px; color:#194c82; background:#fff; font-weight:900; }
.blog-save-btn.active { color:#fff; border-color:#0754c7; background:#0754c7; }
.blog-article-image-wrap { width:min(100% - 2rem,1180px); }
.blog-article-hero-image { width:100%; max-height:700px; border-radius:1.6rem; object-fit:cover; box-shadow:0 30px 75px rgba(7,84,199,.15); }
.blog-article-content { padding:clamp(3rem,6vw,6rem) 0 2rem; color:#243e59; font-family:Georgia,'Times New Roman',serif; font-size:1.16rem; line-height:1.9; }
.blog-article-content h2,.blog-article-content h3,.blog-article-content h4 { margin:2.4em 0 .7em; color:#082a56!important; font-family:var(--font-heading); }
.blog-article-content h2 { font-size:2rem; }
.blog-article-content p,.blog-article-content li { color:#314b66!important; }
.blog-article-content img { width:auto; height:auto; margin:2rem auto; border-radius:1rem; }
.blog-article-content blockquote { margin:2rem 0; padding:1.2rem 1.5rem; border-left:4px solid #19d9ff; border-radius:0 1rem 1rem 0; color:#133a65; background:#e8f4ff; font-size:1.25rem; }
.blog-article-content pre { overflow:auto; padding:1.25rem; border-radius:1rem; color:#dff8ff; background:#031126; }
.blog-article-content table { width:100%; margin:2rem 0; border-collapse:collapse; }
.blog-article-content th,.blog-article-content td { padding:.75rem; border:1px solid #d4e2f2; }
.blog-reaction-panel { display:flex; gap:1.5rem; align-items:center; justify-content:space-between; margin:2rem 0; padding:1.35rem; border:1px solid #d4e3f5; border-radius:1.3rem; background:#fff; }
.blog-reaction-panel span { color:#133a65; font-weight:900; }
.blog-reaction-panel p { margin:0; }
.blog-reaction-actions { display:flex; flex-wrap:wrap; gap:.5rem; }
.blog-reaction-actions form { margin:0; }
.blog-reaction-actions button,.blog-reaction-actions a { display:inline-flex; gap:.4rem; align-items:center; padding:.62rem .8rem; border:1px solid #d4e3f5; border-radius:999px; color:#315b8b!important; background:#f8fbff; font-size:.85rem; font-weight:800; text-decoration:none; }
.blog-reaction-actions button.active { color:#fff!important; border-color:#0754c7; background:#0754c7; }
.blog-share-row { display:flex; gap:.55rem; align-items:center; padding:1.25rem 0 2.5rem; border-bottom:1px solid #d6e3f1; }
.blog-share-row>span { margin-right:auto; color:#133a65; font-weight:900; }
.blog-share-row a,.blog-share-row button { display:grid; place-items:center; width:2.6rem; height:2.6rem; border:1px solid #d1e1f3; border-radius:50%; color:#0754c7!important; background:#fff; }
.blog-comments-section { padding:2rem 0 4rem; }
.blog-section-heading h2 { color:#082a56!important; }
.blog-comment-compose { display:grid; grid-template-columns:auto 1fr; gap:1rem; margin:1.5rem 0 2rem; padding:1.25rem; border:1px solid #d5e4f4; border-radius:1.25rem; background:#fff; }
.blog-comment-compose>img,.blog-comment-item>img { width:46px; height:46px; border-radius:50%; object-fit:cover; }
.blog-comment-compose>div { display:grid; gap:.65rem; }
.blog-comment-compose label { color:#133a65; font-weight:900; }
.blog-comment-compose textarea,.blog-reply-form textarea { width:100%; padding:.85rem; border:1px solid #d3e2f2; border-radius:.85rem; color:#183a5f; background:#f9fbff; }
.blog-comment-compose button,.blog-reply-form button { justify-self:start; padding:.62rem .85rem; border:0; border-radius:.7rem; color:#fff; background:#0754c7; font-weight:900; }
.blog-comment-list { display:grid; gap:1rem; }
.blog-comment-item { display:grid; grid-template-columns:auto 1fr; gap:1rem; padding:1.25rem; border:1px solid #d7e4f2; border-radius:1.1rem; background:#fff; }
.blog-comment-item header { display:flex; gap:.75rem; align-items:center; }
.blog-comment-item header strong { color:#133a65; }
.blog-comment-item header span { color:#8191a3; font-size:.82rem; }
.blog-comment-item p { margin:.45rem 0; color:#415d78!important; }
.blog-reply-toggle { padding:0; border:0; color:#0754c7; background:transparent; font-weight:900; }
.blog-reply-form { display:grid; gap:.5rem; margin-top:.8rem; }
.blog-comment-reply { display:grid; grid-template-columns:auto 1fr; gap:.75rem; margin-top:1rem; padding:1rem; border-left:3px solid #19d9ff; border-radius:0 .8rem .8rem 0; background:#f2f8ff; }
.blog-comment-reply img { width:34px; height:34px; border-radius:50%; object-fit:cover; }
.author-profile { border:1px solid #d6e5f4!important; background:#fff!important; }
.author-profile .author-name a { color:#082a56!important; text-decoration:none; }
.blog-author-page { padding-top:10rem; }
.blog-author-hero { display:grid; grid-template-columns:auto minmax(0,1fr); gap:2rem; align-items:center; margin-bottom:4rem; padding:clamp(2rem,5vw,4rem); border:1px solid #d7e5f4; border-radius:2rem; background:#fff; }
.blog-author-hero>img { width:clamp(130px,18vw,210px); aspect-ratio:1; border-radius:1.5rem; object-fit:cover; }
.blog-author-hero h1 { color:#082a56!important; font-size:clamp(2.5rem,5vw,4.5rem); }
.blog-author-role { color:#0754c7!important; font-weight:900; }

/* Blog Studio */
.blog-admin-page,.blog-editor-page { padding-top:9rem!important; padding-bottom:8rem!important; }
.blog-admin-heading { display:flex; gap:1.5rem; align-items:flex-end; justify-content:space-between; margin-bottom:2rem; }
.blog-admin-heading h1 { margin:.35rem 0; color:#082a56!important; font-size:clamp(2rem,4vw,3.6rem); }
.blog-admin-heading p { margin:0; }
.blog-action-btn { display:inline-flex; gap:.45rem; align-items:center; justify-content:center; padding:.72rem .95rem; border:1px solid transparent; border-radius:.85rem; font-weight:900; text-decoration:none; white-space:nowrap; }
.blog-action-muted { color:#c6ddf4!important; border-color:rgba(103,232,249,.2); background:rgba(255,255,255,.06); }
.blog-action-review { color:#06204a!important; background:#a5f3fc; }
.blog-action-publish { color:#fff!important; background:linear-gradient(135deg,#0754c7,#19aee8); box-shadow:0 12px 30px rgba(9,105,255,.28); }
.blog-action-archive { color:#fecaca!important; border-color:rgba(248,113,113,.25); background:rgba(127,29,29,.35); }
.blog-admin-filter { display:grid; grid-template-columns:minmax(16rem,1fr) 11rem 10rem auto auto; gap:.65rem; margin-bottom:1rem; padding:.75rem; border:1px solid rgba(103,232,249,.18); border-radius:1.1rem; background:rgba(7,27,62,.72); }
.blog-admin-filter .form-control,.blog-admin-filter .form-select,.blog-admin-filter .input-group-text { border-color:rgba(103,232,249,.17); color:#e8f5ff; background:#071b3e; }
.blog-admin-table-card { overflow:hidden; border:1px solid rgba(103,232,249,.18); border-radius:1.2rem; background:rgba(7,27,62,.76); box-shadow:0 22px 60px rgba(0,8,28,.3); }
.blog-admin-table-card .table { --bs-table-bg:transparent; --bs-table-color:#c7dbef; --bs-table-hover-color:#fff; --bs-table-hover-bg:rgba(25,217,255,.05); }
.blog-admin-table-card th { padding:1rem; border-color:rgba(103,232,249,.14); color:#83dff4; font-size:.72rem; letter-spacing:.08em; text-transform:uppercase; }
.blog-admin-table-card td { padding:1rem; border-color:rgba(103,232,249,.1); }
.blog-admin-post-cell,.blog-user-cell { display:flex; gap:.75rem; align-items:center; min-width:260px; }
.blog-admin-post-cell img { width:72px; height:52px; border-radius:.65rem; object-fit:cover; }
.blog-user-cell img { border-radius:50%; object-fit:cover; }
.blog-admin-post-cell div,.blog-user-cell div { display:grid; }
.blog-admin-post-cell strong,.blog-user-cell strong { color:#e8f5ff; }
.blog-admin-post-cell span,.blog-user-cell span { color:#8fabca; font-size:.8rem; }
.blog-status-pill,.blog-scope-pill,.blog-role-pill { display:inline-flex; gap:.35rem; align-items:center; padding:.4rem .58rem; border:1px solid rgba(103,232,249,.16); border-radius:999px; color:#b9d3ed; background:rgba(255,255,255,.05); font-size:.76rem; font-weight:900; }
.blog-status-published { color:#a7f3d0; border-color:rgba(52,211,153,.25); background:rgba(6,95,70,.22); }
.blog-status-review { color:#fde68a; border-color:rgba(251,191,36,.25); }
.blog-status-scheduled { color:#bfdbfe; border-color:rgba(96,165,250,.3); }
.blog-metric { display:inline-flex; gap:.25rem; margin-right:.5rem; color:#9db9d6; font-size:.78rem; }
.blog-row-actions,.blog-role-form { display:flex; gap:.35rem; align-items:center; justify-content:flex-end; }
.blog-row-actions form { margin:0; }
.blog-icon-btn { display:inline-grid; place-items:center; width:2.25rem; height:2.25rem; padding:0; border:1px solid rgba(103,232,249,.16); border-radius:.65rem; color:#bcd8f2; background:rgba(255,255,255,.05); }
.blog-icon-edit { color:#67e8f9; }
.blog-icon-delete { color:#fda4af; }
.blog-empty-state { grid-column:1/-1; padding:3rem; text-align:center; }
.blog-empty-state>i { font-size:2.5rem; color:#19d9ff; }
.blog-empty-state h2 { margin:.75rem 0; }
.blog-studio-stats { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:.8rem; margin-bottom:1.25rem; }
.blog-stat-card { display:grid; gap:.3rem; padding:1rem; border:1px solid rgba(103,232,249,.16); border-radius:1rem; background:rgba(7,27,62,.72); }
.blog-stat-card i { color:#19d9ff; }
.blog-stat-card strong { color:#fff; font-size:1.65rem; }
.blog-stat-card span { color:#9db9d6; font-size:.78rem; }
.blog-studio-layout { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(19rem,.65fr); gap:1rem; }
.blog-studio-side { display:grid; gap:1rem; align-content:start; }
.blog-editor-card { min-width:0; padding:1.25rem; border:1px solid rgba(103,232,249,.16); border-radius:1.15rem; background:rgba(7,27,62,.78); box-shadow:0 22px 55px rgba(0,8,28,.25); }
.blog-editor-card-heading { display:flex; gap:1rem; align-items:center; justify-content:space-between; margin-bottom:1rem; }
.blog-editor-card-heading h2 { margin:.3rem 0 0; font-size:1.35rem; }
.blog-editor-card-heading.compact { margin-bottom:1rem; }
.blog-studio-list { display:grid; }
.blog-studio-list>a { display:grid; grid-template-columns:auto 1fr auto; gap:.8rem; align-items:center; padding:.75rem 0; border-bottom:1px solid rgba(103,232,249,.1); text-decoration:none; }
.blog-studio-list img { width:58px; height:45px; border-radius:.55rem; object-fit:cover; }
.blog-studio-list span { display:grid; }
.blog-studio-list strong { color:#e8f5ff; }
.blog-studio-list small { color:#91acc7; }
.blog-studio-quick-links { display:grid; gap:.5rem; }
.blog-studio-quick-links a { display:flex; gap:.75rem; align-items:center; padding:.75rem; border-radius:.8rem; color:#d8edff!important; background:rgba(255,255,255,.04); text-decoration:none; }
.blog-studio-quick-links>a>i { display:grid; place-items:center; width:2.25rem; height:2.25rem; border-radius:.65rem; color:#031126; background:#67e8f9; }
.blog-studio-quick-links span { display:grid; }
.blog-studio-quick-links b { color:#8eabc7; font-size:.72rem; font-weight:500; }
.blog-top-row { display:flex; gap:.75rem; align-items:center; padding:.65rem 0; }
.blog-top-row>span { display:grid; place-items:center; width:1.8rem; height:1.8rem; border-radius:.5rem; color:#031126; background:#19d9ff; font-weight:900; }
.blog-top-row div { display:grid; }
.blog-top-row b { color:#e8f5ff; font-size:.85rem; }
.blog-top-row small { color:#89a6c3; }
.blog-editor-grid { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:1rem; align-items:start; }
.blog-editor-main,.blog-editor-sidebar { display:grid; gap:1rem; min-width:0; }
.blog-editor-sidebar { position:sticky; top:5.5rem; }
.blog-editor-card .form-label { color:#d9eeff; font-weight:800; }
.blog-editor-card .form-label>span { color:#fb7185; }
.blog-editor-card .form-control,.blog-editor-card .form-select,.blog-editor-card .choices__inner,.blog-editor-card .choices__input { border-color:rgba(103,232,249,.18)!important; color:#e8f5ff!important; background:#061936!important; }
.blog-editor-card .form-control::placeholder { color:#64829f; }
.blog-title-input { padding:.75rem 0!important; border:0!important; border-bottom:1px solid rgba(103,232,249,.15)!important; border-radius:0!important; font-family:var(--font-heading); font-size:clamp(1.8rem,4vw,3.2rem); font-weight:800; }
.blog-subtitle-input { padding:.7rem 0!important; border:0!important; border-radius:0!important; font-size:1.05rem; }
.blog-editor-inline-meta { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:.75rem; color:#7f9ebb; font-size:.78rem; }
.blog-editor-inline-meta span { display:inline-flex; gap:.35rem; align-items:center; }
.blog-editor-inline-meta b { max-width:220px; overflow:hidden; color:#9ddff3; text-overflow:ellipsis; white-space:nowrap; }
.blog-body-card .ck-editor__editable { min-height:520px; color:#1a3553!important; background:#fff!important; }
.blog-body-card .ck-toolbar { border-color:rgba(103,232,249,.18)!important; background:#eaf5ff!important; }
.blog-editor-help { margin:.7rem 0 0; color:#7f9fbd!important; font-size:.8rem; }
.blog-auto-badge { padding:.35rem .55rem; border-radius:999px; color:#a7f3d0; background:rgba(16,185,129,.12); font-size:.7rem; font-weight:900; }
.blog-serp-preview { padding:1.15rem; border:1px solid rgba(103,232,249,.14); border-radius:.9rem; background:#fff; }
.blog-serp-preview>span { color:#59728d; font-size:.78rem; }
.blog-serp-preview h3 { margin:.35rem 0; color:#1a0dab!important; font-family:Arial,sans-serif; font-size:1.25rem; font-weight:400; letter-spacing:0; }
.blog-serp-preview p { margin:0; color:#4d5156!important; font-family:Arial,sans-serif; font-size:.88rem; }
.blog-advanced-accordion .accordion-item,.blog-advanced-accordion .accordion-button { color:#c9e3f8; border-color:rgba(103,232,249,.14); background:transparent; }
.blog-current-image { display:grid; gap:.5rem; }
.blog-current-image img { width:180px; border-radius:.7rem; }
.blog-publish-actions.vertical { display:grid; gap:.55rem; margin-top:1rem; }
.blog-publish-actions.vertical .blog-action-btn { width:100%; border:0; }
.blog-toggle-stack { display:grid; gap:.7rem; margin-top:1rem; }
.blog-switch { display:flex; gap:.65rem; align-items:center; cursor:pointer; }
.blog-switch input { position:absolute; opacity:0; }
.blog-switch>span { position:relative; width:2.35rem; height:1.3rem; border-radius:999px; background:#31516f; transition:.2s; }
.blog-switch>span::after { content:""; position:absolute; top:.17rem; left:.18rem; width:.96rem; height:.96rem; border-radius:50%; background:#fff; transition:.2s; }
.blog-switch input:checked+span { background:#19bde2; }
.blog-switch input:checked+span::after { transform:translateX(1.02rem); }
.blog-switch b { color:#cce5f7; font-size:.84rem; }
.blog-image-drop-preview { display:grid; place-items:center; gap:.5rem; min-height:155px; margin-top:.65rem; padding:1rem; border:1px dashed rgba(103,232,249,.28); border-radius:.9rem; color:#799ab8; text-align:center; }
.blog-image-drop-preview img { width:100%; height:170px; border-radius:.7rem; object-fit:cover; }
.blog-image-drop-preview i { font-size:2rem; }
.blog-remove-check,.profile-remove-avatar { display:flex; gap:.4rem; align-items:center; margin-top:.65rem; color:#fca5a5; font-size:.8rem; }
.blog-editor-utility-links { display:flex; gap:.8rem; margin-top:.8rem; }
.blog-editor-utility-links a { font-weight:800; text-decoration:none; }
.blog-admin-tabs { display:flex; gap:.5rem; margin-bottom:1rem; }
.blog-admin-tabs a { padding:.6rem .85rem; border:1px solid rgba(103,232,249,.16); border-radius:999px; color:#a9c6df!important; text-decoration:none; }
.blog-admin-tabs a.active { color:#031126!important; background:#67e8f9; }
.blog-moderation-list,.blog-revision-timeline { display:grid; gap:.8rem; }
.blog-moderation-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:1rem; align-items:start; }
.blog-moderation-card>img { border-radius:50%; object-fit:cover; }
.blog-moderation-copy>div { display:grid; }
.blog-moderation-copy strong { color:#e7f4ff; }
.blog-moderation-copy span { color:#83a1be; font-size:.78rem; }
.blog-moderation-copy p { margin:.65rem 0 0; }
.blog-moderation-actions { display:flex; gap:.35rem; }
.blog-revision-timeline article { display:grid; grid-template-columns:auto 1fr auto; gap:1rem; align-items:center; }
.blog-revision-marker { display:grid; place-items:center; width:2.7rem; height:2.7rem; border-radius:.8rem; color:#031126; background:#67e8f9; }
.blog-revision-timeline strong { color:#e8f5ff; }
.blog-revision-timeline p { margin:.2rem 0; }
.blog-role-form select { width:105px; }
.profile-summary-pills { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1rem; }
.profile-summary-pills span { padding:.4rem .65rem; border:1px solid rgba(103,232,249,.18); border-radius:999px; color:#a8c3dc; font-size:.78rem; }
.profile-summary-pills b { color:#19d9ff; }
.profile-security-card h2 { color:#e8f5ff!important; }

@media (max-width:1199.98px) {
    .blog-studio-stats { grid-template-columns:repeat(3,1fr); }
    .blog-editor-grid { grid-template-columns:minmax(0,1fr) 300px; }
    .blog-admin-filter { grid-template-columns:1fr 1fr; }
    .blog-admin-filter .input-group { grid-column:1/-1; }
}
@media (max-width:991.98px) {
    .blog-home-hero .container,.blog-newsletter-card,.blog-feature-story,.blog-studio-layout,.blog-editor-grid { grid-template-columns:1fr; }
    .blog-feature-image { min-height:320px; }
    .blog-story-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .blog-editor-sidebar { position:static; }
    .blog-newsletter-success,.blog-newsletter-error { grid-column:1; }
}
@media (max-width:767.98px) {
    .blog-story-grid,.blog-studio-stats { grid-template-columns:1fr; }
    .blog-admin-heading { align-items:flex-start; flex-direction:column; }
    .blog-admin-filter { grid-template-columns:1fr; }
    .blog-admin-filter .input-group { grid-column:auto; }
    .blog-reaction-panel { align-items:flex-start; flex-direction:column; }
    .blog-author-hero { grid-template-columns:1fr; }
    .blog-moderation-card,.blog-revision-timeline article { grid-template-columns:auto 1fr; }
    .blog-moderation-actions,.blog-revision-timeline form { grid-column:2; }
}
@media (max-width:575.98px) {
    .blog-home-hero .container { width:100%; }
    .blog-home-search { grid-template-columns:auto 1fr; }
    .blog-home-search button { grid-column:1/-1; }
    .blog-feature-story { border-radius:1.3rem; }
    .blog-feature-story>div { padding:1.4rem; }
    .blog-newsletter-card form { flex-direction:column; }
    .blog-article-byline { flex-wrap:wrap; }
    .blog-article-byline form { width:100%; margin:0; }
    .blog-comment-compose { grid-template-columns:1fr; }
    .blog-editor-card { padding:1rem; }
}

/* Account access */
.auth-portal { min-height:100vh; display:grid; place-items:center; padding:9rem 1rem 6rem; background:radial-gradient(circle at 12% 18%,rgba(25,217,255,.2),transparent 24rem),radial-gradient(circle at 88% 82%,rgba(9,105,255,.35),transparent 28rem),#020817; }
.auth-portal-shell { display:grid; grid-template-columns:minmax(0,1fr) minmax(360px,.72fr); width:min(1100px,100%); overflow:hidden; border:1px solid rgba(103,232,249,.2); border-radius:2rem; background:rgba(5,22,52,.82); box-shadow:0 40px 100px rgba(0,6,24,.5); backdrop-filter:blur(20px); }
.auth-portal-story { display:flex; flex-direction:column; justify-content:center; min-height:620px; padding:clamp(2rem,5vw,5rem); background:radial-gradient(circle at 10% 90%,rgba(9,105,255,.45),transparent 25rem),linear-gradient(145deg,rgba(5,26,61,.45),rgba(3,17,38,.9)); }
.auth-portal-story h1 { margin:.75rem 0 1rem; color:#fff!important; font-size:clamp(2.5rem,4vw,4.5rem); line-height:1.02; }
.auth-portal-story>p { color:#a9c2db!important; font-size:1.08rem; }
.auth-feature-list { display:grid; gap:.7rem; margin:1.5rem 0 2rem; }
.auth-feature-list span { display:flex; gap:.65rem; align-items:center; color:#d8ecfc; font-weight:700; }
.auth-feature-list i { display:grid; place-items:center; width:2rem; height:2rem; border-radius:.6rem; color:#031126; background:#67e8f9; }
.auth-portal-story>a { align-self:flex-start; color:#67e8f9!important; font-weight:900; text-decoration:none; }
.auth-portal-card { padding:clamp(2rem,4vw,3.5rem); background:rgba(7,27,62,.86); }
.auth-portal-heading>span { color:#19d9ff; font-size:.72rem; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.auth-portal-heading h2 { margin:.3rem 0; color:#fff!important; font-size:2.5rem; }
.auth-portal-heading p { margin-bottom:1.5rem; }
.auth-portal-card form { display:grid; gap:.65rem; }
.auth-portal-card form>label { margin-top:.35rem; color:#d8ecfc; font-weight:800; }
.auth-input { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:.6rem; align-items:center; padding:.15rem .75rem; border:1px solid rgba(103,232,249,.18); border-radius:.8rem; background:#04152f; }
.auth-input:focus-within { border-color:#19d9ff; box-shadow:0 0 0 .2rem rgba(25,217,255,.1); }
.auth-input>i { color:#19d9ff; }
.auth-input input { min-width:0; padding:.75rem 0; border:0; outline:0; color:#e8f5ff; background:transparent; }
.auth-input input::placeholder { color:#607e9b; }
.auth-input button { padding:.3rem; border:0; color:#8eabc7; background:transparent; }
.auth-error { color:#fda4af; }
.auth-form-row { display:flex; align-items:center; justify-content:space-between; margin:.5rem 0; font-size:.82rem; }
.auth-check { display:flex; gap:.4rem; align-items:center; color:#a8c2dc; }
.auth-form-row a,.auth-switch a,.auth-terms a { color:#67e8f9!important; font-weight:800; }
.auth-submit { display:flex; gap:.5rem; align-items:center; justify-content:center; padding:.85rem; border:0; border-radius:.8rem; color:#031126; background:linear-gradient(135deg,#19d9ff,#67e8f9); box-shadow:0 16px 35px rgba(25,217,255,.18); font-weight:900; }
.auth-switch { margin:1.25rem 0 0; text-align:center; }
.auth-terms { margin:.5rem 0; font-size:.75rem; }
@media(max-width:900px){.auth-portal-shell{grid-template-columns:1fr}.auth-portal-story{min-height:0}.auth-portal-story h1{font-size:2.7rem}}
@media(max-width:575.98px){.auth-portal{padding-inline:.6rem}.auth-portal-shell{border-radius:1.25rem}.auth-portal-story,.auth-portal-card{padding:1.5rem}.auth-portal-story h1{font-size:2.2rem}.auth-form-row{align-items:flex-start;flex-direction:column;gap:.6rem}}
