/*
Theme Name: Blocksy Child
Theme URI: https://yourwebsite.com/
Author: Your Name
Author URI: https://yourwebsite.com/
Description: A child theme for the Blocksy theme.
Template: blocksy
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blocksy-child
*/

/* #region ------------------------------ Global ------------------------------- */
:root{
  --brand-primary: #221F5E;
  --brand-gold:    #FFCB05;
  --ink-100:       #ffffff;
  --ink-500:       #92999f;
  --chip-bg:       #33383b;
  --footer-bg:     #666;
}

body {
  font-family: 'Lato', sans-serif !important;
}

html { font-size: 62.5%; }

/* -------------------- Headings Fonts -------------------- */
h1, h2, h3, h4, h5 {
  font-family: 'Lato', sans-serif !important;
}

/* -------------------- Headings -------------------- */
.hero-title, h1 {
  font-size: clamp(3rem, 6vw, 7rem);
  font-weight: 700;
  color: #ffffff;
}

.hero-info,
.location-title {
  color: #C5C5C5;
}

h1.hero-title,
p.hero-info,
h2.sub-heading,
h4.cards-title,
p.location-title {
  margin: 0;
}

.line-separator {
  width: 7rem;
  border-top: 0.3rem solid;
  color: #221F5E;
  opacity: 1;
  margin: 0 auto;
  padding-bottom: 3rem;
}

/* -------------------- Breadcrumb -------------------- */
.breadcrumb {
  font-size: 1.6rem;
  font-weight: 900;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
}

.breadcrumb a {
  color: #FFCB05;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumb a:hover {
  color: #ffffff;
}

.separator {
  font-size: 1.2rem;
  color: #ffffff;
  opacity: 0.7;
  padding: 0 1rem;
}

.unique-line-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6rem auto;
}

.unique-line-divider::before,
.unique-line-divider::after {
  content: "";
  flex: 1;
  height: 0.2rem;
  background-color: #e5e7eb;
}

/* -------------------- Section Headings -------------------- */
.sub-heading {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  margin-bottom: 0;
  color: #221F5E;
  text-align: center;
}

.main-heading {
  font-size: 3.2rem;
  font-weight: bold;
  color: #3a3a3a;
  text-align: center;
  margin-bottom: 1rem !important;
}

/* #endregion Global */

/* #region ------------------------------ Home Page ------------------------------- */
/* -------------------- Hero Section -------------------- */
.cg-hero-wrap{
  width:100%;
  display:flex;
  justify-content:center;
}

.cg-hero-title{
  position: relative;
  font-family: "AvantGardeCG", sans-serif;
  line-height: 0.7;
}

/* each main word row */
.cg-row{
  position: relative;
  display:block;
}

/* big yellow */
.cg-big{
  font-weight: 800;
  font-size: clamp(56px, 5vw, 140px);
  color: #ffcb05;
  display:block;
  text-shadow: 0 10px 40px rgba(0,0,0,0.35);
}

/* offset the second line to the right */
.cg-row.right{
  margin-left: 9.5vw; /* adjust this to move GREAT left/right */
}

/* small white words */
.cg-small{
  position:absolute;
  color:white;
  font-weight:800;
  font-size: clamp(18px, 2.4vw, 75px);
  white-space:nowrap;
  text-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

/* placement */
.cg-around{
  left: 0.1em;
  bottom: -1em;
}

.cg-infra{
  left: 24%;
  margin-left: 0.25em;
  bottom: -1em;
}

/* -------------------- Stat Label Section -------------------- */
.features-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: center;
  gap: 20px;
}

.feature-item {
  flex: 1 1 22%;
  padding: 10px;
}

.stat-number {
  color: white;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin: 2px 0 6px;
}

.stat-suffix {
  font-size: 0.6em;
  vertical-align: top;
  margin-left: 2px;
}

.stat-label {
  margin: 0;
  font-size: 15px;
  color: white;
  font-weight: 600;
}

/* -------------------- About Us Section -------------------- */
.cg-about-container {
  background-color: #F5F7FA ;
}

.about-subtitle {
  font-size: 18px;
  margin-bottom: 12px;
}
  
.cg-about {
  --max: 1120px;
  --gap: 64px;
  --text: #111;
  --muted: #6b7280;
  --border: #d1d5db;
  --bg: #ffffff;
}

.cg-about * { box-sizing: border-box; }

.cg-about__wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--gap);
  align-items: start;
}

.cg-about__media{
  position: relative;
  min-height: 420px;
}

.cg-about__img{
  display:block;
  width:100%;
  height:auto;
  object-fit: cover;
}

