:root {
  --color-primary: #252662;
  --color-secondary: #ffffff;
  --color-accent: #252662;
  --color-headings: #252662;
  --color-body: #918ca4;
  --color-body-darker: #5c5577;
  --color-border: #EDEDED;
  --border-radius: 30px;
}

*,
*::after,
*::before {
  box-sizing: border-box;
}

/* Selection */
::selection {
  background: var(--color-primary);
  color: #fff;
}

/* Typography scale */
html { font-size: 62.5%; }

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: 1.7rem;
  line-height: 1.6;             /* more comfortable reading */
  color: var(--color-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  color: var(--color-headings);
  margin: 0 0 1rem;
  line-height: 1.2;             /* slightly more open */
}

h1 { font-size: 6rem; }
h2 { font-size: 3rem; margin: 3rem 0 4rem; }
h3 { font-size: 2.2rem; font-weight: 600; }
.publ { font-size: 2.2rem; }
h4 { font-size: 1.8rem; font-weight: 500; }

p { margin: 0 0 1.5rem; }

.white { text-align: center; color:#ffffff; }
.green { margin-top: 3rem; text-align: center; color:#252662; }

a {
  color: inherit;               /* inherit by default; no global white links */
  text-decoration: none;
}
a:hover { color:#252662; }
a:focus-visible {
  outline: 2px solid #252662;
  outline-offset: 2px;
}

/* Large screens: keep your original intent but slightly tuned */
@media screen and (min-width: 1024px) {
  body { font-size: 1.8rem; }
  h1 { font-size: 7.2rem; }
  h2 { font-size: 3rem; }
  h3 { font-size: 2.4rem; }
  .publ { font-size: 2.5rem; }
}

/* NAVIGATION */
.nav {
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  padding: .75rem 1rem;
}

.nav__list {
  width: 100%;
  margin: 0;
  padding-left: 0;              /* ensure no side indent on mobile */
}

.nav__list.collapsible__content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}

.nav.collapsible--expanded .nav__list.collapsible__content {
  max-height: 100vh;
  opacity: 1;
}

.nav__item {
  padding: 1rem 2rem;           /* larger tap target */
  border-bottom: 1px solid #252662;
}

.nav__item > a {
  color: #252662;
  transition: color 0.2s ease;
}
.nav__item > a:hover { color: #0a0b1d; }
.nav__item > a[aria-current="page"] { font-weight: 700; }

.nav__toggler {
  opacity: 0.8;
  cursor: pointer;
  transition: box-shadow 0.15s ease, opacity 0.2s ease;
}
.nav.collapsible--expanded .nav__toggler {
  opacity: 1;
  box-shadow: 0 0 0 3px #666;
  border-radius: 6px;
}

.nav__brand { 
    transform: translateY(5px); 
    padding-left: 1rem;   /* small breathing room from the edge */
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


@media screen and (min-width: 768px) {
  .nav { padding: 1rem 2rem; }
  .nav__toggler { display: none; }

  .nav__list.collapsible__content {
    width: auto;
    display: flex;
    gap: 1.5rem;                /* space between items */
    font-size: 1.4rem;
    max-height: none;
    opacity: 1;
    overflow: visible;
  }

  .nav__item {
    border: 0;
    padding: .5rem 0;
  }
}

/* LAYOUT BLOCKS */
.block {
  --padding-vertical: 6rem;
  padding: var(--padding-vertical) 2rem;
}
.blockP { padding: var(--padding-vertical) 2rem; }

.block__header {
  text-align: center;
  margin: 0 auto 3rem;
  max-width: 74ch;              /* improve line length */
}

.block__video { text-align: center; margin: 3rem 0 2rem; }

.icons, .iconsCert { width: 70%; }

.youtube-video {
  aspect-ratio: 16 / 9;
  width: 70%;
}

.block__heading { margin-top: 0; }

.block--dark { background: #252662; color: #7b858b; }
.block--dark h1, .block--dark h2, .block--dark h3 { color: #fff; }

.block--skewed-right {
  padding-bottom: calc(var(--padding-vertical) + 12rem); /* less extreme on mobile */
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 90%);
}
.block--skewed-rightA {
  padding-bottom: calc(var(--padding-vertical) + 4rem);
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 90%);
}
.block--skewed-left {
  padding-bottom: calc(var(--padding-vertical) + 4rem);
  clip-path: polygon(0% 0%, 100% 0%, 100% 90%, 0% 100%);
}

.container,
.containerPhotos,
.containerIcons {
  max-width: 1040px;
  margin: 0 auto;
}
.containerIcons { max-width: 800px; }

/* Color blocks */
.block--green { background: #252662; color: #7b858b; }
.block--experience {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.block--experience > .block {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.block--experience .feature,
.block--experience .feature:first-of-type {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.block--white { background: #ffffff; color: #7b858b; }
.block--lightgreen { background: #EDEDED; }

/* Trim skew at smaller widths */
@media screen and (max-width: 768px) {
  .block--skewed-right {
    padding-bottom: calc(var(--padding-vertical));
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 97%);
  }
}

/* Laptop spacing fix for block three */
@media screen and (min-width: 1024px) {

  /* Optional: slightly reduce vertical padding for this block only */
  .block.block--green.block--skewed-right {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  /* Reduce space between header and h2 */
  .block.block--green.block--skewed-right .block__header {
    margin-bottom: 2rem;  /* was 3rem globally */
  }

  /* Make spacing above and below the h2 equal */
  .block.block--green.block--skewed-right h2 {
    margin-top: 2rem;     /* was 3rem */
    margin-bottom: 5rem;  /* was 4rem */
  }

  /* Reduce bottom padding of the hero block */
  .block.hero {
    padding-bottom: 1rem; /* was 6rem */
  }

  /* Reduce top padding of the counter block */
  .block:nth-of-type(2) {
    padding-top: 1rem; /* was 6rem */
  }

}

/* MEDIA defaults */
img { max-width: 100%; height: auto; display: block; }

.hero__tagline {
  font-size: 1.8rem;
  color: #5f6a77;
  letter-spacing: .5px;
  margin: 1rem 0 3rem;
}

.hero__image { width: 100%; }

@media screen and (min-width: 768px) {
  .hero { 
    padding-top: 0;
    padding-bottom: 0;
 }
  .hero__content { text-align: left; align-self: center; }
}


.hero {
  margin-top: 0;
  margin-bottom: 0;
  padding: 2.4rem 0;
}

.hero .block__header h2 {
  margin-top: 0;
  margin-bottom: 0;
}

.hero + .block {
  padding-top: 0;
}

@media screen and (max-width: 1024px) {
  .block,
  .blockP,
  .hero {
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

/* Base hero image */
.hero__image {
  width: 100%;
  display: block;
}

/* MOBILE: make the image crop nicely instead of looking squashed */
@media screen and (max-width: 768px) {
  .hero {
    max-height: 60vh;   /* limit height on phones */
    overflow: hidden;
    padding: 2.4rem 3rem;
  }

  .hero .block__header h2 {
    margin-top: 0;
    margin-bottom: 0;
  }

  .hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* zooms/crops instead of distorting */
  }
}


/* GRIDS */
.grid { display: grid; gap: 2rem; }  /* add sensible default gap */

@media screen and (min-width: 768px) {
  .grid--1x2 { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (min-width: 1024px) {
  .grid--1x3 { grid-template-columns: repeat(3, 1fr); }
}

/* FEATURES */
.feature {
  gap: 3rem 2rem;
  margin: 6rem 0;               /* reduced from 12rem for better rhythm */
}
.featureCharts { gap: 4rem 2rem; margin: 5rem; }
.feature:first-of-type { margin-top: 4rem; }
.feature__heading { margin: 1rem 0; }
.feature__image { width: 100%; }

@media screen and (min-width: 768px) {
  .feature:nth-of-type(even) .feature__content { order: 2; }
}

/* SHOWCASE */
.block-showcase__image > img { width: 80%; }

@media screen and (min-width: 768px) {
  .block-showcase .grid { grid-template-columns: 50% 50%; }
  .block-showcase__image { justify-self: end; }
  .block-showcase__image > img { width: auto; max-width: 500px; }
}

/* Generic ULs (avoid breaking .list/.nav) */
ul { margin: 0 0 1.5rem; padding: 0 0 0 2rem; }
.list, .listP { list-style: none; padding-left: 0; }
.listP { margin: 10px 0; color: #252662; }
.listA { list-style: disc; list-style-position: inside; padding-left: 0; }

.list--inline .list__item { display: inline-block; margin-right: 2rem; }

.list--tick {
  list-style-image: url(../images/tick.svg);
  padding-left: 3rem;
  color: var(--color-headings);
}
.list--tick .list__item { padding-left: 0.5rem; margin-bottom: 1rem; }

.cert { font-size: 1.4rem; text-align: left; }
.pub { font-size: 1.6rem; text-align: left; }

@media screen and (min-width: 1024px) {
  .listP { list-style: disc; font-size: 1.75rem; margin: 2rem; }
  .list--tick .list__item { padding-left: 0; }
}

/* Product directories */
#product-directory, #product-directoryIcons { box-sizing: border-box; }
#product-directory ul, #product-directoryIcons ul { padding-left: 0; box-sizing: border-box; }

#product-directory li,
#product-directoryIcons li {
  list-style: none;
  box-sizing: border-box;
  display: inline-block;
  vertical-align: top;
  position: relative;
}

#product-directory li {
  width: 200px;
  margin: 10px;
}
#product-directory li img {
  max-width: 100%;
  height: 160px;
  margin: 0 auto;
}
#product-directory li span {
  display: block;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 700;
  padding: 5px;
  color: #252662;
  min-height: 34px;
}

#product-directoryIcons li {
  width: 120px;
  margin: 35px;
}
#product-directoryIcons li img {
  max-width: 100%;
  scale: 75%;
  height: 120px;
  margin: 0 auto;
}
#product-directoryIcons li span {
  display: block;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 400;
  padding: 5px;
  color: white;
  min-height: 34px;
}

/* FOOTER */
.footer {
  margin-top: 6rem;
  background: #252662;
  color: #ffffff;
}
.footer a { color: #ffffff; }          /* scoped white links */
.footer a:hover { color: #fff; opacity: .85; }

.footer__section {
  padding: 1rem;
  border-bottom: 1px solid #ffffff;
}
.footer__sectionG { padding: 1rem; border-bottom: 1px solid #287439; }
.footer__section .list { margin: 0; }

.footer__heading { text-transform: uppercase; font-weight: 600; }

.footer__brand { margin-top: 3rem; text-align: center; }
.footer__brand img { width: 100%; max-width: 230px; }

@media screen and (min-width: 768px) {
  .footer { font-size: 1.5rem; }
  .footer__sections { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
  .footer .collapsible__chevron { display: none; }
  .footer .collapsible__content { opacity: 1; max-height: 100%; }
  .footer__brand { order: -1; margin: 2rem 3rem 0 0; }
  .footer__section { border: 0; }
  .footer__heading { font-size: 1.6rem; }
  .footer__sectionG { border-bottom: 1px solid #ffffff; }
}

/* MEDIA OBJECT */
.media { display: flex; gap: 1rem; }
.media__title { margin-top: 0; }
.media__body { margin: 0 1rem 0 0; }
.media__image { margin-top: 1rem; }

/* Removed global "a { color: white; }" to avoid turning all links white */

/* RESPONSIVE UTILITIES */
@media screen and (max-width: 768px) {
  body { font-size: 1.6rem; }
  h2 { font-size: 2.16rem; }
  h3 { font-size: 1.6rem; }

  .block__video { margin: 2rem 0; }

  .iconsCert, .icons, .youtube-video { width: 90%; }
}

/* CHARTS */
.charts { width: 40%; }

/* COUNTER */
.wrapper {
  width: 80vw;
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

.containerCounter {
  width: 28vmin;
  height: 28vmin;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
  padding: 3em 0;
  position: relative;
  font-size: 20px;
  border-radius: 0.5em;
  text-align: center;
}
span.num {
  color: #252662;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 3.2em;
  line-height: 1.1;
}
span.text {
  color: #252662;
  font-size: 1.4rem;            /* clearer label size */
  padding: 0.7em 0;             /* fixed: was "pad" */
  font-weight: 500;
  line-height: 1.2;
  padding-top: 0;   
  top: 0;          /* avoid zero line-height */
}

@media screen and (max-width: 1024px) {
  .wrapper { width: 85vw; }
  .containerCounter {
    height: 26vmin;
    width: 21vmin;
    font-size: 12px;
  }
}
@media screen and (max-width: 768px) {
  .wrapper { width: 90vw; gap: 1.5rem; }
  .containerCounter {
    width: calc(50% - 1.5rem);
    height: 30vmin;
    font-size: 14px;
  }
}

/* Nice-to-have focus for clickable items in lists */
.nav__item > a:focus-visible,
.list a:focus-visible,
.footer a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Extra small screens (iPhone portrait, ≤480px) */
@media screen and (max-width: 480px) {
  /* NAVIGATION */
  .nav {
    flex-direction: column;       /* stack brand, toggler, links */
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .nav__brand {
    margin-bottom: 0.5rem;
    justify-content: center;
  }

  .nav__toggler {
    margin-bottom: 0.5rem;
  }

  .nav__list {
    width: 100%;
    text-align: center;
  }
  .nav__item {
    width: 100%;
    padding: 1rem 0;
  }

  /* HERO */
  .hero__image {
    width: 100%;
    display: block;
    margin: 0 auto;
  }
  .hero__content {
    text-align: center !important;
  }

  /* BLOCKS */
  .block__header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* COUNTERS */
  .wrapper {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .containerCounter {
    width: 80%;
    max-width: 280px;
    height: auto;
    text-align: center;
  }

  /* FEATURES */
  .feature {
    grid-template-columns: 1fr !important;
    text-align: center;
  }
  .feature__content {
    order: 0 !important;
  }
  .feature__image {
    margin: 0 auto;
  }

  /* FOOTER */
  .footer__sections {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer__section {
    width: 100%;
  }
  .footer__brand {
    margin: 2rem auto 0;
  }
}

/* Mobile: larger counters */
@media screen and (max-width: 768px) {
  .containerCounter {
    font-size: 14px;
  }
  .containerCounter .num {
    font-size: 3em;
  }
  .containerCounter .text {
    font-size: 1.4rem;
  }
}

/* Extra-small phones */
@media screen and (max-width: 480px) {
  .containerCounter {
    font-size: 16px;
  }
  .containerCounter .num {
    font-size: 2.8em;
  }
  .containerCounter .text {
    font-size: 1.5rem;
  }
}

/* ===================== TIMELINE ===================== */

.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;           /* extra top padding for first item */
}

/* vertical line */
.timeline::before {
  content: "";
  position: absolute;
  top: 2rem;                         /* line starts a bit lower */
  bottom: 2rem;                      /* and ends a bit higher */
  left: 50%;
  width: 2px;
  background: var(--color-primary, #252662);
  transform: translateX(-50%);
}

.timeline__item {
  position: relative;
  display: flex;
  margin-bottom: 3rem;
}

/* dot on the line */
.timeline__item::before {
  content: "";
  position: absolute;
  top: 50%;                          /* center of the item */
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary, #252662);
}

.timeline__content {
  max-width: 45%;
  font-size: 1.6rem;
  color: var(--color-primary, #252662);
}

/* left-side items */
.timeline__item--left {
  justify-content: flex-start;
}
.timeline__item--left .timeline__content {
  text-align: right;
}

/* right-side items */
.timeline__item--right {
  justify-content: flex-end;
}
.timeline__item--right .timeline__content {
  text-align: left;
}

.timeline__year {
  font-weight: 700;
  margin-bottom: 0.2rem;
}

/* ===================== RESPONSIVE ===================== */

@media screen and (max-width: 768px) {
  .timeline {
    padding: 3rem 3rem;
  }

  .timeline::before {
    left: 1.2rem;
    top: 1.5rem;
    bottom: 1.5rem;
    transform: none;
  }

  .timeline__item {
    justify-content: flex-start;
    margin-bottom: 2.5rem;
  }

  .timeline__item::before {
    left: 1.2rem;
    top: 50%;
  }

  .timeline__content {
    max-width: 100%;
    padding-left: 3rem;
    text-align: left !important;
    font-size: 1.5rem;
  }
}

.company-page > section.container {
  padding-left: 3rem;
  padding-right: 3rem;
}

.imgCentre{
    display: flex;
    align-items: center;
    margin: auto;
    width: 20%;
    scale: 50%;
}

.map-wrapper {
      width: 75vw;
      max-width: 1200px;
      margin: 20px auto;
    }
    #projects-map {
      height: 550px;
      width: 100%;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 4px 18px rgba(0,0,0,.12);
      background: #e5e7eb;
    }
.map-status {
      margin: 1rem 0;
      color: var(--color-body-darker);
      text-align: center;
    }
    @media (max-width: 768px) {
      .map-wrapper {
        width: 80vw;
        margin: 20px auto;
      }
    }

/* Slideshow */

.mySlides {display: none;}
img {vertical-align: middle;}

/* Slideshow container */
.slideshow-container {
  max-width: 100vw;
  position: relative;
  margin: auto;
}

/* Caption text */
/* .text {
  color: #f2f2f2;
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
/* .numbertext {
  color: #f2f2f2;
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
} */

/* The dots/bullets/indicators */
/* .dot {
  height: 15px;
  width: 15px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active {
  background-color: #717171;
} */

/* Fading animation */
/* .fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4} 
  to {opacity: 1}
} */

/* On smaller screens, decrease text size */
/* @media only screen and (max-width: 300px) {
  .text {font-size: 11px}
}

ul.myUL {
  display: inline-block;
  text-align: center;
  list-style-type: none;
}

h3.whit{
  color: white;
} */

@media screen and (max-width: 768px) {
  section.block.hero {
    max-height: none !important;
    overflow: visible !important;
    padding: 2.4rem 3rem 0 !important;
    height: auto !important;
  }

  section.block.hero + .block {
    padding-top: 2.4rem !important;
  }
}

@media screen and (min-width: 769px) {
  section.block.hero {
    padding: 2.4rem 0 0 !important;
  }

  section.block.hero + .block {
    padding-top: 2.4rem !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
