/* Nxsol AI service pages.
   Change the variables below to match the home page colours. */

:root {
--hm-accent: #24a98b;
}
.nx-ai-page {
	--nx-accent: #3373cc;
	--nx-accent-dark: #1e40af;
	--nx-dark: #0f172a;
	--nx-text: #475569;
	--nx-bg-alt: #f5f7fb;
	--nx-border: #e2e8f0;
	--nx-radius: 12px;
	font-family: inherit;
	color: var(--nx-text);
}
.nx-ai-page *,
.nx-ai-page *::before,
.nx-ai-page *::after { box-sizing: border-box; }

.nx-ai-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Banner */
.nx-ai-hero {
	background: linear-gradient(135deg, #ffffff 55%, #e8effc 100%);
	border-top: 4px solid var(--nx-accent);
	padding: 70px 0;
}
.nx-ai-hero__inner {
	display: grid;
	grid-template-columns: 1fr 440px;
	gap: 60px;
	align-items: center;
}

.nx-ai-breadcrumb { font-size: 16px; margin-bottom: 36px; color: #64748b; }
.nx-ai-breadcrumb a { color: #64748b; text-decoration: none; }
.nx-ai-breadcrumb a:hover { color: var(--nx-accent); }
.nx-ai-breadcrumb .sep { margin: 0 8px; color: #94a3b8; }
.nx-ai-breadcrumb .is-current { color: var(--nx-accent); }

.nx-ai-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--nx-accent);
	margin-bottom: 14px;
}
.nx-ai-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--hm-accent); }

.nx-ai-title {
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.1;
	letter-spacing: -.02em;
	font-weight: 700;
	color: var(--nx-dark);
	margin: 0 0 20px;
}
.nx-ai-lead { max-width: 560px; font-size: 18px; line-height: 1.7; color: #334155; margin: 0 0 30px; }

/* Button (also used in the bottom call-to-action) */
.nx-ai-btn { border-radius: 999px; color:#fff !important }

/* Form card */
.nx-ai-hero__form {
	background: #fff;
	border: 1px solid var(--nx-border);
	border-top: 3px solid var(--nx-accent);
	border-radius: 20px;
	padding: 26px 24px 28px;
	box-shadow: 0 20px 50px rgba(15, 23, 42, .08);
}
.nx-ai-hero__form h2 { font-size: 30px; line-height: 1.2; color: var(--nx-dark); margin: 0 0 20px; }
.nx-ai-hero__form input[type="text"],
.nx-ai-hero__form input[type="email"],
.nx-ai-hero__form input[type="tel"],
.nx-ai-hero__form textarea {
	width: 100%;
	height: 44px;
	padding: 0 12px;
	margin: 0 0 8px;
	border: 1px solid var(--nx-border);
	border-radius: 8px;
	background: #f8fafc;
	font: inherit;
	font-size: 15px;
}
.nx-ai-hero__form textarea { height: 44px; padding-top: 10px; resize: none; }

@media (max-width: 991px) {
	.nx-ai-hero__inner { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
	.nx-ai-hero { padding: 50px 0; }
	.nx-ai-breadcrumb { margin-bottom: 24px; font-size: 14px; }
}

/* Buttons */
.nx-ai-btn { transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease; display: inline-block; padding: 14px 28px; border-radius: 999px; background: #245fc4; color: #fff; font-weight: 600; text-decoration: none; transition: background .2s; }
.nx-ai-btn:hover {     transform: translateY(-2px);
    background: #194da6;
    color: #fff; }
.nx-ai-btn--light { background: #fff; color: #0b1d38 !important; }
.nx-ai-btn--light:hover { border-color: #d7e5f8;
    background: #edf3fc; transform: translateY(-2px)}

/* Sections */
.nx-ai-section { padding: 80px 0; }
.nx-ai-section--alt { background: var(--nx-bg-alt); }
.nx-ai-heading { font-size: clamp(26px, 3.5vw, 36px); color: var(--nx-dark); margin: 0 0 40px; text-align: center; }

/* Cards */
.nx-ai-grid { display: grid; gap: 24px; }
.nx-ai-grid--4 { grid-template-columns: repeat(4, 1fr); }
.nx-ai-card { background: #fff; border: 1px solid var(--nx-border); border-radius: var(--nx-radius); padding: 28px 24px; }
.nx-ai-card h3 { font-size: 20px; color: var(--nx-dark); margin: 12px 0 10px; }
.nx-ai-card p { margin: 0; line-height: 1.7; }
.nx-ai-num { font-size: 14px; font-weight: 700; color: var(--nx-accent); }

/* Use cases */
.nx-ai-list { list-style: none; margin: 0 auto; padding: 0; max-width: 800px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.nx-ai-list li { background: #fff; border: 1px solid var(--nx-border); border-radius: var(--nx-radius); padding: 18px 20px 18px 48px; position: relative; color: var(--nx-dark); font-weight: 500; }
.nx-ai-list li::before { content: "\2713"; position: absolute; left: 18px; top: 18px; color: var(--nx-accent); font-weight: 700; }

/* Editor content */
.nx-ai-content { max-width: 860px; line-height: 1.8; }

/* CTA */
.nx-ai-cta { padding-block: clamp(36px, 5vw, 58px); 
    background: linear-gradient(120deg, #081a35, #123365); color: #fff; text-align: center; }
.nx-ai-cta h2 { color: #fff; font-size: clamp(24px, 3.5vw, 34px); margin: 0 0 12px; }
.nx-ai-cta p { margin: 0 0 26px; color: #dbeafe; font-size: 17px; }

.nx-ai-hero .input-wraper input[type="submit"] {
	display: inline-flex;
	align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: var(--font-weight-bold);
    transition: background-color 180ms ease, transform 180ms ease;
	    min-width: 132px;
    min-height: 42px;
    padding: 8px 18px;
    border-color: #245fc4;
    border-radius: 7px;
    background: #245fc4;
    font-size: 0.9rem;
    margin-top: 8px;
}
 .nx-ai-hero .input-wraper input[type="submit"]:hover {
    border-color: #194da6;
    background: #194da6;
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 991px) { .nx-ai-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
	.nx-ai-hero { padding: 60px 0; }
	.nx-ai-section { padding: 56px 0; }
	.nx-ai-grid--4, .nx-ai-list { grid-template-columns: 1fr; }
}