.cg-about__img--main{
  max-width: 520px;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cg-about__img--overlay{
  position: absolute;
  left: -21px;
  bottom: -22px;
  width: 62%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 14px 30px rgba(0,0,0,.18);
  border: 10px solid #fff;
  background: #fff;
}

.cg-about__title{
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  font-size: clamp(34px, 3.4vw, 56px);
  line-height: 1.05;
}

.cg-about__text{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  max-width: 44ch;
}

.cg-about__btn{
  display: inline-block;
  margin-top: 18px;
  padding: 12px 26px;
  border: 1px solid #111;
  color: #111;
  text-decoration: none;
  font-size: 16px;
  background: transparent;
  transition: transform .12s ease, background .12s ease;
}

.cg-about__btn:hover{
  background: rgba(17,17,17,.04);
  transform: translateY(-1px);
  color: #221f5e;
}

/* -------------------- Services Section -------------------- */
.cg-cards-section,
.cg-card-title {
  font-family: 'Lato', sans-serif;
}

.cg-cards-section * { box-sizing: border-box; }

.cg-cards-section .cg-cards-grid {
  display: grid;
  grid-gap: 1rem;
  padding: 1rem;
  max-width: 1024px;
  margin: 0 auto;
}

.cg-cards-section .cg-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 1rem;
  width: 100%;
  text-align: center;
  color: whitesmoke;
  background-color: #f5f5f5;
  box-shadow: 0 1px 1px rgba(0,0,0,0.1),
              0 2px 2px rgba(0,0,0,0.1),
              0 4px 4px rgba(0,0,0,0.1),
              0 8px 8px rgba(0,0,0,0.1),
              0 16px 16px rgba(0,0,0,0.1);
  text-decoration: none;
  border-radius: 2rem;
}

.cg-cards-section .cg-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center;
  transform: translateY(0);
  transition: transform 1050ms cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
}

.cg-cards-section .cg-card:after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 200%;
  pointer-events: none;
  background-image: linear-gradient(
    to bottom,
    hsla(0,0%,0%,0) 0%,
    hsla(0,0%,0%,0.009) 11.7%,
    hsla(0,0%,0%,0.034) 22.1%,
    hsla(0,0%,0%,0.072) 31.2%,
    hsla(0,0%,0%,0.123) 39.4%,
    hsla(0,0%,0%,0.182) 46.6%,
    hsla(0,0%,0%,0.249) 53.1%,
    hsla(0,0%,0%,0.320) 58.9%,
    hsla(0,0%,0%,0.394) 64.3%,
    hsla(0,0%,0%,0.468) 69.3%,
    hsla(0,0%,0%,0.540) 74.1%,
    hsla(0,0%,0%,0.607) 78.8%,
    hsla(0,0%,0%,0.668) 83.6%,
    hsla(0,0%,0%,0.721) 88.7%,
    hsla(0,0%,0%,0.762) 94.1%,
    hsla(0,0%,0%,0.790) 100%
  );
  transform: translateY(-50%);
  transition: transform 1400ms cubic-bezier(0.19, 1, 0.22, 1);
}

.cg-cards-section .cg-card-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 1rem;
  transition: transform 700ms cubic-bezier(0.19, 1, 0.22, 1);
  z-index: 1;
}
.cg-cards-section .cg-card-content > * + * { margin-top: 1rem; }

.cg-cards-section .cg-card-title {
  font-size: 2.2rem;
  font-weight: bold;
  line-height: 0.2;
  color: white;
}
.cg-cards-section .cg-card-copy {
  font-size: 1.125rem;
  font-style: italic;
  line-height: 1.35;
}

/* -------------------- Our Work Section -------------------- */
.custom-gallery {
  max-width: 700px;
  margin: auto;
}

.custom-gallery-main {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f3f3f3;
}

.custom-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.custom-gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  align-items: stretch;
}

.custom-gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.custom-gallery-thumbs::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.gallery-thumb {
  flex: 0 0 100px !important;
  width: 100px !important;
  min-width: 100px !important;
  max-width: 100px !important;
  height: 64px !important;
  min-height: 64px !important;
  max-height: 64px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: 0.25s ease;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: #221f5e;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.gallery-thumb:hover {
  opacity: 1;
}

@media (max-width: 600px) {
  .custom-gallery-main {
    height: 280px;
  }

  .gallery-thumb {
    flex: 0 0 70px !important;
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    height: 45px !important;
    min-height: 45px !important;
    max-height: 45px !important;
  }
}

