body{
    /* background-image: url("static/Bg_IT.png"); */

    background-repeat:no-repeat;
    background-size:cover;
}
.BG_Staff {
    background-image: url("static/Bg_IT.png");
    height: 1000px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
  }

/* overlay */

 .staff_overlay {
  position: relative;
  z-index: 1;
  text-align: left;
  padding: 50px;
}

.BG_Staff h2 {
  color: #fff;
  font-size: 3rem;
}

.BG_Staff h2 span {
  color: #0088ff;
}
.content{
    color: white;
}



/* importance section */

main,
.title {
  margin: 0 auto;
  max-width: 100rem;
  color: rgb(255, 255, 254);
}

.title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 .5rem 0;
  padding: 3.5rem 0 0;
}

.intro {
  color: hsl(26, 21%, 94%);
  font-style: italic;
  font-size: 1.15rem;
  text-shadow: 1px 1px 1px #f7f3f3;
}

p {
  font-size: .9rem;
  margin: 0;
  padding-top: 0px;
}

.importance-section {
  background: linear-gradient(90deg,rgba(255, 250, 250, 1) 0%, rgba(20, 39, 61, 1) 31%, rgba(13, 27, 61, 1) 71%);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  padding: 2rem;
}

/* process section */

.implementation-process {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  font-family: "Libre Baskerville", serif;
}

.implementation-process h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #04375c;
}

/* Horizontal Process Tree */
.process-tree {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
  gap: 2rem; /* add horizontal space between nodes */
}

/* Node Box */
.node-box {
  background: linear-gradient(135deg, #e4eef1, #ffffff);
  border-radius: 10px;
  padding: 2.5rem 2.8rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  width: 220px; /* fixed width for all nodes */
  height: 180px; /* fixed height for all nodes */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  word-wrap: break-word; /* ensures long text wraps inside box */
}


.node-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Node Title */
.node-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #04375c;
  margin-bottom: 0.3rem;
}

/* Node Type */
.node-type {
  font-size: 0.9rem;
  font-style: italic;
  color: #666;
}

/* Connector Lines Between Nodes */
.node:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -50%;
  width: 100%;
  height: 4px;
  z-index: -1;
  transform: translateY(-50%);
  border-radius: 2px;

}

/* types of staff augmentation section */

:root {
  --body-font: 'Poppins', sans-serif; 
  --primary-color: #1a237e; 
  --text-color: #333; 
  --bg-light: #f4f7f9;
  --box-bg-white: #ffffff; 
}

/* Base styles for the section */
.staff-augmentation-types {
  padding: 80px 0; 
  background-color: var(--bg-light); 
  font-family: var(--body-font);
}

/* Wrapper to constrain content width, similar to your example */
.wrapper {
  width: 90%;
  max-width: 1200px; 
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.8em; 
  color: var(--primary-color);
  margin-bottom: 10px;
  font-weight: 700;
}

/* Container for the two types of augmentation */
.type-container {
  display: flex;
  flex-direction: column; 
  gap: 30px;
  padding-top: 30px;
}

/* Style for individual type boxes */
.type-box {
  background-color: var(--box-bg-white);
  padding: 20px; 
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(26, 35, 126, 0.1); 
  flex: 1; 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 5px solid var(--primary-color); 
}

.type-box:hover {
  transform: translateY(-8px); 
  box-shadow: 0 12px 25px rgba(26, 35, 126, 0.2); 
}

.type-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
 
}

.type-description {
  font-size: 1.05em;
  line-height: 1.7;
  color: var(--text-color);
}

@media (min-width: 768px) {
  .type-container {
    flex-direction: row; /* Display side-by-side on larger screens */
  }
}


/* Benefits Section */
/* Section */
.staff-augmentation-benefits {
  background-color: #ffffff; /* white background */
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #0a1f44; /* dark blue text */
  padding: 60px 20px 100px 20px; /* spacing */
  text-align: center; /* center all content */
}

/* Container: just for centering content */
.staff-augmentation-benefits .container {
  max-width: 800px;
  margin: 0 auto;
}

/* Title and paragraph */
.staff-augmentation-benefits .right h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.staff-augmentation-benefits .right p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Zigzag section: horizontally centered */
.zigzag-container {
  width: 100%;
  margin-top: 40px;
  display: flex;
  justify-content: center;
}

.staff-augmentation-benefits .zigzag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 50px 30px;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.staff-augmentation-benefits .zigzag-list li {
  background-color: #0a1f44; /* dark blue circle */
  color: #ffffff;
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 10px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Zigzag effect */
.staff-augmentation-benefits .zigzag-list li:nth-child(odd) {
  transform: translateY(-15px);
}

.staff-augmentation-benefits .zigzag-list li:nth-child(even) {
  transform: translateY(15px);
}

/* Hover animation (no color change) */
.staff-augmentation-benefits .zigzag-list li:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}


/* Staff Augmentation Roles */

.staff-augmentation-roles {
  padding: 80px 20px;
  background-color: #ffffff; /* White background */
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05); /* subtle shadow */
  margin-bottom: 60px;
  overflow: hidden;
  color: #0a1f44; /* default text color dark blue */
  position: relative;
}

/* Container */
.staff-augmentation-roles .container {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Left content column */
.staff-augmentation-roles .left {
  flex: 0 0 50%;
}

.staff-augmentation-roles .left h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 25px;
  color: #0a1f44; /* dark blue text */
}

