/* RESET */
*,
*::before,
*::after { box-sizing: border-box; margin:0; padding:0; }

html, body {
  width:100%;
  max-width:100%;
  overflow-x:hidden;
  font-family: Arial, sans-serif;
  -webkit-text-size-adjust:100%;
}

scroll-lock { overflow:hidden; }

/* CONTAINER */
.container {
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

/* HEADER */
.site-header {
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px 16px;
  border-bottom:1px solid #e5e5e5;
  position:sticky;
  top:0;
  background:#fff;
  z-index:1000;
}

.logo img {
  display:block;
  max-width:160px;
  height:auto;
}


.header-inner {
  width:100%;
  max-width:1400px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 20px;
}

/* DESKTOP NAV */
.desktop-nav {
  display:flex;
  gap:28px;
  align-items:center;
}

.desktop-nav a {
  color:#222;
  text-decoration:none;
  font-size:15px;
  font-weight:500;
}

.desktop-nav .nav-label {
  font-size: 15px;
  font-weight: 500;
  color: #222;
  cursor: default;
  padding: 0;
  line-height: normal;
}


.desktop-nav .nav-group {
  position: relative;
}

.desktop-nav .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  padding: 12px 0;
  min-width: 260px;
  z-index: 999;
}

.desktop-nav .dropdown a {
  display: block;
  padding: 8px 14px;
  font-size: 14px;
  white-space: normal;
  color: #222;
}

.desktop-nav .nav-group:hover .dropdown {
  display: block;
}


.desktop-nav .cta {
  padding:6px 14px;
  background:#d00;
  color:#fff;
  border-radius:4px;
  font-weight:600;
}

/*Desktop Nav adjustment enforces uniform flex behaviour*/

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px; /* single source of spacing truth */
}

/* ALL nav items behave the same */
.desktop-nav .nav-link,
.desktop-nav .nav-item {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Solutions wrapper must not expand */
.desktop-nav .nav-group {
  position: relative;
}

/* CTA stays visually distinct but flex-consistent */
.desktop-nav .cta {
  margin-left: 12px;
}








/* MOBILE NAV */



.mobile-nav a {
  font-size:18px;
  color:#222;
  text-decoration:none;
  font-weight:500;
}

.mobile-nav .cta {
  background:#d00;
  color:#fff;
  padding:10px 16px;
  border-radius:4px;
  margin-top:10px;
  text-align:center;
}




/* ===============================
   HERO TEXT — GLOBAL SAFETY
================================ */

.hero-rotator h1,
.hero-rotator h2,
.hero-rotator p {
  color: #ffffff;          /* force white on dark hero images */
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

/* Optional: tighten hero headline look */
.hero-rotator h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
}




/* Each slide */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: contain;       /* ✅ SHOW ENTIRE IMAGE */
}

/* ===== PASTE THIS RIGHT HERE (hero caption overlay) ===== */

.hero-caption-wrap{
  position: absolute;
  left: 6%;
  bottom: 8%;
  z-index: 5;
  max-width: 720px;
}

.hero-caption{
  margin: 0;
  color: #fff;
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 600;
  line-height: 1.35;

  background: rgba(0,0,0,0.50);
  padding: 14px 16px;
  border-radius: 10px;
  text-shadow: 0 6px 18px rgba(0,0,0,0.45);
}

@media (max-width: 768px){
  .hero-caption-wrap{
    left: 5%;
    right: 5%;
    bottom: 6%;
    max-width: none;
  }

  .hero-caption{
    font-size: 16px;
    padding: 12px 14px;
    border-radius: 10px;
  }
}



/* Active slide */
.hero-slide.active {
  opacity: 1;
}

/* ===============================
   HERO VARIANTS (per page)
================================ */

/* Default stays as your SAFE MODE (contain) */
.hero-rotator--contain .hero-slide {
  background-size: contain;
}

/* AV pages: bold + full bleed (bright) */
.hero-rotator--cover {
  height: 70vh;
  min-height: 480px;
  max-height: 680px;
}

.hero-rotator--cover .hero-slide {
  background-size: cover;
}

/* Overlay for readability */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.25));
  z-index: 2;
}

/* Ensure text is above overlay */
.hero-content {
  position: absolute;
  left: 6%;
  bottom: 18%;
  z-index: 3;
  max-width: 760px;
}

.hero-content h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 8px 22px rgba(0,0,0,0.55);
}

/* Mobile */
@media (max-width: 768px) {
  .hero-rotator--cover {
    height: 52vh;
    min-height: 360px;
  }
  .hero-content {
    left: 5%;
    right: 5%;
    bottom: 14%;
  }
}


/* Desktop refinement */
@media (min-width: 1200px) {
  .hero-rotator {
    max-height: 560px;
  }
}

/* Mobile: slightly taller to preserve readability */
@media (max-width: 768px) {

  /* HERO CONTAINER */
  .hero-rotator {
    min-height: 340px;
    aspect-ratio: auto;
  }

  /* CENTER TEXT SAFELY */
  .hero-slide {
    display: flex;
    align-items: center;
  }

  /* TEXT WRAPPER */
  .hero-slide .container {
    width: 100%;
    padding: 0 20px;
  }

  /* HERO HEADLINE */
  .hero-slide h1 {
    font-size: 28px;
    line-height: 1.25;
    max-width: 92%;
    margin: 0;
    text-align: left;

    /* visual polish */
    background: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.15)
    );
    padding: 16px 18px;
    border-radius: 8px;
  }
}



/* ===============================
   QuestCoreHRMS â€“ Solution Hero
================================ */

.questcore-hero {
  background: #f4f6f8;
  padding: 80px 0;
}

.solution-hero-content {
  max-width: 900px;
}

.solution-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.solution-tagline {
  font-size: 22px;
  font-weight: 600;
  color: #1f4fd8;
  margin-bottom: 20px;
}

.solution-intro {
  font-size: 18px;
  line-height: 1.7;
  color: #333;
  margin-bottom: 30px;
}

.solution-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 30px;
}

.solution-highlights span {
  font-size: 16px;
  font-weight: 500;
}






/* ===============================
   SOLUTION CONTENT (STANDARD)
================================ */

.solution-section {
  padding: 80px 20px;
  background: #ffffff;
}

.solution-container {
  max-width: 1200px;
  margin: 0 auto;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
}

.solution-block h2 {
  font-size: 22px;
  margin-bottom: 15px;
}

.solution-block ul {
  list-style: none;
  padding-left: 0;
}

.solution-block ul li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}

.solution-block ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #0a3d62;
  font-weight: bold;
}