/* -------------------- Careers Section -------------------- */
  .career-card {
    width: min(800px, 92vw);
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .career-description {
    color: #444;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
  }

  .career-button {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--brand-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    transition: 0.3s;
  }

  .career-button:hover {
    background: #1f305e;
    color: #fff;
  }

/* -------------------- Latest News Section -------------------- */
/* -------------------- Services Section -------------------- */
/* -------------------- Services Section -------------------- */
/* #endregion */

/* #region ------------------------------ Our Story Page ------------------------------- */
/* #endregion */

/* #region ------------------------------ Social Values Page ------------------------------- */
/* #endregion */

/* #region ------------------------------ Case Studies Page ------------------------------- */
/* --- Hero --- */
.case-study-wrapper {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
}

.case-study-image-box {
  position: relative;
  width: 100%;
  height: 589px;
  overflow: hidden;
  border-radius: 6px;
  
}

.case-study-image {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.case-study-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0000009E; /* black overlay */
  z-index: 1;
  pointer-events: none;
}

.case-study-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 575px;
  height: 307px;
  background: #0c1e7a75;
  color: white;
  padding: 30px;
  border-top-right-radius: 100px;
  box-sizing: border-box;
  z-index: 2; /* sits above the black overlay */
}

.case-study-box h3 {
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
  line-height: 1.3em;
  color: white;
}

.case-study-box h3 span {
  font-weight: normal;
}

.case-study-box h2 {
  margin-top: 10px;
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1.4em;
  color: white;
}

.case-study-box p {
  margin-top: 15px;
  font-size: 0.95em;
  line-height: 1.6em;
}

/* --- Background --- */
.custom-header-box {
  background-color: #b3d7f5;
  padding: 20px 10px;
  text-align: center;
}

.custom-header {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  font-size: 1.5em;
  font-weight: bold;
  color: #1a144b;
}

.social-share {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.social-share a {
  width: 40px;
  height: 40px;
  background-color: #333;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 4px;
  font-size: 18px;
}

.social-share .facebook { background: #3b5998; }
.social-share .twitter { background: #1DA1F2; }
.social-share .linkedin { background: #0077B5; }

.challenge-container {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1rem;
    font-family: Arial, sans-serif;
    background-color: #fff;
  }

  .challenge-text {
    flex: 1.5;
  }

  .challenge-text h1 {
    color: #2e2e72;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .challenge-text p {
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 14px;
  }

  .challenge-text strong {
    font-weight: 700;
  }

  .challenge-media {
    flex: 1;
  }

  .challenge-media video.main {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 1rem;
    object-fit: cover;
  }

  .challenge-thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .challenge-thumbnail-grid img {
    width: 100% !important;
    height: 100px !important;
    border-radius: 4px !important;
    cursor: pointer;
    transition: transform 0.2s;
	object-fit: cover;
	object-position: center;
  }

  .challenge-thumbnail-grid img:hover {
    transform: scale(1.05);
  }

  .challenge-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.challenge-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.challenge-lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.challenge-lightbox img.visible {
  opacity: 1;
}

  .challenge-lightbox .arrow,
  .challenge-lightbox .close {
    position: absolute;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    user-select: none;
  }

  .challenge-lightbox .arrow.left {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .challenge-lightbox .arrow.right {
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }

  .challenge-lightbox .close {
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
  }

/* -------------------- Case Studies -------------------- */
.case-studies-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem;
}

.case-study-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  height: 220px;
  width: 200px;
  cursor: pointer;
}

.case-study-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  width: 100%;
  position: relative;
}

.case-study-item .wp-post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.case-study-item:hover .wp-post-image {
  filter: grayscale(0%);
}

.case-study-item .image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  transition: opacity 0.5s ease-in-out, background 0.5s ease-in-out;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 1rem;
}

.case-study-item:hover .image-overlay {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
}

.case-study-item h4 {
  color: white;
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
  z-index: 2;
}

.case-study-item .image-overlay .arrow {
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-in-out 0.2s, transform 0.5s ease-in-out 0.2s;
}

.case-study-item:hover .image-overlay .arrow {
  opacity: 1;
  transform: translateY(0);
}


.blog-main-image {
        margin-bottom: 10px
    }
/* #endregion */

/* #region ------------------------------ Services ------------------------------- */
/* -------------------- About Section -------------------- */

.about-us-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.about-us-content {
  flex: 1 1 50%;
  min-width: 30rem;
}

.about-subtitle {
  font-size: 1.6rem;
  color: #221F5E;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  letter-spacing: 0.025em;
}

.about-subtitle::after {
  content: '';
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
  width: 4rem;
  height: 0.1rem;
  background: #aaa;
}

.about-title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #7a7a7a;
}

.about-description {
  font-size: 1.4rem;
  color: #2a2a2a;
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 65ch;
}

