/*
Theme Name: NexaCore
Theme URI: http://amar.test
Author: NexaCore Infotech Solutions
Author URI: https://nexacoreinfotechsolutions.com
Description: A modern, professional, fully custom WordPress theme for NexaCore Infotech Solutions — Innovate. Integrate. Elevate. Light theme with the NexaCore red as the primary brand colour. Dynamic header, footer, logo, mega menu and homepage sections driven from the WordPress Customizer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexacore
Tags: custom-theme, business, corporate, it-solutions, responsive-layout, custom-menu, featured-images, full-width-template
*/

/* =========================================================
   NEXACORE DESIGN SYSTEM
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand */
  --nc-red:        #e11b22;
  --nc-red-dark:   #a50e14;
  --nc-red-light:  #ff3b42;
  --nc-ink:        #16181d;   /* near-black from logo */
  --nc-ink-2:      #22262e;

  /* Neutrals */
  --nc-text:       #2a2f38;
  --nc-muted:      #6b7280;
  --nc-white:      #ffffff;
  --nc-bg:         #ffffff;
  --nc-bg-alt:     #f6f7f9;
  --nc-bg-dark:    #16181d;
  --nc-border:     #e7e9ee;

  /* Effects */
  --nc-radius:     16px;
  --nc-radius-sm:  10px;
  --nc-shadow:     0 10px 30px rgba(22, 24, 29, .08);
  --nc-shadow-lg:  0 24px 60px rgba(22, 24, 29, .14);
  --nc-shadow-red: 0 14px 34px rgba(225, 27, 34, .28);

  /* Layout */
  --nc-maxw:       1200px;
  --nc-maxw-wide:  1360px;
  --nc-gap:        28px;

  /* Type */
  --nc-font:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --nc-head:  "Poppins", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --nc-gradient: linear-gradient(135deg, var(--nc-red) 0%, var(--nc-red-dark) 100%);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--nc-font);
  color: var(--nc-text);
  background: var(--nc-bg);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 {
  font-family: var(--nc-head);
  color: var(--nc-ink);
  line-height: 1.2;
  font-weight: 700;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p  { margin: 0 0 1.15em; }
a  { color: var(--nc-red); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--nc-red-dark); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.15em; padding-left: 1.2em; }

