/* ============================================================
   BRK International — Premium Corporate Design System
   Inspired by greenpackssg.com — Singapore Construction Pro
   ============================================================ */

/* ===== CSS Design Tokens ===== */
:root {
  /* Brand Palette */
  --primary: #062760;
  --primary-dark: #041a42;
  --primary-mid: #0d3280;
  --secondary: #337ab7;
  --accent: #67b0d1;

  /* Neutrals */
  --white: #ffffff;
  --off-white: #f8fafd;
  --light: #eef3fa;
  --border: #d5e3f0;
  --border-light: #e8f0f8;

  /* Text */
  --text-dark: #1a2332;
  --text-body: #4a5568;
  --text-muted: #7a8899;
  --text-white: rgba(255, 255, 255, 0.90);
  --text-white-dim: rgba(255, 255, 255, 0.65);

  /* Layout */
  --topbar-h: 44px;
  --header-h: 74px;

  /* Shadows */
  --shadow-xs: 0 1px 3px rgba(6, 39, 96, 0.06);
  --shadow-sm: 0 2px 10px rgba(6, 39, 96, 0.09);
  --shadow-md: 0 6px 24px rgba(6, 39, 96, 0.12);
  --shadow-lg: 0 14px 42px rgba(6, 39, 96, 0.16);
  --shadow-xl: 0 24px 60px rgba(6, 39, 96, 0.20);

  /* Radii */
  --r-sm: 5px;
  --r: 10px;
  --r-lg: 16px;

  /* Transitions */
  --t-fast: all 0.18s ease;
  --t: all 0.30s ease;
  --t-slow: all 0.50s ease;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.75;
  background: var(--white);
  overflow-x: hidden;
}

/* Disable AOS fade-in animations globally */
[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
  transition: none !important;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
}

a {
  text-decoration: none;
  color: var(--secondary);
  transition: var(--t-fast);
}

a:hover {
  color: var(--primary);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: 'Raleway', sans-serif;
  font-weight: 700 !important;
  color: var(--text-dark);
  line-height: 1.3;
}

ul {
  margin: 0;
  padding: 0;
}

/* ===== TOP BAR ===== */
#topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  background: var(--primary);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#topbar.topbar-hidden {
  top: calc(-1 * var(--topbar-h));
}

#topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Topbar left — contact info */
.topbar-contact {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-contact a,
.topbar-contact span {
  color: var(--text-white);
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  text-decoration: none;
  transition: var(--t-fast);
}

.topbar-contact a:hover {
  color: var(--accent);
}

.topbar-contact i {
  font-size: 15px;
  color: #fff;
  margin-right: 2px;
}

.topbar-contact .sep {
  display: none;
}

/* Hide the old separators */

/* Topbar right — social + CTA */
.topbar-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.topbar-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  font-size: 15px;
  transition: var(--t);
}

.topbar-social:hover {
  color: var(--secondary) !important;
}

.topbar-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.topbar-cta-btn {
  display: inline-flex;
  align-items: center;
  background: #2563eb;
  /* Bright blue */
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
  padding: 6px 18px;
  border-radius: 50px;
  /* Pill shape */
  border: none;
  transition: var(--t);
  gap: 6px;
}

.topbar-cta-btn:hover {
  background: #1d4ed8;
  color: #fff !important;
}

/* Topbar responsive */
@media (max-width: 991px) {
  .topbar-contact .d-none-sm {
    display: none !important;
  }
}

@media (max-width: 767px) {
  #topbar {
    display: none !important;
  }

  :root {
    --topbar-h: 0px !important;
  }

  .topbar-contact .hide-mobile,
  .topbar-contact .sep {
    display: none !important;
  }

  .topbar-contact {
    gap: 12px;
  }

  .topbar-cta-btn {
    display: none;
  }
}

/* ===== HEADER ===== */
@media (min-width: 992px) {
  #header .container, #topbar .container {
    max-width: 960px !important;
  }
}
@media (min-width: 1200px) {
  #header .container, #topbar .container {
    max-width: 1050px !important;
  }
}
@media (min-width: 1400px) {
  #header .container, #topbar .container {
    max-width: 1100px !important;
  }
}

#header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: top 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.35s ease, box-shadow 0.35s ease;
  padding: 0 !important;
}

#header.header-transparent {
  background: linear-gradient(180deg,
      rgba(4, 26, 66, 0.75) 0%,
      rgba(4, 26, 66, 0.25) 100%) !important;
}

#header.header-inner-page {
  background: rgba(4, 26, 66, 0.95) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

#header.header-scrolled {
  top: var(--topbar-h);
  background: rgba(4, 26, 66, 0.98) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
}

/* Topbar never hides — always visible */
#topbar.topbar-hidden {
  top: 0;
}

/* Override Bootstrap .fixed-top */
.fixed-top {
  position: fixed !important;
}

/* Header inner wrapper */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  height: var(--header-h);
}

/* Shim: the old position-relative div used as header wrapper */
#header>.position-relative,
#header>div {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 30px !important;
  height: var(--header-h) !important;
  position: static !important;
}

