/* ———————————————— *
   FONT DEFINITION
   ———————————————— */
body, html,
h1, h2, h3, h4, h5, h6,
p, a, span, div, li, button, input, textarea {
  font-family: 'Josefin Sans', sans-serif !important;
}

/* ———————————————— *
   REMOVE MARGINS
   ———————————————— */
/* Remove bottom margin from section8 */
section.position-relative.mb-5 {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Remove footer top margin */
footer {
  margin-top: 0 !important;
  padding-top: 1rem; /* adjust if you want some spacing */
}

/* Optional: also ensure body and html have no bottom margin */
body, html {
  margin: 0;
  padding: 0;
}

/* Privacy policy styling */
.privacy-policy-box {
  background-color: #ffffff;
  color: #000000;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  max-width: 900px;
  margin: 2rem auto;
  font-family: 'Josefin Sans', sans-serif;
  line-height: 1.6;
}

/* ———————————————— *
   STICKY HEADER & HIDE/SHOW BEHAVIOR
   ———————————————— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transform: translateY(0);
  transition: transform 0.3s ease-in-out;
}
.site-header.hidden {
  transform: translateY(-100%);
}
.site-header.scrolled .navbar {
  background-color: #333333 !important;
  background-image: none !important;
}

/* ———————————————— *
   BUTTON STYLES
   ———————————————— */
.btn-submit {
  background-image: none !important;
  background-color: #ffffff !important;
  border-color: #000000 !important;
  color: #000000 !important;
}
.btn-submit:hover {
  background-image: none !important;
  background-color: #C9B202 !important;
  border-color: #C9B202 !important;
  color: #333333 !important;
}

/* ———————————————— *
   FORM PANEL BACKGROUND
   ———————————————— */
.contact-wrap,
.wrapper {
  background: transparent !important;
  border: none             !important;
  box-shadow: none         !important;
}

/* ———————————————— *
   NAVBAR ICON
   ———————————————— */
.site-header .navbar-toggler-icon {
  filter: brightness(0) invert(1) !important;
}

/* ———————————————— *
   NAVBAR BACKGROUND
   ———————————————— */
.site-header .navbar {
  background-color: #008080 !important;
  background-image: linear-gradient(
    to right,
    #333333,
    #333333
  ) !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

/* ———————————————— *
   DROPDOWN BACKGROUND
   ———————————————— */
.site-header .dropdown-menu {
  background-color: #333333 !important;
  background-image: none !important;
}

/* ———————————————— *
   HERO VIDEO
   ———————————————— */
/* video hero container */
.video-header {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}
.video-header video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
}


/* ———————————————— *
   HERO IMAGE
   ———————————————— */
/* Ensure image-header fills 100vh and image covers fully */
.image-header {
  position: relative;
  width: 100%;
  height: 450px;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
}

/* Overlay covering entire image with dark transparent background */
.image-header .header-dark-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Adjust for desired darkness */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 15px;
  color: #fff;
  font-family: 'Josefin Sans', sans-serif;
  box-sizing: border-box;
  gap: 1rem;
}

/* Main Title */
.image-header .header-dark-overlay h1 {
  color: white !important;
  font-size: 5vw;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.15;
  margin: 0;
    font-family: 'Josefin Sans', sans-serif !important;
  }

  .header-dark-overlay h1,
  .header-dark-overlay h2,
  .header-dark-overlay h3,
  .header-dark-overlay h4,
  .header-dark-overlay h5,
  .header-dark-overlay h6 {
    font-family: 'Josefin Sans', sans-serif !important;
  }

/* Subtitle line */
.image-header .header-dark-overlay .hero-subtitle {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
  color: #fff;
  opacity: 0.85;
}

/* Paragraph Text */
.image-header .header-dark-overlay .hero-text {
  max-width: 600px;
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 auto;
  line-height: 1.5;
  color: #fff;
  opacity: 0.9;
}