/* ---------- Layout helpers ---------- */
.nc-container { max-width: var(--nc-maxw); margin: 0 auto; padding: 0 24px; }
.nc-container-wide { max-width: var(--nc-maxw-wide); margin: 0 auto; padding: 0 24px; }
.nc-section { padding: 88px 0; }
.nc-section-sm { padding: 56px 0; }
.nc-bg-alt { background: var(--nc-bg-alt); }
.nc-bg-dark { background: var(--nc-bg-dark); color: #cfd3db; }
.nc-bg-dark h1, .nc-bg-dark h2, .nc-bg-dark h3, .nc-bg-dark h4 { color: #fff; }
.nc-text-center { text-align: center; }
.nc-narrow { max-width: 760px; margin-left: auto; margin-right: auto; }

/* Section heading block */
.nc-eyebrow {
  display: inline-block;
  font-family: var(--nc-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nc-red);
  margin-bottom: 14px;
  position: relative;
  padding-left: 34px;
}
.nc-eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 24px; height: 2px;
  background: var(--nc-red);
  transform: translateY(-50%);
}
.nc-text-center .nc-eyebrow { padding-left: 0; }
.nc-text-center .nc-eyebrow::before { display: none; }
.nc-section-head { margin-bottom: 54px; }
.nc-section-head p { color: var(--nc-muted); font-size: 1.08rem; }

/* ---------- Buttons ---------- */
.nc-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--nc-head);
  font-weight: 600;
  font-size: .98rem;
  padding: 15px 32px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease, color .2s ease;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.nc-btn-primary { background: var(--nc-gradient); color: #fff; box-shadow: var(--nc-shadow-red); }
.nc-btn-primary:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 20px 40px rgba(225,27,34,.36); }
.nc-btn-outline { background: transparent; color: var(--nc-ink); border-color: var(--nc-border); }
.nc-btn-outline:hover { border-color: var(--nc-red); color: var(--nc-red); transform: translateY(-3px); }
.nc-btn-light { background: #fff; color: var(--nc-red-dark); }
.nc-btn-light:hover { color: var(--nc-red-dark); transform: translateY(-3px); box-shadow: var(--nc-shadow-lg); }
.nc-btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.nc-btn-ghost-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.nc-btn .arrow { transition: transform .2s ease; }
.nc-btn:hover .arrow { transform: translateX(4px); }

/* =========================================================
   TOP BAR
   ========================================================= */
.nc-topbar {
  background: var(--nc-ink);
  color: #c9cdd6;
  font-size: .86rem;
}
.nc-topbar a { color: #c9cdd6; }
.nc-topbar a:hover { color: #fff; }
.nc-topbar .nc-container-wide {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 42px; flex-wrap: wrap;
}
.nc-topbar-left { display: flex; gap: 24px; flex-wrap: wrap; }
.nc-topbar-left span { display: inline-flex; align-items: center; gap: 8px; }
.nc-topbar-left .ic { color: var(--nc-red-light); }
.nc-topbar-social { display: flex; gap: 14px; }
.nc-topbar-social a { display: inline-flex; }

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--nc-border);
  position: sticky; top: 0; z-index: 200;
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(22,24,29,.09); }
.site-header .nc-container-wide {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; min-height: 84px;
}
.site-branding img,
.site-branding .custom-logo { max-height: 54px; width: auto; }
.site-branding .site-title { margin: 0; font-size: 1.5rem; font-weight: 800; }
.site-branding .site-title .nc-brand-nex { color: var(--nc-red); }
.site-branding .site-title .nc-brand-core { color: var(--nc-ink); }
.site-branding .site-desc { display:block; font-size:.66rem; letter-spacing:.22em; text-transform:uppercase; color: var(--nc-muted); font-weight:600; }

/* Primary nav */
.main-navigation > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-navigation li { position: relative; }
.main-navigation a {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--nc-head); font-weight: 500; font-size: .92rem;
  color: var(--nc-ink); padding: 10px 13px; border-radius: 8px;
}
.main-navigation > ul > li > a:hover,
.main-navigation > ul > li.current-menu-item > a,
.main-navigation > ul > li.current-menu-ancestor > a { color: var(--nc-red); }
.main-navigation .menu-item-has-children > a::after {
  content: ""; width: 7px; height: 7px; margin-left: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; opacity: .7;
}
.main-navigation .menu-item-has-children:hover > a::after { transform: rotate(225deg) translateY(2px); }

/* Dropdown */
.main-navigation ul ul {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 250px; background: #fff; list-style: none; margin: 0; padding: 10px;
  border: 1px solid var(--nc-border); border-radius: 14px; box-shadow: var(--nc-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all .22s ease; z-index: 210;
}
.main-navigation ul ul::before {
  content: ""; position: absolute; top: -6px; left: 28px; width: 12px; height: 12px;
  background: #fff; border-left: 1px solid var(--nc-border); border-top: 1px solid var(--nc-border);
  transform: rotate(45deg);
}
.main-navigation li:hover > ul { opacity: 1; visibility: visible; transform: translateY(0); }
.main-navigation ul ul li a {
  padding: 11px 14px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--nc-text);
}
.main-navigation ul ul li a:hover { background: var(--nc-bg-alt); color: var(--nc-red); padding-left: 18px; }
.main-navigation ul ul ul { top: -11px; left: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-cta .nc-btn { padding: 12px 20px; font-size: .9rem; }
.menu-toggle { display: none; }
@media (max-width: 1320px) { .main-navigation a { padding: 10px 11px; font-size: .89rem; } }

/* =========================================================
   HERO / SLIDER
   ========================================================= */
.nc-hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, #16181d 0%, #24120f 55%, #4a0f12 100%);
}
.nc-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 82% 22%, rgba(225,27,34,.34), transparent 42%),
    radial-gradient(circle at 12% 82%, rgba(225,27,34,.16), transparent 45%);
}
.nc-hero-grid-lines {
  position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 54px 54px;
}
.nc-slider { position: relative; z-index: 2; }
.nc-slide { display: none; padding: 118px 0; min-height: 560px; }
.nc-slide.active { display: block; animation: ncFade .8s ease; }
@keyframes ncFade { from { opacity: 0; transform: translateY(18px);} to { opacity: 1; transform: none; } }
.nc-slide-inner { max-width: 720px; }
.nc-slide .nc-eyebrow { color: var(--nc-red-light); }
.nc-slide h1 { color: #fff; margin-bottom: 20px; }
.nc-slide h1 .hl { color: var(--nc-red-light); }
.nc-slide p { font-size: 1.18rem; color: #d7dae1; max-width: 600px; margin-bottom: 34px; }
.nc-slide-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.nc-slider-dots { display: flex; gap: 10px; margin-top: 44px; }
.nc-slider-dots button {
  width: 34px; height: 5px; border: none; border-radius: 5px; cursor: pointer;
  background: rgba(255,255,255,.28); transition: background .2s ease, width .2s ease;
}
.nc-slider-dots button.active { background: var(--nc-red); width: 54px; }

/* Hero illustration */
.nc-hero-visual {
  position: absolute; right: 2.5%; top: 50%; transform: translateY(-50%);
  width: 45%; max-width: 600px; z-index: 2; pointer-events: none;
  animation: ncFloat 6s ease-in-out infinite;
}
.nc-hero-visual svg { width: 100%; height: auto; display: block; }
@keyframes ncFloat { 0%,100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 14px)); } }
@media (max-width: 1100px) { .nc-hero-visual { display: none; } }