.about-contact {
  margin-top: 1rem;
  font-weight: 600;
}

.about-contact a {
  color: #000;
  text-decoration: none;
}

.about-us-image-wrapper {
  flex: 1 1 40%;
  min-width: 30rem;
  position: relative;
}

.about-us-image-border {
  position: relative;
  display: inline-block;
}

.about-us-image-border::before {
  content: '';
  position: absolute;
  top: -1.2rem;
  right: -1.2rem;
  width: 100%;
  height: 100%;
  border: 0.2rem solid #221f5e;
  z-index: -1;
}

.about-us-image {
  width: 100%;
  height: auto;
  display: block;
}

.experience-box {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: #fff;
  border: 0.2rem solid #000;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  box-shadow: 0 0.2rem 0.8rem rgba(0,0,0,0.2);
}

.experience-number {
  color: #221f5e;
  font-size: 2rem;
  font-weight: 800;
  margin-right: 0.5rem;
}

.experience-text {
  font-size: 0.9rem;
  line-height: 1.2;
  color: #333;
}

/* -------------------- Accreditation Section -------------------- */
.accred-wrap{
  padding: 4.8rem 0;
}

.accred-container{
  max-width: 120rem;
  margin: 0 auto;
  padding: 1.6rem;
  display: flex;
  gap: 3.2rem;
  align-items: flex-start;
  justify-content: center;
  flex-wrap: wrap;
}

.accred-left,
.accred-right{
  flex: 1 1 0;
  min-width: 30rem;
  margin: 0.5rem;
  padding: 1em;
}

.accred-right{
  margin-top: 2rem;
}

.accred-description{
  margin: 0;
  font-size: 1.4rem;
  line-height: 1.7;
  color: #2a2a2a;
  text-align: center;
}

/* ----------------------------
   Marquee
---------------------------- */
.cg-logo-marquee{
  --cg-gap: 2.8rem;
  --cg-speed: 26s;
  --cg-item-w: 12rem;
  --cg-item-h: 12rem;
  --cg-track-w: 1000px; /* JS overwrites */

  width: 100%;
  background: transparent;
}

.cg-logo-marquee__viewport{
  position: relative;
  overflow: hidden;
  width: 100%;
  border-radius: 1.4rem;
  padding: 1.6rem;
  box-sizing: border-box;
}

.cg-logo-marquee__inner[data-ready="0"]{ visibility: hidden; }

.cg-logo-marquee__inner{
  display: flex;
  width: max-content;
  flex-wrap: nowrap;
  will-change: transform;
  transform: translate3d(0,0,0);
  animation: cg-scroll-px var(--cg-speed) linear infinite;
  user-select: none;
}

.cg-logo-track{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: var(--cg-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  padding-right: var(--cg-gap); /* seam spacing */
}

.cg-logo-item{
  flex: 0 0 auto;
  width: var(--cg-item-w);
  height: var(--cg-item-h);
  display: grid;
  place-items: center;
  padding: 1rem;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 0.1rem 0.6rem rgba(0,0,0,.06);
  border: 0.1rem solid rgba(0,0,0,.06);
  box-sizing: border-box;
}

.cg-logo-item img{
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

@keyframes cg-scroll-px{
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(calc(-1 * var(--cg-track-w)),0,0); }
}

@media (prefers-reduced-motion: reduce){
  .cg-logo-marquee__inner{ animation: none; }
}

/* -------------------- Services Section -------------------- */
.custom-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-content: center;
}

.custom-services figure {
  min-width: 25rem;
  max-width: 35rem;
  position: relative;
  height: 20rem;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-color: #000;
  box-shadow: inset 0 0.2rem 0.3rem rgba(0,0,0,.2);
  transition: all .15s ease-in-out;
}

.service-infra { background-image: url("/wp-content/uploads/2025/09/cam.webp"); }
.service-civil { background-image: url("/wp-content/uploads/2025/09/Picture4.webp"); }
.service-fab  { background-image: url("/wp-content/uploads/2025/09/Reading-Train-Care-Depot-1.webp"); }

.custom-services figcaption {
  top: 0;
  left: 0;
  color: #FFF;
  font-size: 1.6rem;
  line-height: 2rem;
  font-weight: bold;
  background-color: rgba(0,0,0,.7);
  width: 55%;
  height: 100%;
  margin: 0 !important;
  padding: 2rem;
  text-align: left !important;
  transform: none;
  transition: all .15s ease-in-out;
}

.custom-services figcaption strong {
  display: block;
  color: #fff;
  transform: none;
}