.staff-augmentation-roles .left ul {
  list-style: none;
  padding: 0;
}

.staff-augmentation-roles .left ul li {
  position: relative;
  padding-left: 45px;
  margin-bottom: 18px;
  font-size: 16px;
  color: #0a1f44; /* dark blue text */
  background: #f9fafb; /* subtle light gray for list item */
  border-radius: 15px;
  padding: 12px 16px 12px 45px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
}

.staff-augmentation-roles .left ul li::before {
  content: "✔";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #0a1f44; /* dark blue check mark */
  font-weight: bold;
  font-size: 18px;
}

.staff-augmentation-roles .left ul li:hover {
  transform: translateX(8px);
  background: #0a1f44; /* dark blue background on hover */
  color: #ffffff; /* white text on hover */
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Right image column */
.staff-augmentation-roles .right {
  flex: 0 0 50%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
}

.staff-augmentation-roles .right img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.staff-augmentation-roles .right img:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .staff-augmentation-roles .container {
    flex-direction: column;
    gap: 35px;
  }

  .staff-augmentation-roles .left h2 {
    font-size: 28px;
    text-align: center;
  }

  .staff-augmentation-roles .left ul li {
    padding-left: 40px;
  }

  .staff-augmentation-roles .right {
    flex: 0 0 100%;
  }
}


/* 🌐 RESPONSIVE ADD-ON (Safe — does not modify existing styles) */

@media only screen and (max-width:480px){


  html, body{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;

  }
}



/* ========== BG_Staff Section ========== */
@media screen and (max-width: 992px) {
  .BG_Staff {
    height: 600px;
    background-position: top center;
  }
  .staff_overlay {
    padding: 30px;
    text-align: center;
  }
  .BG_Staff h2 {
    font-size: 2.2rem;
  }
  .content {
    font-size: 1rem;
  }
}

/* ========== Importance Section ========== */
@media screen and (max-width: 768px) {
  .importance-section {
    padding: 1.5rem;
    text-align: center;
  }
  .title {
    font-size: 1.8rem;
    padding: 2rem 0 0;
  }
  .intro {
    font-size: 1rem;
  }
}

/* ========== Implementation Process (Process Tree) ========== */
@media screen and (max-width: 1024px) {
  .process-tree {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
  .node-box {
    width: 200px;
    height: auto;
    padding: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .node-box {
    width: 90%;
    max-width: 320px;
  }
  .implementation-process h2 {
    font-size: 1.6rem;
  }
}

/* ========== Types of Staff Augmentation ========== */
@media screen and (max-width: 768px) {
  .type-container {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  .type-box {
    width: 95%;
    text-align: center;
  }
  .type-title {
    font-size: 1.5em;
  }
}

/* ========== Benefits Section (Circles) ========== */
@media screen and (max-width: 768px) {
  .staff-augmentation-benefits {
    padding: 40px 10px;
  }
  .staff-augmentation-benefits .right h2 {
    font-size: 1.8rem;
  }
  .staff-augmentation-benefits .right p {
    font-size: 0.95rem;
  }
  .staff-augmentation-benefits .zigzag-list {
    gap: 25px 20px;
  }
  .staff-augmentation-benefits .zigzag-list li {
    width: 100px;
    height: 100px;
    font-size: 0.8rem;
  }
}

@media screen and (max-width: 480px) {
  .staff-augmentation-benefits .zigzag-list li {
    width: 90px;
    height: 90px;
    font-size: 0.75rem;
  }
}

/* ========== Roles Section ========== */
@media screen and (max-width: 768px) {
  .staff-augmentation-roles {
    padding: 50px 15px;
  }
  .staff-augmentation-roles .container {
    flex-direction: column;
    align-items: center;
  }
  .staff-augmentation-roles .left {
    width: 100%;
    text-align: center;
  }
  .staff-augmentation-roles .left h2 {
    font-size: 1.8rem;
  }
  .staff-augmentation-roles .left ul li {
    font-size: 0.9rem;
    padding: 10px 12px 10px 38px;
  }
  .staff-augmentation-roles .right {
    width: 100%;
  }
  .staff-augmentation-roles .right img {
    height: auto;
    max-height: 300px;
  }
}

/* ========== Global Text Resize & Padding Fixes ========== */
@media screen and (max-width: 480px) {
  body {
    font-size: 14px;
  }
  .title {
    font-size: 1.6rem;
  }
  .intro {
    font-size: 0.9rem;
  }
  .implementation-process h2,
  .section-title {
    font-size: 1.5rem;
  }
}

/* Scroll to Top Button */
/* ====== Scroll-to-top - final mobile-safe styles (PUT AT END) ====== */

/* Prevent horizontal overflow (helps button not sit in right gutter) */
html, body {
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Base - hidden by default (JS will toggle .visible) */
#scrollToTopBtn {
  position: fixed !important;
  right: calc(env(safe-area-inset-right, 0px) + 16px) !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 16px) !important;
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0a1f44;
  color: #fff;
  border: 0;
  z-index: 2147483646 !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: auto;
}

/* visible / hiding states */
#scrollToTopBtn.visible {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}
#scrollToTopBtn.hiding {
  opacity: 0;
  transform: translateY(8px);
}

/* small screens: nudge the button further left so it's never clipped */
@media (max-width: 480px) {
  #scrollToTopBtn {
    right: calc(env(safe-area-inset-right, 0px) + 12px) !important;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    width: 40px;
    height: 40px;
  }
}
