body {
  background-color: #white;   /* or #fff or whatever you prefer */
  font-family: sans-serif;
  color: black;
  width: 100%;
  padding: 0;
  text-align: center;
}

.page-bg {
  background-color: #fff;   /* or #fff or whatever you prefer */ 
  background-image: url("/img/grey_background.webp");
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: 1%;
  width: 100%;
  position: relative;
  z-index: 1;      /* above the hero, so content scrolls over it */
}

a:hover, a:visited, a:link, a:active
{
    text-decoration: none;
    color: #C7915E;
}

@keyframes fadeIn {
	  0% { opacity: 1; }
	  70% { opacity: 0.7; }		
}

.fade_image {
	animation: fadeIn 4s;
}

@media (max-width: 300px) {
  .HD1 {
	content: var(--img_url_300);
  width:100%; height:auto;
  aspect-ratio: auto 1920/433;    
  }
}
@media (min-width: 301px) and (max-width: 600px) {
  .HD1 {
	content: var(--img_url_600);
  width:100%; height:auto;
  aspect-ratio: auto 1920/433;    
  } 
}
@media (min-width: 601px) and (max-width: 768px) {
  .HD1 {
	content: var(--img_url_768);
  width:100%; height:auto;
  aspect-ratio: auto 1920/433;    
  }
}
@media (min-width: 769px) and (max-width: 960px) {
  .HD1 {
	content: var(--img_url_960);
  width:100%; height:auto;
  aspect-ratio: auto 1920/433;    
  }  
}			
@media (min-width: 961px) and (max-width: 1280px) {
  .HD1 {
	content: var(--img_url_1280);
  width:100%; height:auto;
  aspect-ratio: auto 1920/433;    
  } 
}
@media (min-width: 1281px) {
  .HD1 {
	content: var(--img_url_1920);
  width:100%; height:auto;
  aspect-ratio: auto 1920/433;
  }
}

/* SECTION BACKGROUND + LIGHT PARALLAX BEHIND ICON GRIDS */
/* Shared 80% width wrapper (keep this) */
.main-wrap {
  width: 80%;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.main-wrap .row {
  margin-left: 0;
  margin-right: 0;
}

/* ICON GRID + SKYLINE PARALLAX */
.icons-container {
  position: relative;

  /* width + centering come from .main-wrap */
  margin-bottom: 0px;
  padding: 24px 15px 40px;
  padding-top: 60px;

  /* skyline background */
  background-image: url("/img/home-section-bg-scroll.webp");
  background-repeat: no-repeat;

  /* make it bigger than the box so we can move it without exposing edges */
  background-size: 140% auto;   /* was: cover */
  background-position: center center;
  background-color: #ffffff;

  overflow: hidden;
}


/* rows inside icons container */
.icons-container .row {
  position: relative;
  z-index: 1;
  margin-left: 0;
  margin-right: 0;
}

/* vertical spacing between icon rows */
.icons-row + .icons-row {
  margin-top: 40px;
}

/* Single overlay to soften the skyline a bit */
.icons-container::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.9); /* tweak: 0.25 = stronger skyline, 0.5 = softer */
  pointer-events: none;
  z-index: 0;
}

.HD1 {
  display: block;
  width: 100%;
  height: auto;
}

/* Reserve space equal to the hero height in the normal flow */
.hero-spacer {
  height: 0px;  /* JS will set this dynamically */
}

/* Fixed hero layer that stays put */
.hero-fixed {
  position: fixed;
  top: 126px;          /* keep this; adjust if menu height changes */
  left: 0;
  right: 0;
  z-index: 0;          /* behind the rest of the page */
  pointer-events: none;
}


/* === MOBILE ICONS BACKGROUND – TALL IMAGE, STATIC OR GENTLE PARALLAX === */
@media (max-width: 767px) {
  .icons-container {
    /* keep the same layout */
    width: 80% auto;
  margin-bottom: 0px;
    padding: 24px 15px 40px;

    /* use your tall mobile image */
    background-image: url("/img/home-section-bg-mob.webp");
    background-repeat: no-repeat;
    background-size: cover;       /* always fills section vertically */
    background-position: center top;
  }
}

/* Mobile + tablet: use tall skyline + make it extra high */
@media (max-width: 991.98px) {
  .icons-container {
    background-image: url("/img/home-section-bg-mob.webp");
    background-repeat: no-repeat;
    background-size: auto 220%;   /* increase if you still see white at the bottom */
    background-position: center top;
    margin-bottom: 0;             /* you already fixed the old extra gap */
  }
}

/* === Global icon styling (home + subpages) === */
/* Base state */
.darken_image {
  display: block;
  border-radius: 16px;              /* rounded corners like home */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);  /* soft shadow at rest */
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    filter 0.35s ease;
}

/* Hover state */
.darken_image:hover {
  filter: brightness(1.2);         /* gentle brighten */
  transform: translateY(-6px) scale(1.02);  /* pop out slightly */
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); /* stronger shadow on hover */
}

/* Citizenship grid icons – fill column width, stay responsive */
.citizenship-icon {
  width: 80%;          /* don’t fill entire column */
  max-width: 280px;    /* cap similar to original 280px icons */
  height: auto;
  display: block;
  margin: 0 auto;      /* center inside the column */
}
