/* Navbar */
.custom-navbar {
  background-color: #ffffff;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0 15px;
  color: #004d40 !important;
}

.navbar-nav .nav-link:hover {
  color: #004d40 !important;
}

.btn.rounded-pill {
  font-weight: 500;
  padding: 0.5rem 1.25rem;
  white-space: nowrap;
}

/* Hero Section */
.hero-section {
  position: relative;
  background: url('../img/carousel-3.jpg') no-repeat;
  background-position: right top;
  background-size: cover;
  padding: 100px 0;
  border-radius: 20px;
  overflow: hidden;
  margin-right: 20px;
  margin-left: 20px;
}

.hero-overlay {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(2px);
  padding: 60px 30px;
  max-width: 700px;
  margin: 0 auto;
  border-radius: 12px;
}

.hero-title {
  color: #004d40;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: left;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #333;
  text-align: left;
}

.hero-title-mobile {
  color: #004d40;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.hero-subtitle-mobile {
  color: #555; /* Muted dark gray */
  font-size: 1rem;
  font-weight: 400;
  max-width: 90%;
  margin: 0 auto;
}


/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .hero-subtitle {
    font-size: 1rem;
    text-align: center;
  }

  .hero-overlay {
    padding: 40px 20px;
  }

  .navbar-collapse {
    text-align: center;
  }
}
@media (max-width: 991.98px) {
    .navbar .dropdown-menu {
        /* background-color: #002529 !important; Match your dark navbar bg */
        border: none;
        box-shadow: none;
    }

    .navbar .dropdown-item {
        /* color: #ffffff !important; White text to match */
        font-size: 0.9rem;
        margin-right: 30px;
    }

    .navbar .dropdown-item:hover,
    .navbar .dropdown-item:focus {
        background-color: #003d3d !important; /* Slightly lighter on hover */
    }
}
/* Main section acting as the background container */
.value-hero-section {
    border-radius: 15px;
    margin: 0 auto;
    max-width: 1200px;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    background-color: #333;
}

/* The actual background image element */
.value-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: opacity 0.6s ease-in-out;
    opacity: 1;
}

/* Class to apply during fade-out */
.value-background-image.fade-out {
    opacity: 0;
}

/* Overlay for general darkening and edge-shade blending */
.value-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: inherit;
    /* Adjusted darkness slightly for potential better contrast */
    background:
        radial-gradient(circle at center, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%), /* Slightly darker than original 0.4 */
        linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,0.4) 100%), /* Slightly darker than original 0.3 */
        linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,0.4) 100%); /* Slightly darker than original 0.3 */
}

/* Styling for the card containing the clickable value list */
.value-list-card {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: none;
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

/* Styling for the clickable value "tabs" */
.value-tabs-list li {
    cursor: pointer;
    /* Remove padding and margin-bottom from LI directly, apply to inner div */
    /* background-color and border-radius also moved to inner div for better control */
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: left;
    color: #fff;
    list-style: none; /* Ensure no default bullet points */
    overflow: hidden; /* Crucial for dropdown animation */
    margin-bottom: 8px; /* Spacing between items */
    border-radius: 8px; /* Rounded corners for the whole item */
    background-color: rgba(255, 255, 255, 0.1); /* Background for entire item */
}

/* Style for the main clickable content area within the LI */
.value-tabs-list li .value-tab-main-content {
    padding: 12px 15px;
    display: flex; /* Keeps icon and text aligned */
    align-items: center; /* Vertically center icon and text */
}

.value-tabs-list li:hover .value-tab-main-content {
    background-color: rgba(255, 255, 255, 0.2); /* Slightly brighter on hover for main content */
}

.value-tabs-list li.active-value .value-tab-main-content {
    background-color: rgba(255, 255, 255, 0.3); /* More visible background for active tab's main content */
    font-weight: bold;
}

/* Ensure icons are white in active state */
.value-tabs-list li.active-value .fa {
    color: #fff !important;
}

/* Styling for the dropdown content */
.value-dropdown-content {
    background-color: rgba(0, 0, 0, 0.5); /* Darker background for dropdown text area */
    padding: 0 15px; /* Padding for content inside dropdown */
    max-height: 0; /* Initially hidden, height will animate */
    overflow: hidden; /* Hide overflowing content during animation */
    transition: max-height 0.4s ease-out, padding 0.4s ease-out; /* Smooth dropdown animation */
    opacity: 0; /* Start hidden for text fade */
    transition: max-height 0.4s ease-out, opacity 0.4s ease-out 0.2s; /* Stagger opacity fade */
    color: #fff; /* White text for dropdown content */
}

.value-dropdown-content h5 {
    color: #fff; /* Ensure heading is white */
    margin-top: 10px; /* Space above title */
    margin-bottom: 5px; /* Space below title */
}

.value-dropdown-content p {
    color: rgba(255, 255, 255, 0.8); /* Slightly less white for body text */
    margin-bottom: 10px; /* Space below paragraph */
}

/* When the LI is active, show the dropdown content */
.value-tabs-list li.active-value .value-dropdown-content {
    max-height: 150px; /* Adjust this value as needed, must be large enough to contain content */
    padding: 15px; /* Restore padding when active */
    opacity: 1; /* Fade in text */
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .value-hero-section {
        min-height: 500px;
    }
    .value-list-card {
        margin-bottom: 20px;
        min-height: auto;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    }
    .value-tabs-list li .value-tab-main-content {
        text-align: center; /* Center text on smaller screens */
        justify-content: center; /* Center content horizontally */
    }
    /* The empty col-lg-7 should still be hidden on small screens */
    .col-lg-7.d-none.d-md-block {
        display: none !important;
    }
}