a {
  text-decoration: none;
  color: #bb1a21;
  font-weight: bold;
}

.message-from-the-president {
  padding: 3% 8%;
  display: flex;
  flex-direction: column;
  gap: 42px;
  text-align: justify;

  .message-meta {
    font-size: 18px;

    .section-description {
      font-size: 20px;
      color: black;
    }
  }

  .image-and-text {
    display: flex;
    align-items: center;
    gap: 50px;

    .image-of-president {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 421px;
      gap: 16px;

      img {
        width: 421px;
        height: 400px;
        min-height: 326px;
        object-fit: cover;
        border-radius: 10px;
        background-color: #dbdbdb;
        transition: all 0.1s ease-in-out;

        &:hover {
          scale: 1.02;
        }
      }

      .image-description {
        color: black;
        font-weight: bold;
      }
    }
  }

  .page-paragraph {
    span {
      color: black;
      font-weight: 600;
    }
  }

  .table-container {
    padding: 40px;
    border: 1px solid #d3d3d3;
    border-radius: 16px;
  }
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

th,
td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
}

th {
  font-weight: bold;
}

tr:hover {
  td {
    .member-image {
      transform: scale(1.2);
      filter: grayscale(0%);
    }
  }
}

.member-image {
  width: 60px;
  height: 60px;
  margin-right: 124px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: all 0.3s ease;
}

#board-zonal-respresentatives {
  .member-image {
    margin-right: 0;
  }
}

.position {
  color: #bb1a21;
}

.name {
  font-weight: bold;
}

.zone {
  font-size: 14px;

  div {
    border: 1px solid #bb1a21;
    border-radius: 5px;
    padding: 8px 14px;
  }
}

.zone-number {
  font-weight: bold;
  margin-right: 4px;
}

/* Responsive Styles */
@media screen and (max-width: 1024px) {
  .message-from-the-president {
    padding: 3% 5%;
    gap: 30px;

    .message-meta {
      font-size: 16px;

      .section-description {
        font-size: 18px;
      }
    }

    .image-and-text {
      flex-direction: column;
      align-items: flex-start;
      gap: 30px;

      .image-of-president {
        width: 100%;
        max-width: 350px;

        img {
          width: 100%;
          height: auto;
          min-height: 250px;
        }
      }
    }

    .table-container {
      padding: 20px;
    }

    table {
      font-size: 14px;
    }

    th,
    td {
      padding: 10px;
    }

    .member-image {
      width: 50px;
      height: 50px;
      margin-right: 20px;
    }

    #board-zonal-respresentatives {
      .member-image {
        margin-right: 0;
      }
    }

    .zone {
      font-size: 12px;

      div {
        padding: 6px 10px;
      }
    }
  }
}

@media screen and (max-width: 768px) {
  .message-from-the-president {
    padding: 3% 4%;
    gap: 20px;

    .message-meta {
      font-size: 14px;

      .section-description {
        font-size: 16px;
      }
    }

    .image-and-text {
      gap: 20px;

      .image-of-president {
        max-width: 300px;

        img {
          min-height: 200px;
        }
      }
    }

    .table-container {
      padding: 15px;
    }

    table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
    }

    th,
    td {
      padding: 8px;
      font-size: 12px;
    }

    .member-image {
      width: 40px;
      height: 40px;
      margin-right: 10px;
    }
  }
}

@media screen and (max-width: 480px) {
  .home-news-list {
    display: flex;
    flex-direction: column;
  }

  .message-from-the-president {
    padding: 3% 3%;
    gap: 15px;

    .message-meta {
      font-size: 12px;

      .section-description {
        font-size: 14px;
      }
    }

    .image-and-text {
      gap: 15px;

      .image-of-president {
        max-width: 100%;

        img {
          min-height: 180px;
        }

        .image-description {
          font-size: 14px;
        }
      }
    }

    .page-paragraph {
      font-size: 14px;

      span {
        font-size: 14px;
      }
    }

    .table-container {
      padding: 10px;
    }

    th,
    td {
      padding: 6px;
      font-size: 11px;
    }

    .member-image {
      width: 35px;
      height: 35px;
      margin-right: 5px;
    }

    .zone {
      font-size: 11px;

      div {
        padding: 4px 8px;
      }
    }

    .like-btn {
      padding: 3px 6px;

      .like-count {
        font-size: 12px;
      }

      img {
        width: 14px;
        height: 14px;
      }
    }
  }
}



@media (max-width: 488px) {
    .home-news-block {
        width: 100% !important;    
    }
}

.home-news-list, .related-news-block {
    height: fit-content; 
}