/* Fix the global .position-relative override from old custom.css */
.position-relative:not(#header > .position-relative):not(#header > div) {
  position: relative !important;
  height: auto !important;
}

.align-items-center {
  align-items: center !important;
}

/* Logo */
#header .logo {
  flex-shrink: 0;
}

#header .logo h1 {
  margin: 0;
}

#header .logo img {
  height: 50px !important;
  max-height: 50px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
  padding: 4px 0;
  margin: 0;
}

/* ===== NAVBAR ===== */
.navbar {
  padding: 0;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
}

.navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

.navbar li {
  position: relative;
}

.navbar a,
.navbar a:focus {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 15px;
  font-family: 'Open Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
  border-radius: var(--r-sm);
  transition: var(--t);
  position: relative;
}

.navbar a i,
.navbar a:focus i {
  font-size: 11px;
  margin-left: 4px;
  line-height: 0;
}

/* Nav link underline animation */
.navbar>ul>li>a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 15px;
  right: 15px;
  width: auto !important;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.navbar>ul>li>a:hover::after,
.navbar>ul>li>a.active::after,
.navbar>ul>li:hover>a::after {
  transform: scaleX(1);
}

.navbar a:hover,
.navbar .active,
.navbar .active:focus,
.navbar li:hover>a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* Dropdown */
.navbar .dropdown ul {
  display: block;
  position: absolute;
  left: 0;
  top: 100%;
  margin: 0;
  padding: 8px 0;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  background: #fff;
  border-top: 2px solid var(--secondary);
  border-radius: 0 0 var(--r) var(--r);
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.navbar .dropdown ul li {
  min-width: 220px;
}

.navbar .dropdown ul a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  padding: 10px 15px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dark) !important;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 0;
}

.navbar .dropdown ul a i {
  font-size: 16px;
  color: var(--secondary);
  width: 24px;
  text-align: center;
  margin-right: 10px;
  margin-left: 0;
  line-height: 1;
}

.navbar .dropdown ul a::after {
  display: none;
}

.navbar .dropdown ul a:hover,
.navbar .dropdown ul li:hover>a {
  color: var(--secondary) !important;
  background: var(--off-white);
  padding-left: 24px;
}

.navbar .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
}

/* Mobile nav toggle */
.mobile-nav-toggle {
  background: none !important;
  border: none !important;
  outline: none !important;
  color: #fff !important;
  font-size: 32px !important;
  cursor: pointer;
  display: none;
  line-height: 1 !important;
  padding: 8px !important;
  z-index: 9999;
  position: relative;
  transition: var(--t-fast);
}

.mobile-nav-toggle i {
  pointer-events: none;
  color: #fff !important;
  line-height: 1;
}

@media (max-width: 991px) {
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navbar ul {
    display: none;
  }

  /* Mobile fullscreen menu */
  .navbar-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 26, 66, 0.9);
    z-index: 999;
    transition: 0.3s;
  }

  .navbar-mobile .mobile-nav-toggle {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #fff !important;
  }

  .navbar-mobile>ul {
    display: block !important;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: #fff;
    overflow-y: auto;
    padding: 20px;
    z-index: 9999;
  }

  .navbar-mobile a,
  .navbar-mobile a:focus {
    padding: 15px 30px;
    font-size: 15px;
    font-weight: 600;
    color: #1c3664;
    text-transform: uppercase;
    border-radius: 0;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar-mobile a i,
  .navbar-mobile a:focus i {
    font-size: 18px;
    line-height: 0;
    margin-right: 10px;
  }

  .navbar-mobile a::after {
    display: none !important;
  }

  .navbar-mobile a:hover,
  .navbar-mobile .active,
  .navbar-mobile li:hover>a {
    color: #f7b500 !important;
    background: #f8f9fa;
  }

  .navbar-mobile .dropdown ul {
    position: static;
    display: none;
    padding: 10px 0;
    margin-bottom: 5px;
    opacity: 1;
    visibility: visible;
    background: #f4f6f8;
    box-shadow: none;
    border-top: none;
  }

  .navbar-mobile .dropdown ul a {
    padding: 12px 30px 12px 40px;
    text-transform: none;
    font-weight: 500;
    color: #1c3664;
    font-size: 14.5px;
    justify-content: flex-start;
  }

  .navbar-mobile .dropdown ul a i {
    color: #6c757d;
    font-size: 16px;
    margin-right: 12px;
  }

  .navbar-mobile .dropdown ul a:hover,
  .navbar-mobile .dropdown ul .active:hover,
  .navbar-mobile .dropdown ul li:hover>a {
    color: #f7b500 !important;
    background: #eaeff4;
  }

  .navbar-mobile .dropdown>.dropdown-active {
    display: block;
  }
}

/* ===== HERO / CAROUSEL ===== */
#hero {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 0 !important;
}

#hero .carousel-inner {
  height: 100vh;
  min-height: 520px;
  overflow: hidden !important;
  display: block !important;
}