/* Hero floating stat badge */
.nc-hero-badges { position: absolute; right: 6%; bottom: 12%; z-index: 3; display: grid; gap: 16px; }
@media (max-width: 1024px){ .nc-hero-badges { display: none; } }

/* Card cover image */
.nc-card-cover {
  margin: -34px -30px 24px; height: 168px; overflow: hidden; position: relative;
}
.nc-card-cover svg { width: 100%; height: 100%; display: block; transition: transform .4s ease; }
.nc-card:hover .nc-card-cover svg { transform: scale(1.06); }

/* About illustration */
.nc-about-img { width: 100%; height: auto; }
.nc-hero-badge {
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 16px 22px;
}
.nc-hero-badge b { font-family: var(--nc-head); font-size: 1.7rem; color: #fff; display:block; }
.nc-hero-badge span { font-size: .82rem; color: #c9cdd6; }

/* =========================================================
   MARQUEE / TRUST
   ========================================================= */
.nc-trust { padding: 34px 0; border-bottom: 1px solid var(--nc-border); }
.nc-trust p { text-align: center; color: var(--nc-muted); font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 20px; }
.nc-trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 44px; align-items: center; }
.nc-trust-row span { font-family: var(--nc-head); font-weight: 700; color: #aeb4bf; font-size: 1.15rem; letter-spacing: .02em; }

/* =========================================================
   CARDS / GRIDS
   ========================================================= */
.nc-grid { display: grid; gap: var(--nc-gap); }
.nc-grid-2 { grid-template-columns: repeat(2, 1fr); }
.nc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.nc-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Service / feature card */
.nc-card {
  background: #fff; border: 1px solid var(--nc-border); border-radius: var(--nc-radius);
  padding: 34px 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  position: relative; overflow: hidden; height: 100%;
}
.nc-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0; background: var(--nc-gradient); transition: width .3s ease;
}
.nc-card:hover { transform: translateY(-8px); box-shadow: var(--nc-shadow-lg); border-color: transparent; }
.nc-card:hover::after { width: 100%; }
.nc-card-icon {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(225,27,34,.12), rgba(225,27,34,.04));
  color: var(--nc-red); margin-bottom: 22px; font-size: 26px;
}
.nc-card:hover .nc-card-icon { background: var(--nc-gradient); color: #fff; }
.nc-card-icon:empty::before { content: "◆"; font-size: 20px; line-height: 1; color: currentColor; }
.nc-card h3 { margin-bottom: 10px; font-size: 1.28rem; }
.nc-card p { color: var(--nc-muted); font-size: .98rem; margin-bottom: 16px; }
.nc-card .nc-card-link { font-family: var(--nc-head); font-weight: 600; font-size: .9rem; display: inline-flex; gap: 7px; align-items: center; }
.nc-card .nc-card-link .arrow { transition: transform .2s ease; }
.nc-card:hover .nc-card-link .arrow { transform: translateX(5px); }

/* Compact link tile (clusters) */
.nc-tile {
  display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--nc-border);
  border-radius: var(--nc-radius-sm); padding: 22px; transition: all .22s ease;
}
.nc-tile:hover { border-color: var(--nc-red); box-shadow: var(--nc-shadow); transform: translateY(-4px); }
.nc-tile .ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(225,27,34,.1); color: var(--nc-red); }
.nc-tile h4 { margin: 0 0 4px; font-size: 1.06rem; }
.nc-tile p { margin: 0; color: var(--nc-muted); font-size: .9rem; }

