/* =========================================================
   private-sector page styles.
   Loaded after styles/global.css on private-sector.html only.
   ========================================================= */

:root {
  --bs-body-font-family: "Poppins", sans-serif;
  --orange: #ff8f00;
  --blue: #00205c;
  --light-orange: #ff8f0033;
  --light-blue-grad: linear-gradient( 135deg, rgba(92, 125, 184, 0.10), rgba(92, 125, 184, 0.01) );
  --side-left: clamp(80px, 10vw, 100px);
  --page-margin: 88px;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.15);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

@media (max-width: 1599px) and (min-width: 992px) {
  :root {
    --page-margin: 40px!important;
  }
}

.privatehead-image {
  width: 150%;
  overflow: hidden;
  min-height: 600px;
  height: 60vh;
  opacity: 0.7;
  -webkit-mask-image: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,1) 100% );
  mask-image: linear-gradient( to right, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%, rgba(0,0,0,1) 100% );
  position: relative;
  left: -130px;
  z-index: 1;
}

/* SECTION */
.private-features-section {
  padding: 30px 20px;
  background: #f7f9fc;
}

/* CARD */
.private-feature-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 25px;
  height: 100%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.45s ease, box-shadow 0.45s ease, background 0.45s ease, border-radius 0.45s ease;
}

/* LIGHT GLOW */
.private-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient( circle at top left, rgba(255,255,255,0.55), transparent 45% );
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

/* CONTENT ANIMATION */
.private-feature-card h2,
.private-feature-card h3,
.private-feature-card h4,
.private-feature-card h5,
.private-feature-card p,
.private-feature-card li,
.private-feature-card img,
.private-feature-card svg {
  transition: transform 0.45s ease, color 0.45s ease, opacity 0.45s ease;
  position: relative;
  z-index: 2;
}

/* HOVER */
.private-feature-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 26px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12), 0 12px 30px rgba(255, 140, 0, 0.08);
}

/* SHOW GLOW */
.private-feature-card:hover::before {
  opacity: 1;
}

/* TEXT FLOAT */
.private-feature-card:hover h2,
.private-feature-card:hover h3,
.private-feature-card:hover h4,
.private-feature-card:hover h5,
.private-feature-card:hover p,
.private-feature-card:hover li {
  transform: translateY(-3px);
}

/* ICON / IMAGE ANIMATION */
.private-feature-card:hover img,
.private-feature-card:hover svg {
  transform: scale(1.08);
}

@media (max-width: 991px) {
  /* MOBILE */
  .private-feature-card:hover {
    transform: translateY(-4px);
  }

  .private-feature-card:hover img,
  .private-feature-card:hover svg {
    transform: scale(1.03);
  }
}

/* HEADER */
.private-feature-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.private-feature-header img {
  width: 80px;
}

.private-feature-header h3 {
  margin: 0;
  font-weight: 600;
}

.private-feature-header p {
  margin: 5px 0 0;
  font-size: 0.9rem;
  opacity: 0.85;
  color: var(--blue);
}

/* UNDERLINE */
.private-feature-underline {
  width: 60px;
  height: 3px;
  background: #ff8f00;
  margin: 15px 0;
}

/* LIST */
.private-feature-card ul {
  padding-left: 18px;
  margin: 0;
}

.private-feature-card li {
  margin-bottom: 8px;
  font-size: 1.1rem;
  position: relative;
  color: var(--blue);
}

.private-feature-card li::marker {
  color: #ff8f00;
}

/* SECTION */
.private-risk-section {
  padding: 30px 0;
  position: relative;
}

/* ORANGE GLASS CARD */
.private-risk-orange {
  background: var(--light-orange);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px 40px 0px 40px;
  height: 100%;
  position: relative;
  z-index: 1;
}

/* WHITE GLASS CARD (OVERLAPPING) */
.private-risk-white {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  z-index: 2;
  margin-left: -75px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.1);
}

/* HEADER */
.private-risk-header {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 15px;
}

.private-risk-header img {
  width: 75px;
}

.private-risk-header h2 {
  margin: 0;
  font-size: 1.9rem;
}

.private-risk-header p {
  margin: 5px 0 0;
  opacity: 0.85;
}

/* UNDERLINE */
.private-risk-underline {
  width: 60px;
  height: 3px;
  background: #ff8f00;
  margin: 15px 0;
}