/* Prevent white flash between carousel transitions */
#hero .carousel-inner .item.left,
#hero .carousel-inner .item.right,
#hero .carousel-inner .item.next,
#hero .carousel-inner .item.prev {
  background: var(--primary-dark);
}

#hero .carousel-inner .item {
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

#hero .carousel-inner .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 6s ease;
}

/* Ken-Burns subtle zoom on active slide */
#hero .carousel-inner .item.active img {
  transform: scale(1.04);
}

/* Gradient overlay — uniform for centered text */
#hero .carousel-inner .item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(4, 26, 66, 0.42);
  z-index: 1;
}

/* Caption — left-aligned, vertically centred */
#hero .carousel-caption {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  padding: 0;
  z-index: 10;
  text-align: left;
}

.caption-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

/* Hero tag line */
.hero-tag {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--r-sm);
  margin-bottom: 20px;
}

/* Hero heading */
#hero .carousel-caption h1,
#hero .carousel-caption .display-2 {
  font-family: 'Raleway', sans-serif !important;
  font-size: 42px !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  color: #fff !important;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.30);
  margin: 0 0 18px 0 !important;
  text-align: center !important;
}

/* Hero subtitle */
.hero-sub {
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  margin: 0 auto 30px !important;
  max-width: 640px;
  text-align: center;
}

/* Hero CTA button row */
.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Primary filled button */
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 13px 28px;
  border-radius: var(--r-sm);
  border: 2px solid var(--secondary);
  transition: var(--t);
}

.hero-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff !important;
  gap: 12px;
}

/* Outline ghost button */
.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 13px 28px;
  border-radius: var(--r-sm);
  border: 2px solid rgba(255, 255, 255, 0.65);
  transition: var(--t);
}

.hero-btn-outline:hover {
  background: #fff;
  border-color: #fff;
  color: var(--primary) !important;
}

.hero-btn i,
.hero-btn-outline i {
  font-size: 15px;
  transition: var(--t-fast);
}

/* Carousel controls — modern */
.carousel-control {
  background: none !important;
  background-image: none !important;
  width: 52px;
  height: 52px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10) !important;
  border: 2px solid rgba(255, 255, 255, 0.30) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0.7;
  transition: var(--t);
}

.carousel-control.left {
  left: 24px;
}

.carousel-control.right {
  right: 24px;
}

.carousel-control:hover {
  opacity: 1;
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

.carousel-control .carousel-icon {
  color: #fff;
  font-size: 22px;
  line-height: 0;
}

/* Carousel indicators — hidden */
.carousel-indicators {
  display: none !important;
}

/* Hero responsive */
@media (max-width: 992px) {

  #hero .carousel-caption h1,
  #hero .carousel-caption .display-2 {
    font-size: 30px !important;
  }

  .hero-sub {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  #hero .carousel-inner {
    height: 65vh;
    min-height: 420px;
  }

  #hero .carousel-caption h1,
  #hero .carousel-caption .display-2 {
    font-size: 22px !important;
    line-height: 1.3 !important;
    margin-bottom: 12px !important;
  }

  .hero-sub {
    font-size: 13px;
    margin-bottom: 20px !important;
  }

  .hero-tag {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .hero-btn,
  .hero-btn-outline {
    font-size: 13px;
    padding: 10px 18px;
  }

  .hero-btns {
    gap: 10px;
  }

  .carousel-control {
    display: none !important;
  }
}

@media (max-width: 480px) {
  #hero .carousel-inner {
    height: 55vh;
  }

  #hero .carousel-caption h1,
  #hero .carousel-caption .display-2 {
    font-size: 20px !important;
  }
}

/* ===== SECTION COMMONS ===== */
section {
  overflow: hidden;
}

.section-inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-tag {
  display: inline-block;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 10px;
  position: relative;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--secondary);
  vertical-align: middle;
  margin-right: 10px;
  border-radius: 1px;
}

.section-title {
  text-align: center;
  margin-bottom: 52px;
  margin-top: 0;
}

.section-title h2 {
  font-family: 'Raleway', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  position: relative;
  display: inline-block;
  margin-bottom: 0;
  padding-bottom: 18px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 50px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  top: auto;
  padding: 0;
  transform: none;
}

.section-title a h2 {
  color: var(--primary);
}

.section-title a:hover h2 {
  color: var(--secondary);
}

.section-bg {
  background: var(--off-white);
}

/* ===== ABOUT / BLOG SECTION ===== */
#blog.blog {
  padding: 30px 0 30px !important;
  background: var(--white);
}

#blog .container-fluid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

#blog .row {
  margin: 0 !important;
}

#blog .col-lg-7.entries {
  padding: 10px 50px 10px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* About – section tag */
.about-tag {
  display: inline-block;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  position: relative;
  padding-left: 40px;
}

.about-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
}

/* About – heading */
#blog h2,
#blog .entries h2 {
  font-family: 'Raleway', sans-serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  color: var(--primary) !important;
  line-height: 1.3 !important;
  margin: 0 0 22px 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* About – body text */
#blog p {
  color: var(--text-body);
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 14px;
  text-align: left !important;
}