/* Button styling */
/* Hero button default and hover */
.image-header .header-dark-overlay a.btn-get {
  margin-top: 1.5rem;
  padding: 0.8rem 3rem;
  font-weight: 600;
  font-size: 1.2rem;
  border-radius: 0.4rem;
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff !important;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.image-header .header-dark-overlay a.btn-get:hover {
  background-color: #C9B202;
  border-color: #C9B202;
  color: #333333 !important;
}

/* Section 2 buttons hover */
section.container.my-5 a.btn-get:hover {
  background-color: #C9B202 !important;
  border-color: #C9B202 !important;
  color: #333333 !important;
}

/* ———————————————— *
   CUSTOM ADDITIONS FOR CONTACT PAGE
   ———————————————— */

/* 1) CONTACT BACKGROUND COVER */
.bg-hero {
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  min-height: calc(100vh - 56px);
}

/* 2) CONTACT FORM FIELDS WHITE */
.contact-wrap .form-control {
  background-color: #ffffff !important;
  color: #000000 !important;
}

/* 3) REMOVE RESIDUAL TRANSPARENCY ON INPUTS/TEXTAREAS */
.ftco-section.img.bg-hero input,
.ftco-section.img.bg-hero textarea {
  background: #ffffff !important;
  color: #000000 !important;
}

/* ———————————————— *
   REMOVE CARD BORDERS AROUND TEXT
   ———————————————— */
.card {
  border: none !important;
}

/* ———————————————— *
   CARD TEXT LEFT/RIGHT MARGIN
   ———————————————— */
/* Default for desktop and up */
.card-body {
  margin-left: 16rem !important;
  margin-right: 16rem !important;
}

/* Below 768px (Bootstrap’s “md” breakpoint), remove those huge margins */
@media (max-width: 767.98px) {
  .card-body {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
    /* or simply “margin: 0 auto; padding: 0 1rem;” */
  }
}

/* ———————————————— *
   CARD FONT FAMILY (TEXT & HEADINGS)
   ———————————————— */
.card-body,
.card-body h1,
.card-body h2,
.card-body h3,
.card-body h4,
.card-body h5,
.card-body h6 {
  font-family: 'Josefin Sans', sans-serif !important;
}



/* ———————————————— *
   THIS IS FOR ALL SECTIONS OF THE HOME PAGE. CAN BE USED IN DIFFERENT PAGES TOO
   ———————————————— */
.overlay-box {
  position: relative;
  z-index: 2;  /* higher than overlay */
  background: white;
  color: black;
  max-width: 900px;
  padding: 60px 80px;
  text-align: center;
  font-family: 'Josefin Sans', sans-serif;
  border-radius: 6px;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
}
.btn-get {
  background-color: transparent;
  border: 2px solid #000000;
  color: #000000;
  transition: background-color 0.3s ease, color 0.3s ease;
  padding: 0.6rem 2.5rem;
  border-radius: 0.4rem;
  font-weight: 600;
  text-transform: none;
  display: inline-block;
  text-align: center;
}

.btn-get:hover {
  background-color: #C9B202;
  border-color: #C9B202;
  color: #333;
}

.overlay-box h3 {
  font-weight: 600;
  margin-bottom: 15px;
}

.overlay-box p {
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 25px;
}

.overlay-image {
  max-width: 80px;
  margin-bottom: 20px;
}

/* Button same as hero button but with yellow hover */
.overlay-box a.btn-get {
  background-color: transparent;
  border: 2px solid #333;
  color: #333;
  font-weight: 600;
  padding: 0.6rem 2.5rem;
  border-radius: 0.4rem;
  text-transform: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.overlay-box a.btn-get:hover {
  background-color: #C9B202;
  border-color: #C9B202;
  color: #333333 !important;
}

.col-md-4.position-relative > div {
  max-width: 320px;  /* limit width of overlay box */
  margin: 0 auto;    /* center horizontally */
  padding: 20px;
  background: rgba(0,0,0,0.7);
  border-radius: 6px;
  text-align: center;
  color: white;
}

.col-md-4.position-relative > div h4 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.col-md-4.position-relative > div p {
  margin-bottom: 1.5rem;
}

.col-md-4.position-relative > div a.btn-get {
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
}

/* ———————————————— *
   THIS IS FOR SECTION2 OF THE HOME PAGE. CAN BE USED IN DIFFERENT PAGES TOO
   ———————————————— */
#section2 {
  margin-bottom: 3rem; /* or more if needed */
  position: relative;  /* ensure normal flow */
  z-index: 1;          /* keep above any background elements */
}

#section2 img {
  border-radius: 8px; /* adjust the radius to your liking */
  overflow: hidden; /* ensures corners are clipped */
}

/* ———————————————— *
   THIS IS FOR SECTION3 OF THE HOME PAGE. CAN BE USED IN DIFFERENT PAGES TOO
   ———————————————— */
@media (max-width: 767.98px) {
  .overlay-box {
    position: relative !important;  /* Avoid fixed or absolute that can cause overlap */
    height: auto !important;         /* Let height grow naturally */
    margin-bottom: 2rem;             /* Add spacing below */
    padding: 1rem !important;        /* Add internal padding */
    transform: none !important;      /* Remove any translate positioning */
  }

  .section3-background {
    padding-bottom: 2rem;            /* Add extra space below the section */
  }
}