.custom-services figcaption span {
  display: block;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.6rem;
  margin-top: 0.8rem;
  transform: none;
  text-transform: none;
  color: #ddd;
}

.custom-services figcaption strong:before {
  content: " ";
  border-top: 0.3rem solid #fff;
  width: 6rem;
  display: block;
  margin-bottom: 1.2rem;
  transition: all .15s ease-in-out;
}

.custom-services figure:hover figcaption {
  background-color: rgba(34,31,94,.9);
}

.custom-services figure:hover figcaption strong:before {
  width: 100%;
  border-color: #fff;
}

/* -------------------- Meet the Team Section -------------------- */
.responsive-container-block, .team-card-wrapper {
  justify-content: center;
}

.inner-container {
  max-width: 132rem;
  text-align: center;
  margin: 5rem auto;
}

.team-card-wrapper {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}

.team-card-container {
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  cursor: pointer;
}

.team-row {
  display: grid;
  gap: 2.8rem;
  justify-content: center;
  width: 100%;
}

.team-row.top-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px; /* optional, to keep it tidy */
}

.team-row.bottom-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 1200px; /* optional */
}

.team-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-img {
  width: 70% !important;
  height: 100% !important;
  border-radius: 50% !important;
  padding-bottom: 0.2rem;
}

.more-info {
  justify-content: center;
  display: flex;
  margin: 0;
  color: grey;
}

.card-name, .position {
  font-weight: 700;
}

.position {
  font-size: 1.5rem;
  color: #221F5E;
  margin-bottom: 0.2rem;
}

.card-name {
  font-size: 1.5rem;
  margin: 0;
}

.social-media-links img {
  width: 2.4rem;
  transition: filter 0.3s ease;
}

.social-media-links a:hover img {
  filter: brightness(0) saturate(100%) invert(45%) sepia(90%) saturate(0%) hue-rotate(300deg) brightness(105%) contrast(110%);
}

/* --- Card Bio --- */
.modal {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
  transition: opacity 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.5rem;
  max-width: 70rem;
  width: 90%;
  position: relative;
  transform: translateY(-3rem);
  opacity: 0;
  transition: all 0.4s ease;
}

.modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.modal-img {
  max-width: 15rem;
  border-radius: 0.8rem;
}

.modal-text { flex: 1; }

.modal-text h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #221F5E;
  font-family: 'Lato', sans-serif;
}

.modal-socials img {
  width: 2.4rem;
  margin-right: 1rem;
  transition: transform 0.2s;
}

.modal-socials img:hover { transform: scale(1.1); }

.close-button {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 1.8rem;
  cursor: pointer;
}

/* -------------------- Project Gallery Section -------------------- */
.custom-gallery .custom-grid {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 15rem;
}

.custom-column-xs-12 { grid-column: span 4; }
.custom-column-md-4  { grid-column: span 2; }

.custom-large {
  grid-row: span 2;
  grid-auto-rows: 40rem;
}

.custom-img-container {
  width: 100%;
  height: 100%;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.custom-img-container img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transform: scale(1);
  transition: all 0.3s ease-in-out;
  object-position: center !important;
}

.custom-img-container:hover img { 
  transform: scale(1.05); 
}

.custom-img-content-hover {
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  display: none;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.custom-img-container:hover .custom-img-content-hover { 
  display: block; 
}

.custom-title {
  color: #221F5E;
  font-size: 1.5rem;
  font-weight: 700;
}

.custom-location {
  font-size: 1rem;
  color: #787878;
}

/* —— Project modal / lightbox —— */
#projectModal {
  position: fixed; 
  inset: 0; 
  z-index: 9999;
  display: none; 
  align-items: center; 
  justify-content: center;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(2px);
}

#projectModal.open { 
  display: flex; 
}