.solution-block.full {
  grid-column: span 2;
  background: #f4f7fb;
  padding: 30px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .solution-grid {
    grid-template-columns: 1fr;
  }
  .solution-block.full {
    grid-column: span 1;
  }
}
/* ===============================
   SERVERS/STORAGE — CONTENT BLOCKS
=============================== */
.solution-head { max-width: 900px; margin: 0 auto 22px; text-align: left; }
.solution-head h2 { margin: 0 0 8px; }
.solution-head p { margin: 0; opacity: 0.9; line-height: 1.55; }

.solution-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.solution-card{
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}

.solution-card h3{ margin: 0 0 10px; }
.solution-card ul{ margin: 0; padding-left: 18px; }
.solution-card li{ margin: 8px 0; line-height: 1.5; }

/* Outcomes */
.solution-outcomes{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}
.outcomes-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.outcomes-grid span{
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.20);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
}

/* Vendor strip */
.vendor-strip{
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.10);
}
.vendor-logos{
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 12px;
}
.vendor-logos img{
  height: 36px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: all 0.2s ease;
}
.vendor-logos img:hover{
  filter: none;
  opacity: 1;
}

/* Responsive */
@media (max-width: 980px){
  .solution-grid{ grid-template-columns: 1fr; }
  .outcomes-grid{ grid-template-columns: 1fr; }
}




.page-caption {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin-top: 10px;
  margin-bottom: 60px;
  font-style: italic;
}

/* ===============================
   AV COLLABORATION — CONTENT BLOCK
================================ */

.av-solution .av-head{
  max-width: 900px;
  margin: 0 auto 34px;
  text-align: center;
}

.av-solution .av-head h2{
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #111;
}

.av-solution .av-head p{
  font-size: 18px;
  line-height: 1.65;
  color: #555;
  margin: 0;
}

.av-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.av-card{
  background: #f7f9fc;
  border: 1px solid #e6eaf2;
  border-radius: 12px;
  padding: 26px 24px;
}

.av-card h3{
  font-size: 18px;
  margin: 0 0 14px;
  color: #0b1f3a;
}

.av-card ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.av-card li{
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: #333;
  line-height: 1.5;
}

.av-card li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #d00;
  font-weight: 700;
}

.av-outcomes{
  margin-top: 32px;
  background: #ffffff;
  border: 1px solid #e6eaf2;
  border-radius: 12px;
  padding: 26px 24px;
}

.av-outcomes h3{
  margin: 0 0 14px;
  color: #0b1f3a;
  font-size: 18px;
}

.av-outcomes-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 16px;
}

.av-outcomes-grid span{
  background: #f4f7fb;
  border: 1px solid #e6eaf2;
  padding: 12px 14px;
  border-radius: 10px;
  color: #1b2a3a;
  font-weight: 600;
  line-height: 1.4;
}

/* Responsive */
@media (max-width: 900px){
  .av-grid{
    grid-template-columns: 1fr;
  }
  .av-outcomes-grid{
    grid-template-columns: 1fr;
  }
}




/* ===============================
   QuestCoreHRMS â€“ Modules Section
================================ */

.solution-modules {
  padding: 80px 0;
  background: #ffffff;
}

.section-title {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 15px;
}

.section-intro {
  font-size: 18px;
  color: #555;
  max-width: 800px;
  margin-bottom: 50px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.module-card {
  background: #f7f9fc;
  padding: 30px;
  border-radius: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.module-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 992px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .modules-grid {
    grid-template-columns: 1fr;
  }
}










/* Trust */
.trust {
  padding: 30px 0;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  font-size: 16px;
  color: #374151;
}


/* SOLUTIONS */
.solutions-grid h2 {
  text-align:center;
  margin-bottom:24px;
}

.solutions-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  grid-auto-rows: 280px;
}


.solution-box {
  position:relative;
  border-radius:6px;
  background:#f7f7f7;
  padding:18px;
  display:flex;
  flex-direction:column;
  color:#fff;
  height:280px;
  background-size:cover;
  background-position:center;
}

/* Normalize solution card image brightness */
.solution-box:hover {
  filter: brightness(1) saturate(1);
}



/* Special wide solution card (desktop only) */
@media (min-width: 1025px) {
  .solution-wide {
    grid-column: span 2;
    height: 100%;
    min-height: unset;
  }
}

/* Desktop enhancement for QuestCoreHRMS wide card */
@media (min-width: 1025px) {
  .solution-visual::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: linear-gradient(
      to left,
      rgba(0, 0, 0, 0.18),
      rgba(0, 0, 0, 0)
    );
    border-radius: 6px;
    pointer-events: none;
  }
}