/* About – accent divider */
.about-divider {
  display: block;
  width: 50px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  margin: 0 0 22px 0;
}

/* About – feature bullets */
.about-features {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-body);
  font-size: 14px;
  font-weight: 500;
}

.about-features li i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* About – image */
#blog .col-lg-5 {
  display: flex;
  align-items: stretch;
}

#blog .about-img,
#blog .about-img img {
  height: 100%;
  aspect-ratio: auto;
}

.about-img {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  transition: var(--t);
}

.about-img img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.about-img:hover img {
  transform: scale(1.03);
}

/* About image accent shape */
.about-img::before {
  content: '';
  position: absolute;
  top: -16px;
  right: -16px;
  width: 80px;
  height: 80px;
  background: var(--secondary);
  border-radius: var(--r);
  opacity: 0.12;
  z-index: -1;
}

/* Read More Button */
.readmore {
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  background: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  border-radius: var(--r-sm) !important;
  overflow: hidden;
  margin-top: 8px !important;
  transition: var(--t) !important;
}

.readmore a {
  color: #fff !important;
  padding: 11px 28px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: block !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
}

.readmore:hover {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

.readmore a:hover {
  color: #fff !important;
}

.readmore a .bx {
  display: none;
}

/* About responsive */
@media (max-width: 1024px) {
  #blog .col-lg-7.entries {
    padding: 10px 20px 10px 0;
  }
}

@media (max-width: 768px) {
  #blog.blog {
    padding: 60px 0 !important;
  }

  #blog .col-lg-7.entries {
    padding: 0;
    order: 2;
  }

  #blog .col-lg-5 {
    order: 1;
    margin-bottom: 30px;
  }

  #blog h2,
  #blog .entries h2 {
    font-size: 26px !important;
  }
}

/* ===== SERVICES ===== */
#services.services {
  padding: 0 0 60px !important;
  background: var(--off-white);
}

#services .container-fluid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.services .row {
  gap: 0;
}

.services .col-md-6.col-lg-4 {
  padding: 12px;
}

.services .icon-box {
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  z-index: 1;
  height: 100%;
  transition: var(--t);
  display: flex;
  flex-direction: column;
}

/* Accent border + lift on hover (no background fill) */
.services .icon-box::before {
  display: none;
}

.services .icon-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--secondary);
  border-left: 4px solid var(--secondary);
}

/* Service icon */
.services .icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r);
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: var(--t);
  flex-shrink: 0;
}

.services .icon i {
  font-size: 26px;
  color: var(--secondary);
  line-height: 1;
  transition: var(--t);
}

/* Icon lifts to secondary colour on hover */
.services .icon-box:hover .icon {
  background: var(--secondary);
}

.services .icon-box:hover .icon i {
  color: #fff;
}

/* Service title */
.services .title {
  font-family: 'Raleway', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
  transition: var(--t);
}

.services .icon-box:hover .title {
  color: var(--primary);
}

/* Service description */
.services .description {
  font-size: 14px;
  line-height: 1.82;
  color: var(--text-body);
  margin-bottom: 0;
  flex-grow: 1;
  transition: var(--t);
}

.services .icon-box:hover .description {
  color: var(--text-body);
}

/* Service "Learn More" link */
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  color: var(--secondary) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--t-fast);
}

.service-link i {
  font-size: 14px;
  transition: var(--t-fast);
}

.services .icon-box:hover .service-link {
  color: var(--secondary) !important;
  gap: 10px;
}

/* Ensure icon box and children inherit colour correctly inside links */
.services .icon-box a {
  color: inherit !important;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.services .icon-box a .icon {
  flex-shrink: 0;
}

.services .icon-box a .title,
.services .icon-box a .description {
  color: inherit;
}

/* ===== CTA SECTION ===== */
#cta.cta {
  padding: 90px 0 !important;
  background:
    linear-gradient(135deg, rgba(4, 26, 66, 0.92) 0%, rgba(51, 122, 183, 0.85) 100%),
    url('../img/cta-bg.jpeg') center center / cover no-repeat fixed;
  position: relative;
  overflow: hidden;
}

#cta.cta::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  pointer-events: none;
}

.cta h3 {
  color: #fff;
  font-size: 40px;
  font-weight: 800 !important;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.cta h5 {
  color: rgba(255, 255, 255, 0.80) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  letter-spacing: 3.5px;
  text-transform: uppercase;
}

.cta .hover-effect-B,
.cta .hover-effect-R,
.cta .hover-effect-K {
  display: inline-block;
  cursor: default;
  transition: transform 0.3s ease, color 0.3s ease;
}

.cta .hover-effect-B:hover {
  transform: scale(1.15);
  color: #90ee90;
}

.cta .hover-effect-R:hover {
  transform: scale(1.15);
  color: #ffe050;
}

.cta .hover-effect-K:hover {
  transform: scale(1.15);
  color: #90d0ff;
}

/* ===== PORTFOLIO / PROJECTS ===== */
#portfolio.portfolio {
  padding: 20px 0 36px !important;
  background: var(--white);
}

#portfolio .container-fluid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

