/* SERVICES PAGE */

/* Styling the buttons within the services sections */
.services-button-1 {
  background-color: white !important; /* or your chosen color */
  color: black !important;
  font-weight: 600;
  padding: 1rem 1rem !important;
  border-radius: 6px;
  text-align: center;
  font-size: 1rem;
  display: inline-block;
  width: 45%; /* uniform width */
  max-width: 100%;
  transition: background-color 0.3s ease;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.services-button-1:hover {
  background-color: #73934f !important;
  color: white !important;
  text-decoration: none;
}

.services-button-2 {
  background-color: #DDEBCF !important; /* or your chosen color */
  color: #222 !important;
  font-weight: 600;
  padding: 1rem 1rem !important;
  border-radius: 6px;
  text-align: center;
  font-size: 1rem;
  display: inline-block;
  width: 45%; /* uniform width */
  max-width: 100%;
  transition: background-color 0.3s ease;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.services-button-2:hover {
  background-color: #a18c3c !important;
  color: #fff !important;
  text-decoration: none;
}

/* EVERYTHING WITHIN THE DECIDE TOOLBOX PAGES */

/* Creates a shadow around the entire tab container */
.vc_tta.vc_general.vc_tta-tabs {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

/* Force white background on the active tab panel */
.vc_tta-panel.vc_active,
.vc_tta-panel.vc_active .vc_tta-panel-body {
  background-color: #ffffff !important;
}

/* Remove outer spacing around the tabs */
.vc_tta-tabs-container {
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove space between tab list and container edge */
.vc_tta.vc_general.vc_tta-tabs {
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

/* Make active tab stand out */
.vc_tta-tabs .vc_tta-tab.vc_active > a {
  background-color: #dbcc9a !important;
  font-weight: bold !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* Improve inactive tab text color */
.vc_tta-tabs .vc_tta-tab > a {
  color: #222 !important;
}

/* Style the content box */
.vc_tta-panels-container .vc_tta-panel-body {
  background-color: #fafafa !important;
  padding: 2rem;
  border-radius: 10px;
}

/* Force text and icon color inside active tab */
.vc_tta-tab.vc_active > a,
.vc_tta-tab.vc_active > a * {
  color: #222 !important;
  opacity: 1 !important;
  fill: #d4af37 !important; /* for SVG icons if used */
}

.vc_tta-tab:not(.vc_active) > a,
.vc_tta-tab:not(.vc_active) > a * {
  color: #444 !important;
  opacity: 1 !important;
  fill: #444 !important;
}

/* Stretch all tab headers to fill container equally */
.vc_tta-tabs-list {
  display: flex !important;
  flex-wrap: nowrap;
}

.vc_tta-tabs-list .vc_tta-tab {
  flex: 1 1 auto !important;
  text-align: center !important;
}

/* Improve spacing of tab text & icons */
.vc_tta-tabs-list .vc_tta-tab > a {
  display: flex !important;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 1rem;
}

/* Styling the buttons within the tab sections */
.tabs-button {
  background-color: #dbcc9a !important; /* or your chosen color */
  color: #222 !important;
  font-weight: 600;
  padding: 1rem 1rem !important;
  border-radius: 6px;
  text-align: center;
  font-size: 1rem;
  display: inline-block;
  width: 45%; /* uniform width */
  max-width: 100%;
  transition: background-color 0.3s ease;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.tabs-button:hover {
  background-color: #a18c3c !important;
  color: #fff !important;
  text-decoration: none;
}

.tabs-button-half {
  background-color: #dbcc9a !important; /* or your chosen color */
  color: #222 !important;
  font-weight: 600;
  padding: 1rem 1rem !important;
  border-radius: 6px;
  text-align: center;
  font-size: 1rem;
  display: inline-block;
  width: 80%; /* uniform width */
  max-width: 100%;
  transition: background-color 0.3s ease;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

.tabs-button-half:hover {
  background-color: #a18c3c !important;
  color: #fff !important;
  text-decoration: none;
}


/*THIS SECTION IS FOR THE FLIP CARDS VCG */
/* -------------------------------------*/

/* Flip card container */
.vc_column-inner .flip-card {
  background-color: transparent;
  width: 100%;
  perspective: 1000px !important;
  margin: 0 auto;
  position: relative;
}

/* Inner card flip logic */
.vc_column-inner .flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s !important;
  transform-style: preserve-3d !important;
}

/* Flip on hover */
.vc_column-inner .flip-card:hover .flip-card-inner {
  transform: rotateY(-180deg);
}

/* Front and back */
.vc_column-inner .flip-card-front,
.vc_column-inner .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-size: cover;
  background-position: center;
}

/* Front side */

.vc_column-inner .flip-card-title {
  font-weight: bold;
  font-size: 1.5rem;
  text-align: center;
}

.vc_column-inner .flip4-3 h3 {
  font-size: 1.4rem;
  margin: 0;
}

/* Back side */
.vc_column-inner .flip-card-back {
  transform: rotateY(-180deg);
}

.vc_column-inner .flip-card-text {
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

/* Cards 4/3 */
.vc_column-inner .flip4-3 {
    aspect-ratio: 4/3;
}

/* Card 1 */
.vc_column-inner .card-1 .flip-card-front {
  background-image: url('/wp-content/uploads/2025/06/VCG-Green.png');
  background-size: cover;
  background-position: center;
}

.vc_column-inner .card-1 .flip-card-back {
  background-image: url('/wp-content/uploads/2025/06/VCG-GreenGray.png');
  background-size: cover;
  background-position: center;
}

/* Card 2 */
.vc_column-inner .card-2 .flip-card-front {
  background-image: url('/wp-content/uploads/2025/06/VCG-Blue.png');
  background-size: cover;
  background-position: center;
}

.vc_column-inner .card-2 .flip-card-back {
  background-image: url('/wp-content/uploads/2025/06/VCG-BlueGray.png');
  background-size: cover;
  background-position: center;
}

/* Card 3 */
.vc_column-inner .card-3 .flip-card-front {
  background-image: url('/wp-content/uploads/2025/06/VCG-Blue2.png');
  background-size: cover;
  background-position: center;
}

.vc_column-inner .card-3 .flip-card-back {
  background-image: url('/wp-content/uploads/2025/06/VCG-Blue2trans.png');
  background-size: cover;
  background-position: center;
}

/* More Styles to design the boxes in vcg tab */

.vc_column-inner .content-box {
  position: relative;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.vc_column-inner .content-box p {
  padding: 0.5rem 1rem 0.6rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

/* Content boxes vcg */

.vc_column-inner .box-1 .content-box {
      background-color: #B8C7A0; /* Soft grey-green */
}

.vc_column-inner .box-2 .content-box {
      background-color: #ADC5A9; /* Soft transition color 1 */
}

.vc_column-inner .box-3 .content-box {
      background-color: #A5C3B4; /* Soft transition color 2 */
}

.vc_column-inner .box-4 .content-box {
      background-color: #A2C1C0; /* Soft transition color 3 */
}

.vc_column-inner .box-5 .content-box {
      background-color: #A1C0C6; /* Soft blue-gray */
}

/* THIS SECTION IS FOR THE BARRIERS */
/* Content boxes barriers */
.vc_column-inner .box-barriers {
  background-color: #ffffff;
  border: 3px solid #D4AF37; /* Gold */
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Outside shadow */
  text-align: center;
  box-sizing: border-box;
}

.vc_column-inner .box-barriers h4 {
  font-size: 18px;
  padding: 1rem 1rem 0rem 1rem;
}

/* THIS SECTION IS FOR THE WORKSHOPS */
/* Content boxes workshops */
.vc_column-inner .box-workshops {
  background-color: #dbcc9a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Outside shadow */
  text-align: center;
  box-sizing: border-box;
  border-radius: 10px;
  height: 300px; /* Set your desired fixed height */
}

.vc_column-inner .box-workshops h4 {
    color: #ffffff;
    font-weight: bold;
    font-size: 18px;
    padding: 1rem 0.5rem 0rem 0rem;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#workshops-image .vc-hoverbox-front{
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Outside shadow */
    width: 90%;
    height: 70%;
}

#workshops-image .vc-hoverbox-back {
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1); /* Outside shadow */
    border: 1px solid #ffffff;
    width: 90%;
    height: 70%;
}

#workshops-image .vc-hoverbox-back .hoverbox-full-click-area {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  z-index: 10;
}

#workshops-image .vc-hoverbox-back .hoverbox-back-content {
    color: #D4AF37;
  font-weight: bold;
  font-size: 1.5rem;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.5);
}


/* THIS SECTION IS FOR THE IDENTIFICATION OF CE */

/* Card 1 */
.vc_column-inner .sec2-card-1 .flip-card-front {
  background-color: #E7F5E1;
}

.vc_column-inner .sec2-card-1 .flip-card-back {
  background-color: #E7F5E166;
}

/* Card 2 */
.vc_column-inner .sec2-card-2 .flip-card-front {
  background-color: #CEDFBE;
}

.vc_column-inner .sec2-card-2 .flip-card-back {
  background-color: #CEDFBE66;
}

/* Card 3 */
.vc_column-inner .sec2-card-3 .flip-card-front {
  background-color: #DDEBCF;
}

.vc_column-inner .sec2-card-3 .flip-card-back {
  background-color: #DDEBCF66;
}

/* Card 4 */
.vc_column-inner .sec2-card-4 .flip-card-front {
  background-color: #C3D6A7;
}

.vc_column-inner .sec2-card-4 .flip-card-back {
  background-color: #C3D6A733;
}

/* Cards 2/1 */
.vc_column-inner .flip2-1 {
    aspect-ratio: 2/1;
}

.vc_column-inner .flip2-1 h3 {
  font-size: 1rem;
  margin: 0;
}

/* FLIP CARDS IDENTIFICATION */
.vc_column-inner .flip-card-front::after {
  content: '';
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-right: 10px solid black; /* arrow color */
  opacity: 0.8;
}

/* CAROUSEL FOR IDENTIFICATION TAB */

/* Add background images */
/* Ensure parent container handles layout */
.vc_column-inner .custom-carousel {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* Outside shadow */
}

/* Individual image items */
.custom-carousel .carousel-image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.custom-carousel .carousel-image.visible {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}


/* Label on top of image */
.vc_column-inner .carousel-label {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1rem;
  padding: 0.5rem 1rem;
  width: 66%;
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Background images for each */
.vc_column-inner .bg-batteries {
  background-image: url('/wp-content/uploads/2025/03/Batteries-2.jpg');
}
.vc_column-inner .bg-food {
  background-image: url('/wp-content/uploads/2025/03/Food-2.jpg');
}
.vc_column-inner .bg-packaging {
  background-image: url('/wp-content/uploads/2025/03/Packaging.jpg');
}
.vc_column-inner .bg-smart-cities {
  background-image: url('/wp-content/uploads/2025/03/Smart-Cities.jpg');
}
.vc_column-inner .bg-textile {
  background-image: url('/wp-content/uploads/2025/03/Textile.jpg');
}

#learning-path img {
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

#text-identify h4 {
    font-size: 1.3rem;
}