.pm-stage {
  position: relative; 
  width: min(60vw, 1100px); 
  aspect-ratio: 16/9;
  border-radius: 22px; 
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.pm-photo {
  position: absolute; 
  inset: 0; 
  width: 100%; 
  height: 100% !important; 
  object-fit: cover;
  filter: brightness(.8);
}

.pm-card {
  position: absolute; 
  left: 50%; 
  top: 85%;
  transform: translate(-50%, -50%);
  width: min(80%, 520px);
  background: rgba(20, 20, 20, 0.89);
  color: #fff; 
  padding: 10px 5px 24px; 
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  text-align: center;
}
.pm-card h3 { 
  margin: 0 0 10px; 
  font-size: 2.8rem; 
  line-height: 1.2;
  color: white;
}

.pm-meta { 
  opacity: .85; 
  margin-bottom: 12px; 
}
.pm-body { 
  font-size: 15px; 
  line-height: 1.5; 
  opacity: .95; 
}

.pm-close {
  position: absolute; 
  top: 10px; 
  right: 14px;
  font-size: 28px; 
  line-height: 1; 
  color: #fff; 
  cursor: pointer;
  background: transparent; 
  border: none; 
  padding: 6px 10px;
}

.pm-close:focus { 
  outline: 2px solid #fff4; 
  outline-offset: 2px; 
}

/* -------------------- Testimonials Section -------------------- */
.cgts-wrapper {
  --cgts-ink: #2a2a2a;
  --cgts-muted: #7a7a7a;
  --cgts-accent: #221f5e;
  --cgts-ring: #e9e9e9;
  --cgts-card: #fff7f0;
}
.cgts-wrapper * { box-sizing: border-box; }

.cgts-frame {
  border: 0.1rem solid #f1dcc8;
  border-radius: 0.8rem;
}

.cgts-slider {
  position: relative;
  overflow: hidden;
  background: #fff;
  border-radius: 0.8rem;
  padding: 0;
}

.cgts-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(.2, .7, .25, 1);
  will-change: transform;
}

.cgts-slide { 
  min-width: 100%;
  padding: 2.4rem;
}

.cgts-row {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 2.8rem;
  align-items: center;
}