#ourprojects {
  margin-bottom: 0 !important;
}

.portfolio-container {
  margin-top: 0;
  margin-left: -12px;
  margin-right: -12px;
}

.portfolio .portfolio-item {
  margin-bottom: 0;
  padding: 12px;
}

/* Project card wrapper */
.portfolio .portfolio-wrap {
  margin-top: 0 !important;
  border-radius: var(--r) var(--r) 0 0;
  overflow: hidden;
  position: relative;
  background: var(--primary-dark);
}

.portfolio .portfolio-wrap img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

/* Hover overlay */
.portfolio .portfolio-wrap::after {
  content: 'View Project →';
  position: absolute;
  inset: 0;
  background: rgba(4, 26, 66, 0.65);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--t);
}

.portfolio-item a:hover .portfolio-wrap::after {
  opacity: 1;
}

.portfolio-item a:hover .portfolio-wrap img {
  transform: scale(1.07);
  opacity: 0.75;
}

/* Caption bar */
/* Make portfolio link a flex container stretching to full height */
.portfolio-item a {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

.portfolio-item .bg-light {
  background: var(--white) !important;
  border: 1px solid var(--border-light) !important;
  border-top: none !important;
  border-radius: 0 0 var(--r) var(--r) !important;
  padding: 14px 18px !important;
  display: flex !important;
  flex-grow: 1;
  align-items: center;
  transition: var(--t-fast);
}

.portfolio-item .bg-light h3 {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
  margin: 0 !important;
  line-height: 1.5;
  text-align: left !important;
}

.portfolio-item a:hover .bg-light {
  background: var(--off-white) !important;
  border-color: var(--secondary) !important;
}

.portfolio-item a:hover .bg-light h3 {
  color: var(--secondary) !important;
}

/* ===== CLIENTS CAROUSEL ===== */
#clients.clients-section {
  background: var(--off-white);
  padding: 60px 0 70px !important;
  overflow: visible;
}

#clients .container-fluid {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.client-carousel-outer {
  max-width: 1220px;
  margin: 0 auto;
  padding: 10px 64px 0;
  position: relative;
}

.client-swiper {
  overflow: hidden !important;
  padding: 10px 2px 14px !important;
}

/* Each slide card */
.client-logo-item {
  height: 88px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.client-logo-item:hover {
  background: #ffffff !important;
  border-color: var(--secondary);
  box-shadow: 0 6px 22px rgba(51, 122, 183, 0.18);
  transform: translateY(-4px) scale(1.04);
  z-index: 5;
}

.client-logo-item img {
  max-width: 110px;
  max-height: 52px;
  object-fit: contain;
  background: #ffffff;
  filter: grayscale(45%) opacity(0.70);
  transition: filter 0.3s ease, transform 0.3s ease;
  display: block;
}

.client-logo-item:hover img {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.08);
}

/* Zoom icon hint */
.client-zoom-icon {
  position: absolute;
  bottom: 5px;
  right: 7px;
  font-size: 11px;
  color: var(--secondary);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.client-logo-item:hover .client-zoom-icon {
  opacity: 1;
}

/* Navigation arrows */
.client-swiper .swiper-button-prev,
.client-swiper .swiper-button-next {
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  background: var(--secondary) !important;
  color: #fff !important;
  top: calc(50% - 10px) !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: background 0.25s ease, transform 0.25s ease;
}

.client-swiper .swiper-button-prev {
  left: -52px !important;
}

.client-swiper .swiper-button-next {
  right: -52px !important;
}

.client-swiper .swiper-button-prev:hover,
.client-swiper .swiper-button-next:hover {
  background: var(--primary) !important;
  transform: scale(1.08);
}

.client-swiper .swiper-button-prev::after,
.client-swiper .swiper-button-next::after {
  font-size: 15px !important;
  font-weight: 800 !important;
}

@media (max-width: 768px) {
  .client-carousel-outer {
    padding: 10px 48px 0;
  }

  .client-swiper .swiper-button-prev {
    left: -36px !important;
  }

  .client-swiper .swiper-button-next {
    right: -36px !important;
  }
}

/* Client logo preview modal — white background popup on click */
.client-preview-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.client-preview-modal.is-open {
  display: flex;
}

.client-preview-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  cursor: pointer;
}

.client-preview-box {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 14px;
  padding: 52px 64px 40px;
  min-width: 260px;
  max-width: min(460px, 90vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.40);
  animation: clientModalIn 0.22s ease;
}