/* LIST */
.private-risk-orange ul,
.private-risk-white ul {
  padding-left: 20px;
}

.private-risk-orange li,
.private-risk-white li {
  margin-bottom: 8px;
}

.private-risk-orange li::marker,
.private-risk-white li::marker {
  color: #ff8f00;
}

.private-risk-orange,
.private-risk-white {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* SECTION */
.private-services-section {
  padding: 30px 10px;
}

/* LIGHT BLUE CARD */
.private-services-card {
  background: var(--light-blue-grad);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* TITLE */
.private-services-title {
  margin-bottom: 10px;
}

/* CARD */
.private-service-item {
  position: relative;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-radius 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.45s ease;
}

/* IMAGE / ICON SMOOTHING */
.private-service-item img,
.private-service-item svg {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease;
}

.private-service-item:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.98);
  border-radius: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10), 0 8px 20px rgba(255, 140, 0, 0.06);
}

.private-service-item:hover img,
.private-service-item:hover svg {
  transform: scale(1.03);
  filter: brightness(1.02);
}

/* IMAGE LAYER (fills top area) */
.private-service-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 65%;
  z-index: 1;
  overflow: hidden;
}

/* 🔥 SMOOTH FADE INTO CONTENT */
.private-service-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient( to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 40%, rgba(255,255,255,0.85) 70%, rgba(255,255,255,1) 100% );
}

/* CONTENT (sits on top of image) */
.private-service-content {
  position: relative;
  z-index: 2;
  padding: 20px 20px 0 20px;
}

/* TEXT */
.private-service-content h3 {
  margin-bottom: 8px;
}

.private-service-content p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.private-service-content h3 {
  margin-bottom: 8px;
  font-weight: 600;
}

.private-service-content p {
  font-size: 1.1rem;
  opacity: 0.85;
}

/* BUTTON */
.private-expand-btn {
  background: none;
  border: none;
  color: #ff8f00;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  padding: 0;
}

/* GRID */
.private-services-grid {
  align-items: flex-start;
}

/* CARD */
.private-service-item {
  position: relative;
  background: rgba(255,255,255,0.9);
  border-radius: 16px;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  min-height: 300px;
}

/* IMAGE */
.private-service-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 65%;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.private-service-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* FADE INTO CONTENT */
.private-service-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient( to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.75) 60%, rgba(255,255,255,1) 100% );
}

/* CONTENT (NORMAL FLOW NOW — NO MARGIN TOP) */
.private-service-content {
  position: relative;
  z-index: 2;
  padding: 20px;
  padding-top: 160px;
}

/* BUTTON */
.private-expand-btn {
  background: none;
  border: none;
  color: #ff8f00;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

@media (max-width: 768px) {
  .divider-heading {
    display: inline-block;
    text-align: center;
    width: 100%;
    font-size: 1.4rem;
    line-height: 1.3;
  }

  .divider-heading .text-orange {
    display: inline;
  }

  .feature-row {
    row-gap: 30px;
    column-gap: 30px;
  }
}

@media (max-width: 992px) {
  /* =========================
     PRIVATE PAGE - MOBILE FIX
     ========================= */
  /* GLOBAL SPACING */
  .private-features-section,
  .private-risk-section,
  .private-services-section {
    padding: 20px 15px;
  }

  /* =========================
     HERO IMAGE FIX
     ========================= */
  .privatehead-image {
    display: none;
  }

  /* =========================
     FEATURE CARDS
     ========================= */
  .private-feature-card {
    gap: 10px;
    padding: 20px;
  }

  .private-feature-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .private-feature-header img {
    width: 60px;
  }

  /* =========================
     RISK SECTION (BIG FIX)
     ========================= */
  .private-risk-orange,
  .private-risk-white {
    margin-left: 0 !important;
    padding: 25px 20px;
  }

  .private-risk-white {
    margin-top: 20px;
  }

  .private-risk-header {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .private-risk-header img {
    width: 60px;
  }

  /* =========================
     SERVICES GRID FIX
     ========================= */
  .private-services-card {
    padding: 25px 15px;
  }

  .private-service-item {
    min-height: auto;
    margin-top: 30px;
  }

  .private-service-content {
    padding-top: 140px;
  }

  .private-service-bg {
    height: 55%;
  }

  .private-risk-logo {
    display: none;
  }
}

@media (max-width: 1599px) and (min-width: 992px) {
  .private-service-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 375px;
  }
}