/* QuestCoreHRMS visual-only card */
.solution-visual {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
/* QuestCoreHRMS illustration handling */
.solution-visual {
  background-size: contain !important;
  background-position: left center !important;
  background-repeat: no-repeat;
}

/* Mobile optimization for QuestCoreHRMS card */
@media (max-width: 900px) {
  .solution-visual {
    min-height: 260px;
    background-position: center center !important;
  }
}

/* Remove text stacking behavior */
.solution-visual h3,
.solution-visual p {
  display: none;
}

/* Softer overlay so image is clear */
.solution-visual .overlay {
  background: rgba(0,0,0,0.25);
}

/* CTA positioning */
.solution-visual .visual-cta {
  position: relative;
  z-index: 2;
  margin: 18px;
  color: #ff4444;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}




/* Responsive solution grid */
@media (max-width: 1024px) {
  .solutions-wrapper {
    grid-template-columns: 1fr;
  }
}


/* Unified solution card overlay (enterprise tone) */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
  z-index: 1;
}


.solution-box h3 {
  position:relative;
  z-index:2;
  font-size:18px;
  margin-bottom:6px;
}

.solution-box p {
  position:relative;
  z-index:2;
  font-size:14px;
  flex-grow:1;
}

.solution-box a {
  position:relative;
  z-index:2;
  color:#ff4444;
  font-size:14px;
  font-weight:600;
  margin-top:10px;
  text-decoration:none;
}

/* ABOUT SECTION */
.about-section {
  padding:50px 0;
  display:flex;
  gap:28px;
}

.about-menu {
  display:flex;
  flex-direction:column;
  gap:12px;
  flex:1;
}

.about-menu button {
  background:#f7f7f7;
  border:none;
  padding:12px;
  text-align:left;
  font-weight:600;
  cursor:pointer;
}

.about-menu button.active {
  background:#d00;
  color:#fff;
}

.about-main {
  flex:3;
}

.tab-content { display:none; }
.tab-content.active { display:block; }

/* FOOTER */
.site-footer {
  padding:26px 18px;
  background:#222;
  color:#fff;
}

.footer-inner {
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
}

.footer-right a {
  color:#fff;
  text-decoration:none;
  margin-left:14px;
}

/* BREAKPOINTS */

@media(max-width:740px){
  .desktop-nav { display:none; }
  .mobile-toggle { display:block; }
  .solutions-wrapper {
    grid-template-columns:1fr;
  }
  .about-section {
    flex-direction:column;
  }
}

@media(max-height:500px){
  .mobile-nav {
    padding-top:40px;
  }
}

/* === MOBILE DRAWER NAV === */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  height: 100vh;
  background: #ffffff;
  box-shadow: -2px 0 28px rgba(0,0,0,0.24);
  padding: 20px;
  transition: right 0.35s ease-in-out;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.drawer-close {
  font-size: 24px;
  background: none;
  border: none;
  margin-left: auto;
  margin-bottom: 10px;
  padding: 6px 10px;
}


.drawer-expand .expand-btn {
  background: none;
  border: none;
  padding: 0;
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-submenu {
  display: none;
  padding-left: 14px;
  margin-top: 6px;
}

.drawer-submenu li a {
  font-size: 14px;
  color: #444;
}

.drawer-cta {
  margin-top: auto;
  display: block;
  text-align: center;
  background: #d30000;
  color: white;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
}

/* ---------------------------------------------------
 MOBILE DRAWER SYSTEM
--------------------------------------------------- */

.mobile-menu-btn {
  display: none;
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
}

@media(max-width:900px) {
  .desktop-nav { display:none; }
  .mobile-menu-btn { display:block; }
}


.mobile-drawer.open {
  right:0;
}


.drawer-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:22px;
  font-weight:600;
  font-size:15px;
}

.drawer-nav a,
.drawer-group-btn {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 0;
  color:#1a1a1a;
  font-size:15px;
  border-bottom:1px solid #e9e9e9;
}

.drawer-group-btn {
  background:none;
  border:none;
  width:100%;
  cursor:pointer;
  text-align:left;
}

.drawer-subnav {
  display:none;
  flex-direction:column;
  padding-left:10px;
  background:#fafafa;
}

.drawer-subnav a {
  padding:10px 0;
  border:none;
  font-size:14px;
}

.drawer-subnav.open {
  display:flex;
}

.arrow {
  transition:0.25s ease;
}

.arrow.rotate {
  transform:rotate(90deg);
}

.btn-cta {
  margin-top:20px;
  background:#d20000;
  color:#fff !important;
  text-align:center;
  padding:12px 14px;
  border-radius:4px;
  font-weight:600;
}

/* MOBILE DRAWER SUBMENU BEHAVIOR */
.mobile-item {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
  font-size:16px;
  color:#111;
  border-bottom:1px solid #e5e5e5;
  cursor:pointer;
}

.mobile-item .arrow {
  transition: transform 0.25s ease;
}

.mobile-item.open .arrow {
  transform: rotate(90deg);
}

.mobile-submenu {
  display:none;
  flex-direction:column;
  padding-left:18px;
  gap:10px;
  background:#fafafa;
  border-left:2px solid #d20000;
}

.mobile-submenu.open {
  display:flex;
}

.mobile-submenu a {
  padding:10px 0;
  color:#333;
  font-size:15px;
  text-decoration:none;
}

.mobile-item.cta {
  background:#d20000;
  color:#fff !important;
  text-align:center;
  margin-top:18px;
  padding:12px 0;
  border-radius:4px;
  font-weight:600;
  border:none;
}

/* TRUST STRIP */
.trust {
  padding: 28px 0;
  background: #fff;
}

.trust-items {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
  font-size: 17px;
  font-weight: 500;
  color: #1b2a3a;
  text-align: center;
  line-height: 1.4;
}

/* ===============================
   CATEGORY BAR (UNDER HERO) — CLEAN + CENTERED
================================ */

.category-bar{
  background:#fff;
  border-bottom:1px solid #e5e7eb;
  padding:28px 0 22px;
}

.category-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
  text-align:center; /* ✅ centers title + tabs */
}

.category-title h2{
  margin:0 0 14px;
  font-size:34px;
  font-weight:700;
  color:#111;
  line-height:1.15;
}

.category-tabs{
  display:flex;
  justify-content:center;  /* ✅ centers links */
  align-items:center;
  gap:34px;
  flex-wrap:wrap;
}

/* Tabs */
.cat-tab{
  position:relative;
  display:inline-block;
  padding:6px 0;
  font-size:17px;
  font-weight:500;
  color:#1b2a3a;
  opacity:.95;
  cursor:default; /* not clickable */
}


/* Underline indicator */
.cat-tab::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  width:0;
  height:3px;
  background:#0b1f3a;
  transition:width .25s ease;
}

.cat-tab.active::after,
.cat-tab:hover::after{
  width:100%;
}

/* Separators like Home page */
.cat-tab:not(:last-child)::before{
  content:"|";
  position:absolute;
  right:-20px;
  top:50%;
  transform:translateY(-50%);
  color:#c6cbd2;
  font-weight:400;
}

/* Mobile */
@media (max-width:768px){
  .category-title h2{ font-size:28px; }
  .category-tabs{ gap:18px; }
  .cat-tab:not(:last-child)::before{ display:none; } /* cleaner on mobile */
}

}

.about-banner {
  padding: 80px 0 40px;
  background: #f7f9fc;
  border-bottom: 1px solid #e4e4e4;
  text-align: center;
}

.page-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 10px;
}

.subtitle {
  font-size: 18px;
  color: #6a6a6a;
}

.about-body {
  padding: 60px 0;
  font-size: 17px;
  line-height: 1.6;
  color: #333;
}

.about-body h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 20px;
}

.value-list {
  margin-left: 20px;
  margin-top: 6px;
}

.value-list li {
  margin-bottom: 6px;
}

/* ENGAGE CTA BLOCK */
.cta-block {
  width: 100%;
  background: #f5f5f5;
  padding: 60px 20px;
  margin-top: 60px;
  border-top: 1px solid #e5e5e5;
  text-align: center;
}

.cta-inner {
  max-width: 900px;
  margin: 0 auto;
}

.cta-block h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #111;
}

.cta-block p {
  font-size: 18px;
  color: #444;
  line-height: 1.5;
  margin-bottom: 26px;
}

.cta-btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  background: #d00;
  border-radius: 4px;
  text-decoration: none;
  transition: 0.25s ease;
}

.cta-btn:hover {
  background: #b30000;
}

@media (max-width: 768px) {
  .cta-block h2 {
    font-size: 26px;
  }
  .cta-block p {
    font-size: 16px;
  }
}

.site-footer {
  background:#1d1d1d;
  color:#eee;
  padding:40px 28px 20px;
  font-size:15px;
  line-height:1.5;
}

