@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&display=swap');



/* 1. Root Color Palette & Variables */
:root {
  --cec-green: #00A859;
  --cec-green-hover: #008647;
  --cec-green-light: #E4ECE6;
  --cec-navy: #1E293B;
  --cec-navy-light: #14266b;
  --cec-text-muted: #64748B;
  --cec-text-dark: #111827;
  
  --card-bg-1: #E4EFE8; /* Light Sage Tint */
  --card-bg-2: #F2EDE4; /* Warm Beige Tint */
  --card-bg-3: #F2F4F2; /* Light Neutral Tint */
  --award-bg: #F4F4F4;

  --font-family-body: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-heading: 'montserratregular', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. Global Styles & Typography Reset */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-body);
  font-weight: 500; /* Poppins Medium */
  font-size: 14px;
  color: var(--cec-text-dark);
  background-color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  font-weight: 700;
  color: var(--cec-navy);
  letter-spacing: -0.02em;
}

/* Heading 2 Specific Rules: Montserrat Regular Color Black */
h2, .h2, h2.display-4, h2.display-5, h2.display-6 {
  font-family: var(--font-family-heading) !important;
  font-weight: 400 !important; /* Regular */
  color: #000000 !important; /* Black */
  letter-spacing: -0.01em;
}

.contact-section h2, .contact-section h2.display-5 {
  color: #ffffff !important;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

/* Section Header Labels: Montserrat ExtraBold Color Green */
.section-label {
  font-family: var(--font-family-heading) !important;
  font-weight: 800 !important; /* ExtraBold */
  color: var(--cec-green) !important; /* Green */
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

/* Primary Buttons: Poppins Medium */
.btn, .btn-cec-primary, button, input[type="submit"] {
  font-family: var(--font-family-body) !important;
  font-weight: 500 !important; /* Poppins Medium */
}

.btn-cec-primary {
  background-color: var(--cec-green);
  color: #ffffff !important;
  border: none;
  font-size: 0.85rem;
  padding: 0.75rem 1.6rem;
  border-radius: 4px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.btn-cec-primary:hover {
  background-color: var(--cec-green-hover);
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 168, 89, 0.3);
}

header.sticky-top {
  position: sticky;
  top: 0;
  z-index: 1050;
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-bottom: 2px solid #00A859 !important;
}

.brand-logo {
  object-fit: contain;
  height: 75px;
  width: auto;
}

.brand-tagline {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 2px solid var(--cec-green);
  padding-left: 10px;
  line-height: 1.2;
}

.tagline-text {
  font-family: var(--font-family-body);
  font-weight: 700;
  font-style: italic;
  color: #38692B;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 576px) {
  .brand-logo {
    height: 38px;
  }
  .brand-tagline {
    padding-left: 8px;
  }
  .tagline-text {
    font-size: 0.65rem;
    letter-spacing: 0.2px;
  }
}

.navbar-nav .nav-link {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--cec-navy);
  letter-spacing: 1px;
  padding: 0.5rem 1.25rem !important;
  text-transform: uppercase;
  transition: var(--transition-smooth);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--cec-green);
}

/* 4. Hero Section & Background Image Slider */
.hero-section {
  position: relative;
  min-height: 83vh;
  display: flex;
  align-items: center;
  padding: 85px 0 50px;
  color: #ffffff;
  overflow: hidden;
  transition: min-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1040;
  background: white;
}

.hero-section.hero-scrolled {
  position: sticky;
  top: 76px;
  min-height: 45vh;
  padding: 60px 0 35px;
}