.cgts-avatar {
  width: 14rem;
  height: 14rem;
  border-radius: 50%;
  border: 0.6rem solid var(--cgts-ring);
  background: radial-gradient(circle at 50% 40%, #f5f5f5 0 40%, #eee 41% 100%);
  box-shadow: 0 0 0 0.1rem #eee inset;
}
.cgts-avatar.cgts-alt1 { 
  background: radial-gradient(circle at 50% 40%, #f2f7ff 0 40%, #e7eefc 41% 100%); 
}
.cgts-avatar.cgts-alt2 { 
  background: radial-gradient(circle at 50% 40%, #f6f6f6 0 40%, #eaeaea 41% 100%); 
}

.cgts-quote { 
  font-size: 1.55rem; 
  color: #333; 
  margin: 0; 
}

.cgts-sig {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.4rem;
  font-weight: 600;
}
.cgts-sig::before {
  content: "";
  width: 0.4rem;
  height: 1.6rem;
  background: var(--cgts-accent);
  border-radius: 0.2rem;
  display: inline-block;
}

.cgts-name { 
  color: var(--cgts-accent); 
}

.cgts-dots {
  position: absolute;
  right: 1.4rem;
  bottom: 1.2rem;
  display: flex;
  gap: 0.8rem;
  z-index: 2;
}
.cgts-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #d6d6d6;
  opacity: 0.85;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, opacity 0.2s;
}
.cgts-dot[aria-current="true"] {
  background: var(--cgts-accent);
  opacity: 1;
  transform: scale(1.15);
}

@media (prefers-reduced-motion: reduce) {
  .cgts-track, .cgts-dot { transition: none; }
}

/* -------------------- Contact Bottom Section -------------------- */
.enquiry-text-widget {
  position: relative;
  text-align: center;
  color: white;
  background-size: cover;
  padding: 5rem;
}

.enquiry-text-widget h1 {
  font-weight: 900;
  letter-spacing: 0.3rem;
  line-height: 6.5rem;
  color: white;
}

.enquiry-heading {
  font-size: 7rem;
  position: relative;
  font-weight: 900;
  -webkit-text-stroke: 0.1rem white;
  color: transparent;
  opacity: .8;
}

.enquiryt-text {
  font-size: 8rem;
  font-weight: 900;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.btn {
  display: flex;
  align-items: center;
  padding: 1rem 5rem;
  border-radius: 4.7rem;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: bold;
  transition: 0.3s;
}

.call-btn, .enquiry-btn {
  background-color: #221F5E;
  color: white;
}

.btn i { margin-right: 1rem; }

.btn:hover {
  background-color: white;
  color: #221F5E;
}
/* #endregion Services */

/* #region ------------------------------ Careers Page ------------------------------- */
/* #endregion */

/* #region ------------------------------ Sustainability Page ------------------------------- */
/* #endregion */

/* #region ------------------------------ Blog/News Page ------------------------------- */
/* #endregion */

/* #region ------------------------------ Contact Page ------------------------------- */
/* #endregion */

/* #region ------------------------------ Certificates Page ------------------------------- */
/* #endregion */

/* #region ------------------------------ Footer ------------------------------- */
.footer-distributed{
  color: var(--ink-100);
  box-sizing: border-box;
  width: 100%;
  text-align: left;
  padding: 5rem 5rem;
  margin: 0;
}

.footer-distributed .footer-left,
.footer-distributed .footer-center,
.footer-distributed .footer-right{
  display: inline-block;
  vertical-align: top;
}

.footer-distributed .footer-left{ width: 40%; }

.footer-distributed .footer-logo{
  display: inline-block;
  line-height: 0;
}

.footer-distributed .footer-logo img{
  height: clamp(3rem, 2.8vw, 4.6rem);
  width: auto;
  display: block;
}

.footer-distributed .footer-links{
  color: var(--ink-100);
  margin: 2rem 0 1.2rem;
  padding: 0;
}
.footer-distributed .footer-links a{
  display: inline-block;
  line-height: 1.8;
  font-weight: 400;
  text-decoration: none;
  color: var(--ink-100);
  transition: color .2s ease, opacity .2s ease;
}
.footer-distributed .footer-links a:hover{
  color: var(--brand-gold);
}
.footer-distributed .footer-links a:before{
  content: "|";
  font-weight: 300;
  font-size: 2rem;
  left: 0;
  color: var(--ink-100);
  display: inline-block;
  padding-right: .5rem;
}
.footer-distributed .footer-links .link-1:before{ content: none; }

.footer-distributed .footer-center{ width: 35%; }
.footer-distributed .footer-center i{
  background-color: var(--chip-bg);
  color: var(--ink-100);
  font-size: 1.7rem;
  width: 3.8rem; height: 3.8rem; line-height: 4.2rem;
  border-radius: 50%;
  text-align: center;
  margin: 1rem 1.5rem;
  vertical-align: middle;
  transition: background-color .2s ease, transform .2s ease;
}
.footer-distributed .footer-center i.fa-envelope{
  font-size: 1.7rem;
  line-height: 3.8rem;
}
.footer-distributed .footer-center p{
  display: inline-block;
  color: var(--ink-100);
  font-weight: 400;
  vertical-align: middle;
  margin: 0;
}
.footer-distributed .footer-center p span{
  display: block;
  font-weight: normal;
  font-size: 1.4rem;
  line-height: 2;
}
.footer-distributed .footer-center p a{
  color: var(--brand-gold);
  text-decoration: none;
  transition: opacity .2s ease, text-decoration-color .2s ease;
}
.footer-distributed .footer-center p a:hover{
  opacity: .95;
  text-decoration: underline;
  text-decoration-color: var(--brand-gold);
}

.footer-distributed .footer-right{ width: 20%; }
.footer-distributed .footer-company-about{
  line-height: 2rem;
  color: var(--ink-500);
  font-size: 1.3rem;
  font-weight: normal;
  margin: 0;
}
.footer-distributed .footer-company-about span{
  display: block;
  color: var(--ink-100);
  font-size: 1.4rem;
  font-weight: bold;
  margin-bottom: 2rem;
}

.footer-distributed .footer-icons{ 
  margin-top: 2rem;
  margin-left: -1rem;
}

.footer-distributed .footer-icons a{
  display: inline-block;
  width: 3.5rem; height: 3.5rem; line-height: 3.5rem;
  cursor: pointer;
  border-radius: .2rem;
  font-size: 2rem;
  color: var(--ink-100);
  text-align: center;
  margin-right: .3rem; margin-bottom: .5rem;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.footer-distributed .footer-icons a:hover{
  background-color: var(--brand-gold);
  color: var(--brand-primary);
  transform: translateY(-.1rem);
}
.footer-distributed a:focus-visible{
  outline: .2rem solid var(--brand-gold);
  outline-offset: .2rem;
}

.footer-distributed .footer-icons a,
.footer-distributed .footer-icons a i,
.footer-distributed .footer-icons a svg,
.footer-distributed .footer-icons a svg *{
  color: var(--ink-100) !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  filter: none !important;
}

.footer-distributed .footer-icons a:hover,
.footer-distributed .footer-icons a:focus,
.footer-distributed .footer-icons a:hover i,
.footer-distributed .footer-icons a:hover svg,
.footer-distributed .footer-icons a:hover svg *{
  background-color: var(--brand-primary) !important;
  color: var(--brand-gold) !important;
  fill: currentColor !important;
  stroke: currentColor !important;
}

.footer-distributed .footer-links a,
.footer-distributed .footer-links a:link,
.footer-distributed .footer-links a:visited {
  color: var(--ink-100) !important;
}

.footer-distributed .footer-links a:hover,
.footer-distributed .footer-links a:focus,
.footer-distributed .footer-links a:active,
.footer-distributed .footer-links .current-menu-item > a,
.footer-distributed .footer-links .current-menu-ancestor > a {
  color: var(--brand-gold) !important;
}

.footer-distributed .footer-center p a,
.footer-distributed .footer-center p a:link,
.footer-distributed .footer-center p a:visited {
  color: var(--brand-gold) !important;
  text-decoration: none;
}

.footer-distributed .footer-center p a:hover,
.footer-distributed .footer-center p a:focus {
  color: var(--brand-gold) !important;
  text-decoration: underline;
  text-decoration-color: var(--brand-gold);
}

@media (prefers-reduced-motion: reduce){
  .footer-distributed .footer-icons a,
  .footer-distributed .footer-center i,
  .footer-distributed .footer-links a{
    transition: none;
  }
}

/* #endregion */

/* #region ------------------------------ Media Query ------------------------------- */
@media (max-width: 76.8rem) { /* 768px */

  .about-us-section {
    flex-direction: column;
  }

  .experience-box {
    bottom: 0.5rem;
    left: 0.5rem;
  }

  .about-us-image-wrapper {
    display: none;
  }

  .about-subtitle { font-size: 1.1rem; }

  .about-title {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .about-description {
    font-size: 1.3rem;
    line-height: 1.45;
  }

  .about-contact {
    font-size: 1.2rem;
  }

}

@media (max-width: 99.1rem){
  .cg-logo-marquee{
    --cg-item-w: 10rem;
    --cg-item-h: 10rem;
    --cg-gap: 2.2rem;
  }

  .team-card-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)); /* CHANGED */
  }

}

@media (max-width: 57.5rem){
  .cg-logo-marquee{
    --cg-item-w: 8.4rem;
    --cg-item-h: 8.4rem;
    --cg-gap: 1.8rem;
    --cg-speed: 22s;
  }

  .team-card-wrapper {
    grid-template-columns: 1fr;     /* CHANGED */
  }
}

@media (max-width: 70rem) {
  .cgts-avatar { width: 9.6rem; height: 9.6rem; border-width: 0.4rem; }
  .cgts-row { grid-template-columns: 9.6rem 1fr; gap: 1.8rem; }
}

@media (max-width: 52rem) {
  .cgts-row { grid-template-columns: 1fr; gap: 1.4rem; }
}

@media (max-width: 64rem) {
  .pm-card { 
    width: 88%; 
    padding: 22px; 
  }
  .pm-card h3 { 
    font-size: 22px; 
  }
}

@media (hover: hover) and (min-width: 600px) {
  .cg-cards-section .cg-card:after { transform: translateY(0); }
  .cg-cards-section .cg-card-content { transform: translateY(calc(100% - 4.5rem)); }

  .cg-cards-section .cg-card-content > *:not(.cg-card-title) {
    opacity: 0;
    transform: translateY(1rem);
    transition: transform 700ms cubic-bezier(0.19, 1, 0.22, 1),
                opacity 700ms cubic-bezier(0.19, 1, 0.22, 1);
  }

  .cg-cards-section .cg-card:hover,
  .cg-cards-section .cg-card:focus-within { align-items: center; }

  .cg-cards-section .cg-card:hover .cg-card-img { transform: translateY(-4%); } /* was :before */
  .cg-cards-section .cg-card:hover:after { transform: translateY(-50%); }
  .cg-cards-section .cg-card:hover .cg-card-content { transform: translateY(0); }
  .cg-cards-section .cg-card:hover .cg-card-content > *:not(.cg-card-title) {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(700ms / 8);
  }
}

@media (max-width: 900px){
    .cg-about__wrap{
      grid-template-columns: 1fr;
      gap: 34px;
    }
    .cg-about__media{
      min-height: 0;
      max-width: 640px;
    }
    .cg-about__img--overlay{
      position: relative;
      bottom: auto;
      left: auto;
      width: 78%;
      margin-top: -28px;
    }
}

@media (max-width: 767px) {
  .features-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: center;
  }

  .feature-item { padding: 8px; }

  .stat-number { font-size: 14px; }

  .feature-item p {
    font-size: 9px;
    margin-top: 2px;
  }
}

/* Sizing / layout (unchanged) */
@media (min-width: 600px) {
  .cg-cards-section .cg-card { height: 160px; }
  .cg-cards-section .cg-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 800px) {
  .cg-cards-section .cg-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Optional: stable mobile height to reduce CLS */
@media (max-width: 599px) {
  .cg-cards-section .cg-card { aspect-ratio: 16 / 10; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cg-cards-section .cg-card-img,
  .cg-cards-section .cg-card:after,
  .cg-cards-section .cg-card-content,
  .cg-cards-section .cg-card-content > * {
    transition: none !important;
  }
}




/* #endregion */