.site-footer a {
  color:#e0e0e0;
  text-decoration:none;
}
.site-footer a:hover {
  color:#fff;
}

.footer-container {
  max-width:1200px;
  margin:auto;
}

.footer-contact h4 {
  margin-bottom:6px;
  font-size:17px;
  font-weight:600;
  color:#fff;
}

.footer-legal {
  margin-top:26px;
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  flex-wrap:wrap;
  border-top:1px solid #333;
  padding-top:18px;
}

.legal-left p {
  margin:0 0 4px;
  font-size:13px;
  color:#bbb;
}

.legal-right a {
  margin-left:18px;
  font-size:14px;
  font-weight:500;
}

.back-to-top {
  position:fixed;
  bottom:32px;
  right:32px;
  background:#d00;
  color:#fff;
  border:none;
  padding:10px 14px;
  border-radius:4px;
  cursor:pointer;
  font-weight:600;
}
.back-to-top:hover{
  background:#a60000;
}

/* MOBILE ADAPTATION */
@media (max-width:768px){
  .footer-legal {
    flex-direction:column;
    align-items:flex-start;
    gap:12px;
  }
  .legal-right a {
    margin-left:0;
    margin-right:18px;
    display:inline-block;
  }
  
}

footer {
  padding-bottom: 70px; /* makes space for the floating button */
}

/* ================================
   MOBILE DRAWER (OFF-CANVAS MENU)
   ================================ */

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9998;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.drawer-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 82vw;
  max-width: 360px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -4px 0 18px rgba(0,0,0,0.18);
  transform: translateX(110%);
  transition: transform .28s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 18px 14px;
  overflow-y: auto;
}

/* Open state */
.drawer-nav.open {
  transform: translateX(0%);
}

/* Drawer Header */
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #e9e9e9;
  margin-bottom: 12px;
}

.drawer-title {
  font-size: 17px;
  font-weight: 600;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  opacity: .75;
}

/* Drawer Groups */
.drawer-group {
  margin-bottom: 12px;
}

.drawer-link,
.drawer-link.expandable {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #111;
  text-decoration: none;
  padding: 10px 4px;
  border-radius: 6px;
  cursor: pointer;
}

.drawer-link:hover {
  background: #f5f5f5;
}

.drawer-link .icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  flex-shrink: 0;
  opacity: .85;
}

/* Chevron */
.drawer-link .chevron {
  margin-left: auto;
  width: 16px;
  height: 16px;
  transition: transform .25s ease;
}

/* Expanded state rotate */
.drawer-link.expanded .chevron {
  transform: rotate(90deg);
}

/* Submenu */
.drawer-submenu {
  display: none;
  flex-direction: column;
  margin-left: 26px;
  margin-top: 6px;
  border-left: 2px solid #e3e3e3;
  padding-left: 10px;
}

.drawer-submenu a {
  font-size: 14px;
  color: #333;
  text-decoration: none;
  padding: 6px 0;
}

.drawer-submenu a:hover {
  color: #d00;
}

/* CTA Button */
.drawer-cta {
  display: block;
  padding: 10px 0;
  margin-top: 8px;
  text-align: center;
  background: #d00;
  color: #fff;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

/* Hide Drawer on Desktop */
@media(min-width: 992px) {
  .drawer-nav,
  .drawer-overlay {
    display: none !important;
  }
}

/* FORCE single-column solutions on mobile */
@media (max-width: 900px) {
  .solutions-wrapper {
    grid-template-columns: 1fr !important;
  }
}

/* ===============================
   QuestCoreHRMS â€“ Why Section
================================ */

.solution-why {
  padding: 80px 0;
  background: #f4f6f8;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.why-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
}

.why-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.why-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

/* Responsive */
@media (max-width: 992px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }
}




/* ===============================
   QuestCoreHRMS – Target Clients
================================ */

.solution-target {
  padding: 80px 0;
  background: #ffffff;
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.target-item {
  background: #f7f9fc;
  padding: 30px;
  border-radius: 10px;
}

.target-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.target-item p {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
}

/* Responsive */
@media (max-width: 992px) {
  .target-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .target-grid {
    grid-template-columns: 1fr;
  }
}




/* ===============================
   RFQ PAGE — STRUCTURED LAYOUT
================================ */
/*
.rfq-hero {
  background: #f4f6f8;
  padding: 70px 20px;
  border-bottom: 1px solid #e5e5e5;
}

.rfq-hero-inner {
  max-width: 900px;
  margin: 0 auto;
}

.rfq-hero h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 14px;
}

.rfq-hero p {
  font-size: 18px;
  color: #444;
  line-height: 1.6;
}

/* RFQ FORM WRAPPER */
.rfq-section {
  padding: 70px 20px;
  background: #ffffff;
}

.rfq-card {
  max-width: 900px;
  margin: 0 auto;
  background: #f9fafb;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.08);
}

/* FORM GRID */
.rfq-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 30px;
}

/* FULL WIDTH ELEMENTS */
.rfq-form h2,
.rfq-form textarea,
.rfq-form button,
.rfq-form .intro-text,
.rfq-form .rfq-disclaimer {
  grid-column: 1 / -1;
}

/* LABELS */
.rfq-form label {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

/* INPUTS */
.rfq-form input,
.rfq-form select,
.rfq-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #cfd4dc;
}

/* TEXTAREA */
.rfq-form textarea {
  resize: vertical;
}

/* SUBMIT BUTTON */
.rfq-form button {
  background: #d00;
  color: #fff;
  border: none;
  padding: 14px 26px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
}

.rfq-form button:hover {
  background: #b30000;
}

/* DISCLAIMER */
.rfq-form .intro-text,
.rfq-disclaimer {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

/* MOBILE */
@media (max-width: 768px) {
  .rfq-form {
    grid-template-columns: 1fr;
  }

  .rfq-card {
    padding: 28px;
  }

  .rfq-hero h1 {
    font-size: 32px;
  }
}


/* RFQ Page – Intro Alignment */
.rfq-intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  text-align: center;
}

.rfq-intro h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.rfq-intro p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
}

*/

/* =========================
   CONTACT PAGE STRUCTURE
   ========================= */

.contact-intro {
  max-width: 900px;
  margin: 60px auto 30px;
  padding: 0 20px;
  text-align: center;
}

.contact-intro h1 {
  font-size: 3rem;
  margin-bottom: 15px;
}

.contact-intro p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #444;
}

.contact-section {
  padding: 40px 20px 80px;
}

.contact-card {
  max-width: 900px;
  margin: 0 auto;
  background: #f9fafb;
  padding: 40px;
  border-radius: 12px;
}

.contact-card h2 {
  margin-top: 0;
  margin-bottom: 15px;
}