.section3-background {
  background-image: url('/static/sites_app/images/ns/green_wall.jpg'); /* Or use inline style for dynamic */
  background-size: cover;
  background-position: center;
  min-height: 600px; /* adjust as needed */
  height: auto;      /* allow height to adjust to content */
  position: relative;
  display: flex;
  justify-content: center;  /* center horizontally */
  align-items: center;      /* center vertically */
  flex-direction: column;   /* stack children vertically */
  padding: 2rem;            /* optional padding */
  box-sizing: border-box;
}

.section3-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.section3-background .overlay-box {
  background: #393737; /* solid black */
  color: #ffffff;      /* white text */
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 900px;
  position: relative;
  z-index: 2;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.section3-background .overlay-box h3 {
  color: #ffffff !important;
}

.section3-background .overlay-box p {
  color: #ffffff !important;
}

.section3-background .overlay-box a.btn-get {
  display: inline-block !important; /* shrink to fit content */
  max-width: 200px !important;      /* max width */
  width: auto !important;           /* override any full width */
  background-color: transparent;
  border: 2px solid rgb(255, 255, 255);
  color: rgb(255, 255, 255);
  font-weight: 600;
  padding: 0.6rem 2.5rem;
  border-radius: 0.4rem;
  text-transform: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;        /* prevent overflow on tiny screens */
  text-align: center;     /* keep text centered */
  margin: 0 auto;         /* center the button */
  display: block;         /* ensure margin auto works */
}

.section3-background .overlay-box a.btn-get:hover {
  /* Optional: change button background on hover */
  background-color: #C9B202 !important;
  border-color: #C9B202 !important;
  color: #ffffff !important;
}

/* Dark bottom overlay: cover bottom 1/3rd */
.section3-background::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 33%;
  background: rgba(0,0,0,0.6);
  pointer-events: none;
  z-index: 1;
}

.position-relative.section3-background {
  padding-bottom: 4rem; /* add space below overlay */
  margin-bottom: 4rem;  /* add space below section */
  position: relative;
  z-index: 1; /* make sure it's above background */
}



/* ———————————————— *
   THIS IS FOR SECTION4 OF THE HOME PAGE. CAN BE USED IN DIFFERENT PAGES TOO
   ———————————————— */
#section4 {
  margin-bottom: 3rem; /* or more if needed */
  position: relative;  /* ensure normal flow */
  z-index: 1;          /* keep above any background elements */
}

/* ———————————————— *
   THIS IS FOR SECTION2 OF THE HOME PAGE. CAN BE USED IN DIFFERENT PAGES TOO
   ———————————————— */
#section4 img {
  border-radius: 8px; /* adjust the radius to your liking */
  overflow: hidden; /* ensures corners are clipped */
}


/* ———————————————— *
   THIS IS FOR SECTION5 OF THE HOME PAGE. CAN BE USED IN DIFFERENT PAGES TOO
   ———————————————— */
@media (max-width: 767.98px) {
  .section5-background {
    min-height: 400px; /* smaller height on mobile */
    padding: 2rem 1rem; /* add some padding */
    height: auto;
  }
}

.section5-background {
  background-image: url('/static/sites_app/images/ns/python_script.png');
  background-size: cover;
  background-position: center;
  min-height: 600px; /* adjust as needed */
  height: auto;      /* allow height to adjust to content */
  position: relative;
  display: flex;
  justify-content: center;  /* center horizontally */
  align-items: center;      /* center vertically */
  flex-direction: column;   /* stack children vertically */
  padding: 2rem;            /* optional padding */
  box-sizing: border-box;
}

.section5-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.section5-background .overlay-box {
  background: #f0ebcd; /* solid black, no transparency */
  color: rgb(0, 0, 0);        /* force white text */
  padding: 1.5rem;
  border-radius: 8px;
  max-width: 900px;
  position: relative;
  z-index: 2;
  box-shadow: none; /* remove shadow if it affects visibility */
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;   /* take full height of container */
}

.section5-background .overlay-box h3 {
  color: rgb(0, 0, 0) !important;
}

.section5-background .overlay-box p {
  color: #020202 !important;
}

