/* background image */
.resources-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 */
}

.resources-layout {
  display: flex;
  gap: 40px;
  margin: 0px auto;
  max-width: 100%;
  padding-left: 175px;   /* left offset */
  padding-right: 175px;  /* right offset */
}

.resources-buttons {
  flex: 0 0 220px; /* fixed width for buttons column */
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.resources-content {
  flex: 1; /* take remaining space */
}

.button-item a {
  text-decoration: none;
  color: inherit;
  display: block;
  text-align: center;
}

.button-item img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  background-color: #f4f4f4;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.5s ease, box-shadow 0.2s ease;
}

.button-item img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.button-item p {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
   color: #666666;
  transition: color 0.2s ease;
}

.button-item a:hover p {
  color: #0077b6; /* highlight text on hover */
}

/* 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;
}

/* Add padding between sections for readability */
.topic-content {
  display: none;
  padding: 20px;   /* inner padding for breathing space */
}

.resources-content ul li {
  line-height: 1.6;            /* consistent vertical spacing */
  margin-bottom: 8px;          /* space between items */
}

/* image control */

.details-photo2 {
  display: flex;
  justify-content: center; /* centers horizontally */
}

.details-photo2 img {
  width: 800px;
  height: auto;
  border-radius: 8px;
  padding-bottom: 20px;
  filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.3));
}

.details-photo3 {
  display: flex;
  justify-content: center; /* centers horizontally */
}

.details-photo3 img {
  width: 265px;
  height: auto;
  border-radius: 8px;
  padding-bottom: 20px;
  filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.3));
}

/* table control */
.resources-content table {
  width: 80%;                /* make table stretch nicely */
  border-collapse: collapse;   /* ensures borders don’t double up */
  margin: 0 auto;
  border-collapse: collapse;
}

.resources-content td {
  padding: 15px 12px;           /* spacing inside cells */
  border-bottom: 1px solid #ddd; /* horizontal border line */
  text-align: left;            /* keep text aligned left */
}

/* osmosis and revers osmosis */

.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* equal two columns */
  gap: 30px;
  align-items: start;
}

.topic-image img {
  width: 70%;
  height: auto;
  border-radius: 8px;
  padding-bottom: 20px;
  filter: drop-shadow(2px 2px 6px rgba(0,0,0,0.3));
}
.accordion-item {
  border-bottom: 1px solid #ddd;
  margin: 0 170px 10px auto;   /* auto left margin pushes block to the right */
  width: 80%;                 /* set width in % of parent */
  max-width: 1000px;           /* optional: cap the maximum width */
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #0077b6;
  cursor: pointer;
  padding: 12px;
  transition: background 0.3s ease;
}

.accordion-header:hover {
  background: #f0f8ff;
}

.accordion-body {
  display: none;
  padding: 12px;
  color: #444;
  line-height: 1.6;
}

.accordion-body.active {
  display: block;
}

/* Main heading (h4) centered */
.resources-content h4 {
  text-align: left;
  font-size: 24px;
  color: #666666;
  margin-bottom: 25px;
  font-weight: 600;
  padding: 12px 0 12px 426px;  /* top/right/bottom/left */
}

.summary-block {
  margin: 0 170px 20px auto;  /* same right alignment as accordion */
  width: 80%;
  max-width: 1000px;
}
.summary-block p {
  padding: 12px;
  text-align: justify;
  color: #444;
  line-height: 1.6;
}