.contact-card p {
  margin-bottom: 10px;
}

.contact-form label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.contact-form textarea {
  min-height: 140px;
}

.contact-form button {
  margin-top: 20px;
}

/* ===============================
   MOBILE MENU – FORCE VISIBILITY
   =============================== */

@media (max-width: 992px) {

  /* Mobile menu container */
  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #ffffff;
    z-index: 99999; /* ABOVE EVERYTHING */
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

 
}

/* ===============================
   MOBILE DRAWER – FINAL STYLES
   =============================== */

@media (max-width: 900px) {

  /* Overlay */
  .drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 9998;
  }

  .drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  /* Drawer */
  .mobile-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: #ffffff;
    z-index: 9999;
    transition: right 0.35s ease;
    display: flex;
    flex-direction: column;
    padding: 22px;
    overflow-y: auto;
  }

  .mobile-drawer.open {
    right: 0;
  }

  /* Header */
  .drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
  }

  .drawer-title {
    font-size: 18px;
    font-weight: 600;
  }

  .drawer-close {
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* Links */
  .drawer-link {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    color: #111;
    text-decoration: none;
    cursor: pointer;
  }

  .drawer-link.expandable {
    font-weight: 600;
  }

  /* Submenu */
  .drawer-submenu {
    display: none;
    padding-left: 16px;
    margin-bottom: 10px;
  }

  .drawer-submenu a {
    display: block;
    padding: 10px 0;
    font-size: 15px;
    color: #333;
    text-decoration: none;
  }

  /* CTA */
  .drawer-cta {
    margin-top: auto;
    background: #d00;
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
  }

}

/* ===============================
   MOBILE DRAWER – SUBMENU FIX
   =============================== */

@media (max-width: 900px) {

  .drawer-submenu {
    display: block;
    margin-top: 8px;
    padding-left: 18px;
  }

  .drawer-submenu a {
    display: block;              /* FORCE STACKING */
    width: 100%;
    white-space: normal;         /* ALLOW WRAPPING */
    line-height: 1.4;
    padding: 10px 0;
    margin-bottom: 6px;
    font-size: 15px;
    color: #222;
    border-left: 2px solid #ddd;
    padding-left: 10px;
  }

  .drawer-submenu a:last-child {
    margin-bottom: 0;
  }
}


/* ===============================
   CONTACT PAGE LAYOUT (DESKTOP)
   =============================== */

.contact-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 20px;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-header h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.contact-header p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
  color: #444;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2,
.contact-form h2 {
  margin-bottom: 15px;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  width: fit-content;
  padding: 12px 24px;
  background: #e60000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #c40000;
}

.form-note {
  margin-top: 15px;
  font-style: italic;
  font-size: 14px;
  color: #555;
}

/* MOBILE */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}





/* ===============================
   RFQ PAGE — HARD ISOLATION (SAFE)
================================ */

.rfq-page {
  display: block;
  width: 100%;
  background: #ffffff;
  font-family: system-ui, Arial, sans-serif;
}

/* Neutralize layout interference WITHOUT nuking everything */
.rfq-page section,
.rfq-page div {
  display: block;
}

.rfq-page * {
  box-sizing: border-box;
}

/* ===============================
   RFQ PAGE — FINAL DESIGN LAYER
================================ */

/* ⬇⬇⬇ PASTE EVERYTHING I GAVE YOU HERE ⬇⬇⬇ */
.rfq-page {
  background: #f5f7fa;
}

/* HERO */
.rfq-page .rfq-hero {
  background: linear-gradient(135deg, #0a3d62, #1e6091);
  padding: 70px 20px;
  color: #ffffff;
}

/* FORM SECTION */
.rfq-page .rfq-section {
  padding: 70px 20px;
}

.rfq-page .rfq-card {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

/* FORM GRID */
.rfq-page .rfq-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 30px;
}

/* HEADINGS */
.rfq-page .rfq-form h2 {
  grid-column: 1 / -1;
  font-size: 22px;
  font-weight: 700;
  color: #0a3d62;
  margin-top: 10px;
  margin-bottom: 6px;
}

/* LABELS */
.rfq-page .rfq-form label {
  font-size: 14px;
  font-weight: 600;
  color: #222;
  display: block;
}

/* INPUTS */
.rfq-page .rfq-form input,
.rfq-page .rfq-form select,
.rfq-page .rfq-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #cfd4dc;
  background: #fff;
}

.rfq-page .rfq-form textarea {
  resize: vertical;
}

/* MULTI SELECT */
.rfq-page .rfq-form select[multiple] {
  height: 120px;
}

/* FULL WIDTH ITEMS */
.rfq-page .rfq-form textarea,
.rfq-page .rfq-form button,
.rfq-page .rfq-form .intro-text,
.rfq-page .rfq-disclaimer {
  grid-column: 1 / -1;
}

/* SUBMIT BUTTON */
.rfq-page .rfq-form button {
  margin-top: 10px;
  background: #e63946;
  color: #ffffff;
  border: none;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  width: fit-content;
}

.rfq-page .rfq-form button:hover {
  background: #c5303c;
}

/* DISCLAIMERS */
.rfq-page .intro-text,
.rfq-page .rfq-disclaimer {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* MOBILE */
@media (max-width: 768px) {
  .rfq-page .rfq-hero h1 {
    font-size: 32px;
  }

  .rfq-page .rfq-form {
    grid-template-columns: 1fr;
  }

  .rfq-page .rfq-card {
    padding: 28px;
  }
}







/* ===============================
   HERO ROTATOR — FINAL
================================ */

.hero-rotator {
  position: relative;
  width: 100%;
  height: 75vh;        /* ✅ increase/decrease here */
  min-height: 520px;   /* ✅ ensures it never becomes too small */
  max-height: 680px;  
  overflow: hidden;
  background: #0b1f3a;
}
/* TRAINING HERO — slightly smaller than cover pages */
.hero-rotator--training{
  height: 62vh;
  min-height: 420px;
  max-height: 560px;
}


.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: contain;      /* 👈 KEY: NO CROPPING */
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

/* Text container */
.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content h1 {
  color: #ffffff;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 700px;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-rotator {
    height: 50vh;
    min-height: 340px;
  }

  .hero-content h1 {
    font-size: 32px;
  }
}

/* ===============================
   CATEGORY BAR (HIK-STYLE)
================================ */

.category-bar{
  background:#fff;
  border-bottom:1px solid #e9e9e9;
  padding:26px 0 18px;
}

.category-wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 16px;
}

.category-title h2{
  font-size:24px;
  font-weight:700;
  margin:0 0 14px;
  color:#111;
}

.category-tabs{
  display:flex;
  gap:44px;
  flex-wrap:wrap;
}