@keyframes clientModalIn {
  from {
    opacity: 0;
    transform: scale(0.86);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.client-preview-box img {
  max-width: 300px;
  max-height: 180px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: #ffffff;
}

.client-preview-name {
  margin: 18px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.client-preview-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  font-size: 18px;
  color: #aaa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  padding: 0;
}

.client-preview-close:hover {
  background: #f0f2f5;
  color: var(--primary);
}

/* ===== FOOTER ===== */
.footer-section {
  background: #0d1628 !important;
  padding: 0 !important;
}

.footer-body {
  padding: 45px 0 1px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.footer-body .container {
  width: 100% !important;
  /* override BS3 fixed 1170px width */
  max-width: 1220px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

/* Align footer row gutter to match header's effective 20px left edge */
.footer-body .row {
  margin-left: -12px !important;
  margin-right: -12px !important;
}

/* Brand column */
.footer-brand {
  padding-right: 16px;
}

.footer-logo {
  height: 40px !important;
  max-height: 42px !important;
  width: auto !important;
  object-fit: contain;
  display: block;
  margin-bottom: 18px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 13.5px;
  line-height: 1.85;
  margin-bottom: 22px !important;
}

/* Social icons */
.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 16px;
  transition: var(--t);
}

.footer-social a:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff !important;
  transform: translateY(-2px);
}

/* Column heading */
.footer-col-title {
  color: #fff !important;
  font-family: 'Raleway', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 20px !important;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
}

/* Links list */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links li a {
  color: rgba(255, 255, 255, 0.52) !important;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: var(--t);
  line-height: 1.5;
}

.footer-links li a::before {
  content: '›';
  color: var(--secondary);
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.footer-links li a:hover {
  color: #fff !important;
  padding-left: 4px;
}

/* Contact info */
.footer-contact-info {
  margin-bottom: 22px;
}

.footer-contact-info p {
  color: rgba(255, 255, 255, 0.52) !important;
  font-size: 13.5px;
  line-height: 1.75;
  margin-bottom: 10px !important;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.footer-contact-info p i {
  color: var(--secondary);
  font-size: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Request a Quote button */
.footer-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--secondary);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  border: 2px solid var(--secondary);
  transition: var(--t);
}

.footer-quote-btn:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
}

/* Copyright bar */
.footer-copyright {
  background: #070c1a;
  padding: 10px 0;
}

.footer-copyright .container {
  width: 100% !important;
  max-width: 1220px !important;
  margin: 0 auto !important;
  padding: 0 20px !important;
}

.footer-copyright .row {
  margin-left: -12px !important;
  margin-right: -12px !important;
}

.footer-copyright p {
  color: rgba(255, 255, 255, 0.40);
  font-size: 13px;
  margin: 0 !important;
}

.footer-copyright a {
  color: var(--secondary) !important;
}

.footer-copyright a:hover {
  color: #fff !important;
}

/* Prevent back-to-top button from overlapping copyright text */
.footer-copyright .col-md-6.text-md-end {
  padding-right: 58px !important;
}

/* Legacy compat — hide old footer widget classes if still referenced */
.copyright-text,
.design-text {
  margin: 0 !important;
}

.copyright-text p,
.design-text p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.6;
}

.copyright-text p a,
.design-text p a {
  color: var(--secondary);
  transition: var(--t-fast);
}

.copyright-text p a:hover,
.design-text p a:hover {
  color: var(--accent);
}

/* Footer responsive */
@media (max-width: 768px) {
  .footer-cta {
    padding: 36px 0 !important;
  }

  .footer-content {
    padding: 36px 0 !important;
  }

  .footer-cta .col-xl-3 {
    margin-bottom: 24px;
  }

  .footer-content .col-xl-3 {
    margin-bottom: 28px;
  }

  .copyright-text,
  .design-text {
    text-align: center !important;
  }

  .col-lg-3,
  .col-lg-4,
  .col-lg-2 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .footer-logo {
    height: 35px !important;
    max-height: 35px !important;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-body {
    padding: 30px 0 1px;
  }

  .footer-copyright {
    padding: 12px 0;
    text-align: center;
  }

  .footer-copyright .col-md-6.text-md-end {
    padding-right: 15px !important;
    margin-top: 8px;
  }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    background: var(--secondary) !important;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    bottom: 97px !important;
    right: 42px !important;
    box-shadow: 0 4px 16px rgba(51, 122, 183, 0.45);
    transition: var(--t);
}

.back-to-top i {
  font-size: 30px;
  color: #fff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--primary) !important;
  transform: translateY(-3px);
}

/* ===== PAGE BANNER (inner pages) ===== */
.page-banner,
.map-sectionabout,
.map-sectioncontact,
.map-section {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--topbar-h) + var(--header-h));
  height: 55vh;
  min-height: 380px;
}

.page-banner img,
.map-sectionabout img,
.map-sectioncontact img,
.map-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

@media (max-width: 768px) {

  .page-banner,
  .map-sectionabout,
  .map-sectioncontact,
  .map-section {
    height: 45vh;
    min-height: 300px;
  }
}

@media (max-width: 480px) {

  .page-banner,
  .map-sectionabout,
  .map-sectioncontact,
  .map-section {
    height: 35vh;
    min-height: 240px;
  }
}

/* ===== SERVICE PAGE CONTENT ===== */
.service-content-img {
  height: 25rem;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
}

@media (max-width: 768px) {
  .service-content-img {
    height: 18rem;
  }
}

/* ===== CONTACT PAGE ===== */
.contact {
  padding-bottom: 60px;
}

.contact .info-box {
  border-radius: var(--r);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: var(--t);
  background: var(--white);
}