main > section:not(.hero-section) {
  position: relative;
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 6s ease-out;
  transform: scale(1.05);
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(14, 27, 42, 0.8) 0%, rgba(14, 27, 42, 0.45) 50%, rgba(14, 27, 42, 0.15) 100%);
  z-index: 2;
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.text-green-highlight {
  color: #00E676; /* Bright vibrant green */
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  max-width: 540px;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.carousel-dots-hero {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 1.5rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background-color: var(--cec-green);
  width: 24px;
  border-radius: 5px;
}

/* 5. Minimalist Underline Tabs & Text Ellipsis Styling */
.custom-about-tabs {
  border-bottom: 2px solid #e2e8f0 !important;
  background: transparent;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  position: relative;
}

.custom-about-tabs .nav-item {
  flex: 1 1 0px !important;
  min-width: 0 !important;
  display: flex;
  align-items: stretch !important;
}

.custom-about-tabs .nav-link {
  color: var(--cec-navy-light);
  background-color: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.2px;
  padding: 0.75rem 0.25rem 0.85rem;
  margin: 0;
  position: relative;
  transition: color 0.25s ease-in-out;
  white-space: normal !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.35rem !important;
  text-align: center !important;
  width: 100%;
  height: 100%;
}

.custom-about-tabs .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 4px;
  background-color: transparent;
  transition: background-color 0.25s ease-in-out;
}

.custom-about-tabs .nav-link i {
  font-size: 1.25rem;
  display: block;
}

.custom-about-tabs .nav-link:hover {
  color: var(--cec-green);
  background-color: transparent !important;
}

.custom-about-tabs .nav-link:hover::after,
.custom-about-tabs .nav-link.active::after {
  background-color: var(--cec-green);
}

.custom-about-tabs .nav-link.active {
  color: var(--cec-green) !important;
  background-color: transparent !important;
  font-weight: 800;
  box-shadow: none !important;
}

/* Text 2-Line Wrap Helper for Tabs */
.tab-text-ellipsis {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal !important;
  text-align: center;
  line-height: 1.25;
  font-size: 0.82rem;
  margin: 0 auto;
  word-break: break-word;
}

/* Tablet Responsive Adjustment for Tabs (768px to 991.98px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .custom-about-tabs .nav-link {
    padding: 0.65rem 0.2rem !important;
  }
}

/* Icon-Only Mode for Smaller Screens if Tabs are forced */
@media (max-width: 767.98px) {
  .tab-text-ellipsis {
    display: none;
  }
}

/* Smooth Tab Pane Fade & Slide Up Transition */
.tab-pane.fade {
  transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out;
  transform: translateY(12px);
  opacity: 0;
}

.tab-pane.fade.show {
  transform: translateY(0);
  opacity: 1;
}

/* Tabbed Sections & Tab Content Backgrounds (About, Products, Services) */
.about-tabbed-section,
.products-tabbed-section,
.services-tabbed-section {
  background-color: #ffffff;
}

.about-tab-content-bg,
.product-tab-content-bg,
.service-tab-content-bg {
  background-color: #f8f8f8 !important;
  width: 100%;
}

#aboutTabsContent,
#productTabsContent,
#serviceTabsContent {
  background-color: transparent !important;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

/* Soil Chain Info Card */
.soil-chain-card {
  background-color: #ffffff !important;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(14, 27, 42, 0.12), 0 4px 15px rgba(0, 0, 0, 0.04);
  transition: var(--transition-smooth);
}

.soil-chain-card:hover {
  box-shadow: 0 22px 55px rgba(14, 27, 42, 0.16);
  transform: translateY(-3px);
}

/* Services Gallery Cards & Zoom-Out Hover Effect */
.gallery-card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-radius: 8px;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(14, 27, 42, 0.12) !important;
}