.cat-tab{
  position:relative;
  display:inline-block;
  padding:10px 0;
  text-decoration:none;
  color:#111;
  font-size:16px;
  font-weight:500;
  opacity:.92;
}

.cat-tab:hover{
  opacity:1;
}

.cat-tab::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-8px;
  width:0;
  height:3px;
  background:#0b1f3a;
  transition:width .25s ease;
}

.cat-tab.active::after,
.cat-tab:hover::after{
  width:100%;
}

/* Mobile spacing */
@media (max-width:768px){
  .category-tabs{
    gap:22px;
  }
}

/* ==========================================
   SERVERS & STORAGE HERO – PROFESSIONAL FIT
========================================== */

.hero-rotator--cover .hero-slide {
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

/* Slide-specific focal adjustments */
.hero-rotator--cover .hero-slide:nth-child(1) {
  background-position: center center; /* Huawei */
}

.hero-rotator--cover .hero-slide:nth-child(2) {
  background-position: center right; /* HP */
}

.hero-rotator--cover .hero-slide:nth-child(3) {
  background-position: center right; /* Hikvision Storage */
}

.hero-rotator--cover .hero-slide:nth-child(4) {
  background-position: center center; /* Cluster */
}

/* Increase hero height for visual impact */
.hero-rotator--cover {
  height: 90vh;
  min-height: 650px;
}

/* Improve text readability */
.hero-rotator--cover .hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0.45) 40%,
    rgba(0,0,0,0.15) 70%,
    rgba(0,0,0,0.05) 100%
  );
}
/* ===============================
   HERO — HYBRID SOLAR (PANORAMIC + FULLY VISIBLE)
   Uses --bg variable set in hybrid-solar.html
================================ */

/* Hero container sizing (reduce height so it doesn't dominate page) */
.hero-rotator--hybrid{
  height: 62vh;
  min-height: 420px;
  max-height: 560px;
  background: #0b1f3a;
  overflow: hidden;
}

/* Each slide becomes a full-width panoramic background */
.hero-rotator--hybrid .hero-slide{
  background-image: var(--bg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;              /* fills full width */
}

/* Ensure we never crop too aggressively on smaller screens */
@media (max-width: 1100px){
  .hero-rotator--hybrid .hero-slide{
    background-size: contain;          /* show whole image */
    background-color: #0b1f3a;         /* clean side fill */
  }
}

/* Mobile: smaller hero */
@media (max-width: 768px){
  .hero-rotator--hybrid{
    height: 46vh;
    min-height: 320px;
    max-height: 420px;
  }
  .hero-rotator--hybrid .hero-slide{
    background-size: contain;
  }
}

/* Overlay tuned for readability without “grey wash” */
.hero-rotator--hybrid .hero-overlay{
  background: linear-gradient(
    90deg,
    rgba(0,0,0,0.62) 0%,
    rgba(0,0,0,0.40) 42%,
    rgba(0,0,0,0.14) 72%,
    rgba(0,0,0,0.06) 100%
  );
}

/* Keep text nicely placed (optional fine-tune) */
.hero-rotator--hybrid .hero-content{
  left: 6%;
  bottom: 16%;
}

/* HYBRID SOLAR — force full visibility for specific slide */
.hero-rotator--hybrid .hero-slide--contain{
  background-size: contain !important;   /* show full image */
  background-position: center center !important;
  background-repeat: no-repeat;
  background-color: #0b1f3a;            /* clean side fill */
}
/* HYBRID SOLAR — force full visibility for specific slides */
.hero-rotator--hybrid .hero-slide--contain{
  background-size: contain !important;   /* show full image */
  background-position: center center !important;
  background-repeat: no-repeat;
  background-color: #0b1f3a;            /* clean side fill */
}
/* ===============================
   HYBRID SOLAR — CONTENT LAYOUT
================================ */

.power-solution .power-head{
  max-width: 900px;
  margin: 0 auto 26px;
  text-align: center;
}
.power-solution .power-head h2{
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 10px;
  color: #0b1f3a;
}
.power-solution .power-head p{
  margin: 0;
  font-size: 17px;
  line-height: 1.65;
  color: #4b5563;
}

/* Vendor card */
.vendor-card{
  max-width: 1100px;
  margin: 0 auto 26px;
  background: #ffffff;
  border: 1px solid #e6eaf2;
  border-radius: 14px;
  padding: 18px 18px 14px;
}
.vendor-title{
  font-weight: 700;
  color: #0b1f3a;
  margin-bottom: 12px;
}
.vendor-logos{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.vendor-logos img{
  height: 28px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  filter: grayscale(10%);
  opacity: 0.95;
}
.vendor-note{
  margin-top: 12px;
  font-size: 13px;
  color: #6b7280;
  text-align: center;
}

/* Cards grid */
.power-grid{
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.power-card{
  background: #f7f9fc;
  border: 1px solid #e6eaf2;
  border-radius: 14px;
  padding: 18px 18px;
}
.power-card h3{
  margin: 0 0 10px;
  color: #0b1f3a;
  font-size: 17px;
}
.power-card ul{
  list-style: none;
  margin: 0;
  padding: 0;
}
.power-card li{
  position: relative;
  padding-left: 16px;
  margin-bottom: 10px;
  color: #374151;
  line-height: 1.5;
}
.power-card li::before{
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: #d00;
  font-weight: 800;
}

/* Outcomes */
.power-outcomes{
  max-width: 1100px;
  margin: 18px auto 0;
  background: #ffffff;
  border: 1px solid #e6eaf2;
  border-radius: 14px;
  padding: 18px;
}
.power-outcomes h3{
  margin: 0 0 12px;
  color: #0b1f3a;
  font-size: 17px;
}
.power-outcomes-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 12px;
}
.power-outcomes-grid span{
  background: #f4f7fb;
  border: 1px solid #e6eaf2;
  padding: 12px 12px;
  border-radius: 12px;
  color: #1f2937;
  font-weight: 650;
  line-height: 1.35;
}

/* Mobile */
@media (max-width: 900px){
  .power-grid{ grid-template-columns: 1fr; }
  .power-outcomes-grid{ grid-template-columns: 1fr; }
  .vendor-logos img{ height: 26px; }
}
/* ==========================================
   TRAINING HERO — FINAL OVERRIDE (ONLY THIS PAGE)
========================================== */
.hero-rotator--training{
  height: 52vh !important;
  min-height: 360px !important;
  max-height: 520px !important;
}

.hero-rotator--training .hero-slide{
  background-size: cover !important;
  background-position: center center !important;
}
/* ===============================
   TRAINING HERO — ALWAYS FULL IMAGE (NO CROP)
   Paste at VERY BOTTOM of style.css
================================ */

.hero-rotator--training{
  height: 62vh;
  min-height: 420px;
  max-height: 560px;
  background: #0b1f3a;
  overflow: hidden;
}

/* Force FULL visibility */
.hero-rotator--training .hero-slide{
  background-size: contain !important;     /* ✅ never crop */
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: #0b1f3a;              /* clean fill space */
}

/* Mobile tuning */
@media (max-width: 768px){
  .hero-rotator--training{
    height: 48vh;
    min-height: 320px;
    max-height: 420px;
  }
}
/* ===============================
   PROJECTS PAGE — CLEAN LAYOUT
================================ */

.projects-page{
  background:#ffffff;
}

.projects-hero{
  padding: 70px 0 34px;
  background: #f7f9fc;
  border-bottom: 1px solid #e5e7eb;
}

.projects-hero .container{
  max-width: 1100px;
}

.projects-hero h1{
  margin: 0 0 10px;
  font-size: 42px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #0b1f3a;
}

.projects-hero .intro-text{
  margin: 0;
  max-width: 860px;
  font-size: 17px;
  line-height: 1.7;
  color: #475569;
}

/* Main section */
.projects-section{
  padding: 56px 0 40px;
}

.projects-section .container{
  max-width: 1100px;
}

/* Grid */
.projects-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Card */
.project-card{
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.06);
}

.project-card h3{
  margin: 0 0 10px;
  font-size: 18px;
  color: #0b1f3a;
}

.project-card p{
  margin: 0 0 10px;
  color: #334155;
  line-height: 1.6;
  font-size: 14.5px;
}

.project-card p:last-child{
  margin-bottom: 0;
}

/* Small “meta” label style */
.project-card strong{
  color:#0f172a;
}

/* Optional outcomes emphasis */
.project-card .outcome{
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(15, 23, 42, 0.18);
}

/* Responsive */
@media (max-width: 980px){
  .projects-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px){
  .projects-hero{
    padding: 54px 0 26px;
  }
  .projects-hero h1{
    font-size: 32px;
  }
  .projects-grid{
    grid-template-columns: 1fr;
  }
}

/* ===============================
   QUESTCORE HRMS HERO — CONTROLLED SIZE
================================ */

/* Reduce vertical dominance */
.solution-hero-image{
  padding: 50px 0 30px;        /* less top & bottom spacing */
  background: #ffffff;
}

/* Limit width and center it */
.solution-hero-image .hero-image-wrapper{
  max-width: 90%;              /* 90% width */
  margin: 0 auto;              /* center horizontally */
}

/* Control height proportion */
.solution-hero-image img{
  width: 100%;
  height: auto;
  max-height: 420px;           /* control vertical scale */
  object-fit: contain;         /* no cropping */
  display: block;
}

/* Large desktop refinement */
@media (min-width: 1400px){
  .solution-hero-image img{
    max-height: 480px;
  }
}

/* Mobile refinement */
@media (max-width: 768px){
  .solution-hero-image .hero-image-wrapper{
    max-width: 92%;            /* allow more width on mobile */
  }

  .solution-hero-image img{
    max-height: 320px;
  }
}
/* QUESTCORE HERO – FULL WIDTH CONTROL */
.solution-hero-image {
  padding: 40px 0;
  background: #ffffff;
}

.solution-hero-image .hero-image-wrapper{
  width: 90%;
  margin: 0 auto;
}

.solution-hero-image img{
  width: 100%;
  height: auto;
  display: block;
}

/* ===============================
   ABOUT PAGE STYLES
================================ */

.about-hero {
  padding: 80px 0;
  text-align: center;
}

.about-hero h1 {
  font-size: 38px;
  margin-bottom: 15px;
}

.about-hero p {
  max-width: 850px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

.about-credibility {
  background: #0b1220;
  color: #ffffff;
  padding: 50px 0;
}

.cred-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 25px;
  text-align: center;
}

.cred-grid strong {
  display: block;
  font-size: 24px;
  margin-bottom: 5px;
}

.about-section {
  padding: 70px 0;
}

.alt-bg {
  background: #f8fafc;
}

.values-list,
.approach-list {
  margin-top: 20px;
  padding-left: 20px;
}

.values-list li,
.approach-list li {
  margin-bottom: 12px;
  line-height: 1.6;
}
/* ==========================================
   ABOUT PAGE HERO — IMAGE BACKGROUND
   ========================================== */

.about-hero-image {
  position: relative;
  background: url("assets/images/about-hero-data-centre.jpg") center center / cover no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
}

.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 24, 55, 0.65); /* dark professional overlay */
}