.contact .info-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.contact .info-box i {
  color: var(--secondary);
}

.contact .php-email-form {
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  background: var(--white);
}

.contact .php-email-form button[type=submit] {
  background: var(--primary);
  border-radius: var(--r-sm);
  padding: 11px 30px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 13px;
  transition: var(--t);
}

.contact .php-email-form button[type=submit]:hover {
  background: var(--secondary);
}

/* ===== ABOUT PAGE — Vision/Mission/Goals ===== */
.d-flex.justify-content-center.cmb-3 {
  gap: 10px;
  flex-wrap: wrap;
}

.d-flex.justify-content-center.cmb-3 .btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  border-radius: var(--r-sm) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  height: auto !important;
  width: auto !important;
  min-width: 140px;
  padding: 10px 24px !important;
  letter-spacing: 0.4px !important;
  text-transform: uppercase !important;
  transition: var(--t) !important;
}

.d-flex.justify-content-center.cmb-3 .btn-primary:hover {
  background: var(--secondary) !important;
  border-color: var(--secondary) !important;
}

#content-container {
  margin-top: 28px;
}

/* Override footer-content padding */
.footer-content {
  padding-bottom: 20px !important;
}

#content-container .card-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--primary);
  margin-bottom: 16px;
}

#content-container ul {
  padding-left: 20px;
}

#content-container ul li {
  line-height: 1.85 !important;
  color: var(--text-body);
  margin-bottom: 8px;
  font-size: 14px;
}

#content-container .content-image {
  border-radius: var(--r);
  box-shadow: var(--shadow-md);
  width: 100%;
  object-fit: cover;
}

/* Section headings inside blog/content area */
#blog h6 {
  font-size: 20px;
  font-weight: 700 !important;
  color: var(--primary) !important;
  margin-top: 10px !important;
  margin-bottom: 12px !important;
  border-left: 3px solid var(--secondary);
  padding-left: 10px;
}

/* ===== CARD (project detail pages) ===== */
.card {
  border: 1px solid var(--border-light);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  transition: var(--t);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* ===== PROJECTS PAGE ===== */

/* Page intro */
.projects-intro {
  padding: 40px 0 0px;
  text-align: left;
}

.projects-intro h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.projects-intro p {
  font-size: 14px;
  color: #666;
  max-width: 900px;
  line-height: 1.8;
}

/* Category section */
.category-section {
  padding: 10px 0 10px;
}

.category-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  border-left: 3px solid var(--secondary);
  padding-left: 12px;
  margin-bottom: 20px;
}

/* Project card */
.project-card {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 24px;
  height: calc(100% - 24px);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Card image */
.project-card-img {
  position: relative;
  overflow: hidden;
  height: 210px;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-card-img img {
  transform: scale(1.06);
}

/* No-image placeholder */
.project-card-no-img {
  height: 210px;
  background: linear-gradient(135deg, var(--primary) 0%, #0a3a8a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-no-img i {
  font-size: 64px;
  color: rgba(255, 255, 255, 0.25);
}

/* Hover overlay */
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 26, 66, 0.50);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-overlay span {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid rgba(255, 255, 255, 0.8);
  padding: 7px 20px;
  border-radius: 30px;
}

/* Card body */
.project-card-body {
  padding: 16px 18px 18px;
}

.project-contract-id {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--secondary);
  background: rgba(30, 132, 73, 0.09);
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.project-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 768px) {

  .project-card-img,
  .project-card-no-img {
    height: 180px;
  }

  .projects-intro h2 {
    font-size: 24px;
  }
}

.contract-item {
  border-radius: var(--r);
  overflow: hidden;
  transition: var(--t);
}

.contract-item img {
  transition: transform 0.45s ease;
}

.contract-item:hover img {
  transform: scale(1.05);
}

.contract-item .overlay {
  border-radius: 0 0 var(--r) var(--r);
  font-size: 13px;
}

/* Project category / filter buttons */
.Projects ul li a,
.Contracts ul li a {
  color: var(--text-body);
  font-size: 14px;
  transition: var(--t-fast);
  padding: 10px 4px;
  border-bottom: 2px solid transparent;
  font-weight: 500;
}

.Projects ul li a:hover,
.Contracts ul li a:hover,
.Projects ul li a.active,
.Contracts ul li a.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

/* ===== ROW MARGIN GLOBAL RESET ===== */
.row {
  margin-right: 0 !important;
  margin-left: 0 !important;
}

/* ===== SECTION RESPONSIVE ===== */
@media (max-width: 768px) {
  section {
    padding: 40px 0 !important;
  }

  .section-title {
    margin-bottom: 30px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .cta h3 {
    font-size: 24px;
  }

  .readmore {
    width: auto !important;
  }
}

@media (max-width: 480px) {
  section {
    padding: 30px 0 !important;
  }

  .section-title h2 {
    font-size: 22px;
  }
}

/* ===== PROJECT DETAIL PAGES ===== */
.project-detail-hero-wrap {
  margin-top: 90px;
  width: 100%;
  overflow: hidden;
  height: 420px;
}

.project-detail-hero-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-detail-section {
  padding: 48px 0 60px;
}

.project-detail-header {
  padding-bottom: 28px;
  border-bottom: 1px solid #e4e9ef;
  margin-bottom: 36px;
}

.project-detail-breadcrumb {
  font-size: 13px;
  color: #7a8ba0;
  margin-bottom: 18px;
}

.project-detail-breadcrumb a {
  color: #7a8ba0;
  text-decoration: none;
  transition: color 0.2s;
}

.project-detail-breadcrumb a:hover {
  color: var(--primary);
}

.project-detail-breadcrumb i {
  margin-right: 5px;
}

.project-detail-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 3px;
  margin-bottom: 14px;
}

.project-detail-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--heading);
  margin: 0 0 10px;
  line-height: 1.35;
}