/* =========================================================
   WHY CHOOSE US / SPLIT
   ========================================================= */
.nc-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.nc-split-media img { border-radius: var(--nc-radius); box-shadow: var(--nc-shadow-lg); }
.nc-check-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.nc-check-list li { display: flex; gap: 12px; align-items: flex-start; }
.nc-check-list li::before {
  content: "✓"; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--nc-gradient); color: #fff; font-size: .8rem; display: grid; place-items: center; margin-top: 3px; font-weight: 700;
}
.nc-feature-row { display: flex; gap: 16px; margin-bottom: 22px; }
.nc-feature-row .num { font-family: var(--nc-head); font-weight: 800; color: rgba(225,27,34,.28); font-size: 2rem; line-height: 1; }
.nc-feature-row h4 { margin: 0 0 4px; }
.nc-feature-row p { margin: 0; color: var(--nc-muted); font-size: .96rem; }

/* =========================================================
   STATS
   ========================================================= */
.nc-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }
.nc-stat { text-align: center; }
.nc-stat b { font-family: var(--nc-head); font-size: clamp(2.2rem, 5vw, 3.2rem); color: #fff; display: block; line-height: 1; }
.nc-bg-dark .nc-stat b { background: linear-gradient(120deg,#fff, #ffb3b6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nc-stat span { color: #b7bcc6; font-size: .96rem; margin-top: 10px; display: block; }

/* =========================================================
   PROCESS / STEPS
   ========================================================= */
.nc-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; counter-reset: step; }
.nc-step { position: relative; padding: 30px 26px; background:#fff; border:1px solid var(--nc-border); border-radius: var(--nc-radius); }
.nc-step .step-n {
  width: 46px; height: 46px; border-radius: 12px; background: var(--nc-gradient); color:#fff;
  display:grid; place-items:center; font-family:var(--nc-head); font-weight:700; margin-bottom:18px;
}
.nc-step h4 { margin: 0 0 8px; }
.nc-step p { margin: 0; color: var(--nc-muted); font-size:.94rem; }

/* =========================================================
   CTA BANNER
   ========================================================= */
.nc-cta-banner {
  background: var(--nc-gradient); color: #fff; border-radius: 24px; padding: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.nc-cta-banner::before { content:""; position:absolute; right:-60px; top:-60px; width:260px; height:260px; border-radius:50%; background: rgba(255,255,255,.1); }
.nc-cta-banner h2 { color: #fff; margin: 0 0 8px; }
.nc-cta-banner p { color: rgba(255,255,255,.9); margin: 0; max-width: 560px; }
.nc-cta-banner .nc-cta-text { position: relative; z-index: 2; }
.nc-cta-banner .nc-cta-actions { position: relative; z-index: 2; display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.nc-quote { background:#fff; border:1px solid var(--nc-border); border-radius: var(--nc-radius); padding: 32px; height:100%; }
.nc-quote .stars { color: #f5a623; margin-bottom: 14px; letter-spacing:2px; }
.nc-quote p { font-size: 1.02rem; color: var(--nc-text); }
.nc-quote .who { display:flex; align-items:center; gap:14px; margin-top:18px; }
.nc-quote .who .av { width:48px; height:48px; border-radius:50%; background: var(--nc-gradient); color:#fff; display:grid; place-items:center; font-family:var(--nc-head); font-weight:700; }
.nc-quote .who b { display:block; font-family:var(--nc-head); }
.nc-quote .who span { color: var(--nc-muted); font-size:.88rem; }

/* =========================================================
   ACCORDION / FAQ
   ========================================================= */
.nc-accordion { max-width: 860px; margin: 0 auto; }
.nc-acc-item { background:#fff; border:1px solid var(--nc-border); border-radius: var(--nc-radius-sm); margin-bottom: 14px; overflow:hidden; }
.nc-acc-q {
  width:100%; text-align:left; background:none; border:none; cursor:pointer;
  padding: 20px 24px; font-family: var(--nc-head); font-weight:600; font-size:1.05rem; color: var(--nc-ink);
  display:flex; justify-content:space-between; align-items:center; gap:16px;
}
.nc-acc-q .pm { flex:0 0 auto; width:26px; height:26px; border-radius:50%; background: rgba(225,27,34,.1); color:var(--nc-red); display:grid; place-items:center; transition: transform .25s ease; font-weight:700; }
.nc-acc-item.open .nc-acc-q .pm { transform: rotate(45deg); background: var(--nc-gradient); color:#fff; }
.nc-acc-a { max-height:0; overflow:hidden; transition: max-height .3s ease; }
.nc-acc-a-inner { padding: 0 24px 22px; color: var(--nc-muted); }

/* =========================================================
   PAGE HERO (inner pages) + breadcrumb
   ========================================================= */
.nc-page-hero {
  background: linear-gradient(120deg, #16181d 0%, #2a1113 100%); color:#fff;
  padding: 80px 0 74px; position: relative; overflow:hidden;
}
.nc-page-hero::before {
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 85% 30%, rgba(225,27,34,.3), transparent 45%);
}
.nc-page-hero.has-visual { padding: 66px 0; }
.nc-page-hero .nc-container { position: relative; z-index: 2; }
.nc-page-hero-inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.nc-page-hero.has-visual .nc-page-hero-inner { grid-template-columns: 1.05fr .95fr; }
.nc-page-hero h1 { color:#fff; margin-bottom: 14px; }
.nc-page-hero p { color:#d7dae1; max-width: 680px; font-size: 1.1rem; margin:0; }
.nc-page-hero-actions { margin-top: 28px; }
.nc-page-hero-visual { position: relative; }
.nc-page-hero-visual img { width: 100%; height: auto; display: block; animation: ncFloat2 6s ease-in-out infinite; }
@keyframes ncFloat2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 900px) {
  .nc-page-hero.has-visual .nc-page-hero-inner { grid-template-columns: 1fr; }
  .nc-page-hero-visual { display: none; }
  .nc-page-hero-actions { margin-top: 22px; }
}
.nc-breadcrumb { font-size:.86rem; color:#aeb4bf; margin-bottom: 18px; }
.nc-breadcrumb a { color:#d7dae1; }
.nc-breadcrumb a:hover { color:#fff; }
.nc-breadcrumb .sep { margin: 0 8px; opacity:.5; }
.nc-breadcrumb .current { color: var(--nc-red-light); }

/* =========================================================
   CONTENT / PROSE
   ========================================================= */
.nc-prose { font-size: 1.06rem; }
/* Inside page content, keep everything aligned to the full container width. */
.nc-prose .nc-narrow { max-width: none; margin-left: 0; margin-right: 0; }
.nc-prose > p:first-of-type { font-size: 1.18rem; color: var(--nc-ink); }
.nc-prose h2 { margin-top: 1.6em; }
.nc-prose h3 { margin-top: 1.4em; }
.nc-prose img { border-radius: var(--nc-radius); margin: 1.5em 0; }
.nc-prose ul li, .nc-prose ol li { margin-bottom: .5em; }
.nc-prose blockquote {
  border-left: 4px solid var(--nc-red); background: var(--nc-bg-alt);
  margin: 1.5em 0; padding: 18px 26px; border-radius: 0 12px 12px 0; font-size:1.1rem;
}
.nc-content-layout { display:grid; grid-template-columns: 1fr 320px; gap: 56px; }
.nc-sticky { position: sticky; top: 110px; }
.nc-related-box { background: var(--nc-bg-alt); border:1px solid var(--nc-border); border-radius: var(--nc-radius); padding: 26px; margin-bottom: 24px; }
.nc-related-box h4 { margin-top:0; }
.nc-related-box ul { list-style:none; padding:0; margin:0; }
.nc-related-box ul li { border-bottom:1px solid var(--nc-border); }
.nc-related-box ul li:last-child { border-bottom:none; }
.nc-related-box ul li a { display:flex; gap:8px; padding:11px 0; color: var(--nc-text); font-weight:500; font-size:.96rem; }
.nc-related-box ul li a:hover { color: var(--nc-red); padding-left: 5px; }

/* Internal link cluster block */
.nc-linkcluster { background: var(--nc-bg-alt); border-radius: var(--nc-radius); padding: 40px; }
.nc-linkcluster .nc-grid { margin-top: 24px; }

/* =========================================================
   CONTACT
   ========================================================= */
.nc-contact-grid { display:grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items:start; }
.nc-contact-info { display:grid; gap: 22px; }
.nc-contact-info .row { display:flex; gap:16px; align-items:flex-start; }
.nc-contact-info .ic { flex:0 0 auto; width:50px; height:50px; border-radius:14px; background: rgba(225,27,34,.1); color:var(--nc-red); display:grid; place-items:center; }
.nc-contact-info h4 { margin:0 0 3px; }
.nc-contact-info p { margin:0; color: var(--nc-muted); }
.nc-form { background:#fff; border:1px solid var(--nc-border); border-radius: var(--nc-radius); padding: 36px; box-shadow: var(--nc-shadow); }
.nc-form .fld { margin-bottom: 18px; }
.nc-form label { display:block; font-family:var(--nc-head); font-weight:600; font-size:.86rem; margin-bottom:7px; color: var(--nc-ink); }
.nc-form input, .nc-form select, .nc-form textarea {
  width:100%; padding: 13px 16px; border:1px solid var(--nc-border); border-radius: 10px;
  font-family: var(--nc-font); font-size:.98rem; color: var(--nc-text); background:#fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.nc-form input:focus, .nc-form select:focus, .nc-form textarea:focus {
  outline:none; border-color: var(--nc-red); box-shadow: 0 0 0 3px rgba(225,27,34,.12);
}
.nc-form textarea { min-height: 130px; resize: vertical; }
.nc-form .grid2 { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.nc-form-note { font-size:.84rem; color: var(--nc-muted); margin-top: 14px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--nc-bg-dark); color: #b7bcc6; padding-top: 72px; }
.site-footer a { color: #b7bcc6; }
.site-footer a:hover { color: #fff; }
.nc-footer-top { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 52px; border-bottom:1px solid rgba(255,255,255,.08); }
.nc-footer-logo { display: inline-block; margin-bottom: 20px; }
.nc-footer-logo .lg-text { display: block; font-family: var(--nc-head); font-weight: 800; font-size: 1.8rem; color: #fff; letter-spacing: -0.02em; line-height: 1; }
.nc-footer-logo .lg-text .r { color: var(--nc-red-light); }
.nc-footer-logo .lg-sub { display: block; margin-top: 7px; font-size: .68rem; letter-spacing: .32em; text-transform: uppercase; color: #8b909b; font-weight: 600; }
.nc-footer-brand p { font-size:.95rem; max-width: 340px; }
.nc-footer-social { display:flex; gap:12px; margin-top:20px; }
.nc-footer-social a { width:40px; height:40px; border-radius:10px; background: rgba(255,255,255,.06); display:grid; place-items:center; transition: all .2s ease; }
.nc-footer-social a:hover { background: var(--nc-red); transform: translateY(-3px); }
.site-footer h4 { color:#fff; font-size:1.05rem; margin-bottom: 22px; }
.nc-footer-links { list-style:none; padding:0; margin:0; }
.nc-footer-links li { margin-bottom: 12px; }
.nc-footer-links a { font-size:.95rem; transition: padding .2s ease, color .2s ease; }
.nc-footer-links a:hover { padding-left: 6px; color:#fff; }
.nc-footer-contact li { display:flex; gap:12px; margin-bottom:16px; font-size:.95rem; align-items:flex-start; }
.nc-footer-contact .ic { color: var(--nc-red-light); flex:0 0 auto; margin-top:2px; }
.nc-footer-bottom {
  display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap;
  padding: 26px 0; font-size:.9rem; color:#8b909b;
}
.nc-footer-bottom nav { display:flex; gap:22px; flex-wrap:wrap; }

/* Footer responsive */
@media (max-width: 980px) {
  .nc-footer-top { grid-template-columns: 1fr 1fr; gap: 36px 30px; }
  .nc-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer { padding-top: 54px; }
  .nc-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .nc-footer-brand { grid-column: auto; }
  .nc-footer-bottom { flex-direction: column; text-align: center; gap: 14px; }
  .nc-footer-bottom nav { justify-content: center; }
}

/* =========================================================
   PAGINATION / MISC
   ========================================================= */
.amar-pagination, .nc-pagination { display:flex; gap:8px; flex-wrap:wrap; margin-top:40px; justify-content:center; }
.nc-pagination .page-numbers, .amar-pagination .page-numbers {
  padding:9px 15px; border:1px solid var(--nc-border); border-radius:10px; color: var(--nc-text); font-weight:600;
}
.nc-pagination .page-numbers.current, .amar-pagination .page-numbers.current { background: var(--nc-gradient); color:#fff; border-color:transparent; }

/* Blog post card reuse */
.post-card { background:#fff; border:1px solid var(--nc-border); border-radius: var(--nc-radius); overflow:hidden; margin-bottom:30px; transition: box-shadow .2s ease, transform .2s ease; }
.post-card:hover { box-shadow: var(--nc-shadow-lg); transform: translateY(-4px); }
.post-card .thumb img { width:100%; }
.post-card .post-body { padding: 26px 30px; }
.post-card h2 { font-size:1.5rem; margin-bottom:10px; }
.post-meta { color: var(--nc-muted); font-size:.85rem; margin-bottom:12px; }
.read-more { font-family:var(--nc-head); font-weight:600; display:inline-block; margin-top:10px; }

/* Reveal on scroll */
.nc-reveal { opacity:0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.nc-reveal.in { opacity:1; transform:none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .nc-grid-4 { grid-template-columns: repeat(2,1fr); }
  .nc-stats { grid-template-columns: repeat(2,1fr); gap:36px; }
  .nc-steps { grid-template-columns: repeat(2,1fr); }
  .nc-content-layout { grid-template-columns: 1fr; }
  .nc-split { grid-template-columns: 1fr; gap:36px; }
  .nc-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1200px) {
  .nc-section { padding: 60px 0; }
  .main-navigation { position: fixed; inset: 84px 0 auto 0; background:#fff; border-bottom:1px solid var(--nc-border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; box-shadow: var(--nc-shadow-lg); }
  .main-navigation.toggled { max-height: calc(100vh - 84px); overflow-y:auto; }
  .main-navigation > ul { flex-direction: column; align-items: stretch; gap:0; padding: 12px 20px; }
  .main-navigation li { border-bottom: 1px solid var(--nc-border); }
  .main-navigation a { padding: 14px 6px; }
  .main-navigation ul ul {
    position: static; opacity:1; visibility:visible; transform:none; box-shadow:none; border:none;
    padding: 0 0 8px 16px; min-width:auto; display:none;
  }
  .main-navigation ul ul::before { display:none; }
  .main-navigation .menu-item-has-children.open > ul { display:block; }
  .menu-toggle {
    display:inline-flex; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;
  }
  .menu-toggle span { width:26px; height:2px; background: var(--nc-ink); transition: all .25s ease; }
  .menu-toggle.active span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2){ opacity:0; }
  .menu-toggle.active span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }
  .header-cta .nc-btn { display:none; }
}
@media (max-width: 720px) {
  .nc-grid-2, .nc-grid-3, .nc-grid-4 { grid-template-columns: 1fr; }
  .nc-stats { grid-template-columns: repeat(2,1fr); }
  .nc-steps { grid-template-columns: 1fr; }
  .nc-cta-banner { padding: 40px 28px; }
  .nc-form .grid2 { grid-template-columns: 1fr; }
  .nc-topbar-left { gap: 14px; }
  .nc-topbar-left span.hide-sm { display:none; }
}