.about-hero-content {
  position: relative;
  max-width: 900px;
  padding: 40px 20px;
  z-index: 2;
}

.about-hero-content h1 {
  font-size: 42px;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.about-hero-content p {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.about-hero-content .cta-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}
/* Screen-reader only (SEO alt support for CSS background images) */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
/* ==========================================
   HOMEPAGE INTRO REFINEMENT
   ========================================== */

.homepage-intro.refined {
  padding: 80px 0 60px;
  background: #ffffff;
}

.intro-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #0b1f3a;
}

.intro-lead {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 15px;
  color: #222;
}

.intro-sub {
  font-size: 17px;
  line-height: 1.8;
  color: #555;
}
/* ==========================================
   HOMEPAGE INTRO — PREMIUM POLISH (ADD BELOW EXISTING INTRO STYLES)
========================================== */

/* Subtle premium background wash */
.homepage-intro.refined{
  position: relative;
}

.homepage-intro.refined::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(11,31,58,0.06),
    rgba(255,255,255,0) 55%
  );
  pointer-events:none;
}

/* Ensure content stays above the wash */
.homepage-intro.refined .container,
.homepage-intro.refined .intro-wrapper{
  position: relative;
  z-index: 1;
}

/* Divider line under the title */
.intro-divider{
  width: 84px;
  height: 4px;
  margin: 14px auto 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d00, #0b1f3a);
  opacity: 0.95;
}

/* Better typographic rhythm */
.intro-title{
  letter-spacing: -0.02em;
}

