/* --- Base Setup-mthd --- */
:root {
  --primary-color-mthd: #0a2d5e;
  --secondary-color-mthd: #00b8d4;
  --background-color-mthd: #f8f9fa;
  --card-bg-color-mthd: #ffffff;
  --text-color-mthd: #343a40;
  --border-color-mthd: #e0e7f1;
  --shadow-mthd: 0 10px 30px rgba(0, 0, 0, 0.07);
  --transition-speed-mthd: 0.5s;
}

body {
  background-color: var(--background-color-mthd);
  color: var(--text-color-mthd);
}

/* --- Main Container & View Management-mthd --- */
.methodology-container-mthd {
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
  overflow-x: hidden;
}

#methodology-container-mthd {
  overflow-y: hidden !important;
  height: auto !important;
  max-height: none !important;
}

.main-view-mthd,
.detail-view-mthd {
  transition: opacity var(--transition-speed-mthd) ease,
    transform var(--transition-speed-mthd) ease;
}

/* State when detail view is active */
.detail-view-active-mthd .main-view-mthd {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}
.detail-view-active-mthd .detail-view-mthd {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* --- Main View (List of Sections)-mthd --- */
.main-title-mthd {
  color: var(--primary-color-mthd);
  font-weight: 700;
  margin-bottom: 1rem;
}

.main-subtitle-mthd {
  color: #6c757d;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-item-mthd {
  background: var(--card-bg-color-mthd);
  border: 1px solid var(--border-color-mthd);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  padding: 2rem;
  box-shadow: var(--shadow-mthd);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.section-item-mthd:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(10, 45, 94, 0.1);
}

.section-icon-mthd {
  font-size: 2rem;
  color: var(--secondary-color-mthd);
  margin-right: 1.5rem;
  width: 70px;
  text-align: center;
}

.section-title-mthd {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color-mthd);
  margin-bottom: 0.25rem;
}

.section-description-mthd {
  color: #6c757d;
  margin-bottom: 0;
}

.section-arrow-mthd {
  font-size: 1.5rem;
  color: var(--primary-color-mthd);
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.section-item-mthd:hover .section-arrow-mthd {
  opacity: 1;
  transform: translateX(5px);
}

/* --- Detail View (Full Page Content)-mthd --- */
.detail-view-mthd {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 4rem 1rem;
  opacity: 0;
  transform: translateX(100%);
  pointer-events: none;
}

.back-button-mthd {
  background: none;
  border: 1px solid var(--border-color-mthd);
  color: var(--primary-color-mthd);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.back-button-mthd:hover {
  background-color: var(--primary-color-mthd);
  color: white;
}

.detail-title-mthd {
  color: var(--primary-color-mthd);
  font-weight: 700;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--secondary-color-mthd);
  padding-left: 1rem;
}

/* --- Content Styles (Table, Stepper, Chart)-mthd --- */
.table-mthd {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}
.table-mthd th,
.table-mthd td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-color-mthd);
}
.table-mthd thead th {
  background-color: var(--primary-color-mthd);
  color: white;
  font-weight: 600;
}
.table-mthd tbody tr:hover {
  background-color: #e9f8fb;
}
.table-mthd thead th:first-child {
  border-top-left-radius: 8px;
}
.table-mthd thead th:last-child {
  border-top-right-radius: 8px;
}

.stepper-mthd {
  position: relative;
  padding-left: 45px;
}
.stepper-mthd::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 10px;
  bottom: 10px;
  width: 3px;
  background-color: #e0e7f1;
  border-radius: 2px;
}
.step-mthd {
  position: relative;
  margin-bottom: 1rem;
}
.step-trigger-mthd {
  display: flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0.5rem 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.step-trigger-mthd::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 13px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: white;
  border: 3px solid var(--secondary-color-mthd);
  transition: all 0.3s ease;
  z-index: 1;
}
.step-mthd.active-mthd .step-trigger-mthd::before {
  background-color: var(--secondary-color-mthd);
  transform: scale(1.2);
}
.step-title-mthd {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--primary-color-mthd);
}
.step-content-mthd {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
  padding: 0;
}
.step-mthd.active-mthd .step-content-mthd {
  max-height: 500px;
  padding: 1rem 0 0 0;
}

.chart-container-mthd {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 250px;
  border-left: 2px solid var(--border-color-mthd);
  border-bottom: 2px solid var(--border-color-mthd);
  padding: 1rem;
  margin-top: 1rem;
}
.bar-mthd {
  width: 40px;
  background-image: linear-gradient(
    to top,
    var(--secondary-color-mthd),
    #00d4ff
  );
  position: relative;
  border-radius: 5px 5px 0 0;
}
.bar-mthd span {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: #6c757d;
}
