/* background image */
.product-layout {
  padding: 20px 20px;
  background-color: #f4f4f4;   /* light background for contrast */
/* Background image settings */
  background-image: url('../img/re_bg.png'); /* replace with your PNG path */
  background-repeat: no-repeat;
  background-position: top left -100px;
  background-size: 420px auto;   /* adjust size as needed */
}

.product-layout {
  display: flex;
  gap: 40px;

  padding-left: 175px;   /* left offset */
  padding-right: 175px;  /* right offset */
  align-items: flex-start; /* ensure right column stays aligned to top */
}

.product-content {
  flex: 1; /* take remaining space */
  align-self: flex-start;
}

/* Main heading (h2) centered */
.resources-content h2 {
  text-align: center;
  font-size: 24px;
  color: #666666;
  margin-bottom: 25px;
  font-weight: 600;
}

/* Subheadings (h3) left aligned */
.resources-content h3 {
  text-align: left;
  font-size: 18px;
  color: #00BCE3;
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 600;
   padding-bottom: 8px;
  border-bottom: 1px solid #ddd;  /* subtle divider line */
}

/* Paragraphs justified with spacing */
.resources-content p {
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #444;
}

.collapsible-content ul {
  list-style: none;
  padding-left: 0;
}
.collapsible-content ul li {
  line-height: 1.6;            /* consistent vertical spacing */
  margin-left: 22px;
  color: #666666;
  position: relative;
}
.collapsible-content ul li::before {
  content: url('../icon/bullet.png'); /* custom bullet image */
  position: absolute;
  left: -22px;        /* adjust spacing so bullet sits outside text */
  top: 0;
}

.info-table-wrap {
  margin-top: 25px;
  margin-bottom: 25px; /* adds space below each table */
}


.sediment-depth-cartridges-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #444;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* subtle drop shadow */
}

.sediment-depth-cartridges-table th,
.sediment-depth-cartridges-table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
  
}

.sediment-depth-cartridges-table th.table-head {
  background: #777777;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  color: #ffffff;
}

.sediment-depth-cartridges-table thead tr:nth-child(2) th {
  background: #f0f0f0;   /* light grey background */
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  color: #333;
}

.sediment-depth-cartridges-table tbody th {
  background: #f0f0f0;   /* same color as your column headers */
  font-weight: 600;
  color: #333;
  text-align: center;
}


/* Add padding between sections for readability */
.topic-content {
  display: none;
  padding: 20px;   /* inner padding for breathing space */
}

/* Left image Code start */

/* Left column: stack image above buttons */
.left-column {
  display: flex;
  flex-direction: column;
  align-items: center; /* center image & buttons within the column */
  width: 350px;        /* matches button width */
  flex-shrink: 0; /* prevent shrinking */
}

/* Image styling */
.menu-image {
  text-align: center;
  margin-bottom: 5px; /* space between image and buttons */
}

.menu-image .intro-image {
  max-width: 100%;
  width: 270px;        /* or 350px to match button width */
  border-radius: 1px;  /* optional */
}

/* Left Buttons Code start */

/* Base Styling */
.menu-container {
    width: 351px; /* Adjust as needed */
    margin: 20px auto;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column; /* stack children vertically */
    align-items: center;    /* center them */
    
}

.menu-item {
    margin: 0 auto 5px; /* Increased standard gap */
    border-radius: 12px;
    box-shadow: none;
    overflow: visible;
    width: 350px; /* keep full width for the button */
    
}
/* Header Button Styling (The visible bar) */
.menu-header {
    width: 100%;
    height: 50px; /* Height of the bar */
    border: 1px solid white;
    cursor: pointer;
    text-align: left;
    padding: 0 15px;
    color: #666666;
    font-size: 18px;
    font-weight: bold;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    display: flex; 
    align-items: center;
        
    /* IMPORTANT FIX: Set position: relative here for the icon */
    position: relative;
    /* Background Gradient for collapsed items (Brown/Grey) */
    background: linear-gradient(85deg, #F4F4F4, #EAEAEA);
    /* For the specific look in the image, you might need a stronger gradient or an overlay */
    box-shadow: -2px 3px 4px rgba(0,0,0,0.15); /* shadow left & bottom */
}

.menu-item.active .menu-header {
    /* Blue Gradient for the active item */
    background: linear-gradient(-85deg, #F4F4F4, #EAEAEA);
    /* Only top corners are rounded when expanded */
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Icon Placeholder Styling (Use this for your PNG) */

/* Default Icon (g_icon.png) */
.icon-placeholder {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-image: url('../icon/g_icon.png'); /* Normal State Icon */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: -3px 4px 6px rgba(0,0,0,0.2); /* left & bottom shadow */
  border-radius: 50%; /* optional: smooth edges if icon is circular */
}

/* Active Icon (icon/a_icon.png) */
.menu-item.active .icon-placeholder {
    background-image: url('../icon/a_icon.png'); /* Active State Icon */
}

/* Collapsible Content Styling */
.collapsible-content {
    background-color: rgba(244, 244, 244, 0.8); /* light grey with 80% opacity */
    width: 338px;
    margin: 0 auto;
    padding: 5px 10px;
    border-radius: 0 0 12px 12px; /* rounded only at bottom */
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); /* optional: subtle dropdown shadow */
    overflow: hidden; /* Hide content when height is 0 */
    transition: height 0.8s ease;
    height: 0; /* Default collapsed state */
    padding-top: 0;
    padding-bottom: 0;
}


/* Styling for the detail box content */
.detail-box {
    margin: 0 0 5px 0;              /* remove spacing */
    padding: 15px 10px;             /* remove inner padding */
    width: 100%;            /* or narrower if you want */
    boreder-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1)
    text-align: justify;
}

.detail-image {
  width: 280px;   /* adjust to your preferred width */
  height: auto;   /* keeps aspect ratio */
  display: block; /* ensures it aligns properly */
  margin: 0 auto; /* optional: centers the image */
  cursor: pointer; /* 👈 makes it look clickable */
}


.detail-text-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 0px;
}

/* Expanded state (JS will add the 'show' class) */
.collapsible-content.show {
    max-height: 1500px; /* A value larger than the max expected content height */
    padding-top: 20px;
    
}

/* This targets the specific last item to add extra space above it */
.menu-item.separated {
    margin-top: 25px; /* Adds the large space above the last button */
    margin-bottom: 5px; 
}

/* Product image modal only */
.product-image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0; /* shorthand for top/right/bottom/left:0 */
  background-color: rgba(0,0,0,0.7);

  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image-content {
  position: relative;
  border-radius: 6px;
  max-width: 90vw;   /* limit to viewport width */
  max-height: 90vh;  /* limit to viewport height */
  overflow: hidden;  /* prevent spill */
}

.product-image-content img {
  display: block;
  max-width: 100%;   /* fit inside container */
  max-height: 100%;  /* fit inside container */
  height: auto;
  border-radius: 6px;
}

.product-image-content .product-close {
  position: absolute;
  top: 4px;
  right: 15px;
  font-size: 34px;
  font-weight: normal;
  color: #0099cc;
  cursor: pointer;
  transition: color 0.3s ease;
}

.product-image-content .product-close:hover {
  color: #ff3333;
}
