/* ==========================================================================
   1. REFERENCE SECTION - BASE LAYOUT
   ========================================================================== */
.ref-section-content {
  display: grid;
  grid-template-columns: 1fr 20px;
  height: 100vh;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 60px;
  box-sizing: border-box;
  position: relative;
}

.ref-left-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-txt-primary);
}

.ref-left-container h2 {
  align-self: flex-start;
  color: var(--color-txt-primary);
}

.ref-left-container span {
  color: var(--color-txt-primary);
}

.ref-left-container a {
  color: var(--color-txt-primary);
  font-weight: var(--fw-bold);
  cursor: pointer;
  margin-left: auto;
  display: block;
  width: fit-content;
  font-size: 18px;
  transition: color 0.3s ease;
}

.ref-left-container a:hover {
  color: var(--color-txt-quinary);
}

/* ==========================================================================
   2. FEEDBACK GRID & BOX STYLING
   ========================================================================== */
.feedbacks-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-auto-rows: 500px;
  column-gap: 20px;
}

/* Common Box Styling */
.feedback-box1,
.feedback-box2,
.feedback-box3 {
  border: 1px solid var(--color-txt-primary);
  height: 250px;
  border-radius: 4px;
  padding: 32px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.feedback-box1 h3,
.feedback-box2 h3,
.feedback-box3 h3 {
  margin-block-start: 0;
  margin-block-end: 0;
  font-size: 18px;
}

.feedback-box1 p,
.feedback-box2 p,
.feedback-box3 p {
  overflow-y: scroll;
  height: 150px;
  text-align: justify;
  /* Hide Scrollbar */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.feedback-box1 p::-webkit-scrollbar,
.feedback-box2 p::-webkit-scrollbar,
.feedback-box3 p::-webkit-scrollbar {
  display: none;
}

/* Individual Vertical Alignment via Wrapper */
.wrapper-feedback-box1 {
  align-self: start;
}
.wrapper-feedback-box2 {
  align-self: center;
}
.wrapper-feedback-box3 {
  align-self: end;
}

/* ==========================================================================
   3. BOX INTERACTION & ELEMENTS
   ========================================================================== */
.name-icon {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.name-icon h3 {
  flex: 0 0 80%;
  min-width: 0;
}

.hover-img {
  height: 32px;
  width: 32px;
  background-image: url("../assets/img/orange_wheel.png");
  background-size: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feedback-box1:hover .hover-img,
.feedback-box2:hover .hover-img,
.feedback-box3:hover .hover-img {
  opacity: 1;
}

/* ==========================================================================
   4. MEDIA QUERIES (LAPTOP & LANDSCAPE)
   ========================================================================== */
@media (min-height: 500px) and (max-height: 800px) and (min-width: 1200px) {
  .ref-left-container h2 {
    margin-block-end: 16px;
    font-size: 60px;
  }
  .feedbacks-container {
    grid-auto-rows: 450px;
  }
}

@media (min-width: 900px) and (max-width: 1280px) and (min-height: 600px) and (max-height: 800px) and (orientation: landscape) {
  .feedbacks-container {
    grid-auto-rows: 400px;
  }
  .ref-left-container h2 {
    font-size: 60px;
  }
}

/* ==========================================================================
   5. MEDIA QUERIES (MOBILE & TABLET PORTRAIT)
   ========================================================================== */
@media (max-width: 850px) {
  .ref-section-content {
    padding: 0 16px;
    grid-template-columns: 1fr;
    height: auto;
    max-width: none;
  }

  .ref-left-container h2 {
    margin-block-end: 8px;
  }

  .feedbacks-container {
    display: flex;
    flex-direction: column;
    height: auto;
    padding-bottom: 32px;
  }

  .feedback-box1,
  .feedback-box2,
  .feedback-box3 {
    height: auto;
    padding: 16px;
  }

  .feedback-box1 p,
  .feedback-box2 p,
  .feedback-box3 p {
    height: 100px;
  }

  .ref-left-container a {
    margin-bottom: 8px;
  }
}

@media (min-width: 835px) and (max-width: 1024px) and (min-height: 1181px) and (max-height: 1366px) and (orientation: portrait) {
  .ref-section-content {
    display: flex;
    flex-direction: column;
  }

  .ref-left-container h2 {
    margin: 100px 0;
  }

  .feedbacks-container {
    display: flex;
    flex-direction: column;
  }
}