.intro-lead{
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.intro-sub{
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Highlights row (premium “chips”) */
.intro-highlights{
  margin-top: 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.intro-highlights span{
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #0b1f3a;
  background: rgba(11,31,58,0.06);
  border: 1px solid rgba(11,31,58,0.12);
}

/* Responsive tuning */
@media (max-width: 768px){
  .homepage-intro.refined{
    padding: 56px 0 44px;
  }
  .intro-title{
    font-size: 24px;
  }
  .intro-lead,
  .intro-sub{
    font-size: 16px;
    line-height: 1.75;
  }
  .intro-divider{
    margin: 12px auto 18px;
  }
}
/* ===============================
   CONTACT PAGE – PREMIUM LAYOUT
   =============================== */

.contact-wrap{
  padding: 56px 0;
  background: #fff;
}

.contact-head{
  max-width: 980px;
  margin: 0 auto 22px;
  text-align: center;
}

.contact-head h1{
  margin: 0 0 10px;
  font-size: clamp(34px, 3.2vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-grid{
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 18px;
  align-items: start;
}

.contact-card{
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  background: #f8fafc;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.06);
}

.contact-card h2{
  margin: 0 0 10px;
  font-size: 20px;
  color: #0f172a;
}

.contact-lines{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.contact-line{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed #cbd5e1;
}

.contact-line:last-child{
  border-bottom: none;
}

.cl-label{
  font-weight: 800;
  color: #0f172a;
  font-size: 13px;
}

.cl-value{
  color: #334155;
  font-size: 14.5px;
  line-height: 1.5;
}

.contact-actions{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-note{
  margin-top: 12px;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.6;
}

.contact-form label{
  display: block;
  font-weight: 700;
  color: #0f172a;
  font-size: 13.5px;
  margin-bottom: 10px;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  margin-top: 6px;
  padding: 12px 12px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  font-size: 14.5px;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.form-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-footnote{
  margin: 12px 0 0;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 920px){
  .contact-grid{
    grid-template-columns: 1fr;
  }

  .contact-head{
    text-align: left;
  }

  .contact-line{
    grid-template-columns: 1fr;
  }

  .form-grid{
    grid-template-columns: 1fr;
  }
}
/* =========================================
   MOBILE FIXES — HOMEPAGE HERO (Tier 1)
   Paste at VERY BOTTOM of style.css
========================================= */

.hero-rotator--home{
  height: 72vh;
  min-height: 520px;
}

/* Mobile */
@media (max-width: 768px){
  .hero-rotator--home{
    height: 52vh;          /* ✅ stops “giant cropped image” */
    min-height: 340px;
    max-height: 460px;
  }

  .hero-rotator--home .hero-slide{
    background-size: cover;          /* ✅ clean premium look */
    background-position: center;     /* adjust if you want: center 30% */
  }

  .hero-rotator--home .hero-content{
    left: 6%;
    right: 6%;
    bottom: 12%;
    max-width: 92%;
  }

  .hero-rotator--home .hero-content h1{
    font-size: 30px;
    line-height: 1.12;
  }

  .hero-rotator--home .hero-content p{
    font-size: 15px;
    line-height: 1.55;
    max-width: 100%;
  }
}
/* =========================================
   HOMEPAGE SEO INTRO — STRUCTURE (NO SEO LOSS)
========================================= */

.home-intro{
  padding: 48px 0;
}

.home-intro h2{
  margin: 0 0 12px;
}

.home-intro p{
  max-width: 980px;
  margin: 0 auto 14px;
  line-height: 1.75;
}

/* Keyword “chips” */
.seo-keywords{
  max-width: 980px;
  margin: 10px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.seo-keywords span{
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  background: #f8fafc;
  color: #0b1f3a;
  font-weight: 600;
}

/* Mobile typography tuning */
@media (max-width: 768px){
  .home-intro{
    padding: 32px 0 24px;
  }

  .home-intro h2{
    font-size: 24px;
    line-height: 1.2;
    padding: 0 14px;
  }

  .home-intro p{
    font-size: 15px;
    line-height: 1.7;
    padding: 0 14px;
    text-align: left;   /* ✅ reads better on mobile than centered blocks */
  }

  .seo-keywords{
    justify-content: flex-start;
    padding: 0 14px;
  }

  .seo-keywords span{
    font-size: 12.5px;
    padding: 7px 10px;
  }
}
/* =========================================
   HOMEPAGE INTRO — MOBILE STRUCTURE FIX
========================================= */

@media (max-width: 768px){

  .homepage-intro.refined{
    padding: 32px 0 24px;
  }

  .homepage-intro.refined .intro-title{
    font-size: 24px;
    line-height: 1.2;
    padding: 0 14px;
  }

  .homepage-intro.refined .intro-lead,
  .homepage-intro.refined .intro-sub{
    font-size: 15px;
    line-height: 1.7;
    padding: 0 14px;
    text-align: left;
  }

  .seo-keywords{
    padding: 0 14px;
    justify-content: flex-start;
  }

  .seo-keywords span{
    font-size: 12.5px;
    padding: 7px 10px;
  }

}
/* =========================================
   ABOUT HERO IMAGE — MOBILE HEIGHT CONTROL
========================================= */

@media (max-width: 768px){
  .about-hero-image{
    min-height: 260px !important;  /* ✅ no more “full phone screen image” */
    height: 260px !important;
  }

  .about-hero-image .about-hero-overlay{
    padding: 22px 0 !important;
  }

  .about-hero-image h1{
    font-size: 26px !important;
    line-height: 1.15 !important;
  }

  .about-hero-image p{
    font-size: 14.5px !important;
    line-height: 1.6 !important;
  }
}
/* =========================================
   GLOBAL — VENDOR LOGOS MOBILE SAFE SIZING
========================================= */

.vendor-logos img,
.vendor-logo img,
.partner-logos img,
.brands img,
.solution-vendors img{
  max-width: 180px;
  height: 34px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 768px){
  .vendor-logos img,
  .vendor-logo img,
  .partner-logos img,
  .brands img,
  .solution-vendors img{
    max-width: 140px;   /* ✅ prevents “full screen logo” */
    height: 26px;
  }
}
/* =========================================
   TRAINING PAGE — MOBILE OVERFLOW FIX ONLY
   Scope: /solutions/training-consultancy.html
========================================= */

.page-training,
.page-training *{
  max-width: 100%;
}

.page-training{
  overflow-x: hidden;
}

@media (max-width: 768px){

  /* Prevent any long text/links from forcing sideways scroll */
  .page-training p,
  .page-training li,
  .page-training a{
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* MAIN intro grid (left content + partner card) — inline style override */
  .page-training .solution-section .container > div[style*="grid-template-columns:1.3fr"]{
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Any 3-column grids on the page — stack them on mobile */
  .page-training .solution-section .container div[style*="grid-template-columns:repeat(3"]{
    grid-template-columns: 1fr !important;
  }

  /* Any 2-column grids on the page — stack them on mobile */
  .page-training .solution-section .container div[style*="grid-template-columns:repeat(2"]{
    grid-template-columns: 1fr !important;
  }

  /* Partner card buttons: avoid overflow + make them clean */
  .page-training .cta-btn{
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Ensure images never overflow */
  .page-training img{
    height: auto;
    display: block;
  }
}