.gallery-img-wrapper {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.gallery-img-wrapper img,
.gallery-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
  transform: scale(1.12); /* Default zoomed-in state */
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* On hover, picture smoothly zooms out to scale(1.0) */
.gallery-img-wrapper:hover img,
.gallery-card:hover .gallery-img-wrapper img,
.gallery-card:hover img.gallery-img {
  transform: scale(1);
}

/* Overlay for Zoom CTA button */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14, 27, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.gallery-img-wrapper:hover .gallery-overlay,
.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-zoom-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--cec-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transform: scale(0.85);
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.gallery-img-wrapper:hover .gallery-zoom-btn,
.gallery-card:hover .gallery-zoom-btn {
  transform: scale(1);
}

.gallery-zoom-btn:hover {
  background-color: var(--cec-green);
  color: #ffffff;
  transform: scale(1.1) !important;
}

/* Gallery Slider Modal Nav & Floating Close Controls */
.gallery-nav-btn {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(14, 27, 42, 0.75) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
  cursor: pointer;
  z-index: 1060;
}

.gallery-nav-btn:hover {
  background-color: var(--cec-green) !important;
  border-color: var(--cec-green) !important;
  color: #ffffff !important;
  transform: translateY(-50%) scale(1.12) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.btn-close-floating {
  width: 44px;
  height: 44px;
  background-color: rgba(14, 27, 42, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(6px);
  opacity: 0.9;
  transition: all 0.25s ease;
  z-index: 1060;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-close-floating:hover {
  opacity: 1;
  background-color: var(--cec-green) !important;
  border-color: var(--cec-green) !important;
  transform: scale(1.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Floating Modal Close Button with Negative Top & Right Offsets */
.btn-close-floating-outer {
  position: absolute !important;
  top: -18px !important;
  right: -18px !important;
  width: 44px !important;
  height: 44px !important;
  background-color: var(--cec-navy) !important;
  color: #ffffff !important;
  border: 2.5px solid #ffffff !important;
  border-radius: 50% !important;
  opacity: 1 !important;
  z-index: 1070 !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
  cursor: pointer;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.btn-close-floating-outer i {
  font-size: 1.2rem;
  line-height: 1;
  color: #ffffff !important;
  transition: color 0.25s ease;
}

.btn-close-floating-outer:hover {
  background-color: var(--cec-green) !important;
  border-color: #ffffff !important;
  transform: scale(1.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.btn-close-floating-outer:hover i {
  color: #ffffff !important;
}

@media (max-width: 576px) {
  .btn-close-floating-outer {
    top: -12px !important;
    right: -12px !important;
    width: 38px !important;
    height: 38px !important;
  }
  .btn-close-floating-outer i {
    font-size: 1rem;
  }
}

/* Mobile Select Dropdown Styling */
.custom-mobile-tab-select {
  border: 2px solid var(--cec-green);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cec-navy-light);
  border-radius: 8px;
  background-color: #ffffff;
  padding: 0.85rem 1.2rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.custom-mobile-tab-select:focus {
  border-color: var(--cec-green-hover);
  box-shadow: 0 0 0 4px rgba(0, 168, 89, 0.18);
}

/* 6. About Us Section */
.about-section {
  padding: 100px 0 60px 0;
  background-color: #f8f8f8;
  position: relative;
  z-index: 1022;
}

.about-illustration-wrapper {
  position: relative;
  text-align: center;
  margin-bottom: -270px;
  z-index: 20;
}

.about-illustration-wrapper img {
  max-width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

@media (max-width: 991.98px) {
  .about-illustration-wrapper {
    margin-bottom: 0;
  }
}

.about-text p {
  color: var(--cec-text-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

/* 7. Products Section */
.products-section {
  padding: 160px 0 0 0;
  background-color: transparent;
  position: relative;
  z-index: 1021;
}

.product-cards-row {
  margin-bottom: -130px;
  position: relative;
  z-index: 10;
}

.product-card {
  border: none;
  border-radius: 12px;
  padding: 3.5rem 2rem 2.5rem;
  text-align: center;
  transition: var(--transition-smooth);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(14, 27, 42, 0.1), 0 4px 12px rgba(0, 0, 0, 0.03);
}

.product-card-1 { background-color: var(--card-bg-1); }
.product-card-2 { background-color: var(--card-bg-2); }
.product-card-3 { background-color: var(--card-bg-3); }

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 48px rgba(14, 27, 42, 0.16);
}

.product-icon-wrapper {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--cec-green);
  color: var(--cec-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 168, 89, 0.15);
  transition: var(--transition-smooth);
}

.product-icon-wrapper img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(42%) sepia(91%) saturate(1514%) hue-rotate(125deg) brightness(95%) contrast(101%);
  transition: var(--transition-smooth);
}

.product-card:hover .product-icon-wrapper {
  background-color: var(--cec-green);
  color: #ffffff;
  transform: scale(1.08);
}

.product-card:hover .product-icon-wrapper img {
  filter: brightness(0) invert(1);
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--cec-navy-light);
  line-height: 1.35;
  margin-bottom: 2rem;
  min-height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-link {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cec-navy-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-block;
  transition: var(--transition-smooth);
}

.product-card:hover .product-link {
  color: var(--cec-green);
}

/* 8. Services Section */
.services-section {
  padding: 210px 0 100px 0;
  background-color: var(--cec-green-light);
  background-image: url('../images/bg-services.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  z-index: 1020;
}

@media (max-width: 991.98px) {
  .product-cards-row {
    margin-bottom: -80px;
  }
  .services-section {
    padding-top: 150px;
  }
}

@media (max-width: 576px) {
  .product-cards-row {
    margin-bottom: -50px;
  }
  .services-section {
    padding-top: 110px;
  }
}

.service-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 380px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: var(--transition-smooth);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 27, 42, 0.9) 0%, rgba(14, 27, 42, 0.1) 60%, rgba(0,0,0,0) 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
}

.service-card-title {
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0;
}

/* 9. Awards Section & Alternating Block Palette (#f8f8f8 & #E4EFE8) */
.awards-section {
  padding: 90px 0;
  background-color: #ffffff;
}

.awards-section .row .col {
  padding: 0;
}

.award-block {
  padding: 1.25rem 1rem;
  height: 175px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.awards-section .row > div:nth-child(odd) .award-block {
  background-color: #f8f8f8 !important;
}

.awards-section .row > div:nth-child(even) .award-block {
  background-color: #E4EFE8 !important;
}

.award-block img {
  max-height: 150px;
  max-width: 85%;
  filter: grayscale(20%);
  transition: var(--transition-smooth);
}

.award-block:hover {
  background-color: #ffffff !important;
  border-color: #e2e8f0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transform: translateY(-4px);
}

.award-block:hover img {
  filter: grayscale(0%);
}

/* 10. Contact Section */
.contact-section {
  position: relative;
  background: url('../images/bg-contact-home.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 110px 0;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.9);
}

.contact-info-item i {
  font-size: 1.25rem;
  color: #00E676;
  margin-top: 2px;
}

.contact-card {
  background-color: #ffffff;
  border-radius: 6px;
  padding: 3rem 2.5rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  color: var(--cec-navy-light);
}

/* Soil Chain Card elevated shadow */
.soil-chain-card {
  background-color: #ffffff !important;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(14, 27, 42, 0.12) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.soil-chain-card:hover {
  box-shadow: 0 24px 55px rgba(14, 27, 42, 0.16) !important;
  transform: translateY(-2px);
}

.contact-card .form-control {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.contact-card .form-control:focus {
  border-color: var(--cec-green);
  box-shadow: 0 0 0 3px rgba(0, 168, 89, 0.15);
}

/* Elevated Shadow for Form & Map Section Cards */
.form-map-card {
  box-shadow: 0 18px 45px rgba(14, 27, 42, 0.14), 0 4px 15px rgba(0, 0, 0, 0.05) !important;
  transition: var(--transition-smooth);
}

.form-map-card:hover {
  box-shadow: 0 24px 55px rgba(14, 27, 42, 0.18), 0 6px 20px rgba(0, 0, 0, 0.07) !important;
}

/* 11. Main Footer */
footer.main-footer {
  background: linear-gradient(180deg, #efefef, #f8f8f8);
  color: var(--cec-text-muted);
  padding: 80px 0 50px;
  font-size: 0.9rem;
  border-top: 1px solid #e2e8f0;
}

.footer-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--cec-navy);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--cec-text-muted);
  font-size: 0.875rem;
  transition: var(--transition-smooth);
}

.footer-links a:hover {
  color: var(--cec-green);
  padding-left: 4px;
}

/* Newsletter Input */
.newsletter-group .form-control {
  border-radius: 4px 0 0 4px;
  border: 1px solid #cbd5e1;
}

.newsletter-group .btn {
  border-radius: 0 4px 4px 0;
  background-color: var(--cec-green);
  color: #ffffff;
  border: none;
}

.newsletter-group .btn:hover {
  background-color: var(--cec-green-hover);
}

/* 12. Bottom Footer Bar */
.bottom-footer {
  background-color: var(--cec-navy-light);
  color: #ffffff;
  padding: 1.25rem 0;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

/* 13. Responsive Adjustments */
@media (max-width: 991.98px) {
  .navbar-collapse {
    text-align: right;
    padding-top: 0.75rem;
    padding-bottom: 0.5rem;
  }

  .navbar-nav {
    align-items: flex-end !important;
  }

  .navbar-nav .nav-link {
    text-align: right !important;
    padding-right: 0 !important;
  }

  .navbar-collapse .d-flex {
    justify-content: flex-end !important;
  }

  .hero-section {
    min-height: 70vh;
    padding: 80px 0;
    text-align: center;
  }

  .hero-section.hero-scrolled {
    top: 72px;
    min-height: 40vh; 
    padding: 45px 0 25px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .awards-blocks-row {
    --bs-gutter-y: 0 !important;
    --bs-gutter-x: 0 !important;
    margin-top: 0 !important;
  }

  .awards-blocks-row > div,
  .awards-blocks-row > .col {
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 0 !important;
  }

@media (max-width: 460px) {
  .awards-blocks-row > div,
  .awards-blocks-row > .col {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (min-width: 461px) and (max-width: 991.98px) {
  .awards-blocks-row > div,
  .awards-blocks-row > .col {
    flex: 0 0 33.333333% !important;
    max-width: 33.333333% !important;
    width: 33.333333% !important;
  }
}

@media (min-width: 992px) {
  .awards-blocks-row > div,
  .awards-blocks-row > .col {
    flex: 0 0 16.666667% !important;
    max-width: 16.666667% !important;
    width: 16.666667% !important;
  }
}

  .service-card {
    height: 300px;
    margin-bottom: 1rem;
  }

  .contact-card {
    margin-top: 2.5rem;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 45vh;
    padding: 60px 0 30px;
  }

  .hero-section.hero-scrolled {
   /* top: 64px;
    min-height: 52vh; 
    padding: 35px 0 20px;*/ position: relative;
  }
}

/* Icon Box Utility */
.icon-box {
  border-radius: 50px !important;
  padding: 3px 10px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--transition-smooth);
}

/* News & Activities Automatic 3-Color Rotating Card Header Palette (Green, Blue, Yellow Subtle) */
.news-header {
  padding: 0.85rem 1.25rem !important;
  font-weight: 600;
  transition: var(--transition-smooth);
}

/* 1. Green Subtle (1st, 4th, 7th, 10th...) */
#news-activities .row > div:nth-child(3n+1) .news-header {
  background-color: #e8f5e9 !important;
  color: var(--cec-navy) !important;
  border-left: 4px solid var(--cec-green) !important;
}

#news-activities .row > div:nth-child(3n+1) .news-header .badge {
  background-color: var(--cec-green) !important;
  color: #ffffff !important;
}

/* 2. Blue Subtle (2nd, 5th, 8th, 11th...) */
#news-activities .row > div:nth-child(3n+2) .news-header {
  background-color: #e3f2fd !important;
  color: var(--cec-navy) !important;
  border-left: 4px solid #0284c7 !important;
}

#news-activities .row > div:nth-child(3n+2) .news-header .badge {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

/* 3. Yellow Subtle (3rd, 6th, 9th, 12th...) */
#news-activities .row > div:nth-child(3n) .news-header {
  background-color: #fef9c3 !important;
  color: var(--cec-navy) !important;
  border-left: 4px solid #d97706 !important;
}

#news-activities .row > div:nth-child(3n) .news-header .badge {
  background-color: #d97706 !important;
  color: #ffffff !important;
}

/* News & Activities Masonry Gallery Layout (Applies to pictures inside cards only) */
.news-gallery-masonry {
  column-count: 2;
  column-gap: 0.5rem;
}

.news-gallery-masonry.news-gallery-single {
  column-count: 1;
}

@media (max-width: 576px) {
  .news-gallery-masonry {
    column-count: 1;
  }
}

.news-gallery-masonry .gallery-img-wrapper {
  break-inside: avoid;
  margin-bottom: 0.5rem;
  width: 100%;
  display: block;
}

.news-gallery-masonry img.gallery-img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
}