.section5-background .overlay-box a.btn-get {
  display: inline-block !important; /* shrink to fit content */
  max-width: 200px !important;      /* max width */
  width: auto !important;           /* override any full width */
  background-color: transparent;
  border: 2px solid rgb(0, 0, 0);
  color: rgb(0, 0, 0);
  font-weight: 600;
  padding: 0.6rem 2.5rem;
  border-radius: 0.4rem;
  text-transform: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;        /* prevent overflow on tiny screens */
  text-align: center;     /* keep text centered */
  margin: 0 auto;         /* center the button */
  display: block;         /* ensure margin auto works */
}

.section5-background .overlay-box a.btn-get:hover {
  /* Optional: change button background on hover */
  background-color: #C9B202 !important;
  border-color: #C9B202 !important;
  color: #333 !important;
}

/* Dark bottom overlay: cover bottom 1/3rd */
.section5-background::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 33%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
  z-index: 1;
}

.position-relative.section5-background {
  padding-bottom: 4rem; /* add space below overlay */
  margin-bottom: 4rem;  /* add space below section */
  position: relative;
  z-index: 1; /* make sure it's above background */
}


/* ———————————————— *
   THIS IS FOR SECTION6 OF THE HOME PAGE. CAN BE USED IN DIFFERENT PAGES TOO
   ———————————————— */
#section6 {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  flex-wrap: wrap;
}

/* Large screens */
.section6-col {
  position: relative;
  flex: 1 1 30%;      /* 3 columns roughly */
  min-width: 250px;   /* prevent too small */
  height: 600px;      /* fixed height for large screens */
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;   /* vertically center overlay */
  justify-content: center; /* horizontally center overlay */
  margin-bottom: 1rem;
}

/* Overlay box */
.section6-overlay {
  position: absolute;
  width: 80%;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 8px;
  color: white;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Text styling */
.section6-overlay h4 {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
}

.section6-overlay p {
  font-family: 'Josefin Sans', sans-serif;
  margin-bottom: 1.5rem;
  color: white;
  opacity: 1;
}

.section6-overlay a.btn-get {
  align-self: center;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 0.4rem;
  background-color: transparent;
  border: 2px solid #fff;
  color: white;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
}

.section6-overlay a.btn-get:hover {
  background-color: #C9B202;
  border-color: #C9B202;
  color: #333333;
}

/* Mobile adjustments */
@media (max-width: 767.98px) {
  #section6 {
    flex-direction: column;
  }

  .section6-col {
    flex: 1 1 100%;
    height: auto;        /* Use auto height on mobile to fit content */
    min-height: 350px;   /* minimum height so it doesn’t collapse */
  }

  .section6-overlay {
    padding: 1rem;
    max-width: 90%;
  }

  /* Use more aggressive scaling with clamp */
  .section6-overlay h4 {
    font-size: clamp(1rem, 7vw, 1.5rem);
  }
  .section6-overlay p {
    font-size: clamp(0.85rem, 4vw, 1.1rem);
    margin-bottom: 1rem;
  }
  .section6-overlay a.btn-get {
    font-size: clamp(0.85rem, 4vw, 1.1rem);
    padding: 0.5rem 1rem;
  }
}



/* ———————————————— *
   THIS IS FOR SECTION8 OF THE HOME PAGE. CAN BE USED IN DIFFERENT PAGES TOO
   ———————————————— */
/* Responsive adjustments */
@media (max-width: 767.98px) {
  section.position-relative.mb-5.section8-background {
    padding: 2rem 1rem 6rem !important;
    min-height: auto !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
  }
  .section8-overlay {
    padding: 15px !important;
    max-width: 90vw !important;
    font-size: 0.9rem !important;
  }
  .section8-overlay h3 {
    font-size: 1.5rem !important;
  }
  .section8-overlay p {
    font-size: 1rem !important;
  }
  .section8-overlay a.btn-get {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
  }
}

/* Section 8 container */
.position-relative.mb-5.section8-background {
  background-image: url('/static/sites_app/images/ns/stairs_to_success.jpg');
  background-size: cover;
  background-position: center;
  min-height: 600px; /* minimum height */
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

/* Overlay box */
.section8-overlay {
  position: relative; /* no absolute positioning */
  background: rgb(0, 0, 0);
  padding: 30px;
  max-width: 800px;
  text-align: center;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  box-sizing: border-box;
  margin: auto;
}

.section8-overlay h3 {
  color: #fff !important;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.section8-overlay p {
  color: #fff !important;
  font-weight: normal;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

.section8-overlay a.btn-get {
  color: #fff !important;
  border-color: #fff !important;
}
.section8-overlay a.btn-get:hover {
  background-color: #C9B202 !important;
  border-color: #C9B202 !important;
  color: #333 !important;
}
