/* ============================================================
   Nanak Technology - Main Stylesheet
   Theme: Light bg, blue #2078bb + orange #f2652d (logo colors)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --blue: #2078bb;
  --blue-dark: #1560a0;
  --blue-light: #e4eff8;
  --orange: #f2652d;
  --orange-dark: #d4521d;
  --orange-light: #fef0ea;
  --bg: #f8f9fc;
  --white: #ffffff;
  --dark: #0d1117;
  --dark2: #161b27;
  --text: #1a1f2e;
  --text2: #4a5168;
  --border: #e2e6f0;
  --shadow: 0 2px 16px rgba(32,120,187,.10);
  --shadow-lg: 0 8px 40px rgba(32,120,187,.18);
  --radius: 12px;
  --radius-sm: 8px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --nav-h: 68px;
  --purple: #2078bb;
  --purple-dark: #1560a0;
  --purple-light: #e4eff8;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px; border-radius: var(--radius-sm); font-size: .95rem; font-weight: 600; cursor: pointer; border: none; transition: all .2s; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(242,101,45,.35); }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-white { background: #fff; color: var(--blue); font-weight: 700; }
.btn-white:hover { background: var(--blue-light); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: .88rem; }

/* ---------- NAV ---------- */
nav {
  position: sticky; top: 0; z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  height: var(--nav-h);
}
.nav-wrap {
  display: flex; align-items: center; gap: 24px;
  height: var(--nav-h);
  overflow: visible;
}
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; text-decoration: none; }
.logo-img { height: 50px; width: auto; display: block; object-fit: contain; flex-shrink: 0; border-radius: 8px; }
.logo-text { font-size: 1.15rem; font-weight: 800; letter-spacing: -.3px; white-space: nowrap; color: var(--blue); line-height: 1; }
.logo-text span { color: var(--orange); }
.footer-brand .logo-img { height: 50px; width: auto; border-radius: 8px; }
.footer-brand .logo-text { color: var(--blue); }
.footer-brand .logo-text span { color: var(--orange); }
.nav-menu { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; border-radius: 6px;
  font-size: .93rem; font-weight: 600; color: var(--text);
  transition: color .2s, background .2s;
  white-space: nowrap;
}
.nav-link svg { width: 10px; height: 6px; transition: transform .2s; }
.nav-item:hover .nav-link { color: var(--blue); background: var(--blue-light); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* ---------- Mega Menu ---------- */
.mega-menu {
  position: absolute; top: calc(100% + 4px); left: 0;
  background: #fff; border-radius: var(--radius);
  box-shadow: 0 12px 48px rgba(0,0,0,.14);
  border: 1px solid var(--border);
  padding: 16px; min-width: 220px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .22s ease;
  pointer-events: none;
}
.mega-menu.xwide {
  left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 760px; padding: 28px;
}
.nav-item:hover .mega-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
  pointer-events: all;
}
.nav-item:hover .mega-menu.xwide { transform: translateX(-50%) translateY(0); }
.mega-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mega-heading {
  display: block; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text2); margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.mega-link {
  display: block; padding: 6px 10px; border-radius: 6px;
  font-size: .9rem; color: var(--text); transition: all .15s;
}
.mega-link:hover { background: var(--blue-light); color: var(--blue); }
.mega-link.mega-parent { font-weight: 600; color: var(--dark); }
.mega-link.mega-parent:hover { color: var(--blue); }
.mega-link.sub { padding-left: 20px; font-size: .87rem; color: var(--text2); }
.mega-link.sub:hover { color: var(--blue); background: var(--blue-light); }
.mega-link span { margin-right: 6px; }

/* ---------- Nav Right ---------- */
.nav-right { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.nav-phone { font-size: .88rem; font-weight: 600; color: var(--text2); white-space: nowrap; }
.nav-phone:hover { color: var(--purple); }

/* ---------- Hamburger ---------- */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all .25s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: #fff; overflow-y: auto; padding: 16px 20px 60px;
  z-index: 999; border-top: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}