.project-detail-category {
  font-size: 14px;
  color: var(--secondary);
  font-weight: 600;
  margin: 0;
}

.project-detail-category i {
  margin-right: 6px;
}

/* Gallery grid */
.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.project-gallery-item {
  position: relative;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  display: block;
}

.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-gallery-item:hover img {
  transform: scale(1.07);
}

.project-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 39, 96, 0.52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-gallery-item:hover .project-gallery-overlay {
  opacity: 1;
}

.project-gallery-overlay i {
  font-size: 30px;
  color: #fff;
}

/* Hide title text below lightbox image */
.gslide-description {
  display: none !important;
}

/* Image counter: "1 of 8" */
.glightbox-counter {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  background: rgba(0, 0, 0, 0.55);
  padding: 5px 18px;
  border-radius: 20px;
  z-index: 99999;
  pointer-events: none;
  white-space: nowrap;
}

@media (max-width: 992px) {
  .project-detail-hero-wrap {
    height: 300px;
  }

  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .project-detail-title {
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  .project-detail-hero-wrap {
    height: 210px;
    margin-top: 70px;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .project-detail-title {
    font-size: 18px;
  }
}

/* ===== VIEW ALL PROJECTS BUTTON (homepage) ===== */
.projects-view-all-btn {
  display: inline-block;
  padding: 12px 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.2s ease;
}

.projects-view-all-btn i {
  margin-left: 6px;
}

.projects-view-all-btn:hover {
  background: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ===== BACK-NAV (project detail pages) ===== */
.backnav {
  margin-top: 20px;
  font-size: 28px;
}

@media (max-width: 770px) {
  .backnav {
    margin-top: 8px;
    font-size: 22px;
    margin-left: 0 !important;
  }
}

/* Custom Tab Buttons Hover */
.tab-btn:hover {
  background: var(--secondary) !important;
  color: #fff !important;
  border-color: var(--secondary) !important;
}

/* Contact Page Styles */
.hover-social:hover {
  background-color: var(--secondary) !important;
  color: white !important;
}

.hover-btn:hover {
  background-color: var(--primary) !important;
  color: white !important;
}

.contact-form .form-control:focus {
  border-color: var(--secondary) !important;
  box-shadow: 0 0 0 0.2rem rgba(30, 132, 73, 0.25) !important;
}

/* Custom Navbar Styles */
.navbar {
  position: relative;
  min-height: 50px;
  margin-bottom: 0px;
  border: 1px solid transparent;
}

/* Navbar Responsive Styles */
@media (max-width: 991px) {
  .navbar {
    position: relative;
    min-height: 50px;
    margin-bottom: 0px;
    border: 1px solid transparent;
    padding: 10px 15px;
  }
}

/* ===== WhatsApp Widget ===== */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  text-decoration: none;
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

.whatsapp-widget:hover,
.whatsapp-widget:focus,
.whatsapp-widget:active {
  background-color: #128c7e;
  transform: scale(1.05);
  outline: none !important;
}

.whatsapp-tooltip {
  position: absolute;
  right: 75px;
  background-color: #1a1a1a;
  color: #ffb800;
  /* 'with us' color */
  padding: 8px 15px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.whatsapp-tooltip .chat-text {
  color: #ffffff;
  /* 'Chat' color */
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent #1a1a1a;
}

.whatsapp-widget:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  right: 80px;
}

/* Laptop (1200px - 1399px) */
@media (max-width: 1399px) {
  .whatsapp-widget {
    bottom: 25px;
    right: 25px;
    width: 58px;
    height: 58px;
    font-size: 30px;
  }
}

/* Small Laptop / Large Tablet (992px - 1199px) */
@media (max-width: 1199px) {
  .whatsapp-widget {
    bottom: 25px;
    right: 20px;
    width: 55px;
    height: 55px;
    font-size: 28px;
  }
}

/* Tablet (768px - 991px) */
@media (max-width: 991px) {
  .whatsapp-widget {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 26px;
  }
}

/* Mobile (576px - 767px) */
@media (max-width: 767px) {
  .whatsapp-widget {
    bottom: 20px;
    right: 15px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }

  .whatsapp-tooltip {
    display: none;
    /* Hide tooltip on small mobile screens to save space */
  }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
  .whatsapp-widget {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 22px;
  }
}