.mobile-nav.open { display: block; }
.mobile-section { margin-bottom: 6px; }
.mobile-section-title {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text2); padding: 14px 0 8px; border-bottom: 2px solid var(--border); margin-bottom: 4px;
}
.mobile-link {
  display: block; padding: 11px 6px; font-size: .93rem; font-weight: 500;
  color: var(--text); border-bottom: 1px solid var(--bg);
  transition: color .15s, padding-left .15s;
}
.mobile-link:hover { color: var(--blue); padding-left: 10px; }
.mobile-link.sub {
  padding-left: 18px; font-size: .87rem; color: var(--text2);
  border-bottom: 1px solid var(--bg);
}
.mobile-link.sub:hover { color: var(--blue); padding-left: 24px; }

/* ---------- Page Hero (dark) ---------- */
.page-hero {
  background: linear-gradient(135deg, #0d1117 0%, #0d2340 60%, #0d1117 100%);
  padding: 80px 0 70px; color: #fff; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(32,120,187,.20) 0%, transparent 70%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-badge {
  display: inline-block; background: rgba(32,120,187,.2); color: #7dc4f0;
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; border: 1px solid rgba(32,120,187,.4); margin-bottom: 18px;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.18; margin-bottom: 18px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 600px; margin-bottom: 28px; }
.page-hero .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.breadcrumb a { color: rgba(255,255,255,.5); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb-sep { opacity: .4; }

/* ---------- Index Hero ---------- */
.hero {
  background: linear-gradient(135deg, #0d1117 0%, #0d2340 55%, #0d1117 100%);
  padding: 80px 0 80px; color: #fff; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 70% at 30% 50%, rgba(32,120,187,.18) 0%, transparent 70%);
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; background: rgba(32,120,187,.2); color: #7dc4f0;
  font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 18px; border-radius: 20px; border: 1px solid rgba(32,120,187,.4); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 900;
  line-height: 1.12; margin-bottom: 22px; letter-spacing: -.02em;
}
.hero h1 span { color: var(--orange); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,.75); max-width: 520px; margin-bottom: 36px; line-height: 1.7; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Stats Bar ---------- */
.stats-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 36px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat-item { text-align: center; padding: 0 20px; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2.4rem; font-weight: 900; color: var(--purple); line-height: 1; }
.stat-label { font-size: .9rem; color: var(--text2); margin-top: 6px; font-weight: 500; }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
.section-sm { padding: 50px 0; }
.section-label {
  display: inline-block; font-size: .78rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--purple); background: var(--purple-light);
  padding: 4px 12px; border-radius: 20px; margin-bottom: 14px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; color: var(--dark); margin-bottom: 14px; line-height: 1.2; }
.section-sub { font-size: 1.05rem; color: var(--text2); max-width: 580px; }
.section-header { margin-bottom: 50px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-icon { font-size: 2.2rem; margin-bottom: 16px; }
.card-title { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.card-text { font-size: .95rem; color: var(--text2); line-height: 1.7; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: .9rem; font-weight: 600; color: var(--purple); }
.card-link:hover { gap: 10px; }

/* ---------- Services Grid ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 28px 24px; display: flex; flex-direction: column;
  transition: all .25s;
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--purple); }
.service-card .icon-wrap {
  width: 52px; height: 52px; background: var(--purple-light); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin-bottom: 18px;
}
.service-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: var(--dark); }
.service-card p { font-size: .9rem; color: var(--text2); flex: 1; line-height: 1.65; }
.service-card .plus-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; background: var(--purple-light); border-radius: 8px;
  color: var(--purple); font-size: 1.3rem; font-weight: 700; margin-top: 18px; align-self: flex-start;
  transition: all .2s;
}
.service-card:hover .plus-link { background: var(--purple); color: #fff; }

/* ---------- Features List ---------- */
.features-list { display: flex; flex-direction: column; gap: 18px; }
.feature-item { display: flex; gap: 16px; align-items: flex-start; }
.feature-icon {
  width: 42px; height: 42px; min-width: 42px; background: var(--purple-light);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.feature-item h4 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.feature-item p { font-size: .9rem; color: var(--text2); }

/* ---------- Check List ---------- */
.check-list { display: flex; flex-direction: column; gap: 12px; }
.check-item { display: flex; align-items: flex-start; gap: 12px; font-size: .95rem; }
.check-item::before {
  content: '✓'; min-width: 22px; height: 22px; background: var(--purple); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; flex-shrink: 0; margin-top: 1px;
}

/* ---------- Two Column Layout ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col.reverse .col-img { order: -1; }
.col-img { background: linear-gradient(135deg, var(--purple-light), #e8f0ff); border-radius: var(--radius); height: 380px; display: flex; align-items: center; justify-content: center; font-size: 5rem; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, #0d2340 0%, var(--blue) 50%, var(--orange) 100%);
  padding: 72px 0; color: #fff; text-align: center;
}
.cta-banner h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.cta-banner p { font-size: 1.1rem; color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 32px; }
.cta-banner .cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Platform Grid ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.platform-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; transition: all .25s;
}
.platform-card:hover { border-color: var(--purple); box-shadow: var(--shadow); transform: translateY(-2px); }
.platform-card .p-icon { font-size: 2.4rem; margin-bottom: 12px; }
.platform-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: 6px; }
.platform-card p { font-size: .85rem; color: var(--text2); }

/* ---------- Blog Cards ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.blog-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .25s;
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-img {
  height: 180px; background: linear-gradient(135deg, var(--purple-light), #e0d9ff);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.blog-body { padding: 24px; }
.blog-tag {
  display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--purple); background: var(--purple-light);
  padding: 3px 10px; border-radius: 20px; margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: .88rem; color: var(--text2); }
.blog-meta { display: flex; gap: 12px; font-size: .8rem; color: var(--text2); margin-top: 14px; }

/* ---------- Resource Card ---------- */
.resource-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; display: flex; gap: 28px; align-items: flex-start; transition: all .25s;
}
.resource-card:hover { box-shadow: var(--shadow-lg); }
.resource-thumb {
  width: 100px; min-width: 100px; height: 130px; background: linear-gradient(160deg, var(--purple), #4834d4);
  border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem;
}
.resource-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.resource-card p { font-size: .9rem; color: var(--text2); margin-bottom: 16px; }

/* ---------- Contact Form ---------- */
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .88rem; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-size: .95rem; font-family: var(--font); background: #fff; color: var(--text);
  transition: border-color .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(108,99,255,.12);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ---------- Partners Section ---------- */
.partner-logo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.partner-logo-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px 30px; text-align: center; transition: all .25s;
}
.partner-logo-card:hover { border-color: var(--purple); box-shadow: var(--shadow); }
.partner-logo-card .p-logo { font-size: 3.5rem; margin-bottom: 14px; }
.partner-logo-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.partner-logo-card p { font-size: .9rem; color: var(--text2); }

/* ---------- Insight / Promo Cards ---------- */
.insight-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.insight-card {
  background: linear-gradient(140deg, var(--dark) 0%, #1a1040 100%);
  border-radius: var(--radius); padding: 36px; color: #fff; display: flex; gap: 24px;
  align-items: flex-start; transition: transform .25s;
}
.insight-card:hover { transform: translateY(-3px); }
.insight-thumb {
  width: 80px; min-width: 80px; height: 100px; background: rgba(108,99,255,.35);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 2rem;
}
.insight-card .tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: #a89fff; margin-bottom: 8px; }
.insight-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.insight-card p { font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 16px; }

/* ---------- Leadership Grid ---------- */
.leadership-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.leader-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; text-align: center; }
.leader-avatar { width: 80px; height: 80px; background: linear-gradient(135deg, var(--purple), #4834d4); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 16px; color: #fff; }
.leader-card h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.leader-card .role { font-size: .88rem; color: var(--purple); font-weight: 600; margin-bottom: 10px; }
.leader-card p { font-size: .88rem; color: var(--text2); }

/* ---------- News Grid ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all .25s; }
.news-card:hover { box-shadow: var(--shadow); }
.news-date { font-size: .8rem; color: var(--text2); margin-bottom: 8px; }
.news-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.45; }
.news-card p { font-size: .88rem; color: var(--text2); }

/* ---------- Overview Service Block ---------- */
.overview-block { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; margin-bottom: 28px; }
.overview-block h2 { font-size: 1.4rem; font-weight: 800; color: var(--dark); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.overview-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.overview-link {
  display: block; padding: 10px 14px; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; color: var(--text);
  transition: all .18s;
}
.overview-link:hover { background: var(--purple-light); color: var(--purple); border-color: var(--purple); }
.overview-parent { font-weight: 700; grid-column: 1 / -1; background: var(--purple-light); color: var(--purple); border-color: var(--purple); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--dark); color: rgba(255,255,255,.75);
  padding: 72px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .logo { margin-bottom: 14px; display: inline-flex; align-items: center; gap: 10px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-bottom: 18px; }
.footer-col h4 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 16px; }
.footer-col a { display: block; font-size: .88rem; color: rgba(255,255,255,.6); margin-bottom: 9px; transition: color .2s; }
.footer-col a:hover { color: var(--purple); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; margin-top: 0;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .85rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); font-size: .82rem; }
.footer-bottom-links a:hover { color: #fff; }
.footer-contact-info { display: flex; flex-direction: column; gap: 8px; }
.footer-contact-info a { color: rgba(255,255,255,.6); font-size: .88rem; }
.footer-contact-info a:hover { color: var(--purple); }

/* ---------- Page Content Sections ---------- */
.bg-white { background: var(--white); }
.bg-light { background: var(--bg); }
.bg-dark { background: var(--dark); color: #fff; }
.bg-purple { background: var(--purple-light); }
.text-center { text-align: center; }
.text-purple { color: var(--purple); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.pill {
  display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: .82rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .07em;
}
.pill-purple { background: var(--purple-light); color: var(--purple); }
.pill-dark { background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Numbered Steps ---------- */
.steps { display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 20px; align-items: flex-start; }
.step-num {
  width: 40px; height: 40px; min-width: 40px; background: var(--purple); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
}
.step h4 { font-weight: 700; margin-bottom: 4px; }
.step p { font-size: .92rem; color: var(--text2); }

/* ---------- Inline Icon Badges ---------- */
.badge-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px;
  background: var(--white); border: 1px solid var(--border); border-radius: 30px;
  font-size: .88rem; font-weight: 600; color: var(--text);
}

/* ---------- Page Hero Image Bar ---------- */
.page-hero-img-bar { width: 100%; height: 280px; overflow: hidden; }
.page-hero-img-bar img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; filter: brightness(.85); }

/* ---------- Index Hero Split Layout ---------- */
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; text-align: left; }
.hero-text { max-width: 580px; }
.hero-img-wrap { border-radius: 16px; overflow: hidden; box-shadow: 0 24px 64px rgba(0,0,0,0.4); }
.hero-img { width: 100%; height: 380px; object-fit: cover; display: block; }
@media(max-width:900px){ .hero-inner { grid-template-columns: 1fr; text-align: center; } .hero-img-wrap { display: none; } }

/* ---------- Service Card Image ---------- */
.svc-img-wrap { height: 140px; overflow: hidden; border-radius: 8px; margin: -28px -28px 20px; }
.svc-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.service-card:hover .svc-img-wrap img { transform: scale(1.05); }

/* ---------- Why Section Real Image ---------- */
.col-img-real { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.col-img-real img { width: 100%; height: 420px; object-fit: cover; display: block; }

/* ---------- Platform Card Thumb ---------- */
.platform-thumb { width: 100%; height: 80px; object-fit: cover; border-radius: 8px; margin-bottom: 12px; }

/* ---------- Insight Card Image ---------- */
.insight-thumb-img { width: 90px; min-width: 90px; height: 110px; border-radius: 8px; overflow: hidden; }
.insight-thumb-img img { width: 100%; height: 100%; object-fit: cover; }
/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

/* --- Tablet landscape / small desktop --- */
@media (max-width: 1100px) {
  .mega-menu.xwide { min-width: 620px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .hero-inner { gap: 40px; }
  .hero-img { height: 320px; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --- Tablet portrait --- */
@media (max-width: 900px) {
  /* Nav */
  .nav-menu, .nav-phone { display: none; }
  .hamburger { display: flex; }

  /* Hero split → stack */
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero-img-wrap { display: none; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-btns { justify-content: center; }
  .hero-badge { margin: 0 auto 22px; }

  /* Page hero */
  .page-hero { padding: 56px 0 48px; }
  .page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }

  /* Grids */
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-logo-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-links { grid-template-columns: repeat(2, 1fr); }
  .insight-grid { grid-template-columns: 1fr; }

  /* Two-col sections → stack */
  .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col .col-img { order: -1 !important; height: 220px; }
  .col-img-real { order: -1; }
  .col-img-real img { height: 260px; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding: 20px; }
  .stat-item:last-child { border-bottom: none; }

  /* Sections */
  section { padding: 64px 0; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Contact form grid */
  .contact-form-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
}

/* --- Mobile landscape / large phone --- */
@media (max-width: 768px) {
  /* Hide Contact Us button in nav on mobile */
  .nav-right .btn { display: none; }
  /* Sections */
  section { padding: 52px 0; }
  .section-title { font-size: clamp(1.5rem, 4vw, 2rem); }
  .section-sub { font-size: .95rem; }

  /* Stats */
  .stats-bar { padding: 24px 0; }
  .stat-number { font-size: 1.9rem; }

  /* Grids */
  .services-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .leadership-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }

  /* Form */
  .form-row { grid-template-columns: 1fr; gap: 14px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }

  /* CTA banner */
  .cta-banner { padding: 52px 0; }
  .cta-banner h2 { font-size: 1.7rem; }
  .cta-btns { flex-direction: column; align-items: center; gap: 12px; }

  /* Hero */
  .hero { padding: 60px 0; }
  .hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
  .hero-btns { flex-direction: column; align-items: center; gap: 12px; }
  .hero-btns .btn { width: 100%; max-width: 320px; justify-content: center; }

  /* Page hero buttons */
  .page-hero .hero-btns { flex-direction: column; gap: 12px; }
  .page-hero .hero-btns .btn { width: 100%; max-width: 300px; justify-content: center; }

  /* Mega menu hidden on mobile */
  .mega-menu.xwide { min-width: unset; }

  /* Insight cards */
  .insight-card { flex-direction: column; gap: 16px; }
  .insight-thumb-img { width: 100%; height: 160px; }

  /* Resource card */
  .resource-card { flex-direction: column; }
  .resource-thumb { width: 100%; height: 120px; }

  /* Partner logo grid */
  .partner-logo-grid { grid-template-columns: 1fr; }
}

/* --- Mobile portrait --- */
@media (max-width: 520px) {
  /* Container padding */
  .container, .container-wide { padding: 0 16px; }

  /* Sections */
  section { padding: 44px 0; }

  /* Hero */
  .hero { padding: 48px 0; }
  .hero h1 { font-size: 1.85rem; letter-spacing: -.01em; }
  .hero p { font-size: 1rem; }

  /* Page hero */
  .page-hero { padding: 44px 0 36px; }
  .page-hero h1 { font-size: 1.65rem; }
  .page-hero p { font-size: .95rem; }
  .breadcrumb { font-size: .78rem; }

  /* Stats — 2 col */
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 1.7rem; }
  .stat-item { padding: 16px 12px; }

  /* Grids → single col */
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .leadership-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .partner-logo-grid { grid-template-columns: 1fr; }
  .overview-links { grid-template-columns: 1fr; }

  /* Cards */
  .card { padding: 22px 18px; }
  .service-card { padding: 22px 18px 18px; }
  .svc-img-wrap { margin: -22px -18px 16px; }

  /* Two-col */
  .col-img-real img { height: 200px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }

  /* Nav */
  .nav-wrap { padding: 0 16px; }
  .logo-text { font-size: .95rem; }
  .logo-img { height: 32px; }

  /* Mobile nav */
  .mobile-nav { padding: 16px 16px 40px; }

  /* Section labels & titles */
  .section-label { font-size: .7rem; }
  .section-title { font-size: 1.5rem; }

  /* CTA banner */
  .cta-banner { padding: 44px 0; }
  .cta-banner h2 { font-size: 1.5rem; }
  .cta-banner p { font-size: .92rem; }

  /* Insight card */
  .insight-card { padding: 22px 18px; }
  .insight-thumb-img { height: 140px; }

  /* Footer bottom */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; font-size: .78rem; }
  .footer-bottom-links { flex-wrap: wrap; gap: 12px; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }
  .form-group input, .form-group select, .form-group textarea { font-size: .88rem; padding: 10px 12px; }
}
